diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/401.5737a50e.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/401.5737a50e.js new file mode 100644 index 00000000..54902ee5 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/401.5737a50e.js @@ -0,0 +1 @@ +import{S as _}from"./storage.b628b270.js";import{h as a,a9 as l,j as d,k as m,l as e,C as o,D as r,x as p,B as f,aE as h,aF as u}from"./vue.bd0669ce.js";import{_ as g}from"./_plugin-vue_export-helper.c27b6911.js";const i=t=>(h("data-v-789f1e91"),t=t(),u(),t),v={class:"error layout-padding"},y={class:"layout-padding-auto layout-padding-view"},w={class:"error-flex"},x={class:"left"},F={class:"left-item"},b=i(()=>e("div",{class:"left-item-animation left-item-num"},"401",-1)),S={class:"left-item-animation left-item-title"},A={class:"left-item-animation left-item-msg"},B={class:"left-item-animation left-item-btn"},k=i(()=>e("div",{class:"right"},[e("img",{src:"https://img-blog.csdnimg.cn/3333f265772a4fa89287993500ecbf96.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAbHl0LXRvcA==,size_16,color_FFFFFF,t_70,g_se,x_16"})],-1)),C=a({name:"noPower"}),I=a({...C,setup(t){const c=()=>{_.clear(),window.location.reload()};return(s,N)=>{const n=l("el-button");return d(),m("div",v,[e("div",y,[e("div",w,[e("div",x,[e("div",F,[b,e("div",S,o(s.$t("message.noAccess.accessTitle")),1),e("div",A,o(s.$t("message.noAccess.accessMsg")),1),e("div",B,[r(n,{type:"primary",size:"default",round:"",onClick:c},{default:p(()=>[f(o(s.$t("message.noAccess.accessBtn")),1)]),_:1})])])]),k])])])}}});const $=g(I,[["__scopeId","data-v-789f1e91"]]);export{$ as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/404.1d4840a9.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/404.1d4840a9.js new file mode 100644 index 00000000..4a6fdc68 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/404.1d4840a9.js @@ -0,0 +1 @@ +import{h as a,aH as c,a9 as l,j as m,k as r,l as t,C as o,D as p,x as u,B as f,aE as h,aF as g}from"./vue.bd0669ce.js";import{_ as v}from"./_plugin-vue_export-helper.c27b6911.js";const n=e=>(h("data-v-7a76f84d"),e=e(),g(),e),F={class:"error layout-padding"},y={class:"layout-padding-auto layout-padding-view"},b={class:"error-flex"},x={class:"left"},B={class:"left-item"},k=n(()=>t("div",{class:"left-item-animation left-item-num"},"404",-1)),w={class:"left-item-animation left-item-title"},C={class:"left-item-animation left-item-msg"},I={class:"left-item-animation left-item-btn"},N=n(()=>t("div",{class:"right"},[t("img",{src:"https://img-blog.csdnimg.cn/9eb1d85a417f4ed1ba7107f149ce3da1.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAbHl0LXRvcA==,size_16,color_FFFFFF,t_70,g_se,x_16"})],-1)),S=a({name:"notFound"}),E=a({...S,setup(e){const i=c(),d=()=>{i.push("/")};return(s,H)=>{const _=l("el-button");return m(),r("div",F,[t("div",y,[t("div",b,[t("div",x,[t("div",B,[k,t("div",w,o(s.$t("message.notFound.foundTitle")),1),t("div",C,o(s.$t("message.notFound.foundMsg")),1),t("div",I,[p(_,{type:"primary",size:"default",round:"",onClick:d},{default:u(()=>[f(o(s.$t("message.notFound.foundBtn")),1)]),_:1})])])]),N])])])}}});const $=v(E,[["__scopeId","data-v-7a76f84d"]]);export{$ as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/account.61e87075.css b/openjob-server/openjob-server-starter/src/main/resources/static/assets/account.61e87075.css new file mode 100644 index 00000000..41300295 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/account.61e87075.css @@ -0,0 +1 @@ +.login-content-form[data-v-75eedce7]{margin-top:20px}.login-content-form .login-animation1[data-v-75eedce7]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.1s}.login-content-form .login-animation2[data-v-75eedce7]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.2s}.login-content-form .login-animation3[data-v-75eedce7]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.3s}.login-content-form .login-animation4[data-v-75eedce7]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.4s}.login-content-form .login-content-password[data-v-75eedce7]{display:inline-block;width:20px;cursor:pointer}.login-content-form .login-content-password[data-v-75eedce7]:hover{color:#909399}.login-content-form .login-content-code[data-v-75eedce7]{width:100%;padding:0;font-weight:700;letter-spacing:5px}.login-content-form .login-content-submit[data-v-75eedce7]{width:100%;letter-spacing:2px;font-weight:300;margin-top:15px} diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/account.925469d1.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/account.925469d1.js new file mode 100644 index 00000000..16887042 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/account.925469d1.js @@ -0,0 +1 @@ +import{h as P,ar as R,aq as U,aH as q,K as $,a as A,a9 as i,ac as D,j as _,v as g,x as t,D as s,l as x,n as M,y as C,B as E,C as V}from"./vue.bd0669ce.js";import{u as J}from"./vue-i18n.cjs.2a00fe88.js";import{u as L}from"./themeConfig.cb88f033.js";import{i as j,b as z}from"./index.2f1ef0a5.js";import{S as K}from"./storage.b628b270.js";import{a as O}from"./formatTime.057ac5b9.js";import{N as G}from"./loading.3e617409.js";import{u as H}from"./index.c41e61d7.js";import{u as Q}from"./userInfo.f7c9dd73.js";import{J as W}from"./index.f64fca3a.js";import{ay as I}from"./index.e8f4f9cf.js";import{_ as X}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./index.aa7cec2e.js";import"./keepAliveNames.f05bad75.js";import"./routesList.32d6bb58.js";import"./preload-helper.101896b7.js";import"./tagsViewRoutes.054c4a6f.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./index.ee56f1f7.js";const Y=P({name:"loginAccount"}),Z=P({...Y,setup(ee){const S=H(),{t:d}=J(),F=L(),{themeConfig:N}=R(F),p=U(),w=q(),o=$({isShowPassword:!1,randomCode:((n=4)=>{let e="0123456789";function c(l,u){return Math.round(Math.random()*(u-l)+l)}let a="";for(var r=0;rO(new Date)),k=async()=>{if(o.randomCode!=o.ruleForm.code){await W.alert(d("message.codeMsg.c105"),d("message.commonMsg.tip"),{type:"warning"});return}o.loading.signIn=!0;let n=o.ruleForm;try{const e=await S.login(n);console.log(e),Q().saveToSession(e.username,e.sessionKey,{userName:e.username,photo:"https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500",time:1800,roles:[],isAdmin:e.supperAdmin,authBtnList:[],perms:e.permNames})}catch(e){console.log(e),o.loading.signIn=!1;return}if(console.log("登录后 - 加载菜单路由列表"),N.value.isRequestRoutes){const e=await z();console.log("加载菜单路由列表",e),h(e)}else{const e=await j();h(e)}},h=n=>{var e,c,a,r;if(n)I.warning("抱歉,您没有登录权限"),K.clear();else{let l=T.value;(e=p.query)!=null&&e.redirect?w.push({path:(c=p.query)==null?void 0:c.redirect,query:Object.keys((a=p.query)==null?void 0:a.params).length>0?JSON.parse((r=p.query)==null?void 0:r.params):""}):w.push("/");const u=d("message.signInText");I.success(`${l},${u}`),G.start()}o.loading.signIn=!1};return(n,e)=>{const c=i("ele-User"),a=i("el-icon"),r=i("el-input"),l=i("el-form-item"),u=i("ele-Unlock"),b=i("ele-Position"),f=i("el-col"),y=i("el-button"),B=i("el-form"),v=D("waves");return _(),g(B,{size:"large",class:"login-content-form"},{default:t(()=>[s(l,{class:"login-animation1"},{default:t(()=>[s(r,{text:"",placeholder:n.$t("message.account.accountPlaceholder1"),modelValue:o.ruleForm.username,"onUpdate:modelValue":e[0]||(e[0]=m=>o.ruleForm.username=m),clearable:"",autocomplete:"off"},{prefix:t(()=>[s(a,{class:"el-input__icon"},{default:t(()=>[s(c)]),_:1})]),_:1},8,["placeholder","modelValue"])]),_:1}),s(l,{class:"login-animation2"},{default:t(()=>[s(r,{type:o.isShowPassword?"text":"password",placeholder:n.$t("message.account.accountPlaceholder2"),modelValue:o.ruleForm.password,"onUpdate:modelValue":e[2]||(e[2]=m=>o.ruleForm.password=m),autocomplete:"off"},{prefix:t(()=>[s(a,{class:"el-input__icon"},{default:t(()=>[s(u)]),_:1})]),suffix:t(()=>[x("i",{class:M(["iconfont el-input__icon login-content-password",o.isShowPassword?"icon-yincangmima":"icon-xianshimima"]),onClick:e[1]||(e[1]=m=>o.isShowPassword=!o.isShowPassword)},null,2)]),_:1},8,["type","placeholder","modelValue"])]),_:1}),s(l,{class:"login-animation3"},{default:t(()=>[s(f,{span:15},{default:t(()=>[s(r,{text:"",maxlength:"4",placeholder:n.$t("message.account.accountPlaceholder3"),modelValue:o.ruleForm.code,"onUpdate:modelValue":e[3]||(e[3]=m=>o.ruleForm.code=m),clearable:"",autocomplete:"off"},{prefix:t(()=>[s(a,{class:"el-input__icon"},{default:t(()=>[s(b)]),_:1})]),_:1},8,["placeholder","modelValue"])]),_:1}),s(f,{span:1}),s(f,{span:8},{default:t(()=>[C((_(),g(y,{class:"login-content-code"},{default:t(()=>[E(V(o.randomCode),1)]),_:1})),[[v]])]),_:1})]),_:1}),s(l,{class:"login-animation4"},{default:t(()=>[C((_(),g(y,{type:"primary",class:"login-content-submit",round:"",onClick:k,loading:o.loading.signIn},{default:t(()=>[x("span",null,V(n.$t("message.account.accountBtnText")),1)]),_:1},8,["loading"])),[[v]])]),_:1})]),_:1})}}});const Ve=X(Z,[["__scopeId","data-v-75eedce7"]]);export{Ve as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/aside.aa1159e5.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/aside.aa1159e5.js new file mode 100644 index 00000000..3e7ebbd5 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/aside.aa1159e5.js @@ -0,0 +1 @@ +import{_ as C}from"./preload-helper.101896b7.js";import{h as A,ap as b,r as D,ar as m,K as I,a as L,b as N,w as g,a9 as S,y as O,E as P,u as a,j as F,k as j,D as f,x as w,v as q,A as z,n as H}from"./vue.bd0669ce.js";import{p as $}from"./index.aa7cec2e.js";import{u as K}from"./routesList.32d6bb58.js";import{u as G}from"./themeConfig.cb88f033.js";import{u as J}from"./tagsViewRoutes.054c4a6f.js";import{e as l}from"./mitt.7f99bbc0.js";import"./storage.b628b270.js";const Q={class:"h100"},U=A({name:"layoutAside"}),ae=A({...U,setup(X){const R=b(()=>C(()=>import("./index.5540ac82.js"),["assets/index.5540ac82.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/logo-mini.323e783b.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.880bac10.css"])),T=b(()=>C(()=>import("./vertical.66ebe4e1.js"),["assets/vertical.66ebe4e1.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/other.e9eeae65.js","assets/index.ee56f1f7.js","assets/index.2f1ef0a5.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/storage.b628b270.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.8b89e2e0.css","assets/toolsValidate.7cb139e2.js"])),r=D(),p=K(),E=G(),M=J(),{routesList:B}=m(p),{themeConfig:i}=m(E),{isTagsViewCurrenFull:V}=m(M),n=I({menuList:[],clientWidth:0}),W=L(()=>{const{layout:e,isCollapse:t,menuBar:s}=i.value,o=["#FFFFFF","#FFF","#fff","#ffffff"].includes(s)?"layout-el-aside-br-color":"";if(n.clientWidth<=1e3)if(t){document.body.setAttribute("class","el-popup-parent--hidden");const x=document.querySelector(".layout-container"),d=document.createElement("div");return d.setAttribute("class","layout-aside-mobile-mode"),x.appendChild(d),d.addEventListener("click",u),[o,"layout-aside-mobile","layout-aside-mobile-open"]}else return u(),[o,"layout-aside-mobile","layout-aside-mobile-close"];else return e==="columns"?t?[o,"layout-aside-pc-1"]:[o,"layout-aside-pc-220"]:t?[o,"layout-aside-pc-64"]:[o,"layout-aside-pc-220"]}),k=L(()=>{let{layout:e,isShowLogo:t}=i.value;return t&&e==="defaults"||t&&e==="columns"}),u=()=>{const e=document.querySelector(".layout-aside-mobile-mode");e==null||e.setAttribute("style","animation: error-img-two 0.3s"),setTimeout(()=>{var s;(s=e==null?void 0:e.parentNode)==null||s.removeChild(e)},300),document.body.clientWidth<1e3&&(i.value.isCollapse=!1),document.body.setAttribute("class","")},c=()=>{if(i.value.layout==="columns")return!1;n.menuList=y(B.value)},y=e=>e.filter(t=>{var s;return!((s=t.meta)!=null&&s.isHide)}).map(t=>(t=Object.assign({},t),t.children&&(t.children=y(t.children)),t)),h=e=>{n.clientWidth=e},_=e=>{let{layout:t}=i.value;if(t!=="columns")return!1;e||l.emit("restoreDefault"),p.setColumnsMenuHover(e)};return N(()=>{h(document.body.clientWidth),c(),l.on("setSendColumnsChildren",e=>{n.menuList=e.children}),l.on("setSendClassicChildren",e=>{let{layout:t,isClassicSplitMenu:s}=i.value;t==="classic"&&s&&(n.menuList=[],n.menuList=e.children)}),l.on("getBreadcrumbIndexSetFilterRoutes",()=>{c()}),l.on("layoutMobileResize",e=>{h(e.clientWidth),u()})}),g(i.value,e=>{e.isShowLogoChange!==e.isShowLogo&&r.value&&r.value.update()}),g($.state,e=>{let{layout:t,isClassicSplitMenu:s}=e.themeConfig.themeConfig;if(t==="classic"&&s)return!1;c()},{deep:!0}),(e,t)=>{const s=S("el-scrollbar"),v=S("el-aside");return O((F(),j("div",Q,[f(v,{class:H(["layout-aside",a(W)])},{default:w(()=>[a(k)?(F(),q(a(R),{key:0})):z("",!0),f(s,{class:"flex-auto",ref_key:"layoutAsideScrollbarRef",ref:r,onMouseenter:t[0]||(t[0]=o=>_(!0)),onMouseleave:t[1]||(t[1]=o=>_(!1))},{default:w(()=>[f(a(T),{menuList:n.menuList},null,8,["menuList"])]),_:1},512)]),_:1},8,["class"])],512)),[[P,!a(V)]])}}});export{ae as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/auth.262a5b05.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/auth.262a5b05.js new file mode 100644 index 00000000..7b2dd742 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/auth.262a5b05.js @@ -0,0 +1 @@ +import{h as t,ar as u,a as m,u as f,m as p,A as c}from"./vue.bd0669ce.js";import{u as l}from"./userInfo.f7c9dd73.js";import"./storage.b628b270.js";const d=t({name:"auth"}),g=t({...d,props:{value:{type:String,default:()=>""}},setup(s){const o=s,r=l(),{userInfos:a}=u(r),n=m(()=>a.value.authBtnList.some(e=>e===o.value));return(e,i)=>f(n)?p(e.$slots,"default",{key:0}):c("",!0)}});export{g as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/authAll.2f548485.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/authAll.2f548485.js new file mode 100644 index 00000000..ca8e6ec2 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/authAll.2f548485.js @@ -0,0 +1 @@ +import{h as e,ar as u,a as m,u as f,m as p,A as c}from"./vue.bd0669ce.js";import{u as l}from"./userInfo.f7c9dd73.js";import{j as d}from"./arrayOperation.b573dead.js";import"./storage.b628b270.js";const i=e({name:"authAll"}),j=e({...i,props:{value:{type:Array,default:()=>[]}},setup(t){const s=t,r=l(),{userInfos:o}=u(r),a=m(()=>d(s.value,o.value.authBtnList));return(n,_)=>f(a)?p(n.$slots,"default",{key:0}):c("",!0)}});export{j as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/auths.53360d35.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/auths.53360d35.js new file mode 100644 index 00000000..44569bc4 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/auths.53360d35.js @@ -0,0 +1 @@ +import{h as s,ar as m,a as p,u as l,m as c,A as d}from"./vue.bd0669ce.js";import{u as i}from"./userInfo.f7c9dd73.js";import"./storage.b628b270.js";const _=s({name:"auths"}),A=s({..._,props:{value:{type:Array,default:()=>[]}},setup(a){const r=a,o=i(),{userInfos:u}=m(o),n=p(()=>{let e=!1;return u.value.authBtnList.map(t=>{r.value.map(f=>{t===f&&(e=!0)})}),e});return(e,t)=>l(n)?c(e.$slots,"default",{key:0}):d("",!0)}});export{A as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/breadcrumb.f85ad9c4.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/breadcrumb.f85ad9c4.js new file mode 100644 index 00000000..93133b17 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/breadcrumb.f85ad9c4.js @@ -0,0 +1 @@ +import{h as L,ar as S,aq as T,aH as R,K as $,a as E,o as D,aJ as M,a9 as d,u,j as o,k as n,D as p,x as b,al as j,F as q,Z as z,v as _,A as f,C as h,$ as A,B as G}from"./vue.bd0669ce.js";import{L as k}from"./storage.b628b270.js";import{o as H}from"./other.e9eeae65.js";import{u as J}from"./themeConfig.cb88f033.js";import{u as K}from"./routesList.32d6bb58.js";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import"./preload-helper.101896b7.js";import"./index.ee56f1f7.js";import"./index.2f1ef0a5.js";import"./_commonjsHelpers.35101cd5.js";import"./index.aa7cec2e.js";import"./keepAliveNames.f05bad75.js";import"./userInfo.f7c9dd73.js";import"./loading.3e617409.js";import"./tagsViewRoutes.054c4a6f.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./vue-i18n.cjs.2a00fe88.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./toolsValidate.7cb139e2.js";const Z={key:0,class:"layout-navbars-breadcrumb"},O={key:0,class:"layout-navbars-breadcrumb-span"},P={key:1},Q={key:2},W=["onClick"],X=L({name:"layoutBreadcrumb"}),Y=L({...X,setup(ee){const B=K(),x=J(),{themeConfig:s}=S(x),{routesList:g}=S(B),c=T(),v=R(),e=$({breadcrumbList:[],routeSplit:[],routeSplitFirst:"",routeSplitIndex:1}),I=E(()=>{m(c.path);const{layout:t,isBreadcrumb:a}=s.value;return t==="classic"||t==="transverse"?!1:!!a}),w=t=>{const{redirect:a,path:i}=t;a?v.push(a):v.push(i)},N=()=>{s.value.isCollapse=!s.value.isCollapse,V()},V=()=>{k.remove("themeConfig"),k.set("themeConfig",s.value)},C=t=>{t.forEach(a=>{e.routeSplit.forEach((i,y,l)=>{e.routeSplitFirst===a.path&&(e.routeSplitFirst+=`/${l[e.routeSplitIndex]}`,e.breadcrumbList.push(a),e.routeSplitIndex++,a.children&&C(a.children))})})},m=t=>{if(!s.value.isBreadcrumb)return!1;e.breadcrumbList=[g.value[0]],e.routeSplit=t.split("/"),e.routeSplit.shift(),e.routeSplitFirst=`/${e.routeSplit[0]}`,e.routeSplitIndex=1,C(g.value),(c.name==="home"||c.name==="notFound"&&e.breadcrumbList.length>1)&&e.breadcrumbList.shift(),e.breadcrumbList.length>0&&(e.breadcrumbList[e.breadcrumbList.length-1].meta.tagsViewName=H.setTagsViewNameI18n(c))};return D(()=>{m(c.path)}),M(t=>{m(t.path)}),(t,a)=>{const i=d("SvgIcon"),y=d("el-breadcrumb-item"),l=d("el-breadcrumb");return u(I)?(o(),n("div",Z,[p(i,{class:"layout-navbars-breadcrumb-icon",name:u(s).isCollapse?"ele-Expand":"ele-Fold",size:16,onClick:N},null,8,["name"]),p(l,{class:"layout-navbars-breadcrumb-hide"},{default:b(()=>[p(j,{name:"breadcrumb"},{default:b(()=>[(o(!0),n(q,null,z(e.breadcrumbList,(r,F)=>(o(),_(y,{key:r.meta.tagsViewName?r.meta.tagsViewName:r.meta.title},{default:b(()=>[F===e.breadcrumbList.length-1?(o(),n("span",O,[u(s).isBreadcrumbIcon?(o(),_(i,{key:0,name:r.meta.icon,class:"layout-navbars-breadcrumb-iconfont"},null,8,["name"])):f("",!0),r.meta.tagsViewName?(o(),n("div",Q,h(r.meta.tagsViewName),1)):(o(),n("div",P,h(t.$t(r.meta.title)),1))])):(o(),n("a",{key:1,onClick:A(te=>w(r),["prevent"])},[u(s).isBreadcrumbIcon?(o(),_(i,{key:0,name:r.meta.icon,class:"layout-navbars-breadcrumb-iconfont"},null,8,["name"])):f("",!0),G(h(t.$t(r.meta.title)),1)],8,W))]),_:2},1024))),128))]),_:1})]),_:1})])):f("",!0)}}});const ke=U(Y,[["__scopeId","data-v-cc3d7130"]]);export{ke as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/classic.de486bcf.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/classic.de486bcf.js new file mode 100644 index 00000000..26058b15 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/classic.de486bcf.js @@ -0,0 +1 @@ +import{_ as t}from"./preload-helper.101896b7.js";import{h as m,ap as o,r as g,aq as E,ar as L,a as V,o as w,w as _,a9 as x,j as l,v as f,x as p,D as a,u as e,l as A,A as k,J as M}from"./vue.bd0669ce.js";import{u as D}from"./themeConfig.cb88f033.js";const P={class:"flex-center layout-backtop"},b=m({name:"layoutClassic"}),H=m({...b,setup(B){const d=o(()=>t(()=>import("./aside.aa1159e5.js"),["assets/aside.aa1159e5.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/index.aa7cec2e.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"])),y=o(()=>t(()=>import("./header.52106c52.js"),["assets/header.52106c52.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js"])),v=o(()=>t(()=>import("./main.b18eb16d.js"),["assets/main.b18eb16d.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/themeConfig.cb88f033.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css"])),T=o(()=>t(()=>import("./tagsView.c6c2fc89.js"),["assets/tagsView.c6c2fc89.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/sortable.esm.1e7dbfeb.js","assets/index.aa7cec2e.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/themeConfig.cb88f033.js","assets/keepAliveNames.f05bad75.js","assets/arrayOperation.b573dead.js","assets/other.e9eeae65.js","assets/index.ee56f1f7.js","assets/index.2f1ef0a5.js","assets/_commonjsHelpers.35101cd5.js","assets/routesList.32d6bb58.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.8b89e2e0.css","assets/toolsValidate.7cb139e2.js","assets/mitt.7f99bbc0.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/tagsView.01e7bb28.css"])),s=g(),h=E(),R=D(),{themeConfig:r}=L(R),C=V(()=>r.value.isTagsview),c=()=>{var n;(n=s.value)==null||n.layoutMainScrollbarRef.update()},i=()=>{M(()=>{setTimeout(()=>{c(),s.value.layoutMainScrollbarRef.wrapRef.scrollTop=0},500)})};return w(()=>{i()}),_(()=>h.path,()=>{i()}),_(r,()=>{c()},{deep:!0}),(n,I)=>{const u=x("el-container");return l(),f(u,{class:"layout-container flex-center"},{default:p(()=>[a(e(y)),a(u,{class:"layout-mian-height-50"},{default:p(()=>[a(e(d)),A("div",P,[e(C)?(l(),f(e(T),{key:0})):k("",!0),a(e(v),{ref_key:"layoutMainRef",ref:s},null,512)])]),_:1})]),_:1})}}});export{H as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/closeFull.bf8d3509.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/closeFull.bf8d3509.js new file mode 100644 index 00000000..6188ef45 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/closeFull.bf8d3509.js @@ -0,0 +1 @@ +import{h as s,ar as n,a9 as c,u as r,j as _,k as u,l as i,D as m,A as p}from"./vue.bd0669ce.js";import{u as d}from"./tagsViewRoutes.054c4a6f.js";import{_ as f}from"./_plugin-vue_export-helper.c27b6911.js";import"./storage.b628b270.js";const v={key:0,class:"layout-navbars-close-full"},C={class:"layout-navbars-close-full-icon"},g=s({name:"layoutCloseFull"}),F=s({...g,setup(y){const e=d(),{isTagsViewCurrenFull:o}=n(e),t=()=>{e.setCurrenFullscreen(!1)};return(l,V)=>{const a=c("SvgIcon");return r(o)?(_(),u("div",v,[i("div",C,[m(a,{name:"ele-Close",title:l.$t("message.tagsView.closeFullscreen"),onClick:t},null,8,["title"])])])):p("",!0)}}});const B=f(F,[["__scopeId","data-v-c5e48991"]]);export{B as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/columns.9f01fb13.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/columns.9f01fb13.js new file mode 100644 index 00000000..137f49d9 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/columns.9f01fb13.js @@ -0,0 +1 @@ +import{_ as e}from"./preload-helper.101896b7.js";import{h as p,ap as t,r as _,aq as b,ar as E,o as w,w as i,a9 as f,j as A,v as L,x as n,D as o,u as a,J as k}from"./vue.bd0669ce.js";import{u as M}from"./themeConfig.cb88f033.js";const S=p({name:"layoutColumns"}),O=p({...S,setup(x){const m=t(()=>e(()=>import("./aside.aa1159e5.js"),["assets/aside.aa1159e5.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/index.aa7cec2e.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"])),d=t(()=>e(()=>import("./header.52106c52.js"),["assets/header.52106c52.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js"])),y=t(()=>e(()=>import("./main.b18eb16d.js"),["assets/main.b18eb16d.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/themeConfig.cb88f033.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css"])),R=t(()=>e(()=>import("./columnsAside.f0fd4f5a.js"),["assets/columnsAside.f0fd4f5a.js","assets/vue.bd0669ce.js","assets/index.aa7cec2e.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/mitt.7f99bbc0.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/columnsAside.8d96fc45.css"])),r=_(""),s=_(),v=b(),T=M(),{themeConfig:h}=E(T),l=()=>{r.value.update(),s.value.layoutMainScrollbarRef.update()},c=()=>{k(()=>{setTimeout(()=>{l(),r.value.wrapRef.scrollTop=0,s.value.layoutMainScrollbarRef.wrapRef.scrollTop=0},500)})};return w(()=>{c()}),i(()=>v.path,()=>{c()}),i(h,()=>{l()},{deep:!0}),(D,P)=>{const C=f("el-scrollbar"),u=f("el-container");return A(),L(u,{class:"layout-container"},{default:n(()=>[o(a(R)),o(u,{class:"layout-columns-warp layout-container-view h100"},{default:n(()=>[o(a(m)),o(C,{ref_key:"layoutScrollbarRef",ref:r,class:"layout-backtop"},{default:n(()=>[o(a(d)),o(a(y),{ref_key:"layoutMainRef",ref:s},null,512)]),_:1},512)]),_:1})]),_:1})}}});export{O as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/columnsAside.f0fd4f5a.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/columnsAside.f0fd4f5a.js new file mode 100644 index 00000000..aac4ad47 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/columnsAside.f0fd4f5a.js @@ -0,0 +1 @@ +import{h as O,r as I,ar as M,aq as B,aH as j,K as J,o as U,a4 as V,aJ as q,w as z,a9 as $,j as c,k as m,D as _,x as E,l as d,F as K,Z,n as C,u as f,C as k,J as G}from"./vue.bd0669ce.js";import{p as Q}from"./index.aa7cec2e.js";import{u as W}from"./routesList.32d6bb58.js";import{u as X}from"./themeConfig.cb88f033.js";import{e as i}from"./mitt.7f99bbc0.js";import{_ as Y}from"./_plugin-vue_export-helper.c27b6911.js";const ee={class:"layout-columns-aside"},te=["onClick","onMouseenter","title"],se={class:"columns-vertical-title font12"},ne=["href"],oe={class:"columns-vertical-title font12"},le=O({name:"layoutColumnsAside"}),ie=O({...le,setup(ae){const v=I([]),A=I(),h=W(),R=X(),{routesList:x,isColumnsMenuHover:D,isColumnsNavHover:T}=M(h),{themeConfig:a}=M(R),y=B(),g=j(),t=J({columnsAsideList:[],liIndex:0,liOldIndex:null,liHoverIndex:null,liOldPath:null,difference:0,routeSplit:[]}),L=e=>{t.liIndex=e,A.value.style.top=`${v.value[e].offsetTop+t.difference}px`},b=(e,s)=>{L(s);let{path:o,redirect:l}=e;l?g.push(l):g.push(o)},P=(e,s)=>{if(!a.value.isColumnsMenuHoverPreload)return!1;let{path:o}=e;t.liOldPath=o,t.liOldIndex=s,t.liHoverIndex=s,i.emit("setSendColumnsChildren",u(o)),h.setColumnsMenuHover(!1),h.setColumnsNavHover(!0)},N=async()=>{await h.setColumnsNavHover(!1),setTimeout(()=>{!D&&!T&&i.emit("restoreDefault")},100)},S=e=>{G(()=>{L(e)})},w=()=>{var s;t.columnsAsideList=H(x.value);const e=u(y.path);if(Object.keys(e).length<=0)return!1;S((s=e.item)==null?void 0:s.k),i.emit("setSendColumnsChildren",e)},u=e=>{const s=e.split("/");let o={children:[]};return t.columnsAsideList.map((l,n)=>{l.path===`/${s[1]}`&&(l.k=n,o.item={...l},o.children=[{...l}],l.children&&(o.children=l.children))}),o},H=e=>e.filter(s=>{var o;return!((o=s.meta)!=null&&o.isHide)}).map(s=>(s=Object.assign({},s),s.children&&(s.children=H(s.children)),s)),F=e=>{t.routeSplit=e.split("/"),t.routeSplit.shift();const s=`/${t.routeSplit[0]}`,o=t.columnsAsideList.find(l=>l.path===s);if(!o)return!1;setTimeout(()=>{S(o.k)},0)};return U(()=>{w(),i.on("restoreDefault",()=>{t.liOldIndex=null,t.liOldPath=null})}),V(()=>{i.off("restoreDefault",()=>{})}),q(e=>{F(e.path),i.emit("setSendColumnsChildren",u(e.path))}),z(Q.state,e=>{if(e.themeConfig.themeConfig.columnsAsideStyle==="columnsRound"?t.difference=3:t.difference=0,!e.routesList.isColumnsMenuHover&&!e.routesList.isColumnsNavHover)t.liHoverIndex=null,i.emit("setSendColumnsChildren",u(y.path));else{if(t.liHoverIndex=t.liOldIndex,!t.liOldPath)return!1;i.emit("setSendColumnsChildren",u(t.liOldPath))}},{deep:!0}),(e,s)=>{const o=$("SvgIcon"),l=$("el-scrollbar");return c(),m("div",ee,[_(l,null,{default:E(()=>[d("ul",{onMouseleave:s[0]||(s[0]=n=>N())},[(c(!0),m(K,null,Z(t.columnsAsideList,(n,r)=>(c(),m("li",{key:r,onClick:p=>b(n,r),onMouseenter:p=>P(n,r),ref_for:!0,ref:p=>{p&&(v.value[r]=p)},class:C({"layout-columns-active":t.liIndex===r,"layout-columns-hover":t.liHoverIndex===r}),title:e.$t(n.meta.title)},[!n.meta.isLink||n.meta.isLink&&n.meta.isIframe?(c(),m("div",{key:0,class:C(f(a).columnsAsideLayout)},[_(o,{name:n.meta.icon},null,8,["name"]),d("div",se,k(e.$t(n.meta.title)&&e.$t(n.meta.title).length>=4?e.$t(n.meta.title).substr(0,f(a).columnsAsideLayout==="columns-vertical"?4:3):e.$t(n.meta.title)),1)],2)):(c(),m("div",{key:1,class:C(f(a).columnsAsideLayout)},[d("a",{href:n.meta.isLink,target:"_blank"},[_(o,{name:n.meta.icon},null,8,["name"]),d("div",oe,k(e.$t(n.meta.title)&&e.$t(n.meta.title).length>=4?e.$t(n.meta.title).substr(0,f(a).columnsAsideLayout==="columns-vertical"?4:3):e.$t(n.meta.title)),1)],8,ne)],2))],42,te))),128)),d("div",{ref_key:"columnsAsideActiveRef",ref:A,class:C(f(a).columnsAsideStyle)},null,2)],32)]),_:1})])}}});const he=Y(ie,[["__scopeId","data-v-e9a1a406"]]);export{he as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/commonFunction.a83fad7a.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/commonFunction.a83fad7a.js new file mode 100644 index 00000000..5ced4578 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/commonFunction.a83fad7a.js @@ -0,0 +1 @@ +import{g as Q,c as W}from"./_commonjsHelpers.35101cd5.js";import{f as k}from"./formatTime.057ac5b9.js";import{u as Z}from"./vue-i18n.cjs.2a00fe88.js";import{ay as N}from"./index.e8f4f9cf.js";var R={exports:{}};(function(E,T){(function(x,h){E.exports=h()})(W,function(){return function(){var _={686:function(d,a,t){t.d(a,{default:function(){return K}});var c=t(279),r=t.n(c),f=t(370),s=t.n(f),p=t(817),g=t.n(p);function y(u){try{return document.execCommand(u)}catch{return!1}}var v=function(n){var e=g()(n);return y("cut"),e},m=v;function S(u){var n=document.documentElement.getAttribute("dir")==="rtl",e=document.createElement("textarea");e.style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return e.style.top="".concat(o,"px"),e.setAttribute("readonly",""),e.value=u,e}var P=function(n,e){var o=S(n);e.container.appendChild(o);var i=g()(o);return y("copy"),o.remove(),i},Y=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},o="";return typeof n=="string"?o=P(n,e):n instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(n==null?void 0:n.type)?o=P(n.value,e):(o=g()(n),y("copy")),o},O=Y;function C(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(e){return typeof e}:C=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(u)}var H=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.action,o=e===void 0?"copy":e,i=n.container,l=n.target,b=n.text;if(o!=="copy"&&o!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(l!==void 0)if(l&&C(l)==="object"&&l.nodeType===1){if(o==="copy"&&l.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(o==="cut"&&(l.hasAttribute("readonly")||l.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(b)return O(b,{container:i});if(l)return o==="cut"?m(l):O(l,{container:i})},j=H;function w(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(e){return typeof e}:w=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(u)}function I(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function D(u,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(u){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(u)}function L(u,n){var e="data-clipboard-".concat(u);if(!!n.hasAttribute(e))return n.getAttribute(e)}var J=function(u){B(e,u);var n=U(e);function e(o,i){var l;return I(this,e),l=n.call(this),l.resolveOptions(i),l.listenClick(o),l}return z(e,[{key:"resolveOptions",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof i.action=="function"?i.action:this.defaultAction,this.target=typeof i.target=="function"?i.target:this.defaultTarget,this.text=typeof i.text=="function"?i.text:this.defaultText,this.container=w(i.container)==="object"?i.container:document.body}},{key:"listenClick",value:function(i){var l=this;this.listener=s()(i,"click",function(b){return l.onClick(b)})}},{key:"onClick",value:function(i){var l=i.delegateTarget||i.currentTarget,b=this.action(l)||"copy",M=j({action:b,container:this.container,target:this.target(l),text:this.text(l)});this.emit(M?"success":"error",{action:b,text:M,trigger:l,clearSelection:function(){l&&l.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(i){return L("action",i)}},{key:"defaultTarget",value:function(i){var l=L("target",i);if(l)return document.querySelector(l)}},{key:"defaultText",value:function(i){return L("text",i)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return O(i,l)}},{key:"cut",value:function(i){return m(i)}},{key:"isSupported",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],l=typeof i=="string"?[i]:i,b=!!document.queryCommandSupported;return l.forEach(function(M){b=b&&!!document.queryCommandSupported(M)}),b}}]),e}(r()),K=J},828:function(d){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}function c(r,f){for(;r&&r.nodeType!==a;){if(typeof r.matches=="function"&&r.matches(f))return r;r=r.parentNode}}d.exports=c},438:function(d,a,t){var c=t(828);function r(p,g,y,v,m){var S=s.apply(this,arguments);return p.addEventListener(y,S,m),{destroy:function(){p.removeEventListener(y,S,m)}}}function f(p,g,y,v,m){return typeof p.addEventListener=="function"?r.apply(null,arguments):typeof y=="function"?r.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(S){return r(S,g,y,v,m)}))}function s(p,g,y,v){return function(m){m.delegateTarget=c(m.target,g),m.delegateTarget&&v.call(p,m)}}d.exports=f},879:function(d,a){a.node=function(t){return t!==void 0&&t instanceof HTMLElement&&t.nodeType===1},a.nodeList=function(t){var c=Object.prototype.toString.call(t);return t!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in t&&(t.length===0||a.node(t[0]))},a.string=function(t){return typeof t=="string"||t instanceof String},a.fn=function(t){var c=Object.prototype.toString.call(t);return c==="[object Function]"}},370:function(d,a,t){var c=t(879),r=t(438);function f(y,v,m){if(!y&&!v&&!m)throw new Error("Missing required arguments");if(!c.string(v))throw new TypeError("Second argument must be a String");if(!c.fn(m))throw new TypeError("Third argument must be a Function");if(c.node(y))return s(y,v,m);if(c.nodeList(y))return p(y,v,m);if(c.string(y))return g(y,v,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function s(y,v,m){return y.addEventListener(v,m),{destroy:function(){y.removeEventListener(v,m)}}}function p(y,v,m){return Array.prototype.forEach.call(y,function(S){S.addEventListener(v,m)}),{destroy:function(){Array.prototype.forEach.call(y,function(S){S.removeEventListener(v,m)})}}}function g(y,v,m){return r(document.body,y,v,m)}d.exports=f},817:function(d){function a(t){var c;if(t.nodeName==="SELECT")t.focus(),c=t.value;else if(t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){var r=t.hasAttribute("readonly");r||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),r||t.removeAttribute("readonly"),c=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var f=window.getSelection(),s=document.createRange();s.selectNodeContents(t),f.removeAllRanges(),f.addRange(s),c=f.toString()}return c}d.exports=a},279:function(d){function a(){}a.prototype={on:function(t,c,r){var f=this.e||(this.e={});return(f[t]||(f[t]=[])).push({fn:c,ctx:r}),this},once:function(t,c,r){var f=this;function s(){f.off(t,s),c.apply(r,arguments)}return s._=c,this.on(t,s,r)},emit:function(t){var c=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),f=0,s=r.length;for(f;f{const T=(E==null?void 0:E.appendToBody)===void 0?!0:E.appendToBody;return{toClipboard(_,x){return new Promise((h,d)=>{const a=document.createElement("button"),t=new q(a,{text:()=>_,action:()=>"copy",container:x!==void 0?x:document.body});t.on("success",c=>{t.destroy(),h(c)}),t.on("error",c=>{t.destroy(),d(c)}),T&&document.body.appendChild(a),a.click(),T&&document.body.removeChild(a)})}}};function it(){const{t:E}=Z(),{toClipboard:T}=V();return{percentFormat:(r,f,s)=>s?`${s}%`:"-",dateFormatYMD:(r,f,s)=>s?k(new Date(s),"YYYY-mm-dd"):"-",dateFormatYMDHMS:(r,f,s)=>s?k(new Date(s),"YYYY-mm-dd HH:MM:SS"):"-",dateFormatHMS:(r,f,s)=>{if(!s)return"-";let p=0;return typeof r=="number"&&(p=r),typeof s=="number"&&(p=s),k(new Date(p*1e3),"HH:MM:SS")},scaleFormat:(r="0",f=4)=>Number.parseFloat(r).toFixed(f),scale2Format:(r="0")=>Number.parseFloat(r).toFixed(2),copyText:r=>new Promise((f,s)=>{try{T(r),N.success(E("message.layout.copyTextSuccess")),f(r)}catch(p){N.error(E("message.layout.copyTextError")),s(p)}})}}export{it as c}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/contextmenu.20dad4e9.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/contextmenu.20dad4e9.js new file mode 100644 index 00000000..73b56825 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/contextmenu.20dad4e9.js @@ -0,0 +1 @@ +import{h as p,K as k,a as y,o as v,a4 as b,w as L,a9 as I,j as o,v as S,x as V,y as E,k as a,q as d,u,l as i,F as m,Z as M,D as $,C as B,A as D,E as T,T as W}from"./vue.bd0669ce.js";import{_ as j}from"./_plugin-vue_export-helper.c27b6911.js";const A={class:"el-dropdown-menu"},F=["onClick"],N=p({name:"layoutTagsViewContextmenu"}),O=p({...N,props:{dropdown:{type:Object,default:()=>({x:0,y:0})}},emits:["currentContextmenuClick"],setup(f,{expose:x,emit:_}){const n=f,e=k({isShow:!1,dropdownList:[{contextMenuClickId:0,txt:"message.tagsView.refresh",affix:!1,icon:"ele-RefreshRight"},{contextMenuClickId:1,txt:"message.tagsView.close",affix:!1,icon:"ele-Close"},{contextMenuClickId:2,txt:"message.tagsView.closeOther",affix:!1,icon:"ele-CircleClose"},{contextMenuClickId:3,txt:"message.tagsView.closeAll",affix:!1,icon:"ele-FolderDelete"},{contextMenuClickId:4,txt:"message.tagsView.fullscreen",affix:!1,icon:"iconfont icon-fullscreen"}],item:{},arrowLeft:10}),r=y(()=>n.dropdown.x+117>document.documentElement.clientWidth?{x:document.documentElement.clientWidth-117-5,y:n.dropdown.y}:n.dropdown),w=t=>{_("currentContextmenuClick",Object.assign({},{contextMenuClickId:t},e.item))},C=t=>{var l;e.item=t,(l=t.meta)!=null&&l.isAffix?e.dropdownList[1].affix=!0:e.dropdownList[1].affix=!1,c(),setTimeout(()=>{e.isShow=!0},10)},c=()=>{e.isShow=!1};return v(()=>{document.body.addEventListener("click",c)}),b(()=>{document.body.removeEventListener("click",c)}),L(()=>n.dropdown,({x:t})=>{t+117>document.documentElement.clientWidth?e.arrowLeft=117-(document.documentElement.clientWidth-t):e.arrowLeft=10},{deep:!0}),x({openContextmenu:C}),(t,l)=>{const h=I("SvgIcon");return o(),S(W,{name:"el-zoom-in-center"},{default:V(()=>[E((o(),a("div",{"aria-hidden":"true",class:"el-dropdown__popper el-popper is-light is-pure custom-contextmenu",role:"tooltip","data-popper-placement":"bottom",style:d(`top: ${u(r).y+5}px;left: ${u(r).x}px;`),key:Math.random()},[i("ul",A,[(o(!0),a(m,null,M(e.dropdownList,(s,g)=>(o(),a(m,null,[s.affix?D("",!0):(o(),a("li",{class:"el-dropdown-menu__item","aria-disabled":"false",tabindex:"-1",key:g,onClick:z=>w(s.contextMenuClickId)},[$(h,{name:s.icon},null,8,["name"]),i("span",null,B(t.$t(s.txt)),1)],8,F))],64))),256))]),i("div",{class:"el-popper__arrow",style:d({left:`${e.arrowLeft}px`})},null,4)],4)),[[T,e.isShow]])]),_:1})}}});const K=j(O,[["__scopeId","data-v-b988030b"]]);export{K as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/cssMode.38e576ce.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/cssMode.38e576ce.js new file mode 100644 index 00000000..18e3ad03 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/cssMode.38e576ce.js @@ -0,0 +1,4 @@ +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./monaco.c8c1dd6a.js";import"./preload-helper.101896b7.js";import"./vue.bd0669ce.js";var We=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Oe=Object.getOwnPropertyNames,Ve=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Oe(n))!Ve.call(e,t)&&t!==i&&We(e,t,{get:()=>n[t],enumerable:!(r=Ue(n,t))||r.enumerable});return e},He=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};He(c,Ne);var ze=2*60*1e3,Xe=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>ze&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var re;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||F.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,y,N){return n.call(f)==="[object Number]"&&y<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,y){return Array.isArray(f)&&f.every(y)}e.typedArray=b})(s||(s={}));var $e=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>Qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function qe(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:qe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Ge=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ze(d.command),range:u,kind:Ye(d.kind)};return d.textEdit&&(Je(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function A(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Je(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ye(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:_(e.range),text:e.newText}}function Ze(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ke=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(!!t)return{range:_(t.range),contents:tt(t.contents)}})}};function et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Pe(e){return typeof e=="string"?{value:e}:et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function tt(e){if(!!e)return Array.isArray(e)?e.map(Pe):[Pe(e)]}var rt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(!!t)return t.map(a=>({range:_(a.range),kind:nt(a.kind)}))})}};function nt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var it=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(!!t)return[Te(t)]})}};function Te(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var at=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(!!a)return a.map(Te)})}},ot=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>st(a))}};function st(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var ut=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ct(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ct(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var kt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},dt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Se(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},ft=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Se(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Se(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var gt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},lt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ht(a.kind)),o})})}};function ht(e){switch(e){case P.Comment:return c.languages.FoldingRangeKind.Comment;case P.Imports:return c.languages.FoldingRangeKind.Imports;case P.Region:return c.languages.FoldingRangeKind.Region}}var vt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}};function bt(e){const n=[],i=[],r=new Xe(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Fe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Ge(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ke(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new rt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new it(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new at(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new ut(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new ot(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new gt(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new lt(t))),u.diagnostics&&i.push(new $e(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new vt(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new dt(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ft(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Fe(e)}}function Fe(e){for(;e.length;)e.pop().dispose()}export{Ge as CompletionAdapter,it as DefinitionAdapter,$e as DiagnosticsAdapter,gt as DocumentColorAdapter,dt as DocumentFormattingEditProvider,rt as DocumentHighlightAdapter,kt as DocumentLinkAdapter,ft as DocumentRangeFormattingEditProvider,ut as DocumentSymbolAdapter,lt as FoldingRangeAdapter,Ke as HoverAdapter,at as ReferenceAdapter,ot as RenameAdapter,vt as SelectionRangeAdapter,Xe as WorkerManager,A as fromPosition,Me as fromRange,bt as setupMode,_ as toRange,j as toTextEdit}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/data.a7368d0d.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/data.a7368d0d.js new file mode 100644 index 00000000..8bf8b923 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/data.a7368d0d.js @@ -0,0 +1 @@ +import{u as s}from"./vue-i18n.cjs.2a00fe88.js";import{u}from"./index.3f2ce315.js";import{g as r}from"./header.9390c1c5.js";import{i as n}from"./index.c3b4fd97.js";function o(){const{t:a}=s();return[{text:a("message.dateMsg.oneDay"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-3600*1e3*24),[e,t]}},{text:a("message.dateMsg.oneWeek"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-3600*1e3*24*7),[e,t]}},{text:a("message.dateMsg.halfMonth"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-3600*1e3*24*15),[e,t]}},{text:a("message.dateMsg.oneMonth"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-3600*1e3*24*30),[e,t]}}]}function m(){const{t:a}=s();return[{text:a("message.dateMsg.oneMinute"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-60*1e3),[e,t]}},{text:a("message.dateMsg.fiveMinute"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-60*1e3*5),[e,t]}},{text:a("message.dateMsg.fifteenMinute"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-60*1e3*15),[e,t]}},{text:a("message.dateMsg.oneHours"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-3600*1e3),[e,t]}},{text:a("message.dateMsg.today"),value:()=>{const t=new Date;return[new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),t]}},{text:a("message.dateMsg.oneDay"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-3600*1e3*24),[e,t]}},{text:a("message.dateMsg.oneWeek"),value:()=>{const t=new Date,e=new Date;return e.setTime(e.getTime()-3600*1e3*24*7),[e,t]}}]}async function d(){let a=await u().getList({namespaceId:r(),page:1,size:1024}),t=[];return a.list.forEach(function(e){t.push({id:e.id,label:e.name})}),t}function f(){const{t:a}=s();return[{id:1,label:a("message.instanceStatus.waiting")},{id:5,label:a("message.instanceStatus.running")},{id:10,label:a("message.instanceStatus.success")},{id:15,label:a("message.instanceStatus.fail")},{id:20,label:a("message.instanceStatus.stop")},{id:25,label:a("message.instanceStatus.cancel")}]}function S(a){const{t}=n.global;switch(a){case 1:return{tag:"",label:t("message.instanceStatus.waiting")};case 5:return{tag:"",label:t("message.instanceStatus.running")};case 10:return{tag:"success",label:t("message.instanceStatus.success")};case 15:return{tag:"danger",label:t("message.instanceStatus.fail")};case 20:return{tag:"info",label:t("message.instanceStatus.stop")};case 25:return{tag:"warning",label:t("message.instanceStatus.cancel")};default:return{tag:"",label:"Default"}}}function b(a){const{t}=n.global;switch(a){case 5:return{tag:"info",label:t("message.taskStatus.init")};case 10:return{tag:"warning",label:t("message.taskStatus.failover")};case 15:return{tag:"",label:t("message.taskStatus.running")};case 20:return{tag:"danger",label:t("message.taskStatus.failed")};case 25:return{tag:"success",label:t("message.taskStatus.success")};case 30:return{tag:"warning",label:t("message.taskStatus.stop")};default:return{tag:"",label:"default"}}}function w(){const{t:a}=s();return[{id:5,label:a("message.taskStatus.init")},{id:10,label:a("message.taskStatus.failover")},{id:15,label:a("message.taskStatus.running")},{id:20,label:a("message.taskStatus.failed")},{id:25,label:a("message.taskStatus.success")},{id:30,label:a("message.taskStatus.stop")}]}export{b as a,w as b,m as c,d,S as e,f,o as g}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/defaults.81a03ab9.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/defaults.81a03ab9.js new file mode 100644 index 00000000..8c2a7876 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/defaults.81a03ab9.js @@ -0,0 +1 @@ +import{_ as t}from"./preload-helper.101896b7.js";import{h as p,ap as r,r as _,aq as b,ar as C,o as L,w as i,a9 as f,j as k,v as w,x as n,D as e,u as s,J as x}from"./vue.bd0669ce.js";import{u as E}from"./themeConfig.cb88f033.js";import{N as M}from"./loading.3e617409.js";const S=p({name:"layoutDefaults"}),N=p({...S,setup(g){const m=r(()=>t(()=>import("./aside.aa1159e5.js"),["assets/aside.aa1159e5.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/index.aa7cec2e.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"])),d=r(()=>t(()=>import("./header.52106c52.js"),["assets/header.52106c52.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js"])),y=r(()=>t(()=>import("./main.b18eb16d.js"),["assets/main.b18eb16d.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/themeConfig.cb88f033.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css"])),o=_(""),a=_(),R=b(),v=E(),{themeConfig:h}=C(v),l=()=>{o.value.update(),a.value.layoutMainScrollbarRef.update()},c=()=>{x(()=>{setTimeout(()=>{l(),o.value.wrapRef.scrollTop=0,a.value.layoutMainScrollbarRef.wrapRef.scrollTop=0},500)})};return L(()=>{c(),M.done(600)}),i(()=>R.path,()=>{c()}),i(h,()=>{l()},{deep:!0}),(A,D)=>{const T=f("el-scrollbar"),u=f("el-container");return k(),w(u,{class:"layout-container"},{default:n(()=>[e(s(m)),e(u,{class:"layout-container-view h100"},{default:n(()=>[e(T,{ref_key:"layoutScrollbarRef",ref:o,class:"layout-backtop"},{default:n(()=>[e(s(d)),e(s(y),{ref_key:"layoutMainRef",ref:a},null,512)]),_:1},512)]),_:1})]),_:1})}}});export{N as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/demo1.a3359329.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/demo1.a3359329.js new file mode 100644 index 00000000..25a38d64 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/demo1.a3359329.js @@ -0,0 +1,27 @@ +import{i as r,L as d}from"./echarts.c5874920.js";import"./bmap.6179077b.js";import{f as S}from"./formatTime.057ac5b9.js";import{N as W}from"./loading.3e617409.js";import{h as z,r as c,K as D,o as I,a4 as O,j as V,k as G,l as t,C as Q,aw as Y,aE as R,aF as Z}from"./vue.bd0669ce.js";import{_ as J}from"./_plugin-vue_export-helper.c27b6911.js";const F=[{name:"深圳市人民政府",value:"100"},{name:"莲花山公园",value:"100"},{name:"世界之窗",value:"100"},{name:"华侨城欢乐谷",value:"100"},{name:"宝安区西乡",value:"100"}],H={深圳市人民政府:[114.064524,22.549225],莲花山公园:[114.0658,22.560072],世界之窗:[113.979419,22.540579],华侨城欢乐谷:[113.986066,22.548056],宝安区西乡:[113.869053,22.581714]},N=[{url:"https://img1.baidu.com/it/u=2425496005,2401702709&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500",name:"深圳市人民政府",add:"深圳市福田区福中三路市民中心C区",dec:"深圳市人民政府是根据《中华人民共和国地方各级人民代表大会和地方各级人民政府组织法》设立的,是深圳市人民代表大会的执行机关,是深圳市的国家行政机关。"},{url:"https://img0.baidu.com/it/u=2666213152,2487785512&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500",name:"莲花山公园",add:"广东省深圳市福田区莲花街道莲花北社区红荔路6030号",dec:"莲花山公园筹建于1992年10月10日 ,1997年6月23日正式对外局部开放。"},{url:"https://img1.baidu.com/it/u=1595204841,1838139326&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",name:"世界之窗",add:"深圳市南山区深南大道9037号",dec:"这里,世界首座实景拍摄悬空式球幕影院“飞跃美利坚””,为游客提供集休闲放松于一体的都市时尚生活空间。"},{url:"https://img0.baidu.com/it/u=1586832283,2276617306&fm=253&fmt=auto&app=138&f=JPEG?w=476&h=500",name:"华侨城欢乐谷",add:"广东省深圳市南山区沙河街道星河街社区侨城西街1号",dec:"深圳欢乐谷注重满足人们参与、体验的新型诱游需求,营造出自然、清新、活泼、惊奇、热烈、刺激的休闲旅游氛围。"},{url:"https://img0.baidu.com/it/u=2899429152,3158963267&fm=253&fmt=auto&app=138&f=JPEG?w=200&h=200",name:"宝安区西乡",add:"西乡街道下辖25个社区",dec:"西乡街道,隶属于广东省深圳市宝安区,位于宝安区西南部,东接石岩街道,南接新安街道,西至珠江口岸边,北接航城街道。"}],n=h=>(R("data-v-f07c97e0"),h=h(),Z(),h),$={class:"visualizing-demo1"},j={class:"visualizing-container"},K={class:"visualizing-container-head"},U={class:"visualizing-container-head-left"},q={class:"visualizing-container-head-left-text"},X={class:"visualizing-container-head-left-text-box"},tt=Y('
深圳市xxx软件科技有限公司
旅游经济
🌤 多云转晴东南风 26~30℃
',2),et={class:"visualizing-container-content-left"},it={class:"visualizing-container-content-left-flex"},ot=n(()=>t("div",{class:"visualizing-container-title"},[t("i",{class:"el-icon-s-shop"}),t("span",null,"产业概况")],-1)),at=n(()=>t("hr",{class:"visualizing-container-title-colorful"},null,-1)),st={class:"visualizing-container-content-left-flex"},lt=n(()=>t("div",{class:"visualizing-container-title"},[t("i",{class:"el-icon-s-promotion"}),t("span",null,"A级风景区对比")],-1)),nt=n(()=>t("hr",{class:"visualizing-container-title-colorful"},null,-1)),rt={class:"visualizing-container-content-center"},ct={class:"visualizing-container-content-center-bottom"},dt={class:"visualizing-container-content-center-bottom-flex"},ut=n(()=>t("div",{class:"visualizing-container-title"},[t("i",{class:"el-icon-s-custom"}),t("span",null,"游客过夜情况")],-1)),ht=n(()=>t("hr",{class:"visualizing-container-title-colorful"},null,-1)),ft={class:"visualizing-container-content-center-bottom-flex"},pt=n(()=>t("div",{class:"visualizing-container-title"},[t("i",{class:"el-icon-s-flag"}),t("span",null,"游客驻留时长")],-1)),mt=n(()=>t("hr",{class:"visualizing-container-title-colorful"},null,-1)),gt={class:"visualizing-container-content-right"},vt={class:"visualizing-container-content-right-flex"},yt=n(()=>t("div",{class:"visualizing-container-title"},[t("i",{class:"el-icon-s-marketing"}),t("span",null,"当日游客趋势分析")],-1)),xt=n(()=>t("hr",{class:"visualizing-container-title-colorful"},null,-1)),bt={class:"visualizing-container-content-right-flex"},wt=n(()=>t("div",{class:"visualizing-container-title"},[t("i",{class:"el-icon-s-data"}),t("span",null,"当月游客趋势分析")],-1)),_t=n(()=>t("hr",{class:"visualizing-container-title-colorful"},null,-1)),St=z({name:"visualizingLinkDemo1"}),zt=z({...St,setup(h){const m=c(),g=c(),v=c(),y=c(),x=c(),b=c(),w=c(),i=D({echartsMapList:F,echartsMapData:H,echartsMapImgs:N,time:{txt:"",fun:0},myCharts:[]}),C=()=>{i.time.txt=S(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"),i.time.fun=window.setInterval(()=>{i.time.txt=S(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ")},1e3)},_=e=>{let o=[];for(let l=0;l{const e=r(m.value),o={tooltip:{trigger:"item",formatter(s){let a=i.echartsMapImgs.find(p=>p.name===s.name);return`
+
+ +
+ ${a==null?void 0:a.name} +
+
+
+
地址:
+
${a==null?void 0:a.add}
+
+
+
概括:
+
${a==null?void 0:a.dec}
+
+
`}},color:["#ea7ccc"],bmap:{center:[114.064524,22.549225],zoom:11,roam:!0,mapStyle:{}},series:[{name:"门票收入",type:"scatter",coordinateSystem:"bmap",data:_(i.echartsMapList),symbolSize:function(s){return s[2]/10},encode:{value:2},label:{formatter:"{b}",position:"right",show:!1},emphasis:{label:{show:!0}}},{name:"门票收入",type:"effectScatter",coordinateSystem:"bmap",data:_(i.echartsMapList.sort(function(s,a){return a.value-s.value}).slice(0,6)),symbolSize:function(s){return s[2]/10},encode:{value:2},showEffectOn:"render",rippleEffect:{brushType:"stroke"},hoverAnimation:!0,label:{formatter:"{b}",position:"right",show:!0},itemStyle:{shadowBlur:100,shadowColor:"#333"},zlevel:1}]};e.setOption(o),i.myCharts.push(e);const l=e.getModel().getComponent("bmap").getBMap();l.setMapType(BMAP_SATELLITE_MAP),new BMap.Boundary().get("深圳",function(s){let a=s.boundaries.length;for(let f=0;f{const e=r(g.value),o={grid:{top:50,right:0,bottom:50,left:30},tooltip:{trigger:"axis"},xAxis:{data:["1月","2月","3月","4月","5月","6月"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{color:"#16cfd0"}},yAxis:[{type:"value",name:"价格",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"预购队列",type:"line",data:[200,85,112,275,305,415],itemStyle:{color:"#16cfd0"}},{name:"最新成交价",type:"line",data:[50,85,22,155,170,25],itemStyle:{color:"#febb50"}}]};e.setOption(o),i.myCharts.push(e)},A=()=>{const e=r(v.value),o={grid:{top:50,right:10,bottom:40,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["1月","2月","3月","4月","5月"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{interval:0,color:"#16cfd0",textStyle:{fontSize:10}}},yAxis:[{type:"value",name:"销量",axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"客流",type:"line",stack:"总量",smooth:!0,lineStyle:{width:0},areaStyle:{opacity:.8,color:new d(0,0,0,1,[{offset:0,color:"rgba(128, 255, 165)"},{offset:1,color:"rgba(1, 191, 236)"}])},emphasis:{focus:"series"},data:[140,232,101,264,90]},{name:"天数",type:"line",stack:"总量",smooth:!0,lineStyle:{width:0},areaStyle:{opacity:.8,color:new d(0,0,0,1,[{offset:0,color:"rgba(0, 221, 255)"},{offset:1,color:"rgba(77, 119, 255)"}])},emphasis:{focus:"series"},data:[120,282,111,234,220]}]};e.setOption(o),i.myCharts.push(e)},T=()=>{const e=r(y.value),o=100,l=1e3,u={grid:{top:50,right:10,bottom:66,left:38},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:[{type:"category",data:["地区","地区","地区","地区","地区","地区","地区","地区","地区","地区"],axisLabel:{color:"#16cfd0",textStyle:{fontSize:9},interval:0,rotate:-45},axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1}}],yAxis:[{type:"value",name:"天数",nameGap:25,axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{type:"bar",barWidth:15,itemStyle:{normal:{color:new d(0,0,0,1,[{offset:0,color:"#de682e"},{offset:1,color:"#ecc232"}])}},label:{normal:{show:!0,position:"top",formatter:function(s){return s.value==l||s.value==o?"":s.value},textStyle:{color:"rgba(22, 207, 208, 0.8)",fontSize:10}}},markPoint:{symbolSize:30,label:{normal:{textStyle:{color:"#ffffff",fontSize:10}}},data:[{name:"年最低",value:o,xAxis:0,yAxis:100},{name:"年最高",value:l,xAxis:9,yAxis:1e3}]},data:[100,200,300,400,500,600,700,800,900,1e3]}]};e.setOption(u),i.myCharts.push(e)},M=()=>{const e=r(x.value),o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:26,right:10,bottom:66,left:45},xAxis:{type:"value",axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}}},yAxis:{type:"category",axisLabel:{color:"#16cfd0"}},series:[{name:"已完成",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},barWidth:12,itemStyle:{label:{show:!0},labelLine:{show:!1},color:new d(0,0,1,0,[{offset:0,color:"rgba(7,165,255,0.2)"},{offset:1,color:"rgba(7,165,255,1)"}])}},{name:"进行中",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},barWidth:12,itemStyle:{label:{show:!0},labelLine:{show:!1},color:new d(0,0,1,0,[{offset:0,color:"rgba(41,244,236,0)"},{offset:1,color:"rgba(41,244,236,1)"}])}}],dataset:{source:[{status:"已签收",value1:33,value2:93},{status:"配送中",value1:53,value2:32},{status:"已出库",value1:78,value2:65},{status:"采购中",value1:12,value2:35},{status:"接单中",value1:90,value2:52}]}};e.setOption(o),i.myCharts.push(e)},B=()=>{const e=r(b.value),o={grid:{top:50,right:30,bottom:50,left:20},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{data:["1月","2月","3月","4月","5月","6月"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.5)",width:1}},axisTick:{show:!1},axisLabel:{color:"#16cfd0"}},yAxis:[{type:"value",name:"亿元",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}},{type:"value",name:"同比",position:"right",axisLine:{show:!1},axisLabel:{show:!0,formatter:"{value}%",textStyle:{color:"#16cfd0"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"销售水量",type:"line",yAxisIndex:1,smooth:!0,showAllSymbol:!0,symbol:"circle",itemStyle:{color:"#058cff"},lineStyle:{color:"#058cff"},areaStyle:{color:"rgba(5,140,255, 0.2)"},data:[4.2,3.8,4.8,3.5,2.9,2.8]},{name:"主营业务",type:"bar",barWidth:15,itemStyle:{normal:{color:new d(0,0,0,1,[{offset:0,color:"#00FFE3"},{offset:1,color:"#4693EC"}])}},data:[4.2,3.8,4.8,3.5,2.9,2.8]}]};e.setOption(o),i.myCharts.push(e)},E=()=>{const e=r(w.value),o={grid:{top:50,right:10,bottom:40,left:30},tooltip:{trigger:"axis"},xAxis:{data:["1月","2月","3月","4月","5月","6月"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{color:"#16cfd0"}},yAxis:[{type:"value",name:"人数(万)",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"预购队列",type:"line",data:[20,15,40,55,65,85],smooth:!0,itemStyle:{color:"#EA7CCC"}},{name:"最新成交价",type:"line",data:[30,45,65,85,60,105],smooth:!0,itemStyle:{color:"#FAC958"}}]};e.setOption(o),i.myCharts.push(e)},P=()=>{window.addEventListener("resize",()=>{for(let e=0;e{W.done(),C(),await L(),await k(),await A(),await T(),await M(),await B(),await E(),await P()}),O(()=>{window.clearInterval(i.time.fun)}),(e,o)=>(V(),G("div",$,[t("div",{ref_key:"visualizingDemo1",ref:m,style:{height:"100%"}},null,512),t("div",j,[t("div",K,[t("div",U,[t("div",q,[t("div",X,Q(i.time.txt),1)])]),tt]),t("div",et,[t("div",it,[ot,at,t("div",{ref_key:"visualizingContentLeftTop",ref:g,style:{height:"100%"}},null,512)]),t("div",st,[lt,nt,t("div",{ref_key:"visualizingContentLeftBottom",ref:v,style:{height:"100%"}},null,512)])]),t("div",rt,[t("div",ct,[t("div",dt,[ut,ht,t("div",{ref_key:"visualizingContentCenterTop",ref:y,style:{height:"100%"}},null,512)]),t("div",ft,[pt,mt,t("div",{ref_key:"visualizingContentCenterBottom",ref:x,style:{height:"100%"}},null,512)])])]),t("div",gt,[t("div",vt,[yt,xt,t("div",{ref_key:"visualizingContentRightTop",ref:b,style:{height:"100%"}},null,512)]),t("div",bt,[wt,_t,t("div",{ref_key:"visualizingContentRightBottom",ref:w,style:{height:"100%"}},null,512)])])])]))}});const Bt=J(zt,[["__scopeId","data-v-f07c97e0"]]);export{Bt as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/demo2.e8eb015b.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/demo2.e8eb015b.js new file mode 100644 index 00000000..612ec158 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/demo2.e8eb015b.js @@ -0,0 +1,4282 @@ +import{p as Ot,m as eo,A as Yl,z as ql,C as ws,R as Ss,D as $l,E as da,q as Bt,F as Kl,G as Ql,H as Jl,o as eh,I as th,J as $r,K as fe,M as rr,N as rh,O as Es,P as En,Z as un,Q as cn,T as Ri,U as bs,V as As,W as Ls,X as bn,s as An,Y as Ma,_ as ih,$ as nh,a as ah,a0 as oh,v as tt,a1 as va,h as Ni,S as Ft,a2 as Pa,B as sh,a3 as lh,a4 as to,a5 as hh,a6 as uh,a7 as Ra,a8 as ch,a9 as Ur,aa as ro,ab as fh,ac as dh,ad as vh,ae as Cs,af as Dt,ag as Mt,ah as ph,ai as mh,aj as Ui,ak as _h,c as gh,al as yh,am as Ds,an as xh,ao as Th,t as io,ap as no,aq as ao,i as br,L as Un}from"./echarts.c5874920.js";import"./echarts.9c516ade.js";import{f as oo}from"./formatTime.057ac5b9.js";import{N as wh}from"./loading.3e617409.js";import{h as Ms,r as Ar,K as Sh,o as Eh,a4 as bh,a9 as Gi,j as ht,k as pt,l as O,D as ut,C as Je,x as zi,F as Lr,Z as Cr,B as so,aw as Ps,aE as Ah,aF as Lh,v as Ch,n as Hi}from"./vue.bd0669ce.js";import{_ as Dh}from"./_plugin-vue_export-helper.c27b6911.js";function lo(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?ho(this,e.call(this,l)):Mh(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Gh={get:Uh};var Gn,st={};st.supportWebGL=function(){if(Gn==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch{Gn=!1}return Gn};st.Int8Array=typeof Int8Array>"u"?Array:Int8Array;st.Uint8Array=typeof Uint8Array>"u"?Array:Uint8Array;st.Uint16Array=typeof Uint16Array>"u"?Array:Uint16Array;st.Uint32Array=typeof Uint32Array>"u"?Array:Uint32Array;st.Int16Array=typeof Int16Array>"u"?Array:Int16Array;st.Float32Array=typeof Float32Array>"u"?Array:Float32Array;st.Float64Array=typeof Float64Array>"u"?Array:Float64Array;var dr={};typeof window<"u"?dr=window:typeof global<"u"&&(dr=global);st.requestAnimationFrame=dr.requestAnimationFrame||dr.msRequestAnimationFrame||dr.mozRequestAnimationFrame||dr.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};st.createCanvas=function(){return document.createElement("canvas")};st.createImage=function(){return new dr.Image};st.request={get:Gh.get};st.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};st.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};const Re=st;var Xe=function(){this.head=null,this.tail=null,this._length=0};Xe.prototype.insert=function(e){var t=new Xe.Entry(e);return this.insertEntry(t),t};Xe.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new Xe.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};Xe.prototype.insertBeforeEntry=function(e,t){var r=new Xe.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};Xe.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};Xe.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};Xe.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};Xe.prototype.getHead=function(){if(this.head)return this.head.value};Xe.prototype.getTail=function(){if(this.tail)return this.tail.value};Xe.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};Xe.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};Xe.prototype.length=function(){return this._length};Xe.prototype.isEmpty=function(){return this._length===0};Xe.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t<"u";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};Xe.prototype.clear=function(){this.tail=this.head=null,this._length=0};Xe.Entry=function(e){this.value=e,this.next=null,this.prev=null};const zh=Xe;var Kr=function(e){this._list=new zh,this._map={},this._maxSize=e||10};Kr.prototype.setMaxSize=function(e){this._maxSize=e};Kr.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};Kr.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};Kr.prototype.remove=function(e){var t=this._map[e];typeof t<"u"&&(delete this._map[e],this._list.remove(t))};Kr.prototype.clear=function(){this._list.clear(),this._map={}};const Rs=Kr;var Se={},fo={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 Lt(e){return e=Math.round(e),e<0?0:e>255?255:e}function Hh(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ti(e){return e<0?0:e>1?1:e}function zn(e){return e.length&&e.charAt(e.length-1)==="%"?Lt(parseFloat(e)/100*255):Lt(parseInt(e,10))}function Vr(e){return e.length&&e.charAt(e.length-1)==="%"?Ti(parseFloat(e)/100):Ti(parseFloat(e))}function Hn(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Qt(e,t,r){return e+(t-e)*r}function At(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function pa(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ns=new Rs(20),Vi=null;function Dr(e,t){Vi&&pa(Vi,t),Vi=Ns.put(e,Vi||t.slice())}Se.parse=function(e,t){if(!!e){t=t||[];var r=Ns.get(e);if(r)return pa(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in fo)return pa(t,fo[i]),Dr(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){At(t,0,0,0,1);return}return At(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),Dr(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){At(t,0,0,0,1);return}return At(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),Dr(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){At(t,0,0,0,1);return}h=Vr(l.pop());case"rgb":if(l.length!==3){At(t,0,0,0,1);return}return At(t,zn(l[0]),zn(l[1]),zn(l[2]),h),Dr(e,t),t;case"hsla":if(l.length!==4){At(t,0,0,0,1);return}return l[3]=Vr(l[3]),ma(l,t),Dr(e,t),t;case"hsl":if(l.length!==3){At(t,0,0,0,1);return}return ma(l,t),Dr(e,t),t;default:return}}At(t,0,0,0,1)}};Se.parseToFloat=function(e,t){if(t=Se.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function ma(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Vr(e[1]),n=Vr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],At(t,Lt(Hn(o,a,r+1/3)*255),Lt(Hn(o,a,r)*255),Lt(Hn(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vh(e){if(!!e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,c=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-c:r===a?l=1/3+u-d:i===a&&(l=2/3+c-u),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,h,s];return e[3]!=null&&f.push(e[3]),f}}Se.lift=function(e,t){var r=Se.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return Se.stringify(r,r.length===4?"rgba":"rgb")}};Se.toHex=function(e){var t=Se.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Se.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=Lt(Qt(o[0],s[0],l)),r[1]=Lt(Qt(o[1],s[1],l)),r[2]=Lt(Qt(o[2],s[2],l)),r[3]=Ti(Qt(o[3],s[3],l)),r}};Se.fastMapToColor=Se.fastLerp;Se.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Se.parse(t[n]),s=Se.parse(t[a]),l=i-n,h=Se.stringify([Lt(Qt(o[0],s[0],l)),Lt(Qt(o[1],s[1],l)),Lt(Qt(o[2],s[2],l)),Ti(Qt(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};Se.mapToColor=Se.lerp;Se.modifyHSL=function(e,t,r,i){if(e=Se.parse(e),e)return e=Vh(e),t!=null&&(e[0]=Hh(t)),r!=null&&(e[1]=Vr(r)),i!=null&&(e[2]=Vr(i)),Se.stringify(ma(e),"rgba")};Se.modifyAlpha=function(e,t){if(e=Se.parse(e),e&&t!=null)return e[3]=Ti(t),Se.stringify(e,"rgba")};Se.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};const kh=Se;var Wh=kh.parseToFloat,Vn={};function vo(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if(typeof e=="object")for(var r in e){var i=e[r];this.setUniform(r,i)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var r=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(h){var u=this.uniforms[h].type;return u==="t"||u==="tv"},this);var n=this.vertexDefines,a=this.fragmentDefines;if(this.vertexDefines=Ye.clone(e.vertexDefines),this.fragmentDefines=Ye.clone(e.fragmentDefines),t){for(var o in r)i[o]&&(i[o].value=r[o].value);Ye.defaults(this.vertexDefines,n),Ye.defaults(this.fragmentDefines,a)}var s={};for(var l in e.textures)s[l]={shaderType:e.textures[l].shaderType,type:e.textures[l].type,enabled:t&&this._textureStatus[l]?this._textureStatus[l].enabled:!1};this._textureStatus=s,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=Ye.clone(this.vertexDefines),e.fragmentDefines=Ye.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,r){var i=this.vertexDefines,n=this.fragmentDefines;e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<3&&(r=t,t=e,e="both"),r=r??null,(e==="vertex"||e==="both")&&i[t]!==r&&(i[t]=r,this._programKey=""),(e==="fragment"||e==="both")&&n[t]!==r&&(n[t]=r,e!=="both"&&(this._programKey=""))},undefine:function(e,t){e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<2&&(t=e,e="both"),(e==="vertex"||e==="both")&&this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),(e==="fragment"||e==="both")&&this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],e!=="both"&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return this.vertexDefines[t]!==void 0;case"fragment":return this.fragmentDefines[t]!==void 0}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e)){for(var t=0;t0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n),e};K.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]};K.cross=function(e,t,r){var i=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=i,e};K.lerp=function(e,t,r,i){var n=t[0],a=t[1];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e};K.random=function(e,t){t=t||1;var r=GLMAT_RANDOM()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e};K.transformMat2=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n,e[1]=r[1]*i+r[3]*n,e};K.transformMat2d=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e};K.transformMat3=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[3]*n+r[6],e[1]=r[1]*i+r[4]*n+r[7],e};K.transformMat4=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[4]*n+r[12],e[1]=r[1]*i+r[5]*n+r[13],e};K.forEach=function(){var e=K.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s0&&i.push("#define "+n.toUpperCase()+"_COUNT "+a)}if(r)for(var o=0;ol.getMaxJointNumber()&&(d.USE_SKIN_MATRICES_TEXTURE=null),c+=` +`+Wn(d)+` +`}a&&(c+=` +#define INSTANCING +`);var f=c+Wn(t.vertexDefines,s,u),v=c+Wn(t.fragmentDefines,s,u),p=f+` +`+t.shader.vertex,_=["OES_standard_derivatives","EXT_shader_texture_lod"].filter(function(w){return l.getGLExtension(w)!=null});_.indexOf("EXT_shader_texture_lod")>=0&&(v+=` +#define SUPPORT_TEXTURE_LOD`),_.indexOf("OES_standard_derivatives")>=0&&(v+=` +#define SUPPORT_STANDARD_DERIVATIVES`);var m=Kh(_)+` +`+Qh(t.precision)+` +`+v+` +`+t.shader.fragment,x=To(p,t.vertexDefines,s),y=To(m,t.fragmentDefines,s),g=new qh;g.uniformSemantics=t.shader.uniformSemantics,g.attributes=t.shader.attributes;var S=g.buildProgram(h,t.shader,x,y);return g.__error=S,i[o]=g,g};var wo=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,Jh=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,So=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,eu={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function Ut(e){for(var t=[],r=0;r=0){if(d!==s&&d!==u){Mr();break}d=l,v=[];continue}else if(d===s){e==="bool"?f[p].value=m==="true":f[p].value=parseFloat(m),v=null;continue}else if(d===u){var x=m;_a.indexOf(x)>=0||Os.indexOf(x)>=0||Bs.indexOf(x)>=0?f[p].semantic=x:x==="ignore"||x==="unconfigurable"?f[p].ignore=!0:e==="bool"?f[p].value=x==="true":f[p].value=parseFloat(x);continue}_(m),d=o}}return f}function N(e,t){typeof e=="object"&&(t=e.fragment,e=e.vertex),e=bo(e),t=bo(t),this._shaderID=ru(e,t),this._vertexCode=N.parseImport(e),this._fragmentCode=N.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}N.prototype={constructor:N,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var r=this.uniformTemplates[t];e[t]={type:r.type,value:r.value()}}return e},_parseImport:function(){this._vertexCode=N.parseImport(this.vertex),this._fragmentCode=N.parseImport(this.fragment)},_addSemanticUniform:function(e,t,r){if(_a.indexOf(r)>=0)this.attributeSemantics[r]={symbol:e,type:t};else if(Bs.indexOf(r)>=0){var i=!1,n=r;r.match(/TRANSPOSE$/)&&(i=!0,n=r.slice(0,-9)),this.matrixSemantics[r]={symbol:e,type:t,isTranspose:i,semanticNoTranspose:n}}else Os.indexOf(r)>=0&&(this.uniformSemantics[r]={symbol:e,type:t})},_addMaterialUniform:function(e,t,r,i,n,a){a[e]={type:r,value:n?Eo.array:i||Eo[t],semantic:null}},_parseUniforms:function(){var e={},t=this,r="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(wo,n),r="fragment",this._fragmentCode=this._fragmentCode.replace(wo,n),t.matrixSemanticKeys=Object.keys(this.matrixSemantics);function i(a){return a!=null?function(){return a}:null}function n(a,o,s){var l=Ao(o,s),h=[];for(var u in l){var c=l[u],d=c.semantic,f=u,v=eu[o],p=i(l[u].value);l[u].isArray&&(f+="["+l[u].arraySize+"]",v+="v"),h.push(f),t._uniformList.push(u),c.ignore||((o==="sampler2D"||o==="samplerCube")&&(t.textures[u]={shaderType:r,type:o}),d?t._addSemanticUniform(u,v,d):t._addMaterialUniform(u,o,v,p,l[u].isArray,e))}return h.length>0?"uniform "+o+" "+h.join(",")+`; +`:""}this.uniformTemplates=e},_parseAttributes:function(){var e={},t=this;this._vertexCode=this._vertexCode.replace(Jh,r);function r(i,n,a){var o=Ao(n,a),s=tu[n]||1,l=[];for(var h in o){var u=o[h].semantic;if(e[h]={type:"float",size:s,semantic:u||null},u){if(_a.indexOf(u)<0)throw new Error('Unkown semantic "'+u+'"');t.attributeSemantics[u]={symbol:h,type:n}}l.push(h)}return"attribute "+n+" "+l.join(",")+`; +`}this.attributes=e},_parseDefines:function(){var e=this,t="vertex";this._vertexCode=this._vertexCode.replace(So,r),t="fragment",this._fragmentCode=this._fragmentCode.replace(So,r);function r(i,n,a){var o=t==="vertex"?e.vertexDefines:e.fragmentDefines;return o[n]||(a==="false"?o[n]=!1:a==="true"?o[n]=!0:o[n]=a?isNaN(parseFloat(a))?a.trim():parseFloat(a):null),""}},clone:function(){var e=Fs[this._shaderID],t=new N(e.vertex,e.fragment);return t}};Object.defineProperty&&(Object.defineProperty(N.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(N.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(N.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(N.prototype,"uniforms",{get:function(){return this._uniformList}}));var iu=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;N.parseImport=function(e){return e=e.replace(iu,function(n,r,i){var n=N.source(i);return n?N.parseImport(n):(console.error('Shader chunk "'+i+'" not existed in library'),"")}),e};var nu=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;N.import=function(e){e.replace(nu,function(t,r,i,a){var a=a.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(a){for(var o=i.split("."),s=N.codes,l=0,h;l 0.0) { + if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) { + discard; + } + } + gl_FragColor = vec4(0.0,0.0,0.0,1.0); +} +@end`;var me={};me.create=function(){var e=new $e(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};me.clone=function(e){var t=new $e(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t};me.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e};me.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};me.transpose=function(e,t){if(e===t){var r=t[1],i=t[2],n=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=a,e[11]=t[14],e[12]=n,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e};me.invert=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],h=t[7],u=t[8],c=t[9],d=t[10],f=t[11],v=t[12],p=t[13],_=t[14],m=t[15],x=r*s-i*o,y=r*l-n*o,g=r*h-a*o,S=i*l-n*s,w=i*h-a*s,E=n*h-a*l,b=u*p-c*v,L=u*_-d*v,P=u*m-f*v,C=c*_-d*p,R=c*m-f*p,I=d*m-f*_,M=x*I-y*R+g*C+S*P-w*L+E*b;return M?(M=1/M,e[0]=(s*I-l*R+h*C)*M,e[1]=(n*R-i*I-a*C)*M,e[2]=(p*E-_*w+m*S)*M,e[3]=(d*w-c*E-f*S)*M,e[4]=(l*P-o*I-h*L)*M,e[5]=(r*I-n*P+a*L)*M,e[6]=(_*g-v*E-m*y)*M,e[7]=(u*E-d*g+f*y)*M,e[8]=(o*R-s*P+h*b)*M,e[9]=(i*P-r*R-a*b)*M,e[10]=(v*w-p*g+m*x)*M,e[11]=(c*g-u*w-f*x)*M,e[12]=(s*L-o*C-l*b)*M,e[13]=(r*C-i*L+n*b)*M,e[14]=(p*y-v*S-_*x)*M,e[15]=(u*S-c*y+d*x)*M,e):null};me.adjoint=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],h=t[7],u=t[8],c=t[9],d=t[10],f=t[11],v=t[12],p=t[13],_=t[14],m=t[15];return e[0]=s*(d*m-f*_)-c*(l*m-h*_)+p*(l*f-h*d),e[1]=-(i*(d*m-f*_)-c*(n*m-a*_)+p*(n*f-a*d)),e[2]=i*(l*m-h*_)-s*(n*m-a*_)+p*(n*h-a*l),e[3]=-(i*(l*f-h*d)-s*(n*f-a*d)+c*(n*h-a*l)),e[4]=-(o*(d*m-f*_)-u*(l*m-h*_)+v*(l*f-h*d)),e[5]=r*(d*m-f*_)-u*(n*m-a*_)+v*(n*f-a*d),e[6]=-(r*(l*m-h*_)-o*(n*m-a*_)+v*(n*h-a*l)),e[7]=r*(l*f-h*d)-o*(n*f-a*d)+u*(n*h-a*l),e[8]=o*(c*m-f*p)-u*(s*m-h*p)+v*(s*f-h*c),e[9]=-(r*(c*m-f*p)-u*(i*m-a*p)+v*(i*f-a*c)),e[10]=r*(s*m-h*p)-o*(i*m-a*p)+v*(i*h-a*s),e[11]=-(r*(s*f-h*c)-o*(i*f-a*c)+u*(i*h-a*s)),e[12]=-(o*(c*_-d*p)-u*(s*_-l*p)+v*(s*d-l*c)),e[13]=r*(c*_-d*p)-u*(i*_-n*p)+v*(i*d-n*c),e[14]=-(r*(s*_-l*p)-o*(i*_-n*p)+v*(i*l-n*s)),e[15]=r*(s*d-l*c)-o*(i*d-n*c)+u*(i*l-n*s),e};me.determinant=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],h=e[8],u=e[9],c=e[10],d=e[11],f=e[12],v=e[13],p=e[14],_=e[15],m=t*o-r*a,x=t*s-i*a,y=t*l-n*a,g=r*s-i*o,S=r*l-n*o,w=i*l-n*s,E=h*v-u*f,b=h*p-c*f,L=h*_-d*f,P=u*p-c*v,C=u*_-d*v,R=c*_-d*p;return m*R-x*C+y*P+g*L-S*b+w*E};me.multiply=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],h=t[6],u=t[7],c=t[8],d=t[9],f=t[10],v=t[11],p=t[12],_=t[13],m=t[14],x=t[15],y=r[0],g=r[1],S=r[2],w=r[3];return e[0]=y*i+g*s+S*c+w*p,e[1]=y*n+g*l+S*d+w*_,e[2]=y*a+g*h+S*f+w*m,e[3]=y*o+g*u+S*v+w*x,y=r[4],g=r[5],S=r[6],w=r[7],e[4]=y*i+g*s+S*c+w*p,e[5]=y*n+g*l+S*d+w*_,e[6]=y*a+g*h+S*f+w*m,e[7]=y*o+g*u+S*v+w*x,y=r[8],g=r[9],S=r[10],w=r[11],e[8]=y*i+g*s+S*c+w*p,e[9]=y*n+g*l+S*d+w*_,e[10]=y*a+g*h+S*f+w*m,e[11]=y*o+g*u+S*v+w*x,y=r[12],g=r[13],S=r[14],w=r[15],e[12]=y*i+g*s+S*c+w*p,e[13]=y*n+g*l+S*d+w*_,e[14]=y*a+g*h+S*f+w*m,e[15]=y*o+g*u+S*v+w*x,e};me.multiplyAffine=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[4],s=t[5],l=t[6],h=t[8],u=t[9],c=t[10],d=t[12],f=t[13],v=t[14],p=r[0],_=r[1],m=r[2];return e[0]=p*i+_*o+m*h,e[1]=p*n+_*s+m*u,e[2]=p*a+_*l+m*c,p=r[4],_=r[5],m=r[6],e[4]=p*i+_*o+m*h,e[5]=p*n+_*s+m*u,e[6]=p*a+_*l+m*c,p=r[8],_=r[9],m=r[10],e[8]=p*i+_*o+m*h,e[9]=p*n+_*s+m*u,e[10]=p*a+_*l+m*c,p=r[12],_=r[13],m=r[14],e[12]=p*i+_*o+m*h+d,e[13]=p*n+_*s+m*u+f,e[14]=p*a+_*l+m*c+v,e};me.mul=me.multiply;me.mulAffine=me.multiplyAffine;me.translate=function(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,h,u,c,d,f,v,p,_,m;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],h=t[3],u=t[4],c=t[5],d=t[6],f=t[7],v=t[8],p=t[9],_=t[10],m=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=h,e[4]=u,e[5]=c,e[6]=d,e[7]=f,e[8]=v,e[9]=p,e[10]=_,e[11]=m,e[12]=o*i+u*n+v*a+t[12],e[13]=s*i+c*n+p*a+t[13],e[14]=l*i+d*n+_*a+t[14],e[15]=h*i+f*n+m*a+t[15]),e};me.scale=function(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e};me.rotate=function(e,t,r,i){var n=i[0],a=i[1],o=i[2],s=Math.sqrt(n*n+a*a+o*o),l,h,u,c,d,f,v,p,_,m,x,y,g,S,w,E,b,L,P,C,R,I,M,B;return Math.abs(s)0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e};Y.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]};Y.cross=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e};Y.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e};Y.random=function(e,t){t=t||1;var r=Gr()*2*Math.PI,i=Gr()*2-1,n=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*n,e[1]=Math.sin(r)*n,e[2]=i*t,e};Y.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o=o||1,e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e};Y.transformMat3=function(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e};Y.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],h=r[3],u=h*i+s*a-l*n,c=h*n+l*i-o*a,d=h*a+o*n-s*i,f=-o*i-s*n-l*a;return e[0]=u*h+f*-o+c*-l-d*-s,e[1]=c*h+f*-s+d*-o-u*-l,e[2]=d*h+f*-l+u*-s-c*-o,e};Y.rotateX=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};Y.rotateY=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};Y.rotateZ=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};Y.forEach=function(){var e=Y.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s1?0:Math.acos(n)};const A=Y;N.import(Us);var we=F.create,Lo={};function Co(e){return e.material}function au(e,t,r){return t.uniforms[r].value}function ou(e,t,r,i){return r!==i}function su(e){return!0}function Do(){}var Mo={float:D.FLOAT,byte:D.BYTE,ubyte:D.UNSIGNED_BYTE,short:D.SHORT,ushort:D.UNSIGNED_SHORT};function lu(e,t,r){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=r,this.vao=null}function hu(e){var t,r;this.bind=function(i){t||(t=Re.createCanvas(),t.width=t.height=1,t.getContext("2d"));var n=i.gl,a=!r;a&&(r=n.createTexture()),n.bindTexture(n.TEXTURE_2D,r),a&&n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t)},this.unbind=function(i){i.gl.bindTexture(i.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var er=ot.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:typeof window<"u"&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=Re.createCanvas());var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new Fh(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(r){throw"Error creating WebGL Context "+r}this._programMgr=new Is(this),this._placeholderTexture=new hu},{resize:function(e,t){var r=this.canvas,i=this.devicePixelRatio;e!=null?(r.style&&(r.style.width=e+"px",r.style.height=t+"px"),r.width=e*i,r.height=t*i,this._width=e,this._height=t):(this._width=r.width/i,this._height=r.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,r,i,n){if(typeof e=="object"){var a=e;e=a.x,t=a.y,r=a.width,i=a.height,n=a.devicePixelRatio}n=n||this.devicePixelRatio,this.gl.viewport(e*n,t*n,r*n,i*n),this.viewport={x:e,y:t,width:r,height:i,devicePixelRatio:n}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,r,i){var n=this.gl,a=this.clearColor;if(this.clearBit){n.colorMask(!0,!0,!0,!0),n.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,n.enable(n.SCISSOR_TEST),n.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),n.clearColor(a[0],a[1],a[2],a[3]),n.clear(this.clearBit),s&&n.disable(n.SCISSOR_TEST)}if(r||e.update(!1),e.updateLights(),t=t||e.getMainCamera(),!t){console.error("Can't find camera in the scene.");return}t.update();var h=e.updateRenderList(t,!0);this._sceneRendering=e;var u=h.opaque,c=h.transparent,d=e.material;e.trigger("beforerender",this,e,t,h),i?(this.renderPreZ(u,e,t),n.depthFunc(n.LEQUAL)):n.depthFunc(n.LESS);for(var f=we(),v=A.create(),p=0;p0){var s=e[n-1],l=s.joints?s.joints.length:0,h=a.joints?a.joints.length:0;if(h===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var u=this._programMgr.getProgram(a,o,t);this.validateProgram(u),a.__program=u}},renderPass:function(e,t,r){this.trigger("beforerenderpass",this,e,t,r),r=r||{},r.getMaterial=r.getMaterial||Co,r.getUniform=r.getUniform||au,r.isMaterialChanged=r.isMaterialChanged||ou,r.beforeRender=r.beforeRender||Do,r.afterRender=r.afterRender||Do;var i=r.ifRender||su;this.updatePrograms(e,this._sceneRendering,r),r.sortCompare&&e.sort(r.sortCompare);var n=this.viewport,a=n.devicePixelRatio,o=[n.x*a,n.y*a,n.width*a,n.height*a],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],h=[o[2],o[3]],u=Date.now();t?(F.copy(Te.VIEW,t.viewMatrix.array),F.copy(Te.PROJECTION,t.projectionMatrix.array),F.copy(Te.VIEWINVERSE,t.worldTransform.array)):(F.identity(Te.VIEW),F.identity(Te.PROJECTION),F.identity(Te.VIEWINVERSE)),F.multiply(Te.VIEWPROJECTION,Te.PROJECTION,Te.VIEW),F.invert(Te.PROJECTIONINVERSE,Te.PROJECTION),F.invert(Te.VIEWPROJECTIONINVERSE,Te.VIEWPROJECTION);for(var c=this.gl,d=this._sceneRendering,f,v,p,_,m,x,y,g,S,w,E,b,L=null,P=0;Pthis.getMaxJointNumber()){var a=n.getSubSkinMatricesTexture(e.__uid__,e.joints);t.useTextureSlot(this,a,r),t.setUniform(i,"1i","skinMatricesTexture",r),t.setUniform(i,"1f","skinMatricesTextureSize",a.width)}else{var o=n.getSubSkinMatrices(e.__uid__,e.joints);t.setUniformOfSemantic(i,"SKIN_MATRIX",o)}},_renderObject:function(e,t,r){var i=this.gl,n=e.geometry,a=e.mode;a==null&&(a=4);var o=null,s=e.isInstancedMesh&&e.isInstancedMesh();if(s&&(o=this.getGLExtension("ANGLE_instanced_arrays"),!o)){console.warn("Device not support ANGLE_instanced_arrays extension");return}var l;if(s&&(l=this._bindInstancedAttributes(e,r,o)),t.indicesBuffer){var h=this.getGLExtension("OES_element_index_uint"),u=h&&n.indices instanceof Uint32Array,c=u?i.UNSIGNED_INT:i.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(a,t.indicesBuffer.count,c,0,e.getInstanceCount()):i.drawElements(a,t.indicesBuffer.count,c,0)}else s?o.drawArraysInstancedANGLE(a,0,n.vertexCount,e.getInstanceCount()):i.drawArrays(a,0,n.vertexCount);if(s)for(var d=0;dr?r:e}var pe=Math.atan2,wt=Math.asin,Pr=Math.abs;j.eulerFromQuat=function(e,t,d){e._dirty=!0,t=t.array;var i=e.array,n=t[0],a=t[1],o=t[2],s=t[3],l=n*n,h=a*a,u=o*o,c=s*s,d=(d||"XYZ").toUpperCase();switch(d){case"XYZ":i[0]=pe(2*(n*s-a*o),c-l-h+u),i[1]=wt(Tt(2*(n*o+a*s),-1,1)),i[2]=pe(2*(o*s-n*a),c+l-h-u);break;case"YXZ":i[0]=wt(Tt(2*(n*s-a*o),-1,1)),i[1]=pe(2*(n*o+a*s),c-l-h+u),i[2]=pe(2*(n*a+o*s),c-l+h-u);break;case"ZXY":i[0]=wt(Tt(2*(n*s+a*o),-1,1)),i[1]=pe(2*(a*s-o*n),c-l-h+u),i[2]=pe(2*(o*s-n*a),c-l+h-u);break;case"ZYX":i[0]=pe(2*(n*s+o*a),c-l-h+u),i[1]=wt(Tt(2*(a*s-n*o),-1,1)),i[2]=pe(2*(n*a+o*s),c+l-h-u);break;case"YZX":i[0]=pe(2*(n*s-o*a),c-l+h-u),i[1]=pe(2*(a*s-n*o),c+l-h-u),i[2]=wt(Tt(2*(n*a+o*s),-1,1));break;case"XZY":i[0]=pe(2*(n*s+a*o),c-l+h-u),i[1]=pe(2*(n*o+a*s),c+l-h-u),i[2]=wt(Tt(2*(o*s-n*a),-1,1));break;default:console.warn("Unkown order: "+d)}return e};j.eulerFromMat3=function(e,t,v){var i=t.array,n=i[0],a=i[3],o=i[6],s=i[1],l=i[4],h=i[7],u=i[2],c=i[5],d=i[8],f=e.array,v=(v||"XYZ").toUpperCase();switch(v){case"XYZ":f[1]=wt(Tt(o,-1,1)),Pr(o)<.99999?(f[0]=pe(-h,d),f[2]=pe(-a,n)):(f[0]=pe(c,l),f[2]=0);break;case"YXZ":f[0]=wt(-Tt(h,-1,1)),Pr(h)<.99999?(f[1]=pe(o,d),f[2]=pe(s,l)):(f[1]=pe(-u,n),f[2]=0);break;case"ZXY":f[0]=wt(Tt(c,-1,1)),Pr(c)<.99999?(f[1]=pe(-u,d),f[2]=pe(-a,l)):(f[1]=0,f[2]=pe(s,n));break;case"ZYX":f[1]=wt(-Tt(u,-1,1)),Pr(u)<.99999?(f[0]=pe(c,d),f[2]=pe(s,n)):(f[0]=0,f[2]=pe(-a,l));break;case"YZX":f[2]=wt(Tt(s,-1,1)),Pr(s)<.99999?(f[0]=pe(-h,l),f[1]=pe(-u,n)):(f[0]=0,f[1]=pe(o,d));break;case"XZY":f[2]=wt(-Tt(a,-1,1)),Pr(a)<.99999?(f[0]=pe(c,l),f[1]=pe(o,n)):(f[0]=pe(-h,d),f[1]=0);break;default:console.warn("Unkown order: "+v)}return e._dirty=!0,e};Object.defineProperties(j,{POSITIVE_X:{get:function(){return new j(1,0,0)}},NEGATIVE_X:{get:function(){return new j(-1,0,0)}},POSITIVE_Y:{get:function(){return new j(0,1,0)}},NEGATIVE_Y:{get:function(){return new j(0,-1,0)}},POSITIVE_Z:{get:function(){return new j(0,0,1)}},NEGATIVE_Z:{get:function(){return new j(0,0,-1)}},UP:{get:function(){return new j(0,1,0)}},ZERO:{get:function(){return new j}}});const G=j;var jn=1e-5,nn=function(e,t){this.origin=e||new G,this.direction=t||new G};nn.prototype={constructor:nn,intersectPlane:function(e,t){var r=e.normal.array,i=e.distance,n=this.origin.array,a=this.direction.array,o=A.dot(r,a);if(o===0)return null;t||(t=new G);var s=(A.dot(r,n)-i)/o;return A.scaleAndAdd(t.array,n,a,-s),t._dirty=!0,t},mirrorAgainstPlane:function(e){var t=A.dot(e.normal.array,this.direction.array);A.scaleAndAdd(this.direction.array,this.direction.array,e.normal.array,-t*2),this.direction._dirty=!0},distanceToPoint:function(){var e=A.create();return function(t){A.sub(e,t,this.origin.array);var r=A.dot(e,this.direction.array);if(r<0)return A.distance(this.origin.array,t);var i=A.lenSquared(e);return Math.sqrt(i-r*r)}}(),intersectSphere:function(){var e=A.create();return function(t,r,i){var n=this.origin.array,a=this.direction.array;t=t.array,A.sub(e,t,n);var o=A.dot(e,a),s=A.squaredLength(e),l=s-o*o,h=r*r;if(!(l>h)){var u=Math.sqrt(h-l),c=o-u,d=o+u;return i||(i=new G),c<0?d<0?null:(A.scaleAndAdd(i.array,n,a,d),i):(A.scaleAndAdd(i.array,n,a,c),i)}}}(),intersectBoundingBox:function(e,t){var r=this.direction.array,i=this.origin.array,n=e.min.array,a=e.max.array,o=1/r[0],s=1/r[1],l=1/r[2],h,u,c,d,f,v;if(o>=0?(h=(n[0]-i[0])*o,u=(a[0]-i[0])*o):(u=(n[0]-i[0])*o,h=(a[0]-i[0])*o),s>=0?(c=(n[1]-i[1])*s,d=(a[1]-i[1])*s):(d=(n[1]-i[1])*s,c=(a[1]-i[1])*s),h>d||c>u||((c>h||h!==h)&&(h=c),(d=0?(f=(n[2]-i[2])*l,v=(a[2]-i[2])*l):(v=(n[2]-i[2])*l,f=(a[2]-i[2])*l),h>v||f>u)||((f>h||h!==h)&&(h=f),(v=0?h:u;return t||(t=new G),A.scaleAndAdd(t.array,i,r,p),t},intersectTriangle:function(){var e=A.create(),t=A.create(),r=A.create(),i=A.create();return function(n,a,o,s,l,h){var u=this.direction.array,c=this.origin.array;n=n.array,a=a.array,o=o.array,A.sub(e,a,n),A.sub(t,o,n),A.cross(i,t,u);var d=A.dot(e,i);if(s){if(d>-jn)return null}else if(d>-jn&&d1)return null;A.cross(i,e,r);var v=A.dot(u,i)/d;if(v<0||v>1||f+v>1)return null;A.cross(i,e,t);var p=-A.dot(r,i)/d;return p<0?null:(l||(l=new G),h&&G.set(h,1-f-v,f,v),A.scaleAndAdd(l.array,c,u,p),l)}}(),applyTransform:function(e){G.add(this.direction,this.direction,this.origin),G.transformMat4(this.origin,this.origin,e),G.transformMat4(this.direction,this.direction,e),G.sub(this.direction,this.direction,this.origin),G.normalize(this.direction,this.direction)},copy:function(e){G.copy(this.origin,e.origin),G.copy(this.direction,e.direction)},clone:function(){var e=new nn;return e.copy(this),e}};const fn=nn;var J={};J.create=function(){var e=new $e(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e};J.clone=function(e){var t=new $e(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t};J.fromValues=function(e,t,r,i){var n=new $e(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n};J.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e};J.set=function(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e};J.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e};J.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e};J.sub=J.subtract;J.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e};J.mul=J.multiply;J.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e};J.div=J.divide;J.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e};J.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e};J.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e};J.scaleAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e};J.distance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+a*a)};J.dist=J.distance;J.squaredDistance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return r*r+i*i+n*n+a*a};J.sqrDist=J.squaredDistance;J.length=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)};J.len=J.length;J.squaredLength=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n};J.sqrLen=J.squaredLength;J.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e};J.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e};J.normalize=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e};J.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]};J.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e[3]=s+i*(r[3]-s),e};J.random=function(e,t){return t=t||1,e[0]=Gr(),e[1]=Gr(),e[2]=Gr(),e[3]=Gr(),J.normalize(e,e),J.scale(e,e,t),e};J.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e};J.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],h=r[3],u=h*i+s*a-l*n,c=h*n+l*i-o*a,d=h*a+o*n-s*i,f=-o*i-s*n-l*a;return e[0]=u*h+f*-o+c*-l-d*-s,e[1]=c*h+f*-s+d*-o-u*-l,e[2]=d*h+f*-l+u*-s-c*-o,e};J.forEach=function(){var e=J.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=4),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(A.cross(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,le.normalize(i,i))}}();le.setAxes=function(){var e=ne.create();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],le.normalize(t,le.fromMat3(t,e))}}();le.clone=z.clone;le.fromValues=z.fromValues;le.copy=z.copy;le.set=z.set;le.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e};le.setAxisAngle=function(e,t,r){r=r*.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e};le.add=z.add;le.multiply=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],h=r[2],u=r[3];return e[0]=i*u+o*s+n*h-a*l,e[1]=n*u+o*l+a*s-i*h,e[2]=a*u+o*h+i*l-n*s,e[3]=o*u-i*s-n*l-a*h,e};le.mul=le.multiply;le.scale=z.scale;le.rotateX=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+o*s,e[1]=n*l+a*s,e[2]=a*l-n*s,e[3]=o*l-i*s,e};le.rotateY=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l-a*s,e[1]=n*l+o*s,e[2]=a*l+i*s,e[3]=o*l-n*s,e};le.rotateZ=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*s,e[1]=n*l-i*s,e[2]=a*l+o*s,e[3]=o*l-a*s,e};le.calculateW=function(e,t){var r=t[0],i=t[1],n=t[2];return e[0]=r,e[1]=i,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-n*n)),e};le.dot=z.dot;le.lerp=z.lerp;le.slerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],h=r[1],u=r[2],c=r[3],d,f,v,p,_;return f=n*l+a*h+o*u+s*c,f<0&&(f=-f,l=-l,h=-h,u=-u,c=-c),1-f>1e-6?(d=Math.acos(f),v=Math.sin(d),p=Math.sin((1-i)*d)/v,_=Math.sin(i*d)/v):(p=1-i,_=i),e[0]=p*n+_*l,e[1]=p*a+_*h,e[2]=p*o+_*u,e[3]=p*s+_*c,e};le.invert=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a,s=o?1/o:0;return e[0]=-r*s,e[1]=-i*s,e[2]=-n*s,e[3]=a*s,e};le.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e};le.length=z.length;le.len=le.length;le.squaredLength=z.squaredLength;le.sqrLen=le.squaredLength;le.normalize=z.normalize;le.fromMat3=function(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e};const $=le;var xe=function(){this._axisX=new G,this._axisY=new G,this._axisZ=new G,this.array=F.create(),this._dirty=!0};xe.prototype={constructor:xe,setArray:function(e){for(var t=0;t0){var t=this.min,r=this.max,i=t.array,n=r.array;Zi(i,e[0]),Zi(n,e[0]);for(var a=1;an[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1]),o[2]>n[2]&&(n[2]=o[2])}t._dirty=!0,r._dirty=!0}},union:function(e){var t=this.min,r=this.max;return A.min(t.array,t.array,e.min.array),A.max(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersection:function(e){var t=this.min,r=this.max;return A.max(t.array,t.array,e.min.array),A.min(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,r=this.max.array,i=e.min.array,n=e.max.array;return!(t[0]>n[0]||t[1]>n[1]||t[2]>n[2]||r[0]=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},containPoint:function(e){var t=this.min.array,r=this.max.array,i=e.array;return t[0]<=i[0]&&t[1]<=i[1]&&t[2]<=i[2]&&r[0]>=i[0]&&r[1]>=i[1]&&r[2]>=i[2]},isFinite:function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])},applyTransform:function(e){this.transformFrom(this,e)},transformFrom:function(){var e=A.create(),t=A.create(),r=A.create(),i=A.create(),n=A.create(),a=A.create();return function(o,s){var l=o.min.array,h=o.max.array,u=s.array;return e[0]=u[0]*l[0],e[1]=u[1]*l[0],e[2]=u[2]*l[0],t[0]=u[0]*h[0],t[1]=u[1]*h[0],t[2]=u[2]*h[0],r[0]=u[4]*l[1],r[1]=u[5]*l[1],r[2]=u[6]*l[1],i[0]=u[4]*h[1],i[1]=u[5]*h[1],i[2]=u[6]*h[1],n[0]=u[8]*l[2],n[1]=u[9]*l[2],n[2]=u[10]*l[2],a[0]=u[8]*h[2],a[1]=u[9]*h[2],a[2]=u[10]*h[2],l=this.min.array,h=this.max.array,l[0]=Math.min(e[0],t[0])+Math.min(r[0],i[0])+Math.min(n[0],a[0])+u[12],l[1]=Math.min(e[1],t[1])+Math.min(r[1],i[1])+Math.min(n[1],a[1])+u[13],l[2]=Math.min(e[2],t[2])+Math.min(r[2],i[2])+Math.min(n[2],a[2])+u[14],h[0]=Math.max(e[0],t[0])+Math.max(r[0],i[0])+Math.max(n[0],a[0])+u[12],h[1]=Math.max(e[1],t[1])+Math.max(r[1],i[1])+Math.max(n[1],a[1])+u[13],h[2]=Math.max(e[2],t[2])+Math.max(r[2],i[2])+Math.max(n[2],a[2])+u[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(e){var t=this.min.array,r=this.max.array,i=e.array,n=t[0],a=t[1],o=t[2],s=r[0],l=r[1],h=t[2],u=r[0],c=r[1],d=r[2];if(i[15]===1)t[0]=i[0]*n+i[12],t[1]=i[5]*a+i[13],r[2]=i[10]*o+i[14],r[0]=i[0]*u+i[12],r[1]=i[5]*c+i[13],t[2]=i[10]*d+i[14];else{var f=-1/o;t[0]=i[0]*n*f,t[1]=i[5]*a*f,r[2]=(i[10]*o+i[14])*f,f=-1/h,r[0]=i[0]*s*f,r[1]=i[5]*l*f,f=-1/d,t[2]=(i[10]*d+i[14])*f}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var e=this.vertices;if(!e){e=[];for(var t=0;t<8;t++)e[t]=A.fromValues(0,0,0);this.vertices=e}var r=this.min.array,i=this.max.array;return jt(e[0],r[0],r[1],r[2]),jt(e[1],r[0],i[1],r[2]),jt(e[2],i[0],r[1],r[2]),jt(e[3],i[0],i[1],r[2]),jt(e[4],r[0],r[1],i[2]),jt(e[5],r[0],i[1],i[2]),jt(e[6],i[0],r[1],i[2]),jt(e[7],i[0],i[1],i[2]),this},copy:function(e){var t=this.min,r=this.max;return Zi(t.array,e.min.array),Zi(r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},clone:function(){var e=new an;return e.copy(this),e}};const it=an;var uu=0,cu=ot.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},function(){this.name||(this.name=(this.type||"NODE")+"_"+uu++),this.position||(this.position=new G),this.rotation||(this.rotation=new Gs),this.scale||(this.scale=new G(1,1,1)),this.worldTransform=new k,this.localTransform=new k,this._children=[]},{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(e){var t=this._scene;if(t){var r=t._nodeRepository;delete r[this.name],r[e]=this}this.name=e},add:function(e){var t=e._parent;if(t!==this){t&&t.remove(e),e._parent=this,this._children.push(e);var r=this._scene;r&&r!==e.scene&&e.traverse(this._addSelfToScene,this),e._needsUpdateWorldTransform=!0}},remove:function(e){var t=this._children,r=t.indexOf(e);r<0||(t.splice(r,1),e._parent=null,this._scene&&e.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var e=this._children,t=0;t0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=It.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},clone:function(){var e=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var t=It.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var r=0;r=0&&S[y]>1e-4&&(A.transformMat4(b,g,m[w[y]]),A.scaleAndAdd(E,E,b,S[y]));L.set(x,E)}}for(var x=0;x>t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("webgl_texture");r&&e.gl.deleteTexture(r),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(ae.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}});Object.defineProperty(ae.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}});ae.BYTE=D.BYTE;ae.UNSIGNED_BYTE=D.UNSIGNED_BYTE;ae.SHORT=D.SHORT;ae.UNSIGNED_SHORT=D.UNSIGNED_SHORT;ae.INT=D.INT;ae.UNSIGNED_INT=D.UNSIGNED_INT;ae.FLOAT=D.FLOAT;ae.HALF_FLOAT=36193;ae.UNSIGNED_INT_24_8_WEBGL=34042;ae.DEPTH_COMPONENT=D.DEPTH_COMPONENT;ae.DEPTH_STENCIL=D.DEPTH_STENCIL;ae.ALPHA=D.ALPHA;ae.RGB=D.RGB;ae.RGBA=D.RGBA;ae.LUMINANCE=D.LUMINANCE;ae.LUMINANCE_ALPHA=D.LUMINANCE_ALPHA;ae.SRGB=35904;ae.SRGB_ALPHA=35906;ae.COMPRESSED_RGB_S3TC_DXT1_EXT=33776;ae.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777;ae.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778;ae.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779;ae.NEAREST=D.NEAREST;ae.LINEAR=D.LINEAR;ae.NEAREST_MIPMAP_NEAREST=D.NEAREST_MIPMAP_NEAREST;ae.LINEAR_MIPMAP_NEAREST=D.LINEAR_MIPMAP_NEAREST;ae.NEAREST_MIPMAP_LINEAR=D.NEAREST_MIPMAP_LINEAR;ae.LINEAR_MIPMAP_LINEAR=D.LINEAR_MIPMAP_LINEAR;ae.REPEAT=D.REPEAT;ae.CLAMP_TO_EDGE=D.CLAMP_TO_EDGE;ae.MIRRORED_REPEAT=D.MIRRORED_REPEAT;const X=ae;var gt=ga.extend({skeleton:null,joints:null},function(){this.joints||(this.joints=[])},{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var e=ga.prototype.clone.call(this);return e.skeleton=this.skeleton,this.joints&&(e.joints=this.joints.slice()),e}});gt.POINTS=D.POINTS;gt.LINES=D.LINES;gt.LINE_LOOP=D.LINE_LOOP;gt.LINE_STRIP=D.LINE_STRIP;gt.TRIANGLES=D.TRIANGLES;gt.TRIANGLE_STRIP=D.TRIANGLE_STRIP;gt.TRIANGLE_FAN=D.TRIANGLE_FAN;gt.BACK=D.BACK;gt.FRONT=D.FRONT;gt.FRONT_AND_BACK=D.FRONT_AND_BACK;gt.CW=D.CW;gt.CCW=D.CCW;const vr=gt;var Cn={};Cn.isPowerOfTwo=function(e){return(e&e-1)===0};Cn.nextPowerOfTwo=function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e};Cn.nearestPowerOfTwo=function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))};const zs=Cn;var Po=zs.isPowerOfTwo;function Ro(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function du(e,t){var r=Ro(e.width),i=Ro(e.height);t=t||document.createElement("canvas"),t.width=r,t.height=i;var n=t.getContext("2d");return n.drawImage(e.image,0,0,r,i),t}var Ba=X.extend(function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}},{textureType:"texture2D",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,i=this.type,n=!!(this.convertToPOT&&!this.mipmaps.length&&this.image&&(this.wrapS===X.REPEAT||this.wrapT===X.REPEAT)&&this.NPOT);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,n?this.wrapS:this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,n?this.wrapT:this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n?this.magFilter:this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n?this.minFilter:this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var o=e.getGLExtension("OES_texture_half_float");o||(i=D.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,h=0;h=X.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,r,a,i,n,0,t.pixels):e.texImage2D(e.TEXTURE_2D,r,a,i,n,0,a,o,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){return Po(this.width)&&Po(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!!(this.width&&this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var r=Re.createImage();t&&(r.crossOrigin=t);var i=this;return r.onload=function(){i.dirty(),i.trigger("success",i)},r.onerror=function(){i.trigger("error",i)},r.src=e,this.image=r,this}});Object.defineProperty(Ba.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}});Object.defineProperty(Ba.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});const Q=Ba;function Hs(e){return{byte:Re.Int8Array,ubyte:Re.Uint8Array,short:Re.Int16Array,ushort:Re.Uint16Array}[e]||Re.Float32Array}function qn(e){return"attr_"+e}function kr(e,t,r,i){switch(this.name=e,this.type=t,this.size=r,this.semantic=i||"",this.value=null,r){case 1:this.get=function(n){return this.value[n]},this.set=function(n,a){this.value[n]=a},this.copy=function(n,a){this.value[n]=this.value[n]};break;case 2:this.get=function(n,a){var o=this.value;return a[0]=o[n*2],a[1]=o[n*2+1],a},this.set=function(n,a){var o=this.value;o[n*2]=a[0],o[n*2+1]=a[1]},this.copy=function(n,a){var o=this.value;a*=2,n*=2,o[n]=o[a],o[n+1]=o[a+1]};break;case 3:this.get=function(n,a){var o=n*3,s=this.value;return a[0]=s[o],a[1]=s[o+1],a[2]=s[o+2],a},this.set=function(n,a){var o=n*3,s=this.value;s[o]=a[0],s[o+1]=a[1],s[o+2]=a[2]},this.copy=function(n,a){var o=this.value;a*=3,n*=3,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2]};break;case 4:this.get=function(n,a){var o=this.value,s=n*4;return a[0]=o[s],a[1]=o[s+1],a[2]=o[s+2],a[3]=o[s+3],a},this.set=function(n,a){var o=this.value,s=n*4;o[s]=a[0],o[s+1]=a[1],o[s+2]=a[2],o[s+3]=a[3]},this.copy=function(n,a){var o=this.value;a*=4,n*=4,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2],o[n+3]=o[a+3]}}}kr.prototype.init=function(e){if(!this.value||this.value.length!==e*this.size){var t=Hs(this.type);this.value=new t(e*this.size)}};kr.prototype.fromArray=function(e){var t=Hs(this.type),r;if(e[0]&&e[0].length){var i=0,n=this.size;r=new t(e.length*n);for(var a=0;a=0){t||(t=[]);var r=this.indices;return t[0]=r[e*3],t[1]=r[e*3+1],t[2]=r[e*3+2],t}},setTriangleIndices:function(e,t){var r=this.indices;r[e*3]=t[0],r[e*3+1]=t[1],r[e*3+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,r=this.vertexCount>65535?Re.Uint32Array:Re.Uint16Array;if(e[0]&&e[0].length){var i=0,n=3;t=new r(e.length*n);for(var a=0;a=0?(t.splice(r,1),delete this.attributes[e],!0):!1},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var r=[],i=this.vertexCount,n=0;na[0]&&(a[0]=s),l>a[1]&&(a[1]=l),h>a[2]&&(a[2]=h)}r._dirty=!0,i._dirty=!0}},generateVertexNormals:function(){if(!!this.vertexCount){var e=this.indices,t=this.attributes,r=t.position.value,i=t.normal.value;if(!i||i.length!==r.length)i=t.normal.value=new Re.Float32Array(r.length);else for(var n=0;n65535&&(this.indices=new Re.Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,r=this.getEnabledAttributes(),i={},n=0;nthis.distance,n=1;n<8;n++)if(A.dot(t[n].array,r)>this.distance!=i)return!0},intersectLine:function(){var e=A.create();return function(t,r,i){var n=this.distanceToPoint(t),a=this.distanceToPoint(r);if(n>0&&a>0||n<0&&a<0)return null;var o=this.normal.array,s=this.distance,l=t.array;A.sub(e,r.array,t.array),A.normalize(e,e);var h=A.dot(o,e);if(h===0)return null;i||(i=new G);var u=(A.dot(o,l)-s)/h;return A.scaleAndAdd(i.array,l,e,-u),i._dirty=!0,i}}(),applyTransform:function(){var e=F.create(),t=z.create(),r=z.create();return r[3]=1,function(i){i=i.array,A.scale(r,this.normal.array,this.distance),z.transformMat4(r,r,i),this.distance=A.dot(r,this.normal.array),F.invert(e,i),F.transpose(e,e),t[3]=0,A.copy(t,this.normal.array),z.transformMat4(t,t,e),A.copy(this.normal.array,t)}}(),copy:function(e){A.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new on;return e.copy(this),e}};const Ws=on;var De=A.set,No=A.copy,Io=A.transformMat4,$n=Math.min,Kn=Math.max,Xs=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new Ws);this.boundingBox=new it,this.vertices=[];for(var e=0;e<8;e++)this.vertices[e]=A.fromValues(0,0,0)};Xs.prototype={setFromProjection:function(e){var t=this.planes,r=e.array,i=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],h=r[6],u=r[7],c=r[8],d=r[9],f=r[10],v=r[11],p=r[12],_=r[13],m=r[14],x=r[15];De(t[0].normal.array,o-i,u-s,v-c),t[0].distance=-(x-p),t[0].normalize(),De(t[1].normal.array,o+i,u+s,v+c),t[1].distance=-(x+p),t[1].normalize(),De(t[2].normal.array,o+n,u+l,v+d),t[2].distance=-(x+_),t[2].normalize(),De(t[3].normal.array,o-n,u-l,v-d),t[3].distance=-(x-_),t[3].normalize(),De(t[4].normal.array,o-a,u-h,v-f),t[4].distance=-(x-m),t[4].normalize(),De(t[5].normal.array,o+a,u+h,v+f),t[5].distance=-(x+m),t[5].normalize();var y=this.boundingBox,g=this.vertices;if(x===0){var S=l/i,w=-m/(f-1),E=-m/(f+1),b=-E/l,L=-w/l;y.min.set(-b*S,-b,E),y.max.set(b*S,b,w),De(g[0],-b*S,-b,E),De(g[1],-b*S,b,E),De(g[2],b*S,-b,E),De(g[3],b*S,b,E),De(g[4],-L*S,-L,w),De(g[5],-L*S,L,w),De(g[6],L*S,-L,w),De(g[7],L*S,L,w)}else{var P=(-1-p)/i,C=(1-p)/i,R=(1-_)/l,I=(-1-_)/l,M=(-1-m)/f,B=(1-m)/f;y.min.set(Math.min(P,C),Math.min(I,R),Math.min(B,M)),y.max.set(Math.max(C,P),Math.max(R,I),Math.max(M,B));var H=y.min.array,W=y.max.array;De(g[0],H[0],H[1],H[2]),De(g[1],H[0],W[1],H[2]),De(g[2],W[0],H[1],H[2]),De(g[3],W[0],W[1],H[2]),De(g[4],H[0],H[1],W[2]),De(g[5],H[0],W[1],W[2]),De(g[6],W[0],H[1],W[2]),De(g[7],W[0],W[1],W[2])}},getTransformedBoundingBox:function(){var e=A.create();return function(t,r){var i=this.vertices,n=r.array,a=t.min,o=t.max,s=a.array,l=o.array,h=i[0];Io(e,h,n),No(s,e),No(l,e);for(var u=1;u<8;u++)h=i[u],Io(e,h,n),s[0]=$n(e[0],s[0]),s[1]=$n(e[1],s[1]),s[2]=$n(e[2],s[2]),l[0]=Kn(e[0],l[0]),l[1]=Kn(e[1],l[1]),l[2]=Kn(e[2],l[2]);return a._dirty=!0,o._dirty=!0,t}}()};const Fa=Xs;var _u=It.extend(function(){return{projectionMatrix:new k,invProjectionMatrix:new k,viewMatrix:new k,frustum:new Fa}},function(){this.update(!0)},{update:function(e){It.prototype.update.call(this,e),k.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),k.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){k.copy(this.viewMatrix,e),k.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){k.copy(this.projectionMatrix,e),k.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var e=z.create();return function(t,r){var i=r!==void 0?r:new fn,n=t.array[0],a=t.array[1];return z.set(e,n,a,-1,1),z.transformMat4(e,e,this.invProjectionMatrix.array),z.transformMat4(e,e,this.worldTransform.array),A.scale(i.origin.array,e,1/e[3]),z.set(e,n,a,1,1),z.transformMat4(e,e,this.invProjectionMatrix.array),z.transformMat4(e,e,this.worldTransform.array),A.scale(e,e,1/e[3]),A.sub(i.direction.array,e,i.origin.array),A.normalize(i.direction.array,i.direction.array),i.direction._dirty=!0,i.origin._dirty=!0,i}}()});const Wr=_u;var gu=F.create(),Oo=F.create(),Qn={};function yu(e){var t=[],r=Object.keys(e);r.sort();for(var i=0;i0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)):e instanceof Ct&&this.lights.push(e),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){var t;e instanceof Wr?(t=this._cameraList.indexOf(e),t>=0&&this._cameraList.splice(t,1)):e instanceof Ct&&(t=this.lights.indexOf(e),t>=0&&this.lights.splice(t,1)),e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},setMainCamera:function(e){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1),this._cameraList.unshift(e)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var e=this.lights;this._previousLightNumber=this._lightNumber;for(var t={},r=0;r0&&this._doUpdateRenderList(o,t,r,i,n)}},isFrustumCulled:function(){var e=new it,t=new k;return function(r,i,n){var a=r.boundingBox;if(a||(r.skeleton&&r.skeleton.boundingBox?a=r.skeleton.boundingBox:a=r.geometry.boundingBox),!a)return!1;if(t.array=n,e.transformFrom(a,t),r.castShadow&&this.viewBoundingBoxLastFrame.union(e),r.frustumCulling){if(!e.intersectBoundingBox(i.frustum.boundingBox))return!0;t.array=i.projectionMatrix.array,e.max.array[2]>0&&e.min.array[2]<0&&(e.max.array[2]=-1e-20),e.applyProjection(t);var o=e.min.array,s=e.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var e=this.lights;e.sort(Tu);var t=this._lightUniforms;for(var r in t)for(var i in t[r])t[r][i].value.length=0;for(var n=0;n1&&t.texParameterf(t.TEXTURE_CUBE_MAP,n.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var a=e.getGLExtension("OES_texture_half_float");a||(i=D.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l0&&e.height>0}const wi=Ua;var Su=Wr.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=Math.atan(1/e[5])*2;this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=Wr.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}});const Ve=Su;var Yi="framebuffer",zt="renderbuffer",Bo=zt+"_width",Fo=zt+"_height",Jn=zt+"_attached",ea="depthtexture_attached",sr=D.FRAMEBUFFER,hi=D.RENDERBUFFER,pi=D.DEPTH_ATTACHMENT,Zs=D.COLOR_ATTACHMENT0,Ii=ot.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},function(){this._cache=new Oa,this._textures={}},{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(e){if(e.__currentFrameBuffer){if(e.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}e.__currentFrameBuffer=this;var t=e.gl;t.bindFramebuffer(sr,this._getFrameBufferGL(e)),this._boundRenderer=e;var r=this._cache;r.put("viewport",e.viewport);var i=!1,n,a;for(var o in this._textures){i=!0;var s=this._textures[o];s&&(n=s.texture.width,a=s.texture.height,this._doAttach(e,s.texture,o,s.target))}this._width=n,this._height=a,!i&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?e.setViewport(this.viewport):e.setViewport(0,0,n,a,1);var l=r.get("attached_textures");if(l){for(var o in l)if(!this._textures[o]){var h=l[o];this._doDetach(t,o,h)}}if(!r.get(ea)&&this.depthBuffer){r.miss(zt)&&r.put(zt,t.createRenderbuffer());var u=r.get(zt);(n!==r.get(Bo)||a!==r.get(Fo))&&(t.bindRenderbuffer(hi,u),t.renderbufferStorage(hi,t.DEPTH_COMPONENT16,n,a),r.put(Bo,n),r.put(Fo,a),t.bindRenderbuffer(hi,null)),r.get(Jn)||(t.framebufferRenderbuffer(sr,pi,hi,u),r.put(Jn,!0))}},unbind:function(e){e.__currentFrameBuffer=null;var t=e.gl;t.bindFramebuffer(sr,null),this._boundRenderer=null,this._cache.use(e.__uid__);var r=this._cache.get("viewport");r&&e.setViewport(r),this.updateMipmap(e)},updateMipmap:function(e){var t=e.gl;for(var r in this._textures){var i=this._textures[r];if(i){var n=i.texture;if(!n.NPOT&&n.useMipmap&&n.minFilter===X.LINEAR_MIPMAP_LINEAR){var a=n.textureType==="textureCube"?D.TEXTURE_CUBE_MAP:D.TEXTURE_2D;t.bindTexture(a,n.getWebGLTexture(e)),t.generateMipmap(a),t.bindTexture(a,null)}}}},checkStatus:function(e){return e.checkFramebufferStatus(sr)},_getFrameBufferGL:function(e){var t=this._cache;return t.use(e.__uid__),t.miss(Yi)&&t.put(Yi,e.gl.createFramebuffer()),t.get(Yi)},attach:function(e,t,r){if(!e.width)throw new Error("The texture attached to color buffer is not a valid.");t=t||Zs,r=r||D.TEXTURE_2D;var i=this._boundRenderer,n=i&&i.gl,a;if(n){var o=this._cache;o.use(i.__uid__),a=o.get("attached_textures")}var s=this._textures[t];if(!(s&&s.target===r&&s.texture===e&&a&&a[t]!=null)){var l=!0;i&&(l=this._doAttach(i,e,t,r),this.viewport||i.setViewport(0,0,e.width,e.height,1)),l&&(this._textures[t]=this._textures[t]||{},this._textures[t].texture=e,this._textures[t].target=r)}},_doAttach:function(e,t,r,i){var n=e.gl,a=t.getWebGLTexture(e),o=this._cache.get("attached_textures");if(o&&o[r]){var s=o[r];if(s.texture===t&&s.target===i)return}r=+r;var l=!0;if(r===pi||r===D.DEPTH_STENCIL_ATTACHMENT){var h=e.getGLExtension("WEBGL_depth_texture");if(h||(console.error("Depth texture is not supported by the browser"),l=!1),t.format!==D.DEPTH_COMPONENT&&t.format!==D.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var u=this._cache.get(zt);u&&(n.framebufferRenderbuffer(sr,pi,hi,null),n.deleteRenderbuffer(u),this._cache.put(zt,!1)),this._cache.put(Jn,!1),this._cache.put(ea,!0)}}return n.framebufferTexture2D(sr,r,i,a,0),o||(o={},this._cache.put("attached_textures",o)),o[r]=o[r]||{},o[r].texture=t,o[r].target=i,l},_doDetach:function(e,t,r){e.framebufferTexture2D(sr,t,r,null,0);var i=this._cache.get("attached_textures");i&&i[t]&&(i[t]=null),(t===pi||t===D.DEPTH_STENCIL_ATTACHMENT)&&this._cache.put(ea,!1)},detach:function(e,t){if(this._textures[e]=null,this._boundRenderer){var r=this._cache;r.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,e,t)}},dispose:function(e){var t=e.gl,r=this._cache;r.use(e.__uid__);var i=r.get(zt);i&&t.deleteRenderbuffer(i);var n=r.get(Yi);n&&t.deleteFramebuffer(n),r.deleteContext(e.__uid__),this._textures={}}});Ii.DEPTH_ATTACHMENT=pi;Ii.COLOR_ATTACHMENT0=Zs;Ii.STENCIL_ATTACHMENT=D.STENCIL_ATTACHMENT;Ii.DEPTH_STENCIL_ATTACHMENT=D.DEPTH_STENCIL_ATTACHMENT;const qe=Ii;var Eu=["px","nx","py","ny","pz","nz"],bu=ot.extend(function(){var e={position:new G,far:1e3,near:.1,texture:null,shadowMapPass:null},t=e._cameras={px:new Ve({fov:90}),nx:new Ve({fov:90}),py:new Ve({fov:90}),ny:new Ve({fov:90}),pz:new Ve({fov:90}),nz:new Ve({fov:90})};return t.px.lookAt(G.POSITIVE_X,G.NEGATIVE_Y),t.nx.lookAt(G.NEGATIVE_X,G.NEGATIVE_Y),t.py.lookAt(G.POSITIVE_Y,G.POSITIVE_Z),t.ny.lookAt(G.NEGATIVE_Y,G.NEGATIVE_Z),t.pz.lookAt(G.POSITIVE_Z,G.NEGATIVE_Y),t.nz.lookAt(G.NEGATIVE_Z,G.NEGATIVE_Y),e._frameBuffer=new qe,e},{getCamera:function(e){return this._cameras[e]},render:function(e,t,r){var i=e.gl;r||t.update();for(var n=this.texture.width,a=2*Math.atan(n/(n-.5))/Math.PI*180,o=0;o<6;o++){var s=Eu[o],l=this._cameras[s];if(G.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=a,this.shadowMapPass){l.update();var h=t.getBoundingBox();h.applyTransform(l.viewMatrix),t.viewBoundingBoxLastFrame.copy(h),this.shadowMapPass.render(e,t,l,!0)}this._frameBuffer.attach(this.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(e),e.render(t,l,!0),this._frameBuffer.unbind(e)}},dispose:function(e){this._frameBuffer.dispose(e)}});const Ga=bu;var Au=se.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var e=this.heightSegments,t=this.widthSegments,r=this.attributes,i=[],n=[],a=[],o=[],s=0;s<=e;s++)for(var l=s/e,h=0;h<=t;h++){var u=h/t;if(i.push([2*u-1,2*l-1,0]),n&&n.push([u,l]),a&&a.push([0,0,1]),h0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],r)}});const Si=Du;var Mu=542327876,Pu=131072,Ru=512,Nu=4;function za(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var Iu=31,Ou=za("DXT1"),Bu=za("DXT3"),Fu=za("DXT5"),Uu=0,Gu=1,zu=2,Hu=3,Vu=4,ku=7,Wu=20,Xu=21,Zu=28,ju={parse:function(e,t){var r=new Int32Array(e,0,Iu);if(r[Uu]!==Mu||!r(Wu)&Nu)return null;var i=r(Xu),n=r[Vu],a=r[Hu],o=r[Zu]&Ru,s=r[zu]&Pu,l,h;switch(i){case Ou:l=8,h=X.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Bu:l=16,h=X.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Fu:l=16,h=X.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var u=r[Gu]+4,c=o?6:1,d=1;s&&(d=Math.max(1,r[ku]));for(var f=[],v=0;v0){var n=Math.pow(2,e[3]-128-8+i);t[r+0]=e[0]*n,t[r+1]=e[1]*n,t[r+2]=e[2]*n}else t[r+0]=0,t[r+1]=0,t[r+2]=0;return t[r+3]=1,t}function Qu(e,t,r){for(var i="",n=t;n0;)if(e[a][0]=t[r++],e[a][1]=t[r++],e[a][2]=t[r++],e[a][3]=t[r++],e[a][0]===1&&e[a][1]===1&&e[a][2]===1){for(var s=e[a][3]<>>0;s>0;s--)Ju(e[a-1],e[a]),a++,o--;n+=8}else a++,o--,n=0;return r}function ec(e,t,r,i){if(i$u)return Uo(e,t,r,i);var n=t[r++];if(n!=2)return Uo(e,t,r-1,i);if(e[0][1]=t[r++],e[0][2]=t[r++],n=t[r++],(e[0][2]<<8>>>0|n)>>>0!==i)return null;for(var n=0;n<4;n++)for(var a=0;a128){o=(o&127)>>>0;for(var s=t[r++];o--;)e[a++][n]=s}else for(;o--;)e[a++][n]=t[r++]}return r}var tc={parseRGBE:function(e,t,r){r==null&&(r=0);var i=new Uint8Array(e),n=i.length;if(Qu(i,0,2)==="#?"){for(var a=2;a=n)){a+=2;for(var o="";a20)return console.warn("Given image is not a height map"),e}var f,v,p,_;l%(i*4)===0?(f=o.data[l],p=o.data[l+4]):l%(i*4)===(i-1)*4?(f=o.data[l-4],p=o.data[l]):(f=o.data[l-4],p=o.data[l+4]),li*(n-1)*4?(v=o.data[l-i*4],_=o.data[l]):(v=o.data[l-i*4],_=o.data[l+i*4]),s.data[l]=f-p+127,s.data[l+1]=v-_+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),r},isHeightImage:function(e,t,r){if(!e||!e.width||!e.height)return!1;var i=document.createElement("canvas"),n=i.getContext("2d"),a=t||32;r=r||20,i.width=i.height=a,n.drawImage(e,0,0,a,a);for(var o=n.getImageData(0,0,a,a),s=0;sr)return!1}return!0},_fetchTexture:function(e,t,r){Re.request.get({url:e,responseType:"arraybuffer",onload:t,onerror:r})},createChessboard:function(e,t,r,i){e=e||512,t=t||64,r=r||"black",i=i||"white";var n=Math.ceil(e/t),a=document.createElement("canvas");a.width=e,a.height=e;var o=a.getContext("2d");o.fillStyle=i,o.fillRect(0,0,e,e),o.fillStyle=r;for(var s=0;s=0||(ya.forEach(function(t){e.on(t,this[xa(t)],this)},this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),ya.forEach(function(r){e.off(r,this[xa(r)])},this)},dispose:function(){this._meshes.forEach(function(e){this.detachFromMesh(e)},this)}};const ic=Ta;var nc=Wr.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array;this.left=(-1-e[12])/e[0],this.right=(1-e[12])/e[0],this.top=(1-e[13])/e[5],this.bottom=(-1-e[13])/e[5],this.near=-(-1-e[14])/e[10],this.far=-(1-e[14])/e[10]},clone:function(){var e=Wr.prototype.clone.call(this);return e.left=this.left,e.right=this.right,e.near=this.near,e.far=this.far,e.top=this.top,e.bottom=this.bottom,e}});const Xr=nc,ac=` +@export clay.compositor.vertex +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; +attribute vec3 position : POSITION; +attribute vec2 texcoord : TEXCOORD_0; +varying vec2 v_Texcoord; +void main() +{ + v_Texcoord = texcoord; + gl_Position = worldViewProjection * vec4(position, 1.0); +} +@end`;N.import(ac);var oc=new Mn,Go=new vr({geometry:oc,frustumCulling:!1}),sc=new Xr,lc=ot.extend(function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}},function(){var e=new N(N.source("clay.compositor.vertex"),this.fragment),t=new St({shader:e});t.enableTexturesAll(),this.material=t},{setUniform:function(e,t){this.material.setUniform(e,t)},getUniform:function(e){var t=this.material.uniforms[e];if(t)return t.value},attachOutput:function(e,t){this.outputs||(this.outputs={}),t=t||D.COLOR_ATTACHMENT0,this.outputs[t]=e},detachOutput:function(e){for(var t in this.outputs)this.outputs[t]===e&&(this.outputs[t]=null)},bind:function(e,t){if(this.outputs)for(var r in this.outputs){var i=this.outputs[r];i&&t.attach(i,r)}t&&t.bind(e)},unbind:function(e,t){t.unbind(e)},render:function(e,t){var r=e.gl;if(t){this.bind(e,t);var i=e.getGLExtension("EXT_draw_buffers");if(i&&this.outputs){var n=[];for(var a in this.outputs)a=+a,a>=r.COLOR_ATTACHMENT0&&a<=r.COLOR_ATTACHMENT0+8&&n.push(a);i.drawBuffersEXT(n)}}this.trigger("beforerender",this,e);var o=this.clearDepth?r.DEPTH_BUFFER_BIT:0;if(r.depthMask(!0),this.clearColor){o=o|r.COLOR_BUFFER_BIT,r.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&r.clearColor(s[0],s[1],s[2],s[3])}r.clear(o),this.blendWithPrevious?(r.enable(r.BLEND),this.material.transparent=!0):(r.disable(r.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){Go.material=this.material,e.renderPass([Go],sc)},dispose:function(e){}});const Ne=lc,hc=`#define SAMPLE_NUMBER 1024 +#define PI 3.14159265358979 +uniform sampler2D normalDistribution; +uniform vec2 viewportSize : [512, 256]; +const vec3 N = vec3(0.0, 0.0, 1.0); +const float fSampleNumber = float(SAMPLE_NUMBER); +vec3 importanceSampleNormal(float i, float roughness, vec3 N) { + vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; + vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); + vec3 tangentX = normalize(cross(N, upVector)); + vec3 tangentZ = cross(N, tangentX); + return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); +} +float G_Smith(float roughness, float NoV, float NoL) { + float k = roughness * roughness / 2.0; + float G1V = NoV / (NoV * (1.0 - k) + k); + float G1L = NoL / (NoL * (1.0 - k) + k); + return G1L * G1V; +} +void main() { + vec2 uv = gl_FragCoord.xy / viewportSize; + float NoV = uv.x; + float roughness = uv.y; + vec3 V; + V.x = sqrt(1.0 - NoV * NoV); + V.y = 0.0; + V.z = NoV; + float A = 0.0; + float B = 0.0; + for (int i = 0; i < SAMPLE_NUMBER; i++) { + vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N); + vec3 L = reflect(-V, H); + float NoL = clamp(L.z, 0.0, 1.0); + float NoH = clamp(H.z, 0.0, 1.0); + float VoH = clamp(dot(V, H), 0.0, 1.0); + if (NoL > 0.0) { + float G = G_Smith(roughness, NoV, NoL); + float G_Vis = G * VoH / (NoH * NoV); + float Fc = pow(1.0 - VoH, 5.0); + A += (1.0 - Fc) * G_Vis; + B += Fc * G_Vis; + } + } + gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0); +} +`,uc=`#define SHADER_NAME prefilter +#define SAMPLE_NUMBER 1024 +#define PI 3.14159265358979 +uniform mat4 viewInverse : VIEWINVERSE; +uniform samplerCube environmentMap; +uniform sampler2D normalDistribution; +uniform float roughness : 0.5; +varying vec2 v_Texcoord; +varying vec3 v_WorldPosition; +@import clay.util.rgbm +vec3 importanceSampleNormal(float i, float roughness, vec3 N) { + vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; + vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); + vec3 tangentX = normalize(cross(N, upVector)); + vec3 tangentZ = cross(N, tangentX); + return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); +} +void main() { + vec3 eyePos = viewInverse[3].xyz; + vec3 V = normalize(v_WorldPosition - eyePos); + vec3 N = V; + vec3 prefilteredColor = vec3(0.0); + float totalWeight = 0.0; + float fMaxSampleNumber = float(SAMPLE_NUMBER); + for (int i = 0; i < SAMPLE_NUMBER; i++) { + vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N); + vec3 L = reflect(-V, H); + float NoL = clamp(dot(N, L), 0.0, 1.0); + if (NoL > 0.0) { + prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL; + totalWeight += NoL; + } + } + gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0)); +} +`;var gr={},ta=["px","nx","py","ny","pz","nz"];gr.prefilterEnvironmentMap=function(e,t,r,i,n){(!n||!i)&&(i=gr.generateNormalDistribution(),n=gr.integrateBRDF(e,i)),r=r||{};var a=r.width||64,o=r.height||64,s=r.type||t.type,l=new wi({width:a,height:o,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var h=Math.min(a,o),u=Math.log(h)/Math.log(2)+1,c=new St({shader:new N({vertex:N.source("clay.skybox.vertex"),fragment:uc})});c.set("normalDistribution",i),r.encodeRGBM&&c.define("fragment","RGBM_ENCODE"),r.decodeRGBM&&c.define("fragment","RGBM_DECODE");var d=new ir,f;if(t.textureType==="texture2D"){var v=new wi({width:a,height:o,type:s===X.FLOAT?X.HALF_FLOAT:s});_r.panoramaToCubeMap(e,t,v,{encodeRGBM:r.decodeRGBM}),t=v}f=new Si({scene:d,material:c}),f.material.set("environmentMap",t);var p=new Ga({texture:l});r.encodeRGBM&&(s=l.type=X.UNSIGNED_BYTE);for(var _=new Q({width:a,height:o,type:s}),m=new qe({depthBuffer:!1}),x=Re[s===X.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],y=0;y>>16)>>>0;c=((c&1431655765)<<1|(c&2863311530)>>>1)>>>0,c=((c&858993459)<<2|(c&3435973836)>>>2)>>>0,c=((c&252645135)<<4|(c&4042322160)>>>4)>>>0,c=(((c&16711935)<<8|(c&4278255360)>>>8)>>>0)/4294967296;var d=Math.sqrt((1-c)/(1+(h*h-1)*c));o[u]=d}for(var u=0;u65535?Uint32Array:Uint16Array,s=this.indices=new o(t*e*6),l,h,u,c,d,f,v,y=this.radius,p=this.phiStart,_=this.phiLength,m=this.thetaStart,x=this.thetaLength,y=this.radius,g=[],S=[],w=0,E=1/y;for(v=0;v<=e;v++)for(f=0;f<=t;f++)c=f/t,d=v/e,l=-y*Math.cos(p+c*_)*Math.sin(m+d*x),h=y*Math.cos(m+d*x),u=y*Math.sin(p+c*_)*Math.sin(m+d*x),g[0]=l,g[1]=h,g[2]=u,S[0]=c,S[1]=d,r.set(w,g),i.set(w,S),g[0]*=E,g[1]*=E,g[2]*=E,n.set(w,g),w++;var b,L,P,C,R=t+1,I=0;for(v=0;v=0&&l.splice(c,1)}),l.push(h),this.__zr&&this.__zr.animation.addAnimator(h),h},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,r=t.length,i=0;i 1e-4) +{ + skinMatrixWS += getSkinMatrix(joint.y) * weight.y; +} +if (weight.z > 1e-4) +{ + skinMatrixWS += getSkinMatrix(joint.z) * weight.z; +} +float weightW = 1.0-weight.x-weight.y-weight.z; +if (weightW > 1e-4) +{ + skinMatrixWS += getSkinMatrix(joint.w) * weightW; +} +@end +@export clay.chunk.instancing_header +#ifdef INSTANCING +attribute vec4 instanceMat1; +attribute vec4 instanceMat2; +attribute vec4 instanceMat3; +#endif +@end +@export clay.chunk.instancing_matrix +mat4 instanceMat = mat4( + vec4(instanceMat1.xyz, 0.0), + vec4(instanceMat2.xyz, 0.0), + vec4(instanceMat3.xyz, 0.0), + vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0) +); +@end +@export clay.util.parallax_correct +vec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) { + vec3 first = (boxMax - pos) / dir; + vec3 second = (boxMin - pos) / dir; + vec3 further = max(first, second); + float dist = min(further.x, min(further.y, further.z)); + vec3 fixedPos = pos + dir * dist; + vec3 boxCenter = (boxMax + boxMin) * 0.5; + return normalize(fixedPos - boxCenter); +} +@end +@export clay.util.clamp_sample +vec4 clampSample(const in sampler2D texture, const in vec2 coord) +{ +#ifdef STEREO + float eye = step(0.5, coord.x) * 0.5; + vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0)); +#else + vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0)); +#endif + return texture2D(texture, coordClamped); +} +@end +@export clay.util.ACES +vec3 ACESToneMapping(vec3 color) +{ + const float A = 2.51; + const float B = 0.03; + const float C = 2.43; + const float D = 0.59; + const float E = 0.14; + return (color * (A * color + B)) / (color * (C * color + D) + E); +} +@end`,Bc=` +@export ecgl.common.transformUniforms +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; +uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; +uniform mat4 world : WORLD; +@end + +@export ecgl.common.attributes +attribute vec3 position : POSITION; +attribute vec2 texcoord : TEXCOORD_0; +attribute vec3 normal : NORMAL; +@end + +@export ecgl.common.uv.header +uniform vec2 uvRepeat : [1.0, 1.0]; +uniform vec2 uvOffset : [0.0, 0.0]; +uniform vec2 detailUvRepeat : [1.0, 1.0]; +uniform vec2 detailUvOffset : [0.0, 0.0]; + +varying vec2 v_Texcoord; +varying vec2 v_DetailTexcoord; +@end + +@export ecgl.common.uv.main +v_Texcoord = texcoord * uvRepeat + uvOffset; +v_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset; +@end + +@export ecgl.common.uv.fragmentHeader +varying vec2 v_Texcoord; +varying vec2 v_DetailTexcoord; +@end + + +@export ecgl.common.albedo.main + + vec4 albedoTexel = vec4(1.0); +#ifdef DIFFUSEMAP_ENABLED + albedoTexel = texture2D(diffuseMap, v_Texcoord); + #ifdef SRGB_DECODE + albedoTexel = sRGBToLinear(albedoTexel); + #endif +#endif + +#ifdef DETAILMAP_ENABLED + vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord); + #ifdef SRGB_DECODE + detailTexel = sRGBToLinear(detailTexel); + #endif + albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a); + albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a; +#endif + +@end + +@export ecgl.common.wireframe.vertexHeader + +#ifdef WIREFRAME_QUAD +attribute vec4 barycentric; +varying vec4 v_Barycentric; +#elif defined(WIREFRAME_TRIANGLE) +attribute vec3 barycentric; +varying vec3 v_Barycentric; +#endif + +@end + +@export ecgl.common.wireframe.vertexMain + +#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) + v_Barycentric = barycentric; +#endif + +@end + + +@export ecgl.common.wireframe.fragmentHeader + +uniform float wireframeLineWidth : 1; +uniform vec4 wireframeLineColor: [0, 0, 0, 0.5]; + +#ifdef WIREFRAME_QUAD +varying vec4 v_Barycentric; +float edgeFactor () { + vec4 d = fwidth(v_Barycentric); + vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric); + return min(min(min(a4.x, a4.y), a4.z), a4.w); +} +#elif defined(WIREFRAME_TRIANGLE) +varying vec3 v_Barycentric; +float edgeFactor () { + vec3 d = fwidth(v_Barycentric); + vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric); + return min(min(a3.x, a3.y), a3.z); +} +#endif + +@end + + +@export ecgl.common.wireframe.fragmentMain + +#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) + if (wireframeLineWidth > 0.) { + vec4 lineColor = wireframeLineColor; +#ifdef SRGB_DECODE + lineColor = sRGBToLinear(lineColor); +#endif + + gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a); + } +#endif +@end + + + + +@export ecgl.common.bumpMap.header + +#ifdef BUMPMAP_ENABLED +uniform sampler2D bumpMap; +uniform float bumpScale : 1.0; + + +vec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal) +{ + vec2 dSTdx = dFdx(v_Texcoord); + vec2 dSTdy = dFdy(v_Texcoord); + + float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x; + float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll; + float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll; + + vec3 vSigmaX = dFdx(surfPos); + vec3 vSigmaY = dFdy(surfPos); + vec3 vN = surfNormal; + + vec3 R1 = cross(vSigmaY, vN); + vec3 R2 = cross(vN, vSigmaX); + + float fDet = dot(vSigmaX, R1); + + vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2); + return normalize(abs(fDet) * baseNormal - vGrad); + +} +#endif + +@end + +@export ecgl.common.normalMap.vertexHeader + +#ifdef NORMALMAP_ENABLED +attribute vec4 tangent : TANGENT; +varying vec3 v_Tangent; +varying vec3 v_Bitangent; +#endif + +@end + +@export ecgl.common.normalMap.vertexMain + +#ifdef NORMALMAP_ENABLED + if (dot(tangent, tangent) > 0.0) { + v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); + v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); + } +#endif + +@end + + +@export ecgl.common.normalMap.fragmentHeader + +#ifdef NORMALMAP_ENABLED +uniform sampler2D normalMap; +varying vec3 v_Tangent; +varying vec3 v_Bitangent; +#endif + +@end + +@export ecgl.common.normalMap.fragmentMain +#ifdef NORMALMAP_ENABLED + if (dot(v_Tangent, v_Tangent) > 0.0) { + vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz; + if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0; + mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal); + N = normalize(tbn * N); + } + } +#endif +@end + + + +@export ecgl.common.vertexAnimation.header + +#ifdef VERTEX_ANIMATION +attribute vec3 prevPosition; +attribute vec3 prevNormal; +uniform float percent; +#endif + +@end + +@export ecgl.common.vertexAnimation.main + +#ifdef VERTEX_ANIMATION + vec3 pos = mix(prevPosition, position, percent); + vec3 norm = mix(prevNormal, normal, percent); +#else + vec3 pos = position; + vec3 norm = normal; +#endif + +@end + + +@export ecgl.common.ssaoMap.header +#ifdef SSAOMAP_ENABLED +uniform sampler2D ssaoMap; +uniform vec4 viewport : VIEWPORT; +#endif +@end + +@export ecgl.common.ssaoMap.main + float ao = 1.0; +#ifdef SSAOMAP_ENABLED + ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r; +#endif +@end + + + + +@export ecgl.common.diffuseLayer.header + +#if (LAYER_DIFFUSEMAP_COUNT > 0) +uniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT]; +uniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT]; +#endif + +@end + +@export ecgl.common.emissiveLayer.header + +#if (LAYER_EMISSIVEMAP_COUNT > 0) +uniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT]; +uniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT]; +#endif + +@end + +@export ecgl.common.layers.header +@import ecgl.common.diffuseLayer.header +@import ecgl.common.emissiveLayer.header +@end + +@export ecgl.common.diffuseLayer.main + +#if (LAYER_DIFFUSEMAP_COUNT > 0) + for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{ + float intensity = layerDiffuseIntensity[_idx_]; + vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord); + #ifdef SRGB_DECODE + texel2 = sRGBToLinear(texel2); + #endif + albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a); + albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a; + }} +#endif + +@end + +@export ecgl.common.emissiveLayer.main + +#if (LAYER_EMISSIVEMAP_COUNT > 0) + for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++) + {{ + vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_]; + #ifdef SRGB_DECODE + texel2 = sRGBToLinear(texel2); + #endif + float intensity = layerEmissionIntensity[_idx_]; + gl_FragColor.rgb += texel2.rgb * texel2.a * intensity; + }} +#endif + +@end +`,Fc=`@export ecgl.color.vertex + +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; + +@import ecgl.common.uv.header + +attribute vec2 texcoord : TEXCOORD_0; +attribute vec3 position: POSITION; + +@import ecgl.common.wireframe.vertexHeader + +#ifdef VERTEX_COLOR +attribute vec4 a_Color : COLOR; +varying vec4 v_Color; +#endif + +#ifdef VERTEX_ANIMATION +attribute vec3 prevPosition; +uniform float percent : 1.0; +#endif + +#ifdef ATMOSPHERE_ENABLED +attribute vec3 normal: NORMAL; +uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; +varying vec3 v_Normal; +#endif + +void main() +{ +#ifdef VERTEX_ANIMATION + vec3 pos = mix(prevPosition, position, percent); +#else + vec3 pos = position; +#endif + + gl_Position = worldViewProjection * vec4(pos, 1.0); + + @import ecgl.common.uv.main + +#ifdef VERTEX_COLOR + v_Color = a_Color; +#endif + +#ifdef ATMOSPHERE_ENABLED + v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); +#endif + + @import ecgl.common.wireframe.vertexMain + +} + +@end + +@export ecgl.color.fragment + +#define LAYER_DIFFUSEMAP_COUNT 0 +#define LAYER_EMISSIVEMAP_COUNT 0 + +uniform sampler2D diffuseMap; +uniform sampler2D detailMap; + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; + +#ifdef ATMOSPHERE_ENABLED +uniform mat4 viewTranspose: VIEWTRANSPOSE; +uniform vec3 glowColor; +uniform float glowPower; +varying vec3 v_Normal; +#endif + +#ifdef VERTEX_COLOR +varying vec4 v_Color; +#endif + +@import ecgl.common.layers.header + +@import ecgl.common.uv.fragmentHeader + +@import ecgl.common.wireframe.fragmentHeader + +@import clay.util.srgb + +void main() +{ +#ifdef SRGB_DECODE + gl_FragColor = sRGBToLinear(color); +#else + gl_FragColor = color; +#endif + +#ifdef VERTEX_COLOR + gl_FragColor *= v_Color; +#endif + + @import ecgl.common.albedo.main + + @import ecgl.common.diffuseLayer.main + + gl_FragColor *= albedoTexel; + +#ifdef ATMOSPHERE_ENABLED + float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); + gl_FragColor.rgb += glowColor * atmoIntensity; +#endif + + @import ecgl.common.emissiveLayer.main + + @import ecgl.common.wireframe.fragmentMain + +} +@end`,Uc=`/** + * http: */ + +@export ecgl.lambert.vertex + +@import ecgl.common.transformUniforms + +@import ecgl.common.uv.header + + +@import ecgl.common.attributes + +@import ecgl.common.wireframe.vertexHeader + +#ifdef VERTEX_COLOR +attribute vec4 a_Color : COLOR; +varying vec4 v_Color; +#endif + + +@import ecgl.common.vertexAnimation.header + + +varying vec3 v_Normal; +varying vec3 v_WorldPosition; + +void main() +{ + @import ecgl.common.uv.main + + @import ecgl.common.vertexAnimation.main + + + gl_Position = worldViewProjection * vec4(pos, 1.0); + + v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); + v_WorldPosition = (world * vec4(pos, 1.0)).xyz; + +#ifdef VERTEX_COLOR + v_Color = a_Color; +#endif + + @import ecgl.common.wireframe.vertexMain +} + +@end + + +@export ecgl.lambert.fragment + +#define LAYER_DIFFUSEMAP_COUNT 0 +#define LAYER_EMISSIVEMAP_COUNT 0 + +#define NORMAL_UP_AXIS 1 +#define NORMAL_FRONT_AXIS 2 + +@import ecgl.common.uv.fragmentHeader + +varying vec3 v_Normal; +varying vec3 v_WorldPosition; + +uniform sampler2D diffuseMap; +uniform sampler2D detailMap; + +@import ecgl.common.layers.header + +uniform float emissionIntensity: 1.0; + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; + +uniform mat4 viewInverse : VIEWINVERSE; + +#ifdef ATMOSPHERE_ENABLED +uniform mat4 viewTranspose: VIEWTRANSPOSE; +uniform vec3 glowColor; +uniform float glowPower; +#endif + +#ifdef AMBIENT_LIGHT_COUNT +@import clay.header.ambient_light +#endif +#ifdef AMBIENT_SH_LIGHT_COUNT +@import clay.header.ambient_sh_light +#endif + +#ifdef DIRECTIONAL_LIGHT_COUNT +@import clay.header.directional_light +#endif + +#ifdef VERTEX_COLOR +varying vec4 v_Color; +#endif + + +@import ecgl.common.ssaoMap.header + +@import ecgl.common.bumpMap.header + +@import clay.util.srgb + +@import ecgl.common.wireframe.fragmentHeader + +@import clay.plugin.compute_shadow_map + +void main() +{ +#ifdef SRGB_DECODE + gl_FragColor = sRGBToLinear(color); +#else + gl_FragColor = color; +#endif + +#ifdef VERTEX_COLOR + #ifdef SRGB_DECODE + gl_FragColor *= sRGBToLinear(v_Color); + #else + gl_FragColor *= v_Color; + #endif +#endif + + @import ecgl.common.albedo.main + + @import ecgl.common.diffuseLayer.main + + gl_FragColor *= albedoTexel; + + vec3 N = v_Normal; +#ifdef DOUBLE_SIDED + vec3 eyePos = viewInverse[3].xyz; + vec3 V = normalize(eyePos - v_WorldPosition); + + if (dot(N, V) < 0.0) { + N = -N; + } +#endif + + float ambientFactor = 1.0; + +#ifdef BUMPMAP_ENABLED + N = bumpNormal(v_WorldPosition, v_Normal, N); + ambientFactor = dot(v_Normal, N); +#endif + + vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); + + vec3 diffuseColor = vec3(0.0, 0.0, 0.0); + + @import ecgl.common.ssaoMap.main + +#ifdef AMBIENT_LIGHT_COUNT + for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) + { + diffuseColor += ambientLightColor[i] * ambientFactor * ao; + } +#endif +#ifdef AMBIENT_SH_LIGHT_COUNT + for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) + {{ + diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; + }} +#endif +#ifdef DIRECTIONAL_LIGHT_COUNT +#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) + float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; + if(shadowEnabled) + { + computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); + } +#endif + for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) + { + vec3 lightDirection = -directionalLightDirection[i]; + vec3 lightColor = directionalLightColor[i]; + + float shadowContrib = 1.0; +#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) + if (shadowEnabled) + { + shadowContrib = shadowContribsDir[i]; + } +#endif + + float ndl = dot(N, normalize(lightDirection)) * shadowContrib; + + diffuseColor += lightColor * clamp(ndl, 0.0, 1.0); + } +#endif + + gl_FragColor.rgb *= diffuseColor; + +#ifdef ATMOSPHERE_ENABLED + float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); + gl_FragColor.rgb += glowColor * atmoIntensity; +#endif + + @import ecgl.common.emissiveLayer.main + + @import ecgl.common.wireframe.fragmentMain +} + +@end`,Gc=`@export ecgl.realistic.vertex + +@import ecgl.common.transformUniforms + +@import ecgl.common.uv.header + +@import ecgl.common.attributes + + +@import ecgl.common.wireframe.vertexHeader + +#ifdef VERTEX_COLOR +attribute vec4 a_Color : COLOR; +varying vec4 v_Color; +#endif + +#ifdef NORMALMAP_ENABLED +attribute vec4 tangent : TANGENT; +varying vec3 v_Tangent; +varying vec3 v_Bitangent; +#endif + +@import ecgl.common.vertexAnimation.header + +varying vec3 v_Normal; +varying vec3 v_WorldPosition; + +void main() +{ + + @import ecgl.common.uv.main + + @import ecgl.common.vertexAnimation.main + + gl_Position = worldViewProjection * vec4(pos, 1.0); + + v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); + v_WorldPosition = (world * vec4(pos, 1.0)).xyz; + +#ifdef VERTEX_COLOR + v_Color = a_Color; +#endif + +#ifdef NORMALMAP_ENABLED + v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); + v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); +#endif + + @import ecgl.common.wireframe.vertexMain + +} + +@end + + + +@export ecgl.realistic.fragment + +#define LAYER_DIFFUSEMAP_COUNT 0 +#define LAYER_EMISSIVEMAP_COUNT 0 +#define PI 3.14159265358979 +#define ROUGHNESS_CHANEL 0 +#define METALNESS_CHANEL 1 + +#define NORMAL_UP_AXIS 1 +#define NORMAL_FRONT_AXIS 2 + +#ifdef VERTEX_COLOR +varying vec4 v_Color; +#endif + +@import ecgl.common.uv.fragmentHeader + +varying vec3 v_Normal; +varying vec3 v_WorldPosition; + +uniform sampler2D diffuseMap; + +uniform sampler2D detailMap; +uniform sampler2D metalnessMap; +uniform sampler2D roughnessMap; + +@import ecgl.common.layers.header + +uniform float emissionIntensity: 1.0; + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; + +uniform float metalness : 0.0; +uniform float roughness : 0.5; + +uniform mat4 viewInverse : VIEWINVERSE; + +#ifdef ATMOSPHERE_ENABLED +uniform mat4 viewTranspose: VIEWTRANSPOSE; +uniform vec3 glowColor; +uniform float glowPower; +#endif + +#ifdef AMBIENT_LIGHT_COUNT +@import clay.header.ambient_light +#endif + +#ifdef AMBIENT_SH_LIGHT_COUNT +@import clay.header.ambient_sh_light +#endif + +#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT +@import clay.header.ambient_cubemap_light +#endif + +#ifdef DIRECTIONAL_LIGHT_COUNT +@import clay.header.directional_light +#endif + +@import ecgl.common.normalMap.fragmentHeader + +@import ecgl.common.ssaoMap.header + +@import ecgl.common.bumpMap.header + +@import clay.util.srgb + +@import clay.util.rgbm + +@import ecgl.common.wireframe.fragmentHeader + +@import clay.plugin.compute_shadow_map + +vec3 F_Schlick(float ndv, vec3 spec) { + return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); +} + +float D_Phong(float g, float ndh) { + float a = pow(8192.0, g); + return (a + 2.0) / 8.0 * pow(ndh, a); +} + +void main() +{ + vec4 albedoColor = color; + + vec3 eyePos = viewInverse[3].xyz; + vec3 V = normalize(eyePos - v_WorldPosition); +#ifdef VERTEX_COLOR + #ifdef SRGB_DECODE + albedoColor *= sRGBToLinear(v_Color); + #else + albedoColor *= v_Color; + #endif +#endif + + @import ecgl.common.albedo.main + + @import ecgl.common.diffuseLayer.main + + albedoColor *= albedoTexel; + + float m = metalness; + +#ifdef METALNESSMAP_ENABLED + float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL]; + m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0); +#endif + + vec3 baseColor = albedoColor.rgb; + albedoColor.rgb = baseColor * (1.0 - m); + vec3 specFactor = mix(vec3(0.04), baseColor, m); + + float g = 1.0 - roughness; + +#ifdef ROUGHNESSMAP_ENABLED + float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; + g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); +#endif + + vec3 N = v_Normal; + +#ifdef DOUBLE_SIDED + if (dot(N, V) < 0.0) { + N = -N; + } +#endif + + float ambientFactor = 1.0; + +#ifdef BUMPMAP_ENABLED + N = bumpNormal(v_WorldPosition, v_Normal, N); + ambientFactor = dot(v_Normal, N); +#endif + +@import ecgl.common.normalMap.fragmentMain + + vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); + + vec3 diffuseTerm = vec3(0.0); + vec3 specularTerm = vec3(0.0); + + float ndv = clamp(dot(N, V), 0.0, 1.0); + vec3 fresnelTerm = F_Schlick(ndv, specFactor); + + @import ecgl.common.ssaoMap.main + +#ifdef AMBIENT_LIGHT_COUNT + for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++) + {{ + diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao; + }} +#endif + +#ifdef AMBIENT_SH_LIGHT_COUNT + for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) + {{ + diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; + }} +#endif + +#ifdef DIRECTIONAL_LIGHT_COUNT +#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) + float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; + if(shadowEnabled) + { + computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); + } +#endif + for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) + {{ + vec3 L = -directionalLightDirection[_idx_]; + vec3 lc = directionalLightColor[_idx_]; + + vec3 H = normalize(L + V); + float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0); + float ndh = clamp(dot(N, H), 0.0, 1.0); + + float shadowContrib = 1.0; +#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) + if (shadowEnabled) + { + shadowContrib = shadowContribsDir[_idx_]; + } +#endif + + vec3 li = lc * ndl * shadowContrib; + + diffuseTerm += li; + specularTerm += li * fresnelTerm * D_Phong(g, ndh); + }} +#endif + + +#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT + vec3 L = reflect(-V, N); + L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]); + float rough2 = clamp(1.0 - g, 0.0, 1.0); + float bias2 = rough2 * 5.0; + vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy; + vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y; + vec3 envTexel2; + for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++) + {{ + envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12); + specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao; + }} +#endif + + gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm; + gl_FragColor.a = albedoColor.a; + +#ifdef ATMOSPHERE_ENABLED + float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); + gl_FragColor.rgb += glowColor * atmoIntensity; +#endif + +#ifdef SRGB_ENCODE + gl_FragColor = linearTosRGB(gl_FragColor); +#endif + + @import ecgl.common.emissiveLayer.main + + @import ecgl.common.wireframe.fragmentMain +} + +@end`,zc=`@export ecgl.hatching.vertex + +@import ecgl.realistic.vertex + +@end + + +@export ecgl.hatching.fragment + +#define NORMAL_UP_AXIS 1 +#define NORMAL_FRONT_AXIS 2 + +@import ecgl.common.uv.fragmentHeader + +varying vec3 v_Normal; +varying vec3 v_WorldPosition; + +uniform vec4 color : [0.0, 0.0, 0.0, 1.0]; +uniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0]; + +uniform mat4 viewInverse : VIEWINVERSE; + +#ifdef AMBIENT_LIGHT_COUNT +@import clay.header.ambient_light +#endif +#ifdef AMBIENT_SH_LIGHT_COUNT +@import clay.header.ambient_sh_light +#endif + +#ifdef DIRECTIONAL_LIGHT_COUNT +@import clay.header.directional_light +#endif + +#ifdef VERTEX_COLOR +varying vec4 v_Color; +#endif + + +@import ecgl.common.ssaoMap.header + +@import ecgl.common.bumpMap.header + +@import clay.util.srgb + +@import ecgl.common.wireframe.fragmentHeader + +@import clay.plugin.compute_shadow_map + +uniform sampler2D hatch1; +uniform sampler2D hatch2; +uniform sampler2D hatch3; +uniform sampler2D hatch4; +uniform sampler2D hatch5; +uniform sampler2D hatch6; + +float shade(in float tone) { + vec4 c = vec4(1. ,1., 1., 1.); + float step = 1. / 6.; + vec2 uv = v_DetailTexcoord; + if (tone <= step / 2.0) { + c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone); + } + else if (tone <= step) { + c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone); + } + if(tone > step && tone <= 2. * step){ + c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step)); + } + if(tone > 2. * step && tone <= 3. * step){ + c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step)); + } + if(tone > 3. * step && tone <= 4. * step){ + c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step)); + } + if(tone > 4. * step && tone <= 5. * step){ + c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step)); + } + if(tone > 5. * step){ + c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step)); + } + + return c.r; +} + +const vec3 w = vec3(0.2125, 0.7154, 0.0721); + +void main() +{ +#ifdef SRGB_DECODE + vec4 inkColor = sRGBToLinear(color); +#else + vec4 inkColor = color; +#endif + +#ifdef VERTEX_COLOR + #ifdef SRGB_DECODE + inkColor *= sRGBToLinear(v_Color); + #else + inkColor *= v_Color; + #endif +#endif + + vec3 N = v_Normal; +#ifdef DOUBLE_SIDED + vec3 eyePos = viewInverse[3].xyz; + vec3 V = normalize(eyePos - v_WorldPosition); + + if (dot(N, V) < 0.0) { + N = -N; + } +#endif + + float tone = 0.0; + + float ambientFactor = 1.0; + +#ifdef BUMPMAP_ENABLED + N = bumpNormal(v_WorldPosition, v_Normal, N); + ambientFactor = dot(v_Normal, N); +#endif + + vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); + + @import ecgl.common.ssaoMap.main + +#ifdef AMBIENT_LIGHT_COUNT + for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) + { + tone += dot(ambientLightColor[i], w) * ambientFactor * ao; + } +#endif +#ifdef AMBIENT_SH_LIGHT_COUNT + for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) + {{ + tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao; + }} +#endif +#ifdef DIRECTIONAL_LIGHT_COUNT +#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) + float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; + if(shadowEnabled) + { + computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); + } +#endif + for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) + { + vec3 lightDirection = -directionalLightDirection[i]; + float lightTone = dot(directionalLightColor[i], w); + + float shadowContrib = 1.0; +#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) + if (shadowEnabled) + { + shadowContrib = shadowContribsDir[i]; + } +#endif + + float ndl = dot(N, normalize(lightDirection)) * shadowContrib; + + tone += lightTone * clamp(ndl, 0.0, 1.0); + } +#endif + + gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0))); + } +@end +`,Hc=`@export ecgl.sm.depth.vertex + +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; + +attribute vec3 position : POSITION; +attribute vec2 texcoord : TEXCOORD_0; + +#ifdef VERTEX_ANIMATION +attribute vec3 prevPosition; +uniform float percent : 1.0; +#endif + +varying vec4 v_ViewPosition; +varying vec2 v_Texcoord; + +void main(){ + +#ifdef VERTEX_ANIMATION + vec3 pos = mix(prevPosition, position, percent); +#else + vec3 pos = position; +#endif + + v_ViewPosition = worldViewProjection * vec4(pos, 1.0); + gl_Position = v_ViewPosition; + + v_Texcoord = texcoord; + +} +@end + + + +@export ecgl.sm.depth.fragment + +@import clay.sm.depth.fragment + +@end`;Object.assign(It.prototype,Oc);N.import(qs);N.import(Us);N.import(Bc);N.import(Fc);N.import(Uc);N.import(Gc);N.import(zc);N.import(Hc);function Vc(e){return!e||e==="none"}function $s(e){return e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof Image}function kc(e){return e.getZr&&e.setOption}var Wc=ir.prototype.addToScene,Xc=ir.prototype.removeFromScene;ir.prototype.addToScene=function(e){if(Wc.call(this,e),this.__zr){var t=this.__zr;e.traverse(function(r){r.__zr=t,r.addAnimatorsToZr&&r.addAnimatorsToZr(t)})}};ir.prototype.removeFromScene=function(e){Xc.call(this,e),e.traverse(function(t){var r=t.__zr;t.__zr=null,r&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(r)})};St.prototype.setTextureImage=function(e,t,r,i){if(!!this.shader){var n=r.getZr(),a=this,o;return a.autoUpdateTextureStatus=!1,a.disableTexture(e),Vc(t)||(o=q.loadTexture(t,r,i,function(s){a.enableTexture(e),n&&n.refresh()}),a.set(e,o)),o}};var q={};q.Renderer=yi;q.Node=It;q.Mesh=vr;q.Shader=N;q.Material=St;q.Texture=X;q.Texture2D=Q;q.Geometry=se;q.SphereGeometry=Tc;q.PlaneGeometry=Mn;q.CubeGeometry=js;q.AmbientLight=Sc;q.DirectionalLight=bc;q.PointLight=Lc;q.SpotLight=Dc;q.PerspectiveCamera=Ve;q.OrthographicCamera=Xr;q.Vector2=mt;q.Vector3=G;q.Vector4=Mc;q.Quaternion=Gs;q.Matrix2=Pc;q.Matrix2d=Rc;q.Matrix3=Nc;q.Matrix4=k;q.Plane=Ws;q.Ray=fn;q.BoundingBox=it;q.Frustum=Fa;var $i=null;function Zc(){return $i!==null||($i=_r.createBlank("rgba(255,255,255,0)").image),$i}function zo(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function Ho(e){if((e.wrapS===X.REPEAT||e.wrapT===X.REPEAT)&&e.image){var t=zo(e.width),r=zo(e.height);if(t!==e.width||r!==e.height){var i=document.createElement("canvas");i.width=t,i.height=r;var n=i.getContext("2d");n.drawImage(e.image,0,0,t,r),e.image=i}}}q.loadTexture=function(e,t,r,i){typeof r=="function"&&(i=r,r={}),r=r||{};for(var n=Object.keys(r).sort(),a="",o=0;o3?t[3]=e[3]:t[3]=1,t):(t=ws(e||"#000",t)||[0,0,0,0],t[0]/=255,t[1]/=255,t[2]/=255,t)};q.directionFromAlphaBeta=function(e,t){var r=e/180*Math.PI+Math.PI/2,i=-t/180*Math.PI+Math.PI/2,n=[],a=Math.sin(r);return n[0]=a*Math.cos(i),n[1]=-Math.cos(r),n[2]=a*Math.sin(i),n};q.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096;break}return t};q.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"];q.createShader=function(e){e==="ecgl.shadow"&&(e="ecgl.displayShadow");var t=N.source(e+".vertex"),r=N.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),r||console.error("Fragment shader of '%s' not exits",e);var i=new N(t,r);return i.name=e,i};q.createMaterial=function(e,t){t instanceof Array||(t=[t]);var r=q.createShader(e),i=new St({shader:r});return t.forEach(function(n){typeof n=="string"&&i.define(n)}),i};q.setMaterialFromModel=function(e,t,r,i){t.autoUpdateTextureStatus=!1;var n=r.getModel(e+"Material"),a=n.get("detailTexture"),o=ee.firstNotNull(n.get("textureTiling"),1),s=ee.firstNotNull(n.get("textureOffset"),0);typeof o=="number"&&(o=[o,o]),typeof s=="number"&&(s=[s,s]);var l=o[0]>1||o[1]>1?q.Texture.REPEAT:q.Texture.CLAMP_TO_EDGE,h={anisotropic:8,wrapS:l,wrapT:l};if(e==="realistic"){var u=n.get("roughness"),c=n.get("metalness");c!=null?isNaN(c)&&(t.setTextureImage("metalnessMap",c,i,h),c=ee.firstNotNull(n.get("metalnessAdjust"),.5)):c=0,u!=null?isNaN(u)&&(t.setTextureImage("roughnessMap",u,i,h),u=ee.firstNotNull(n.get("roughnessAdjust"),.5)):u=.5;var d=n.get("normalTexture");t.setTextureImage("detailMap",a,i,h),t.setTextureImage("normalMap",d,i,h),t.set({roughness:u,metalness:c,detailUvRepeat:o,detailUvOffset:s})}else if(e==="lambert")t.setTextureImage("detailMap",a,i,h),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="color")t.setTextureImage("detailMap",a,i,h),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="hatching"){var f=n.get("hatchingTextures")||[];f.length<6;for(var v=0;v<6;v++)t.setTextureImage("hatch"+(v+1),f[v],i,{anisotropic:8,wrapS:q.Texture.REPEAT,wrapT:q.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}};q.updateVertexAnimation=function(e,t,r,i){var n=i.get("animation"),a=i.get("animationDurationUpdate"),o=i.get("animationEasingUpdate"),s=r.shadowDepthMaterial;if(n&&t&&a>0&&t.geometry.vertexCount===r.geometry.vertexCount){r.material.define("vertex","VERTEX_ANIMATION"),r.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l=0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var r=this.zr;e.scene.traverse(function(i){i.__zr=r,i.addAnimatorsToZr&&i.addAnimatorsToZr(r)})}};function Ks(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}_e.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(Ks,this),e.layer=null,this._viewsToDispose.push(e))}};_e.prototype.removeViewsAll=function(){this.views.forEach(function(e){e.scene.traverse(Ks,this),e.layer=null,this._viewsToDispose.push(e)},this),this.views.length=0};_e.prototype.resize=function(e,t){var r=this.renderer;r.resize(e,t)};_e.prototype.clear=function(){var e=this.renderer.gl,t=this._backgroundColor||[0,0,0,0];e.clearColor(t[0],t[1],t[2],t[3]),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)};_e.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)};_e.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)};_e.prototype.needsRefresh=function(){this.zr.refresh()};_e.prototype.refresh=function(e){this._backgroundColor=e?T.parseColor(e):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var t=0;t20)){e=e.event;var i=this.pickObject(e.offsetX,e.offsetY);i&&(this._dispatchEvent(e.type,e,i),this._dispatchDataEvent(e.type,e,i));var n=this._clickToSetFocusPoint(e);if(n){var a=n.view.setDOFFocusOnPoint(n.distance);a&&this.zr.refresh()}}}};_e.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,r=t.viewport,i=this.views.length-1;i>=0;i--){var n=this.views[i];if(n.hasDOF()&&n.containPoint(e.offsetX,e.offsetY)){this._picking.scene=n.scene,this._picking.camera=n.camera,t.viewport=n.viewport;var a=this._picking.pick(e.offsetX,e.offsetY,!0);if(a)return a.view=n,a}}t.viewport=r};_e.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})};_e.prototype.pickObject=function(e,t){for(var r=[],i=this.renderer,n=i.viewport,a=0;a=0&&(u.dataIndex=this._lastDataIndex,u.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(h,"mouseout",t)),s=!0):o!=null&&o!==this._lastEventData&&(this._lastEventData!=null&&(u.eventData=this._lastEventData,this.zr.handler.dispatchToElement(h,"mouseout",t)),s=!0),this._lastEventData=o,this._lastDataIndex=n,this._lastSeriesIndex=a),u.eventData=o,u.dataIndex=n,u.seriesIndex=a,(o!=null||parseInt(n,10)>=0&&parseInt(a,10)>=0)&&(this.zr.handler.dispatchToElement(h,e,t),s&&this.zr.handler.dispatchToElement(h,"mouseover",t))};_e.prototype._dispatchToView=function(e,t){for(var r=0;r=0&&($c(t),t.coordinateSystem==="mapbox"&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))}),Qi(e.xAxis3D),Qi(e.yAxis3D),Qi(e.zAxis3D),Qi(e.grid3D),mi(e.geo3D)}function Js(e){this._layers={},this._zr=e}Js.prototype.update=function(e,t){var r=this,i=t.getZr();if(!i.getWidth()||!i.getHeight()){console.warn("Dom has no width or height");return}function n(s){i.setSleepAfterStill(0);var l;s.coordinateSystem&&s.coordinateSystem.model,l=s.get("zlevel");var h=r._layers,u=h[l];if(!u){if(u=h[l]=new Qs("gl-"+l,i),i.painter.isSingleCanvas()){u.virtual=!0;var c=new th({z:1e4,style:{image:u.renderer.canvas},silent:!0});u.__hostImage=c,i.add(c)}i.painter.insertLayer(l,u)}return u.__hostImage&&u.__hostImage.setStyle({width:u.renderer.getWidth(),height:u.renderer.getHeight()}),u}function a(s,l){s&&s.traverse(function(h){h.isRenderable&&h.isRenderable()&&(h.ignorePicking=h.$ignorePicking!=null?h.$ignorePicking:l)})}for(var o in this._layers)this._layers[o].removeViewsAll();e.eachComponent(function(s,l){if(s!=="series"){var h=t.getViewOfComponentModel(l),u=l.coordinateSystem;if(h.__ecgl__){var c;if(u){if(!u.viewGL){console.error("Can't find viewGL in coordinateSystem of component "+l.id);return}c=u.viewGL}else{if(!l.viewGL){console.error("Can't find viewGL of component "+l.id);return}c=u.viewGL}var c=u.viewGL,d=n(l);d.addView(c),h.afterRender&&h.afterRender(l,e,t,d),a(h.groupGL,l.get("silent"))}}}),e.eachSeries(function(s){var l=t.getViewOfSeriesModel(s),h=s.coordinateSystem;if(l.__ecgl__){if(h&&!h.viewGL&&!l.viewGL){console.error("Can't find viewGL of series "+l.id);return}var u=h&&h.viewGL||l.viewGL,c=n(s);c.addView(u),l.afterRender&&l.afterRender(s,e,t,c),a(l.groupGL,s.get("silent"))}})};Ql(function(e){var t=e.getZr(),r=t.painter.dispose;t.painter.dispose=function(){typeof this.eachOtherLayer=="function"&&this.eachOtherLayer(function(i){i instanceof Qs&&i.dispose()}),r.call(this)},t.painter.getRenderedCanvas=function(i){if(i=i||{},this._singleCanvas)return this._layers[0].dom;var n=document.createElement("canvas"),a=i.pixelRatio||this.dpr;n.width=this.getWidth()*a,n.height=this.getHeight()*a;var o=n.getContext("2d");o.dpr=a,o.clearRect(0,0,n.width,n.height),i.backgroundColor&&(o.fillStyle=i.backgroundColor,o.fillRect(0,0,n.width,n.height));var s=this.storage.getDisplayList(!0),l={},h,u=this;function c(p,_){var m=u._zlevelList;p==null&&(p=-1/0);for(var x,y=0;yp&&g<_){x=S;break}}x&&x.renderToCanvas&&(o.save(),x.renderToCanvas(o),o.restore())}for(var d={ctx:o},f=0;f0&&this._notFirst?this.animateTo({alpha:h,beta:u,center:c,distance:a,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(h),this.setBeta(u),this.setCenter(c),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){},animateTo:function(e){var t=this.zr,r=this,i={},n={};return e.distance!=null&&(i.distance=this.getDistance(),n.distance=e.distance),e.orthographicSize!=null&&(i.orthographicSize=this.getOrthographicSize(),n.orthographicSize=e.orthographicSize),e.alpha!=null&&(i.alpha=this.getAlpha(),n.alpha=e.alpha),e.beta!=null&&(i.beta=this.getBeta(),n.beta=e.beta),e.center!=null&&(i.center=this.getCenter(),n.center=e.center),this._addAnimator(t.animation.animate(i).when(e.duration||1e3,n).during(function(){i.alpha!=null&&r.setAlpha(i.alpha),i.beta!=null&&r.setBeta(i.beta),i.distance!=null&&r.setDistance(i.distance),i.center!=null&&r.setCenter(i.center),i.orthographicSize!=null&&r.setOrthographicSize(i.orthographicSize),r._needsUpdate=!0})).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e0},_update:function(e){if(this._rotating){var t=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),r=this._orthoSize,i=r/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-i/2,t.right=i/2,t.top=r/2,t.bottom=-r/2},_updatePan:function(e){var t=this._panVelocity,r=this._distance,i=this.getCamera(),n=i.worldTransform.y,a=i.worldTransform.x;this._center.scaleAndAdd(a,-t.x*r/200).scaleAndAdd(n,-t.y*r/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new G,r=this._theta+Math.PI/2,i=this._phi+Math.PI/2,n=Math.sin(r);t.x=n*Math.cos(i),t.y=-Math.cos(r),t.z=n*Math.sin(i),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout(function(){t._rotating=!0},e*1e3))},_vectorDamping:function(e,t){var r=e.len();r=r*t,r<1e-4&&(r=0),e.normalize().scale(r)},_decomposeTransform:function(){if(!!this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),r=Math.atan2(e.x,e.z);this._theta=t,this._phi=-r,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,r=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,r)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?e.event.targetTouches.length===1&&(this._mode="rotate"):e.event.button===Vo[this.rotateMouseButton]?this._mode="rotate":e.event.button===Vo[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if(!(e.target&&e.target.__isGLToZRProxy)&&!this._isAnimating()){var t=ko(this.panSensitivity),r=ko(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*r[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*r[1]):this._mode==="pan"&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(t!==0){var r=e.offsetX,i=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(r,i))){var n;this._projection==="perspective"?n=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):n=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),e.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done(function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)}),e}});Object.defineProperty(el.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}});const Nn=el,Oi={convertToDynamicArray:function(e){e&&this.resetOffset();var t=this.attributes;for(var r in t)e||!t[r].value?t[r].value=[]:t[r].value=Array.prototype.slice.call(t[r].value);e||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var e=this.attributes;for(var t in e)e[t].value&&e[t].value.length>0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Me={vec2:Z,vec3:A,vec4:z,mat2:Le,mat2d:Pe,mat3:ne,mat4:F,quat:$};var ra=Me.vec3,Wo=[[0,0],[1,1]],tl=se.extend(function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new se.Attribute("position","float",3,"POSITION"),positionPrev:new se.Attribute("positionPrev","float",3),positionNext:new se.Attribute("positionNext","float",3),prevPositionPrev:new se.Attribute("prevPositionPrev","float",3),prevPosition:new se.Attribute("prevPosition","float",3),prevPositionNext:new se.Attribute("prevPositionNext","float",3),offset:new se.Attribute("offset","float",1),color:new se.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.positionPrev.init(e),t.positionNext.init(e),t.offset.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,i){var n=ra.dist(e,t)+ra.dist(r,t)+ra.dist(i,r),a=1/(n+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?a*2:a*2+2},getCubicCurveTriangleCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?0:a*2},getLineVertexCount:function(){return this.getPolylineVertexCount(Wo)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Wo)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?0:Math.max(t-1,0)*2},addCubicCurve:function(e,t,r,i,n,a){a==null&&(a=1);for(var o=e[0],s=e[1],l=e[2],h=t[0],u=t[1],c=t[2],d=r[0],f=r[1],v=r[2],p=i[0],_=i[1],m=i[2],x=this._getCubicCurveApproxStep(e,t,r,i),y=x*x,g=y*x,S=3*x,w=3*y,E=6*y,b=6*g,L=o-h*2+d,P=s-u*2+f,C=l-c*2+v,R=(h-d)*3-o+p,I=(u-f)*3-s+_,M=(c-v)*3-l+m,B=o,H=s,W=l,U=(h-o)*S+L*w+R*g,he=(u-s)*S+P*w+I*g,V=(c-l)*S+C*w+M*g,ve=L*E+R*b,ue=P*E+I*b,ge=C*E+M*b,ye=R*b,re=I*b,Ie=M*b,Ee=0,Ce=0,Ke=Math.ceil(1/x),Ze=new Float32Array((Ke+1)*3),Ze=[],He=0,Ce=0;Ce1&&(B=U>0?Math.min(B,p):Math.max(B,p),H=he>0?Math.min(H,_):Math.max(H,_),W=V>0?Math.min(W,m):Math.max(W,m));return this.addPolyline(Ze,n,a)},addLine:function(e,t,r,i){return this.addPolyline([e,t],r,i)},addPolyline:function(e,t,r,i,n){if(!!e.length){var a=typeof e[0]!="number";if(n==null&&(n=a?e.length:e.length/3),!(n<2)){i==null&&(i=0),r==null&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);var a=typeof e[0]!="number",o=a?typeof t[0]!="number":t.length/4===n,s=this.attributes.position,l=this.attributes.positionPrev,h=this.attributes.positionNext,u=this.attributes.color,c=this.attributes.offset,d=this.indices,f=this._vertexOffset,v,p;r=Math.max(r,.01);for(var _=i;_1&&(s.copy(f,f-1),u.copy(f,f-1),f++):(_0&&(h.set(f-2,v),h.set(f-1,v)),s.set(f,v),s.set(f+1,v),u.set(f,p),u.set(f+1,p),c.set(f,r/2),c.set(f+1,-r/2),f+=2),this.useNativeLine)u.set(f,p),s.set(f,v),f++;else if(_>0){var y=this._triangleOffset*3,d=this.indices;d[y]=f-4,d[y+1]=f-3,d[y+2]=f-2,d[y+3]=f-3,d[y+4]=f-1,d[y+5]=f-2,this._triangleOffset+=2}}if(!this.useNativeLine){var g=this._vertexOffset,S=this._vertexOffset+n*2;l.copy(g,g+2),l.copy(g+1,g+3),h.copy(S-1,S-3),h.copy(S-2,S-4)}return this._vertexOffset=f,this._vertexOffset}}},setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],i=eo&&(n=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,r),a+r+l>s)return null;e.x+=this.offsetX*this.dpr+n,e.y+=this.offsetY*this.dpr+a,this._zr.add(e);var h=[this.offsetX/this.width,this.offsetY/this.height],u=[[n/o+h[0],a/s+h[1]],[(n+t)/o+h[0],(a+r)/s+h[1]]];return u},_fitElement:function(e,t,r){var i=e.getBoundingRect(),n=t/i.width,a=r/i.height;e.x=-i.x*n,e.y=-i.y*a,e.scaleX=n,e.scaleY=a,e.update()}};function _n(e){e=e||{},e.width=e.width||512,e.height=e.height||512,e.devicePixelRatio=e.devicePixelRatio||1,e.gap=e.gap==null?2:e.gap;var t=document.createElement("canvas");t.width=e.width*e.devicePixelRatio,t.height=e.height*e.devicePixelRatio,this._canvas=t,this._texture=new Q({image:t,flipY:!1});var r=this;this._zr=rh(t);var i=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){i.call(this),r._texture.dirty(),r.onupdate&&r.onupdate()},this._dpr=e.devicePixelRatio,this._coords={},this.onupdate=e.onupdate,this._gap=e.gap,this._textureAtlasNodes=[new mn(this._zr,0,0,e.width,e.height,this._gap,this._dpr)],this._nodeWidth=e.width,this._nodeHeight=e.height,this._currentNodeIdx=0}_n.prototype={clear:function(){for(var e=0;e=e)){var a=(i+this._nodeWidth)*this._dpr,o=(n+this._nodeHeight)*this._dpr;try{this._zr.resize({width:a,height:o})}catch{this._canvas.width=a,this._canvas.height=o}var s=new mn(this._zr,i,n,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}},add:function(e,t,r){if(this._coords[e.id])return this._coords[e.id];var i=this._getCurrentNode().add(e,t,r);if(!i){var n=this._expand();if(!n)return;i=n.add(e,t,r)}return this._coords[e.id]=i,i},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]},dispose:function(){this._zr.dispose()}};function tr(){}tr.prototype={constructor:tr,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new T.DirectionalLight({shadowBias:.005}),this.ambientLight=new T.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,r=this.ambientLight,i=e.getModel("light"),n=i.getModel("main"),a=i.getModel("ambient");t.intensity=n.get("intensity"),r.intensity=a.get("intensity"),t.color=T.parseColor(n.get("color")).slice(0,3),r.color=T.parseColor(a.get("color")).slice(0,3);var o=n.get("alpha")||0,s=n.get("beta")||0;t.position.setArray(T.directionFromAlphaBeta(o,s)),t.lookAt(T.Vector3.ZERO),t.castShadow=n.get("shadow"),t.shadowResolution=T.getShadowResolution(n.get("shadowQuality"))},updateAmbientCubemap:function(e,t,r){var i=t.getModel("light.ambientCubemap"),n=i.get("texture");if(n){this._cubemapLightsCache=this._cubemapLightsCache||{};var a=this._cubemapLightsCache[n];if(!a){var o=this;a=this._cubemapLightsCache[n]=T.createAmbientCubemap(i.option,e,r,function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(a.specular.cubemap),r.getZr().refresh()})}this._lightRoot.add(a.diffuse),this._lightRoot.add(a.specular),this._currentCubemapLights=a}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,r){var i=t.get("environment"),n=this;function a(){return n._skybox=n._skybox||new Si,n._skybox}var o=a();if(i&&i!=="none")if(i==="auto")if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;o.setEnvironmentMap(s),this._scene&&o.attachScene(this._scene),o.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if(typeof i=="object"&&i.colorStops||typeof i=="string"&&ws(i)){this._isSkyboxFromAmbientCubemap=!1;var l=new T.Texture2D({anisotropic:8,flipY:!1});o.setEnvironmentMap(l);var h=l.image=document.createElement("canvas");h.width=h.height=16;var u=h.getContext("2d"),c=new Ss({shape:{x:0,y:0,width:16,height:16},style:{fill:i}});Es(u,c),o.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;var l=T.loadTexture(i,r,{anisotropic:8,flipY:!1});o.setEnvironmentMap(l),o.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var d=t.coordinateSystem;if(this._skybox)if(d&&d.viewGL&&i!=="auto"&&!(i.match&&i.match(/.hdr$/))){var f=d.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[f]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}};var lr=Me.vec3,rl=se.extend(function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new se.Attribute("position","float",3,"POSITION"),normal:new se.Attribute("normal","float",3,"NORMAL"),color:new se.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(e){var t=this.attributes,r=this.getQuadVertexCount()*e,i=this.getQuadTriangleCount()*e;this.vertexCount!==r&&(t.position.init(r),t.normal.init(r),t.color.init(r)),this.triangleCount!==i&&(this.indices=r>65535?new Uint32Array(i*3):new Uint16Array(i*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var e=lr.create(),t=lr.create(),r=lr.create(),i=[0,3,1,3,2,1];return function(n,a){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;lr.sub(e,n[1],n[0]),lr.sub(t,n[2],n[1]),lr.cross(r,e,t),lr.normalize(r,r);for(var h=0;h<4;h++)o.set(this._vertexOffset+h,n[h]),l.set(this._vertexOffset+h,a),s.set(this._vertexOffset+h,r);for(var u=this._faceOffset*3,h=0;h<6;h++)this.indices[u+h]=i[h]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});rr(rl.prototype,Oi);const Jc=rl;var wa=ee.firstNotNull,ef={x:0,y:2,z:1};function tf(e,t,r,i){var n=[0,0,0],a=i<0?r.getExtentMin():r.getExtentMax();n[ef[r.dim]]=a,e.position.setArray(n),e.rotation.identity(),t.distance=-Math.abs(a),t.normal.set(0,0,0),r.dim==="x"?(e.rotation.rotateY(i*Math.PI/2),t.normal.x=-i):r.dim==="z"?(e.rotation.rotateX(-i*Math.PI/2),t.normal.y=-i):(i>0&&e.rotation.rotateY(Math.PI),t.normal.z=-i)}function In(e,t,r){this.rootNode=new T.Node;var i=new T.Mesh({geometry:new Er({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),n=new T.Mesh({geometry:new Jc,material:r,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(n),this.rootNode.add(i),this.faceInfo=e,this.plane=new T.Plane,this.linesMesh=i,this.quadsMesh=n}In.prototype.update=function(e,t,r){var i=e.coordinateSystem,n=[i.getAxis(this.faceInfo[0]),i.getAxis(this.faceInfo[1])],a=this.linesMesh.geometry,o=this.quadsMesh.geometry;a.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(a,n,e,r),this._udpateSplitAreas(o,n,e,r),a.convertToTypedArray(),o.convertToTypedArray();var s=i.getAxis(this.faceInfo[2]);tf(this.rootNode,this.plane,s,this.faceInfo[3])};In.prototype._updateSplitLines=function(e,t,r,i){var n=i.getDevicePixelRatio();t.forEach(function(a,o){var s=a.model,l=t[1-o].getExtent();if(!a.scale.isBlank()){var h=s.getModel("splitLine",r.getModel("splitLine"));if(h.get("show")){var u=h.getModel("lineStyle"),c=u.get("color"),d=wa(u.get("opacity"),1),f=wa(u.get("width"),1);c=Ot(c)?c:[c];for(var v=a.getTicksCoords({tickModel:h}),p=0,_=0;_65535?new Uint32Array(r*3):new Uint16Array(r*3))},setSpriteAlign:function(e,t,r,i,n){r==null&&(r="left"),i==null&&(i="top");var a,o,s,l;switch(n=n||0,r){case"left":a=n,s=t[0]+n;break;case"center":case"middle":a=-t[0]/2,s=t[0]/2;break;case"right":a=-t[0]-n,s=-n;break}switch(i){case"bottom":o=n,l=t[1]+n;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-n,l=-n;break}var h=e*4,u=this.attributes.offset;u.set(h,[a,l]),u.set(h+1,[s,l]),u.set(h+2,[s,o]),u.set(h+3,[a,o])},addSprite:function(e,t,r,i,n,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,r,i,n,a);for(var s=0;s 0.0) { + currProj = clipNear(currProj, nextProj); + } + else if (prevProj.w > 0.0) { + currProj = clipNear(currProj, prevProj); + } + } + + vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw; + vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw; + vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw; + + vec2 dir; + float len = offset; + if (position == positionPrev) { + dir = normalize(nextScreen - currScreen); + } + else if (position == positionNext) { + dir = normalize(currScreen - prevScreen); + } + else { + vec2 dirA = normalize(currScreen - prevScreen); + vec2 dirB = normalize(nextScreen - currScreen); + + vec2 tanget = normalize(dirA + dirB); + + float miter = 1.0 / max(dot(tanget, dirA), 0.5); + len *= miter; + dir = tanget; + } + + dir = vec2(-dir.y, dir.x) * len; + currScreen += dir; + + currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w); +@end + + +@export ecgl.meshLines3D.vertex + +attribute vec3 position: POSITION; +attribute vec3 positionPrev; +attribute vec3 positionNext; +attribute float offset; +attribute vec4 a_Color : COLOR; + +#ifdef VERTEX_ANIMATION +attribute vec3 prevPosition; +attribute vec3 prevPositionPrev; +attribute vec3 prevPositionNext; +uniform float percent : 1.0; +#endif + +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; +uniform vec4 viewport : VIEWPORT; +uniform float near : NEAR; + +varying vec4 v_Color; + +@import ecgl.common.wireframe.vertexHeader + +@import ecgl.lines3D.clipNear + +void main() +{ + @import ecgl.lines3D.expandLine + + gl_Position = currProj; + + v_Color = a_Color; + + @import ecgl.common.wireframe.vertexMain +} +@end + + +@export ecgl.meshLines3D.fragment + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; + +varying vec4 v_Color; + +@import ecgl.common.wireframe.fragmentHeader + +@import clay.util.srgb + +void main() +{ +#ifdef SRGB_DECODE + gl_FragColor = sRGBToLinear(color * v_Color); +#else + gl_FragColor = color * v_Color; +#endif + + @import ecgl.common.wireframe.fragmentMain +} + +@end`;var Zo=ee.firstNotNull;T.Shader.import(On);var cr={x:0,y:2,z:1};const af=Ri.extend({type:"grid3D",__ecgl__:!0,init:function(e,t){var r=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],i=["x","y","z"],n=new T.Material({shader:T.createShader("ecgl.color"),depthMask:!1,transparent:!0}),a=new T.Material({shader:T.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});n.define("fragment","DOUBLE_SIDED"),n.define("both","VERTEX_COLOR"),this.groupGL=new T.Node,this._control=new Nn({zr:t.getZr()}),this._control.init(),this._faces=r.map(function(s){var l=new In(s,a,n);return this.groupGL.add(l.rootNode),l},this),this._axes=i.map(function(s){var l=new Va(s,a);return this.groupGL.add(l.rootNode),l},this);var o=t.getDevicePixelRatio();this._axisLabelSurface=new _n({width:256,height:256,devicePixelRatio:o}),this._axisLabelSurface.onupdate=function(){t.getZr().refresh()},this._axisPointerLineMesh=new T.Mesh({geometry:new Er({useNativeLine:!1}),material:a,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new _n({width:128,height:128,devicePixelRatio:o}),this._axisPointerLabelsMesh=new Ha({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new T.Node,this._sceneHelper=new tr,this._sceneHelper.initLight(this._lightRoot)},render:function(e,t,r){this._model=e,this._api=r;var i=e.coordinateSystem;i.viewGL.add(this._lightRoot),e.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var n=this._control;n.setViewGL(i.viewGL);var a=e.getModel("viewControl");n.setFromViewControlModel(a,0),this._axisLabelSurface.clear(),n.off("update"),e.get("show")&&(this._faces.forEach(function(o){o.update(e,t,r)},this),this._axes.forEach(function(o){o.update(e,this._axisLabelSurface,r)},this)),n.on("update",this._onCameraChange.bind(this,e,r),this),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(e),i.viewGL.setPostEffect(e.getModel("postEffect"),r),i.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._initMouseHandler(e)},afterRender:function(e,t,r,i){var n=i.renderer;this._sceneHelper.updateAmbientCubemap(n,e,r),this._sceneHelper.updateSkybox(n,e,r)},showAxisPointer:function(e,t,r,i){this._doShowAxisPointer(),this._updateAxisPointer(i.value)},hideAxisPointer:function(e,t,r,i){this._doHideAxisPointer()},_initMouseHandler:function(e){var t=e.coordinateSystem,r=t.viewGL;e.get("show")&&e.get("axisPointer.show")?r.on("mousemove",this._updateAxisPointerOnMousePosition,this):r.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(e){if(!e.target){for(var t=this._model,r=t.coordinateSystem,i=r.viewGL,n=i.castRay(e.offsetX,e.offsetY,new T.Ray),a,o=0;oi[1]?0:1,s=this._faces[r*2+o],l=this._faces[r*2+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),r=e.getAxis("y"),i=e.getAxis("z"),n=i.getExtentMax(),a=i.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=r.getExtentMax(),h=r.getExtentMin(),u=this._axes[0].rootNode,c=this._axes[1].rootNode,d=this._axes[2].rootNode,f=this._faces,v=f[4].rootNode.invisible?h:l,p=f[2].rootNode.invisible?n:a,_=f[0].rootNode.invisible?o:s,m=f[2].rootNode.invisible?n:a,x=f[0].rootNode.invisible?s:o,y=f[4].rootNode.invisible?h:l;u.rotation.identity(),c.rotation.identity(),d.rotation.identity(),f[4].rootNode.invisible&&(this._axes[0].flipped=!0,u.rotation.rotateX(Math.PI)),f[0].rootNode.invisible&&(this._axes[1].flipped=!0,c.rotation.rotateZ(Math.PI)),f[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),u.position.set(0,p,v),c.position.set(_,m,0),d.position.set(x,0,y),u.update(),c.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new T.Vector4,new T.Vector4],r=new T.Vector4;this.groupGL.getWorldPosition(r),r.w=1,r.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),r.x/=r.w,r.y/=r.w,this._axes.forEach(function(i){var n=i.axisLineCoords;i.labelsMesh.geometry;for(var a=0;ar.y?"bottom":"top"):(c="middle",u=l>r.x?"left":"right"),i.setSpriteAlign(u,c,this._api)},this)},_doShowAxisPointer:function(){!this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,r=t.dataToPoint(e),i=this._axisPointerLineMesh,n=i.geometry,a=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();n.convertToDynamicArray(!0);function s(b){return ee.firstNotNull(b.model.get("axisPointer.show"),a.get("show"))}function l(b){var L=b.model.getModel("axisPointer",a),P=L.getModel("lineStyle"),C=T.parseColor(P.get("color")),R=Zo(P.get("width"),1),I=Zo(P.get("opacity"),1);return C[3]*=I,{color:C,lineWidth:R}}for(var h=0;h 0.0) { + if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) { + discard; + } + } +#ifdef USE_VSM + depth = depth * 0.5 + 0.5; + float moment1 = depth; + float moment2 = depth * depth; + #ifdef SUPPORT_STANDARD_DERIVATIVES + float dx = dFdx(depth); + float dy = dFdy(depth); + moment2 += 0.25*(dx*dx+dy*dy); + #endif + gl_FragColor = vec4(moment1, moment2, 0.0, 1.0); +#else + #ifdef SUPPORT_STANDARD_DERIVATIVES + float dx = dFdx(depth); + float dy = dFdy(depth); + depth += sqrt(dx*dx + dy*dy) * slopeScale + bias; + #else + depth += bias; + #endif + gl_FragColor = encodeFloat(depth * 0.5 + 0.5); +#endif +} +@end +@export clay.sm.debug_depth +uniform sampler2D depthMap; +varying vec2 v_Texcoord; +@import clay.util.decode_float +void main() { + vec4 tex = texture2D(depthMap, v_Texcoord); +#ifdef USE_VSM + gl_FragColor = vec4(tex.rgb, 1.0); +#else + float depth = decodeFloat(tex); + gl_FragColor = vec4(depth, depth, depth, 1.0); +#endif +} +@end +@export clay.sm.distance.vertex +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; +uniform mat4 world : WORLD; +attribute vec3 position : POSITION; +@import clay.chunk.skinning_header +varying vec3 v_WorldPosition; +void main (){ + vec4 P = vec4(position, 1.0); +#ifdef SKINNING + @import clay.chunk.skin_matrix + P = skinMatrixWS * P; +#endif +#ifdef INSTANCING + @import clay.chunk.instancing_matrix + P = instanceMat * P; +#endif + gl_Position = worldViewProjection * P; + v_WorldPosition = (world * P).xyz; +} +@end +@export clay.sm.distance.fragment +uniform vec3 lightPosition; +uniform float range : 100; +varying vec3 v_WorldPosition; +@import clay.util.encode_float +void main(){ + float dist = distance(lightPosition, v_WorldPosition); +#ifdef USE_VSM + gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0); +#else + dist = dist / range; + gl_FragColor = encodeFloat(dist); +#endif +} +@end +@export clay.plugin.shadow_map_common +@import clay.util.decode_float +float tapShadowMap(sampler2D map, vec2 uv, float z){ + vec4 tex = texture2D(map, uv); + return step(z, decodeFloat(tex) * 2.0 - 1.0); +} +float pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) { + float shadowContrib = tapShadowMap(map, uv, z); + vec2 offset = vec2(1.0 / textureSize) * scale; +#ifdef PCF_KERNEL_SIZE + for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{ + shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z); + }} + return shadowContrib / float(PCF_KERNEL_SIZE + 1); +#else + shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z); + shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z); + shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z); + shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z); + shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z); + shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z); + shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z); + shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z); + return shadowContrib / 9.0; +#endif +} +float pcf(sampler2D map, vec2 uv, float z, float textureSize) { + return pcf(map, uv, z, textureSize, vec2(1.0)); +} +float chebyshevUpperBound(vec2 moments, float z){ + float p = 0.0; + z = z * 0.5 + 0.5; + if (z <= moments.x) { + p = 1.0; + } + float variance = moments.y - moments.x * moments.x; + variance = max(variance, 0.0000001); + float mD = moments.x - z; + float pMax = variance / (variance + mD * mD); + pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0); + return max(p, pMax); +} +float computeShadowContrib( + sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset +) { + vec4 posInLightSpace = lightVPM * vec4(position, 1.0); + posInLightSpace.xyz /= posInLightSpace.w; + float z = posInLightSpace.z; + if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) && + all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){ + vec2 uv = (posInLightSpace.xy+1.0) / 2.0; + #ifdef USE_VSM + vec2 moments = texture2D(map, uv * scale + offset).xy; + return chebyshevUpperBound(moments, z); + #else + return pcf(map, uv * scale + offset, z, textureSize, scale); + #endif + } + return 1.0; +} +float computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) { + return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0)); +} +float computeShadowContribOmni(samplerCube map, vec3 direction, float range) +{ + float dist = length(direction); + vec4 shadowTex = textureCube(map, direction); +#ifdef USE_VSM + vec2 moments = shadowTex.xy; + float variance = moments.y - moments.x * moments.x; + float mD = moments.x - dist; + float p = variance / (variance + mD * mD); + if(moments.x + 0.001 < dist){ + return clamp(p, 0.0, 1.0); + }else{ + return 1.0; + } +#else + return step(dist, (decodeFloat(shadowTex) + 0.0002) * range); +#endif +} +@end +@export clay.plugin.compute_shadow_map +#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT) +#ifdef SPOT_LIGHT_SHADOWMAP_COUNT +uniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; +uniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; +uniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; +#endif +#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT +#if defined(SHADOW_CASCADE) +uniform sampler2D directionalLightShadowMaps[1]:unconfigurable; +uniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable; +uniform float directionalLightShadowMapSizes[1]:unconfigurable; +uniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable; +uniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable; +#else +uniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; +uniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; +uniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; +#endif +#endif +#ifdef POINT_LIGHT_SHADOWMAP_COUNT +uniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; +#endif +uniform bool shadowEnabled : true; +#ifdef PCF_KERNEL_SIZE +uniform vec2 pcfKernel[PCF_KERNEL_SIZE]; +#endif +@import clay.plugin.shadow_map_common +#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) +void computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) { + float shadowContrib; + for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ + shadowContrib = computeShadowContrib( + spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position, + spotLightShadowMapSizes[_idx_] + ); + shadowContribs[_idx_] = shadowContrib; + }} + for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{ + shadowContribs[_idx_] = 1.0; + }} +} +#endif +#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) +#ifdef SHADOW_CASCADE +void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ + float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far) + / (gl_DepthRange.far - gl_DepthRange.near); + float shadowContrib; + shadowContribs[0] = 1.0; + for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{ + if ( + depth >= shadowCascadeClipsNear[_idx_] && + depth <= shadowCascadeClipsFar[_idx_] + ) { + shadowContrib = computeShadowContrib( + directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position, + directionalLightShadowMapSizes[0], + vec2(1.0 / float(SHADOW_CASCADE), 1.0), + vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0) + ); + shadowContribs[0] = shadowContrib; + } + }} + for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ + shadowContribs[_idx_] = 1.0; + }} +} +#else +void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ + float shadowContrib; + for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ + shadowContrib = computeShadowContrib( + directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position, + directionalLightShadowMapSizes[_idx_] + ); + shadowContribs[_idx_] = shadowContrib; + }} + for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ + shadowContribs[_idx_] = 1.0; + }} +} +#endif +#endif +#if defined(POINT_LIGHT_SHADOWMAP_COUNT) +void computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){ + vec3 lightPosition; + vec3 direction; + for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ + lightPosition = pointLightPosition[_idx_]; + direction = position - lightPosition; + shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]); + }} + for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{ + shadowContribs[_idx_] = 1.0; + }} +} +#endif +#endif +@end`;var Yt=["px","nx","py","ny","pz","nz"];N.import(lf);function aa(e,t,r){if(r==="alphaMap")return e.material.get("diffuseMap");if(r==="alphaCutoff"){if(e.material.isDefined("fragment","ALPHA_TEST")&&e.material.get("diffuseMap")){var i=e.material.get("alphaCutoff");return i||0}return 0}else return r==="uvRepeat"?e.material.get("uvRepeat"):r==="uvOffset"?e.material.get("uvOffset"):t.get(r)}function Yo(e,t){var r=e.material,i=t.material;return r.get("diffuseMap")!==i.get("diffuseMap")||(r.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)}var Nt=ot.extend(function(){return{softShadow:Nt.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new qe,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new al}},function(){this._gaussianPassH=new Ne({fragment:N.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new Ne({fragment:N.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new Ne({fragment:N.source("clay.sm.debug_depth")})},{render:function(e,t,r,i){r||(r=t.getMainCamera()),this.trigger("beforerender",this,e,t,r),this._renderShadowPass(e,t,r,i),this.trigger("afterrender",this,e,t,r)},renderDebug:function(e,t){e.saveClear();var r=e.viewport,i=0,n=0,a=t||r.width/4,o=a;this.softShadow===Nt.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM");for(var s in this._textures){var l=this._textures[s];e.setViewport(i,n,a*l.width/l.height,o),this._outputDepthPass.setUniform("depthMap",l),this._outputDepthPass.render(e),i+=a*l.width/l.height}e.setViewport(r),e.restoreClear()},_updateReceivers:function(e,t){if(t.receiveShadow?(this._receivers.push(t),t.material.set("shadowEnabled",1),t.material.set("pcfKernel",this.kernelPCF)):t.material.set("shadowEnabled",0),this.softShadow===Nt.VSM)t.material.define("fragment","USE_VSM"),t.material.undefine("fragment","PCF_KERNEL_SIZE");else{t.material.undefine("fragment","USE_VSM");var r=this.kernelPCF;r&&r.length?t.material.define("fragment","PCF_KERNEL_SIZE",r.length/2):t.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(e,t){var r=this;t.traverse(function(a){a.isRenderable()&&r._updateReceivers(e,a)});for(var i=0;i4){console.warn("Support at most 4 cascade");continue}v.shadowCascade>1&&(d=v),this.renderDirectionalLightShadow(e,t,r,v,u,h,l)}else v.type==="SPOT_LIGHT"?this.renderSpotLightShadow(e,t,v,s,o):v.type==="POINT_LIGHT"&&this.renderPointLightShadow(e,t,v,c);this._shadowMapNumber[v.type]++}for(var p in this._shadowMapNumber)for(var _=this._shadowMapNumber[p],m=p+"_SHADOWMAP_COUNT",f=0;f0?y.define("fragment",m,_):y.isDefined("fragment",m)&&y.undefine("fragment",m))}for(var f=0;f0){var w=l.map(S);if(g.directionalLightShadowMaps={value:l,type:"tv"},g.directionalLightMatrices={value:h,type:"m4v"},g.directionalLightShadowMapSizes={value:w,type:"1fv"},d){var E=u.slice(),b=u.slice();E.pop(),b.shift(),E.reverse(),b.reverse(),h.reverse(),g.shadowCascadeClipsNear={value:E,type:"1fv"},g.shadowCascadeClipsFar={value:b,type:"1fv"}}}if(o.length>0){var L=o.map(S),g=t.shadowUniforms;g.spotLightShadowMaps={value:o,type:"tv"},g.spotLightMatrices={value:s,type:"m4v"},g.spotLightShadowMapSizes={value:L,type:"1fv"}}c.length>0&&(g.pointLightShadowMaps={value:c,type:"tv"})},renderDirectionalLightShadow:function(){var e=new Fa,t=new k,r=new it,i=new k,n=new k,a=new k,o=new k;return function(s,l,h,u,c,d,f){var v=this._getDepthMaterial(u),p={getMaterial:function(ge){return ge.shadowDepthMaterial||v},isMaterialChanged:Yo,getUniform:aa,ifRender:function(ge){return ge.castShadow},sortCompare:yi.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var _=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(_).applyTransform(h.viewMatrix)}var m=Math.min(-l.viewBoundingBoxLastFrame.min.z,h.far),x=Math.max(-l.viewBoundingBoxLastFrame.max.z,h.near),y=this._getDirectionalLightCamera(u,l,h),g=a.array;o.copy(y.projectionMatrix),F.invert(n.array,y.worldTransform.array),F.multiply(n.array,n.array,h.worldTransform.array),F.multiply(g,o.array,n.array);for(var S=[],w=h instanceof Ve,E=(h.near+h.far)/(h.near-h.far),b=2*h.near*h.far/(h.near-h.far),L=0;L<=u.shadowCascade;L++){var P=x*Math.pow(m/x,L/u.shadowCascade),C=x+(m-x)*L/u.shadowCascade,R=P*u.cascadeSplitLogFactor+C*(1-u.cascadeSplitLogFactor);S.push(R),c.push(-(-R*E+b)/-R)}var I=this._getTexture(u,u.shadowCascade);f.push(I);var M=s.viewport,B=s.gl;this._frameBuffer.attach(I),this._frameBuffer.bind(s),B.clear(B.COLOR_BUFFER_BIT|B.DEPTH_BUFFER_BIT);for(var L=0;LP?L>C?v[w>0?"px":"nx"]=!0:v[b>0?"pz":"nz"]=!0:P>C?v[E>0?"py":"ny"]=!0:v[b>0?"pz":"nz"]=!0}for(var g=0;g0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}}});const bi=uf;var cf=ot.extend(function(){return{nodes:[]}},{dirty:function(){this._dirty=!0},addNode:function(e){this.nodes.indexOf(e)>=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){typeof e=="string"&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t=t.COLOR_ATTACHMENT0&&l<=t.COLOR_ATTACHMENT0+8&&u.push(l);h.drawBuffersEXT(u)}e.saveClear(),e.clearBit=D.DEPTH_BUFFER_BIT|D.COLOR_BUFFER_BIT,r=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),i.unbind(e)}this.trigger("afterrender",r),this._rendering=!1,this._rendered=!0}});const pf=vf;var mf=bi.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}});const _f=mf;var gf=bi.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var e=new Ne({fragment:this.shader});this.pass=e},{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var r=e.gl;for(var i in this.inputLinks){var n=this.inputLinks[i],a=n.node.getOutput(e,n.pin);this.pass.setUniform(i,a)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);else{this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,e);isNaN(l.width)&&this.updateParameter(s,e);var h=this.outputs[s],u=this._compositor.allocateTexture(l);this._outputTextures[s]=u;var c=h.attachment||r.COLOR_ATTACHMENT0;typeof c=="string"&&(c=r[c]),o[c]=u}this._compositor.getFrameBuffer().bind(e);for(var c in o)this._compositor.getFrameBuffer().attach(o[c],c);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e)}for(var i in this.inputLinks){var n=this.inputLinks[i];n.node.removeReference(n.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var r=this.outputs[e],i=r.parameters,n=r._parametersCopy;if(n||(n=r._parametersCopy={}),i)for(var a in i)a!=="width"&&a!=="height"&&(n[a]=i[a]);var o,s;return typeof i.width=="function"?o=i.width.call(this,t):o=i.width,typeof i.height=="function"?s=i.height.call(this,t):s=i.height,o=Math.ceil(o),s=Math.ceil(s),(n.width!==o||n.height!==s)&&this._outputTextures[e]&&this._outputTextures[e].dispose(t),n.width=o,n.height=s,n},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){if(this._outputReferences[e]--,this._outputReferences[e]===0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},clear:function(){bi.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});const yf=gf,xf=`@export clay.compositor.coloradjust +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform float brightness : 0.0; +uniform float contrast : 1.0; +uniform float exposure : 0.0; +uniform float gamma : 1.0; +uniform float saturation : 1.0; +const vec3 w = vec3(0.2125, 0.7154, 0.0721); +void main() +{ + vec4 tex = texture2D( texture, v_Texcoord); + vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0); + color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); + color = clamp( color * pow(2.0, exposure), 0.0, 1.0); + color = clamp( pow(color, vec3(gamma)), 0.0, 1.0); + float luminance = dot( color, w ); + color = mix(vec3(luminance), color, saturation); + gl_FragColor = vec4(color, tex.a); +} +@end +@export clay.compositor.brightness +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform float brightness : 0.0; +void main() +{ + vec4 tex = texture2D( texture, v_Texcoord); + vec3 color = tex.rgb + vec3(brightness); + gl_FragColor = vec4(color, tex.a); +} +@end +@export clay.compositor.contrast +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform float contrast : 1.0; +void main() +{ + vec4 tex = texture2D( texture, v_Texcoord); + vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5); + gl_FragColor = vec4(color, tex.a); +} +@end +@export clay.compositor.exposure +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform float exposure : 0.0; +void main() +{ + vec4 tex = texture2D(texture, v_Texcoord); + vec3 color = tex.rgb * pow(2.0, exposure); + gl_FragColor = vec4(color, tex.a); +} +@end +@export clay.compositor.gamma +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform float gamma : 1.0; +void main() +{ + vec4 tex = texture2D(texture, v_Texcoord); + vec3 color = pow(tex.rgb, vec3(gamma)); + gl_FragColor = vec4(color, tex.a); +} +@end +@export clay.compositor.saturation +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform float saturation : 1.0; +const vec3 w = vec3(0.2125, 0.7154, 0.0721); +void main() +{ + vec4 tex = texture2D(texture, v_Texcoord); + vec3 color = tex.rgb; + float luminance = dot(color, w); + color = mix(vec3(luminance), color, saturation); + gl_FragColor = vec4(color, tex.a); +} +@end`,ol=`@export clay.compositor.kernel.gaussian_9 +float gaussianKernel[9]; +gaussianKernel[0] = 0.07; +gaussianKernel[1] = 0.09; +gaussianKernel[2] = 0.12; +gaussianKernel[3] = 0.14; +gaussianKernel[4] = 0.16; +gaussianKernel[5] = 0.14; +gaussianKernel[6] = 0.12; +gaussianKernel[7] = 0.09; +gaussianKernel[8] = 0.07; +@end +@export clay.compositor.kernel.gaussian_13 +float gaussianKernel[13]; +gaussianKernel[0] = 0.02; +gaussianKernel[1] = 0.03; +gaussianKernel[2] = 0.06; +gaussianKernel[3] = 0.08; +gaussianKernel[4] = 0.11; +gaussianKernel[5] = 0.13; +gaussianKernel[6] = 0.14; +gaussianKernel[7] = 0.13; +gaussianKernel[8] = 0.11; +gaussianKernel[9] = 0.08; +gaussianKernel[10] = 0.06; +gaussianKernel[11] = 0.03; +gaussianKernel[12] = 0.02; +@end +@export clay.compositor.gaussian_blur +#define SHADER_NAME gaussian_blur +uniform sampler2D texture;varying vec2 v_Texcoord; +uniform float blurSize : 2.0; +uniform vec2 textureSize : [512.0, 512.0]; +uniform float blurDir : 0.0; +@import clay.util.rgbm +@import clay.util.clamp_sample +void main (void) +{ + @import clay.compositor.kernel.gaussian_9 + vec2 off = blurSize / textureSize; + off *= vec2(1.0 - blurDir, blurDir); + vec4 sum = vec4(0.0); + float weightAll = 0.0; + for (int i = 0; i < 9; i++) { + float w = gaussianKernel[i]; + vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off)); + sum += texel * w; + weightAll += w; + } + gl_FragColor = encodeHDR(sum / max(weightAll, 0.01)); +} +@end +`,Tf=`@export clay.compositor.hdr.log_lum +varying vec2 v_Texcoord; +uniform sampler2D texture; +const vec3 w = vec3(0.2125, 0.7154, 0.0721); +@import clay.util.rgbm +void main() +{ + vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); + float luminance = dot(tex.rgb, w); + luminance = log(luminance + 0.001); + gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0)); +} +@end +@export clay.compositor.hdr.lum_adaption +varying vec2 v_Texcoord; +uniform sampler2D adaptedLum; +uniform sampler2D currentLum; +uniform float frameTime : 0.02; +@import clay.util.rgbm +void main() +{ + float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r; + float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r); + fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime)); + gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0)); +} +@end +@export clay.compositor.lum +varying vec2 v_Texcoord; +uniform sampler2D texture; +const vec3 w = vec3(0.2125, 0.7154, 0.0721); +void main() +{ + vec4 tex = texture2D( texture, v_Texcoord ); + float luminance = dot(tex.rgb, w); + gl_FragColor = vec4(vec3(luminance), 1.0); +} +@end`,sl=` +@export clay.compositor.lut +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform sampler2D lookup; +void main() +{ + vec4 tex = texture2D(texture, v_Texcoord); + float blueColor = tex.b * 63.0; + vec2 quad1; + quad1.y = floor(floor(blueColor) / 8.0); + quad1.x = floor(blueColor) - (quad1.y * 8.0); + vec2 quad2; + quad2.y = floor(ceil(blueColor) / 8.0); + quad2.x = ceil(blueColor) - (quad2.y * 8.0); + vec2 texPos1; + texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); + texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); + vec2 texPos2; + texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); + texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); + vec4 newColor1 = texture2D(lookup, texPos1); + vec4 newColor2 = texture2D(lookup, texPos2); + vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); + gl_FragColor = vec4(newColor.rgb, tex.w); +} +@end`,wf=`@export clay.compositor.vignette +#define OUTPUT_ALPHA +varying vec2 v_Texcoord; +uniform sampler2D texture; +uniform float darkness: 1; +uniform float offset: 1; +@import clay.util.rgbm +void main() +{ + vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); + gl_FragColor.rgb = texel.rgb; + vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset); + gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a)); +} +@end`,ll=`@export clay.compositor.output +#define OUTPUT_ALPHA +varying vec2 v_Texcoord; +uniform sampler2D texture; +@import clay.util.rgbm +void main() +{ + vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); + gl_FragColor.rgb = tex.rgb; +#ifdef OUTPUT_ALPHA + gl_FragColor.a = tex.a; +#else + gl_FragColor.a = 1.0; +#endif + gl_FragColor = encodeHDR(gl_FragColor); +#ifdef PREMULTIPLY_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif +} +@end`,hl=`@export clay.compositor.bright +uniform sampler2D texture; +uniform float threshold : 1; +uniform float scale : 1.0; +uniform vec2 textureSize: [512, 512]; +varying vec2 v_Texcoord; +const vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721); +@import clay.util.rgbm +vec4 median(vec4 a, vec4 b, vec4 c) +{ + return a + b + c - min(min(a, b), c) - max(max(a, b), c); +} +void main() +{ + vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); +#ifdef ANTI_FLICKER + vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0); + vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz)); + vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz)); + vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy)); + vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy)); + texel = median(median(texel, s1, s2), s3, s4); +#endif + float lum = dot(texel.rgb , lumWeight); + vec4 color; + if (lum > threshold && texel.a > 0.0) + { + color = vec4(texel.rgb * scale, texel.a * scale); + } + else + { + color = vec4(0.0); + } + gl_FragColor = encodeHDR(color); +} +@end +`,ul=`@export clay.compositor.downsample +uniform sampler2D texture; +uniform vec2 textureSize : [512, 512]; +varying vec2 v_Texcoord; +@import clay.util.rgbm +float brightness(vec3 c) +{ + return max(max(c.r, c.g), c.b); +} +@import clay.util.clamp_sample +void main() +{ + vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy; +#ifdef ANTI_FLICKER + vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb; + vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb; + vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb; + vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb; + float s1w = 1.0 / (brightness(s1) + 1.0); + float s2w = 1.0 / (brightness(s2) + 1.0); + float s3w = 1.0 / (brightness(s3) + 1.0); + float s4w = 1.0 / (brightness(s4) + 1.0); + float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w); + vec4 color = vec4( + (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum, + 1.0 + ); +#else + vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); + color += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); + color += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); + color += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); + color *= 0.25; +#endif + gl_FragColor = encodeHDR(color); +} +@end`,cl=` +@export clay.compositor.upsample +#define HIGH_QUALITY +uniform sampler2D texture; +uniform vec2 textureSize : [512, 512]; +uniform float sampleScale: 0.5; +varying vec2 v_Texcoord; +@import clay.util.rgbm +@import clay.util.clamp_sample +void main() +{ +#ifdef HIGH_QUALITY + vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale; + vec4 s; + s = decodeHDR(clampSample(texture, v_Texcoord - d.xy)); + s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0; + s += decodeHDR(clampSample(texture, v_Texcoord - d.zy)); + s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0; + s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0; + s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0; + s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); + s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0; + s += decodeHDR(clampSample(texture, v_Texcoord + d.xy)); + gl_FragColor = encodeHDR(s / 16.0); +#else + vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy; + vec4 s; + s = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); + s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); + s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); + s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); + gl_FragColor = encodeHDR(s / 4.0); +#endif +} +@end`,fl=`@export clay.compositor.hdr.composite +#define TONEMAPPING +uniform sampler2D texture; +#ifdef BLOOM_ENABLED +uniform sampler2D bloom; +#endif +#ifdef LENSFLARE_ENABLED +uniform sampler2D lensflare; +uniform sampler2D lensdirt; +#endif +#ifdef LUM_ENABLED +uniform sampler2D lum; +#endif +#ifdef LUT_ENABLED +uniform sampler2D lut; +#endif +#ifdef COLOR_CORRECTION +uniform float brightness : 0.0; +uniform float contrast : 1.0; +uniform float saturation : 1.0; +#endif +#ifdef VIGNETTE +uniform float vignetteDarkness: 1.0; +uniform float vignetteOffset: 1.0; +#endif +uniform float exposure : 1.0; +uniform float bloomIntensity : 0.25; +uniform float lensflareIntensity : 1; +varying vec2 v_Texcoord; +@import clay.util.srgb +vec3 ACESToneMapping(vec3 color) +{ + const float A = 2.51; + const float B = 0.03; + const float C = 2.43; + const float D = 0.59; + const float E = 0.14; + return (color * (A * color + B)) / (color * (C * color + D) + E); +} +float eyeAdaption(float fLum) +{ + return mix(0.2, fLum, 0.5); +} +#ifdef LUT_ENABLED +vec3 lutTransform(vec3 color) { + float blueColor = color.b * 63.0; + vec2 quad1; + quad1.y = floor(floor(blueColor) / 8.0); + quad1.x = floor(blueColor) - (quad1.y * 8.0); + vec2 quad2; + quad2.y = floor(ceil(blueColor) / 8.0); + quad2.x = ceil(blueColor) - (quad2.y * 8.0); + vec2 texPos1; + texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); + texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); + vec2 texPos2; + texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); + texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); + vec4 newColor1 = texture2D(lut, texPos1); + vec4 newColor2 = texture2D(lut, texPos2); + vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); + return newColor.rgb; +} +#endif +@import clay.util.rgbm +void main() +{ + vec4 texel = vec4(0.0); + vec4 originalTexel = vec4(0.0); +#ifdef TEXTURE_ENABLED + texel = decodeHDR(texture2D(texture, v_Texcoord)); + originalTexel = texel; +#endif +#ifdef BLOOM_ENABLED + vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord)); + texel.rgb += bloomTexel.rgb * bloomIntensity; + texel.a += bloomTexel.a * bloomIntensity; +#endif +#ifdef LENSFLARE_ENABLED + texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity; +#endif + texel.a = min(texel.a, 1.0); +#ifdef LUM_ENABLED + float fLum = texture2D(lum, vec2(0.5, 0.5)).r; + float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum))); + float exposureBias = adaptedLumDest * exposure; +#else + float exposureBias = exposure; +#endif +#ifdef TONEMAPPING + texel.rgb *= exposureBias; + texel.rgb = ACESToneMapping(texel.rgb); +#endif + texel = linearTosRGB(texel); +#ifdef LUT_ENABLED + texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0))); +#endif +#ifdef COLOR_CORRECTION + texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0); + texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); + float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721)); + texel.rgb = mix(vec3(lum), texel.rgb, saturation); +#endif +#ifdef VIGNETTE + vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset); + texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv)); +#endif + gl_FragColor = encodeHDR(texel); +#ifdef DEBUG + #if DEBUG == 1 + gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord))); + #elif DEBUG == 2 + gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity); + #elif DEBUG == 3 + gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity)); + #endif +#endif + if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) { + gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721)); + } +#ifdef PREMULTIPLY_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif +} +@end`,Sf=`@export clay.compositor.lensflare +#define SAMPLE_NUMBER 8 +uniform sampler2D texture; +uniform sampler2D lenscolor; +uniform vec2 textureSize : [512, 512]; +uniform float dispersal : 0.3; +uniform float haloWidth : 0.4; +uniform float distortion : 1.0; +varying vec2 v_Texcoord; +@import clay.util.rgbm +vec4 textureDistorted( + in vec2 texcoord, + in vec2 direction, + in vec3 distortion +) { + return vec4( + decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r, + decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g, + decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b, + 1.0 + ); +} +void main() +{ + vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize; + vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal; + vec2 haloVec = normalize(ghostVec) * haloWidth; + vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion); + vec4 result = vec4(0.0); + for (int i = 0; i < SAMPLE_NUMBER; i++) + { + vec2 offset = fract(texcoord + ghostVec * float(i)); + float weight = length(vec2(0.5) - offset) / length(vec2(0.5)); + weight = pow(1.0 - weight, 10.0); + result += textureDistorted(offset, normalize(ghostVec), distortion) * weight; + } + result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5))); + float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5)); + weight = pow(1.0 - weight, 10.0); + vec2 offset = fract(texcoord + haloVec); + result += textureDistorted(offset, normalize(ghostVec), distortion) * weight; + gl_FragColor = result; +} +@end`,dl=`@export clay.compositor.blend +#define SHADER_NAME blend +#ifdef TEXTURE1_ENABLED +uniform sampler2D texture1; +uniform float weight1 : 1.0; +#endif +#ifdef TEXTURE2_ENABLED +uniform sampler2D texture2; +uniform float weight2 : 1.0; +#endif +#ifdef TEXTURE3_ENABLED +uniform sampler2D texture3; +uniform float weight3 : 1.0; +#endif +#ifdef TEXTURE4_ENABLED +uniform sampler2D texture4; +uniform float weight4 : 1.0; +#endif +#ifdef TEXTURE5_ENABLED +uniform sampler2D texture5; +uniform float weight5 : 1.0; +#endif +#ifdef TEXTURE6_ENABLED +uniform sampler2D texture6; +uniform float weight6 : 1.0; +#endif +varying vec2 v_Texcoord; +@import clay.util.rgbm +void main() +{ + vec4 tex = vec4(0.0); +#ifdef TEXTURE1_ENABLED + tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1; +#endif +#ifdef TEXTURE2_ENABLED + tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2; +#endif +#ifdef TEXTURE3_ENABLED + tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3; +#endif +#ifdef TEXTURE4_ENABLED + tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4; +#endif +#ifdef TEXTURE5_ENABLED + tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5; +#endif +#ifdef TEXTURE6_ENABLED + tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6; +#endif + gl_FragColor = encodeHDR(tex); +} +@end`,vl=`@export clay.compositor.fxaa +uniform sampler2D texture; +uniform vec4 viewport : VIEWPORT; +varying vec2 v_Texcoord; +#define FXAA_REDUCE_MIN (1.0/128.0) +#define FXAA_REDUCE_MUL (1.0/8.0) +#define FXAA_SPAN_MAX 8.0 +@import clay.util.rgbm +void main() +{ + vec2 resolution = 1.0 / viewport.zw; + vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz; + vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz; + vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz; + vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz; + vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) ); + vec3 rgbM = rgbaM.xyz; + float opacity = rgbaM.w; + vec3 luma = vec3( 0.299, 0.587, 0.114 ); + float lumaNW = dot( rgbNW, luma ); + float lumaNE = dot( rgbNE, luma ); + float lumaSW = dot( rgbSW, luma ); + float lumaSE = dot( rgbSE, luma ); + float lumaM = dot( rgbM, luma ); + float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) ); + float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) ); + vec2 dir; + dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); + dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); + float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN ); + float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce ); + dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX), + max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), + dir * rcpDirMin)) * resolution; + vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz; + rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz; + rgbA *= 0.5; + vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz; + rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz; + rgbB *= 0.25; + rgbB += rgbA * 0.5; + float lumaB = dot( rgbB, luma ); + if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) ) + { + gl_FragColor = vec4( rgbA, opacity ); + } + else { + gl_FragColor = vec4( rgbB, opacity ); + } +} +@end`;function Ef(e){e.import(xf),e.import(ol),e.import(Tf),e.import(sl),e.import(wf),e.import(ll),e.import(hl),e.import(ul),e.import(cl),e.import(fl),e.import(Sf),e.import(dl),e.import(vl)}Ef(N);var bf=/^#source\((.*?)\)/;function Af(e,t){var r=new df;t=t||{};var i={textures:{},parameters:{}},n=function(s,l){for(var h=0;h0;)r=r+i*(n%t),n=Math.floor(n/t),i=i/t;return r}const Nf=`@export ecgl.ssao.estimate + +uniform sampler2D depthTex; + +uniform sampler2D normalTex; + +uniform sampler2D noiseTex; + +uniform vec2 depthTexSize; + +uniform vec2 noiseTexSize; + +uniform mat4 projection; + +uniform mat4 projectionInv; + +uniform mat4 viewInverseTranspose; + +uniform vec3 kernel[KERNEL_SIZE]; + +uniform float radius : 1; + +uniform float power : 1; + +uniform float bias: 1e-2; + +uniform float intensity: 1.0; + +varying vec2 v_Texcoord; + +float ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) { + float occlusion = 0.0; + + for (int i = 0; i < KERNEL_SIZE; i++) { + vec3 samplePos = kernel[i]; +#ifdef NORMALTEX_ENABLED + samplePos = kernelBasis * samplePos; +#endif + samplePos = samplePos * radius + originPos; + + vec4 texCoord = projection * vec4(samplePos, 1.0); + texCoord.xy /= texCoord.w; + + vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5); + + float sampleDepth = depthTexel.r * 2.0 - 1.0; + if (projection[3][3] == 0.0) { + sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]); + } + else { + sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2]; + } + + float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth)); + occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias); + } +#ifdef NORMALTEX_ENABLED + occlusion = 1.0 - occlusion / float(KERNEL_SIZE); +#else + occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0); +#endif + return pow(occlusion, power); +} + +void main() +{ + + vec4 depthTexel = texture2D(depthTex, v_Texcoord); + +#ifdef NORMALTEX_ENABLED + vec4 tex = texture2D(normalTex, v_Texcoord); + if (dot(tex.rgb, tex.rgb) == 0.0) { + gl_FragColor = vec4(1.0); + return; + } + vec3 N = tex.rgb * 2.0 - 1.0; + N = (viewInverseTranspose * vec4(N, 0.0)).xyz; + + vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord; + vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0; + vec3 T = normalize(rvec - N * dot(rvec, N)); + vec3 BT = normalize(cross(N, T)); + mat3 kernelBasis = mat3(T, BT, N); +#else + if (depthTexel.r > 0.99999) { + gl_FragColor = vec4(1.0); + return; + } + mat3 kernelBasis; +#endif + + float z = depthTexel.r * 2.0 - 1.0; + + vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); + vec4 p4 = projectionInv * projectedPos; + + vec3 position = p4.xyz / p4.w; + + float ao = ssaoEstimator(position, kernelBasis); + ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0); + gl_FragColor = vec4(vec3(ao), 1.0); +} + +@end + + +@export ecgl.ssao.blur +#define SHADER_NAME SSAO_BLUR + +uniform sampler2D ssaoTexture; + +#ifdef NORMALTEX_ENABLED +uniform sampler2D normalTex; +#endif + +varying vec2 v_Texcoord; + +uniform vec2 textureSize; +uniform float blurSize : 1.0; + +uniform int direction: 0.0; + +#ifdef DEPTHTEX_ENABLED +uniform sampler2D depthTex; +uniform mat4 projection; +uniform float depthRange : 0.5; + +float getLinearDepth(vec2 coord) +{ + float depth = texture2D(depthTex, coord).r * 2.0 - 1.0; + return projection[3][2] / (depth * projection[2][3] - projection[2][2]); +} +#endif + +void main() +{ + float kernel[5]; + kernel[0] = 0.122581; + kernel[1] = 0.233062; + kernel[2] = 0.288713; + kernel[3] = 0.233062; + kernel[4] = 0.122581; + + vec2 off = vec2(0.0); + if (direction == 0) { + off[0] = blurSize / textureSize.x; + } + else { + off[1] = blurSize / textureSize.y; + } + + vec2 coord = v_Texcoord; + + float sum = 0.0; + float weightAll = 0.0; + +#ifdef NORMALTEX_ENABLED + vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0; +#endif +#if defined(DEPTHTEX_ENABLED) + float centerDepth = getLinearDepth(v_Texcoord); +#endif + + for (int i = 0; i < 5; i++) { + vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0)); + + float w = kernel[i]; +#ifdef NORMALTEX_ENABLED + vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0; + w *= clamp(dot(normal, centerNormal), 0.0, 1.0); +#endif +#ifdef DEPTHTEX_ENABLED + float d = getLinearDepth(coord); + w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0)); +#endif + + weightAll += w; + sum += texture2D(ssaoTexture, coord).r * w; + } + + gl_FragColor = vec4(vec3(sum / weightAll), 1.0); +} + +@end +`;N.import(Nf);function ml(e){for(var t=new Uint8Array(e*e*4),r=0,i=new G,n=0;n 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); + vec3 tangentX = normalize(cross(N, upVector)); + vec3 tangentZ = cross(N, tangentX); + return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); +} +vec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) { + float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES)); + vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb; + return transformNormal(H, N); +} +float G_Smith(float g, float ndv, float ndl) { + float roughness = 1.0 - g; + float k = roughness * roughness / 2.0; + float G1V = ndv / (ndv * (1.0 - k) + k); + float G1L = ndl / (ndl * (1.0 - k) + k); + return G1L * G1V; +} +vec3 F_Schlick(float ndv, vec3 spec) { + return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); +} +#endif + +float fetchDepth(sampler2D depthTexture, vec2 uv) +{ + vec4 depthTexel = texture2D(depthTexture, uv); + return depthTexel.r * 2.0 - 1.0; +} + +float linearDepth(float depth) +{ + if (projection[3][3] == 0.0) { + return projection[3][2] / (depth * projection[2][3] - projection[2][2]); + } + else { + return (depth - projection[3][2]) / projection[2][2]; + } +} + +bool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel) +{ + if (rayZFar > rayZNear) + { + float t = rayZFar; rayZFar = rayZNear; rayZNear = t; + } + float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel)); + return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold; +} + + +bool traceScreenSpaceRay( + vec3 rayOrigin, vec3 rayDir, float jitter, + out vec2 hitPixel, out vec3 hitPoint, out float iterationCount +) +{ + float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ) + ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance; + + vec3 rayEnd = rayOrigin + rayDir * rayLength; + + vec4 H0 = projection * vec4(rayOrigin, 1.0); + vec4 H1 = projection * vec4(rayEnd, 1.0); + + float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w; + + vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1; + + vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize; + vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize; + + P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0; + vec2 delta = P1 - P0; + + bool permute = false; + if (abs(delta.x) < abs(delta.y)) { + permute = true; + delta = delta.yx; + P0 = P0.yx; + P1 = P1.yx; + } + float stepDir = sign(delta.x); + float invdx = stepDir / delta.x; + + vec3 dQ = (Q1 - Q0) * invdx; + float dk = (k1 - k0) * invdx; + + vec2 dP = vec2(stepDir, delta.y * invdx); + + float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff); + float pixStride = 1.0 + strideScaler * pixelStride; + + dP *= pixStride; dQ *= pixStride; dk *= pixStride; + + vec4 pqk = vec4(P0, Q0.z, k0); + vec4 dPQK = vec4(dP, dQ.z, dk); + + pqk += dPQK * jitter; + float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); + float rayZNear; + + bool intersect = false; + + vec2 texelSize = 1.0 / viewportSize; + + iterationCount = 0.0; + + for (int i = 0; i < MAX_ITERATION; i++) + { + pqk += dPQK; + + rayZNear = rayZFar; + rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); + + hitPixel = permute ? pqk.yx : pqk.xy; + hitPixel *= texelSize; + + intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel); + + iterationCount += 1.0; + + dPQK *= 1.2; + + if (intersect) { + break; + } + } + + Q0.xy += dQ.xy * iterationCount; + Q0.z = pqk.z; + hitPoint = Q0 / pqk.w; + + return intersect; +} + +float calculateAlpha( + float iterationCount, float reflectivity, + vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir +) +{ + float alpha = clamp(reflectivity, 0.0, 1.0); + alpha *= 1.0 - (iterationCount / float(MAX_ITERATION)); + vec2 hitPixelNDC = hitPixel * 2.0 - 1.0; + float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y))); + alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart); + + float _eyeFadeStart = eyeFadeStart; + float _eyeFadeEnd = eyeFadeEnd; + if (_eyeFadeStart > _eyeFadeEnd) { + float tmp = _eyeFadeEnd; + _eyeFadeEnd = _eyeFadeStart; + _eyeFadeStart = tmp; + } + + float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd); + alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart); + + alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0); + + return alpha; +} + +@import clay.util.rand + +@import clay.util.rgbm + +void main() +{ + vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord); + + if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) { + discard; + } + + float g = normalAndGloss.a; +#if !defined(PHYSICALLY_CORRECT) + if (g <= minGlossiness) { + discard; + } +#endif + + float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness); + + vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0); + N = normalize((toViewSpace * vec4(N, 0.0)).xyz); + + vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0); + vec4 pos = projectionInv * projectedPos; + vec3 rayOrigin = pos.xyz / pos.w; + vec3 V = -normalize(rayOrigin); + + float ndv = clamp(dot(N, V), 0.0, 1.0); + float iterationCount; + float jitter = rand(fract(v_Texcoord + jitterOffset)); + +#ifdef PHYSICALLY_CORRECT + vec4 color = vec4(vec3(0.0), 1.0); + vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord); + vec3 albedo = albedoMetalness.rgb; + float m = albedoMetalness.a; + vec3 diffuseColor = albedo * (1.0 - m); + vec3 spec = mix(vec3(0.04), albedo, m); + + float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES); + + for (int i = 0; i < SAMPLE_PER_FRAME; i++) { + vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N); + vec3 rayDir = normalize(reflect(-V, H)); +#else + vec3 rayDir = normalize(reflect(-V, N)); +#endif + vec2 hitPixel; + vec3 hitPoint; + + bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount); + + float dist = distance(rayOrigin, hitPoint); + + vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0; + hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz); +#ifdef PHYSICALLY_CORRECT + float ndl = clamp(dot(N, rayDir), 0.0, 1.0); + float vdh = clamp(dot(V, H), 0.0, 1.0); + float ndh = clamp(dot(N, H), 0.0, 1.0); + vec3 litTexel = vec3(0.0); + if (dot(hitNormal, rayDir) < 0.0 && intersect) { + litTexel = texture2D(sourceTexture, hitPixel).rgb; + litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0); + + } + else { + #ifdef SPECULARCUBEMAP_ENABLED + vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb; + litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity; +#endif + } + color.rgb += ndl * litTexel * ( + F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001) + ); + } + color.rgb /= float(SAMPLE_PER_FRAME); +#else + #if !defined(SPECULARCUBEMAP_ENABLED) + if (dot(hitNormal, rayDir) >= 0.0) { + discard; + } + if (!intersect) { + discard; + } +#endif + float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0); + vec4 color = texture2D(sourceTexture, hitPixel); + color.rgb *= alpha; + +#ifdef SPECULARCUBEMAP_ENABLED + vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb; + alpha = alpha * (intersect ? 1.0 : 0.0); + float bias = (1.0 -g) * 5.0; + color.rgb += (1.0 - alpha) + * RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb + * specularIntensity; +#endif + +#endif + + gl_FragColor = encodeHDR(color); +} +@end + +@export ecgl.ssr.blur + +uniform sampler2D texture; +uniform sampler2D gBufferTexture1; +uniform sampler2D gBufferTexture2; +uniform mat4 projection; +uniform float depthRange : 0.05; + +varying vec2 v_Texcoord; + +uniform vec2 textureSize; +uniform float blurSize : 1.0; + +#ifdef BLEND + #ifdef SSAOTEX_ENABLED +uniform sampler2D ssaoTex; + #endif +uniform sampler2D sourceTexture; +#endif + +float getLinearDepth(vec2 coord) +{ + float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0; + return projection[3][2] / (depth * projection[2][3] - projection[2][2]); +} + +@import clay.util.rgbm + + +void main() +{ + @import clay.compositor.kernel.gaussian_9 + + vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord); + float g = centerNTexel.a; + float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize; +#ifdef VERTICAL + vec2 off = vec2(0.0, maxBlurSize / textureSize.y); +#else + vec2 off = vec2(maxBlurSize / textureSize.x, 0.0); +#endif + + vec2 coord = v_Texcoord; + + vec4 sum = vec4(0.0); + float weightAll = 0.0; + + vec3 cN = centerNTexel.rgb * 2.0 - 1.0; + float cD = getLinearDepth(v_Texcoord); + for (int i = 0; i < 9; i++) { + vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0)); + float w = gaussianKernel[i] + * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0); + float d = getLinearDepth(coord); + w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0)); + + weightAll += w; + sum += decodeHDR(texture2D(texture, coord)) * w; + } + +#ifdef BLEND + float aoFactor = 1.0; + #ifdef SSAOTEX_ENABLED + aoFactor = texture2D(ssaoTex, v_Texcoord).r; + #endif + gl_FragColor = encodeHDR( + sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord)) + ); +#else + gl_FragColor = encodeHDR(sum / weightAll); +#endif +} + +@end`;N.import(Of);function Wt(e){e=e||{},this._ssrPass=new Ne({fragment:N.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new Ne({fragment:N.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new Ne({fragment:N.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new Ne({fragment:N.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",e.normalTexture),this._ssrPass.setUniform("gBufferTexture2",e.depthTexture),this._blurPass1.setUniform("gBufferTexture1",e.normalTexture),this._blurPass1.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.setUniform("gBufferTexture1",e.normalTexture),this._blurPass2.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new Q({type:X.HALF_FLOAT}),this._texture2=new Q({type:X.HALF_FLOAT}),this._texture3=new Q({type:X.HALF_FLOAT}),this._prevTexture=new Q({type:X.HALF_FLOAT}),this._currentTexture=new Q({type:X.HALF_FLOAT}),this._frameBuffer=new qe({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}Wt.prototype.setAmbientCubemap=function(e,t){this._ssrPass.material.set("specularCubemap",e),this._ssrPass.material.set("specularIntensity",t);var r=e&&t;this._ssrPass.material[r?"enableTexture":"disableTexture"]("specularCubemap")};Wt.prototype.update=function(e,t,r,i){var n=e.getWidth(),a=e.getHeight(),o=this._ssrTexture,s=this._texture2,l=this._texture3;o.width=this._prevTexture.width=this._currentTexture.width=n/this._downScale,o.height=this._prevTexture.height=this._currentTexture.height=a/this._downScale,s.width=l.width=n,s.height=l.height=a;var h=this._frameBuffer,u=this._ssrPass,c=this._blurPass1,d=this._blurPass2,f=this._blendPass,v=new k,p=new k;k.transpose(v,t.worldTransform),k.transpose(p,t.viewMatrix),u.setUniform("sourceTexture",r),u.setUniform("projection",t.projectionMatrix.array),u.setUniform("projectionInv",t.invProjectionMatrix.array),u.setUniform("toViewSpace",v.array),u.setUniform("toWorldSpace",p.array),u.setUniform("nearZ",t.near);var _=i/this._totalSamples*this._samplePerFrame;if(u.setUniform("jitterOffset",_),u.setUniform("sampleOffset",i*this._samplePerFrame),c.setUniform("textureSize",[o.width,o.height]),d.setUniform("textureSize",[n,a]),d.setUniform("sourceTexture",r),c.setUniform("projection",t.projectionMatrix.array),d.setUniform("projection",t.projectionMatrix.array),h.attach(o),h.bind(e),u.render(e),this._physicallyCorrect&&(h.attach(this._currentTexture),f.setUniform("texture1",this._prevTexture),f.setUniform("texture2",o),f.material.set({weight1:i>=1?.95:0,weight2:i>=1?.05:1}),f.render(e)),h.attach(s),c.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),c.render(e),h.attach(l),d.setUniform("texture",s),d.render(e),h.unbind(e),this._physicallyCorrect){var m=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=m}};Wt.prototype.getTargetTexture=function(){return this._texture3};Wt.prototype.setParameter=function(e,t){e==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",t):this._ssrPass.setUniform(e,t)};Wt.prototype.setPhysicallyCorrect=function(e){e?(this._normalDistribution||(this._normalDistribution=hn.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=e};Wt.prototype.setSSAOTexture=function(e){var t=this._blurPass2;e?(t.material.enableTexture("ssaoTex"),t.material.set("ssaoTex",e)):t.material.disableTexture("ssaoTex")};Wt.prototype.isFinished=function(e){return this._physicallyCorrect?e>this._totalSamples/this._samplePerFrame:!0};Wt.prototype.dispose=function(e){this._ssrTexture.dispose(e),this._texture2.dispose(e),this._texture3.dispose(e),this._prevTexture.dispose(e),this._currentTexture.dispose(e),this._frameBuffer.dispose(e)};const Ko=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],Bf=`@export ecgl.normal.vertex + +@import ecgl.common.transformUniforms + +@import ecgl.common.uv.header + +@import ecgl.common.attributes + +varying vec3 v_Normal; +varying vec3 v_WorldPosition; + +@import ecgl.common.normalMap.vertexHeader + +@import ecgl.common.vertexAnimation.header + +void main() +{ + + @import ecgl.common.vertexAnimation.main + + @import ecgl.common.uv.main + + v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); + v_WorldPosition = (world * vec4(pos, 1.0)).xyz; + + @import ecgl.common.normalMap.vertexMain + + gl_Position = worldViewProjection * vec4(pos, 1.0); + +} + + +@end + + +@export ecgl.normal.fragment + +#define ROUGHNESS_CHANEL 0 + +uniform bool useBumpMap; +uniform bool useRoughnessMap; +uniform bool doubleSide; +uniform float roughness; + +@import ecgl.common.uv.fragmentHeader + +varying vec3 v_Normal; +varying vec3 v_WorldPosition; + +uniform mat4 viewInverse : VIEWINVERSE; + +@import ecgl.common.normalMap.fragmentHeader +@import ecgl.common.bumpMap.header + +uniform sampler2D roughnessMap; + +void main() +{ + vec3 N = v_Normal; + + bool flipNormal = false; + if (doubleSide) { + vec3 eyePos = viewInverse[3].xyz; + vec3 V = normalize(eyePos - v_WorldPosition); + + if (dot(N, V) < 0.0) { + flipNormal = true; + } + } + + @import ecgl.common.normalMap.fragmentMain + + if (useBumpMap) { + N = bumpNormal(v_WorldPosition, v_Normal, N); + } + + float g = 1.0 - roughness; + + if (useRoughnessMap) { + float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; + g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); + } + + if (flipNormal) { + N = -N; + } + + gl_FragColor.rgb = (N.xyz + 1.0) * 0.5; + gl_FragColor.a = g; +} +@end`;N.import(Bf);function oa(e,t,r,i,n){var a=e.gl;t.setUniform(a,"1i",r,n),a.activeTexture(a.TEXTURE0+n),i.isRenderable()?i.bind(e):i.unbind(e)}function Ff(e,t,r,i,n){var a,o,s,l,h=e.gl;return function(u,c,d){if(!(l&&l.material===u.material)){var f=u.material,v=u.__program,p=f.get("roughness");p==null&&(p=1);var _=f.get("normalMap")||t,m=f.get("roughnessMap"),x=f.get("bumpMap"),y=f.get("uvRepeat"),g=f.get("uvOffset"),S=f.get("detailUvRepeat"),w=f.get("detailUvOffset"),E=!!x&&f.isTextureEnabled("bumpMap"),b=!!m&&f.isTextureEnabled("roughnessMap"),L=f.isDefined("fragment","DOUBLE_SIDED");x=x||r,m=m||i,d!==c?(c.set("normalMap",_),c.set("bumpMap",x),c.set("roughnessMap",m),c.set("useBumpMap",E),c.set("useRoughnessMap",b),c.set("doubleSide",L),y!=null&&c.set("uvRepeat",y),g!=null&&c.set("uvOffset",g),S!=null&&c.set("detailUvRepeat",S),w!=null&&c.set("detailUvOffset",w),c.set("roughness",p)):(v.setUniform(h,"1f","roughness",p),a!==_&&oa(e,v,"normalMap",_,0),o!==x&&x&&oa(e,v,"bumpMap",x,1),s!==m&&m&&oa(e,v,"roughnessMap",m,2),y!=null&&v.setUniform(h,"2f","uvRepeat",y),g!=null&&v.setUniform(h,"2f","uvOffset",g),S!=null&&v.setUniform(h,"2f","detailUvRepeat",S),w!=null&&v.setUniform(h,"2f","detailUvOffset",w),v.setUniform(h,"1i","useBumpMap",+E),v.setUniform(h,"1i","useRoughnessMap",+b),v.setUniform(h,"1i","doubleSide",+L)),a=_,o=x,s=m,l=u}}}function ei(e){this._depthTex=new Q({format:X.DEPTH_COMPONENT,type:X.UNSIGNED_INT}),this._normalTex=new Q({type:X.HALF_FLOAT}),this._framebuffer=new qe,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,qe.DEPTH_ATTACHMENT),this._normalMaterial=new St({shader:new N(N.source("ecgl.normal.vertex"),N.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=_r.createBlank("#000"),this._defaultBumpMap=_r.createBlank("#000"),this._defaultRoughessMap=_r.createBlank("#000"),this._debugPass=new Ne({fragment:N.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}ei.prototype.getDepthTexture=function(){return this._depthTex};ei.prototype.getNormalTexture=function(){return this._normalTex};ei.prototype.update=function(e,t,r){var i=e.getWidth(),n=e.getHeight(),a=this._depthTex,o=this._normalTex,s=this._normalMaterial;a.width=i,a.height=n,o.width=i,o.height=n;var l=t.getRenderList(r).opaque;this._framebuffer.bind(e),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT|e.gl.DEPTH_BUFFER_BIT),e.gl.disable(e.gl.BLEND),e.renderPass(l,r,{getMaterial:function(){return s},ifRender:function(h){return h.renderNormal},beforeRender:Ff(e,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:e.opaqueSortCompare}),this._framebuffer.unbind(e)};ei.prototype.renderDebug=function(e){this._debugPass.render(e)};ei.prototype.dispose=function(e){this._depthTex.dispose(e),this._normalTex.dispose(e)};function Bi(e){e=e||{},this._edgePass=new Ne({fragment:N.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",e.normalTexture),this._edgePass.setUniform("depthTexture",e.depthTexture),this._targetTexture=new Q({type:X.HALF_FLOAT}),this._frameBuffer=new qe,this._frameBuffer.attach(this._targetTexture)}Bi.prototype.update=function(e,t,r,i){var n=e.getWidth(),a=e.getHeight(),o=this._targetTexture;o.width=n,o.height=a;var s=this._frameBuffer;s.bind(e),this._edgePass.setUniform("projectionInv",t.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[n,a]),this._edgePass.setUniform("texture",r),this._edgePass.render(e),s.unbind(e)};Bi.prototype.getTargetTexture=function(){return this._targetTexture};Bi.prototype.setParameter=function(e,t){this._edgePass.setUniform(e,t)};Bi.prototype.dispose=function(e){this._targetTexture.dispose(e),this._frameBuffer.dispose(e)};const Uf={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},Gf=`@export ecgl.dof.coc + +uniform sampler2D depth; + +uniform float zNear: 0.1; +uniform float zFar: 2000; + +uniform float focalDistance: 3; +uniform float focalRange: 1; +uniform float focalLength: 30; +uniform float fstop: 2.8; + +varying vec2 v_Texcoord; + +@import clay.util.encode_float + +void main() +{ + float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0; + + float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear)); + + float aperture = focalLength / fstop; + + float coc; + + float uppper = focalDistance + focalRange; + float lower = focalDistance - focalRange; + if (dist <= uppper && dist >= lower) { + coc = 0.5; + } + else { + float focalAdjusted = dist > uppper ? uppper : lower; + + coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength))); + coc = clamp(coc, 0.0, 2.0) / 2.00001; + + if (dist < lower) { + coc = -coc; + } + coc = coc * 0.5 + 0.5; + } + + gl_FragColor = encodeFloat(coc); +} +@end + + +@export ecgl.dof.composite + +#define DEBUG 0 + +uniform sampler2D original; +uniform sampler2D blurred; +uniform sampler2D nearfield; +uniform sampler2D coc; +uniform sampler2D nearcoc; +varying vec2 v_Texcoord; + +@import clay.util.rgbm +@import clay.util.float + +void main() +{ + vec4 blurredColor = texture2D(blurred, v_Texcoord); + vec4 originalColor = texture2D(original, v_Texcoord); + + float fCoc = decodeFloat(texture2D(coc, v_Texcoord)); + + fCoc = abs(fCoc * 2.0 - 1.0); + + float weight = smoothstep(0.0, 1.0, fCoc); + +#ifdef NEARFIELD_ENABLED + vec4 nearfieldColor = texture2D(nearfield, v_Texcoord); + float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord)); + fNearCoc = abs(fNearCoc * 2.0 - 1.0); + + gl_FragColor = encodeHDR( + mix( + nearfieldColor, mix(originalColor, blurredColor, weight), + pow(1.0 - fNearCoc, 4.0) + ) + ); +#else + gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight)); +#endif + +} + +@end + + + +@export ecgl.dof.diskBlur + +#define POISSON_KERNEL_SIZE 16; + +uniform sampler2D texture; +uniform sampler2D coc; +varying vec2 v_Texcoord; + +uniform float blurRadius : 10.0; +uniform vec2 textureSize : [512.0, 512.0]; + +uniform vec2 poissonKernel[POISSON_KERNEL_SIZE]; + +uniform float percent; + +float nrand(const in vec2 n) { + return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453); +} + +@import clay.util.rgbm +@import clay.util.float + + +void main() +{ + vec2 offset = blurRadius / textureSize; + + float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent ); + float cosa = cos(rnd); + float sina = sin(rnd); + vec4 basis = vec4(cosa, -sina, sina, cosa); + +#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC) + offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0); +#endif + +#ifdef BLUR_COC + float cocSum = 0.0; +#else + vec4 color = vec4(0.0); +#endif + + + float weightSum = 0.0; + + for (int i = 0; i < POISSON_KERNEL_SIZE; i++) { + vec2 ofs = poissonKernel[i]; + + ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw)); + + vec2 uv = v_Texcoord + ofs * offset; + vec4 texel = texture2D(texture, uv); + + float w = 1.0; +#ifdef BLUR_COC + float fCoc = decodeFloat(texel) * 2.0 - 1.0; + cocSum += clamp(fCoc, -1.0, 0.0) * w; +#else + texel = texel; + #if !defined(BLUR_NEARFIELD) + float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0; + w *= abs(fCoc); + #endif + texel.rgb *= texel.a; + color += texel * w; +#endif + + weightSum += w; + } + +#ifdef BLUR_COC + gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5); +#else + color /= weightSum; + color.rgb /= (color.a + 0.0001); + gl_FragColor = color; +#endif +} + +@end`,zf=`@export ecgl.edge + +uniform sampler2D texture; + +uniform sampler2D normalTexture; +uniform sampler2D depthTexture; + +uniform mat4 projectionInv; + +uniform vec2 textureSize; + +uniform vec4 edgeColor: [0,0,0,0.8]; + +varying vec2 v_Texcoord; + +vec3 packColor(vec2 coord) { + float z = texture2D(depthTexture, coord).r * 2.0 - 1.0; + vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); + vec4 p4 = projectionInv * p; + + return vec3( + texture2D(normalTexture, coord).rg, + -p4.z / p4.w / 5.0 + ); +} + +void main() { + vec2 cc = v_Texcoord; + vec3 center = packColor(cc); + + float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5; + float dx = size / textureSize.x; + float dy = size / textureSize.y; + + vec2 coord; + vec3 topLeft = packColor(cc+vec2(-dx, -dy)); + vec3 top = packColor(cc+vec2(0.0, -dy)); + vec3 topRight = packColor(cc+vec2(dx, -dy)); + vec3 left = packColor(cc+vec2(-dx, 0.0)); + vec3 right = packColor(cc+vec2(dx, 0.0)); + vec3 bottomLeft = packColor(cc+vec2(-dx, dy)); + vec3 bottom = packColor(cc+vec2(0.0, dy)); + vec3 bottomRight = packColor(cc+vec2(dx, dy)); + + vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight; + vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight; + + float edge = sqrt(dot(h, h) + dot(v, v)); + + edge = smoothstep(0.8, 1.0, edge); + + gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge); +} +@end`;N.import(ol);N.import(sl);N.import(ll);N.import(hl);N.import(ul);N.import(cl);N.import(fl);N.import(dl);N.import(vl);N.import(Gf);N.import(zf);function _l(e,t){return{color:{parameters:{width:e,height:t}}}}var Wa=["composite","FXAA"];function ie(){this._width,this._height,this._dpr,this._sourceTexture=new Q({type:X.HALF_FLOAT}),this._depthTexture=new Q({format:X.DEPTH_COMPONENT,type:X.UNSIGNED_INT}),this._framebuffer=new qe,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,qe.DEPTH_ATTACHMENT),this._normalPass=new ei,this._compositor=Af(Uf);var e=this._compositor.getNodeByName("source");e.texture=this._sourceTexture;var t=this._compositor.getNodeByName("coc");this._sourceNode=e,this._cocNode=t,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(i){return this._compositor.getNodeByName(i)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=Wa.map(function(i){return this._compositor.getNodeByName(i)},this);var r={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new kt(r),this._ssrPass=new Wt(r),this._edgePass=new Bi(r)}ie.prototype.resize=function(i,n,r){r=r||1;var i=i*r,n=n*r,a=this._sourceTexture,o=this._depthTexture;a.width=i,a.height=n,o.width=i,o.height=n;var s={getWidth:function(){return i},getHeight:function(){return n},getDevicePixelRatio:function(){return r}};function l(h,u){if(typeof h[u]=="function"){var c=h[u].__original||h[u];h[u]=function(d){return c.call(this,s)},h[u].__original=c}}this._compositor.nodes.forEach(function(h){for(var u in h.outputs){var c=h.outputs[u].parameters;c&&(l(c,"width"),l(c,"height"))}for(var d in h.parameters)l(h.parameters,d)}),this._width=i,this._height=n,this._dpr=r};ie.prototype.getWidth=function(){return this._width};ie.prototype.getHeight=function(){return this._height};ie.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR};ie.prototype._getPrevNode=function(e){for(var t=Wa.indexOf(e.name)-1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t-=1,r=this._finalNodesChain[t];return r};ie.prototype._getNextNode=function(e){for(var t=Wa.indexOf(e.name)+1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t+=1,r=this._finalNodesChain[t];return r};ie.prototype._addChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(e.inputs.texture=t.name,r?(e.outputs=_l(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=e.name):e.outputs=null,this._compositor.addNode(e))};ie.prototype._removeChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(r?(t.outputs=_l(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=t.name):t.outputs=null,this._compositor.removeNode(e))};ie.prototype.updateNormal=function(e,t,r,i){this._ifRenderNormalPass()&&this._normalPass.update(e,t,r)};ie.prototype.updateSSAO=function(e,t,r,i){this._ssaoPass.update(e,r,i)};ie.prototype.enableSSAO=function(){this._enableSSAO=!0};ie.prototype.disableSSAO=function(){this._enableSSAO=!1};ie.prototype.enableSSR=function(){this._enableSSR=!0};ie.prototype.disableSSR=function(){this._enableSSR=!1};ie.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()};ie.prototype.getSourceFrameBuffer=function(){return this._framebuffer};ie.prototype.getSourceTexture=function(){return this._sourceTexture};ie.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)};ie.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)};ie.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()};ie.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()};ie.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()};ie.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()};ie.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0};ie.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1};ie.prototype.enableEdge=function(){this._enableEdge=!0};ie.prototype.disableEdge=function(){this._enableEdge=!1};ie.prototype.setBloomIntensity=function(e){this._compositeNode.setParameter("bloomIntensity",e)};ie.prototype.setSSAOParameter=function(e,t){switch(e){case"quality":var r={low:6,medium:12,high:32,ultra:62}[t]||12;this._ssaoPass.setParameter("kernelSize",r);break;case"radius":this._ssaoPass.setParameter(e,t),this._ssaoPass.setParameter("bias",t/200);break;case"intensity":this._ssaoPass.setParameter(e,t);break}};ie.prototype.setDOFParameter=function(e,t){switch(e){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(e,t);break;case"blurRadius":for(var r=0;r=this._haltonSequence.length},render:function(e,t,r){var i=this._blendPass;this._frame===0?(i.setUniform("weight1",0),i.setUniform("weight2",1)):(i.setUniform("weight1",.9),i.setUniform("weight2",.1)),i.setUniform("texture1",this._prevFrameTex),i.setUniform("texture2",t||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(e),i.render(e),this._blendFb.unbind(e),r||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(e));var n=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=n,this._frame++},dispose:function(e){this._sourceFb.dispose(e),this._blendFb.dispose(e),this._prevFrameTex.dispose(e),this._outputTex.dispose(e),this._sourceTex.dispose(e),this._outputPass.dispose(e),this._blendPass.dispose(e)}};function de(e){e=e||"perspective",this.layer=null,this.scene=new ir,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(e),this._compositor=new ie,this._temporalSS=new Ea,this._shadowMapPass=new hf;for(var t=[],r=0,i=0;i<30;i++){for(var n=[],a=0;a<6;a++)n.push(Zr(r,2)*4-2),n.push(Zr(r,3)*4-2),r++;t.push(n)}this._pcfKernels=t,this.scene.on("beforerender",function(o,s,l){this.needsTemporalSS()&&this._temporalSS.jitterProjection(o,l)},this)}de.prototype.setProjection=function(e){var t=this.camera;t&&t.update(),e==="perspective"?this.camera instanceof Ve||(this.camera=new Ve,t&&this.camera.setLocalTransform(t.localTransform)):this.camera instanceof Xr||(this.camera=new Xr,t&&this.camera.setLocalTransform(t.localTransform)),this.camera.near=.1,this.camera.far=2e3};de.prototype.setViewport=function(e,t,r,i,n){this.camera instanceof Ve&&(this.camera.aspect=r/i),n=n||1,this.viewport.x=e,this.viewport.y=t,this.viewport.width=r,this.viewport.height=i,this.viewport.devicePixelRatio=n,this._compositor.resize(r*n,i*n),this._temporalSS.resize(r*n,i*n)};de.prototype.containPoint=function(e,t){var r=this.viewport,i=this.layer.renderer.getHeight();return t=i-t,e>=r.x&&t>=r.y&&e<=r.x+r.width&&t<=r.y+r.height};var Qo=new mt;de.prototype.castRay=function(e,t,r){var i=this.layer.renderer,n=i.viewport;return i.viewport=this.viewport,i.screenToNDC(e,t,Qo),this.camera.castRay(Qo,r),i.viewport=n,r};de.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var e=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var t=0;t30};de.prototype._doRender=function(e,t,r){var i=this.scene,n=this.camera;r=r||0,this._updateTransparent(e,i,n,r),t||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(e,i,n,!0)),this._updateShadowPCFKernel(r);var a=e.clearColor;if(e.gl.clearColor(a[0],a[1],a[2],a[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,n),this._compositor.updateNormal(e,i,n,this._temporalSS.getFrame())),this._updateSSAO(e,i,n,this._temporalSS.getFrame()),this._enablePostEffect){var o=this._compositor.getSourceFrameBuffer();o.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),e.render(i,n,!0,!0),o.unbind(e),this.needsTemporalSS()&&t?(this._compositor.composite(e,i,n,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),this._compositor.composite(e,i,n,null,0))}else if(this.needsTemporalSS()&&t){var o=this._temporalSS.getSourceFrameBuffer();o.bind(e),e.saveClear(),e.clearBit=e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT,e.render(i,n,!0,!0),e.restoreClear(),o.unbind(e),e.setViewport(this.viewport),this._temporalSS.render(e)}else e.setViewport(this.viewport),e.render(i,n,!0,!0)};de.prototype._updateTransparent=function(e,t,r,i){for(var n=new G,a=new k,o=r.getWorldPosition(),s=t.getRenderList(r).transparent,l=0;lthis.camera.far||e80*r){s=h=e[0],l=u=e[1];for(var v=r;vh&&(h=c),d>u&&(u=d);f=Math.max(h-s,u-l)}return Li(a,o,r,s,l,f),o}function Sl(e,t,r,i,n){var a,o;if(n===La(e,t,r,i)>0)for(a=t;a=t;a-=i)o=Jo(a,e[a],e[a+1],o);return o&&mr(o,o.next)&&(Di(o),o=o.next),o}function Ai(e,t){if(!e)return e;t||(t=e);var r=e,i;do if(i=!1,!r.steiner&&(mr(r,r.next)||nt(r.prev,r,r.next)===0)){if(Di(r),r=t=r.prev,r===r.next)return null;i=!0}else r=r.next;while(i||r!==t);return t}function Li(e,t,r,i,n,a,o){if(!!e){!o&&a&&ld(e,i,n,a);for(var s=e,l,h;e.prev!==e.next;){if(l=e.prev,h=e.next,a?td(e,i,n,a):ed(e)){t.push(l.i/r),t.push(e.i/r),t.push(h.i/r),Di(e),e=h.next,s=h.next;continue}if(e=h,e===s){o?o===1?(e=rd(e,t,r),Li(e,t,r,i,n,a,2)):o===2&&id(e,t,r,i,n,a):Li(Ai(e),t,r,i,n,a,1);break}}}}function ed(e){var t=e.prev,r=e,i=e.next;if(nt(t,r,i)>=0)return!1;for(var n=e.next.next;n!==e.prev;){if(yn(t.x,t.y,r.x,r.y,i.x,i.y,n.x,n.y)&&nt(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function td(e,t,r,i){var n=e.prev,a=e,o=e.next;if(nt(n,a,o)>=0)return!1;for(var s=n.xa.x?n.x>o.x?n.x:o.x:a.x>o.x?a.x:o.x,u=n.y>a.y?n.y>o.y?n.y:o.y:a.y>o.y?a.y:o.y,c=ba(s,l,t,r,i),d=ba(h,u,t,r,i),f=e.nextZ;f&&f.z<=d;){if(f!==e.prev&&f!==e.next&&yn(n.x,n.y,a.x,a.y,o.x,o.y,f.x,f.y)&&nt(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(f=e.prevZ;f&&f.z>=c;){if(f!==e.prev&&f!==e.next&&yn(n.x,n.y,a.x,a.y,o.x,o.y,f.x,f.y)&&nt(f.prev,f,f.next)>=0)return!1;f=f.prevZ}return!0}function rd(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!mr(n,a)&&El(n,i,i.next,a)&&Ci(n,a)&&Ci(a,n)&&(t.push(n.i/r),t.push(i.i/r),t.push(a.i/r),Di(i),Di(i.next),i=e=a),i=i.next}while(i!==e);return i}function id(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&cd(o,s)){var l=bl(o,s);o=Ai(o,o.next),l=Ai(l,l.next),Li(o,t,r,i,n,a),Li(l,t,r,i,n,a);return}s=s.next}o=o.next}while(o!==e)}function nd(e,t,r,i){var n=[],a,o,s,l,h;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(n===r.y)return r;if(n===r.next.y)return r.next}o=r.x=r.x&&r.x>=h&&i!==r.x&&yn(no.x)&&Ci(r,e)&&(o=r,c=d)),r=r.next;return o}function ld(e,t,r,i){var n=e;do n.z===null&&(n.z=ba(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,hd(n)}function hd(e){var t,r,i,n,a,o,s,l,h=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,i=r,s=0,t=0;t0||l>0&&i;)s!==0&&(l===0||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,h*=2}while(o>1);return e}function ba(e,t,r,i,n){return e=32767*(e-r)/n,t=32767*(t-i)/n,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function ud(e){var t=e,r=e;do t.x=0&&(e-o)*(i-s)-(r-o)*(t-s)>=0&&(r-o)*(a-s)-(n-o)*(i-s)>=0}function cd(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!fd(e,t)&&Ci(e,t)&&Ci(t,e)&&dd(e,t)}function nt(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function mr(e,t){return e.x===t.x&&e.y===t.y}function El(e,t,r,i){return mr(e,t)&&mr(r,i)||mr(e,i)&&mr(r,t)?!0:nt(e,t,r)>0!=nt(e,t,i)>0&&nt(r,i,e)>0!=nt(r,i,t)>0}function fd(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&El(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Ci(e,t){return nt(e.prev,e,e.next)<0?nt(e,t,e.next)>=0&&nt(e,e.prev,t)>=0:nt(e,t,e.prev)<0||nt(e,e.next,t)<0}function dd(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==e);return i}function bl(e,t){var r=new Aa(e.i,e.x,e.y),i=new Aa(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function Jo(e,t,r,i){var n=new Aa(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function Di(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Aa(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}wl.deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(La(e,0,a,r));if(n)for(var s=0,l=t.length;sl&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h});var l=a[o].pivot+1,h=a[o].right;h>l&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h})}a=this._parts=s}else for(var o=0;o=2e4},doSortTriangles:function(e,t){var r=this.indices;if(t===0){var i=this.attributes.position,e=e.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new r.constructor(r.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var n=0,a,o=0;o0,r={},i=0;i65535?new Uint32Array(o*3):new Uint16Array(o*3),d.material.shader!==t&&d.material.attachShader(t,!0),T.setMaterialFromModel(t.__shading,d.material,e,r),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(a),this._vertexRangeOfDataIndex=new Uint32Array((n-i)*2)},_updateRegionMesh:function(e,t,r,i){for(var n=e.getData(),a=0,o=0,s=!1,w=this._polygonMesh,l=this._linesMesh,h=r;h0;S&&(g*=t.getDevicePixelRatio(),this._updateLinesGeometry(l.geometry,e,h,m,g,e.coordinateSystem.transform)),l.invisible=!S,l.material.set({color:p})}var w=this._polygonMesh;w.material.transparent=s,w.material.depthMask=!s,w.geometry.updateBoundingBox(),w.frontFace=this.extrudeY?T.Mesh.CCW:T.Mesh.CW,w.material.get("normalMap")&&w.geometry.generateTangents(),w.seriesIndex=e.seriesIndex,w.on("mousemove",this._onmousemove,this),w.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(e){var t=e.getModel("debug.wireframe");if(t.get("show")){var r=T.parseColor(t.get("lineStyle.color")||"rgba(0,0,0,0.5)"),i=ee.firstNotNull(t.get("lineStyle.width"),1),n=this._polygonMesh;n.geometry.generateBarycentric(),n.material.define("both","WIREFRAME_TRIANGLE"),n.material.set("wireframeLineColor",r),n.material.set("wireframeLineWidth",i)}},_onmousemove:function(e){var t=this._dataIndexOfVertex[e.triangle[0]];t==null&&(t=-1),t!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(t),this._labelsBuilder.updateLabels([t])),this._lastHoverDataIndex=t,this._polygonMesh.dataIndex=t},_onmouseout:function(e){e.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(e,t,r){var i=e.getModel("groundPlane",e);if(this._groundMesh.invisible=!i.get("show",!0),!this._groundMesh.invisible){var n=e.get("shading"),a=this._groundMaterials[n];a||(a=this._groundMaterials.lambert),T.setMaterialFromModel(n,a,i,r),a.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=a,this._groundMesh.material.set("color",T.parseColor(i.get("color"))),this._groundMesh.scale.set(t.size[0],t.size[2],1)}},_triangulation:function(e,t,r){this._triangulationResults=[];for(var i=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0],a=e.coordinateSystem,o=t;o1?i:0,B[re][_]=C.points[Ee+2],l.set(n+re,B[re]),s?(he[0]=(C.points[Ee]*m[0]-x[0])/g,he[1]=(C.points[Ee+2]*m[_]-x[_])/g):(he[0]=(Ie?V:V+ye)/g,he[1]=(B[re][p]*m[p]-x[p])/g),u.set(n+re,he)}ct.sub(H,B[1],B[0]),ct.sub(W,B[3],B[0]),ct.cross(U,H,W),ct.normalize(U,U);for(var re=0;re<4;re++)h.set(n+re,U),f&&c.set(n+re,o);for(var re=0;re<6;re++)v[a*3+re]=M[re]+n;n+=4,a+=2,V+=ye}}return t.dirty(),{vertexOffset:n,triangleOffset:a}},_getRegionLinesInfo:function(e,t,r){var i=0,n=0,a=t.getRegionModel(e),o=a.getModel("itemStyle"),s=o.get("borderWidth");if(s>0){var l=t.getRegionPolygonCoords(e);l.forEach(function(h){var u=h.exterior,c=h.interiors;i+=r.getPolylineVertexCount(u),n+=r.getPolylineTriangleCount(u);for(var d=0;dthis._endIndex)){t-=this._startIndex;for(var i=this._vertexRangeOfDataIndex[t*2];i0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var e=this.getDisplacementTexture(),t=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==e||this._displacementScale!==t,this._displacementTexture=e,this._displacementScale=t},isDisplacementChanged:function(){return this._displacementChanged}});fe(yr.prototype,Pn);fe(yr.prototype,Qr);fe(yr.prototype,Jr);fe(yr.prototype,ti);const Sd=yr;var Rl=Math.PI,Et=Math.sin,Ht=Math.cos,Nl=Math.tan,Il=Math.asin,Ol=Math.atan2,xr=Rl/180,Ed=1e3*60*60*24,bd=2440588,Ad=2451545;function Ld(e){return e.valueOf()/Ed-.5+bd}function Cd(e){return Ld(e)-Ad}var wn=xr*23.4397;function Dd(e,t){return Ol(Et(e)*Ht(wn)-Nl(t)*Et(wn),Ht(e))}function Md(e,t){return Il(Et(t)*Ht(wn)+Ht(t)*Et(wn)*Et(e))}function Pd(e,t,r){return Ol(Et(e),Ht(e)*Et(t)-Nl(r)*Ht(t))}function Rd(e,t,r){return Il(Et(t)*Et(r)+Ht(t)*Ht(r)*Ht(e))}function Nd(e,t){return xr*(280.16+360.9856235*e)-t}function Id(e){return xr*(357.5291+.98560028*e)}function Od(e){var t=xr*(1.9148*Et(e)+.02*Et(2*e)+3e-4*Et(3*e)),r=xr*102.9372;return e+t+r+Rl}function Bd(e){var t=Id(e),r=Od(t);return{dec:Md(r,0),ra:Dd(r,0)}}var Bl={};Bl.getPosition=function(e,t,r){var i=xr*-r,n=xr*t,a=Cd(e),o=Bd(a),s=Nd(a,i)-o.ra;return{azimuth:Pd(s,n,o.dec),altitude:Rd(s,n,o.dec)}};const Fd=Bl,Ud=`@export ecgl.atmosphere.vertex +attribute vec3 position: POSITION; +attribute vec3 normal : NORMAL; +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; +uniform mat4 normalMatrix : WORLDINVERSETRANSPOSE; + +varying vec3 v_Normal; + +void main() { + v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz); + gl_Position = worldViewProjection * vec4(position, 1.0); +} +@end + + +@export ecgl.atmosphere.fragment +uniform mat4 viewTranspose: VIEWTRANSPOSE; +uniform float glowPower; +uniform vec3 glowColor; + +varying vec3 v_Normal; + +void main() { + float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); + gl_FragColor = vec4(glowColor, intensity * intensity); +} +@end`;T.Shader.import(qs);T.Shader.import(Ud);const Gd=Ri.extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(e,t){this.groupGL=new T.Node,this._sphereGeometry=new T.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new T.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new T.PlaneGeometry,this._earthMesh=new T.Mesh({renderNormal:!0}),this._atmosphereMesh=new T.Mesh,this._atmosphereGeometry=new T.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new T.Material({shader:new T.Shader(T.Shader.source("ecgl.atmosphere.vertex"),T.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=T.Mesh.CW,this._lightRoot=new T.Node,this._sceneHelper=new tr,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new Nn({zr:t.getZr()}),this._control.init(),this._layerMeshes={}},render:function(e,t,r){var i=e.coordinateSystem,n=e.get("shading");i.viewGL.add(this._lightRoot),e.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL),this._sceneHelper.setScene(i.viewGL.scene),i.viewGL.setPostEffect(e.getModel("postEffect"),r),i.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var a=this._earthMesh;a.geometry=this._sphereGeometry;var o="ecgl."+n;(!a.material||a.material.shader.name!==o)&&(a.material=T.createMaterial(o)),T.setMaterialFromModel(n,a.material,e,r),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach(function(c){var d=a.material.get(c);d&&(d.flipY=!1)}),a.material.set("color",T.parseColor(e.get("baseColor")));var s=i.radius*.99;if(a.scale.set(s,s,s),e.get("atmosphere.show")){a.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:e.get("atmosphere.glowPower")||6,glowColor:e.get("atmosphere.color")||"#ffffff"}),a.material.setUniforms({glowPower:e.get("atmosphere.innerGlowPower")||2,glowColor:e.get("atmosphere.color")||"#ffffff"});var l=e.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else a.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var h=a.material.setTextureImage("diffuseMap",e.get("baseTexture"),r,{flipY:!1,anisotropic:8});h&&h.surface&&h.surface.attachToMesh(a);var u=a.material.setTextureImage("bumpMap",e.get("heightTexture"),r,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(a),a.material[e.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(e,r),this._displaceVertices(e,r),this._updateViewControl(e,r),this._updateLayers(e,r)},afterRender:function(e,t,r,i){var n=i.renderer;this._sceneHelper.updateAmbientCubemap(n,e,r),this._sceneHelper.updateSkybox(n,e,r)},_updateLayers:function(e,t){var r=e.coordinateSystem,i=e.get("layers"),n=r.radius,a=[],o=[],s=[],l=[];Bt(i,function(f){var v=new En(f),p=v.get("type"),_=T.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8});if(_.surface&&_.surface.attachToMesh(this._earthMesh),p==="blend"){var m=v.get("blendTo"),x=ee.firstNotNull(v.get("intensity"),1);m==="emission"?(s.push(_),l.push(x)):(a.push(_),o.push(x))}else{var y=v.get("id"),g=this._layerMeshes[y];g||(g=this._layerMeshes[y]=new T.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var S=v.get("shading");S==="lambert"?(g.material=g.__lambertMaterial||new T.Material({autoUpdateTextureStatus:!1,shader:T.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),g.__lambertMaterial=g.material):(g.material=g.__colorMaterial||new T.Material({autoUpdateTextureStatus:!1,shader:T.createShader("ecgl.color"),transparent:!0,depthMask:!1}),g.__colorMaterial=g.material),g.material.enableTexture("diffuseMap");var w=v.get("distance"),E=n+(w??r.radius/100);g.scale.set(E,E,E),n=E;var b=this._blankTexture||(this._blankTexture=T.createBlankTexture("rgba(255, 255, 255, 0)"));g.material.set("diffuseMap",b),T.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8},function(L){L.surface&&L.surface.attachToMesh(g),g.material.set("diffuseMap",L),t.getZr().refresh()}),v.get("show")?this.groupGL.add(g):this.groupGL.remove(g)}},this);var h=this._earthMesh.material;h.define("fragment","LAYER_DIFFUSEMAP_COUNT",a.length),h.define("fragment","LAYER_EMISSIVEMAP_COUNT",s.length),h.set("layerDiffuseMap",a),h.set("layerDiffuseIntensity",o),h.set("layerEmissiveMap",s),h.set("layerEmissionIntensity",l);var u=e.getModel("debug.wireframe");if(u.get("show")){h.define("both","WIREFRAME_TRIANGLE");var c=T.parseColor(u.get("lineStyle.color")||"rgba(0,0,0,0.5)"),d=ee.firstNotNull(u.get("lineStyle.width"),1);h.set("wireframeLineWidth",d),h.set("wireframeLineColor",c)}else h.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(e,t){var r=e.coordinateSystem,i=e.getModel("viewControl");r.viewGL.camera;var n=this;function a(){return{type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-r.radius,center:o.getCenter(),from:n.uid,globeId:e.id}}var o=this._control;o.setViewGL(r.viewGL);var s=i.get("targetCoord"),l,h;s!=null&&(h=s[0]+90,l=s[1]),o.setFromViewControlModel(i,{baseDistance:r.radius,alpha:l,beta:h}),o.off("update"),o.on("update",function(){t.dispatchAction(a())})},_displaceVertices:function(e,t){var r=e.get("displacementQuality"),i=e.get("debug.wireframe.show"),n=e.coordinateSystem;if(!(!e.isDisplacementChanged()&&r===this._displacementQuality&&i===this._showDebugWireframe)){this._displacementQuality=r,this._showDebugWireframe=i;var a=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[r]||200,s=o/2;(a.widthSegments!==o||i)&&(a.widthSegments=o,a.heightSegments=s,a.build()),this._doDisplaceVertices(a,n),i&&a.generateBarycentric()}},_doDisplaceVertices:function(e,t){var r=e.attributes.position.value,i=e.attributes.texcoord0.value,n=e.__originalPosition;(!n||n.length!==r.length)&&(n=new Float32Array(r.length),n.set(r),e.__originalPosition=n);for(var a=t.displacementWidth,o=t.displacementHeight,s=t.displacementData,l=0;l50&&(o=1e3);var s=[];qt.perspective(s,la,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(s),this.viewGL.camera.decomposeProjectionMatrix();var s=qt.identity([]),l=this.dataToPoint(this.center);qt.scale(s,s,[1,-1,1]),qt.translate(s,s,[0,0,-e]),qt.rotateX(s,s,t),qt.rotateZ(s,s,-this.bearing/180*Math.PI),qt.translate(s,s,[-l[0]*this.getScale()*Fr,-l[1]*this.getScale()*Fr,0]),this.viewGL.camera.viewMatrix.array=s;var h=[];qt.invert(h,s),this.viewGL.camera.worldTransform.array=h,this.viewGL.camera.decomposeWorldTransform();var u=fi*this.getScale(),c;if(this.altitudeExtent&&!isNaN(this.boxHeight)){var d=this.altitudeExtent[1]-this.altitudeExtent[0];c=this.boxHeight/d*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else c=u/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Fr;this.viewGL.rootNode.scale.set(this.getScale()*Fr,this.getScale()*Fr,c)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(e,t){return this.projectOnTileWithScale(e,this.getScale()*fi,t)},projectOnTileWithScale:function(e,t,r){var i=e[0],n=e[1],a=i*ft/180,o=n*ft/180,s=t*(a+ft)/(2*ft),l=t*(ft-Math.log(Math.tan(ft/4+o*.5)))/(2*ft);return r=r||[],r[0]=s,r[1]=l,r},unprojectFromTile:function(e,t){return this.unprojectOnTileWithScale(e,this.getScale()*fi,t)},unprojectOnTileWithScale:function(e,t,r){var i=e[0],n=e[1],a=i/t*(2*ft)-ft,o=2*(Math.atan(Math.exp(ft-n/t*(2*ft)))-ft/4);return r=r||[],r[0]=a*180/ft,r[1]=o*180/ft,r},dataToPoint:function(e,t){return t=this.projectOnTileWithScale(e,fi,t),t[0]-=this._origin[0],t[1]-=this._origin[1],t[2]=isNaN(e[2])?0:e[2],isNaN(e[2])||(t[2]=e[2],this.altitudeExtent&&(t[2]-=this.altitudeExtent[0])),t}};function Mi(){qr.apply(this,arguments)}Mi.prototype=new qr;Mi.prototype.constructor=Mi;Mi.prototype.type="mapbox3D";function Gl(e,t,r){function i(a,o){var s=o.getWidth(),l=o.getHeight(),h=o.getDevicePixelRatio();this.viewGL.setViewport(0,0,s,l,h),this.width=s,this.height=l,this.altitudeScale=a.get("altitudeScale"),this.boxHeight=a.get("boxHeight")}function n(a,o){if(this.model.get("boxHeight")!=="auto"){var s=[1/0,-1/0];a.eachSeries(function(l){if(l.coordinateSystem===this){var h=l.getData(),u=l.coordDimToDataDim("alt")[0];if(u){var c=h.getDataExtent(u,!0);s[0]=Math.min(s[0],c[0]),s[1]=Math.max(s[1],c[1])}}},this),s&&isFinite(s[1]-s[0])&&(this.altitudeExtent=s)}}return{dimensions:t.prototype.dimensions,create:function(a,o){var s=[];return a.eachComponent(e,function(l){var h=l.__viewGL;h||(h=l.__viewGL=new de,h.setRootNode(new T.Node));var u=new t;u.viewGL=l.__viewGL,u.resize=i,u.resize(l,o),s.push(u),l.coordinateSystem=u,u.model=l,u.update=n}),a.eachSeries(function(l){if(l.get("coordinateSystem")===e){var h=l.getReferringComponents(e).models[0];if(h||(h=a.getComponent(e)),!h)throw new Error(e+' "'+ee.firstNotNull(l.get(e+"Index"),l.get(e+"Id"),0)+'" not found');l.coordinateSystem=h.coordinateSystem}}),r&&r(s,a,o),s}}}var qd=Gl("mapbox3D",Mi,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMapboxCameraOption())})});const $d=qd;function Kd(e){e.registerComponentModel(jd),e.registerComponentView(Yd),e.registerCoordinateSystem("mapbox3D",$d),e.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},function(t,r){r.eachComponent({mainType:"mapbox3D",query:t},function(i){i.setMapboxCameraOption(t)})})}tt(Kd);var os=["zoom","center","pitch","bearing"],Ya=$r.extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© OpenStreetMap contributors, © CARTO',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var e=this;return os.reduce(function(t,r){return t[r]=e.get(r),t},{})},setMaptalksCameraOption:function(e){e!=null&&os.forEach(function(t){e[t]!=null&&(this.option[t]=e[t])},this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(e){this._maptalks=e}});fe(Ya.prototype,Qr);fe(Ya.prototype,Jr);const Qd=Ya;function ar(e,t,r,i){if(this.id=e,this.zr=t,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:r,zoom:i,doubleClickZoom:!1,fog:!1}),this._initEvents()}ar.prototype.setUnpainted=function(){};ar.prototype.resize=function(){this._maptalks.checkSize()};ar.prototype.getMaptalks=function(){return this._maptalks};ar.prototype.clear=function(){};ar.prototype.refresh=function(){this._maptalks.checkSize()};var zl=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];ar.prototype._initEvents=function(){var e=this.dom;this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},zl.forEach(function(t){this._handlers[t]=function(r){var i={};for(var n in r)i[n]=r[n];i.bubbles=!1;var a=new r.constructor(r.type,i);t==="mousewheel"||t==="DOMMouseScroll"?e.dispatchEvent(a):e.firstElementChild.dispatchEvent(a)},this.zr.dom.addEventListener(t,this._handlers[t])},this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)};ar.prototype.dispose=function(){zl.forEach(function(e){this.zr.dom.removeEventListener(e,this._handlers[e])},this),this._maptalks.remove()};T.Shader.import(Ul);const Jd=Ri.extend({type:"maptalks3D",__ecgl__:!0,init:function(e,t){this._groundMesh=new T.Mesh({geometry:new T.PlaneGeometry,material:new T.Material({shader:new T.Shader({vertex:T.Shader.source("ecgl.displayShadow.vertex"),fragment:T.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(e,t){var r=t.getZr();this._zrLayer=new ar("maptalks3D",r,e.get("center"),e.get("zoom")),r.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new T.Node,this._sceneHelper=new tr(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMaptalks(),n=this._dispatchInteractAction.bind(this,t,i);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach(function(a){i.on(a,n)})},render:function(e,t,r){this._zrLayer||this._initMaptalksLayer(e,r);var i=this._zrLayer.getMaptalks(),n=e.get("urlTemplate"),a=i.getBaseLayer();n!==this._oldUrlTemplate&&(a?a.setOptions({urlTemplate:n,attribution:e.get("attribution")}):(a=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:n,subdomains:["a","b","c"],attribution:e.get("attribution")}),i.setBaseLayer(a))),this._oldUrlTemplate=n,i.setCenter(e.get("center")),i.setZoom(e.get("zoom"),{animation:!1}),i.setPitch(e.get("pitch")),i.setBearing(e.get("bearing")),e.setMaptalks(i);var o=e.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(e),o.viewGL.setPostEffect(e.getModel("postEffect"),r),o.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._maptalks3DModel=e},afterRender:function(e,t,r,i){var n=i.renderer;this._sceneHelper.updateAmbientCubemap(n,e,r),this._sceneHelper.updateSkybox(n,e,r),e.coordinateSystem.viewGL.scene.traverse(function(a){a.material&&(a.material.define("fragment","NORMAL_UP_AXIS",2),a.material.define("fragment","NORMAL_FRONT_AXIS",1))})},updateCamera:function(e,t,r,i){e.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),r.getZr().refresh()},_dispatchInteractAction:function(e,t,r){e.dispatchAction({type:"maptalks3DChangeCamera",pitch:t.getPitch(),zoom:tv(t.getResolution())+1,center:t.getCenter().toArray(),bearing:t.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var e=this._maptalks3DModel.coordinateSystem,t=e.dataToPoint(e.center);this._groundMesh.position.set(t[0],t[1],-.001);var r=new T.Plane(new T.Vector3(0,0,1),0),i=e.viewGL.camera.castRay(new T.Vector2(-1,-1)),n=e.viewGL.camera.castRay(new T.Vector2(1,1)),a=i.intersectPlane(r),o=n.intersectPlane(r),s=a.dist(o)/e.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(e,t){this._zrLayer&&this._zrLayer.dispose(),t.getZr().painter.delLayer(-1e3)}}),ev=2*6378137*Math.PI/(256*Math.pow(2,20));function tv(e){return 19-Math.log(e/ev)/Math.LN2}function Pi(){qr.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}Pi.prototype=new qr;Pi.prototype.constructor=Pi;Pi.prototype.type="maptalks3D";var rv=Gl("maptalks3D",Pi,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMaptalksCameraOption())})});const iv=rv;function nv(e){e.registerComponentModel(Qd),e.registerComponentView(Jd),e.registerCoordinateSystem("maptalks3D",iv),e.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},function(t,r){r.eachComponent({mainType:"maptalks3D",query:t},function(i){i.setMaptalksCameraOption(t)})})}tt(nv);var av=Me.vec3,ov=Ra.isDimensionStacked;function sv(e){var t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function lv(e,t){var r=e.getData(),i=e.get("barSize");if(i==null){var n=t.size,a,o,s=t.getAxis("x"),l=t.getAxis("y");s.type==="category"?a=s.getBandWidth()*.7:a=Math.round(n[0]/Math.sqrt(r.count()))*.6,l.type==="category"?o=l.getBandWidth()*.7:o=Math.round(n[1]/Math.sqrt(r.count()))*.6,i=[a,o]}else Ot(i)||(i=[i,i]);var h=t.getAxis("z").scale.getExtent(),u=sv(h),c=["x","y","z"].map(function(v){return e.coordDimToDataDim(v)[0]}),d=ov(r,c[2]),f=d?r.getCalculationInfo("stackResultDimension"):c[2];r.each(c,function(v,p,_,m){var x=r.get(f,m),y=d?x-_:u?0:h[0],g=t.dataToPoint([v,p,y]),S=t.dataToPoint([v,p,x]),w=av.dist(g,S),E=[0,S[1]"+d.join("
")}var n=e.getData(),a=e.getRawValue(t),o=Ot(a)?i(a):Ur(ro(a)),s=n.getName(t),l=We(n,t);fh(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var h=dh(l),u=e.name;return u==="\0-"&&(u=""),u=u?Ur(u)+(r?": ":"
"):"",r?h+u+o:u+h+(s?Ur(s)+": "+o:o)}function Bn(e,t,r){r=r||e.getSource();var i=t||Cs(e.get("coordinateSystem"))||["x","y","z"],n=Ni(r,{dimensionsDefine:r.dimensionsDefine||e.get("dimensions"),encodeDefine:r.encodeDefine||e.get("encode"),coordDimensions:i.map(function(s){var l=e.getReferringComponents(s+"Axis3D").models[0];return{type:l&&l.get("type")==="category"?"ordinal":"float",name:s}})});e.get("coordinateSystem")==="cartesian3D"&&n.forEach(function(s){if(i.indexOf(s.coordDim)>=0){var l=e.getReferringComponents(s.coordDim+"Axis3D").models[0];l&&l.get("type")==="category"&&(s.ordinalMeta=l.getOrdinalMeta())}});var a=Ra.enableDataStack(e,n,{byIndex:!0,stackedCoordDimension:"z"}),o=new Ft(n,e);return o.setCalculationInfo(a),o.initData(r),o}var Hl=Dt.extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(e,t){return Bn(this)},getFormattedLabel:function(e,t,r,i){var n=ii.getFormattedLabel(this,e,t,r,i);return n==null&&(n=this.getData().get("z",e)),n},formatTooltip:function(e){return Fi(this,e)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});fe(Hl.prototype,ti);const pv=Hl;var Ae=Me.vec3,mv=Me.mat3,Qa=se.extend(function(){return{attributes:{position:new se.Attribute("position","float",3,"POSITION"),normal:new se.Attribute("normal","float",3,"NORMAL"),color:new se.Attribute("color","float",4,"COLOR"),prevPosition:new se.Attribute("prevPosition","float",3),prevNormal:new se.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(e){var t=this.enableNormal,r=this.getBarVertexCount()*e,i=this.getBarTriangleCount()*e;this.vertexCount!==r&&(this.attributes.position.init(r),t?this.attributes.normal.init(r):this.attributes.normal.value=null,this.attributes.color.init(r)),this.triangleCount!==i&&(this.indices=r>65535?new Uint32Array(i*3):new Uint16Array(i*3),this._dataIndices=new Uint32Array(r))},getBarVertexCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarVertexCount(e):this.enableNormal?24:8},getBarTriangleCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarTriangleCount(e):12},_getBevelBarVertexCount:function(e){return(e+1)*4*(e+1)*2},_getBevelBarTriangleCount:function(e){var t=e*4+3,r=e*2+1;return(t+1)*r*2+4},setColor:function(e,t){for(var r=this.getBarVertexCount(),i=r*e,n=r*(e+1),a=i;a0&&this.bevelSegments>0)this._addBevelBar(y,g,S,w,this.bevelSize,this.bevelSegments,E);else{Ae.copy(n,g),Ae.normalize(n,n),Ae.cross(a,S,n),Ae.normalize(a,a),Ae.cross(i,n,a),Ae.normalize(a,a),Ae.negate(o,i),Ae.negate(s,n),Ae.negate(l,a),t(h[0],y,i,w[0]/2),t(h[0],h[0],a,w[2]/2),t(h[1],y,i,w[0]/2),t(h[1],h[1],l,w[2]/2),t(h[2],y,o,w[0]/2),t(h[2],h[2],l,w[2]/2),t(h[3],y,o,w[0]/2),t(h[3],h[3],a,w[2]/2),t(r,y,n,w[1]),t(h[4],r,i,w[0]/2),t(h[4],h[4],a,w[2]/2),t(h[5],r,i,w[0]/2),t(h[5],h[5],l,w[2]/2),t(h[6],r,o,w[0]/2),t(h[6],h[6],l,w[2]/2),t(h[7],r,o,w[0]/2),t(h[7],h[7],a,w[2]/2);var P=this.attributes;if(this.enableNormal){u[0]=i,u[1]=o,u[2]=n,u[3]=s,u[4]=a,u[5]=l;for(var C=this._vertexOffset,R=0;R0&&(_++,u[3]<.99&&(f=!0))}}),o.geometry.setBarCount(_);var v=r.getLayout("orient"),p=this._barIndexOfData=new Int32Array(r.count()),_=0;r.each(function(x){if(!r.hasValue(x)){p[x]=-1;return}var y=r.getItemLayout(x),g=y[0],S=y[1],w=y[2],E=x*4;u[0]=c[E++],u[1]=c[E++],u[2]=c[E++],u[3]=c[E++],u[3]>0&&(a._barMesh.geometry.addBar(g,S,v,w,u,x),p[x]=_++)}),o.geometry.dirty(),o.geometry.updateBoundingBox();var m=o.material;m.transparent=f,m.depthMask=!f,o.geometry.sortTriangles=f,this._initHandler(e,t)},_initHandler:function(e,t){var r=e.getData(),i=this._barMesh,n=e.coordinateSystem.type==="cartesian3D";i.seriesIndex=e.seriesIndex;var a=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",function(o){var s=i.geometry.getDataIndexOfVertex(o.triangle[0]);s!==a&&(this._downplay(a),this._highlight(s),this._labelsBuilder.updateLabels([s]),n&&t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",s),r.get("y",s),r.get("z",s,!0)]})),a=s,i.dataIndex=s},this),i.on("mouseout",function(o){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,i.dataIndex=-1,n&&t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_highlight:function(e){var t=this._data;if(!!t){var r=this._barIndexOfData[e];if(!(r<0)){var i=t.getItemModel(e),n=i.getModel("emphasis.itemStyle"),a=n.get("color"),o=n.get("opacity");if(a==null){var s=We(t,e);a=Pa(s,-.4)}o==null&&(o=ke(t,e));var l=T.parseColor(a);l[3]*=o,this._barMesh.geometry.setColor(r,l),this._api.getZr().refresh()}}},_downplay:function(e){var t=this._data;if(!!t){var r=this._barIndexOfData[e];if(!(r<0)){var i=We(t,e),n=ke(t,e),a=T.parseColor(i);a[3]*=n,this._barMesh.geometry.setColor(r,a),this._api.getZr().refresh()}}},highlight:function(e,t,r,i){this._toggleStatus("highlight",e,t,r,i)},downplay:function(e,t,r,i){this._toggleStatus("downplay",e,t,r,i)},_toggleStatus:function(e,t,r,i,n){var a=t.getData(),o=ee.queryDataIndex(a,n),s=this;o!=null?Bt(ii.normalizeToArray(o),function(l){e==="highlight"?this._highlight(l):this._downplay(l)},this):a.each(function(l){e==="highlight"?s._highlight(l):s._downplay(l)})},remove:function(){this.groupGL.removeAll()},dispose:function(){this._labelsBuilder.dispose(),this.groupGL.removeAll()}});function xv(e){e.registerChartView(yv),e.registerSeriesModel(pv),dv(e),e.registerProcessor(function(t,r){t.eachSeriesByType("bar3d",function(i){var n=i.getData();n.filterSelf(function(a){return n.hasValue(a)})})})}tt(xv);var Tv=Dt.extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(e,t){return Bn(this)},formatTooltip:function(e){return Fi(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}});const wv=Tv;var Sv=Me.vec3;T.Shader.import(On);const Ev=Mt.extend({type:"line3D",__ecgl__:!0,init:function(e,t){this.groupGL=new T.Node,this._api=t},render:function(e,t,r){var i=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=i,this._line3DMesh||(this._line3DMesh=new T.Mesh({geometry:new Er({useNativeLine:!1,sortTriangles:!0}),material:new T.Material({shader:T.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var n=e.coordinateSystem;if(n&&n.viewGL){n.viewGL.add(this.groupGL);var a=n.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[a]("fragment","SRGB_DECODE")}this._doRender(e,r),this._data=e.getData(),this._camera=n.viewGL.camera,this.updateCamera(),this._updateAnimation(e)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(e,t){var r=e.getData(),i=this._line3DMesh;i.geometry.resetOffset();var n=r.getLayout("points"),a=[],o=new Float32Array(n.length/3*4),s=0,l=!1;r.each(function(c){var d=We(r,c),f=ke(r,c);f==null&&(f=1),T.parseColor(d,a),a[3]*=f,o[s++]=a[0],o[s++]=a[1],o[s++]=a[2],o[s++]=a[3],a[3]<.99&&(l=!0)}),i.geometry.setVertexCount(i.geometry.getPolylineVertexCount(n)),i.geometry.setTriangleCount(i.geometry.getPolylineTriangleCount(n)),i.geometry.addPolyline(n,o,ee.firstNotNull(e.get("lineStyle.width"),1)),i.geometry.dirty(),i.geometry.updateBoundingBox();var h=i.material;h.transparent=l,h.depthMask=!l;var u=e.getModel("debug.wireframe");u.get("show")?(i.geometry.createAttribute("barycentric","float",3),i.geometry.generateBarycentric(),i.material.set("both","WIREFRAME_TRIANGLE"),i.material.set("wireframeLineColor",T.parseColor(u.get("lineStyle.color")||"rgba(0,0,0,0.5)")),i.material.set("wireframeLineWidth",ee.firstNotNull(u.get("lineStyle.width"),1))):i.material.set("both","WIREFRAME_TRIANGLE"),this._points=n,this._initHandler(e,t)},_updateAnimation:function(e){T.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,e)},_initHandler:function(e,t){var r=e.getData(),i=e.coordinateSystem,n=this._line3DMesh,a=-1;n.seriesIndex=e.seriesIndex,n.off("mousemove"),n.off("mouseout"),n.on("mousemove",function(o){var s=i.pointToData(o.point.array),l=r.indicesOfNearest("x",s[0])[0];l!==a&&(t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",l),r.get("y",l),r.get("z",l)]}),n.dataIndex=l),a=l},this),n.on("mouseout",function(o){a=-1,n.dataIndex=-1,t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_updateNDCPosition:function(){var e=new k,t=this._camera;k.multiply(e,t.projectionMatrix,t.viewMatrix);var r=this._positionNDC,i=this._points,n=i.length/3;(!r||r.length/2!==n)&&(r=this._positionNDC=new Float32Array(n*2));for(var a=[],o=0;o=0){var S=h*3,w=new G(this._points[S],this._points[S+1],this._points[S+2]);a.push({dataIndex:h,point:w,pointWorld:w.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(w)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function bv(e){e.registerChartView(Ev),e.registerSeriesModel(wv),e.registerLayout(function(t,r){t.eachSeriesByType("line3D",function(i){var n=i.getData(),a=i.coordinateSystem;if(a){if(a.type!=="cartesian3D")return;var o=new Float32Array(n.count()*3),s=[],l=[],h=a.dimensions,u=h.map(function(c){return i.coordDimToDataDim(c)[0]});a&&n.each(u,function(c,d,f,v){s[0]=c,s[1]=d,s[2]=f,a.dataToPoint(s,l),o[v*3]=l[0],o[v*3+1]=l[1],o[v*3+2]=l[2]}),n.setLayout("points",o)}})})}tt(bv);const Av=Dt.extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(e,t){return Bn(this)},getFormattedLabel:function(e,t,r,i){var n=ii.getFormattedLabel(this,e,t,r,i);if(n==null){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];n=a.get(o,e)}return n},formatTooltip:function(e){return Fi(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function ha(e,i,r){var i=i||document.createElement("canvas");i.width=e,i.height=e;var n=i.getContext("2d");return r&&r(n),i}function Lv(e,t,r,i){Ot(t)||(t=[t,t]);var n=Ja.getMarginByStyle(r,i),a=t[0]+n.left+n.right,o=t[1]+n.top+n.bottom,s=mh(e,0,0,t[0],t[1]),l=Math.max(a,o);s.x=n.left,s.y=n.top,a>o?s.y+=(l-o)/2:s.x+=(l-a)/2;var h=s.getBoundingRect();return s.x-=h.x,s.y-=h.y,s.setStyle(r),s.update(),s.__size=l,s}function Cv(e,t,r){var i=t.width,n=t.height,a=e.canvas.width,o=e.canvas.height,s=i/a,l=n/o;function h(m){return m<128?1:-1}function u(m,x){var y=1/0;m=Math.floor(m*s),x=Math.floor(x*l);for(var g=x*i+m,S=t.data[g*4],w=h(S),E=Math.max(x-r,0);E=2e4},doSortVertices:function(e,t){var r=this.indices,i=hs.create();if(!r){r=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var n=0;n.05);else for(var n=0;n<3;n++)this._progressiveQuickSort(t*3+n);this.dirtyIndices()},_simpleSort:function(e){var t=this._zList,r=this.indices;function i(n,a){return t[a]-t[n]}e?Array.prototype.sort.call(r,i):jr.sort(r,i,0,r.length-1)},_progressiveQuickSort:function(e){var t=this._zList,r=this.indices;this._quickSort=this._quickSort||new jr,this._quickSort.step(r,function(i,n){return t[n]-t[i]},e)}},Mv=`@export ecgl.sdfSprite.vertex + +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; +uniform float elapsedTime : 0; + +attribute vec3 position : POSITION; + +#ifdef VERTEX_SIZE +attribute float size; +#else +uniform float u_Size; +#endif + +#ifdef VERTEX_COLOR +attribute vec4 a_FillColor: COLOR; +varying vec4 v_Color; +#endif + +#ifdef VERTEX_ANIMATION +attribute vec3 prevPosition; +attribute float prevSize; +uniform float percent : 1.0; +#endif + + +#ifdef POSITIONTEXTURE_ENABLED +uniform sampler2D positionTexture; +#endif + +varying float v_Size; + +void main() +{ + +#ifdef POSITIONTEXTURE_ENABLED + gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0); +#else + + #ifdef VERTEX_ANIMATION + vec3 pos = mix(prevPosition, position, percent); + #else + vec3 pos = position; + #endif + gl_Position = worldViewProjection * vec4(pos, 1.0); +#endif + +#ifdef VERTEX_SIZE +#ifdef VERTEX_ANIMATION + v_Size = mix(prevSize, size, percent); +#else + v_Size = size; +#endif +#else + v_Size = u_Size; +#endif + +#ifdef VERTEX_COLOR + v_Color = a_FillColor; + #endif + + gl_PointSize = v_Size; +} + +@end + +@export ecgl.sdfSprite.fragment + +uniform vec4 color: [1, 1, 1, 1]; +uniform vec4 strokeColor: [1, 1, 1, 1]; +uniform float smoothing: 0.07; + +uniform float lineWidth: 0.0; + +#ifdef VERTEX_COLOR +varying vec4 v_Color; +#endif + +varying float v_Size; + +uniform sampler2D sprite; + +@import clay.util.srgb + +void main() +{ + gl_FragColor = color; + + vec4 _strokeColor = strokeColor; + +#ifdef VERTEX_COLOR + gl_FragColor *= v_Color; + #endif + +#ifdef SPRITE_ENABLED + float d = texture2D(sprite, gl_PointCoord).r; + gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d); + + if (lineWidth > 0.0) { + float sLineWidth = lineWidth / 2.0; + + float outlineMaxValue0 = 0.5 + sLineWidth; + float outlineMaxValue1 = 0.5 + sLineWidth + smoothing; + float outlineMinValue0 = 0.5 - sLineWidth - smoothing; + float outlineMinValue1 = 0.5 - sLineWidth; + + if (d <= outlineMaxValue1 && d >= outlineMinValue0) { + float a = _strokeColor.a; + if (d <= outlineMinValue1) { + a = a * smoothstep(outlineMinValue0, outlineMinValue1, d); + } + else { + a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d); + } + gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a); + gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a; + } + } +#endif + +#ifdef SRGB_DECODE + gl_FragColor = sRGBToLinear(gl_FragColor); +#endif +} +@end`;var ua=Me.vec4;T.Shader.import(Mv);var Pv=T.Mesh.extend(function(){var e=new T.Geometry({dynamic:!0,attributes:{color:new T.Geometry.Attribute("color","float",4,"COLOR"),position:new T.Geometry.Attribute("position","float",3,"POSITION"),size:new T.Geometry.Attribute("size","float",1),prevPosition:new T.Geometry.Attribute("prevPosition","float",3),prevSize:new T.Geometry.Attribute("prevSize","float",1)}});Object.assign(e,Dv);var t=new T.Material({shader:T.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});t.enableTexture("sprite"),t.define("both","VERTEX_COLOR"),t.define("both","VERTEX_SIZE");var r=new T.Texture2D({image:document.createElement("canvas"),flipY:!1});return t.set("sprite",r),e.pick=this._pick.bind(this),{geometry:e,material:t,mode:T.Mesh.POINTS,sizeScale:1}},{_pick:function(e,t,r,i,n,a){var o=this._positionNDC;if(!!o)for(var s=r.viewport,l=2/s.width,h=2/s.height,u=this.geometry.vertexCount-1;u>=0;u--){var c;this.geometry.indices?c=this.geometry.indices[u]:c=u;var d=o[c*2],f=o[c*2+1],v=this.geometry.attributes.size.get(c)/this.sizeScale,p=v/2;if(e>d-p*l&&ef-p*h&&t2?(v=this._updateSymbolSprite(e,d,u,c),s.enableTexture("sprite")):s.disableTexture("sprite"),h.position.init(n-i);var p=[];if(f){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var _=vd(o),m=pd(o);T.parseColor(_,p),p[3]*=m,s.set({color:p,u_Size:u.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),h.size.init(n-i),h.color.init(n-i),this._originalOpacity=new Float32Array(n-i);for(var x=o.getLayout("points"),y=h.position.value,g=0;g1?(n[0]=r.maxSize,n[1]=r.maxSize/r.aspect):(n[1]=r.maxSize,n[0]=r.maxSize*r.aspect),n[0]=n[0]||1,n[1]=n[1]||1,(this._symbolType!==r.type||!Nv(this._symbolSize,n)||this._lineWidth!==t.lineWidth)&&(ls.createSymbolSprite(r.type,n,{fill:"#fff",lineWidth:t.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(n[0]/2,10)},this._spriteImageCanvas),ls.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),us,this._mesh.material.get("sprite").image),this._symbolType=r.type,this._symbolSize=n,this._lineWidth=t.lineWidth),this._spriteImageCanvas.width/r.maxSize*i},_updateMaterial:function(e,t){var r=e.get("blendMode")==="lighter"?T.additiveBlend:null,i=this._mesh.material;i.blend=r,i.set("lineWidth",t.lineWidth/us);var n=T.parseColor(t.stroke);i.set("strokeColor",n),i.transparent=!0,i.depthMask=!1,i.depthTest=!this.is2D,i.sortVertices=!this.is2D},_updateLabelBuilder:function(e,o,r){var i=e.getData(),n=this._mesh.geometry,a=n.attributes.position.value,o=this._startDataIndex,s=this._mesh.sizeScale;this._labelsBuilder.updateData(i,o,r),this._labelsBuilder.getLabelPosition=function(l,h,u){var c=(l-o)*3;return[a[c],a[c+1],a[c+2]]},this._labelsBuilder.getLabelDistance=function(l,h,u){var c=n.attributes.size.get(l-o)/s;return c/2+u},this._labelsBuilder.updateLabels()},_updateAnimation:function(e){T.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,e)},_updateHandler:function(e,t,r){var i=e.getData(),n=this._mesh,a=this,o=-1,s=e.coordinateSystem&&e.coordinateSystem.type==="cartesian3D",l;s&&(l=e.coordinateSystem.model),n.seriesIndex=e.seriesIndex,n.off("mousemove"),n.off("mouseout"),n.on("mousemove",function(h){var u=h.vertexIndex+a._startDataIndex;u!==o&&(this.highlightOnMouseover&&(this.downplay(i,o),this.highlight(i,u),this._labelsBuilder.updateLabels([u])),s&&r.dispatchAction({type:"grid3DShowAxisPointer",value:[i.get(e.coordDimToDataDim("x")[0],u),i.get(e.coordDimToDataDim("y")[0],u),i.get(e.coordDimToDataDim("z")[0],u)],grid3DIndex:l.componentIndex})),n.dataIndex=u,o=u},this),n.on("mouseout",function(h){var u=h.vertexIndex+a._startDataIndex;this.highlightOnMouseover&&(this.downplay(i,u),this._labelsBuilder.updateLabels()),o=-1,n.dataIndex=-1,s&&r.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:l.componentIndex})},this)},updateLayout:function(e,t,r){var i=e.getData();if(!!this._mesh){var n=this._mesh.geometry.attributes.position.value,a=i.getLayout("points");if(this.is2D)for(var o=0;othis._endDataIndex||tthis._endDataIndex||t 1.0 || v_Percent < 0.0) { + discard; + } + + float fade = v_Percent; + +#ifdef SRGB_DECODE + gl_FragColor = sRGBToLinear(color * v_Color); +#else + gl_FragColor = color * v_Color; +#endif + + @import ecgl.common.wireframe.fragmentMain + + if (v_Percent > (1.0 - v_SpotPercent)) { + gl_FragColor.rgb *= spotIntensity; + } + + gl_FragColor.a *= fade; +} + +@end`;var _s=Me.vec3;function Vv(e){return e>0?1:-1}T.Shader.import(Hv);const kv=T.Mesh.extend(function(){var e=new T.Material({shader:new T.Shader(T.Shader.source("ecgl.trail2.vertex"),T.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),t=new Er({dynamic:!0});return t.createAttribute("dist","float",1),t.createAttribute("distAll","float",1),t.createAttribute("start","float",1),{geometry:t,material:e,culling:!1,$ignorePicking:!0}},{updateData:function(e,t,r){var i=e.hostModel,n=this.geometry,a=i.getModel("effect"),o=a.get("trailWidth")*t.getDevicePixelRatio(),s=a.get("trailLength"),l=i.get("effect.constantSpeed"),h=i.get("effect.period")*1e3,u=l!=null;u?this.material.set("speed",l/1e3):this.material.set("period",h),this.material[u?"define":"undefine"]("vertex","CONSTANT_SPEED");var c=i.get("polyline");n.trailLength=s,this.material.set("trailLength",s),n.resetOffset(),["position","positionPrev","positionNext"].forEach(function(E){n.attributes[E].value=r.attributes[E].value});var d=["dist","distAll","start","offset","color"];d.forEach(function(E){n.attributes[E].init(n.vertexCount)}),n.indices=r.indices;var f=[],v=a.get("trailColor"),p=a.get("trailOpacity"),_=v!=null,m=p!=null;this.updateWorldTransform();var x=this.worldTransform.x.len(),y=this.worldTransform.y.len(),g=this.worldTransform.z.len(),S=0,w=0;e.each(function(E){var b=e.getItemLayout(E),L=m?p:ke(e,E),P=We(e,E);L==null&&(L=1),f=T.parseColor(_?v:P,f),f[3]*=L;for(var C=c?r.getPolylineVertexCount(b):r.getCubicCurveVertexCount(b[0],b[1],b[2],b[3]),R=0,I=[],M=[],B=S;BS&&(R+=_s.dist(I,M)),n.attributes.dist.set(B,R),_s.copy(M,I);w=Math.max(w,R);for(var H=Math.random()*(u?R:h),B=S;B0;this._updateSurfaceMesh(this._surfaceMesh,e,u,f);var v=this._surfaceMesh.material;f?(v.define("WIREFRAME_QUAD"),v.set("wireframeLineWidth",d),v.set("wireframeLineColor",T.parseColor(c.get("lineStyle.color")))):v.undefine("WIREFRAME_QUAD"),this._initHandler(e,r),this._updateAnimation(e)},_updateAnimation:function(e){T.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,e)},_createSurfaceMesh:function(){var e=new T.Mesh({geometry:new T.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new T.Material({shader:new T.Shader(T.Shader.source("ecgl.sm.depth.vertex"),T.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return e.geometry.createAttribute("barycentric","float",4),e.geometry.createAttribute("prevPosition","float",3),e.geometry.createAttribute("prevNormal","float",3),Object.assign(e.geometry,Za),e},_initHandler:function(e,t){var r=e.getData(),i=this._surfaceMesh,n=e.coordinateSystem;function a(s,l){for(var h=1/0,u=-1,c=[],d=0;d=0){var h=[];i.geometry.attributes.position.get(l,h);for(var u=n.pointToData(h),c=1/0,d=-1,f=[],v=0;v65535?Uint32Array:Uint16Array)((v-1)*(p-1)*6),w=function(Oe,Pt,Qe){Qe[1]=Oe*p+Pt,Qe[0]=Oe*p+Pt+1,Qe[3]=(Oe+1)*p+Pt+1,Qe[2]=(Oe+1)*p+Pt},E=!1;if(l){var b=[],L=[],P=0;m?u.init(n.vertexCount):u.value=null;for(var C=[[],[],[]],R=[],I=[],M=fr.create(),B=function(Oe,Pt,Qe){var Fn=Pt*3;return Qe[0]=Oe[Fn],Qe[1]=Oe[Fn+1],Qe[2]=Oe[Fn+2],Qe},H=new Float32Array(o.length),W=new Float32Array(o.length/3*4),U=0;U0;){if(Math.floor(s/u)===s/u)return[u,s/u];u--}return u=Math.floor(Math.sqrt(s)),[u,u]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function Jv(e){e.registerChartView(Qv),e.registerSeriesModel($v),e.registerLayout(function(t,r){t.eachSeriesByType("surface",function(i){var n=i.coordinateSystem;!n||n.type;var a=i.getData(),o=new Float32Array(3*a.count()),s=[NaN,NaN,NaN];if(n&&n.type==="cartesian3D"){var l=n.dimensions,h=l.map(function(u){return i.coordDimToDataDim(u)[0]});a.each(h,function(u,c,d,f){var v;a.hasValue(f)?v=n.dataToPoint([u,c,d]):v=s,o[f*3]=v[0],o[f*3+1]=v[1],o[f*3+2]=v[2]})}a.setLayout("points",o)})})}tt(Jv);function ys(e,t){for(var r=[],i=0;i "+d)),h++)}var f,v=Ni(e,{coordDimensions:["value"]});f=new Ft(v,r),f.initData(e);var p=new Ft(["value"],r);return p.initData(l,s),n&&n(f,p),Th({mainData:f,struct:a,structAttr:"graph",datas:{node:f,edge:p},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var _i=Dt.extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(e){_i.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(e){_i.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(e,t,r,i){var n=ii.getFormattedLabel(this,e,t,r,i);if(n==null){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];n=a.get(o,e)}return n},getInitialData:function(e,t){var r=e.edges||e.links||[],i=e.data||e.nodes||[],n=this;if(i&&r)return op(i,r,this,!0,a).data;function a(o,s){o.wrapMethod("getItemModel",function(c){const d=n._categoriesModels,f=c.getShallow("category"),v=d[f];return v&&(v.parentModel=c.parentModel,c.parentModel=v),c});const l=t.getModel([]).getModel;function h(c,d){const f=l.call(this,c,d);return f.resolveParentPath=u,f}s.wrapMethod("getItemModel",function(c){return c.resolveParentPath=u,c.getModel=h,c});function u(c){if(c&&(c[0]==="label"||c[1]==="label")){const d=c.slice();return c[0]==="label"?d[0]="edgeLabel":c[1]==="label"&&(d[1]="edgeLabel"),d}return c}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,r){if(r==="edge"){var i=this.getData(),n=this.getDataParams(e,r),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return o!=null&&l.push(o),s!=null&&l.push(s),l=Ur(l.join(" > ")),n.value&&(l+=" : "+Ur(n.value)),l}else return _i.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=(this.option.categories||[]).map(function(r){return r.value!=null?r:Object.assign({value:0},r)}),t=new Ft(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(r){return t.getItemModel(r,!0)})},setView:function(e){e.zoom!=null&&(this.option.zoom=e.zoom),e.offset!=null&&(this.option.offset=e.offset)},setNodePosition:function(e){for(var t=0;t65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,i){var n=Be.dist(e,t)+Be.dist(r,t)+Be.dist(i,r),a=1/(n+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?a*2:a*2+2},getCubicCurveTriangleCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?0:a*2},getLineVertexCount:function(){return this.getPolylineVertexCount(xs)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(xs)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?0:(t-1)*2},addCubicCurve:function(e,t,r,i,n,a){a==null&&(a=1);for(var o=e[0],s=e[1],l=t[0],h=t[1],u=r[0],c=r[1],d=i[0],f=i[1],v=this._getCubicCurveApproxStep(e,t,r,i),p=v*v,_=p*v,m=3*v,x=3*p,y=6*p,g=6*_,S=o-l*2+u,w=s-h*2+c,E=(l-u)*3-o+d,b=(h-c)*3-s+f,L=o,P=s,C=(l-o)*m+S*x+E*_,R=(h-s)*m+w*x+b*_,I=S*y+E*g,M=w*y+b*g,B=E*g,H=b*g,W=0,U=0,he=Math.ceil(1/v),V=new Float32Array((he+1)*3),V=[],ve=0,U=0;U1&&(L=C>0?Math.min(L,d):Math.max(L,d),P=R>0?Math.min(P,f):Math.max(P,f));this.addPolyline(V,n,a)},addLine:function(e,t,r,i){this.addPolyline([e,t],r,i)},addPolyline:function(){var e=Be.create(),t=Be.create(),r=Be.create(),i=Be.create(),n=[],a=[],o=[];return function(s,l,h,u,c){if(!!s.length){var d=typeof s[0]!="number";if(c==null&&(c=d?s.length:s.length/2),!(c<2)){u==null&&(u=0),h==null&&(h=1),this._itemVertexOffsets.push(this._vertexOffset);for(var f=d?typeof l[0]!="number":l.length/4===c,v=this.attributes.position,p=this.attributes.color,_=this.attributes.offset,m=this.attributes.normal,x=this.indices,y=this._vertexOffset,g,S=0;S1&&(v.copy(y,y-1),p.copy(y,y-1),y++);else{var b;if(S0){Be.sub(e,n,o),Be.sub(t,a,n),Be.normalize(e,e),Be.normalize(t,t),Be.add(i,e,t),Be.normalize(i,i);var L=h/2*Math.min(1/Be.dot(e,i),2);r[0]=-i[1],r[1]=i[0],b=L}else Be.sub(e,a,n),Be.normalize(e,e),r[0]=-e[1],r[1]=e[0],b=h/2}else Be.sub(e,n,o),Be.normalize(e,e),r[0]=-e[1],r[1]=e[0],b=h/2;m.set(y,r),m.set(y+1,r),_.set(y,b),_.set(y+1,-b),Be.copy(o,n),v.set(y,n),v.set(y+1,n),p.set(y,g),p.set(y+1,g),y+=2}if(this.useNativeLine)p.set(y,g),v.set(y,n),y++;else if(S>0){var P=this._faceOffset*3,x=this.indices;x[P]=y-4,x[P+1]=y-3,x[P+2]=y-2,x[P+3]=y-3,x[P+4]=y-1,x[P+5]=y-2,this._faceOffset+=2}}this._vertexOffset=y}}}}(),setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],i=e 0.0) { + float factor = 0.0; + if (preventOverlap) { + float d = sqrt(d2); + d = d - n0.w - n1.w; + if (d > 0.0) { + factor = scaling * n0.z * n1.z / (d * d); + } + else if (d < 0.0) { + factor = scaling * 100.0 * n0.z * n1.z; + } + } + else { + factor = scaling * n0.z * n1.z / d2; + } + force += dir * factor; + } + } + + vec2 dir = gravityCenter - n0.xy; + float d = 1.0; + if (!strongGravityMode) { + d = length(dir); + } + + force += dir * n0.z * gravity / (d + 1.0); + + gl_FragColor = vec4(force, 0.0, 1.0); +} +@end + +@export ecgl.forceAtlas2.updateEdgeAttraction.vertex + +attribute vec2 node1; +attribute vec2 node2; +attribute float weight; + +uniform sampler2D positionTex; +uniform float edgeWeightInfluence; +uniform bool preventOverlap; +uniform bool linLogMode; + +uniform vec2 windowSize: WINDOW_SIZE; + +varying vec2 v_Force; + +void main() { + + vec4 n0 = texture2D(positionTex, node1); + vec4 n1 = texture2D(positionTex, node2); + + vec2 dir = n1.xy - n0.xy; + float d = length(dir); + float w; + if (edgeWeightInfluence == 0.0) { + w = 1.0; + } + else if (edgeWeightInfluence == 1.0) { + w = weight; + } + else { + w = pow(weight, edgeWeightInfluence); + } + vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y); + vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y); + vec2 pos = node1 * scale * 2.0 - 1.0; + gl_Position = vec4(pos + offset, 0.0, 1.0); + gl_PointSize = 1.0; + + float factor; + if (preventOverlap) { + d = d - n1.w - n0.w; + } + if (d <= 0.0) { + v_Force = vec2(0.0); + return; + } + + if (linLogMode) { + factor = w * log(d) / d; + } + else { + factor = w; + } + v_Force = dir * factor; +} +@end + +@export ecgl.forceAtlas2.updateEdgeAttraction.fragment + +varying vec2 v_Force; + +void main() { + gl_FragColor = vec4(v_Force, 0.0, 0.0); +} +@end + +@export ecgl.forceAtlas2.calcWeightedSum.vertex + +attribute vec2 node; + +varying vec2 v_NodeUv; + +void main() { + + v_NodeUv = node; + gl_Position = vec4(0.0, 0.0, 0.0, 1.0); + gl_PointSize = 1.0; +} +@end + +@export ecgl.forceAtlas2.calcWeightedSum.fragment + +varying vec2 v_NodeUv; + +uniform sampler2D positionTex; +uniform sampler2D forceTex; +uniform sampler2D forcePrevTex; + +void main() { + vec2 force = texture2D(forceTex, v_NodeUv).rg; + vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg; + + float mass = texture2D(positionTex, v_NodeUv).z; + float swing = length(force - forcePrev) * mass; + float traction = length(force + forcePrev) * 0.5 * mass; + + gl_FragColor = vec4(swing, traction, 0.0, 0.0); +} +@end + +@export ecgl.forceAtlas2.calcGlobalSpeed + +uniform sampler2D globalSpeedPrevTex; +uniform sampler2D weightedSumTex; +uniform float jitterTolerence; + +void main() { + vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy; + float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x; + float globalSpeed = jitterTolerence * jitterTolerence + * weightedSum.y / weightedSum.x; + if (prevGlobalSpeed > 0.0) { + globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed; + } + gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0); +} +@end + +@export ecgl.forceAtlas2.updatePosition + +uniform sampler2D forceTex; +uniform sampler2D forcePrevTex; +uniform sampler2D positionTex; +uniform sampler2D globalSpeedTex; + +varying vec2 v_Texcoord; + +void main() { + vec2 force = texture2D(forceTex, v_Texcoord).xy; + vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy; + vec4 node = texture2D(positionTex, v_Texcoord); + + float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r; + float swing = length(force - forcePrev); + float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing)); + + float df = length(force); + if (df > 0.0) { + speed = min(df * speed, 10.0) / df; + + gl_FragColor = vec4(node.xy + speed * force, node.zw); + } + else { + gl_FragColor = node; + } +} +@end + +@export ecgl.forceAtlas2.edges.vertex +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; + +attribute vec2 node; +attribute vec4 a_Color : COLOR; +varying vec4 v_Color; + +uniform sampler2D positionTex; + +void main() +{ + gl_Position = worldViewProjection * vec4( + texture2D(positionTex, node).xy, -10.0, 1.0 + ); + v_Color = a_Color; +} +@end + +@export ecgl.forceAtlas2.edges.fragment +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; +varying vec4 v_Color; +void main() { + gl_FragColor = color * v_Color; +} +@end`;T.Shader.import(lp);var fa={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function Ge(e){var t={type:T.Texture.FLOAT,minFilter:T.Texture.NEAREST,magFilter:T.Texture.NEAREST};this._positionSourceTex=new T.Texture2D(t),this._positionSourceTex.flipY=!1,this._positionTex=new T.Texture2D(t),this._positionPrevTex=new T.Texture2D(t),this._forceTex=new T.Texture2D(t),this._forcePrevTex=new T.Texture2D(t),this._weightedSumTex=new T.Texture2D(t),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new T.Texture2D(t),this._globalSpeedPrevTex=new T.Texture2D(t),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new Ne({fragment:T.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new Ne({fragment:T.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new Ne({fragment:T.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new Ne({fragment:T.Shader.source("clay.compositor.output")});var r=function(i){i.blendEquation(i.FUNC_ADD),i.blendFunc(i.ONE,i.ONE)};this._edgeForceMesh=new T.Mesh({geometry:new T.Geometry({attributes:{node1:new T.Geometry.Attribute("node1","float",2),node2:new T.Geometry.Attribute("node2","float",2),weight:new T.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new T.Material({transparent:!0,shader:T.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:r,depthMask:!1,depthText:!1}),mode:T.Mesh.POINTS}),this._weightedSumMesh=new T.Mesh({geometry:new T.Geometry({attributes:{node:new T.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new T.Material({transparent:!0,shader:T.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:r,depthMask:!1,depthText:!1}),mode:T.Mesh.POINTS}),this._framebuffer=new qe({depthBuffer:!1}),this._dummyCamera=new T.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}Ge.prototype.updateOption=function(e){for(var t in fa)this[t]=fa[t];var r=this._nodes.length;if(r>5e4?this.jitterTolerence=10:r>5e3?this.jitterTolerence=1:this.jitterTolerence=.1,r>100?this.scaling=2:this.scaling=10,e)for(var t in fa)e[t]!=null&&(this[t]=e[t]);if(this.repulsionByDegree)for(var i=this._positionSourceTex.pixels,n=0;ne};Ge.prototype._swapTexture=function(){var e=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=e;var e=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=e;var e=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=e};Ge.prototype._initFromSource=function(e){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(e),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(e),e.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(e)};Ge.prototype._resize=function(e,t){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach(function(r){this[r].width=e,this[r].height=t,this[r].dirty()},this)};Ge.prototype.dispose=function(e){this._framebuffer.dispose(e),this._copyPass.dispose(e),this._nodeRepulsionPass.dispose(e),this._positionPass.dispose(e),this._globalSpeedPass.dispose(e),this._edgeForceMesh.geometry.dispose(e),this._weightedSumMesh.geometry.dispose(e),this._positionSourceTex.dispose(e),this._positionTex.dispose(e),this._positionPrevTex.dispose(e),this._forceTex.dispose(e),this._forcePrevTex.dispose(e),this._weightedSumTex.dispose(e),this._globalSpeedTex.dispose(e),this._globalSpeedPrevTex.dispose(e)};function hp(){var e={create:function(){return new Float32Array(2)},dist:function(l,h){var u=h[0]-l[0],c=h[1]-l[1];return Math.sqrt(u*u+c*c)},len:function(l){var h=l[0],u=l[1];return Math.sqrt(h*h+u*u)},scaleAndAdd:function(l,h,u,c){return l[0]=h[0]+u[0]*c,l[1]=h[1]+u[1]*c,l},scale:function(l,h,u){return l[0]=h[0]*u,l[1]=h[1]*u,l},add:function(l,h,u){return l[0]=h[0]+u[0],l[1]=h[1]+u[1],l},sub:function(l,h,u){return l[0]=h[0]-u[0],l[1]=h[1]-u[1],l},normalize:function(l,h){var u=h[0],c=h[1],d=u*u+c*c;return d>0&&(d=1/Math.sqrt(d),l[0]=h[0]*d,l[1]=h[1]*d),l},negate:function(l,h){return l[0]=-h[0],l[1]=-h[1],l},copy:function(l,h){return l[0]=h[0],l[1]=h[1],l},set:function(l,h,u){return l[0]=h,l[1]=u,l}};function t(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var r=t.prototype;r.beforeUpdate=function(){for(var l=0;l=l&&this.bbox[1]<=h&&this.bbox[3]>=h},r.setBBox=function(l,h,u,c){this.bbox[0]=l,this.bbox[1]=h,this.bbox[2]=u,this.bbox[3]=c,this.size=(u-l+c-h)/2},r._newSubRegion=function(){var l=this.subRegions[this.nSubRegions];return l||(l=new t,this.subRegions[this.nSubRegions]=l),this.nSubRegions++,l},r._addNodeToSubRegion=function(l){var h=this.findSubRegion(l.position[0],l.position[1]),u=this.bbox;if(!h){var c=(u[0]+u[2])/2,d=(u[1]+u[3])/2,f=(u[2]-u[0])/2,v=(u[3]-u[1])/2,p=l.position[0]>=c?1:0,_=l.position[1]>=d?1:0,h=this._newSubRegion();h.setBBox(p*f+u[0],_*v+u[1],(p+1)*f+u[0],(_+1)*v+u[1])}h.addNode(l)},r._updateCenterOfMass=function(l){this.centerOfMass==null&&(this.centerOfMass=new Float32Array(2));var h=this.centerOfMass[0]*this.mass,u=this.centerOfMass[1]*this.mass;h+=l.position[0]*l.mass,u+=l.position[1]*l.mass,this.mass+=l.mass,this.centerOfMass[0]=h/this.mass,this.centerOfMass[1]=u/this.mass};function i(){this.position=new Float32Array(2),this.force=e.create(),this.forcePrev=e.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function n(l,h){this.source=l,this.target=h,this.weight=1}function a(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new t,this.rootRegion.centerOfMass=e.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}var o=a.prototype;o.initNodes=function(l,h,u){var c=h.length;this.nodes.length=0;for(var d=typeof u<"u",f=0;f0&&(this.strongGravityMode?this.applyNodeStrongGravity(c):this.applyNodeGravity(c))}for(var h=0;h0&&(y=Math.min(y/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=y;for(var h=0;h0&&(g=Math.min(S*g,10)/S,e.scaleAndAdd(u.position,u.position,u.force,g))}},o.applyRegionToNodeRepulsion=function(){var l=e.create();return function(u,c){if(u.node)this.applyNodeToNodeRepulsion(u.node,c,!0);else{e.sub(l,c.position,u.centerOfMass);var d=l[0]*l[0]+l[1]*l[1];if(d>this.barnesHutTheta*u.size*u.size){var f=this.scaling*c.mass*u.mass/d;e.scaleAndAdd(c.force,c.force,l,f)}else for(var v=0;v0)v=this.scaling*u.mass*c.mass/(p*p);else if(p<0)v=this.scaling*100*u.mass*c.mass;else return}else v=this.scaling*u.mass*c.mass/f;e.scaleAndAdd(u.force,u.force,l,v),e.scaleAndAdd(c.force,c.force,l,-v)}}}}(),o.applyEdgeAttraction=function(){var l=e.create();return function(u){var c=u.source,d=u.target;e.sub(l,c.position,d.position);var f=e.len(l),v;this.edgeWeightInfluence===0?v=1:this.edgeWeightInfluence===1?v=u.weight:v=Math.pow(u.weight,this.edgeWeightInfluence);var p;this.preventOverlap&&(f=f-c.size-d.size,f<=0)||(this.linLogMode?p=-v*Math.log(f+1)/(f+1):p=-v,e.scaleAndAdd(c.force,c.force,l,p),e.scaleAndAdd(d.force,d.force,l,-p))}}(),o.applyNodeGravity=function(){var l=e.create();return function(h){e.sub(l,this.gravityCenter,h.position);var u=e.len(l);e.scaleAndAdd(h.force,h.force,l,this.gravity*h.mass/(u+1))}}(),o.applyNodeStrongGravity=function(){var l=e.create();return function(h){e.sub(l,this.gravityCenter,h.position),e.scaleAndAdd(h.force,h.force,l,this.gravity*h.mass)}}(),o.updateBBox=function(){for(var l=1/0,h=1/0,u=-1/0,c=-1/0,d=0;d5e4?t.jitterTolerence=10:a>5e3?t.jitterTolerence=1:t.jitterTolerence=.1,a>100?t.scaling=2:t.scaling=10,a>1e3?t.barnesHutOptimize=!0:t.barnesHutOptimize=!1,e)for(var r in xi)e[r]!=null&&(t[r]=e[r]);if(!t.gravityCenter){for(var o=[1/0,1/0],s=[-1/0,-1/0],l=0;le};yt.prototype.getNodePosition=function(e,t){if(t||(t=new Float32Array(this._nodes.length*2)),this._positionArr)for(var r=0;r0?1.1:.9,a=Math.max(Math.min(this._zoom*n,this.maxZoom),this.minZoom);n=a/this._zoom;var o=this._convertPos(r,i),s=(o.x-this._dx)*(n-1),l=(o.y-this._dy)*(n-1);this._dx-=s,this._dy-=l,this._zoom=a,this._needsUpdate=!0}}},dispose:function(){var e=this.zr;e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("globalout",this._mouseUpHandler),e.animation.off("frame",this._update)}});const cp=up,fp=`@export ecgl.lines2D.vertex + +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; + +attribute vec2 position: POSITION; +attribute vec4 a_Color : COLOR; +varying vec4 v_Color; + +#ifdef POSITIONTEXTURE_ENABLED +uniform sampler2D positionTexture; +#endif + +void main() +{ + gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); + + v_Color = a_Color; +} + +@end + +@export ecgl.lines2D.fragment + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; + +varying vec4 v_Color; + +void main() +{ + gl_FragColor = color * v_Color; +} +@end + + +@export ecgl.meshLines2D.vertex + +attribute vec2 position: POSITION; +attribute vec2 normal; +attribute float offset; +attribute vec4 a_Color : COLOR; + +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; +uniform vec4 viewport : VIEWPORT; + +varying vec4 v_Color; +varying float v_Miter; + +void main() +{ + vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0); + gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); + + p2.xy /= p2.w; + gl_Position.xy /= gl_Position.w; + + vec2 N = normalize(p2.xy - gl_Position.xy); + gl_Position.xy += N * offset / viewport.zw * 2.0; + + gl_Position.xy *= gl_Position.w; + + v_Color = a_Color; +} +@end + + +@export ecgl.meshLines2D.fragment + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; + +varying vec4 v_Color; +varying float v_Miter; + +void main() +{ + gl_FragColor = color * v_Color; +} + +@end`;var en=Me.vec2;T.Shader.import(fp);var dp=1;const vp=Mt.extend({type:"graphGL",__ecgl__:!0,init:function(e,t){this.groupGL=new T.Node,this.viewGL=new de("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new Tr(!0,t),this._forceEdgesMesh=new T.Mesh({material:new T.Material({shader:T.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new T.Geometry({attributes:{node:new T.Geometry.Attribute("node","float",2),color:new T.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:T.Mesh.LINES}),this._edgesMesh=new T.Mesh({material:new T.Material({shader:T.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new jl({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new cp({zr:t.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(e,t,r){this.groupGL.add(this._pointsBuilder.rootNode),this._model=e,this._api=r,this._initLayout(e,t,r),this._pointsBuilder.update(e,t,r),this._forceLayoutInstance instanceof Ge||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(e,r),this._control.off("update"),this._control.on("update",function(){r.dispatchAction({type:"graphGLRoam",seriesId:e.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)},this),this._control.setZoom(ee.firstNotNull(e.get("zoom"),1)),this._control.setOffset(e.get("offset")||[0,0]);var i=this._pointsBuilder.getPointsMesh();if(i.off("mousemove",this._mousemoveHandler),i.off("mouseout",this._mouseOutHandler,this),r.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,e.get("focusNodeAdjacency")){var n=e.get("focusNodeAdjacencyOn");n==="click"?r.getZr().on("click",this._clickHandler):n==="mouseover"&&(i.on("mousemove",this._mousemoveHandler,this),i.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?t!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._mouseOutHandler(e),this._lastMouseOverDataIndex=t}},_mouseOutHandler:function(e){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(e,t){var r=this._forceEdgesMesh.geometry,i=t.getEdgeData(),n=0,a=this._forceLayoutInstance,o=i.count()*2;r.attributes.node.init(o),r.attributes.color.init(o),i.each(function(s){var l=e[s];r.attributes.node.set(n,a.getNodeUV(l.node1)),r.attributes.node.set(n+1,a.getNodeUV(l.node2));var h=We(i,l.dataIndex),u=T.parseColor(h);u[3]*=ee.firstNotNull(ke(i,l.dataIndex),1),r.attributes.color.set(n,u),r.attributes.color.set(n+1,u),n+=2}),r.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,t=this._model.getEdgeData(),r=this._model.getData().getLayout("points");e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var i=[],n=[],a=["lineStyle","width"];this._originalEdgeColors=new Float32Array(t.count()*4),this._edgeIndicesMap=new Float32Array(t.count()),t.each(function(o){var s=t.graph.getEdgeByIndex(o),l=s.node1.dataIndex*2,h=s.node2.dataIndex*2;i[0]=r[l],i[1]=r[l+1],n[0]=r[h],n[1]=r[h+1];var u=We(t,s.dataIndex),c=T.parseColor(u);c[3]*=ee.firstNotNull(ke(t,s.dataIndex),1);var d=t.getItemModel(s.dataIndex),f=ee.firstNotNull(d.get(a),1)*this._api.getDevicePixelRatio();e.addLine(i,n,c,f);for(var v=0;v<4;v++)this._originalEdgeColors[s.dataIndex*4+v]=c[v];this._edgeIndicesMap[s.dataIndex]=o},this),e.dirty()},_updateForceNodesGeometry:function(e){for(var t=this._pointsBuilder.getPointsMesh(),r=[],i=0;i=v&&(h._syncNodePosition(e),f=0),a.getZr().refresh(),da(function(){p(_)})})}};da(function(){h._forceLayoutInstanceToDispose&&(h._forceLayoutInstanceToDispose.dispose(n.layer.renderer),h._forceLayoutInstanceToDispose=null),p(u)}),this._layouting=!0}}},stopLayout:function(e,t,r,i){i&&i.from!=null&&i.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&(!this.viewGL.layer||(i&&i.beforeLayout||(this._syncNodePosition(e),this._updateAfterLayout(e,t,r)),this._api.getZr().refresh(),this._layouting=!1)))},_syncNodePosition:function(e){var t=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);e.getData().setLayout("points",t),e.setNodePosition(t)},_updateAfterLayout:function(e,t,r){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(e,t,r),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(e,t,r,i){var n=this._model.getData();this._downplayAll();var a=i.dataIndex,o=n.graph,s=[],l=o.getNodeByIndex(a);s.push(l),l.edges.forEach(function(u){u.dataIndex<0||(u.node1!==l&&s.push(u.node1),u.node2!==l&&s.push(u.node2))},this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach(function(u){this._pointsBuilder.highlight(n,u.dataIndex)},this),this._pointsBuilder.updateLabels(s.map(function(u){return u.dataIndex}));var h=[];l.edges.forEach(function(u){u.dataIndex>=0&&(this._highlightEdge(u.dataIndex),h.push(u))},this),this._focusNodes=s,this._focusEdges=h},unfocusNodeAdjacency:function(e,t,r,i){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(e){var t=this._model.getEdgeData().getItemModel(e),r=T.parseColor(t.get("emphasis.lineStyle.color")||t.get("lineStyle.color")),i=ee.firstNotNull(t.get("emphasis.lineStyle.opacity"),t.get("lineStyle.opacity"),1);r[3]*=i,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],r)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach(function(e){this._pointsBuilder.downplay(this._model.getData(),e.dataIndex)},this),this._focusEdges&&this._focusEdges.forEach(function(e){this._downplayEdge(e.dataIndex)},this)},_downplayEdge:function(e){var t=this._getColor(e,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)},_setEdgeFade:function(){var e=[];return function(t,r){this._getColor(t,e),e[3]*=r,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)}}(),_getColor:function(e,t){for(var r=0;r<4;r++)t[r]=this._originalEdgeColors[e*4+r];return t},_fadeOutEdgesAll:function(e){var t=this._model.getData().graph;t.eachEdge(function(r){this._setEdgeFade(r.dataIndex,e)},this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(e,t){this.viewGL.setViewport(0,0,t.getWidth(),t.getHeight(),t.getDevicePixelRatio());for(var r=this.viewGL.camera,i=e.getData(),n=i.getLayout("points"),a=en.create(1/0,1/0),o=en.create(-1/0,-1/0),s=[],l=0;lr.left&&ur.top)){var c=Math.max(o[0]-a[0],10),d=c/t.getWidth()*t.getHeight();c*=1.4,d*=1.4,a[0]-=c*.2,r.left=a[0],r.top=h-d/2,r.bottom=h+d/2,r.right=c+a[0],r.near=0,r.far=100}},dispose:function(){var e=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(e),this.groupGL.removeAll(),this._layoutId=-1,this._pointsBuilder.dispose()},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function tn(e){return e instanceof Array||(e=[e,e]),e}function pp(e){e.registerChartView(vp),e.registerSeriesModel(sp),e.registerVisual(function(r){const i={};r.eachSeriesByType("graphGL",function(n){var a=n.getCategoriesData(),o=n.getData(),s={};a.each(function(l){var h=a.getName(l);s["ec-"+h]=l;var u=a.getItemModel(l),c=u.getModel("itemStyle").getItemStyle();c.fill||(c.fill=n.getColorFromPalette(h,i)),a.setItemVisual(l,"style",c);var d=["symbol","symbolSize","symbolKeepAspect"];for(let v=0;v65535?new Uint32Array(i*3):new Uint16Array(i*3))},addLine:function(e){var t=this._vertexOffset;this.attributes.position.set(t,[e[0],e[1],1]),this.attributes.position.set(t+1,[e[0],e[1],-1]),this.attributes.position.set(t+2,[e[0],e[1],2]),this.attributes.position.set(t+3,[e[0],e[1],-2]),this.setTriangleIndices(this._faceOffset++,[t,t+1,t+2]),this.setTriangleIndices(this._faceOffset++,[t+1,t+2,t+3]),this._vertexOffset+=4}});const gp=_p,yp=`@export ecgl.vfParticle.particle.fragment + +uniform sampler2D particleTexture; +uniform sampler2D spawnTexture; +uniform sampler2D velocityTexture; + +uniform float deltaTime; +uniform float elapsedTime; + +uniform float speedScaling : 1.0; + +uniform vec2 textureSize; +uniform vec4 region : [0, 0, 1, 1]; +uniform float firstFrameTime; + +varying vec2 v_Texcoord; + + +void main() +{ + vec4 p = texture2D(particleTexture, v_Texcoord); + bool spawn = false; + if (p.w <= 0.0) { + p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0)); + p.w -= firstFrameTime; + spawn = true; + } + vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy; + v = (v - 0.5) * 2.0; + p.z = length(v); + p.xy += v * deltaTime / 10.0 * speedScaling; + p.w -= deltaTime; + + if (spawn || p.xy != fract(p.xy)) { + p.z = 0.0; + } + p.xy = fract(p.xy); + + gl_FragColor = p; +} +@end + +@export ecgl.vfParticle.renderPoints.vertex + +#define PI 3.1415926 + +attribute vec2 texcoord : TEXCOORD_0; + +uniform sampler2D particleTexture; +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; + +uniform float size : 1.0; + +varying float v_Mag; +varying vec2 v_Uv; + +void main() +{ + vec4 p = texture2D(particleTexture, texcoord); + + if (p.w > 0.0 && p.z > 1e-5) { + gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0); + } + else { + gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); + } + + v_Mag = p.z; + v_Uv = p.xy; + + gl_PointSize = size; +} + +@end + +@export ecgl.vfParticle.renderPoints.fragment + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; +uniform sampler2D gradientTexture; +uniform sampler2D colorTexture; +uniform sampler2D spriteTexture; + +varying float v_Mag; +varying vec2 v_Uv; + +void main() +{ + gl_FragColor = color; +#ifdef SPRITETEXTURE_ENABLED + gl_FragColor *= texture2D(spriteTexture, gl_PointCoord); + if (color.a == 0.0) { + discard; + } +#endif +#ifdef GRADIENTTEXTURE_ENABLED + gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); +#endif +#ifdef COLORTEXTURE_ENABLED + gl_FragColor *= texture2D(colorTexture, v_Uv); +#endif +} + +@end + +@export ecgl.vfParticle.renderLines.vertex + +#define PI 3.1415926 + +attribute vec3 position : POSITION; + +uniform sampler2D particleTexture; +uniform sampler2D prevParticleTexture; + +uniform float size : 1.0; +uniform vec4 vp: VIEWPORT; +uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; + +varying float v_Mag; +varying vec2 v_Uv; + +@import clay.util.rand + +void main() +{ + vec4 p = texture2D(particleTexture, position.xy); + vec4 p2 = texture2D(prevParticleTexture, position.xy); + + p.xy = p.xy * 2.0 - 1.0; + p2.xy = p2.xy * 2.0 - 1.0; + + if (p.w > 0.0 && p.z > 1e-5) { + vec2 dir = normalize(p.xy - p2.xy); + vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size; + if (abs(position.z) == 2.0) { + gl_Position = vec4(p.xy + norm, 0.0, 1.0); + v_Uv = p.xy; + v_Mag = p.z; + } + else { + gl_Position = vec4(p2.xy + norm, 0.0, 1.0); + v_Mag = p2.z; + v_Uv = p2.xy; + } + gl_Position = worldViewProjection * gl_Position; + } + else { + gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); + } +} + +@end + +@export ecgl.vfParticle.renderLines.fragment + +uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; +uniform sampler2D gradientTexture; +uniform sampler2D colorTexture; + +varying float v_Mag; +varying vec2 v_Uv; + +void main() +{ + gl_FragColor = color; + #ifdef GRADIENTTEXTURE_ENABLED + gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); +#endif +#ifdef COLORTEXTURE_ENABLED + gl_FragColor *= texture2D(colorTexture, v_Uv); +#endif +} + +@end +`;N.import(yp);function xp(e){var t=document.createElement("canvas");t.width=t.height=e;var r=t.getContext("2d");return r.fillStyle="#fff",r.arc(e/2,e/2,e/2,0,Math.PI*2),r.fill(),t}var Ca=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new Q({type:X.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};Ca.prototype={constructor:Ca,init:function(){var e={type:X.FLOAT,minFilter:X.NEAREST,magFilter:X.NEAREST,useMipmap:!1};this._spawnTexture=new Q(e),this._particleTexture0=new Q(e),this._particleTexture1=new Q(e),this._frameBuffer=new qe({depthBuffer:!1}),this._particlePass=new Ne({fragment:N.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new Ne({fragment:N.source("clay.compositor.downsample")});var t=new vr({renderOrder:10,material:new St({shader:new N(N.source("ecgl.vfParticle.renderPoints.vertex"),N.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:vr.POINTS,geometry:new se({dynamic:!0,mainAttribute:"texcoord0"})}),r=new vr({renderOrder:10,material:new St({shader:new N(N.source("ecgl.vfParticle.renderLines.vertex"),N.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new gp,culling:!1}),i=new vr({material:new St({shader:new N(N.source("ecgl.color.vertex"),N.source("ecgl.color.fragment"))}),geometry:new Mn});i.material.enableTexture("diffuseMap"),this._particlePointsMesh=t,this._particleLinesMesh=r,this._lastFrameFullQuadMesh=i,this._camera=new Xr,this._thisFrameTexture=new Q,this._lastFrameTexture=new Q},setParticleDensity:function(e,t){for(var r=e*t,i=new Float32Array(r*4),n=0,a=this.particleLife,o=0;o0?e[e.length-1]:this._lastFrameTexture},setRegion:function(e){this._particlePass.setUniform("region",e)},resize:function(e,t){this._lastFrameTexture.width=e*this._supersampling,this._lastFrameTexture.height=t*this._supersampling,this._thisFrameTexture.width=e*this._supersampling,this._thisFrameTexture.height=t*this._supersampling,this._width=e,this._height=t},setParticleSize:function(e){var t=this._getParticleMesh();if(e<=2){t.material.disableTexture("spriteTexture"),t.material.transparent=!1;return}this._spriteTexture||(this._spriteTexture=new Q),(!this._spriteTexture.image||this._spriteTexture.image.width!==e)&&(this._spriteTexture.image=xp(e),this._spriteTexture.dirty()),t.material.transparent=!0,t.material.enableTexture("spriteTexture"),t.material.set("spriteTexture",this._spriteTexture),this._particleSize=e},setGradientTexture:function(e){var t=this._getParticleMesh().material;t[e?"enableTexture":"disableTexture"]("gradientTexture"),t.setUniform("gradientTexture",e)},setColorTextureImage:function(e,t){var r=this._getParticleMesh().material;r.setTextureImage("colorTexture",e,t,{flipY:!0})},setParticleType:function(e){this._particleType=e},clearFrame:function(e){var t=this._frameBuffer;t.attach(this._lastFrameTexture),t.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),t.unbind(e)},setSupersampling:function(e){this._supersampling=e,this.resize(this._width,this._height)},_updateDownsampleTextures:function(e,t){for(var r=this._downsampleTextures,i=Math.max(Math.floor(Math.log(this._supersampling/t.getDevicePixelRatio())/Math.log(2)),0),n=2,a=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s=359;s&&(n[0]>0&&(n[0]=0),a[0]1?(t.material.shader!==this._meshLinesShader&&t.material.attachShader(this._meshLinesShader),t.mode=T.Mesh.TRIANGLES):(t.material.shader!==this._nativeLinesShader&&t.material.attachShader(this._nativeLinesShader),t.mode=T.Mesh.LINES),r=r||0,i=i||n.count(),s.resetOffset();var u=0,c=0,d=[],f=[],v=[],p=[],_=[],m=.3,x=.7;function y(){f[0]=d[0]*x+p[0]*m-(d[1]-p[1])*a,f[1]=d[1]*x+p[1]*m-(p[0]-d[0])*a,v[0]=d[0]*m+p[0]*x-(d[1]-p[1])*a,v[1]=d[1]*m+p[1]*x-(p[0]-d[0])*a}if(o||a!==0)for(var g=r;g(Ah("data-v-cd68dd80"),e=e(),Lh(),e),Ip={class:"visualizing-demo2"},Op={class:"big-data-up"},Bp={class:"up-left"},Fp=lt(()=>O("div",{class:"up-center"},[O("span",null,"智慧农业系统平台")],-1)),Up={class:"up-right"},Gp={class:"el-dropdown-link"},zp={class:"ml15"},Hp=lt(()=>O("span",null,"消息",-1)),Vp={class:"ml15"},kp=lt(()=>O("span",null,"个人",-1)),Wp={class:"ml15"},Xp=lt(()=>O("span",null,"返回",-1)),Zp={class:"big-data-down"},jp={class:"big-data-down-left"},Yp={class:"flex-warp-item"},qp={class:"flex-warp-item-box"},$p=lt(()=>O("div",{class:"flex-title"},"天气预报",-1)),Kp={class:"flex-content flex-content-overflow"},Qp={class:"sky"},Jp=Ps('
多云转晴东南风
温馨提示:多云转晴,南风转北风风力3级
25°C
',2),em={class:"sky-dd"},tm={key:0},rm={key:1},im={class:"tip"},nm={class:"flex-warp-item"},am={class:"flex-warp-item-box"},om=lt(()=>O("div",{class:"flex-title"},"当前设备状态",-1)),sm={class:"flex-content flex-content-overflow"},lm={class:"d-states"},hm={class:"d-states-item"},um=lt(()=>O("div",{class:"d-states-flex"},[O("div",{class:"d-states-item-label"},"园区设备数"),O("div",{class:"d-states-item-value"},"99")],-1)),cm={class:"d-states-item"},fm=lt(()=>O("div",{class:"d-states-flex"},[O("div",{class:"d-states-item-label"},"预警设备数"),O("div",{class:"d-states-item-value"},"10")],-1)),dm={class:"d-states-item"},vm=lt(()=>O("div",{class:"d-states-flex"},[O("div",{class:"d-states-item-label"},"运行设备数"),O("div",{class:"d-states-item-value"},"20")],-1)),pm={class:"d-btn"},mm={class:"d-btn-item-center"},_m={class:"d-btn-item-eight"},gm={class:"flex-warp-item"},ym={class:"flex-warp-item-box"},xm=lt(()=>O("div",{class:"flex-title"},"近30天预警总数",-1)),Tm={class:"big-data-down-center"},wm={class:"big-data-down-center-one"},Sm=lt(()=>O("div",{id:"3DEarth"},null,-1)),Em={class:"text-box"},bm={class:"text"},Am={class:"big-data-down-center-two"},Lm={class:"flex-warp-item-box"},Cm=lt(()=>O("div",{class:"flex-title"},[O("span",null,"当前设备监测"),O("span",{class:"flex-title-small"},"单位:次")],-1)),Dm={class:"flex-content"},Mm={class:"flex-content-left"},Pm={class:"monitor-z-index"},Rm={class:"monitor-item-label"},Nm={class:"big-data-down-right"},Im={class:"flex-warp-item"},Om={class:"flex-warp-item-box"},Bm=lt(()=>O("div",{class:"flex-title"},[O("span",null,"近7天产品追溯扫码统计"),O("span",{class:"flex-title-small"},"单位:次")],-1)),Fm={class:"flex-warp-item"},Um={class:"flex-warp-item-box"},Gm=lt(()=>O("div",{class:"flex-title"},"当前任务统计",-1)),zm={class:"flex-content"},Hm=Ps('
25
待办任务
12
施肥
3
施药
5
农事
3
巡园
2
采集
',1),Vm={class:"flex-warp-item"},km={class:"flex-warp-item-box"},Wm=lt(()=>O("div",{class:"flex-title"},[O("span",null,"近7天投入品记录"),O("span",{class:"flex-title-small"},"单位:件")],-1)),Xm=Ms({name:"visualizingLinkDemo2"}),Zm=Ms({...Xm,setup(e){const t=Ar(),r=Ar(),i=Ar(),n=Ar(),a=Ar(),o=Ar(),s=Sh({time:{txt:"",fun:0},dropdownList:Lp,dropdownActive:"请选择",skyList:Cp,dBtnList:Dp,chartData4Index:0,dBtnActive:0,earth3DBtnList:Pp,chartData4List:Mp,myCharts:[]}),l=()=>{s.time.txt=oo(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"),s.time.fun=window.setInterval(()=>{s.time.txt=oo(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ")},1e3)},h=()=>{const m=br(t.value),x={tooltip:{trigger:"item"},series:[{name:"面积模式",type:"pie",radius:[10,60],center:["50%","50%"],roseType:"area",itemStyle:{borderRadius:5},data:[{name:"天气预警",value:100},{name:"病虫害预警",value:50},{name:"任务预警",value:130},{name:"监测设备预警",value:62}],label:{color:"#c0d1f2"}}]};m.setOption(x),s.myCharts.push(m)},u=()=>{const m=br(n.value),x={grid:{top:10,right:10,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["1月","2月","3月","4月","5月","6月"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{interval:0,color:"#c0d1f2",textStyle:{fontSize:10}}},yAxis:[{type:"value",axisLabel:{color:"#c0d1f2"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"温度",type:"line",smooth:!0,lineStyle:{width:0},areaStyle:{opacity:.8,color:new Un(0,0,0,1,[{offset:0,color:"rgba(128, 255, 165)"},{offset:1,color:"rgba(1, 191, 236)"}])},emphasis:{focus:"series"},data:[140,232,101,264,90,70]}]};m.setOption(x),s.myCharts.push(m)},c=()=>{const m=br(i.value),x={grid:{top:10,right:0,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{data:["1月","2月","3月","4月","5月","6月"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{color:"#c0d1f2"}},yAxis:[{type:"value",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#c0d1f2"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"预购队列",type:"line",data:[200,85,112,275,305,415],itemStyle:{color:"#16cfd0"}},{name:"最新成交价",type:"line",data:[50,85,22,155,170,25],itemStyle:{color:"#febb50"}}]};m.setOption(x),s.myCharts.push(m)},d=()=>{const m=br(o.value),x={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:20,right:50,bottom:0,left:80},xAxis:[{splitLine:{show:!1},type:"value",show:!1}],yAxis:[{splitLine:{show:!1},axisLine:{show:!1},type:"category",axisTick:{show:!1},inverse:!0,data:["施肥任务完成率","施药任务完成率","农事任务完成率"],axisLabel:{color:"#A7D6F4",fontSize:12}}],series:[{name:"标准化",type:"bar",barWidth:10,label:{show:!0,position:"right",color:"#A7D6F4",fontSize:12,distance:15,formatter:"{c}%"},itemStyle:{barBorderRadius:[0,20,20,0],color:new Un(1,0,0,0,[{offset:0,color:"#51C5FD"},{offset:1,color:"#005BB1"}],!1)},data:[75,100,60]}]};m.setOption(x),s.myCharts.push(m)},f=()=>{const m=br(r.value),x={grid:{top:10,right:0,bottom:20,left:30},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{data:["1月","2月","3月","4月","5月","6月"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.5)",width:1}},axisTick:{show:!1},axisLabel:{color:"#c0d1f2"}},yAxis:[{type:"value",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#c0d1f2"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}},{type:"value",position:"right",axisLine:{show:!1},axisLabel:{show:!0,formatter:"{value}%",textStyle:{color:"#16cfd0"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"销售水量",type:"line",yAxisIndex:1,smooth:!0,showAllSymbol:!0,symbol:"circle",itemStyle:{color:"#058cff"},lineStyle:{color:"#058cff"},areaStyle:{color:"rgba(5,140,255, 0.2)"},data:[4.2,3.8,4.8,3.5,2.9,2.8]},{name:"主营业务",type:"bar",barWidth:15,itemStyle:{normal:{color:new Un(0,0,0,1,[{offset:0,color:"#00FFE3"},{offset:1,color:"#4693EC"}])}},data:[4.2,3.8,4.8,3.5,2.9,2.8]}]};m.setOption(x),s.myCharts.push(m)},v=m=>{let x=document.getElementById("3DEarth");x.style.height=`${a.value.offsetHeight}px`;const y=br(x),g={globe:{baseTexture:Rp,heightTexture:Np,shading:"realistic",light:{ambient:{intensity:.4},main:{intensity:.4}},viewControl:{autoRotate:!0},postEffect:{enable:!0,bloom:{enable:!0}},globeRadius:m},series:{type:"lines3D",coordinateSystem:"globe",blendMode:"lighter",lineStyle:{width:1,color:"rgb(50, 50, 150)",opacity:.1},data:[]}};let S=function(){let w=105.18,E=Math.random()*360-180,b=37.51,L=Math.random()*180-90;return{coords:[[E,L],[w,b]],value:(Math.random()*3e3).toFixed(2)}};for(let w=0;w<150;w++)g.series.data=g.series.data.concat(S());y.setOption(g)},p=()=>{let m=document.body.clientWidth,x=0;m>=1920?x=100:m>1200&&m<1920?x=70:m>992&&m<1200?x=60:m>768&&m<992?x=40:m<768&&(x=20),v(x)},_=()=>{p(),window.addEventListener("resize",()=>{for(let m=0;m{wh.done(),l(),await h(),await u(),await c(),await f(),await d(),await _()}),bh(()=>{window.clearInterval(s.time.fun)}),(m,x)=>{const y=Gi("SvgIcon"),g=Gi("el-dropdown-item"),S=Gi("el-dropdown-menu"),w=Gi("el-dropdown");return ht(),pt("div",Ip,[O("div",Op,[O("div",Bp,[ut(y,{name:"ele-Timer",class:"mr5"}),O("span",null,Je(s.time.txt),1)]),Fp,O("div",Up,[ut(w,{size:"small"},{dropdown:zi(()=>[ut(S,null,{default:zi(()=>[(ht(!0),pt(Lr,null,Cr(s.dropdownList,(E,b)=>(ht(),Ch(g,{key:b},{default:zi(()=>[so(Je(E.label),1)]),_:2},1024))),128))]),_:1})]),default:zi(()=>[O("span",Gp,[so(Je(s.dropdownActive)+" ",1),ut(y,{name:"ele-ArrowDown",class:"el-icon--right"})])]),_:1}),O("div",zp,[ut(y,{name:"ele-Bell",class:"mr5"}),Hp]),O("div",Vp,[ut(y,{name:"ele-User",class:"mr5"}),kp]),O("div",Wp,[ut(y,{name:"ele-SwitchButton",class:"mr5"}),Xp])])]),O("div",Zp,[O("div",jp,[O("div",Yp,[O("div",qp,[$p,O("div",Kp,[O("div",Qp,[ut(y,{name:"ele-Sunny",class:"sky-left"}),Jp]),O("div",em,[(ht(!0),pt(Lr,null,Cr(s.skyList,(E,b)=>(ht(),pt("div",{class:Hi(["sky-dl",{"sky-dl-first":b===1}]),key:b},[O("div",null,Je(E.v1),1),E.type==="title"?(ht(),pt("div",tm,Je(E.v2),1)):(ht(),pt("div",rm,[ut(y,{name:E.v2},null,8,["name"])])),O("div",null,Je(E.v3),1),O("div",null,Je(E.v4),1),O("div",im,Je(E.v5),1),O("div",null,Je(E.v6),1),O("div",null,Je(E.v7),1)],2))),128))])])])]),O("div",nm,[O("div",am,[om,O("div",sm,[O("div",lm,[O("div",hm,[ut(y,{name:"ele-Odometer",class:"i-bg1"}),um]),O("div",cm,[ut(y,{name:"ele-FirstAidKit",class:"i-bg2"}),fm]),O("div",dm,[ut(y,{name:"ele-VideoPlay",class:"i-bg3"}),vm])]),O("div",pm,[(ht(!0),pt(Lr,null,Cr(s.dBtnList,(E,b)=>(ht(),pt("div",{class:Hi(["d-btn-item",{"d-btn-active":s.dBtnActive===b}]),key:b},[ut(y,{name:"ele-Money",class:"d-btn-item-left"}),O("div",mm,[O("div",null,Je(E.v1),1),O("div",null,Je(E.v2)+"|"+Je(E.v3),1)]),O("div",_m,Je(E.v4),1)],2))),128))])])])]),O("div",gm,[O("div",ym,[xm,O("div",{class:"flex-content",ref_key:"rightChartData1",ref:t},null,512)])])]),O("div",Tm,[O("div",wm,[O("div",{class:"big-data-down-center-one-content",ref_key:"rightChartData5",ref:a},[Sm,(ht(!0),pt(Lr,null,Cr(s.earth3DBtnList,(E,b)=>(ht(),pt("div",{class:Hi(E.topLevelClass),key:b},[(ht(),pt(Lr,null,Cr(4,L=>O("div",{class:"circle",key:L})),64)),O("div",Em,[ut(y,{name:E.icon,size:22},null,8,["name"]),O("div",bm,Je(E.label),1)])],2))),128))],512)]),O("div",Am,[O("div",Lm,[Cm,O("div",Dm,[O("div",Mm,[(ht(!0),pt(Lr,null,Cr(s.chartData4List,(E,b)=>(ht(),pt("div",{class:"monitor-item",key:b},[O("div",{class:Hi(["monitor-wave",{"monitor-active":b===s.chartData4Index}])},[O("div",Pm,[O("div",Rm,Je(E.label),1)])],2)]))),128))]),O("div",{class:"flex-content-right",ref_key:"rightChartData4",ref:n},null,512)])])])]),O("div",Nm,[O("div",Im,[O("div",Om,[Bm,O("div",{class:"flex-content",ref_key:"rightChartData3",ref:i},null,512)])]),O("div",Fm,[O("div",Um,[Gm,O("div",zm,[Hm,O("div",{ref_key:"rightChartData6",ref:o,class:"progress"},null,512)])])]),O("div",Vm,[O("div",km,[Wm,O("div",{class:"flex-content",ref_key:"rightChartData2",ref:r},null,512)])])])])])}}});const Jm=Dh(Zm,[["__scopeId","data-v-cd68dd80"]]);export{Jm as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.4a996dbe.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.4a996dbe.js new file mode 100644 index 00000000..205430a7 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.4a996dbe.js @@ -0,0 +1 @@ +import{h as a,j as s,k as t,l as e}from"./vue.bd0669ce.js";const o={class:"layout-padding"},i=e("div",{class:"layout-padding-auto layout-padding-view"},[e("div",{class:"w100 h100 flex"},[e("div",{class:"flex-margin color-primary"},"filtering-details 测试界面")])],-1),l=[i],n=a({name:"pagesFilteringDetails"}),p=a({...n,setup(c){return(d,r)=>(s(),t("div",o,l))}});export{p as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.beb5f2a7.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.beb5f2a7.js new file mode 100644 index 00000000..99ff4ee0 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.beb5f2a7.js @@ -0,0 +1 @@ +import{h as e,aq as n,j as i,k as l,l as a,C as t,u as o}from"./vue.bd0669ce.js";const c={class:"layout-padding"},d={class:"layout-padding-auto layout-padding-view"},r={class:"flex-margin color-primary"},_=a("div",null,"paramsCommonDetails",-1),u={class:"mt10 mb10"},m=e({name:"paramsCommonDetails"}),y=e({...m,setup(p){const s=n();return(h,f)=>(i(),l("div",c,[a("div",d,[a("div",r,[_,a("div",u,"路径:path: "+t(o(s).path),1),a("div",null,"参数:query: "+t(o(s).query),1)])])]))}});export{y as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.ec8b463a.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.ec8b463a.js new file mode 100644 index 00000000..2d1199e5 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details.ec8b463a.js @@ -0,0 +1 @@ +import{h as o,aq as n,j as i,k as c,l as a,C as t,u as e}from"./vue.bd0669ce.js";const l={class:"layout-padding"},d={class:"layout-padding-auto layout-padding-view"},r={class:"flex-margin color-primary"},_=a("div",null,"paramsDynamicDetails",-1),p={class:"mt10 mb10"},m=o({name:"paramsDynamicDetails"}),y=o({...m,setup(u){const s=n();return(h,f)=>(i(),c("div",l,[a("div",d,[a("div",r,[_,a("div",p,"路径:path: "+t(e(s).path),1),a("div",null,"参数:params: "+t(e(s).params),1)])])]))}});export{y as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/details1.00a7d66d.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details1.00a7d66d.js new file mode 100644 index 00000000..06d7a0c4 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/details1.00a7d66d.js @@ -0,0 +1 @@ +import{h as a,j as s,k as t,l as e}from"./vue.bd0669ce.js";const o={class:"layout-padding"},i=e("div",{class:"layout-padding-auto layout-padding-view"},[e("div",{class:"w100 h100 flex"},[e("div",{class:"flex-margin color-primary"},"测试界面")])],-1),n=[i],c=a({name:"pagesFilteringDetails1"}),p=a({...c,setup(l){return(d,_)=>(s(),t("div",o,n))}});export{p as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.4d312f94.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.4d312f94.js new file mode 100644 index 00000000..1a98d572 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.4d312f94.js @@ -0,0 +1 @@ +import{h as x,r as L,K as M,a9 as s,j as _,k as f,D as l,x as o,l as g,B as b,C as n,A}from"./vue.bd0669ce.js";const B={class:"system-dept-dialog-container"},z={key:0},R={class:"dialog-footer"},j=x({name:"systemDeptDialog"}),K=x({...j,emits:["refresh"],setup(E,{expose:V,emit:h}){const F=L(),e=M({ruleForm:{deptLevel:[],deptName:"",person:"",phone:"",email:"",sort:0,status:!0,describe:""},deptData:[],dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),D=(i,t)=>{i==="edit"?(t.deptLevel=["vueNextAdmin"],t.person="lyt",t.phone="12345678910",t.email="vueNextAdmin@123.com",e.ruleForm=t,e.dialog.title="修改部门",e.dialog.submitTxt="修 改"):(e.dialog.title="新增部门",e.dialog.submitTxt="新 增"),e.dialog.isShowDialog=!0,w()},u=()=>{e.dialog.isShowDialog=!1},N=()=>{u()},v=()=>{u(),h("refresh")},w=()=>{e.deptData.push({deptName:"vueNextAdmin",createTime:new Date().toLocaleString(),status:!0,sort:Math.random(),describe:"顶级部门",id:Math.random(),children:[{deptName:"IT外包服务",createTime:new Date().toLocaleString(),status:!0,sort:Math.random(),describe:"总部",id:Math.random()},{deptName:"资本控股",createTime:new Date().toLocaleString(),status:!0,sort:Math.random(),describe:"分部",id:Math.random()}]})};return V({openDialog:D}),(i,t)=>{const y=s("el-cascader"),d=s("el-form-item"),m=s("el-col"),r=s("el-input"),S=s("el-input-number"),T=s("el-switch"),U=s("el-row"),k=s("el-form"),p=s("el-button"),C=s("el-dialog");return _(),f("div",B,[l(C,{title:e.dialog.title,modelValue:e.dialog.isShowDialog,"onUpdate:modelValue":t[8]||(t[8]=a=>e.dialog.isShowDialog=a),width:"769px"},{footer:o(()=>[g("span",R,[l(p,{onClick:N,size:"default"},{default:o(()=>[b("取 消")]),_:1}),l(p,{type:"primary",onClick:v,size:"default"},{default:o(()=>[b(n(e.dialog.submitTxt),1)]),_:1})])]),default:o(()=>[l(k,{ref_key:"deptDialogFormRef",ref:F,model:e.ruleForm,size:"default","label-width":"90px"},{default:o(()=>[l(U,{gutter:35},{default:o(()=>[l(m,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(d,{label:"上级部门"},{default:o(()=>[l(y,{options:e.deptData,props:{checkStrictly:!0,value:"deptName",label:"deptName"},placeholder:"请选择部门",clearable:"",class:"w100",modelValue:e.ruleForm.deptLevel,"onUpdate:modelValue":t[0]||(t[0]=a=>e.ruleForm.deptLevel=a)},{default:o(({node:a,data:c})=>[g("span",null,n(c.deptName),1),a.isLeaf?A("",!0):(_(),f("span",z," ("+n(c.children.length)+") ",1))]),_:1},8,["options","modelValue"])]),_:1})]),_:1}),l(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"部门名称"},{default:o(()=>[l(r,{modelValue:e.ruleForm.deptName,"onUpdate:modelValue":t[1]||(t[1]=a=>e.ruleForm.deptName=a),placeholder:"请输入部门名称",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"负责人"},{default:o(()=>[l(r,{modelValue:e.ruleForm.person,"onUpdate:modelValue":t[2]||(t[2]=a=>e.ruleForm.person=a),placeholder:"请输入负责人",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"手机号"},{default:o(()=>[l(r,{modelValue:e.ruleForm.phone,"onUpdate:modelValue":t[3]||(t[3]=a=>e.ruleForm.phone=a),placeholder:"请输入手机号",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"邮箱"},{default:o(()=>[l(r,{modelValue:e.ruleForm.email,"onUpdate:modelValue":t[4]||(t[4]=a=>e.ruleForm.email=a),placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"排序"},{default:o(()=>[l(S,{modelValue:e.ruleForm.sort,"onUpdate:modelValue":t[5]||(t[5]=a=>e.ruleForm.sort=a),min:0,max:999,"controls-position":"right",placeholder:"请输入排序",class:"w100"},null,8,["modelValue"])]),_:1})]),_:1}),l(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"部门状态"},{default:o(()=>[l(T,{modelValue:e.ruleForm.status,"onUpdate:modelValue":t[6]||(t[6]=a=>e.ruleForm.status=a),"inline-prompt":"","active-text":"启","inactive-text":"禁"},null,8,["modelValue"])]),_:1})]),_:1}),l(m,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(d,{label:"部门描述"},{default:o(()=>[l(r,{modelValue:e.ruleForm.describe,"onUpdate:modelValue":t[7]||(t[7]=a=>e.ruleForm.describe=a),type:"textarea",placeholder:"请输入部门描述",maxlength:"150"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}});export{K as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.539a7bf5.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.539a7bf5.js new file mode 100644 index 00000000..665517f4 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.539a7bf5.js @@ -0,0 +1 @@ +import{h as F,r as L,K as z,a9 as s,j as b,k as g,D as e,x as a,l as x,B as V,C as n,A}from"./vue.bd0669ce.js";const R={class:"system-user-dialog-container"},j={key:0},E={class:"dialog-footer"},I=F({name:"systemUserDialog"}),G=F({...I,emits:["refresh"],setup(K,{expose:w,emit:D}){const h=L(),l=z({ruleForm:{userName:"",userNickname:"",roleSign:"",department:[],phone:"",email:"",sex:"",password:"",overdueTime:"",status:!0,describe:""},deptData:[],dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),N=(p,o)=>{p==="edit"?(l.ruleForm=o,l.dialog.title="修改用户",l.dialog.submitTxt="修 改"):(l.dialog.title="新增用户",l.dialog.submitTxt="新 增"),l.dialog.isShowDialog=!0,k()},i=()=>{l.dialog.isShowDialog=!1},v=()=>{i()},S=()=>{i(),D("refresh")},k=()=>{l.deptData.push({deptName:"vueNextAdmin",createTime:new Date().toLocaleString(),status:!0,sort:Math.random(),describe:"顶级部门",id:Math.random(),children:[{deptName:"IT外包服务",createTime:new Date().toLocaleString(),status:!0,sort:Math.random(),describe:"总部",id:Math.random()},{deptName:"资本控股",createTime:new Date().toLocaleString(),status:!0,sort:Math.random(),describe:"分部",id:Math.random()}]})};return w({openDialog:N}),(p,o)=>{const r=s("el-input"),d=s("el-form-item"),m=s("el-col"),u=s("el-option"),c=s("el-select"),U=s("el-cascader"),y=s("el-date-picker"),T=s("el-switch"),C=s("el-row"),M=s("el-form"),_=s("el-button"),B=s("el-dialog");return b(),g("div",R,[e(B,{title:l.dialog.title,modelValue:l.dialog.isShowDialog,"onUpdate:modelValue":o[11]||(o[11]=t=>l.dialog.isShowDialog=t),width:"769px"},{footer:a(()=>[x("span",E,[e(_,{onClick:v,size:"default"},{default:a(()=>[V("取 消")]),_:1}),e(_,{type:"primary",onClick:S,size:"default"},{default:a(()=>[V(n(l.dialog.submitTxt),1)]),_:1})])]),default:a(()=>[e(M,{ref_key:"userDialogFormRef",ref:h,model:l.ruleForm,size:"default","label-width":"90px"},{default:a(()=>[e(C,{gutter:35},{default:a(()=>[e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"账户名称"},{default:a(()=>[e(r,{modelValue:l.ruleForm.userName,"onUpdate:modelValue":o[0]||(o[0]=t=>l.ruleForm.userName=t),placeholder:"请输入账户名称",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"用户昵称"},{default:a(()=>[e(r,{modelValue:l.ruleForm.userNickname,"onUpdate:modelValue":o[1]||(o[1]=t=>l.ruleForm.userNickname=t),placeholder:"请输入用户昵称",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"关联角色"},{default:a(()=>[e(c,{modelValue:l.ruleForm.roleSign,"onUpdate:modelValue":o[2]||(o[2]=t=>l.ruleForm.roleSign=t),placeholder:"请选择",clearable:"",class:"w100"},{default:a(()=>[e(u,{label:"超级管理员",value:"admin"}),e(u,{label:"普通用户",value:"common"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"部门"},{default:a(()=>[e(U,{options:l.deptData,props:{checkStrictly:!0,value:"deptName",label:"deptName"},placeholder:"请选择部门",clearable:"",class:"w100",modelValue:l.ruleForm.department,"onUpdate:modelValue":o[3]||(o[3]=t=>l.ruleForm.department=t)},{default:a(({node:t,data:f})=>[x("span",null,n(f.deptName),1),t.isLeaf?A("",!0):(b(),g("span",j," ("+n(f.children.length)+") ",1))]),_:1},8,["options","modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"手机号"},{default:a(()=>[e(r,{modelValue:l.ruleForm.phone,"onUpdate:modelValue":o[4]||(o[4]=t=>l.ruleForm.phone=t),placeholder:"请输入手机号",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"邮箱"},{default:a(()=>[e(r,{modelValue:l.ruleForm.email,"onUpdate:modelValue":o[5]||(o[5]=t=>l.ruleForm.email=t),placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"性别"},{default:a(()=>[e(c,{modelValue:l.ruleForm.sex,"onUpdate:modelValue":o[6]||(o[6]=t=>l.ruleForm.sex=t),placeholder:"请选择",clearable:"",class:"w100"},{default:a(()=>[e(u,{label:"男",value:"男"}),e(u,{label:"女",value:"女"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"账户密码"},{default:a(()=>[e(r,{modelValue:l.ruleForm.password,"onUpdate:modelValue":o[7]||(o[7]=t=>l.ruleForm.password=t),placeholder:"请输入",type:"password",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"账户过期"},{default:a(()=>[e(y,{modelValue:l.ruleForm.overdueTime,"onUpdate:modelValue":o[8]||(o[8]=t=>l.ruleForm.overdueTime=t),type:"date",placeholder:"请选择",class:"w100"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[e(d,{label:"用户状态"},{default:a(()=>[e(T,{modelValue:l.ruleForm.status,"onUpdate:modelValue":o[9]||(o[9]=t=>l.ruleForm.status=t),"inline-prompt":"","active-text":"启","inactive-text":"禁"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[e(d,{label:"用户描述"},{default:a(()=>[e(r,{modelValue:l.ruleForm.describe,"onUpdate:modelValue":o[10]||(o[10]=t=>l.ruleForm.describe=t),type:"textarea",placeholder:"请输入用户描述",maxlength:"150"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}});export{G as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.5b38864a.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.5b38864a.js new file mode 100644 index 00000000..2a51809e --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.5b38864a.js @@ -0,0 +1 @@ +import{u as C}from"./vue-i18n.cjs.2a00fe88.js";import{u as T}from"./index.dbe87b05.js";import{L as N}from"./storage.b628b270.js";import{u as z}from"./index.3f2ce315.js";import{h as v,r as R,K as U,a9 as m,j as g,k as V,D as l,x as o,l as q,B as y,C as Z,u as i,F as $,Z as j,v as E}from"./vue.bd0669ce.js";import{_ as K}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";const M={class:"system-role-dialog-container"},P={class:"dialog-footer"},G=v({name:"systemRoleDialog"}),H=v({...G,emits:["refresh"],setup(J,{expose:D,emit:I}){const{t:s}=C(),w=T(),f=z(),p=R(),e=U({fromRules:{name:{required:!0,message:s("message.app.validateName"),pattern:/^[0-9a-zA-Z_.-]*$/,trigger:"blur"},desc:{required:!1,message:s("message.app.desc"),trigger:"blur"}},namespaceList:[],ruleForm:{namespaceId:0,id:0,name:"",desc:""},menuData:[],menuProps:{children:"children",label:"label"},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),h=async(n,a)=>{var d;(d=p.value)==null||d.clearValidate();let u=await w.getList({page:1,size:30});e.namespaceList=[],u.list.forEach(function(r){e.namespaceList.push({id:r.id,name:r.name})}),n==="update"?(e.ruleForm.name=a.name,e.ruleForm.desc=a.desc,e.ruleForm.id=a.id,e.ruleForm.namespaceId=a.namespaceId,e.dialog.title=s("message.app.editTitle"),e.dialog.submitTxt=s("message.commonBtn.update")):(e.ruleForm.name="",e.ruleForm.desc="",e.ruleForm.namespaceId=N.get("nid"),e.dialog.title=s("message.app.addTitle"),e.dialog.submitTxt=s("message.commonBtn.add")),e.dialog.type=n,e.dialog.isShowDialog=!0},b=()=>{e.dialog.isShowDialog=!1},S=()=>{b()},k=async n=>{!n||await n.validate(a=>{if(a)L();else return!1})},L=async()=>{e.dialog.type==="update"?await f.update({id:e.ruleForm.id,namespaceId:e.ruleForm.namespaceId,desc:e.ruleForm.desc,name:e.ruleForm.name}):await f.add({namespaceId:e.ruleForm.namespaceId,desc:e.ruleForm.desc,name:e.ruleForm.name}),b(),I("refresh")};return D({openDialog:h}),(n,a)=>{const u=m("el-option"),d=m("el-select"),r=m("el-form-item"),c=m("el-col"),_=m("el-row"),F=m("el-input"),A=m("el-form"),x=m("el-button"),B=m("el-dialog");return g(),V("div",M,[l(B,{title:e.dialog.title,modelValue:e.dialog.isShowDialog,"onUpdate:modelValue":a[4]||(a[4]=t=>e.dialog.isShowDialog=t),width:"769px"},{footer:o(()=>[q("span",P,[l(x,{onClick:S,size:"default"},{default:o(()=>[y("取 消")]),_:1}),l(x,{type:"primary",onClick:a[3]||(a[3]=t=>k(p.value)),size:"default"},{default:o(()=>[y(Z(e.dialog.submitTxt),1)]),_:1})])]),default:o(()=>[l(A,{ref_key:"appDialogFormRef",ref:p,model:e.ruleForm,"label-width":"90px",rules:e.fromRules,size:"default"},{default:o(()=>[l(_,null,{default:o(()=>[l(c,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(r,{label:i(s)("message.app.namespace"),prop:"namespaceName"},{default:o(()=>[l(d,{modelValue:e.ruleForm.namespaceId,"onUpdate:modelValue":a[0]||(a[0]=t=>e.ruleForm.namespaceId=t),class:"m-2",placeholder:i(s)("message.commonMsg.emptySelect")},{default:o(()=>[(g(!0),V($,null,j(e.namespaceList,t=>(g(),E(u,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),l(_,null,{default:o(()=>[l(c,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(r,{label:i(s)("message.app.name"),prop:"name"},{default:o(()=>[l(F,{modelValue:e.ruleForm.name,"onUpdate:modelValue":a[1]||(a[1]=t=>e.ruleForm.name=t),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(_,null,{default:o(()=>[l(c,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(r,{label:i(s)("message.app.desc"),prop:"desc"},{default:o(()=>[l(F,{modelValue:e.ruleForm.desc,"onUpdate:modelValue":a[2]||(a[2]=t=>e.ruleForm.desc=t),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}});const de=K(H,[["__scopeId","data-v-3db5772b"]]);export{de as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.96a11c08.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.96a11c08.js new file mode 100644 index 00000000..8c59ba74 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.96a11c08.js @@ -0,0 +1 @@ +import{_ as G}from"./preload-helper.101896b7.js";import{h as I,ap as H,r as Q,K as W,a9 as p,j as m,k as c,D as o,x as a,l as X,B as b,C as _,u as s,F as g,Z as P,y as f,E as y,v as x}from"./vue.bd0669ce.js";import{u as Y}from"./vue-i18n.cjs.2a00fe88.js";import{d as ee}from"./data.a7368d0d.js";import{a as le}from"./index.7c5dfd4e.js";import{_ as oe}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./index.3f2ce315.js";import"./request.386cf962.js";import"./storage.b628b270.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";import"./header.9390c1c5.js";const ae={class:"system-role-dialog-container"},re={class:"dialog-footer"},te=I({name:"systemRoleDialog"}),se=I({...te,emits:["refresh"],setup(ne,{expose:j,emit:C}){const F=H(()=>G(()=>import("./monaco.c8c1dd6a.js").then(r=>r.a),["assets/monaco.c8c1dd6a.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/monaco.82344604.css"])),{t:n}=Y(),U=le(),v=Q(),e=W({rowState:{inputProcessor:!0,kettleProcessor:!1,httpProcessor:!1,shellProcessor:!1,shardingParams:!1,paramsProcessor:!1},syncEditor:!1,shellEditor:{editorStyle:"width: 95%;height: 260px;",language:"shell"},paramsEditor:{editorStyle:"width: 95%;height: 260px;"},paramsExtEditor:{editorStyle:"width: 95%;height: 120px;"},shellType:[{value:"unix",label:"unix"},{value:"windows",label:"windows"}],processorType:[{value:"processor",label:"processor"},{value:"shell",label:"shell"},{value:"kettle",label:"kettle"},{value:"http",label:"http"}],contentType:[{value:"plaintext",label:"plaintext"},{value:"json",label:"json"},{value:"yaml",label:"yaml"},{value:"properties",label:"properties"}],fromRules:{},appList:[],ruleForm:{id:0,appId:0,processorType:"java",processorInfo:"",shellProcessorInfo:"",shellProcessorType:"unix",kettleProcessorInfo:"",kettleProcessorType:"unix",paramsType:"text",params:"",extendParamsType:"text",extendParams:"",id:0,name:""},menuData:[],menuProps:{children:"children",label:"label"},dialog:{isShowDialog:!1,type:"",title:""}}),D=async r=>{var t;(t=v.value)==null||t.clearValidate(),await A(r),e.syncEditor=!0,await O(r),e.syncEditor=!1,r.processorType=="shell"?(e.paramsEditor.editorStyle="width: 95%;height: 60px;",e.paramsExtEditor.editorStyle="width: 95%;height: 60px;"):(e.paramsEditor.editorStyle="width: 95%;height: 260px;",e.paramsExtEditor.editorStyle="width: 95%;height: 120px;"),e.dialog.title=n("message.job.job.executeJobTitle"),e.dialog.isShowDialog=!0},A=async r=>{e.appList=await ee(),e.ruleForm.appId=r.appId},w=()=>{e.dialog.isShowDialog=!1},B=()=>{w()},L=async r=>{!r||await r.validate(t=>{if(t)M();else return!1})},M=async()=>{await U.execute({id:e.ruleForm.id,params:e.ruleForm.params,extendParams:e.ruleForm.extendParams}),w(),C("refresh")},R=r=>{e.ruleForm.paramsType=r},J=r=>{e.ruleForm.extendParamsType=r},z=r=>{e.ruleForm.shellProcessorInfo=r},N=r=>{e.ruleForm.params=r},$=r=>{e.ruleForm.extendParams=r},O=async r=>{e.ruleForm.id=r.id,e.ruleForm.appId=r.appId,e.ruleForm.name=r.name,e.ruleForm.processorType=r.processorType,e.ruleForm.processorInfo=r.processorInfo;const t=r.processorType;t=="shell"?(e.rowState.inputProcessor=!1,e.rowState.shellProcessor=!0,e.rowState.kettleProcessor=!1,e.rowState.paramsProcessor=!1,e.rowState.httpProcessor=!1,e.ruleForm.shellProcessorInfo=r.shellProcessorInfo,e.ruleForm.shellProcessorType=r.shellProcessorType):t=="kettle"?(e.rowState.inputProcessor=!1,e.rowState.shellProcessor=!1,e.rowState.kettleProcessor=!0,e.rowState.paramsProcessor=!1,e.rowState.httpProcessor=!1,e.ruleForm.kettleProcessorType=r.kettleProcessorType,e.ruleForm.kettleProcessorInfo=r.kettleProcessorInfo):t=="http"?(e.rowState.inputProcessor=!1,e.rowState.shellProcessor=!1,e.rowState.kettleProcessor=!1,e.rowState.paramsProcessor=!1,e.rowState.httpProcessor=!0):(e.rowState.inputProcessor=!0,e.rowState.shellProcessor=!1,e.rowState.kettleProcessor=!1,e.rowState.paramsProcessor=!0,e.rowState.httpProcessor=!1,e.ruleForm.paramsType=r.paramsType,e.ruleForm.params=r.params,e.ruleForm.extendParamsType=r.extendParamsType,e.ruleForm.extendParams=r.extendParams)};return j({openDialog:D}),(r,t)=>{const T=p("el-input"),u=p("el-form-item"),d=p("el-col"),i=p("el-row"),V=p("el-option"),k=p("el-select"),h=p("el-radio"),S=p("el-radio-group"),K=p("el-form"),E=p("el-button"),Z=p("el-dialog");return m(),c("div",ae,[o(Z,{title:e.dialog.title,modelValue:e.dialog.isShowDialog,"onUpdate:modelValue":t[10]||(t[10]=l=>e.dialog.isShowDialog=l),width:"800"},{footer:a(()=>[X("span",re,[o(E,{onClick:B,size:"default"},{default:a(()=>[b(_(s(n)("message.commonBtn.cancel")),1)]),_:1}),o(E,{type:"primary",onClick:t[9]||(t[9]=l=>L(v.value)),size:"default"},{default:a(()=>[b(_(s(n)("message.commonBtn.confirm")),1)]),_:1})])]),default:a(()=>[o(K,{ref_key:"appDialogFormRef",ref:v,model:e.ruleForm,"label-width":"110px",rules:e.fromRules,size:"default"},{default:a(()=>[o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.name"),prop:"name"},{default:a(()=>[o(T,{modelValue:e.ruleForm.name,"onUpdate:modelValue":t[0]||(t[0]=l=>e.ruleForm.name=l),clearable:"",disabled:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),o(i,null,{default:a(()=>[o(d,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.application"),prop:"appId"},{default:a(()=>[o(k,{modelValue:e.ruleForm.appId,"onUpdate:modelValue":t[1]||(t[1]=l=>e.ruleForm.appId=l),class:"m-2",filterable:"",placeholder:s(n)("message.commonMsg.emptySelect"),style:{width:"100%"},disabled:""},{default:a(()=>[(m(!0),c(g,null,P(e.appList,l=>(m(),x(V,{key:l.id,label:l.label,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),o(d,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.processorType"),prop:"processorType"},{default:a(()=>[o(k,{modelValue:e.ruleForm.processorType,"onUpdate:modelValue":t[2]||(t[2]=l=>e.ruleForm.processorType=l),class:"m-2",placeholder:s(n)("message.commonMsg.emptySelect"),style:{width:"100%"},disabled:""},{default:a(()=>[(m(!0),c(g,null,P(e.processorType,l=>(m(),x(V,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),f(o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.processorInfo"),prop:"processorInfo"},{default:a(()=>[o(T,{modelValue:e.ruleForm.processorInfo,"onUpdate:modelValue":t[3]||(t[3]=l=>e.ruleForm.processorInfo=l),disabled:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[y,e.rowState.inputProcessor]]),f(o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.kettleCommand"),prop:"kettleProcessorInfo"},{default:a(()=>[o(T,{modelValue:e.ruleForm.kettleProcessorInfo,"onUpdate:modelValue":t[4]||(t[4]=l=>e.ruleForm.kettleProcessorInfo=l),disabled:""},null,8,["modelValue"])]),_:1},8,["label"]),o(S,{modelValue:e.ruleForm.kettleProcessorType,"onUpdate:modelValue":t[5]||(t[5]=l=>e.ruleForm.kettleProcessorType=l),style:{"margin-left":"110px"}},{default:a(()=>[(m(!0),c(g,null,P(e.shellType,l=>(m(),x(h,{key:l.value,label:l.label,disabled:""},{default:a(()=>[b(_(l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},512),[[y,e.rowState.kettleProcessor]]),f(o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.processorInfo"),prop:"shellProcessorInfo"},{default:a(()=>[o(s(F),{ref:"shellProcessorMonacoEditor",editorStyle:e.shellEditor.editorStyle,language:e.shellEditor.language,value:e.ruleForm.shellProcessorInfo,syncValue:e.syncEditor,readOnly:!0,onUpdateContent:z},null,8,["editorStyle","language","value","syncValue"])]),_:1},8,["label"]),o(S,{modelValue:e.ruleForm.shellProcessorType,"onUpdate:modelValue":t[6]||(t[6]=l=>e.ruleForm.shellProcessorType=l),style:{"margin-left":"110px"}},{default:a(()=>[(m(!0),c(g,null,P(e.shellType,l=>(m(),x(h,{key:l.value,label:l.label,disabled:""},{default:a(()=>[b(_(l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},512),[[y,e.rowState.shellProcessor]]),f(o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.paramsType"),prop:"paramsType"},{default:a(()=>[o(S,{modelValue:e.ruleForm.paramsType,"onUpdate:modelValue":t[7]||(t[7]=l=>e.ruleForm.paramsType=l)},{default:a(()=>[(m(!0),c(g,null,P(e.contentType,l=>(m(),x(h,{key:l.value,label:l.label,onClick:q=>R(l.value)},{default:a(()=>[b(_(l.value),1)]),_:2},1032,["label","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[y,e.rowState.paramsProcessor]]),f(o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.params"),prop:"params"},{default:a(()=>[o(s(F),{ref:"JobExecuteParamsMonacoEditor",editorStyle:e.paramsEditor.editorStyle,language:e.ruleForm.paramsType,value:e.ruleForm.params,syncValue:e.syncEditor,onUpdateContent:N},null,8,["editorStyle","language","value","syncValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[y,e.rowState.paramsProcessor]]),f(o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.extendParamsType"),prop:"extendParamsType"},{default:a(()=>[o(S,{modelValue:e.ruleForm.extendParamsType,"onUpdate:modelValue":t[8]||(t[8]=l=>e.ruleForm.extendParamsType=l)},{default:a(()=>[(m(!0),c(g,null,P(e.contentType,l=>(m(),x(h,{key:l.value,label:l.label,onClick:q=>J(l.value)},{default:a(()=>[b(_(l.value),1)]),_:2},1032,["label","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[y,e.rowState.paramsProcessor]]),f(o(i,null,{default:a(()=>[o(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:a(()=>[o(u,{label:s(n)("message.job.job.extendParams"),prop:"extendParams"},{default:a(()=>[o(s(F),{ref:"JobExecuteExtParamsMonacoEditor",editorStyle:e.paramsExtEditor.editorStyle,language:e.ruleForm.extendParamsType,value:e.ruleForm.extendParams,syncValue:e.syncEditor,onUpdateContent:$},null,8,["editorStyle","language","value","syncValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[y,e.rowState.paramsProcessor]])]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}});const Te=oe(se,[["__scopeId","data-v-f23fbc82"]]);export{Te as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.d4b69b79.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.d4b69b79.js new file mode 100644 index 00000000..61aa6b22 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.d4b69b79.js @@ -0,0 +1 @@ +import{u as C}from"./vue-i18n.cjs.2a00fe88.js";import{u as S}from"./index.dbe87b05.js";import{h as y,r as h,K as T,a9 as s,j as b,k as N,D as a,x as l,l as z,B as x,C as F,u,v as A,A as R}from"./vue.bd0669ce.js";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./storage.b628b270.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";const j={class:"system-role-dialog-container"},K={class:"dialog-footer"},M=y({name:"systemRoleDialog"}),P=y({...M,emits:["refresh"],setup($,{expose:V,emit:D}){const{t}=C(),d=S(),r=h(),e=T({ruleForm:{id:0,name:"",uniqueId:""},menuData:[],menuProps:{children:"children",label:"label"},rules:{name:{required:!0,message:t("message.commonMsg.emptyInput")+t("message.namespace.name"),trigger:"blur"}},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),v=(n,o)=>{var i;(i=r.value)==null||i.clearValidate(),n==="update"?(e.ruleForm.name=o.name,e.ruleForm.uniqueId=o.uniqueId,e.ruleForm.id=o.id,e.dialog.title=t("message.namespace.editTitle"),e.dialog.submitTxt=t("message.commonBtn.update")):(e.ruleForm.name="",e.ruleForm.uniqueId="",e.dialog.title=t("message.namespace.addTitle"),e.dialog.submitTxt=t("message.commonBtn.add")),e.dialog.type=n,e.dialog.isShowDialog=!0},p=()=>{e.dialog.isShowDialog=!1},I=()=>{p()},w=async n=>{!n||await n.validate(o=>{if(o)q();else return!1})},q=async()=>{e.dialog.type==="update"?await d.update({id:e.ruleForm.id,name:e.ruleForm.name}):await d.add({name:e.ruleForm.name}),p(),D("refresh")};return V({openDialog:v}),(n,o)=>{const i=s("el-input"),c=s("el-form-item"),_=s("el-col"),g=s("el-row"),k=s("el-form"),f=s("el-button"),B=s("el-dialog");return b(),N("div",j,[a(B,{title:e.dialog.title,modelValue:e.dialog.isShowDialog,"onUpdate:modelValue":o[3]||(o[3]=m=>e.dialog.isShowDialog=m),width:"769px"},{footer:l(()=>[z("span",K,[a(f,{onClick:I,size:"default"},{default:l(()=>[x(F(u(t)("message.commonBtn.cancel")),1)]),_:1}),a(f,{type:"primary",onClick:o[2]||(o[2]=m=>w(r.value)),size:"default"},{default:l(()=>[x(F(e.dialog.submitTxt),1)]),_:1})])]),default:l(()=>[a(k,{ref_key:"nsDialogFormRef",ref:r,model:e.ruleForm,rules:e.rules,size:"default"},{default:l(()=>[a(g,null,{default:l(()=>[a(_,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[a(c,{label:u(t)("message.namespace.name"),prop:"name"},{default:l(()=>[a(i,{modelValue:e.ruleForm.name,"onUpdate:modelValue":o[0]||(o[0]=m=>e.ruleForm.name=m),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),a(g,null,{default:l(()=>[e.dialog.type==="update"?(b(),A(_,{key:0,xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[a(c,{label:u(t)("message.namespace.uniqueId"),prop:"uniqueId"},{default:l(()=>[a(i,{modelValue:e.ruleForm.uniqueId,"onUpdate:modelValue":o[1]||(o[1]=m=>e.ruleForm.uniqueId=m),clearable:"",disabled:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})):R("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}});const ae=U(P,[["__scopeId","data-v-7dfca3e9"]]);export{ae as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.ded9ffab.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.ded9ffab.js new file mode 100644 index 00000000..7af7d44b --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.ded9ffab.js @@ -0,0 +1 @@ +import{h,r as $,K as E,a9 as s,j as r,k as x,D as e,x as l,l as F,B as V,C as P,F as j,Z as A,v as p}from"./vue.bd0669ce.js";const I={class:"system-dic-dialog-container"},K=F("span",{class:"ml10"},"字段",-1),L={class:"dialog-footer"},O=h({name:"systemDicDialog"}),q=h({...O,emits:["refresh"],setup(Y,{expose:y,emit:D}){const v=$(),o=E({ruleForm:{dicName:"",fieldName:"",status:!0,list:[],describe:""},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),w=(u,a)=>{u==="edit"?(a.fieldName==="SYS_UERINFO"?a.list=[{id:Math.random(),label:"sex",value:"1"},{id:Math.random(),label:"sex",value:"0"}]:a.list=[{id:Math.random(),label:"role",value:"admin"},{id:Math.random(),label:"role",value:"common"},{id:Math.random(),label:"roleName",value:"超级管理员"},{id:Math.random(),label:"roleName",value:"普通用户"}],o.ruleForm=a,o.dialog.title="修改字典",o.dialog.submitTxt="修 改"):(o.dialog.title="新增字典",o.dialog.submitTxt="新 增"),o.dialog.isShowDialog=!0},f=()=>{o.dialog.isShowDialog=!1},N=()=>{f()},C=()=>{f(),D("refresh")},U=()=>{o.ruleForm.list.push({id:Math.random(),label:"",value:""})},k=u=>{o.ruleForm.list.splice(u,1)};return y({openDialog:w}),(u,a)=>{const S=s("el-alert"),i=s("el-input"),m=s("el-form-item"),d=s("el-col"),M=s("el-switch"),z=s("ele-Plus"),g=s("el-icon"),c=s("el-button"),B=s("ele-Delete"),b=s("el-row"),R=s("el-form"),T=s("el-dialog");return r(),x("div",I,[e(T,{title:o.dialog.title,modelValue:o.dialog.isShowDialog,"onUpdate:modelValue":a[4]||(a[4]=t=>o.dialog.isShowDialog=t),width:"769px"},{footer:l(()=>[F("span",L,[e(c,{onClick:N,size:"default"},{default:l(()=>[V("取 消")]),_:1}),e(c,{type:"primary",onClick:C,size:"default"},{default:l(()=>[V(P(o.dialog.submitTxt),1)]),_:1})])]),default:l(()=>[e(S,{title:"半成品,交互过于复杂,请自行扩展!",type:"warning",closable:!1,class:"mb20"}),e(R,{ref_key:"dicDialogFormRef",ref:v,model:o.ruleForm,size:"default","label-width":"90px"},{default:l(()=>[e(b,{gutter:35},{default:l(()=>[e(d,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"字典名称"},{default:l(()=>[e(i,{modelValue:o.ruleForm.dicName,"onUpdate:modelValue":a[0]||(a[0]=t=>o.ruleForm.dicName=t),placeholder:"请输入字典名称",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"字段名"},{default:l(()=>[e(i,{modelValue:o.ruleForm.fieldName,"onUpdate:modelValue":a[1]||(a[1]=t=>o.ruleForm.fieldName=t),placeholder:"请输入字段名,拼接 ruleForm.list",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:l(()=>[e(m,{label:"字典状态"},{default:l(()=>[e(M,{modelValue:o.ruleForm.status,"onUpdate:modelValue":a[2]||(a[2]=t=>o.ruleForm.status=t),"inline-prompt":"","active-text":"启","inactive-text":"禁"},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:l(()=>[(r(!0),x(j,null,A(o.ruleForm.list,(t,n)=>(r(),p(b,{gutter:35,key:n},{default:l(()=>[e(d,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{prop:`list[${n}].label`},{label:l(()=>[n===0?(r(),p(c,{key:0,type:"primary",circle:"",size:"small",onClick:U},{default:l(()=>[e(g,null,{default:l(()=>[e(z)]),_:1})]),_:1})):(r(),p(c,{key:1,type:"danger",circle:"",size:"small",onClick:_=>k(n)},{default:l(()=>[e(g,null,{default:l(()=>[e(B)]),_:1})]),_:2},1032,["onClick"])),K]),default:l(()=>[e(i,{modelValue:t.label,"onUpdate:modelValue":_=>t.label=_,style:{width:"100%"},placeholder:"请输入字段名"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),e(d,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"属性",prop:`list[${n}].value`},{default:l(()=>[e(i,{modelValue:t.value,"onUpdate:modelValue":_=>t.value=_,style:{width:"100%"},placeholder:"请输入属性值"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024)]),_:2},1024))),128))]),_:1}),e(d,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:l(()=>[e(m,{label:"字典描述"},{default:l(()=>[e(i,{modelValue:o.ruleForm.describe,"onUpdate:modelValue":a[3]||(a[3]=t=>o.ruleForm.describe=t),type:"textarea",placeholder:"请输入字典描述",maxlength:"150"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}});export{q as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.e6bfded4.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.e6bfded4.js new file mode 100644 index 00000000..08d32989 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.e6bfded4.js @@ -0,0 +1 @@ +import{h as p,r as U,K as T,a9 as s,j as B,k as I,D as l,x as o,l as b,B as _,C as z,aE as R,aF as E}from"./vue.bd0669ce.js";import{_ as P}from"./_plugin-vue_export-helper.c27b6911.js";const j=n=>(R("data-v-f0f1c2e8"),n=n(),E(),n),K={class:"system-role-dialog-container"},M=j(()=>b("span",null,"角色标识",-1)),q={class:"dialog-footer"},A=p({name:"systemRoleDialog"}),G=p({...A,emits:["refresh"],setup(n,{expose:f,emit:g}){const x=U(),e=T({ruleForm:{roleName:"",roleSign:"",sort:0,status:!0,describe:""},menuData:[],menuProps:{children:"children",label:"label"},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),h=(u,t)=>{u==="edit"?(e.ruleForm=t,e.dialog.title="修改角色",e.dialog.submitTxt="修 改"):(e.dialog.title="新增角色",e.dialog.submitTxt="新 增"),e.dialog.isShowDialog=!0,F()},m=()=>{e.dialog.isShowDialog=!1},V=()=>{m()},D=()=>{m(),g("refresh")},F=()=>{e.menuData=[{id:1,label:"系统管理",children:[{id:11,label:"菜单管理",children:[{id:111,label:"菜单新增"},{id:112,label:"菜单修改"},{id:113,label:"菜单删除"},{id:114,label:"菜单查询"}]},{id:12,label:"角色管理",children:[{id:121,label:"角色新增"},{id:122,label:"角色修改"},{id:123,label:"角色删除"},{id:124,label:"角色查询"}]},{id:13,label:"用户管理",children:[{id:131,label:"用户新增"},{id:132,label:"用户修改"},{id:133,label:"用户删除"},{id:134,label:"用户查询"}]}]},{id:2,label:"权限管理",children:[{id:21,label:"前端控制",children:[{id:211,label:"页面权限"},{id:212,label:"页面权限"}]},{id:22,label:"后端控制",children:[{id:221,label:"页面权限"}]}]}]};return f({openDialog:h}),(u,t)=>{const r=s("el-input"),d=s("el-form-item"),i=s("el-col"),w=s("el-tooltip"),S=s("el-input-number"),y=s("el-switch"),v=s("el-tree"),k=s("el-row"),C=s("el-form"),c=s("el-button"),N=s("el-dialog");return B(),I("div",K,[l(N,{title:e.dialog.title,modelValue:e.dialog.isShowDialog,"onUpdate:modelValue":t[5]||(t[5]=a=>e.dialog.isShowDialog=a),width:"769px"},{footer:o(()=>[b("span",q,[l(c,{onClick:V,size:"default"},{default:o(()=>[_("取 消")]),_:1}),l(c,{type:"primary",onClick:D,size:"default"},{default:o(()=>[_(z(e.dialog.submitTxt),1)]),_:1})])]),default:o(()=>[l(C,{ref_key:"roleDialogFormRef",ref:x,model:e.ruleForm,size:"default","label-width":"90px"},{default:o(()=>[l(k,{gutter:35},{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"角色名称"},{default:o(()=>[l(r,{modelValue:e.ruleForm.roleName,"onUpdate:modelValue":t[0]||(t[0]=a=>e.ruleForm.roleName=a),placeholder:"请输入角色名称",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"角色标识"},{label:o(()=>[l(w,{effect:"dark",content:"用于 `router/route.ts` meta.roles",placement:"top-start"},{default:o(()=>[M]),_:1})]),default:o(()=>[l(r,{modelValue:e.ruleForm.roleSign,"onUpdate:modelValue":t[1]||(t[1]=a=>e.ruleForm.roleSign=a),placeholder:"请输入角色标识",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"排序"},{default:o(()=>[l(S,{modelValue:e.ruleForm.sort,"onUpdate:modelValue":t[2]||(t[2]=a=>e.ruleForm.sort=a),min:0,max:999,"controls-position":"right",placeholder:"请输入排序",class:"w100"},null,8,["modelValue"])]),_:1})]),_:1}),l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(d,{label:"角色状态"},{default:o(()=>[l(y,{modelValue:e.ruleForm.status,"onUpdate:modelValue":t[3]||(t[3]=a=>e.ruleForm.status=a),"inline-prompt":"","active-text":"启","inactive-text":"禁"},null,8,["modelValue"])]),_:1})]),_:1}),l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(d,{label:"角色描述"},{default:o(()=>[l(r,{modelValue:e.ruleForm.describe,"onUpdate:modelValue":t[4]||(t[4]=a=>e.ruleForm.describe=a),type:"textarea",placeholder:"请输入角色描述",maxlength:"150"},null,8,["modelValue"])]),_:1})]),_:1}),l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(d,{label:"菜单权限"},{default:o(()=>[l(v,{data:e.menuData,props:e.menuProps,"show-checkbox":"",class:"menu-data-tree"},null,8,["data","props"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}});const L=P(G,[["__scopeId","data-v-f0f1c2e8"]]);export{L as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.ec785c28.css b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.ec785c28.css new file mode 100644 index 00000000..da3e02b0 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.ec785c28.css @@ -0,0 +1 @@ +.system-role-dialog-container .menu-data-tree[data-v-f23fbc82]{width:100%;border:1px solid var(--el-border-color);border-radius:var(--el-input-border-radius, var(--el-border-radius-base));padding:5px} diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.f4e647c2.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.f4e647c2.js new file mode 100644 index 00000000..5689a0a3 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.f4e647c2.js @@ -0,0 +1 @@ +import{_ as E}from"./preload-helper.101896b7.js";import{h as S,ap as H,r as j,ar as O,K as $,o as q,a9 as s,j as _,k as b,D as e,x as l,l as U,B as r,C as V,A as c,F as D,u as G,v as J}from"./vue.bd0669ce.js";import{u as Q}from"./routesList.32d6bb58.js";import{i as W}from"./index.c3b4fd97.js";import"./vue-i18n.cjs.2a00fe88.js";import"./_commonjsHelpers.35101cd5.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";const X={class:"system-menu-dialog-container"},Y={key:0},Z={class:"dialog-footer"},ee=S({name:"systemMenuDialog"}),ne=S({...ee,emits:["refresh"],setup(le,{expose:T,emit:L}){const w=H(()=>E(()=>import("./index.ce143561.js"),["assets/index.ce143561.js","assets/preload-helper.101896b7.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/index.47b5c078.css"])),C=j(),v=Q(),{routesList:A}=O(v),o=$({ruleForm:{menuSuperior:[],menuType:"menu",name:"",component:"",isLink:!1,menuSort:0,path:"",redirect:"",meta:{title:"",icon:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isLink:"",isIframe:!1,roles:""},btnPower:""},menuData:[],dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),g=p=>{const a=[];return p.map(n=>{var m;n.title=W.global.t((m=n.meta)==null?void 0:m.title),a.push({...n}),n.children&&g(n.children)}),a},I=(p,a)=>{var n;p==="edit"?(a.menuType="menu",a.menuSort=Math.random(),a.component=(n=`${a.component} `.match(/\'(.+)\'/g))==null?void 0:n.join("").replace(/\'/g,""),o.ruleForm=a,o.dialog.title="修改菜单",o.dialog.submitTxt="修 改"):(o.dialog.title="新增菜单",o.dialog.submitTxt="新 增"),o.dialog.type=p,o.dialog.isShowDialog=!0},x=()=>{o.dialog.isShowDialog=!1},h=()=>{o.ruleForm.meta.isIframe?o.ruleForm.isLink=!0:o.ruleForm.isLink=!1},B=()=>{x()},P=()=>{x(),L("refresh")};return q(()=>{o.menuData=g(A.value)}),T({openDialog:I}),(p,a)=>{const n=s("el-cascader"),m=s("el-form-item"),u=s("el-col"),d=s("el-radio"),f=s("el-radio-group"),i=s("el-input"),F=s("el-option"),R=s("el-select"),K=s("el-input-number"),M=s("el-row"),N=s("el-form"),k=s("el-button"),z=s("el-dialog");return _(),b("div",X,[e(z,{title:o.dialog.title,modelValue:o.dialog.isShowDialog,"onUpdate:modelValue":a[17]||(a[17]=t=>o.dialog.isShowDialog=t),width:"769px"},{footer:l(()=>[U("span",Z,[e(k,{onClick:B,size:"default"},{default:l(()=>[r("取 消")]),_:1}),e(k,{type:"primary",onClick:P,size:"default"},{default:l(()=>[r(V(o.dialog.submitTxt),1)]),_:1})])]),default:l(()=>[e(N,{ref_key:"menuDialogFormRef",ref:C,model:o.ruleForm,size:"default","label-width":"80px"},{default:l(()=>[e(M,{gutter:35},{default:l(()=>[e(u,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:l(()=>[e(m,{label:"上级菜单"},{default:l(()=>[e(n,{options:o.menuData,props:{checkStrictly:!0,value:"path",label:"title"},placeholder:"请选择上级菜单",clearable:"",class:"w100",modelValue:o.ruleForm.menuSuperior,"onUpdate:modelValue":a[0]||(a[0]=t=>o.ruleForm.menuSuperior=t)},{default:l(({node:t,data:y})=>[U("span",null,V(y.title),1),t.isLeaf?c("",!0):(_(),b("span",Y," ("+V(y.children.length)+") ",1))]),_:1},8,["options","modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:l(()=>[e(m,{label:"菜单类型"},{default:l(()=>[e(f,{modelValue:o.ruleForm.menuType,"onUpdate:modelValue":a[1]||(a[1]=t=>o.ruleForm.menuType=t)},{default:l(()=>[e(d,{label:"menu"},{default:l(()=>[r("菜单")]),_:1}),e(d,{label:"btn"},{default:l(()=>[r("按钮")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"菜单名称"},{default:l(()=>[e(i,{modelValue:o.ruleForm.meta.title,"onUpdate:modelValue":a[2]||(a[2]=t=>o.ruleForm.meta.title=t),placeholder:"格式:message.router.xxx",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),o.ruleForm.menuType==="menu"?(_(),b(D,{key:0},[e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"路由名称"},{default:l(()=>[e(i,{modelValue:o.ruleForm.name,"onUpdate:modelValue":a[3]||(a[3]=t=>o.ruleForm.name=t),placeholder:"路由中的 name 值",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"路由路径"},{default:l(()=>[e(i,{modelValue:o.ruleForm.path,"onUpdate:modelValue":a[4]||(a[4]=t=>o.ruleForm.path=t),placeholder:"路由中的 path 值",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"重定向"},{default:l(()=>[e(i,{modelValue:o.ruleForm.redirect,"onUpdate:modelValue":a[5]||(a[5]=t=>o.ruleForm.redirect=t),placeholder:"请输入路由重定向",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"菜单图标"},{default:l(()=>[e(G(w),{placeholder:"请输入菜单图标",modelValue:o.ruleForm.meta.icon,"onUpdate:modelValue":a[6]||(a[6]=t=>o.ruleForm.meta.icon=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"组件路径"},{default:l(()=>[e(i,{modelValue:o.ruleForm.component,"onUpdate:modelValue":a[7]||(a[7]=t=>o.ruleForm.component=t),placeholder:"组件路径",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"链接地址"},{default:l(()=>[e(i,{modelValue:o.ruleForm.meta.isLink,"onUpdate:modelValue":a[8]||(a[8]=t=>o.ruleForm.meta.isLink=t),placeholder:"外链/内嵌时链接地址(http:xxx.com)",clearable:"",disabled:!o.ruleForm.isLink},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"权限标识"},{default:l(()=>[e(R,{modelValue:o.ruleForm.meta.roles,"onUpdate:modelValue":a[9]||(a[9]=t=>o.ruleForm.meta.roles=t),multiple:"",placeholder:"取角色管理",clearable:"",class:"w100"},{default:l(()=>[e(F,{label:"admin",value:"admin"}),e(F,{label:"common",value:"common"})]),_:1},8,["modelValue"])]),_:1})]),_:1})],64)):c("",!0),o.ruleForm.menuType==="btn"?(_(),J(u,{key:1,xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"权限标识"},{default:l(()=>[e(i,{modelValue:o.ruleForm.btnPower,"onUpdate:modelValue":a[10]||(a[10]=t=>o.ruleForm.btnPower=t),placeholder:"请输入权限标识",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})):c("",!0),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"菜单排序"},{default:l(()=>[e(K,{modelValue:o.ruleForm.menuSort,"onUpdate:modelValue":a[11]||(a[11]=t=>o.ruleForm.menuSort=t),"controls-position":"right",placeholder:"请输入排序",class:"w100"},null,8,["modelValue"])]),_:1})]),_:1}),o.ruleForm.menuType==="menu"?(_(),b(D,{key:2},[e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"是否隐藏"},{default:l(()=>[e(f,{modelValue:o.ruleForm.meta.isHide,"onUpdate:modelValue":a[12]||(a[12]=t=>o.ruleForm.meta.isHide=t)},{default:l(()=>[e(d,{label:!0},{default:l(()=>[r("隐藏")]),_:1}),e(d,{label:!1},{default:l(()=>[r("不隐藏")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"页面缓存"},{default:l(()=>[e(f,{modelValue:o.ruleForm.meta.isKeepAlive,"onUpdate:modelValue":a[13]||(a[13]=t=>o.ruleForm.meta.isKeepAlive=t)},{default:l(()=>[e(d,{label:!0},{default:l(()=>[r("缓存")]),_:1}),e(d,{label:!1},{default:l(()=>[r("不缓存")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"是否固定"},{default:l(()=>[e(f,{modelValue:o.ruleForm.meta.isAffix,"onUpdate:modelValue":a[14]||(a[14]=t=>o.ruleForm.meta.isAffix=t)},{default:l(()=>[e(d,{label:!0},{default:l(()=>[r("固定")]),_:1}),e(d,{label:!1},{default:l(()=>[r("不固定")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"是否外链"},{default:l(()=>[e(f,{modelValue:o.ruleForm.isLink,"onUpdate:modelValue":a[15]||(a[15]=t=>o.ruleForm.isLink=t),disabled:o.ruleForm.meta.isIframe},{default:l(()=>[e(d,{label:!0},{default:l(()=>[r("是")]),_:1}),e(d,{label:!1},{default:l(()=>[r("否")]),_:1})]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[e(m,{label:"是否内嵌"},{default:l(()=>[e(f,{modelValue:o.ruleForm.meta.isIframe,"onUpdate:modelValue":a[16]||(a[16]=t=>o.ruleForm.meta.isIframe=t),onChange:h},{default:l(()=>[e(d,{label:!0},{default:l(()=>[r("是")]),_:1}),e(d,{label:!1},{default:l(()=>[r("否")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})],64)):c("",!0)]),_:1})]),_:1},8,["model"])]),_:1},8,["title","modelValue"])])}}});export{ne as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.f948c2bd.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.f948c2bd.js new file mode 100644 index 00000000..bfc0b7cc --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/dialog.f948c2bd.js @@ -0,0 +1 @@ +import{h as C,r as Z,K as $,a9 as u,j as f,k as y,D as a,x as o,l as H,B as I,C as V,u as m,F as v,Z as R,y as K,E as P,v as S}from"./vue.bd0669ce.js";import{u as h}from"./vue-i18n.cjs.2a00fe88.js";import{u as G}from"./index.dbe87b05.js";import{L as O}from"./storage.b628b270.js";import{u as Q}from"./index.3f2ce315.js";import{a as W}from"./index.dbab376e.js";import{g as X}from"./header.9390c1c5.js";import{_ as Y}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";const ee={class:"system-role-dialog-container"},le={class:"dialog-footer"},ae=C({name:"systemRoleDialog"}),oe=C({...ae,emits:["refresh"],setup(re,{expose:k,emit:z}){const{t}=h(),j=G(),w=Q(),F=W(),g=Z(),e=$({rowState:{failConcurrency:!0},fromRules:{topic:{required:!1,message:t("message.app.validateName"),pattern:/^[0-9a-zA-Z_.-]*$/,trigger:"blur"},desc:{required:!0,message:t("message.app.desc"),trigger:"blur"}},namespaceList:[],appList:[],ruleForm:{namespaceId:"",appId:"",id:0,pid:0,cid:0,name:"",topic:"",description:"",processorInfo:"",failTopicEnable:!0,failTopicConcurrency:1,failRetryTimes:3,failRetryInterval:3,concurrency:1,blockingSize:8,executeTimeout:60},menuData:[],menuProps:{children:"children",label:"label"},dialog:{isShowDialog:!1,type:"",title:"",submitTxt:""}}),D=async(i,l)=>{var p;(p=g.value)==null||p.clearValidate(),await B(),await N(),i==="update"||i=="copy"?(e.ruleForm.name=l.name,e.ruleForm.pid=l.pid,e.ruleForm.cid=l.cid,e.ruleForm.description=l.description,e.ruleForm.id=l.id,e.ruleForm.namespaceId=l.namespaceId,e.ruleForm.appId=l.appId,e.ruleForm.processorInfo=l.processorInfo,e.ruleForm.topic=l.topic,e.ruleForm.failTopicEnable=l.failTopicEnable==1,e.ruleForm.failTopicConcurrency=l.failTopicConcurrency,e.ruleForm.failRetryTimes=l.failRetryTimes,e.ruleForm.failRetryInterval=l.failRetryInterval,e.ruleForm.concurrency=l.concurrency,e.ruleForm.blockingSize=l.blockingSize,e.ruleForm.executeTimeout=l.executeTimeout,e.dialog.submitTxt=t("message.commonBtn.update"),e.rowState.failConcurrency=e.ruleForm.failTopicEnable,i=="update"?e.dialog.title=t("message.delay.job.updateJobTitle"):e.dialog.title=t("message.delay.job.copyJobTitle")):(e.ruleForm.name="",e.ruleForm.description="",e.ruleForm.namespaceId="",e.ruleForm.appId="",e.ruleForm.processorInfo="",e.ruleForm.topic="",e.ruleForm.failTopicEnable=!0,e.ruleForm.failTopicConcurrency=1,e.ruleForm.failRetryTimes=3,e.ruleForm.failRetryInterval=3,e.ruleForm.concurrency=1,e.ruleForm.blockingSize=8,e.ruleForm.executeTimeout=60,e.ruleForm.namespaceId=O.get("nid"),e.dialog.title=t("message.delay.job.addJobTitle"),e.dialog.submitTxt=t("message.commonBtn.add"),e.rowState.failConcurrency=!0),e.dialog.type=i,e.dialog.isShowDialog=!0},_=()=>{e.dialog.isShowDialog=!1},E=()=>{_()},L=async i=>{!i||await i.validate(l=>{if(l)U();else return!1})},U=async()=>{let i=e.ruleForm.failTopicEnable?1:2;e.dialog.type==="update"?await F.update({id:e.ruleForm.id,pid:e.ruleForm.pid,cid:e.ruleForm.cid,namespaceId:e.ruleForm.namespaceId,description:e.ruleForm.description,appId:e.ruleForm.appId,topic:e.ruleForm.topic,processorInfo:e.ruleForm.processorInfo,failRetryTimes:e.ruleForm.failRetryTimes,failRetryInterval:e.ruleForm.failRetryTimes,concurrency:e.ruleForm.concurrency,blockingSize:e.ruleForm.blockingSize,failTopicEnable:i,failTopicConcurrency:e.ruleForm.failTopicConcurrency,name:e.ruleForm.name,executeTimeout:e.ruleForm.executeTimeout}):await F.add({namespaceId:e.ruleForm.namespaceId,description:e.ruleForm.description,appId:e.ruleForm.appId,topic:e.ruleForm.topic,processorInfo:e.ruleForm.processorInfo,failRetryTimes:e.ruleForm.failRetryTimes,failRetryInterval:e.ruleForm.failRetryTimes,concurrency:e.ruleForm.concurrency,blockingSize:e.ruleForm.blockingSize,name:e.ruleForm.name,failTopicEnable:i,failTopicConcurrency:e.ruleForm.failTopicConcurrency,executeTimeout:e.ruleForm.executeTimeout}),_(),z("refresh")},A=async i=>{e.rowState.failConcurrency=i},B=async()=>{let i=await j.getList({page:1,size:30});e.namespaceList=[],i.list.forEach(function(l){e.namespaceList.push({id:l.id,name:l.name})})},N=async()=>{let i=await w.getList({namespaceId:X(),page:1,size:30});e.appList=[],i.list.forEach(function(l){e.appList.push({id:l.id,label:l.name})})};return k({openDialog:D}),(i,l)=>{const p=u("el-option"),T=u("el-select"),s=u("el-form-item"),n=u("el-col"),d=u("el-row"),b=u("el-input"),J=u("el-switch"),c=u("el-input-number"),q=u("el-form"),x=u("el-button"),M=u("el-dialog");return f(),y("div",ee,[a(M,{title:e.dialog.title,modelValue:e.dialog.isShowDialog,"onUpdate:modelValue":l[15]||(l[15]=r=>e.dialog.isShowDialog=r),width:"769px"},{footer:o(()=>[H("span",le,[a(x,{type:"primary",onClick:l[14]||(l[14]=r=>L(g.value)),size:"default"},{default:o(()=>[I(V(m(t)("message.commonBtn.confirm")),1)]),_:1}),a(x,{onClick:E,size:"default"},{default:o(()=>[I(V(m(t)("message.commonBtn.cancel")),1)]),_:1})])]),default:o(()=>[a(q,{ref_key:"appDialogFormRef",ref:g,model:e.ruleForm,"label-width":"120px",rules:e.fromRules,size:"default"},{default:o(()=>[a(d,null,{default:o(()=>[a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.app.namespace"),prop:"namespaceName"},{default:o(()=>[a(T,{modelValue:e.ruleForm.namespaceId,"onUpdate:modelValue":l[0]||(l[0]=r=>e.ruleForm.namespaceId=r),class:"m-2",placeholder:m(t)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(f(!0),y(v,null,R(e.namespaceList,r=>(f(),S(p,{key:r.id,label:r.name,value:r.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.appName"),prop:"appId"},{default:o(()=>[a(T,{modelValue:e.ruleForm.appId,"onUpdate:modelValue":l[1]||(l[1]=r=>e.ruleForm.appId=r),class:"m-2",filterable:"",placeholder:m(t)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(f(!0),y(v,null,R(e.appList,r=>(f(),S(p,{key:r.id,label:r.label,value:r.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),a(d,null,{default:o(()=>[a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.name"),prop:"name"},{default:o(()=>[a(b,{modelValue:e.ruleForm.name,"onUpdate:modelValue":l[2]||(l[2]=r=>e.ruleForm.name=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),a(d,null,{default:o(()=>[a(n,{xs:20,sm:20,md:20,lg:20,xl:20,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.description"),prop:"description"},{default:o(()=>[a(b,{modelValue:e.ruleForm.description,"onUpdate:modelValue":l[3]||(l[3]=r=>e.ruleForm.description=r),type:"textarea",rows:"3",clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),a(d,null,{default:o(()=>[a(n,{xs:20,sm:20,md:20,lg:20,xl:20,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.topic"),prop:"topic"},{default:o(()=>[a(b,{modelValue:e.ruleForm.topic,"onUpdate:modelValue":l[4]||(l[4]=r=>e.ruleForm.topic=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),a(d,null,{default:o(()=>[a(n,{xs:20,sm:20,md:20,lg:20,xl:20,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.processorInfo"),prop:"processorInfo"},{default:o(()=>[a(b,{modelValue:e.ruleForm.processorInfo,"onUpdate:modelValue":l[5]||(l[5]=r=>e.ruleForm.processorInfo=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),a(d,null,{default:o(()=>[a(n,{xs:20,sm:20,md:20,lg:20,xl:20,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.failTopicEnable"),prop:"failTopicEnable"},{default:o(()=>[a(J,{modelValue:e.ruleForm.failTopicEnable,"onUpdate:modelValue":l[6]||(l[6]=r=>e.ruleForm.failTopicEnable=r),"inline-prompt":"","active-text":"on","inactive-text":"off",onChange:l[7]||(l[7]=r=>A(r))},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),K(a(d,null,{default:o(()=>[a(n,{xs:20,sm:20,md:20,lg:20,xl:20,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.failTopicConcurrency"),prop:"failTopicConcurrency"},{default:o(()=>[a(c,{modelValue:e.ruleForm.failTopicConcurrency,"onUpdate:modelValue":l[8]||(l[8]=r=>e.ruleForm.failTopicConcurrency=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[P,e.rowState.failConcurrency]]),a(d,null,{default:o(()=>[a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.failRetryTimes"),prop:"failRetryTimes"},{default:o(()=>[a(c,{modelValue:e.ruleForm.failRetryTimes,"onUpdate:modelValue":l[9]||(l[9]=r=>e.ruleForm.failRetryTimes=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.failRetryInterval"),prop:"failRetryInterval"},{default:o(()=>[a(c,{modelValue:e.ruleForm.failRetryInterval,"onUpdate:modelValue":l[10]||(l[10]=r=>e.ruleForm.failRetryInterval=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),a(d,null,{default:o(()=>[a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.concurrency"),prop:"concurrency"},{default:o(()=>[a(c,{modelValue:e.ruleForm.concurrency,"onUpdate:modelValue":l[11]||(l[11]=r=>e.ruleForm.concurrency=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.blockingSize"),prop:"blockingSize"},{default:o(()=>[a(c,{modelValue:e.ruleForm.blockingSize,"onUpdate:modelValue":l[12]||(l[12]=r=>e.ruleForm.blockingSize=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),a(d,null,{default:o(()=>[a(n,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[a(s,{label:m(t)("message.delay.job.executeTimeout"),prop:"executeTimeout"},{default:o(()=>[a(c,{modelValue:e.ruleForm.executeTimeout,"onUpdate:modelValue":l[13]||(l[13]=r=>e.ruleForm.executeTimeout=r),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}});const xe=Y(oe,[["__scopeId","data-v-c73da79c"]]);export{xe as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer-standalone.fa366cb0.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer-standalone.fa366cb0.js new file mode 100644 index 00000000..236139d5 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer-standalone.fa366cb0.js @@ -0,0 +1,2 @@ +import{_ as V}from"./preload-helper.101896b7.js";import{h as S,ap as D,K as h,a9 as r,j as L,v as k,x as s,D as a,u as d,B as p,C as u,l as w,y as C,E}from"./vue.bd0669ce.js";import{u as B}from"./vue-i18n.cjs.2a00fe88.js";import{u as z}from"./index.7c5dfd4e.js";import{e as b}from"./data.a7368d0d.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./storage.b628b270.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";import"./index.3f2ce315.js";import"./header.9390c1c5.js";const N={class:"system-role-dialog-container",style:{padding:"10px",height:"100%"}},P={style:{"text-align":"center",height:"30px"}},J=S({name:"jobDrawerName"}),se=S({...J,setup(M,{expose:y}){const v=D(()=>V(()=>import("./monaco.c8c1dd6a.js").then(t=>t.a),["assets/monaco.c8c1dd6a.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/monaco.82344604.css"])),{t:c}=B(),T=z(),e=h({loadingShow:!1,closeStatus:!1,editor:{editorStyle:"width: 100%;height: 100%;",language:"shell",value:""},drawer:{isShow:!1},descriptions:{column:6,workerAddress:"",createTime:"",completeTime:"",statusTag:"",statusLabel:"Default"}}),i=h({timerId:0,time:0,counter:0}),I=async t=>{e.descriptions.workerAddress=t.workerAddress,e.descriptions.createTime=t.createTime,e.descriptions.completeTime=t.completeTime,e.descriptions.statusTag=b(t.status).tag,e.descriptions.statusLabel=b(t.status).label,e.drawer.isShow=!0,e.editor.value="",i.time=0,e.closeStatus=!1,e.loadingShow=!1,await g(t,2)},g=async(t,l)=>{if(e.closeStatus)return;let n=50,o=await T.getProcessorList({jobId:t.jobId,jobInstanceId:t.id,executeType:t.executeType,status:t.status,time:i.time,loading:l,size:n}),m="";if(o.list.forEach(function(_){m+=_+` +`}),e.editor.value+=m,e.loadingShow=!1,o.time>0&&(i.time=o.time),o.complete!=1){if(o.list.length>0){e.loadingShow=!0,setTimeout(async()=>{await g(t,2)},1e3);return}e.loadingShow=!0,i.timerId=setInterval(async()=>{clearInterval(i.timerId),await g(t,1)},3e3)}},x=()=>{e.closeStatus=!0,clearInterval(i.timerId)};return y({openDrawer:I}),(t,l)=>{const n=r("el-descriptions-item"),o=r("el-tag"),m=r("el-descriptions"),_=r("Loading"),j=r("el-icon"),A=r("el-drawer");return L(),k(A,{modelValue:e.drawer.isShow,"onUpdate:modelValue":l[0]||(l[0]=f=>e.drawer.isShow=f),direction:"rtl",size:"80%",onClose:l[1]||(l[1]=f=>x())},{header:s(()=>[a(m,{style:{"margin-top":"10px"},column:e.descriptions.column},{default:s(()=>[a(n,{label:d(c)("message.job.instance.workerAddress"),width:"260px",align:"left"},{default:s(()=>[p(u(e.descriptions.workerAddress),1)]),_:1},8,["label"]),a(n,{label:d(c)("message.job.instance.createTime"),width:"260px",align:"left"},{default:s(()=>[p(u(e.descriptions.createTime),1)]),_:1},8,["label"]),a(n,{label:d(c)("message.job.instance.completeTime"),width:"260px",align:"left"},{default:s(()=>[p(u(e.descriptions.completeTime),1)]),_:1},8,["label"]),a(n,{label:d(c)("message.job.instance.status"),width:"260px",align:"left"},{default:s(()=>[a(o,{class:"ml-2",type:e.descriptions.statusTag,size:"small"},{default:s(()=>[p(u(e.descriptions.statusLabel),1)]),_:1},8,["type"])]),_:1},8,["label"])]),_:1},8,["column"])]),default:s(()=>[w("div",N,[a(d(v),{ref:"JobParamsMonacoEditor",editorStyle:e.editor.editorStyle,language:e.editor.language,value:e.editor.value,readOnly:!0,scrollBottom:!0,syncValue:!0},null,8,["editorStyle","language","value"])])]),footer:s(()=>[w("div",P,[C(a(j,{class:"is-loading",size:"30px"},{default:s(()=>[a(_)]),_:1},512),[[E,e.loadingShow]])])]),_:1},8,["modelValue"])}}});export{se as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer.bf5cfa32.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer.bf5cfa32.js new file mode 100644 index 00000000..167f77d0 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer.bf5cfa32.js @@ -0,0 +1,2 @@ +import{_ as D}from"./preload-helper.101896b7.js";import{h as y,ap as V,K as h,a9 as r,j as L,v as C,x as a,D as s,u as d,B as p,C as u,l as w,y as j,E}from"./vue.bd0669ce.js";import{u as B}from"./vue-i18n.cjs.2a00fe88.js";import{a as S}from"./data.a7368d0d.js";import{u as z}from"./index.dbab376e.js";import"./_commonjsHelpers.35101cd5.js";import"./index.3f2ce315.js";import"./request.386cf962.js";import"./storage.b628b270.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";import"./header.9390c1c5.js";const N={class:"system-role-dialog-container",style:{padding:"10px",height:"100%"}},P={style:{"text-align":"center",height:"30px"}},M=y({name:"jobDrawerName"}),ae=y({...M,setup(O,{expose:v}){const b=V(()=>D(()=>import("./monaco.c8c1dd6a.js").then(t=>t.a),["assets/monaco.c8c1dd6a.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/monaco.82344604.css"])),{t:c}=B(),T=z(),e=h({loadingShow:!1,closeStatus:!1,editor:{editorStyle:"width: 100%;height: 100%;",language:"shell",value:""},drawer:{isShow:!1},descriptions:{column:6,workerAddress:"",createTime:"",completeTime:"",statusTag:"",statusLabel:"Default"}}),i=h({timerId:0,time:0,counter:0}),x=async t=>{e.descriptions.workerAddress=t.workerAddress,e.descriptions.createTime=t.createTime,e.descriptions.completeTime=t.completeTime,e.descriptions.statusTag=S(t.status).tag,e.descriptions.statusLabel=S(t.status).label,e.drawer.isShow=!0,e.editor.value="",i.time=0,e.closeStatus=!1,e.loadingShow=!1,await g(t,2)},g=async(t,l)=>{if(e.closeStatus)return;let n=30,o=await T.getProcessorList({taskId:t.taskId,status:t.status,time:i.time,loading:l,size:n}),m="";if(o.list.forEach(function(_){m+=_+` +`}),e.editor.value+=m,o.time>0&&(i.time=o.time),e.loadingShow=!1,o.complete!=1){if(o.list.length>0){e.loadingShow=!0,setTimeout(async()=>{await g(t,2)},500);return}e.loadingShow=!0,i.timerId=setInterval(async()=>{clearInterval(i.timerId),await g(t,1)},3e3)}},I=()=>{e.closeStatus=!0,clearInterval(i.timerId)};return v({openDrawer:x}),(t,l)=>{const n=r("el-descriptions-item"),o=r("el-tag"),m=r("el-descriptions"),_=r("Loading"),k=r("el-icon"),A=r("el-drawer");return L(),C(A,{modelValue:e.drawer.isShow,"onUpdate:modelValue":l[0]||(l[0]=f=>e.drawer.isShow=f),direction:"rtl",size:"80%",onClose:l[1]||(l[1]=f=>I())},{header:a(()=>[s(m,{style:{"margin-top":"10px"},column:e.descriptions.column},{default:a(()=>[s(n,{label:d(c)("message.job.instance.workerAddress"),width:"260px",align:"left"},{default:a(()=>[p(u(e.descriptions.workerAddress),1)]),_:1},8,["label"]),s(n,{label:d(c)("message.job.instance.createTime"),width:"260px",align:"left"},{default:a(()=>[p(u(e.descriptions.createTime),1)]),_:1},8,["label"]),s(n,{label:d(c)("message.job.instance.completeTime"),width:"260px",align:"left"},{default:a(()=>[p(u(e.descriptions.completeTime),1)]),_:1},8,["label"]),s(n,{label:d(c)("message.job.instance.status"),width:"260px",align:"left"},{default:a(()=>[s(o,{class:"ml-2",type:e.descriptions.statusTag,size:"small"},{default:a(()=>[p(u(e.descriptions.statusLabel),1)]),_:1},8,["type"])]),_:1},8,["label"])]),_:1},8,["column"])]),default:a(()=>[w("div",N,[s(d(b),{ref:"JobParamsMonacoEditor",editorStyle:e.editor.editorStyle,language:e.editor.language,value:e.editor.value,readOnly:!0,scrollBottom:!0,syncValue:!0},null,8,["editorStyle","language","value"])])]),footer:a(()=>[w("div",P,[j(s(k,{class:"is-loading",size:"30px"},{default:a(()=>[s(_)]),_:1},512),[[E,e.loadingShow]])])]),_:1},8,["modelValue"])}}});export{ae as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer.ff000ca5.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer.ff000ca5.js new file mode 100644 index 00000000..070dca72 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/drawer.ff000ca5.js @@ -0,0 +1 @@ +import{_ as de}from"./preload-helper.101896b7.js";import{h as G,ap as ce,r as fe,K as be,o as ye,a9 as b,j as c,v as T,x as o,l as f,C as u,D as l,u as m,k as F,Z as _,F as j,y,E as x,B as n}from"./vue.bd0669ce.js";import{u as xe}from"./vue-i18n.cjs.2a00fe88.js";import{u as ge}from"./index.dbe87b05.js";import{g as Te}from"./header.9390c1c5.js";import{a as Fe}from"./index.7c5dfd4e.js";import{b as N,g as _e}from"./formatTime.057ac5b9.js";import{d as je}from"./data.a7368d0d.js";import{ay as z}from"./index.e8f4f9cf.js";import{J as A}from"./index.f64fca3a.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./storage.b628b270.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.3f2ce315.js";import"./index.ee56f1f7.js";const Pe={class:"system-role-dialog-container",style:{padding:"20px"}},he=f("br",null,null,-1),Se=f("br",null,null,-1),ve=f("br",null,null,-1),Ee=f("br",null,null,-1),Ve=f("br",null,null,-1),we=f("br",null,null,-1),ke=f("br",null,null,-1),Ie=f("br",null,null,-1),Re=f("br",null,null,-1),Le=f("br",null,null,-1),Ce=f("br",null,null,-1),Ue=f("br",null,null,-1),$e=f("br",null,null,-1),De=f("br",null,null,-1),Me=f("br",null,null,-1),qe=f("br",null,null,-1),Be={style:{flex:"auto","text-align":"left","padding-left":"30px","padding-bottom":"10px"}},Je=G({name:"jobDrawerName"}),ml=G({...Je,emits:["refresh"],setup(Ne,{expose:O,emit:q}){const I=ce(()=>de(()=>import("./monaco.c8c1dd6a.js").then(r=>r.a),["assets/monaco.c8c1dd6a.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/monaco.82344604.css"])),{t:a}=xe(),H=ge(),R=Fe(),L=fe(),e=be({isUpdate:!1,dialogTitle:"",rowState:{inputProcessor:!0,kettleProcessor:!1,httpProcessor:!1,shellProcessor:!1,shardingParams:!1,processorParams:!0,timeExpression:!0,executeTime:!1,fixedDelay:!1,fixedRate:!1},syncEditor:!1,shellEditor:{editorStyle:"width: 95%;height: 220px;",language:"shell"},paramsEditor:{editorStyle:"width: 95%;height: 220px;"},paramsExtEditor:{editorStyle:"width: 95%;height: 150px;"},drawer:{type:"",isShow:!1},fromRules:{name:{required:!0,message:a("message.job.job.name"),trigger:"blur"},processorInfo:{required:!0,message:a("message.job.job.processorInfo"),trigger:"blur"},shardingParams:{required:!0,message:a("message.job.job.shardingParams"),trigger:"blur"},kettleProcessorInfo:{required:!0,message:a("message.job.job.kettleCommand"),trigger:"blur"},shellProcessorInfo:{required:!0,message:a("message.job.job.processorInfo"),trigger:"blur"},timeExpression:{required:!0,message:a("message.job.job.timeExpression"),trigger:"blur"},fixedDelay:{required:!0,message:a("message.job.job.validateName.fixed"),pattern:/^[0-9]*$/,trigger:"blur"},fixedRate:{required:!0,message:a("message.job.job.validateName.fixed"),pattern:/^[0-9]*$/,trigger:"blur"},executeTime:{required:!0,message:a("message.job.job.timeExpressionTypeList.oneTimeTitle"),trigger:"blur"}},contentType:[{value:"plaintext",label:"plaintext"},{value:"json",label:"json"},{value:"yaml",label:"yaml"},{value:"properties",label:"properties"}],shellType:[{value:"unix",label:"unix"},{value:"windows",label:"windows"}],httpMethod:[{value:"GET",label:"GET"},{value:"POST",label:"POST"}],processorType:[{value:"processor",label:"processor"},{value:"shell",label:"shell"},{value:"kettle",label:"kettle"}],executeType:[{value:"standalone",label:a("message.job.job.executeTypeList.standalone")}],executeStrategy:[{value:1,label:a("message.job.job.executeStrategyList.discard")},{value:2,label:a("message.job.job.executeStrategyList.overlay")},{value:3,label:a("message.job.job.executeStrategyList.concurrency")}],timeExpressionType:[{value:"cron",label:a("message.job.job.timeExpressionTypeList.cron")},{value:"oneTime",label:a("message.job.job.timeExpressionTypeList.oneTime")}],namespaceList:[],appList:[],ruleForm:{timesStep:1,intervalStep:1e3,description:"",paramsType:"plaintext",params:"",extendParamsType:"plaintext",extendParams:"",timeExpressionType:"cron",timeExpression:"",executeTime:"",fixedDelay:"",fixedRate:"",Time:0,executeType:"standalone",processorType:"processor",processorInfo:"",httpUrl:"",httpMethod:"GET",shellProcessorInfo:"",shellProcessorType:"unix",kettleProcessorInfo:"",kettleProcessorType:"unix",shardingParams:"",namespaceId:0,appId:1,id:0,name:"",status:!0,failRetryTimes:1,failRetryInterval:2e3,concurrency:1,executeStrategy:1}});ye(async()=>{await K()});const K=async()=>{let r=await H.getList({page:1,size:128});e.namespaceList=[],r.list.forEach(function(t){e.namespaceList.push({id:t.id,name:t.name})})},Q=async(r,t,g)=>{if(await X(),e.drawer.type=r,e.drawer.isShow=!0,r==="add"){e.isUpdate=!1,e.dialogTitle=a("message.job.job.addJobTitle"),e.syncEditor=!0,await Z(t),e.syncEditor=!1;return}e.isUpdate=!0,r=="update"?e.dialogTitle=a("message.job.job.updateJobTitle"):e.dialogTitle=a("message.job.job.copyJobTitle"),e.syncEditor=!0,await W(g),e.syncEditor=!1},Z=async r=>{r==0&&(r=e.appList[0].id),$("cron"),C("processor"),e.ruleForm.namespaceId=Te(),e.ruleForm.appId=r,e.ruleForm.name="",e.ruleForm.description="",e.ruleForm.processorType="processor",e.ruleForm.processorInfo="",e.ruleForm.shellProcessorInfo="",e.ruleForm.params="",e.ruleForm.paramsType="plaintext",e.ruleForm.extendParamsType="plaintext",e.ruleForm.extendParams="",e.ruleForm.timeExpressionType="cron",e.ruleForm.timeExpression="",e.ruleForm.executeTime="",e.ruleForm.fixedDelay="",e.ruleForm.fixedRate="",e.ruleForm.status=!0,e.ruleForm.executeType="standalone",e.ruleForm.shellProcessorType="unix",e.ruleForm.shellProcessorInfo="",e.ruleForm.kettleProcessorType="unix",e.ruleForm.kettleProcessorInfo="",e.ruleForm.shardingParams="",e.ruleForm.executeStrategy=1,e.ruleForm.failRetryTimes=1,e.ruleForm.failRetryInterval=3e3,e.ruleForm.concurrency=1},W=async r=>{var t;(t=L.value)==null||t.clearValidate(),e.ruleForm.id=r.id,e.ruleForm.namespaceId=r.namespaceId,e.ruleForm.appId=r.appId,e.ruleForm.name=r.name,e.ruleForm.description=r.description,e.ruleForm.processorType=r.processorType,e.ruleForm.processorInfo=r.processorInfo,e.ruleForm.params=r.params,e.ruleForm.paramsType=r.paramsType,e.ruleForm.extendParamsType=r.extendParamsType,e.ruleForm.extendParams=r.extendParams,e.ruleForm.timeExpressionType=r.timeExpressionType,e.ruleForm.timeExpression=r.timeExpression,e.ruleForm.status=r.status,e.ruleForm.executeType=r.executeType,e.ruleForm.executeStrategy=r.executeStrategy,e.ruleForm.failRetryTimes=r.failRetryTimes,e.ruleForm.failRetryInterval=r.failRetryInterval,e.ruleForm.concurrency=r.concurrency,e.ruleForm.processorInfo=r.processorInfo,$(r.timeExpressionType),C(r.processorType),U(r.executeType),r.executeType=="sharding"&&(e.ruleForm.shardingParams=r.shardingParams),r.shellProcessorType!=null&&(B(r.shellProcessorType),e.ruleForm.shellProcessorInfo=r.shellProcessorInfo),r.kettleProcessorType!=null&&(J(r.kettleProcessorType),e.ruleForm.kettleProcessorInfo=r.kettleProcessorInfo),r.timeExpressionType=="secondDelay"?(e.ruleForm.fixedDelay=r.timeExpressionValue.toString(),e.ruleForm.fixedRate="",e.ruleForm.timeExpression="",e.ruleForm.executeTime=""):r.timeExpressionType=="fixedRate"?(e.ruleForm.fixedRate=r.timeExpressionValue.toString(),e.ruleForm.fixedDelay="",e.ruleForm.timeExpression="",e.ruleForm.executeTime=""):r.timeExpressionType=="oneTime"?(e.ruleForm.executeTime=N(r.timeExpressionValue),e.ruleForm.fixedRate="",e.ruleForm.timeExpression="",e.ruleForm.fixedDelay=""):(e.ruleForm.fixedRate="",e.ruleForm.fixedRate="",e.ruleForm.executeTime="")},X=async()=>{e.appList=await je()},Y=()=>{e.drawer.isShow=!1},ee=async r=>{if(!r)return;let t=["name"];e.ruleForm.processorType=="shell"?t.push("shellProcessorInfo"):e.ruleForm.processorType=="kettle"?t.push("kettleProcessorInfo"):t.push("processorInfo"),e.ruleForm.timeExpressionType=="secondDelay"?t.push("fixedDelay"):e.ruleForm.timeExpressionType=="fixedRate"?t.push("fixedRate"):e.ruleForm.timeExpressionType=="oneTime"?t.push("executeTime"):t.push("timeExpression"),await r.validateField(t,g=>{if(g)le();else return!1})},le=async()=>{let r;e.ruleForm.timeExpressionType=="secondDelay"?r=e.ruleForm.fixedDelay:e.ruleForm.timeExpressionType=="fixedRate"?r=e.ruleForm.fixedRate:e.ruleForm.timeExpressionType=="oneTime"&&(r=_e(e.ruleForm.executeTime));let t={id:e.ruleForm.id,namespaceId:e.ruleForm.namespaceId,appId:e.ruleForm.appId,name:e.ruleForm.name,description:e.ruleForm.description,processorType:e.ruleForm.processorType,processorInfo:e.ruleForm.processorInfo,executeType:e.ruleForm.executeType,paramsType:e.ruleForm.paramsType,params:e.ruleForm.params,extendParamsType:e.ruleForm.extendParamsType,extendParams:e.ruleForm.extendParams,timeExpressionType:e.ruleForm.timeExpressionType,timeExpression:e.ruleForm.timeExpression,timeExpressionValue:r,executeStrategy:e.ruleForm.executeStrategy,failRetryTimes:e.ruleForm.failRetryTimes,failRetryInterval:e.ruleForm.failRetryInterval,concurrency:e.ruleForm.concurrency,status:e.ruleForm.status?1:2,shellProcessorInfo:e.ruleForm.shellProcessorInfo,shellProcessorType:e.ruleForm.shellProcessorType,kettleProcessorType:e.ruleForm.kettleProcessorType,kettleProcessorInfo:e.ruleForm.kettleProcessorInfo,shardingParams:e.ruleForm.shardingParams};if(e.drawer.type==="add"||e.drawer.type==="copy"){await R.add(t),z.success("新增成功"),e.drawer.isShow=!1,q("refresh");return}await R.update(t),z.success("更新成功"),e.drawer.isShow=!1,q("refresh")},C=r=>{r=="shell"?(e.rowState.inputProcessor=!1,e.rowState.shellProcessor=!0,e.rowState.kettleProcessor=!1,e.rowState.processorParams=!1,e.rowState.httpProcessor=!1,e.executeType=[{value:"standalone",label:a("message.job.job.executeTypeList.standalone")}]):r=="kettle"?(e.rowState.inputProcessor=!1,e.rowState.shellProcessor=!1,e.rowState.kettleProcessor=!0,e.rowState.processorParams=!1,e.rowState.httpProcessor=!1,e.executeType=[{value:"standalone",label:a("message.job.job.executeTypeList.standalone")}]):r=="http"?(e.rowState.inputProcessor=!1,e.rowState.shellProcessor=!1,e.rowState.kettleProcessor=!1,e.rowState.processorParams=!1,e.rowState.httpProcessor=!0,e.executeType=[{value:"standalone",label:a("message.job.job.executeTypeList.standalone")}]):(e.rowState.inputProcessor=!0,e.rowState.shellProcessor=!1,e.rowState.kettleProcessor=!1,e.rowState.processorParams=!0,e.rowState.httpProcessor=!1,e.executeType=[{value:"standalone",label:a("message.job.job.executeTypeList.standalone")}]),e.ruleForm.executeType="standalone",U("standalone")},U=r=>{if(r=="sharding"){e.ruleForm.processorType=="processor"&&(e.rowState.processorParams=!1),e.rowState.shardingParams=!0;return}else e.ruleForm.processorType=="processor"&&(e.rowState.processorParams=!0),e.rowState.shardingParams=!1},$=r=>{if(r=="cron"){e.rowState.timeExpression=!0,e.rowState.fixedDelay=!1,e.rowState.fixedRate=!1,e.rowState.executeTime=!1;return}if(r=="secondDelay"){e.rowState.timeExpression=!1,e.rowState.fixedDelay=!0,e.rowState.fixedRate=!1,e.rowState.executeTime=!1;return}if(r=="fixedRate"){e.rowState.timeExpression=!1,e.rowState.fixedDelay=!1,e.rowState.fixedRate=!0,e.rowState.executeTime=!1;return}if(r=="oneTime"){e.rowState.timeExpression=!1,e.rowState.fixedDelay=!1,e.rowState.fixedRate=!1,e.rowState.executeTime=!0;return}},oe=async()=>{let r=await R.timeExpression({timeExpression:e.ruleForm.timeExpression});if(r.valid===2){await A.alert(a("message.job.job.timeExpressionValidMsg"),a("message.commonMsg.tip"),{type:"error"});return}let t="";r.list.forEach(function(g){t+=N(g)+"
"}),await A.alert(`
${t}
`,a("message.job.job.timeExpressionTitle"),{dangerouslyUseHTMLString:!0})},re=r=>{e.ruleForm.paramsType=r},se=r=>{e.ruleForm.extendParamsType=r},B=r=>{e.ruleForm.shellProcessorType=r},J=r=>{e.ruleForm.kettleProcessorType=r},te=r=>{e.ruleForm.shellProcessorInfo=r},ae=r=>{e.ruleForm.params=r},me=r=>{e.ruleForm.extendParams=r};return O({openDrawer:Q}),(r,t)=>{const g=b("el-option"),h=b("el-select"),p=b("el-form-item"),i=b("el-col"),d=b("el-row"),P=b("el-input"),v=b("ele-QuestionFilled"),E=b("el-icon"),V=b("el-tooltip"),w=b("el-radio"),k=b("el-radio-group"),D=b("el-button"),ue=b("el-date-picker"),ne=b("el-switch"),M=b("el-input-number"),ie=b("el-form"),pe=b("el-drawer");return c(),T(pe,{modelValue:e.drawer.isShow,"onUpdate:modelValue":t[27]||(t[27]=s=>e.drawer.isShow=s),direction:"rtl",size:"50%"},{header:o(()=>[f("h4",null,u(e.dialogTitle),1)]),default:o(()=>[f("div",Pe,[l(ie,{ref_key:"jobFormRef",ref:L,model:e.ruleForm,"label-width":"130px","label-position":"right",rules:e.fromRules,size:"default"},{default:o(()=>[l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.app.namespace"),prop:"namespaceId"},{default:o(()=>[l(h,{modelValue:e.ruleForm.namespaceId,"onUpdate:modelValue":t[0]||(t[0]=s=>e.ruleForm.namespaceId=s),class:"m-2",placeholder:m(a)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(c(!0),F(j,null,_(e.namespaceList,s=>(c(),T(g,{key:s.id,label:s.name,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.application"),prop:"appId"},{default:o(()=>[l(h,{modelValue:e.ruleForm.appId,"onUpdate:modelValue":t[1]||(t[1]=s=>e.ruleForm.appId=s),class:"m-2",filterable:"",placeholder:m(a)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(c(!0),F(j,null,_(e.appList,s=>(c(),T(g,{key:s.id,label:s.label,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.name"),prop:"name"},{default:o(()=>[l(P,{modelValue:e.ruleForm.name,"onUpdate:modelValue":t[2]||(t[2]=s=>e.ruleForm.name=s),clearable:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.description"),prop:"description"},{default:o(()=>[l(P,{modelValue:e.ruleForm.description,"onUpdate:modelValue":t[3]||(t[3]=s=>e.ruleForm.description=s),clearable:"",type:"textarea",rows:"3"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.processorType"),prop:"processorType"},{default:o(()=>[l(h,{modelValue:e.ruleForm.processorType,"onUpdate:modelValue":t[4]||(t[4]=s=>e.ruleForm.processorType=s),disabled:e.isUpdate,class:"m-2",placeholder:m(a)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(c(!0),F(j,null,_(e.processorType,s=>(c(),T(g,{key:s.value,label:s.label,value:s.value,onClick:S=>C(s.value)},null,8,["label","value","onClick"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{prop:"processorInfo"},{label:o(()=>[n(u(r.$t("message.job.job.processorInfo"))+" ",1),l(V,{class:"box-item",effect:"dark",placement:"top"},{content:o(()=>[n(u(r.$t("message.job.job.processorInfoLabel.one")),1),he,n(" "+u(r.$t("message.job.job.processorInfoLabel.two")),1),Se,n(" "+u(r.$t("message.job.job.processorInfoLabel.three")),1),ve]),default:o(()=>[l(E,{style:{"margin-top":"9px"}},{default:o(()=>[l(v)]),_:1})]),_:1})]),default:o(()=>[l(P,{modelValue:e.ruleForm.processorInfo,"onUpdate:modelValue":t[5]||(t[5]=s=>e.ruleForm.processorInfo=s),style:{width:"80%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},512),[[x,e.rowState.inputProcessor]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.kettleCommand"),prop:"kettleProcessorInfo"},{default:o(()=>[l(P,{modelValue:e.ruleForm.kettleProcessorInfo,"onUpdate:modelValue":t[6]||(t[6]=s=>e.ruleForm.kettleProcessorInfo=s)},null,8,["modelValue"])]),_:1},8,["label"]),l(k,{modelValue:e.ruleForm.kettleProcessorType,"onUpdate:modelValue":t[7]||(t[7]=s=>e.ruleForm.kettleProcessorType=s),style:{"margin-left":"120px"}},{default:o(()=>[(c(!0),F(j,null,_(e.shellType,s=>(c(),T(w,{key:s.value,label:s.label,onClick:S=>J(s.value)},{default:o(()=>[n(u(s.value),1)]),_:2},1032,["label","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},512),[[x,e.rowState.kettleProcessor]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(m(I),{ref:"shellProcessorMonacoEditor",editorStyle:e.shellEditor.editorStyle,language:e.shellEditor.language,value:e.ruleForm.shellProcessorInfo,syncValue:e.syncEditor,onUpdateContent:te,style:{"margin-left":"120px"}},null,8,["editorStyle","language","value","syncValue"]),l(k,{modelValue:e.ruleForm.shellProcessorType,"onUpdate:modelValue":t[8]||(t[8]=s=>e.ruleForm.shellProcessorType=s),style:{"margin-left":"120px"}},{default:o(()=>[(c(!0),F(j,null,_(e.shellType,s=>(c(),T(w,{key:s.value,label:s.label,onClick:S=>B(s.value)},{default:o(()=>[n(u(s.value),1)]),_:2},1032,["label","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},512),[[x,e.rowState.shellProcessor]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:"URL",prop:"httpUrl"},{default:o(()=>[l(P,{modelValue:e.ruleForm.httpUrl,"onUpdate:modelValue":t[9]||(t[9]=s=>e.ruleForm.httpUrl=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},512),[[x,e.rowState.httpProcessor]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:"Method",prop:"httpMethod"},{default:o(()=>[l(h,{modelValue:e.ruleForm.httpMethod,"onUpdate:modelValue":t[10]||(t[10]=s=>e.ruleForm.httpMethod=s),class:"m-2",placeholder:m(a)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(c(!0),F(j,null,_(e.httpMethod,s=>(c(),T(g,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1})]),_:1},512),[[x,e.rowState.httpProcessor]]),l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{prop:""},{label:o(()=>[n(u(r.$t("message.job.job.executeType"))+" ",1),l(V,{class:"box-item",effect:"dark",placement:"top"},{content:o(()=>[n(u(r.$t("message.job.job.executeTypeLabel.one")),1),Ee,n(" "+u(r.$t("message.job.job.executeTypeLabel.two")),1),Ve,n(" "+u(r.$t("message.job.job.executeTypeLabel.two")),1),we,n(" "+u(r.$t("message.job.job.executeTypeLabel.four")),1),ke]),default:o(()=>[l(E,{style:{"margin-top":"9px"}},{default:o(()=>[l(v)]),_:1})]),_:1})]),default:o(()=>[l(h,{modelValue:e.ruleForm.executeType,"onUpdate:modelValue":t[11]||(t[11]=s=>e.ruleForm.executeType=s),class:"m-2",placeholder:m(a)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(c(!0),F(j,null,_(e.executeType,s=>(c(),T(g,{key:s.value,label:s.label,value:s.value,onClick:S=>U(s.value)},null,8,["label","value","onClick"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1})]),_:1}),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{prop:"shardingParams"},{label:o(()=>[n(u(r.$t("message.job.job.shardingParams"))+" ",1),l(V,{class:"box-item",effect:"dark",placement:"top"},{content:o(()=>[n(u(r.$t("message.job.job.shardingParamsLabel.one")),1),Ie,n(" "+u(r.$t("message.job.job.shardingParamsLabel.two")),1)]),default:o(()=>[l(E,{style:{"margin-top":"9px"}},{default:o(()=>[l(v)]),_:1})]),_:1})]),default:o(()=>[l(P,{type:"textarea",rows:"3",modelValue:e.ruleForm.shardingParams,"onUpdate:modelValue":t[12]||(t[12]=s=>e.ruleForm.shardingParams=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},512),[[x,e.rowState.shardingParams]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.paramsType"),prop:"paramsType"},{default:o(()=>[l(k,{modelValue:e.ruleForm.paramsType,"onUpdate:modelValue":t[13]||(t[13]=s=>e.ruleForm.paramsType=s)},{default:o(()=>[(c(!0),F(j,null,_(e.contentType,s=>(c(),T(w,{key:s.value,label:s.label,onClick:S=>re(s.value)},{default:o(()=>[n(u(s.value),1)]),_:2},1032,["label","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[x,e.rowState.processorParams]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.params"),prop:"params"},{default:o(()=>[l(m(I),{ref:"JobParamsMonacoEditor",editorStyle:e.paramsEditor.editorStyle,language:e.ruleForm.paramsType,value:e.ruleForm.params,syncValue:e.syncEditor,onUpdateContent:ae},null,8,["editorStyle","language","value","syncValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[x,e.rowState.processorParams]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.extendParamsType"),prop:"extendParamsType"},{default:o(()=>[l(k,{modelValue:e.ruleForm.extendParamsType,"onUpdate:modelValue":t[14]||(t[14]=s=>e.ruleForm.extendParamsType=s)},{default:o(()=>[(c(!0),F(j,null,_(e.contentType,s=>(c(),T(w,{key:s.value,label:s.label,onClick:S=>se(s.value)},{default:o(()=>[n(u(s.value),1)]),_:2},1032,["label","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[x,e.rowState.processorParams]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.extendParams"),prop:"extendParams"},{default:o(()=>[l(m(I),{ref:"JobExtParamsMonacoEditor",editorStyle:e.paramsExtEditor.editorStyle,language:e.ruleForm.extendParamsType,value:e.ruleForm.extendParams,syncValue:e.syncEditor,onUpdateContent:me},null,8,["editorStyle","language","value","syncValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[x,e.rowState.processorParams]]),l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.timeExpressionType"),prop:""},{label:o(()=>[n(u(r.$t("message.job.job.timeExpressionType"))+" ",1),l(V,{class:"box-item",effect:"dark",placement:"top"},{content:o(()=>[n(u(r.$t("message.job.job.timeExpressionTypeLabel.one")),1),Re,n(" "+u(r.$t("message.job.job.timeExpressionTypeLabel.two")),1),Le,n(" "+u(r.$t("message.job.job.timeExpressionTypeLabel.three")),1),Ce,n(" "+u(r.$t("message.job.job.timeExpressionTypeLabel.four")),1),Ue]),default:o(()=>[l(E,{style:{"margin-top":"9px"}},{default:o(()=>[l(v)]),_:1})]),_:1})]),default:o(()=>[l(h,{modelValue:e.ruleForm.timeExpressionType,"onUpdate:modelValue":t[15]||(t[15]=s=>e.ruleForm.timeExpressionType=s),class:"m-2",placeholder:m(a)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(c(!0),F(j,null,_(e.timeExpressionType,s=>(c(),T(g,{key:s.value,label:s.label,value:s.value,onClick:S=>$(s.value)},null,8,["label","value","onClick"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.timeExpression"),prop:"timeExpression"},{default:o(()=>[l(P,{modelValue:e.ruleForm.timeExpression,"onUpdate:modelValue":t[16]||(t[16]=s=>e.ruleForm.timeExpression=s)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(D,{type:"success",plain:"",size:"default",onClick:t[17]||(t[17]=s=>oe()),style:{"margin-left":"10px"}},{default:o(()=>[n(u(m(a)("message.job.instance.executeTime")),1)]),_:1})]),_:1})]),_:1},512),[[x,e.rowState.timeExpression]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.timeExpressionTypeList.secondDelayTitle"),prop:"fixedDelay"},{default:o(()=>[l(P,{modelValue:e.ruleForm.fixedDelay,"onUpdate:modelValue":t[18]||(t[18]=s=>e.ruleForm.fixedDelay=s)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[x,e.rowState.fixedDelay]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.timeExpressionTypeList.fixedRateTitle"),prop:"fixedRate"},{default:o(()=>[l(P,{modelValue:e.ruleForm.fixedRate,"onUpdate:modelValue":t[19]||(t[19]=s=>e.ruleForm.fixedRate=s)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[x,e.rowState.fixedRate]]),y(l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.timeExpressionTypeList.oneTimeTitle"),prop:"executeTime"},{default:o(()=>[l(ue,{modelValue:e.ruleForm.executeTime,"onUpdate:modelValue":t[20]||(t[20]=s=>e.ruleForm.executeTime=s),type:"datetime",placeholder:m(a)("message.commonMsg.emptySelect")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},512),[[x,e.rowState.executeTime]]),l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.status"),prop:"status"},{default:o(()=>[l(ne,{modelValue:e.ruleForm.status,"onUpdate:modelValue":t[21]||(t[21]=s=>e.ruleForm.status=s),class:"ml-2",name:"status",size:"default",style:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{prop:"executeStrategy"},{label:o(()=>[n(u(r.$t("message.job.job.executeStrategy"))+" ",1),l(V,{class:"box-item",effect:"dark",placement:"top"},{content:o(()=>[n(u(r.$t("message.job.job.executeStrategyLabel.one")),1),$e,n(" "+u(r.$t("message.job.job.executeStrategyLabel.two")),1),De,n(" "+u(r.$t("message.job.job.executeStrategyLabel.three")),1),Me,n(" "+u(r.$t("message.job.job.executeStrategyLabel.four")),1),qe]),default:o(()=>[l(E,{style:{"margin-top":"9px"}},{default:o(()=>[l(v)]),_:1})]),_:1})]),default:o(()=>[l(h,{modelValue:e.ruleForm.executeStrategy,"onUpdate:modelValue":t[22]||(t[22]=s=>e.ruleForm.executeStrategy=s),class:"m-2",placeholder:m(a)("message.commonMsg.emptySelect"),style:{width:"100%"}},{default:o(()=>[(c(!0),F(j,null,_(e.executeStrategy,s=>(c(),T(g,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1}),l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.concurrency"),prop:"concurrency"},{default:o(()=>[l(M,{modelValue:e.ruleForm.concurrency,"onUpdate:modelValue":t[23]||(t[23]=s=>e.ruleForm.concurrency=s),min:1,max:128,style:{width:"100%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(d),l(d,null,{default:o(()=>[l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.failRetryTimes"),prop:"failRetryTimes"},{default:o(()=>[l(M,{modelValue:e.ruleForm.failRetryTimes,"onUpdate:modelValue":t[24]||(t[24]=s=>e.ruleForm.failRetryTimes=s),min:1,max:6,step:e.ruleForm.timesStep,style:{width:"100%"}},null,8,["modelValue","step"])]),_:1},8,["label"])]),_:1}),l(i,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:o(()=>[l(p,{label:m(a)("message.job.job.failRetryInterval"),prop:"failRetryInterval"},{default:o(()=>[l(M,{modelValue:e.ruleForm.failRetryInterval,"onUpdate:modelValue":t[25]||(t[25]=s=>e.ruleForm.failRetryInterval=s),step:e.ruleForm.intervalStep,min:1,style:{width:"100%"}},null,8,["modelValue","step"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","rules"])])]),footer:o(()=>[f("div",Be,[l(D,{type:"primary",onClick:t[26]||(t[26]=s=>ee(L.value)),size:"default"},{default:o(()=>[n(u(m(a)("message.commonBtn.confirm")),1)]),_:1}),l(D,{onClick:Y,size:"default"},{default:o(()=>[n(u(m(a)("message.commonBtn.cancel")),1)]),_:1})])]),_:1},8,["modelValue"])}}});export{ml as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesOne.d495f1ac.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesOne.d495f1ac.js new file mode 100644 index 00000000..e0c51333 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesOne.d495f1ac.js @@ -0,0 +1 @@ +import{h as d,K as b,o as x,a9 as r,j as V,k as h,D as e,x as o}from"./vue.bd0669ce.js";const v={class:"form-rules-one-container"},w=d({name:"pagesFormRulesOne"}),k=d({...w,props:{data:{type:Object,default:()=>{}}},setup(p){const c=p,l=b({form:{name:"",email:"",autograph:"",occupation:""},rules:{name:{required:!0,message:"请输入姓名",trigger:"blur"},email:{required:!0,message:"请输入用户邮箱",trigger:"blur"},autograph:{required:!0,message:"请输入登陆账户名",trigger:"blur"},occupation:{required:!0,message:"请选择职务",trigger:"change"}}}),f=()=>{l.form=c.data};return x(()=>{f()}),(q,a)=>{const n=r("el-input"),m=r("el-form-item"),s=r("el-col"),u=r("el-option"),i=r("el-select"),_=r("el-row"),g=r("el-form");return V(),h("div",v,[e(g,{model:l.form,rules:l.rules,ref:"formRulesOneRef",size:"default","label-width":"100px",class:"mt35"},{default:o(()=>[e(_,{gutter:35},{default:o(()=>[e(s,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:o(()=>[e(m,{label:"姓名",prop:"name"},{default:o(()=>[e(n,{modelValue:l.form.name,"onUpdate:modelValue":a[0]||(a[0]=t=>l.form.name=t),placeholder:"请输入姓名",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:o(()=>[e(m,{label:"邮箱",prop:"email"},{default:o(()=>[e(n,{modelValue:l.form.email,"onUpdate:modelValue":a[1]||(a[1]=t=>l.form.email=t),placeholder:"请输入用户邮箱",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:o(()=>[e(m,{label:"登陆账户名",prop:"autograph"},{default:o(()=>[e(n,{modelValue:l.form.autograph,"onUpdate:modelValue":a[2]||(a[2]=t=>l.form.autograph=t),placeholder:"请输入登陆账户名",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:o(()=>[e(m,{label:"职务",prop:"occupation"},{default:o(()=>[e(i,{modelValue:l.form.occupation,"onUpdate:modelValue":a[3]||(a[3]=t=>l.form.occupation=t),placeholder:"请选择职务",clearable:"",class:"w100"},{default:o(()=>[e(u,{label:"计算机 / 互联网 / 通信",value:"1"}),e(u,{label:"生产 / 工艺 / 制造",value:"2"}),e(u,{label:"医疗 / 护理 / 制药",value:"3"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])}}});export{k as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesThree.95a638e9.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesThree.95a638e9.js new file mode 100644 index 00000000..674da247 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesThree.95a638e9.js @@ -0,0 +1 @@ +import{h as d,K as f,a9 as a,j as _,k as c,D as e,x as r}from"./vue.bd0669ce.js";const i={class:"form-rules-three-container"},g=d({name:"pagesFormRulesThree"}),V=d({...g,setup(b){const l=f({form:{createUser:"",editUser:"",user:"",department:""},rules:{createUser:{required:!0,message:"请输入创建用户",trigger:"blur"},editUser:{required:!0,message:"请输入修改用户",trigger:"blur"},user:{required:!0,message:"请输入所属用户",trigger:"blur"},department:{required:!0,message:"请输入所属部门",trigger:"blur"}}});return(U,t)=>{const s=a("el-input"),m=a("el-form-item"),u=a("el-col"),n=a("el-row"),p=a("el-form");return _(),c("div",i,[e(p,{model:l.form,rules:l.rules,ref:"formRulesThreeRef",size:"default","label-width":"100px",class:"mt35"},{default:r(()=>[e(n,{gutter:35},{default:r(()=>[e(u,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:r(()=>[e(m,{label:"创建用户",prop:"createUser"},{default:r(()=>[e(s,{modelValue:l.form.createUser,"onUpdate:modelValue":t[0]||(t[0]=o=>l.form.createUser=o),placeholder:"请输入创建用户",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:r(()=>[e(m,{label:"修改用户",prop:"editUser"},{default:r(()=>[e(s,{modelValue:l.form.editUser,"onUpdate:modelValue":t[1]||(t[1]=o=>l.form.editUser=o),placeholder:"请输入修改用户",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:r(()=>[e(m,{label:"所属用户",prop:"user"},{default:r(()=>[e(s,{modelValue:l.form.user,"onUpdate:modelValue":t[2]||(t[2]=o=>l.form.user=o),placeholder:"请输入所属用户",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:r(()=>[e(m,{label:"所属部门",prop:"department"},{default:r(()=>[e(s,{modelValue:l.form.department,"onUpdate:modelValue":t[3]||(t[3]=o=>l.form.department=o),placeholder:"请输入所属部门",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])}}});export{V as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesTwo.70ff49ed.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesTwo.70ff49ed.js new file mode 100644 index 00000000..5f79a4a7 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/formRulesTwo.70ff49ed.js @@ -0,0 +1 @@ +import{h as d,K as c,a9 as s,j as i,k as b,D as e,x as l}from"./vue.bd0669ce.js";const x={class:"form-rules-two-container"},g=d({name:"pagesFormRulesTwo"}),v=d({...g,setup(w){const o=c({form:{phone:"",sex:"",password:"",auth:""},rules:{phone:{required:!0,message:"请输入手机",trigger:"blur"},password:{required:!0,message:"请输入登录密码",trigger:"blur"},auth:{required:!0,message:"请输入权限角色",trigger:"blur"}}});return(V,a)=>{const u=s("el-input"),r=s("el-form-item"),m=s("el-col"),n=s("el-option"),p=s("el-select"),_=s("el-row"),f=s("el-form");return i(),b("div",x,[e(f,{model:o.form,rules:o.rules,ref:"formRulesTwoRef",size:"default","label-width":"100px",class:"mt35"},{default:l(()=>[e(_,{gutter:35},{default:l(()=>[e(m,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:l(()=>[e(r,{label:"手机",prop:"phone"},{default:l(()=>[e(u,{modelValue:o.form.phone,"onUpdate:modelValue":a[0]||(a[0]=t=>o.form.phone=t),placeholder:"请输入手机",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:l(()=>[e(r,{label:"性别"},{default:l(()=>[e(p,{modelValue:o.form.sex,"onUpdate:modelValue":a[1]||(a[1]=t=>o.form.sex=t),placeholder:"请选择性别",clearable:"",class:"w100"},{default:l(()=>[e(n,{label:"男",value:"1"}),e(n,{label:"女",value:"2"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:l(()=>[e(r,{label:"登录密码",prop:"password"},{default:l(()=>[e(u,{modelValue:o.form.password,"onUpdate:modelValue":a[2]||(a[2]=t=>o.form.password=t),placeholder:"请输入登录密码",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:l(()=>[e(r,{label:"权限角色",prop:"auth"},{default:l(()=>[e(u,{modelValue:o.form.auth,"onUpdate:modelValue":a[3]||(a[3]=t=>o.form.auth=t),placeholder:"请输入权限角色",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])}}});export{v as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/freemarker2.81ea0a7d.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/freemarker2.81ea0a7d.js new file mode 100644 index 00000000..3ebfa0e7 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/freemarker2.81ea0a7d.js @@ -0,0 +1,3 @@ +import{m as F}from"./monaco.c8c1dd6a.js";import"./preload-helper.101896b7.js";import"./vue.bd0669ce.js";var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,F);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var T={conf:l(a),language:i(a,k)},h={conf:l(u),language:i(u,k)},S={conf:l(a),language:i(a,p)},P={conf:l(u),language:i(u,p)},y={conf:A(),language:m(k)},I={conf:A(),language:m(p)};export{S as TagAngleInterpolationBracket,T as TagAngleInterpolationDollar,I as TagAutoInterpolationBracket,y as TagAutoInterpolationDollar,P as TagBracketInterpolationBracket,h as TagBracketInterpolationDollar}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/getStyleSheets.43fb22d8.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/getStyleSheets.43fb22d8.js new file mode 100644 index 00000000..a3e06a89 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/getStyleSheets.43fb22d8.js @@ -0,0 +1 @@ +import{N as i}from"./index.ee56f1f7.js";import{J as r}from"./vue.bd0669ce.js";const f=()=>new Promise((l,c)=>{r(()=>{const n=document.styleSheets;let s=[],o=[];for(let e=0;e-1&&s.push(n[e]);for(let e=0;e-1&&o.push(`${s[e].cssRules[t].selectorText.substring(1,s[e].cssRules[t].selectorText.length).replace(/\:\:before/gi,"")}`);o.length>0?l(o):c("未获取到值,请刷新重试")})}),u=()=>new Promise((l,c)=>{r(()=>{const n=i,s=[];for(const o in n)s.push(`ele-${n[o].name}`);s.length>0?l(s):c("未获取到值,请刷新重试")})}),h=()=>new Promise((l,c)=>{r(()=>{const n=document.styleSheets;let s=[],o=[];for(let e=0;e-1&&s.push(n[e]);for(let e=0;e0?l(o.reverse()):c("未获取到值,请刷新重试")})}),g={ali:()=>f(),ele:()=>u(),awe:()=>h()},a=g;export{a as i}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/handlebars.55c93865.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/handlebars.55c93865.js new file mode 100644 index 00000000..74e4bea3 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/handlebars.55c93865.js @@ -0,0 +1 @@ +import{m as l}from"./monaco.c8c1dd6a.js";import"./preload-helper.101896b7.js";import"./vue.bd0669ce.js";var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,o=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==r&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,r)=>(o(t,e,"default"),r&&o(r,e,"default")),a={};h(a,l);var i=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],k={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},x={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{k as conf,x as language}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/head.363793c6.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/head.363793c6.js new file mode 100644 index 00000000..508c63ca --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/head.363793c6.js @@ -0,0 +1 @@ +import{f as s}from"./formatTime.057ac5b9.js";import{h as o,K as _,b as i,a4 as d,j as m,k as p,l as t,C as r,aE as l,aF as u}from"./vue.bd0669ce.js";import{_ as f}from"./_plugin-vue_export-helper.c27b6911.js";const n=a=>(l("data-v-23b83ee7"),a=a(),u(),a),h={class:"big-data-up mb15"},v={class:"up-left"},x=n(()=>t("i",{class:"el-icon-time mr5"},null,-1)),Q=n(()=>t("div",{class:"up-center"},[t("span",null,"智慧农业系统平台")],-1)),S=o({name:"chartHead"}),Y=o({...S,setup(a){const e=_({time:{txt:"",fun:0}}),c=()=>{e.time.txt=s(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ"),e.time.fun=window.setInterval(()=>{e.time.txt=s(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ")},1e3)};return i(()=>{c()}),d(()=>{window.clearInterval(e.time.fun)}),(w,b)=>(m(),p("div",h,[t("div",v,[x,t("span",null,r(e.time.txt),1)]),Q]))}});const M=f(Y,[["__scopeId","data-v-23b83ee7"]]);export{M as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/header.52106c52.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/header.52106c52.js new file mode 100644 index 00000000..5f547cb4 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/header.52106c52.js @@ -0,0 +1 @@ +import{_ as n}from"./preload-helper.101896b7.js";import{h as s,ap as _,ar as c,a9 as i,y as u,E as p,u as e,j as l,v as m,x as d,D as f}from"./vue.bd0669ce.js";import{u as h}from"./tagsViewRoutes.054c4a6f.js";import"./storage.b628b270.js";const v=s({name:"layoutHeader"}),g=s({...v,setup(w){const o=_(()=>n(()=>import("./index.f8ecd2b9.js"),["assets/index.f8ecd2b9.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.398af40b.css"])),a=h(),{isTagsViewCurrenFull:t}=c(a);return(x,C)=>{const r=i("el-header");return u((l(),m(r,{class:"layout-header"},{default:d(()=>[f(e(o))]),_:1},512)),[[p,!e(t)]])}}});export{g as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/help.2192a231.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/help.2192a231.js new file mode 100644 index 00000000..9381ae23 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/help.2192a231.js @@ -0,0 +1 @@ +import{h as d,r as _,a9 as p,ac as m,j as t,k as l,D as u,x as a,y as v,B as h,l as e}from"./vue.bd0669ce.js";const f={class:"workflow-tool-help"},w=e("div",null,"1、拖入:鼠标移入左侧导航中,鼠标形状改变时拖动到右侧网格状的视图中。",-1),g=e("div",{class:"mt10"},"2、移动:鼠标移入到视图中的某个节点元素,鼠标形状改变时拖动改变位置。",-1),k=e("div",{class:"mt10"},'3、连线:鼠标移入到视图中的某个节点元素的icon(图标),鼠标形状改变(变成"+"),按下鼠标左键进行拖线连接。',-1),x=e("div",{class:"mt10"},"4、节点:鼠标移入到视图中的某个节点元素,点击鼠标右键可进行删除、编辑节点。",-1),V=e("div",{class:"mt10 mb10"},"5、线条:鼠标移入到视图中的某个线条,线条颜色改变时,点击鼠标右键可进行删除、编辑线条。",-1),B=d({name:"pagesWorkflowToolHelp"}),j=d({...B,setup(C,{expose:c}){const o=_(!1);return c({open:()=>{o.value=!0},close:()=>{o.value=!1}}),(T,s)=>{const n=p("el-dialog"),i=m("drag");return t(),l("div",f,[u(n,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=r=>o.value=r),width:"769px"},{header:a(()=>[v((t(),l("div",null,[h("使用帮助")])),[[i,[".workflow-tool-help .el-dialog",".workflow-tool-help .el-dialog__header"]]])]),default:a(()=>[w,g,k,x,V]),_:1},8,["modelValue"])])}}});export{j as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/horizontal.eea3239c.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/horizontal.eea3239c.js new file mode 100644 index 00000000..b828cb71 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/horizontal.eea3239c.js @@ -0,0 +1 @@ +import{_ as P}from"./preload-helper.101896b7.js";import{h as $,ap as V,r as j,ar as k,aq as F,K as N,a as q,b as J,o as W,aJ as K,a9 as l,j as a,k as p,D as i,x as r,F as C,Z as U,u as y,v as L,l as g,C as f,a0 as Y,B as S,$ as R,J as Z}from"./vue.bd0669ce.js";import{u as G}from"./routesList.32d6bb58.js";import{u as Q}from"./themeConfig.cb88f033.js";import{o as X}from"./other.e9eeae65.js";import{e as ee}from"./mitt.7f99bbc0.js";import{_ as te}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.ee56f1f7.js";import"./index.2f1ef0a5.js";import"./_commonjsHelpers.35101cd5.js";import"./index.aa7cec2e.js";import"./keepAliveNames.f05bad75.js";import"./storage.b628b270.js";import"./userInfo.f7c9dd73.js";import"./loading.3e617409.js";import"./tagsViewRoutes.054c4a6f.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./vue-i18n.cjs.2a00fe88.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./toolsValidate.7cb139e2.js";const ne={class:"el-menu-horizontal-warp"},oe=$({name:"navMenuHorizontal"}),se=$({...oe,props:{menuList:{type:Array,default:()=>[]}},setup(v){const x=v,z=V(()=>P(()=>import("./subItem.65102a5d.js"),["assets/subItem.65102a5d.js","assets/vue.bd0669ce.js","assets/other.e9eeae65.js","assets/preload-helper.101896b7.js","assets/index.ee56f1f7.js","assets/index.2f1ef0a5.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.8b89e2e0.css","assets/toolsValidate.7cb139e2.js"])),c=j(),A=G(),M=Q(),{routesList:b}=k(A),{themeConfig:d}=k(M),w=F(),u=N({defaultActive:""}),D=q(()=>x.menuList),B=n=>{const e=n.wheelDelta||-n.deltaY*40;c.value.$refs.wrapRef.scrollLeft=c.value.$refs.wrapRef.scrollLeft+e/4},H=()=>{Z(()=>{let n=document.querySelector(".el-menu.el-menu--horizontal li.is-active");if(!n)return!1;c.value.$refs.wrapRef.scrollLeft=n.offsetLeft})},_=n=>n.filter(e=>{var t;return!((t=e.meta)!=null&&t.isHide)}).map(e=>(e=Object.assign({},e),e.children&&(e.children=_(e.children)),e)),I=n=>{const e=n.split("/");let t={children:[]};return _(b.value).map((s,m)=>{s.path===`/${e[1]}`&&(s.k=m,t.item={...s},t.children=[{...s}],s.children&&(t.children=s.children))}),t},h=n=>{const{path:e,meta:t}=n;if(d.value.layout==="classic")u.defaultActive=`/${e==null?void 0:e.split("/")[1]}`;else{const s=t!=null&&t.isDynamic?t.isDynamicPath.split("/"):e.split("/");s.length>=4&&(t==null?void 0:t.isHide)?u.defaultActive=s.splice(0,3).join("/"):u.defaultActive=e}},T=n=>{X.handleOpenLink(n)};return J(()=>{h(w)}),W(()=>{H()}),K(n=>{h(n);let{layout:e,isClassicSplitMenu:t}=d.value;e==="classic"&&t&&ee.emit("setSendClassicChildren",I(n.path))}),(n,e)=>{const t=l("SvgIcon"),s=l("el-sub-menu"),m=l("el-menu-item"),E=l("el-menu"),O=l("el-scrollbar");return a(),p("div",ne,[i(O,{onWheel:R(B,["prevent"]),ref_key:"elMenuHorizontalScrollRef",ref:c},{default:r(()=>[i(E,{router:"","default-active":u.defaultActive,ellipsis:!1,"background-color":"transparent",mode:"horizontal"},{default:r(()=>[(a(!0),p(C,null,U(y(D),o=>(a(),p(C,null,[o.children&&o.children.length>0?(a(),L(s,{index:o.path,key:o.path},{title:r(()=>[i(t,{name:o.meta.icon},null,8,["name"]),g("span",null,f(n.$t(o.meta.title)),1)]),default:r(()=>[i(y(z),{chil:o.children},null,8,["chil"])]),_:2},1032,["index"])):(a(),L(m,{index:o.path,key:o.path},Y({_:2},[!o.meta.isLink||o.meta.isLink&&o.meta.isIframe?{name:"title",fn:r(()=>[i(t,{name:o.meta.icon},null,8,["name"]),S(" "+f(n.$t(o.meta.title)),1)]),key:"0"}:{name:"title",fn:r(()=>[g("a",{class:"w100",onClick:R(ie=>T(o),["prevent"])},[i(t,{name:o.meta.icon},null,8,["name"]),S(" "+f(n.$t(o.meta.title)),1)],8,["onClick"])]),key:"1"}]),1032,["index"]))],64))),256))]),_:1},8,["default-active"])]),_:1},8,["onWheel"])])}}});const Ae=te(se,[["__scopeId","data-v-161df1d0"]]);export{Ae as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/html.d546bcd2.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/html.d546bcd2.js new file mode 100644 index 00000000..ff925916 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/html.d546bcd2.js @@ -0,0 +1 @@ +import{m as p}from"./monaco.c8c1dd6a.js";import"./preload-helper.101896b7.js";import"./vue.bd0669ce.js";var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!c.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return t},u=(t,e,n)=>(a(t,e,"default"),n&&a(n,e,"default")),i={};u(i,p);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],k={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},g={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{k as conf,g as language}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/htmlMode.607ee399.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/htmlMode.607ee399.js new file mode 100644 index 00000000..033cfce3 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/htmlMode.607ee399.js @@ -0,0 +1,4 @@ +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./monaco.c8c1dd6a.js";import"./preload-helper.101896b7.js";import"./vue.bd0669ce.js";var Ge=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=Object.getOwnPropertyNames,Ze=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ye(n))!Ze.call(e,t)&&t!==i&&Ge(e,t,{get:()=>n[t],enumerable:!(r=Je(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};Ke(c,Qe);var et=2*60*1e3,Me=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>et&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var re;(function(e){function n(r,t,a,o,u){var f={startLine:r,endLine:t};return s.defined(a)&&(f.startCharacter=a),s.defined(o)&&(f.endCharacter=o),s.defined(u)&&(f.kind=u),f}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var U;(function(e){function n(r,t,a,o,u,f){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var ge;(function(e){e.asIs=1,e.adjustIndentation=2})(ge||(ge={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=f[v],b=a.offsetAt(w.range.start),g=a.offsetAt(w.range.end);if(g<=d)u=u.substring(0,b)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,f=a.slice(0,u),d=a.slice(u);t(f,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(g){return g===!0||g===!1}e.boolean=t;function a(g){return n.call(g)==="[object String]"}e.string=a;function o(g){return n.call(g)==="[object Number]"}e.number=o;function u(g,y,N){return n.call(g)==="[object Number]"&&y<=g&&g<=N}e.numberRange=u;function f(g){return n.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=f;function d(g){return n.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=d;function v(g){return n.call(g)==="[object Function]"}e.func=v;function w(g){return g!==null&&typeof g=="object"}e.objectLiteral=w;function b(g,y){return Array.isArray(g)&&g.every(y)}e.typedArray=b})(s||(s={}));var _t=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>nt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function rt(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function nt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var it=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),f=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:st(d.command),range:u,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:f}})}};function A(e){if(!!e)return{character:e.column-1,line:e.lineNumber-1}}function Se(e){if(!!e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(!!e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(!!e)return{range:_(e.range),text:e.newText}}function st(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(!!t)return{range:_(t.range),contents:ct(t.contents)}})}};function ut(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:ut(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function ct(e){if(!!e)return Array.isArray(e)?e.map(Re):[Re(e)]}var Fe=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(!!t)return t.map(a=>({range:_(a.range),kind:dt(a.kind)}))})}};function dt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var wt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(!!t)return[Le(t)]})}};function Le(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var kt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(!!a)return a.map(Le)})}},je=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>gt(a))}};function gt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var Ne=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(!!r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ft(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ft(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var We=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(!!r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},He=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Oe(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},Ue=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Se(n),Oe(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Oe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var bt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(!!r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Se(n.range))).then(t=>{if(!!t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Ve=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(!!t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=lt(a.kind)),o})})}};function lt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var ze=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(!!t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},Xe=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function Et(e){const n=new Me(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new Xe(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Fe(i)),c.languages.registerLinkProvider(r,new We(i)),c.languages.registerFoldingRangeProvider(r,new Ve(i)),c.languages.registerDocumentSymbolProvider(r,new Ne(i)),c.languages.registerSelectionRangeProvider(r,new ze(i)),c.languages.registerRenameProvider(r,new je(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new He(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new Ue(i)))}function xt(e){const n=[],i=[],r=new Me(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Be(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Xe(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Fe(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new We(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new Ne(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new je(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Ve(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new ze(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new He(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new Ue(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Be(e)}}function Be(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,wt as DefinitionAdapter,_t as DiagnosticsAdapter,bt as DocumentColorAdapter,He as DocumentFormattingEditProvider,Fe as DocumentHighlightAdapter,We as DocumentLinkAdapter,Ue as DocumentRangeFormattingEditProvider,Ne as DocumentSymbolAdapter,Ve as FoldingRangeAdapter,Te as HoverAdapter,kt as ReferenceAdapter,je as RenameAdapter,ze as SelectionRangeAdapter,Me as WorkerManager,A as fromPosition,Se as fromRange,xt as setupMode,Et as setupMode1,_ as toRange,j as toTextEdit}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/iframes.d821f897.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/iframes.d821f897.js new file mode 100644 index 00000000..13a84a19 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/iframes.d821f897.js @@ -0,0 +1 @@ +import{h,r as _,aq as w,a as d,w as m,ac as I,j as n,k as o,l as k,F as O,Z as x,u as c,y as p,D as v,x as L,E as R,al as b,J as B}from"./vue.bd0669ce.js";const D={class:"layout-padding layout-padding-unset layout-iframe"},E={class:"layout-padding-auto layout-padding-view"},P=["src","data-url"],S=h({name:"layoutIframeView"}),V=h({...S,props:{refreshKey:{type:String,default:()=>""},name:{type:String,default:()=>"slide-right"},list:{type:Array,default:()=>[]}},setup(f){const r=f,l=_(),i=w(),g=d(()=>r.list.filter(e=>{var t;return(t=e.meta)==null?void 0:t.isIframeOpen})),y=d(()=>i.path),u=(e,t)=>{B(()=>{if(!l.value)return!1;l.value.forEach(s=>{s.dataset.url===e&&(s.onload=()=>{var a;((a=t.meta)==null?void 0:a.isIframeOpen)&&t.meta.loading&&(t.meta.loading=!1)})})})};return m(()=>i.fullPath,e=>{const t=r.list.find(s=>s.path===e);if(!t)return!1;t.meta.isIframeOpen||(t.meta.isIframeOpen=!0),u(e,t)},{immediate:!0}),m(()=>r.refreshKey,()=>{const e=r.list.find(t=>t.path===i.path);if(!e)return!1;e.meta.isIframeOpen&&(e.meta.isIframeOpen=!1),setTimeout(()=>{e.meta.isIframeOpen=!0,e.meta.loading=!0,u(i.fullPath,e)})},{deep:!0}),(e,t)=>{const s=I("loading");return n(),o("div",D,[k("div",E,[(n(!0),o(O,null,x(c(g),a=>p((n(),o("div",{class:"w100",key:a.path,"element-loading-background":"white"},[v(b,{name:f.name,mode:"out-in"},{default:L(()=>[p((n(),o("iframe",{src:a.meta.isLink,key:a.path,frameborder:"0",height:"100%",width:"100%",style:{position:"absolute"},"data-url":a.path,ref_for:!0,ref_key:"iframeRef",ref:l},null,8,P)),[[R,c(y)===a.path]])]),_:2},1032,["name"])])),[[s,a.meta.loading]])),128))])])}}});export{V as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.040ace8d.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.040ace8d.js new file mode 100644 index 00000000..2704904e --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.040ace8d.js @@ -0,0 +1 @@ +import{_ as a}from"./preload-helper.101896b7.js";import{h as C,ap as i,ar as p,aq as A,K as P,a as f,o as V,a4 as O,j as d,k as F,u as r,v as h,A as L,D as v}from"./vue.bd0669ce.js";import{u as M}from"./routesList.32d6bb58.js";import{u as j}from"./themeConfig.cb88f033.js";import{e as _}from"./mitt.7f99bbc0.js";import{_ as w}from"./_plugin-vue_export-helper.c27b6911.js";const H={class:"layout-navbars-breadcrumb-index"},N=C({name:"layoutBreadcrumbIndex"}),U=C({...N,setup(q){const y=i(()=>a(()=>import("./breadcrumb.f85ad9c4.js"),["assets/breadcrumb.f85ad9c4.js","assets/vue.bd0669ce.js","assets/storage.b628b270.js","assets/other.e9eeae65.js","assets/preload-helper.101896b7.js","assets/index.ee56f1f7.js","assets/index.2f1ef0a5.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.8b89e2e0.css","assets/toolsValidate.7cb139e2.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/breadcrumb.9ac6d349.css"])),R=i(()=>a(()=>import("./user.82936772.js"),["assets/user.82936772.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/userInfo.f7c9dd73.js","assets/storage.b628b270.js","assets/themeConfig.cb88f033.js","assets/other.e9eeae65.js","assets/index.ee56f1f7.js","assets/index.2f1ef0a5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.8b89e2e0.css","assets/toolsValidate.7cb139e2.js","assets/mitt.7f99bbc0.js","assets/index.c41e61d7.js","assets/index.dbe87b05.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/user.db6d3d47.css"])),b=i(()=>a(()=>import("./index.5540ac82.js"),["assets/index.5540ac82.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/logo-mini.323e783b.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.880bac10.css"])),g=i(()=>a(()=>import("./horizontal.eea3239c.js"),["assets/horizontal.eea3239c.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/other.e9eeae65.js","assets/index.ee56f1f7.js","assets/index.2f1ef0a5.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/storage.b628b270.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.8b89e2e0.css","assets/toolsValidate.7cb139e2.js","assets/mitt.7f99bbc0.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/horizontal.f075ceb8.css"])),x=M(),E=j(),{themeConfig:c}=p(E),{routesList:u}=p(x),I=A(),l=P({menuList:[]}),S=f(()=>{let{isShowLogo:t,layout:e}=c.value;return t&&e==="classic"||t&&e==="transverse"}),T=f(()=>{let{layout:t,isClassicSplitMenu:e}=c.value;return t==="transverse"||e&&t==="classic"}),m=()=>{let{layout:t,isClassicSplitMenu:e}=c.value;if(t==="classic"&&e){l.menuList=k(n(u.value));const s=B(I.path);_.emit("setSendClassicChildren",s)}else l.menuList=n(u.value)},k=t=>(t.map(e=>{e.children&&delete e.children}),t),n=t=>t.filter(e=>{var s;return!((s=e.meta)!=null&&s.isHide)}).map(e=>(e=Object.assign({},e),e.children&&(e.children=n(e.children)),e)),B=t=>{const e=t.split("/");let s={children:[]};return n(u.value).map((o,D)=>{o.path===`/${e[1]}`&&(o.k=D,s.item={...o},s.children=[{...o}],o.children&&(s.children=o.children))}),s};return V(()=>{m(),_.on("getBreadcrumbIndexSetFilterRoutes",()=>{m()})}),O(()=>{_.off("getBreadcrumbIndexSetFilterRoutes",()=>{})}),(t,e)=>(d(),F("div",H,[r(S)?(d(),h(r(b),{key:0})):L("",!0),v(r(y)),r(T)?(d(),h(r(g),{key:1,menuList:l.menuList},null,8,["menuList"])):L("",!0),v(r(R))]))}});const W=w(U,[["__scopeId","data-v-3b707f43"]]);export{W as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.04106017.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.04106017.js new file mode 100644 index 00000000..00fa80ff --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.04106017.js @@ -0,0 +1 @@ +import{_ as zt}from"./preload-helper.101896b7.js";import{g as Dt,h as Wt,S as Lt,j as Pt,Z as Bt,k as vt,l as Gt,n as Xt,o as Yt,p as Ht,q as bt,s as Vt,t as qt,u as Zt,i as at}from"./echarts.c5874920.js";import"./echarts.9c516ade.js";import{h as kt,ap as Nt,r as it,ar as jt,K as Kt,o as Ut,aG as Jt,w as $t,a9 as St,j as Z,k as N,l as a,D as j,u as Qt,F as mt,Z as gt,aw as te,aE as ee,aF as ae,J as ie,n as ne,C as K}from"./vue.bd0669ce.js";import{u as se}from"./tagsViewRoutes.054c4a6f.js";import{_ as oe}from"./_plugin-vue_export-helper.c27b6911.js";import"./storage.b628b270.js";Dt({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(c){return{fill:c.get("color")}},visualDrawType:"fill",optionUpdated:function(){var c=this.option;c.gridSize=Math.max(Math.floor(c.gridSize),4)},getInitialData:function(c,s){var i=Wt(c.data,{coordDimensions:["value"]}),l=new Lt(i,this);return l.initData(c.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}});Pt({type:"wordCloud",render:function(c,s,i){var l=this.group;l.removeAll();var t=c.getData(),_=c.get("gridSize");c.layoutInstance.ondraw=function(h,n,k,y){var B=t.getItemModel(k),H=B.getModel("textStyle"),C=new Bt({style:vt(H),scaleX:1/y.info.mu,scaleY:1/y.info.mu,x:(y.gx+y.info.gw/2)*_,y:(y.gy+y.info.gh/2)*_,rotation:y.rot});C.setStyle({x:y.info.fillTextOffsetX,y:y.info.fillTextOffsetY+n*.5,text:h,verticalAlign:"middle",fill:t.getItemVisual(k,"style").fill,fontSize:n}),l.add(C),t.setItemGraphicEl(k,C),C.ensureState("emphasis").style=vt(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),C.ensureState("blur").style=vt(B.getModel(["blur","textStyle"]),{state:"blur"}),Gt(C,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),C.stateTransition={duration:c.get("animation")?c.get(["stateAnimation","duration"]):0,easing:c.get(["stateAnimation","easing"])},C.__highDownDispatcher=!0},this._model=c},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var i=[void 0],l="zero-timeout-message",t=function(h){var n=i.length;return i.push(h),window.postMessage(l+n.toString(36),"*"),n};return window.addEventListener("message",function(h){if(!(typeof h.data!="string"||h.data.substr(0,l.length)!==l)){h.stopImmediatePropagation();var n=parseInt(h.data.substr(l.length),36);!i[n]||(i[n](),i[n]=void 0)}},!0),window.clearImmediate=function(h){!i[h]||(i[h]=void 0)},t}()||function(i){window.setTimeout(i,0)}}());window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(i){window.clearTimeout(i)}}());var wt=function(){var s=document.createElement("canvas");if(!s||!s.getContext)return!1;var i=s.getContext("2d");return!(!i||!i.getImageData||!i.fillText||!Array.prototype.some||!Array.prototype.push)}(),pt=function(){if(!!wt){for(var s=document.createElement("canvas").getContext("2d"),i=20,l,t;i;){if(s.font=i.toString(10)+"px sans-serif",s.measureText("W").width===l&&s.measureText("m").width===t)return i+1;l=s.measureText("W").width,t=s.measureText("m").width,i--}return 0}}(),re=function(c){if(Array.isArray(c)){var s=c.slice();return s.splice(0,2),s}else return[]},le=function(s){for(var i,l,t=s.length;t;)i=Math.floor(Math.random()*t),l=s[--t],s[t]=s[i],s[i]=l;return s},tt={},ot=function(s,i){if(!wt)return;var l=Math.floor(Math.random()*Date.now());Array.isArray(s)||(s=[s]),s.forEach(function(v,e){if(typeof v=="string"){if(s[e]=document.getElementById(v),!s[e])throw new Error("The element id specified is not found.")}else if(!v.tagName&&!v.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var t={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(i)for(var _ in i)_ in t&&(t[_]=i[_]);if(typeof t.weightFactor!="function"){var h=t.weightFactor;t.weightFactor=function(e){return e*h}}if(typeof t.shape!="function")switch(t.shape){case"circle":default:t.shape="circle";break;case"cardioid":t.shape=function(e){return 1-Math.sin(e)};break;case"diamond":t.shape=function(e){var o=e%(2*Math.PI/4);return 1/(Math.cos(o)+Math.sin(o))};break;case"square":t.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":t.shape=function(e){var o=e%(2*Math.PI/3);return 1/(Math.cos(o)+Math.sqrt(3)*Math.sin(o))};break;case"triangle":case"triangle-upright":t.shape=function(e){var o=(e+Math.PI*3/2)%(2*Math.PI/3);return 1/(Math.cos(o)+Math.sqrt(3)*Math.sin(o))};break;case"pentagon":t.shape=function(e){var o=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(o)+.726543*Math.sin(o))};break;case"star":t.shape=function(e){var o=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-o)+3.07768*Math.sin(2*Math.PI/10-o)):1/(Math.cos(o)+3.07768*Math.sin(o))};break}t.gridSize=Math.max(Math.floor(t.gridSize),4);var n=t.gridSize,k=n-t.maskGapWidth,y=Math.abs(t.maxRotation-t.minRotation),B=Math.min(t.maxRotation,t.minRotation),H=t.rotationStep,C,M,E,G,F,g,O;function U(v,e){return"hsl("+(Math.random()*360).toFixed()+","+(Math.random()*30+70).toFixed()+"%,"+(Math.random()*(e-v)+v).toFixed()+"%)"}switch(t.color){case"random-dark":O=function(){return U(10,50)};break;case"random-light":O=function(){return U(50,90)};break;default:typeof t.color=="function"&&(O=t.color);break}var V;typeof t.fontWeight=="function"&&(V=t.fontWeight);var D=null;typeof t.classes=="function"&&(D=t.classes);var Y=!1,nt=[],rt,_t=function(e){var o=e.currentTarget,r=o.getBoundingClientRect(),u,d;e.touches?(u=e.touches[0].clientX,d=e.touches[0].clientY):(u=e.clientX,d=e.clientY);var f=u-r.left,T=d-r.top,p=Math.floor(f*(o.width/r.width||1)/n),w=Math.floor(T*(o.height/r.height||1)/n);return nt[p]?nt[p][w]:null},yt=function(e){var o=_t(e);if(rt!==o){if(rt=o,!o){t.hover(void 0,void 0,e);return}t.hover(o.item,o.dimension,e)}},lt=function(e){var o=_t(e);!o||(t.click(o.item,o.dimension,e),e.preventDefault())},dt=[],Ct=function(e){if(dt[e])return dt[e];var o=e*8,r=o,u=[];for(e===0&&u.push([G[0],G[1],0]);r--;){var d=1;t.shape!=="circle"&&(d=t.shape(r/o*2*Math.PI)),u.push([G[0]+e*d*Math.cos(-r/o*2*Math.PI),G[1]+e*d*Math.sin(-r/o*2*Math.PI)*t.ellipticity,r/o*2*Math.PI])}return dt[e]=u,u},ct=function(){return t.abortThreshold>0&&new Date().getTime()-g>t.abortThreshold},Mt=function(){return t.rotateRatio===0||Math.random()>t.rotateRatio?0:y===0?B:B+Math.round(Math.random()*y/H)*H},Tt=function(e,o,r,u){var d=t.weightFactor(o);if(d<=t.minSize)return!1;var f=1;dq[1]&&(q[1]=$),Jq[2]&&(q[2]=J);break t}}return{mu:f,occupied:xt,bounds:q,gw:A,gh:S,fillTextOffsetX:I,fillTextOffsetY:m,fillTextWidth:z,fillTextHeight:x,fontSize:d}},It=function(e,o,r,u,d){for(var f=d.length;f--;){var T=e+d[f][0],p=o+d[f][1];if(T>=M||p>=E||T<0||p<0){if(!t.drawOutOfBound)return!1;continue}if(!C[T][p])return!1}return!0},Et=function(e,o,r,u,d,f,T,p,w,z){var x=r.fontSize,b;O?b=O(u,d,x,f,T,z):b=t.color;var R;V?R=V(u,d,x,z):R=t.fontWeight;var L;D?L=D(u,d,x,z):L=t.classes,s.forEach(function(P){if(P.getContext){var I=P.getContext("2d"),m=r.mu;I.save(),I.scale(1/m,1/m),I.font=R+" "+(x*m).toString(10)+"px "+t.fontFamily,I.fillStyle=b,I.translate((e+r.gw/2)*n*m,(o+r.gh/2)*n*m),p!==0&&I.rotate(-p),I.textBaseline="middle",I.fillText(u,r.fillTextOffsetX*m,(r.fillTextOffsetY+x*.5)*m),I.restore()}else{var S=document.createElement("span"),A="";A="rotate("+-p/Math.PI*180+"deg) ",r.mu!==1&&(A+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var X={position:"absolute",display:"block",font:R+" "+x*r.mu+"px "+t.fontFamily,left:(e+r.gw/2)*n+r.fillTextOffsetX+"px",top:(o+r.gh/2)*n+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:x+"px",whiteSpace:"nowrap",transform:A,webkitTransform:A,msTransform:A,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};b&&(X.color=b),S.textContent=u;for(var Q in X)S.style[Q]=X[Q];if(w)for(var st in w)S.setAttribute(st,w[st]);L&&(S.className+=L),P.appendChild(S)}})},Ft=function(e,o,r,u,d){if(!(e>=M||o>=E||e<0||o<0)){if(C[e][o]=!1,r){var f=s[0].getContext("2d");f.fillRect(e*n,o*n,k,k)}Y&&(nt[e][o]={item:d,dimension:u})}},Rt=function(e,o,r,u,d,f){var T=d.occupied,p=t.drawMask,w;p&&(w=s[0].getContext("2d"),w.save(),w.fillStyle=t.maskColor);var z;if(Y){var x=d.bounds;z={x:(e+x[3])*n,y:(o+x[0])*n,w:(x[1]-x[3]+1)*n,h:(x[2]-x[0]+1)*n}}for(var b=T.length;b--;){var R=e+T[b][0],L=o+T[b][1];R>=M||L>=E||R<0||L<0||Ft(R,L,p,z,f)}p&&w.restore()},At=function v(e,o){if(o>20)return null;var r,u,d;Array.isArray(e)?(r=e[0],u=e[1]):(r=e.word,u=e.weight,d=e.attributes);var f=Mt(),T=re(e),p=Tt(r,u,f,T);if(!p||ct())return!1;if(!t.drawOutOfBound&&!t.shrinkToFit){var w=p.bounds;if(w[1]-w[3]+1>M||w[2]-w[0]+1>E)return!1}for(var z=F+1,x=function(P){var I=Math.floor(P[0]-p.gw/2),m=Math.floor(P[1]-p.gh/2),S=p.gw,A=p.gh;return It(I,m,S,A,p.occupied)?(Et(I,m,p,r,u,F-z,P[2],f,d,T),Rt(I,m,S,A,p,e),{gx:I,gy:m,rot:f,info:p}):!1};z--;){var b=Ct(F-z);t.shuffle&&(b=[].concat(b),le(b));for(var R=0;R=t.list.length){b(tt[l]),et("wordcloudstop",!1),P("wordcloudstart",I),delete tt[l];return}g=new Date().getTime();var S=At(t.list[d],0),A=!et("wordclouddrawn",!0,{item:t.list[d],drawn:S});if(ct()||A){b(tt[l]),t.abort(),et("wordcloudabort",!1),et("wordcloudstop",!1),P("wordcloudstart",I);return}d++,tt[l]=x(m,t.wait)}},t.wait)}};Ot()};ot.isSupported=wt;ot.minFontSize=pt;if(!ot.isSupported)throw new Error("Sorry your browser not support wordCloud");function de(c){for(var s=c.getContext("2d"),i=s.getImageData(0,0,c.width,c.height),l=s.createImageData(i),t=0,_=0,h=0;h128){var k=i.data[h]+i.data[h+1]+i.data[h+2];t+=k,++_}}for(var y=t/_,h=0;hy?(l.data[h]=0,l.data[h+1]=0,l.data[h+2]=0,l.data[h+3]=0):(l.data[h]=255,l.data[h+1]=255,l.data[h+2]=255,l.data[h+3]=255)}s.putImageData(l,0,0)}Xt(function(c,s){c.eachSeriesByType("wordCloud",function(i){var l=Vt(i.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()}),t=i.get("keepAspect"),_=i.get("maskImage"),h=_?_.width/_.height:1;t&&ce(l,h);var n=i.getData(),k=document.createElement("canvas");k.width=l.width,k.height=l.height;var y=k.getContext("2d");if(_)try{y.drawImage(_,0,0,k.width,k.height),de(k)}catch(F){console.error("Invalid mask image"),console.error(F.toString())}var B=i.get("sizeRange"),H=i.get("rotationRange"),C=n.getDataExtent("value"),M=Math.PI/180,E=i.get("gridSize");ot(k,{list:n.mapArray("value",function(F,g){var O=n.getItemModel(g);return[n.getName(g),O.get("textStyle.fontSize",!0)||qt(F,C,B),g]}).sort(function(F,g){return g[1]-F[1]}),fontFamily:i.get("textStyle.fontFamily")||i.get("emphasis.textStyle.fontFamily")||c.get("textStyle.fontFamily"),fontWeight:i.get("textStyle.fontWeight")||i.get("emphasis.textStyle.fontWeight")||c.get("textStyle.fontWeight"),gridSize:E,ellipticity:l.height/l.width,minRotation:H[0]*M,maxRotation:H[1]*M,clearCanvas:!_,rotateRatio:1,rotationStep:i.get("rotationStep")*M,drawOutOfBound:i.get("drawOutOfBound"),shrinkToFit:i.get("shrinkToFit"),layoutAnimation:i.get("layoutAnimation"),shuffle:!1,shape:i.get("shape")});function G(F){var g=F.detail.item;F.detail.drawn&&i.layoutInstance.ondraw&&(F.detail.drawn.gx+=l.x/E,F.detail.drawn.gy+=l.y/E,i.layoutInstance.ondraw(g[0],g[1],g[2],F.detail.drawn))}k.addEventListener("wordclouddrawn",G),i.layoutInstance&&i.layoutInstance.dispose(),i.layoutInstance={ondraw:null,dispose:function(){k.removeEventListener("wordclouddrawn",G),k.addEventListener("wordclouddrawn",function(F){F.preventDefault()})}}})});Yt(function(c){var s=(c||{}).series;!Ht(s)&&(s=s?[s]:[]);var i=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];bt(s,function(t){if(t&&t.type==="wordCloud"){var _=t.textStyle||{};l(_.normal),l(_.emphasis)}});function l(t){t&&bt(i,function(_){t.hasOwnProperty(_)&&(t["text"+Zt(_)]=t[_])})}});function ce(c,s){var i=c.width,l=c.height;i>l*s?(c.x+=(i-l*s)/2,c.width=l*s):(c.y+=(l-i/s)/2,c.height=i/s)}const he=[{v1:"时间",v2:"天气",v3:"温度",v5:"降水",v7:"风力",type:"title"},{v1:"今天",v2:"ele-Sunny",v3:"20°/26°",v5:"50%",v7:"13m/s"},{v1:"明天",v2:"ele-Lightning",v3:"20°/26°",v5:"50%",v7:"13m/s"}],ue=[{v2:"阳光玫瑰种植",v3:"126天",v4:"设备在线"}],fe=[{label:"温度"},{label:"光照"},{label:"湿度"},{label:"风力"}],W=c=>(ee("data-v-27c023bc"),c=c(),ae(),c),ve={class:"chart-scrollbar layout-padding"},me={class:"chart-warp layout-padding-auto layout-padding-view"},ge={class:"chart-warp-top"},pe={class:"chart-warp-bottom"},we={class:"big-data-down-left"},_e={class:"flex-warp-item"},ye={class:"flex-warp-item-box"},xe=W(()=>a("div",{class:"flex-title"},"天气预报",-1)),be={class:"flex-content"},Se={class:"sky"},ke=W(()=>a("div",{class:"sky-center"},[a("div",{class:"mb2"},[a("span",null,"多云转晴"),a("span",null,"东南风"),a("span",{class:"span ml5"},"良")])],-1)),Ce=W(()=>a("div",{class:"sky-right"},[a("span",null,"25"),a("span",null,"°C")],-1)),Me={class:"sky-dd"},Te={key:0},Ie={key:1},Ee={class:"tip"},Fe={class:"flex-warp-item"},Re={class:"flex-warp-item-box"},Ae=W(()=>a("div",{class:"flex-title"},"当前设备状态",-1)),Oe={class:"flex-content flex-content-overflow"},ze={class:"d-states"},De={class:"d-states-item"},We=W(()=>a("div",{class:"d-states-flex"},[a("div",{class:"d-states-item-label"},"园区设备数"),a("div",{class:"d-states-item-value"},"99")],-1)),Le={class:"d-states-item"},Pe=W(()=>a("div",{class:"d-states-flex"},[a("div",{class:"d-states-item-label"},"预警设备数"),a("div",{class:"d-states-item-value"},"10")],-1)),Be={class:"d-states-item"},Ge=W(()=>a("div",{class:"d-states-flex"},[a("div",{class:"d-states-item-label"},"运行设备数"),a("div",{class:"d-states-item-value"},"20")],-1)),Xe={class:"d-btn"},Ye=W(()=>a("i",{class:"d-btn-item-left el-icon-money"},null,-1)),He={class:"d-btn-item-center"},Ve={class:"d-btn-item-eight"},qe={class:"flex-warp-item"},Ze={class:"flex-warp-item-box"},Ne=W(()=>a("div",{class:"flex-title"},"近30天预警总数",-1)),je={class:"flex-content"},Ke={class:"big-data-down-center"},Ue={class:"big-data-down-center-one"},Je={class:"big-data-down-center-one-content"},$e={class:"big-data-down-center-two"},Qe={class:"flex-warp-item-box"},ta=W(()=>a("div",{class:"flex-title"},[a("span",null,"当前设备监测"),a("span",{class:"flex-title-small"},"单位:次")],-1)),ea={class:"flex-content"},aa={class:"flex-content-left"},ia={class:"monitor-wave"},na={class:"monitor-z-index"},sa={class:"monitor-item-label"},oa={class:"flex-content-right"},ra={class:"big-data-down-right"},la={class:"flex-warp-item"},da={class:"flex-warp-item-box"},ca=W(()=>a("div",{class:"flex-title"},[a("span",null,"近7天产品追溯扫码统计"),a("span",{class:"flex-title-small"},"单位:次")],-1)),ha={class:"flex-content"},ua={class:"flex-warp-item"},fa={class:"flex-warp-item-box"},va=W(()=>a("div",{class:"flex-title"},"当前任务统计",-1)),ma={class:"flex-content"},ga=te('
25
待办任务
12
施肥
3
施药
5
农事
',1),pa={class:"progress"},wa={class:"progress-item"},_a=W(()=>a("span",null,"施肥率",-1)),ya={class:"progress-box"},xa={class:"progress-item"},ba=W(()=>a("span",null,"施药率",-1)),Sa={class:"progress-box"},ka={class:"progress-item"},Ca=W(()=>a("span",null,"农事率",-1)),Ma={class:"progress-box"},Ta={class:"flex-warp-item"},Ia={class:"flex-warp-item-box"},Ea=W(()=>a("div",{class:"flex-title"},[a("span",null,"近7天投入品记录"),a("span",{class:"flex-title-small"},"单位:件")],-1)),Fa={class:"flex-content"},Ra=kt({name:"chartIndex"}),Aa=kt({...Ra,setup(c){const s=Nt(()=>zt(()=>import("./head.363793c6.js"),["assets/head.363793c6.js","assets/formatTime.057ac5b9.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/head.0da8c934.css"])),i=it(),l=it(),t=it(),_=it(),h=it(),n=se(),{isTagsViewCurrenFull:k}=jt(n),y=Kt({skyList:he,dBtnList:ue,chartData4List:fe,myCharts:[]}),B=()=>{const g=at(i.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{},series:[{type:"wordCloud",sizeRange:[12,40],rotationRange:[0,0],rotationStep:45,gridSize:Math.random()*20+5,shape:"circle",width:"100%",height:"100%",textStyle:{fontFamily:"sans-serif",fontWeight:"bold",color:function(){return`rgb(${[Math.round(Math.random()*160),Math.round(Math.random()*160),Math.round(Math.random()*160)].join(",")})`}},data:[{name:"vue-next-admin",value:520},{name:"lyt",value:520},{name:"next-admin",value:500},{name:"更名",value:420},{name:"智慧农业",value:520},{name:"男神",value:2.64},{name:"好身材",value:4.03},{name:"校草",value:24.95},{name:"酷",value:4.04},{name:"时尚",value:5.27},{name:"阳光活力",value:5.8},{name:"初恋",value:3.09},{name:"英俊潇洒",value:24.71},{name:"霸气",value:6.33},{name:"腼腆",value:2.55},{name:"蠢萌",value:3.88},{name:"青春",value:8.04},{name:"网红",value:5.87},{name:"萌",value:6.97},{name:"认真",value:2.53},{name:"古典",value:2.49},{name:"温柔",value:3.91},{name:"有个性",value:3.25},{name:"可爱",value:9.93},{name:"幽默诙谐",value:3.65}]}]};g.setOption(O),y.myCharts.push(g)},H=()=>{const g=at(l.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["1天","2天","3天","4天","5天","6天","7天"]},yAxis:{type:"value"},series:[{name:"邮件营销",type:"line",stack:"总量",data:[12,32,11,34,90,23,21]},{name:"联盟广告",type:"line",stack:"总量",data:[22,82,91,24,90,30,30]},{name:"视频广告",type:"line",stack:"总量",data:[50,32,18,14,90,30,50]}]};g.setOption(O),y.myCharts.push(g)},C=()=>{const g=at(t.value),O={grid:{top:50,right:20,bottom:30,left:30},tooltip:{trigger:"item"},series:[{name:"面积模式",type:"pie",radius:[20,50],center:["50%","50%"],roseType:"area",itemStyle:{borderRadius:8},data:[{value:40,name:"监测设备预警"},{value:38,name:"天气预警"},{value:32,name:"任务预警"},{value:30,name:"病虫害预警"}]}]};g.setOption(O),y.myCharts.push(g)},M=()=>{const g=at(_.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["02:00","04:00","06:00","08:00","10:00","12:00","14:00"]},yAxis:{type:"value"},series:[{itemStyle:{color:"#289df5",borderColor:"#289df5",areaStyle:{type:"default",opacity:.1}},data:[20,32,31,34,12,13,20],type:"line",areaStyle:{}}]};g.setOption(O),y.myCharts.push(g)},E=()=>{const g=at(h.value),O={grid:{top:15,right:15,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",data:["1天","2天","3天","4天","5天","6天","7天"]},yAxis:{type:"value"},series:[{data:[10,20,15,80,70,11,30],type:"bar"}]};g.setOption(O),y.myCharts.push(g)},G=()=>{ie(()=>{for(let g=0;g{window.addEventListener("resize",G)};return Ut(()=>{B(),H(),C(),M(),E(),F()}),Jt(()=>{G()}),$t(()=>k.value,()=>{G()}),(g,O)=>{const U=St("SvgIcon"),V=St("el-progress");return Z(),N("div",ve,[a("div",me,[a("div",ge,[j(Qt(s))]),a("div",pe,[a("div",we,[a("div",_e,[a("div",ye,[xe,a("div",be,[a("div",Se,[j(U,{name:"ele-Sunny",class:"sky-left"}),ke,Ce]),a("div",Me,[(Z(!0),N(mt,null,gt(y.skyList,(D,Y)=>(Z(),N("div",{class:ne(["sky-dl",{"sky-dl-first":Y===1}]),key:Y},[a("div",null,K(D.v1),1),D.type==="title"?(Z(),N("div",Te,K(D.v2),1)):(Z(),N("div",Ie,[j(U,{name:D.v2},null,8,["name"])])),a("div",null,K(D.v3),1),a("div",Ee,K(D.v5),1),a("div",null,K(D.v7),1)],2))),128))])])])]),a("div",Fe,[a("div",Re,[Ae,a("div",Oe,[a("div",ze,[a("div",De,[j(U,{name:"ele-Odometer",class:"i-bg1"}),We]),a("div",Le,[j(U,{name:"ele-FirstAidKit",class:"i-bg2"}),Pe]),a("div",Be,[j(U,{name:"ele-VideoPlay",class:"i-bg3"}),Ge])]),a("div",Xe,[(Z(!0),N(mt,null,gt(y.dBtnList,(D,Y)=>(Z(),N("div",{class:"d-btn-item",key:Y},[Ye,a("div",He,[a("div",null,K(D.v2)+"|"+K(D.v3),1)]),a("div",Ve,K(D.v4),1)]))),128))])])])]),a("div",qe,[a("div",Ze,[Ne,a("div",je,[a("div",{style:{height:"100%"},ref_key:"chartsWarningRef",ref:t},null,512)])])])]),a("div",Ke,[a("div",Ue,[a("div",Je,[a("div",{style:{height:"100%"},ref_key:"chartsCenterOneRef",ref:i},null,512)])]),a("div",$e,[a("div",Qe,[ta,a("div",ea,[a("div",aa,[(Z(!0),N(mt,null,gt(y.chartData4List,(D,Y)=>(Z(),N("div",{class:"monitor-item",key:Y},[a("div",ia,[a("div",na,[a("div",sa,K(D.label),1)])])]))),128))]),a("div",oa,[a("div",{style:{height:"100%"},ref_key:"chartsMonitorRef",ref:_},null,512)])])])])]),a("div",ra,[a("div",la,[a("div",da,[ca,a("div",ha,[a("div",{style:{height:"100%"},ref_key:"chartsSevenDaysRef",ref:l},null,512)])])]),a("div",ua,[a("div",fa,[va,a("div",ma,[ga,a("div",pa,[a("div",wa,[_a,a("div",ya,[j(V,{percentage:70,color:"#43bdf0"})])]),a("div",xa,[ba,a("div",Sa,[j(V,{percentage:36,color:"#43bdf0"})])]),a("div",ka,[Ca,a("div",Ma,[j(V,{percentage:91,color:"#43bdf0"})])])])])])]),a("div",Ta,[a("div",Ia,[Ea,a("div",Fa,[a("div",{style:{height:"100%"},ref_key:"chartsInvestmentRef",ref:h},null,512)])])])])])])])}}});const Xa=oe(Aa,[["__scopeId","data-v-27c023bc"]]);export{Xa as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.054af1f4.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.054af1f4.js new file mode 100644 index 00000000..4023dd99 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.054af1f4.js @@ -0,0 +1 @@ +import{h,a9 as d,ac as m,j as a,k as p,D as s,x as t,B as o,l as e,y as i,v as _,F as g,Z as u,C as x}from"./vue.bd0669ce.js";import{_ as w}from"./_plugin-vue_export-helper.c27b6911.js";const y={class:"preview-container layout-pd"},b={class:"flex-warp"},z={class:"flex-warp-item"},k={class:"flex-warp-item-box"},B={class:"flex-warp-item"},C={class:"flex-warp-item-box"},D={class:"flex-warp-item"},I={class:"flex-warp-item-box"},N={class:"flex-warp-item"},S={class:"flex-warp-item-box"},V={class:"flex-warp-item"},F={class:"flex-warp-item-box"},j={class:"flex-warp-item"},E={class:"flex-warp-item-box"},L={class:"flex-warp-item"},T={class:"flex-warp-item-box"},W={class:"waterfall-first"},Z={class:"w100 h100 flex"},q={class:"flex-margin"},A=h({name:"pagesWaves"}),G=h({...A,setup(H){return(J,K)=>{const v=d("el-row"),c=d("SvgIcon"),l=d("el-button"),r=d("el-card"),n=m("waves");return a(),p("div",y,[s(r,{shadow:"hover",header:"波浪指令效果(v-waves)作用于 btn"},{default:t(()=>[s(v,{class:"mb10",style:{color:"#808080"}},{default:t(()=>[o('可选参数 v-waves=" |light|red|orange|purple|green|teal"')]),_:1}),e("div",b,[e("div",z,[e("div",k,[i((a(),_(l,{size:"default"},{default:t(()=>[s(c,{name:"iconfont icon-bolangnengshiyanchang"}),o(" 默认效果 ")]),_:1})),[[n]])])]),e("div",B,[e("div",C,[i((a(),_(l,{type:"primary",size:"default"},{default:t(()=>[s(c,{name:"iconfont icon-bolangnengshiyanchang"}),o(" light 效果 ")]),_:1})),[[n,"light"]])])]),e("div",D,[e("div",I,[i((a(),_(l,{type:"success",size:"default"},{default:t(()=>[s(c,{name:"iconfont icon-bolangnengshiyanchang"}),o(" red 效果 ")]),_:1})),[[n,"red"]])])]),e("div",N,[e("div",S,[i((a(),_(l,{type:"info",size:"default"},{default:t(()=>[s(c,{name:"iconfont icon-bolangnengshiyanchang"}),o(" orange 效果 ")]),_:1})),[[n,"orange"]])])]),e("div",V,[e("div",F,[i((a(),_(l,{type:"warning",size:"default"},{default:t(()=>[s(c,{name:"iconfont icon-bolangnengshiyanchang"}),o(" purple 效果 ")]),_:1})),[[n,"purple"]])])]),e("div",j,[e("div",E,[i((a(),_(l,{type:"danger",size:"default"},{default:t(()=>[s(c,{name:"iconfont icon-bolangnengshiyanchang"}),o(" green 效果 ")]),_:1})),[[n,"green"]])])]),e("div",L,[e("div",T,[i((a(),_(l,{type:"primary",size:"default"},{default:t(()=>[s(c,{name:"iconfont icon-bolangnengshiyanchang"}),o(" teal 效果 ")]),_:1})),[[n,"teal"]])])])])]),_:1}),s(r,{shadow:"hover",header:"波浪指令效果(v-waves)作用于 div",class:"mt15"},{default:t(()=>[e("div",W,[(a(),p(g,null,u(12,f=>i(e("div",{class:"waterfall-first-item",key:f},[e("div",Z,[e("span",q,x(f),1)])]),[[n]])),64))])]),_:1})])}}});const P=w(G,[["__scopeId","data-v-96c3c0f9"]]);export{P as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.06f1efcb.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.06f1efcb.js new file mode 100644 index 00000000..921337f7 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.06f1efcb.js @@ -0,0 +1 @@ +import{h as o,aH as _,a9 as e,j as u,k as m,D as t,x as n,B as p}from"./vue.bd0669ce.js";const d={class:"layout-pd"},f=o({name:"limitsBackEndEndPage"}),y=o({...f,setup(g){const s=_(),a=()=>{s.push("/limits/frontEnd/page")};return(h,x)=>{const l=e("el-alert"),c=e("ele-Position"),i=e("el-icon"),r=e("el-button");return u(),m("div",d,[t(l,{title:"温馨提示:1、此页面无法模拟后端控制路由,因为 `gitee` 上所请求的 `json` 菜单数据线上会出现跨域的情况(json地址:\n https://gitee.com/lyt-top/vue-next-admin-images/raw/master/menu/adminMenu.json)。2、本地接口请求文件位置:`/src/api/menu/index.ts`。\n 3、拉取代码后本地请求查看后端控制页面路由效果:`/src/store/modules/themeConfig.ts`中开启(isRequestRoutes 为 true,则开启后端控制路由)。\n 4、此页面效果只作为演示使用,若出现不可逆转的bug,请尝试 `F5` 刷新页面。5、默认启用的是 `前端控制路由`。",type:"warning",closable:!1}),t(r,{type:"primary",size:"default",class:"mt15",onClick:a},{default:n(()=>[t(i,null,{default:n(()=>[t(c)]),_:1}),p(" 立即前往前端控制路由 ")]),_:1})])}}});export{y as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0a7019bc.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0a7019bc.js new file mode 100644 index 00000000..bcd3ff2e --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0a7019bc.js @@ -0,0 +1 @@ +import{h as z,r as I,aH as T,K as V,o as q,J as L,a9 as _,ac as X,j as i,k as s,y as $,v as g,x as u,F as f,Z as x,u as E,D as R,A as F,n as b,l as e,C as n,q as A,aE as J,aF as K}from"./vue.bd0669ce.js";import{_ as Z}from"./_plugin-vue_export-helper.c27b6911.js";const S=[{title:"权限",isMore:!1,isShowMore:!1,id:0,children:[{id:"01",label:"全部",active:!0},{id:"02",label:"普通用户",active:!1},{id:"03",label:"管理员",active:!1}]},{title:"布局",isMore:!1,isShowMore:!1,id:1,children:[{id:11,label:"全部",active:!0},{id:12,label:"默认",active:!1},{id:13,label:"经典",active:!1},{id:14,label:"横向",active:!1},{id:15,label:"分栏",active:!1}]},{title:"配置",isMore:!1,isShowMore:!1,id:2,children:[{id:21,label:"全部",active:!0},{id:22,label:"开启 Breadcrumb",active:!1},{id:23,label:"开启 Tags-View",active:!1},{id:24,label:"固定 Header",active:!1},{id:25,label:"侧边栏 Logo",active:!1},{id:26,label:"开启折叠 NavMenu",active:!1},{id:27,label:"开启一个 NavMenu 展开",active:!1},{id:28,label:"登录用户头像",active:!1}]}],G=[{img:"http://news.sznews.com/pic/2020-08/14/9d9c9a60-f0af-41aa-b617-683b07c87642.jpg",title:"嘉陵江2020年第1号洪水”在嘉陵江支流涪江形成",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:1},{img:"http://www.sznews.com/news/pic/2020-08/13/0ea47d3c-feb9-4bd7-8597-a8a373aa6340c6ec12c7-3b33-4528-91a6-85ec8ca1df67_watermark.png",title:"让《民法典》走近群众 盐田街道开展人民调解宣传活动",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:2},{img:"http://www.sznews.com/photo/pic/2020-08/12/a08d6eb0-1d53-4f76-a313-ad3e5d701f98.jpg",title:"记者手记:可可西里,“挪”向“藏羚羊大产房”的14个半小时",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:3},{img:"http://www.sznews.com/photo/pic/2020-08/11/43cc0e14-9bca-45b9-9a8b-342e09d6a4c7.jpg",title:"以优异成绩庆祝深圳经济特区建立40周年",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:4},{img:"http://www.sznews.com/photo/pic/2020-08/11/a4dc322b-68ec-40e6-8906-3124142c3e49.jpg",title:"草原上的“太阳姑娘”",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:5},{img:"http://www.sznews.com/zhuanti/pic/2020-08/07/57f087b4-4812-46cc-adb9-ead73621284e.png",title:"奇观天下|带你走进非洲野生动物观光第一目的地",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:6},{img:"http://news.sznews.com/pic/2020-09/02/t2_(101X54X600X335)7cd39301-d9cf-45f1-91c3-9575b1e5ce0e.jpg.2",title:"五角大楼发布“中国军力报告” 华春莹: 罔顾事实,充满偏见",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:7},{img:"http://news.sznews.com/pic/2020-09/02/b8b41d9c-0508-4498-8d37-6e597493769f.jpg",title:"最新地铁消息汇总:4号线北延、2号线三期、8号线一期等今年通车",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:8},{img:"http://www.sznews.com/photo/pic/2020-08/10/1635374c-f4d6-475c-ac47-1334176f365d.png",title:"9月1日深圳新增5例无症状感染者!钟南山这段话冲上热搜!",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:9},{img:"http://www.sznews.com/news/pic/2020-08/13/646e5458-92b7-4636-9940-9b0799babfe1.png",title:"全能“小福宝” 为文明社区建设添砖加瓦",evaluate:(Math.random()*10).toFixed(2),collection:(Math.random()*100).toFixed(2),price:(Math.random()*10).toFixed(2),monSales:(Math.random()*20).toFixed(2),id:10}],C=m=>(J("data-v-e6a0077f"),m=m(),K(),m),O={class:"filtering layout-pd"},P={class:"filtering-list-title"},Q=["onClick"],U=["onClick"],W={key:0,class:"flex-warp mt15 mb15"},Y={class:"flex-warp-item"},ee={class:"flex-warp-item-box"},te={class:"item-img"},ae=["src"],ie={class:"item-txt"},oe={class:"item-txt-title"},se={class:"item-txt-other"},le={style:{width:"100%"}},ne={class:"item-txt-msg mb10"},de={class:"ml10"},ce={class:"item-txt-msg item-txt-price"},re={class:"font-price"},me=C(()=>e("span",null,"¥",-1)),he={class:"font"},pe={key:1,class:"filtering-no-data"},_e=C(()=>e("div",{class:"no-data-box"},[e("i",{class:"el-icon-search"}),e("div",{class:"no-txt"},"暂无数据")],-1)),ge=[_e],ue=z({name:"pagesFiltering"}),fe=z({...ue,setup(m){const w=I([]),M=T(),a=V({filtering:S,tableData:{data:G,total:99,loading:!1,param:{pageNum:1,pageSize:10}}});q(()=>{v(),window.onresize=()=>{v()}});const v=()=>{L(()=>{w.value.map((r,d)=>{r.scrollHeight{o.children.map(c=>c.active=!1),r.active=!0;let d=[];a.filtering.map(c=>{c.children.map(h=>{h.active&&d.push({...c,children:[{...h}]})})}),a.tableData.loading=!0,setTimeout(()=>{a.tableData.loading=!1},500)},y=o=>{o.id===1?M.push({path:"/pages/filtering/details",query:{id:o.id}}):M.push({path:"/pages/filtering/details1",query:{id:o.id}})},D=o=>{a.tableData.param.pageSize=o},j=o=>{a.tableData.param.pageNum=o};return(o,r)=>{const d=_("el-col"),c=_("el-row"),h=_("el-pagination"),N=_("el-card"),B=X("loading");return i(),s("div",O,[$((i(),g(N,{shadow:"hover",class:b(["filtering-list br-top-no",{"min-h-360":a.tableData.data.length<=0}]),"element-loading-text":"加载中...","element-loading-background":"rgba(255, 255, 255, 0.1)"},{default:u(()=>[(i(!0),s(f,null,x(E(S),(t,p)=>(i(),s("div",{key:p,ref_for:!0,ref:l=>{l&&(w.value[p]=l)},class:"filtering-list-flex"},[e("div",P,n(t.title),1),e("div",{class:"filtering-list-item",style:A({height:t.isMore?"auto":"50px"})},[(i(!0),s(f,null,x(t.children,(l,H)=>(i(),s("span",{class:b(["span",l.active?"dd-active":""]),key:H,onClick:xe=>k(t,l)},n(l.label),11,Q))),128)),t.isShowMore?(i(),s("div",{key:0,class:"dd-more",onClick:l=>t.isMore=!t.isMore},[e("span",null,n(t.isMore?"收起":"展开"),1),e("i",{class:b(t.isMore?"el-icon-arrow-down":"el-icon-arrow-right")},null,2)],8,U)):F("",!0)],4)]))),128)),a.tableData.data.length>0?(i(),s("div",W,[R(c,{gutter:15},{default:u(()=>[(i(!0),s(f,null,x(a.tableData.data,(t,p)=>(i(),g(d,{xs:24,sm:12,md:8,lg:6,xl:4,class:"mb15",key:p,onClick:l=>y(t)},{default:u(()=>[e("div",Y,[e("div",ee,[e("div",te,[e("img",{src:t.img},null,8,ae)]),e("div",ie,[e("div",oe,n(t.title),1),e("div",se,[e("div",le,[e("div",ne,[e("span",null,"评价 "+n(t.evaluate),1),e("span",de,"收藏 "+n(t.collection),1)]),e("div",ce,[e("span",re,[me,e("span",he,n(t.price),1)]),e("span",null,"月销"+n(t.monSales)+"笔",1)])])])])])])]),_:2},1032,["onClick"]))),128))]),_:1})])):(i(),s("div",pe,ge)),a.tableData.data.length>0?(i(),g(h,{key:2,style:{"text-align":"right"},background:"",onSizeChange:D,onCurrentChange:j,"page-sizes":[10,20,30],"current-page":a.tableData.param.pageNum,"page-size":a.tableData.param.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:a.tableData.total},null,8,["current-page","page-size","total"])):F("",!0)]),_:1},8,["class"])),[[B,a.tableData.loading]])])}}});const Me=Z(fe,[["__scopeId","data-v-e6a0077f"]]);export{Me as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0ad749ea.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0ad749ea.js new file mode 100644 index 00000000..3c28ef39 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0ad749ea.js @@ -0,0 +1 @@ +import{_ as T}from"./preload-helper.101896b7.js";import{J as V}from"./index.f64fca3a.js";import{ay as E}from"./index.e8f4f9cf.js";import{h as b,ap as $,r as A,K as M,o as O,a9 as s,ac as U,j as c,k as j,l as f,D as a,x as n,B as i,y as F,v as u,u as H}from"./vue.bd0669ce.js";import{_ as I}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.ee56f1f7.js";const L={class:"system-role-container layout-padding"},P={class:"system-role-padding layout-padding-auto layout-padding-view"},J={class:"system-user-search mb15"},K=b({name:"systemRole"}),q=b({...K,setup(G){const v=$(()=>T(()=>import("./dialog.e6bfded4.js"),["assets/dialog.e6bfded4.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.5926acda.css"])),m=A(),t=M({tableData:{data:[],total:0,loading:!1,param:{search:"",pageNum:1,pageSize:10}}}),p=()=>{t.tableData.loading=!0;const l=[];for(let e=0;e<20;e++)l.push({roleName:e===0?"超级管理员":"普通用户",roleSign:e===0?"admin":"common",describe:`测试角色${e+1}`,sort:e,status:!0,createTime:new Date().toLocaleString()});t.tableData.data=l,t.tableData.total=t.tableData.data.length,setTimeout(()=>{t.tableData.loading=!1},500)},y=l=>{m.value.openDialog(l)},D=(l,e)=>{m.value.openDialog(l,e)},w=l=>{V.confirm(`此操作将永久删除角色名称:“${l.roleName}”,是否继续?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{p(),E.success("删除成功")}).catch(()=>{})},h=l=>{t.tableData.param.pageSize=l,p()},x=l=>{t.tableData.param.pageNum=l,p()};return O(()=>{p()}),(l,e)=>{const z=s("el-input"),C=s("ele-Search"),_=s("el-icon"),d=s("el-button"),k=s("ele-FolderAdd"),r=s("el-table-column"),g=s("el-tag"),N=s("el-table"),S=s("el-pagination"),R=U("loading");return c(),j("div",L,[f("div",P,[f("div",J,[a(z,{modelValue:t.tableData.param.search,"onUpdate:modelValue":e[0]||(e[0]=o=>t.tableData.param.search=o),size:"default",placeholder:"请输入角色名称",style:{"max-width":"180px"}},null,8,["modelValue"]),a(d,{size:"default",type:"primary",class:"ml10"},{default:n(()=>[a(_,null,{default:n(()=>[a(C)]),_:1}),i(" 查询 ")]),_:1}),a(d,{size:"default",type:"success",class:"ml10",onClick:e[1]||(e[1]=o=>y("add"))},{default:n(()=>[a(_,null,{default:n(()=>[a(k)]),_:1}),i(" 新增角色 ")]),_:1})]),F((c(),u(N,{data:t.tableData.data,style:{width:"100%"}},{default:n(()=>[a(r,{type:"index",label:"序号",width:"60"}),a(r,{prop:"roleName",label:"角色名称","show-overflow-tooltip":""}),a(r,{prop:"roleSign",label:"角色标识","show-overflow-tooltip":""}),a(r,{prop:"sort",label:"排序","show-overflow-tooltip":""}),a(r,{prop:"status",label:"角色状态","show-overflow-tooltip":""},{default:n(o=>[o.row.status?(c(),u(g,{key:0,type:"success"},{default:n(()=>[i("启用")]),_:1})):(c(),u(g,{key:1,type:"info"},{default:n(()=>[i("禁用")]),_:1}))]),_:1}),a(r,{prop:"describe",label:"角色描述","show-overflow-tooltip":""}),a(r,{prop:"createTime",label:"创建时间","show-overflow-tooltip":""}),a(r,{label:"操作",width:"100"},{default:n(o=>[a(d,{disabled:o.row.roleName==="超级管理员",size:"small",text:"",type:"primary",onClick:B=>D("edit",o.row)},{default:n(()=>[i("修改")]),_:2},1032,["disabled","onClick"]),a(d,{disabled:o.row.roleName==="超级管理员",size:"small",text:"",type:"primary",onClick:B=>w(o.row)},{default:n(()=>[i("删除")]),_:2},1032,["disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[R,t.tableData.loading]]),a(S,{onSizeChange:h,onCurrentChange:x,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":t.tableData.param.pageNum,"onUpdate:current-page":e[2]||(e[2]=o=>t.tableData.param.pageNum=o),background:"","page-size":t.tableData.param.pageSize,"onUpdate:page-size":e[3]||(e[3]=o=>t.tableData.param.pageSize=o),layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},null,8,["current-page","page-size","total"])]),a(H(v),{ref_key:"roleDialogRef",ref:m,onRefresh:e[4]||(e[4]=o=>p())},null,512)])}}});const ae=I(q,[["__scopeId","data-v-1003e97a"]]);export{ae as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0e922f22.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0e922f22.js new file mode 100644 index 00000000..d6031452 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.0e922f22.js @@ -0,0 +1 @@ +import{i as T,L as E}from"./echarts.c5874920.js";import{h as Q,r as z,ar as G,K as oe,o as ae,aG as le,w as B,a9 as C,j as y,k as P,D as u,x as c,F as L,Z as I,l as a,B as X,C as p,u as g,ah as A,J as Z,v as J,n as w,q as v}from"./vue.bd0669ce.js";import{u as se}from"./themeConfig.cb88f033.js";import{u as re}from"./tagsViewRoutes.054c4a6f.js";import{s as M,H as W}from"./request.386cf962.js";import{L as f}from"./storage.b628b270.js";import{u as ne}from"./vue-i18n.cjs.2a00fe88.js";import{g as ce}from"./data.a7368d0d.js";import{_ as me}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";import"./index.3f2ce315.js";import"./header.9390c1c5.js";function ie(){return{getTaskData:d=>M({url:W.taskData,method:"get",params:d}),getSystemData:d=>M({url:W.systemData,method:"get",params:d}),getJobChart:d=>M({url:W.jobChart,method:"get",params:d}),getDelayChart:d=>M({url:W.delayChart,method:"get",params:d})}}const ue={class:"home-container layout-pd"},he={class:"home-card-item flex"},de={class:"flex-auto"},ge={class:"font30"},fe={class:"mt10"},pe={class:"home-card-item flex"},we={class:"flex-auto"},be={class:"font30"},ye={class:"mt10"},ve={class:"card-header"},Fe={class:"home-card-item"},De={class:"home-card-item"},Te={class:"card-header"},Ee={class:"home-card-item"},ze={class:"home-card-item"},Ce=Q({name:"home"}),Ae=Q({...Ce,setup(d){const{t:o}=ne(),x=ce(),R=z(),H=z(),O=z(),Y=z(),F=ie(),j=re(),q=se(),{themeConfig:b}=G(q),{isTagsViewCurrenFull:k}=G(j),K=new Date,D=new Date;D.setTime(D.getTime()-3600*1e3*24);const e=oe({jobDateSelect:[D,K],delayDateSelect:[D,K],global:{homeChartOne:null,homeChartTwo:null,homeCharThree:null,homeCharFour:null,dispose:[null,"",void 0]},homeOne:[{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""},{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""},{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""},{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""}],homeTwo:[{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""},{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""},{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""},{num1:"",num2:"",num3:"",num4:"",color1:"",color2:"",color3:""}],myCharts:[],charts:{theme:"",bgColor:"",color:"#303133"}}),N=async()=>{let s={namespaceId:f.get("nid")==null?1:f.get("nid"),beginTime:Date.parse(e.jobDateSelect[0].toString())/1e3,endTime:Date.parse(e.jobDateSelect[1].toString())/1e3},t=await F.getJobChart(s),r=[],n=t.percentList;for(const h in n)r.push(Number(n[h])/100);e.global.dispose.some(h=>h===e.global.homeChartOne)||e.global.homeChartOne.dispose(),e.global.homeChartOne=A(T(R.value,e.charts.theme));const i={backgroundColor:e.charts.bgColor,title:{text:o("message.home.job.chartTitle"),x:"left",textStyle:{fontSize:"15",color:e.charts.color}},grid:{top:70,right:20,bottom:30,left:30},tooltip:{trigger:"axis"},legend:{data:[o("message.home.status.success"),o("message.home.status.fail")],right:0},xAxis:{data:t.axisData},yAxis:[{type:"value",name:o("message.home.taskNum"),splitLine:{show:!0,lineStyle:{type:"dashed",color:"#f5f5f5"}}}],series:[{name:o("message.home.status.success"),type:"line",symbolSize:6,symbol:"circle",smooth:!0,data:t.successData,lineStyle:{color:"#fe9a8b"},itemStyle:{color:"#fe9a8b",borderColor:"#fe9a8b"},areaStyle:{color:new E(0,0,0,1,[{offset:0,color:"#fe9a8bb3"},{offset:1,color:"#fe9a8b03"}])}},{name:o("message.home.status.fail"),type:"line",symbolSize:6,symbol:"circle",smooth:!0,data:t.failData,lineStyle:{color:"#9E87FF"},itemStyle:{color:"#9E87FF",borderColor:"#9E87FF"},areaStyle:{color:new E(0,0,0,1,[{offset:0,color:"#9E87FFb3"},{offset:1,color:"#9E87FF03"}])},emphasis:{itemStyle:{color:{type:"radial",x:.5,y:.5,r:.5,colorStops:[{offset:0,color:"#9E87FF"},{offset:.4,color:"#9E87FF"},{offset:.5,color:"#fff"},{offset:.7,color:"#fff"},{offset:.8,color:"#fff"},{offset:1,color:"#fff"}]},borderColor:"#9E87FF",borderWidth:2}}}]};e.global.homeChartOne.setOption(i),e.myCharts.push(e.global.homeChartOne),setTimeout(()=>{U(r)},500)},U=s=>{e.global.dispose.some(m=>m===e.global.homeChartTwo)||e.global.homeChartTwo.dispose(),e.global.homeChartTwo=A(T(H.value,e.charts.theme));for(var t=[o("message.home.status.waiting"),o("message.home.status.running"),o("message.home.status.success"),o("message.home.status.fail"),o("message.home.status.stop")],r=s,n=[],i=0;i {c}%"},graphic:{elements:[{type:"image",z:-1,style:{image:b.value.isIsDark?"":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK0AAACtCAYAAADCr/9DAAAcoElEQVR4Xu19e7wcRZn28/ZM90xXzzknOYEkIAEiBAUUFyFc4wKCCAt8gHhBUEDFG8K3Iri6+3ETL0hQ9FthvYC4gAb0cwFRQcUlKiIIbpRbEBGUREJIyHWmq2e6Z+r9fjU5iQnJOWcuPV195nT/l5yq93nep57p6amueouQXV0rwMzW6tWrS4XCsFvPVQWIyAphKweR3ShUGw2EAwMIAfhE1OgacJIHoEme/7jpM3O+UgnnWFZuDpF6pQJ2JtDOBJ4JwgxmmgbwEABr3GAAM1Ah8CqAVgC8nEBLFWgJQz1Liv7sefZTRBS0EGvSNslMu9nQL1u2TEyZsv3rARygwK8nxuvIwh7McBJ0iL4T/xXgR8DW75nxcL2ef2jKFFqTIIdUQ01q02qTDg5v/wZLqSMZ9I8AtGHtFI6YAmExFO4jsu6N3Ny9Q0SrU8gzEUqTzrSrV8ud7aJ1okW54wg4jJmLiSgdL4i+Gz8Moh9xQ91ZKhUeizd8uqNNCtNKya9QqnYqWdbbAcwF0Fd5M/AnZv5/UFgwMFBYnG7Ldc+urwZvczmY2Q6CxolMfDaYjwKQ616uCRHhd2BcX63at0ybRusnBOM2SfadaYOAd2Wun8PgMwFMb1OPvmlORBUGfw8K13qes6hvEuunr0nfD/dn4gsJdAqAfD8NUpe5MBF+wWR9QRRydxMRdxnPePcJf6etBNGRFvNFDBxuXM20EyA8QWx9xnVz3yMilXa6o/GbsKYNgugNivlzAOZNVPGN8SY8rpgvK7nObRPxzjvhTFsu1/ay8rgKTP9kbND7BZixyLLoQte1F06klCaMadetWzecz7uXg/DB7Jk1bovRD3JW42PFYvHZuCP3Il7qTcvMJKvRe8D0eYC374UIWcymAlUwf14I5/NEVEuzJqk27bp11Tm2bV3HwGFpFrGfuDHwlKLG+wdd97605pVK0+q7axBE/8zAZwGItIrXx7wUA9esWfXiJ2fNmpW6FWepM63v8w6M6EYivKmPTTExUiM8wQ2cXio5j6SJcKpMu96vnZQj6zqAt0uTSJOcS41B/+a5+S+lZXosFaZduJDzcw+MPk/Ax/rpLV1/mZ1+FLn5M6aQ+XW9xk1bLvN0ykXfpeyN1kTw+F9Y4WTTjwtGTavXC4DodoB3mggjlnFsrun0AT5LiML3TelhzLRS1t7KoBuz2QFTQ98VrgLzJZ5X0LM7iV9GTCtl+FEGvtjiZsDERckAW1SAcN1DD9rnHHEE1VvsEUuzxE1bkbX5BPp4LOyzIOYVYP6hEM7biaiaFJnETKtrA8hq9DUw3p9UchlOMgro9bpu0T5BLzxPAjER0zJzTlajG8A4I4mkMozkFSDggWq1cuzw8PC6XqP33LT6DhtUo/9kxrt7nUwW37gCD/iVtUdPnz69p3fcnpvW98PrQXifcTkzAokoQET3rnpp+fG9XLPQU9NKGX2RwfotV3ZNIgWY+S5POCcRUdSLtHtm2oqMLiTwVb0gncVMvwIM3Oq59mm9WK/QE9NKWX8HQy2YZPOwzIz1ROQDqqbvMrp4HYAiQLqKjS5SN1lqLzQ/VQSeL0ThE3F/xGI3rZTRwQzWe44KcZM1Ha9ZS4D5CRAeJcZitqxnuK6WAOGLnue9RDT6JLv+QVoul4cLhYHpzPVZjQbvRkSvAngfxdiHCMOm8+sBPoNwtuc6N8QZO1bTrpJyVhH2wwDPiJOkqVjMWG0R7mELv2LLvt+z8Vivtl5Xq9XdmfOHKqh5YD4GoL5Yj0GEEExHCmH/Oq5xjM20upCbDCK9RWP/uMiZiEOEv0DXxYJ1h+vmHzJVBLlcq72GFE4gJl1/7B9MaBEj5ouE+v5CiL/FETM20/p+eJ3+KoiDVNIxGCgT4RZifEsI58Gk8cfDq1Z5j7oK30OwzgR4h/Hap/TvDwjXPiyOGYVYTFsJwncT46aUijUqLQKeZsaXhLBvTuoVZDca6R92QdA4iaEuAHBQN7FM9CXQ1ULYmntXV9emXVetzrHZ+h9mDHTFJMHOzHiEiS8vuc4dvXpG7XU6UkaHKlaXENHRvcaKMT6DreM9L39XNzG7Mq3+5Mugfj/AB3RDIqm+uo6rBesi1819vxfzh0nlsTmOlNE8Bl8xccpD0YvCzb+WiFZ2qldXpvWD6FIwX9YpeFL9mLHWIvq06+avISJ9ykzfXXpuHFBXMrBL2pMj0B1C2Cd3yrNj01Yq4T+QhYdSekbBZnrwf4Hr53me90KnIk2UfsuXL/dKg8OXE/DPaX+RwcTvKrmF73SibUembS41DCJtWH2wRiovZqxQxB8aFIXbU0mwh6R8358L2P8Jwl49hOkyNL2kGvm9Bgbaf0zoyLRSRh9jsN4uk86L+W6lnLMGBvRZXZPz0vPmQRB9gYFz0rotnwg3C9dpe41126aVUu7EyD8JoJRCOzT0M7YQzmf75YdWtxo3N5ASfROMwW5j9aA/W0RHtltqtAPThrcwcGoPEugyJK1hhXeWSvZPuwzUd911Td9cnu5gxpzUJUd4/KEH7X3b2RzZlmmljA5hsH6H3Fa/3gvFf1UNHDcZjiPqVEtmHg6C6HYG9CF/6boYH/E85z9aJdWy+Zp1YoPoAQAHtho8iXbM/Aewc0ypRC8mgTeRMZi5IGW4AERvSVkeK4Vr707U2hFSLZtWytopDDJWVWQUkR8Urn0sEa1N2SCkls7IJlP9jKuPrErPxfwZzytc3Aqhlkw7sv37cTD2bCVoQm30AoyjJ8KagYT0aBlmZDyvB+M9LXfqfcOKatR2GxgYGHfGpyXTVoLaacTU0URwj3JdFNb8I6dOnZrdYTsUWBvXD6LvUIp+VOvtWUIU/mW8lMY1bTM5GT5ORCm5y/KzquEc1Mmk9HhiTLa/66NYfRn9OC0FrPW3Zj0KZg8ODr401liMa9r1snZyDnRbOgaUXmpYjUMHi8U/pYPPxGfBzEO+jO4nwt6pyIb5cs8rXNqVaaUMf8PAwSlIqG4RHeW69i9TwKWvKAQB76K4/rt0VGCnVcLN70xEcjSRx7zTShkexICe5jJ+sVIXlErFq40T6VMClWp0FCn+SRoW2ijGOQOe89VOTbuAgXeaHye+zRMFfVBzdvVQAd+vXQyiy3sI0VJoZiwuec6ojyuj3mnL5fL0XL6whNn0VnD6Wz3Kv25oiFa3lHHWqGMF9ByuH0QLCXhDx0Fi6qiIDh8Y5VFwVNNWZPXjBGt+TBw6DaMXVLzJde3/7jRA1q89BfTzbYOjxwhmt08RsEAI5/RtsR/VtH4QLjb+MoFwvec6WT3b9nzXdWvfDz8CwjVdB+ouQBDW7B2nTt36bec2TeuH4f6o4+HuMLvszbw8FM6eU7NXtF0K2X735huzDTUsDmm/d4w9GB/0POcbL4+4TdNWZO0qAl0YI3zboSyyznLdvD5IJLsMKDCynep3JmcTGPhlSTiHj2va5rm01egvzAY3yDEeFsI+MFvIbcCtm0H6fvh1ED5gkIWSHM3a3vOWbc5hqzvtSAG53xgkCovo8OwlgskR2IDt+/4OIPvPRo/NYpzrec61Y5u2Gs1nxeZOn2H83POc7DBn855tMpCydhWbfFQk3OO5zhYFSba60/p++BgIrzGlGYEOFcI2eqc3lXsacZl5uyCI/sqAZ4hfrbzenjZzpq77u+HawrRSylmM/HMGt9Pc7wlnniFxMthRFPD98BoQPmJMIMs6wSvmf7RN0/p++H4QtppiSIwsWyd7Xv6OxPAyoJYUqFZ5t4aKnjI4k/AfnnA2fWi2uNNWZKhPA9f1UA1cvES4zuyJWhDOgGCJQvoy+gHA/ytR0I2PA4Q/Cdd51bbvtDL6G8CvMEFM1yvwvMKnjGBnoOMq4PvV40HWD8dt2JsGrBr2zI3FVzbdadcGwWybc8/2BnPcqKpWrc8eHhZLxm2ZNTCiQHNDpAyXgshIUWcCv0WMlLjaZNogqJ+uWH3bhCIE/EII5wgT2Blm6wpIGV3N4PNb7xFfSwJ9QQi7ORW7ybS+rF8DKDO/ENss1hCfFFmkdhQw+eKJQPcLYTdnljYzbajnRk1sq2GCPUsIer4dAbO2ySuwoWBL/XlD5z74wrUH9Q/1pmlHVvWsh5kJ5Ec94bwu+SHIEDtRwPfDb4Lw3k76dtsnZ6lXF4vFp5qmXVutvtJW1jPdBu2kP4Pnl3pwql8nXLI+4ytQlrVTLdAt47eMvwWBTxGicFvTtL5fPx6kjExnsEXHlIpZpcP4h7g3ESuVykyyHL3qatzyA7EzILrYc+3PNIErsno+wTKx07UhXHsqEZVjTzAL2DMFpAyfZmD3ngGMFphxk+c5Z47cacNrQc2K0YlezHii5DnGFuckmmwfgckgvJkZ7zKQUnNtygbTyuiHAB+fNAkiLBDutjevJc0lw2tdASnD8xlI/JuZQH8Twp614fHADx8hwj6t046nJYE+KYR9ZTzRsihJKVCpRG8ii3+WFN5mOPpxsrjxTrsC4O0TJ8HqRM8r3pk4bgbYlQJS8ixGZOSVO8HeiRYu5PwBB0Y1AFZXmXTQmRXvUyoVHuuga9bFoAIj8/oBACdxGoz9SFeSsXIFI6XfhWsPZEWREx/2WAB9WXsaoMRnEFipN1O1Wt2joSy9wDfZi7HW85ypyYJmaHEpUJGhLp+01fbuuOKPFofA7yDfD/cHJV+YQx+uXBJ/X9jb62Sz+PEqYGzDAOMDVC4Hh1m53C/iTamlaL/1hHNQSy2zRqlTwA/Cr4HxwaSJ6XN/qVKpHkOWdbcB8IVCOG9MGjfDi0cBKcOrGUh8ba2eJiXfrx4HsjbtdIwnpRaiEP3Ec+1jW2iZNUmhAhVZu0IbKHFqRBeR79dOBJGBHbB8pycKJyaedAYYiwK+X7sMRGOejRAL0MuDEF1m7k7L/GPPKyT+6rgnQk7CoL5f+xSILkk8deZLTZr2p55XOCbxpDPAWBSoyNqVBBr3zK9YwDYLwuB/pSCIjlDM98YdvIV4v/aEY7xMegs8sybbUEDK8N8ZOC9pcQh0AZk6wYYZj5U8J/FFOkmL3K94MghvYsa7E8/PwoepVqu9pt4gA+//6QVP2DsmnnQGGIsCfhDdBebEZ3+Y+F0kJe/EiJbGkkl7QerNZWZEjfa6Za3ToIAvw0UA9k2aCyt1LC1btkwMTdluUxnFJElUg/rO06YJEx+YJNPsS6yKH75EhGmJJ8eYO7KeNtR7tEpJExjrrKikuWR4rSuwevXqoUKxZOQEeIvs2U3TyiB8mtnARjULH/SKW59e0rp8WUsTCvh+OBeEh0xgN5ezamBTy8wAXOsJ51wTyWeYnStQCcKziPGtziN02pPWeMIeHtkjVruRiM7oNFSn/Ri4ryScf+y0f9bPjAIVGf5fAv63AfRmNaINz7RBdAmYE68NS4SKW2zWPagbECCD7FABX4b6ZHoDy0rpdk/Yb2maNgjqpylW3+kwh+66Mfb3POd/uguS9U5KAWZ2ZRDpH2GJ7w8ji64SRftfNtxpw3A/1KFP50v8YqjzS6L45cSBM8COFAiC6DDFbGLTgC7E9D7PdW7YWDVRyCDSVRNzHWXSRSdmvrvkFf6pixBZ1wQVKPu1T1tEFyUIuQmKgIOFcB7cVERMBuEfmbHpMIYESQXCtYeJqJogZgbVoQK+DPVB3/t32L2bbg2/Yk+ZPp0qfzetDG9h4NRuonbcl9UJnldMfvdEx4QnZ0cp5U4j58wlXyMD/FRJFF6tld9k2oqMLiTwVUaGg3CT5zpnGsHOQFtWwFQNL02Qwd8uiUJzVdkm066Xcl4O+ftaziDGhsxYv3LF8zNmz56dPSLEqGvcoXwZPgjgwLjjthKPoM4TonjNFqZl5uLIVEahlSBxt2HFp5VKBSMVpuPOpR/jlcu1Pa0cPWGkmLIWNI/Xe47z+y1Mq/9RkeGvCDCym4CBhaVsS3lq/S5l9EUGf8wMQVor3Py0jad5blGC3A+iT4E5+c1qG5TgRl3tOThYTL5Ek5mRmDCoS5cudYenzVwC8HZmSNOdnrA37dx+2Snk0TwGG3mu1WJYhK+7rvMhM8JkqKMpYPqgbwLOE8JpPs9u9XjAzHlfRiuJMMXQEAaqUdt1YGBghSH8DPZlCuiynn4QLSYYmcNvsqlHao+hoeLT2zSt/k8pw1sZeIep0dPTbkIUEt+abCrftONWgtppxGRmXcqGX31PCeE052fHMG3tnQxaYFBMySrcrVQqLTfIIYPecChiLqhGi5mxhylBNi6SGdO0zFwKqvUXmVmYIgpY13oiny0ONzcATWTfD84G5a4zSYPyOEg4zm/HNO0GsrXvg+gUg2TrqsH7DgwUHjfIYVJDr1y5ckB4g08BtIMpIYjwnFu0ZxMRj2taKetvY6jvmSLbxCX6uefabzLKYRKDSxnNZ3DzqHpTF4GuFMLeqjLjNo+K1NvKB4e2e4EIg6YIa1yLcIbrOjeb5DAZsf0w3Bf15sbFvMn8VYNfu61v21HPNy374TcswvtNkmbGKk/YexLRSpM8JhO2nvaUQaSfIV9vNG/Gw57nHLAtDqOaVsrwAAa2eAA2kgTznZ6X1bFNSvuyX/uUZaKE58sTHKO8wJgnSfsy1Hu3zH7idDKMD3ue87WkBm6y4qyX8tA88r9gw48FAK3zK2t2mj59eqWtO61uHAThexTjhhQMomSFQ0sl5w8p4NKXFJh5uyCIfsfALilI8CuecEbdoj7mnZaZCzKoPwfwjBQk8qxw7f2JaE0KuPQVBf0SQVbrPwHzUSlIrFGP1KuHhop/Ho3LmKbVnfwguhjMl6cgGT0Ndo8o5o8joigVfPqEhJTRlxj80XSkw7d7ovCWsbiMa9p163g4b0fPmShQt03ijBs8z3lfOgSe+CykDM9l4CtpyYSAA4VwxqwTNq5pdTIVWZtPIKMTzVuIyvxpzyuYWveblvHtmoeUtVMY9F0TpQO2RZ4Z95Q85+jxEmvJtCOHPj8LwBsvYFJ/14dUCGGb2YiZVJI9xPH96rEg63YARrZXbXtWgOYJYd8/Xtotmbb5bOvXPgeifx0vYIJ/Z333F8L+YoKYfQGlDUtW7r90iaPUJMR8t9di0ZaWTbuGeYoTRM8AGE5NopoI0WWeaydePC9VGrRBpixrp1horo9NzR0WgGKF/Vqd0mzZtBuebcOPEvClNjRKpinjq0LY52XnN4wtd9kPP2xR80dX4uWvxmTGuNHznLNaNUtbpn3iCXZ2mR0+TqA5rQIk1o75LimdU7ffnnQp/uzaTAE9D+sH0XwCDO2mHXM4fIL9KiHo+VYHrS3T6qDVanRMQ3Hip5a3lBDjSaX4lIGBwpMttZ8EjZh5WFbDBWB6cxrTZaJ/K7n2Fe1wa9u0OriU0W0MPrkdoKTaMlC2wB8QonBrUphpxZEyOoShFgCUhlezW8nE4Kc819mHiMJ2NOzQtHInhbzeoTnQDliSbQm42XXtc4lIlzCdVNfChZw/4KD6RWD+P6bXxI4hPCuiNw64dtu1bjsyrSbi++E5IFybcjcsgWWd4xXzP045z9joVSo1fef6JshIOc7W8yBc77lOR+u1OzYtM+vDoO9l4PDWmZppyeDvWmhcIIRo+WHfDNPOUVes4JIohZcQSK8hsDuPlEjPpbVq5bXDw8PrOkHr2LQabE0Q7Gqr3COmt+W0kjgRlRnqqvK6NVfPnDnTyAmVrfBst82GFVrRmVD8GZC5TYht8FYW0dGua/93G322aNqVaXWkShCeQYwbOyWQfD9eTqDPua593USuPq4rv1SC8K0W0aVg7JW8jp0hMvDlknDO76z3hl5dm7ZpXBl+m4DTuyGSdF9mvEjgaxqN2lcHBwdXJY3fKZ4uyVqR0Rk5C+czY4vKK53GTLDfomXPP3fInDlzat1gxmJavUfeKw09NAFFBBH5DL6FGNcLsWVRiG6Ejbvvump195yiswnWewHePu74vY7HjHWNnJo7VPx7Ta5OMWMxrQav1Wp7N5T1oK5Q0ykZ0/0Y/Eci61ZVV99LwwsKn3lHDqK3EfB2AAfH9c1oQGdW4LcOiMJtcWDHZlpNRsra20bWZ8YaN45E247BeJKI7lIW7vEK+d/oH3Jtx2izw9NPP12Y8YpXzM1x7kgiOpaBubr8Q5th0tec+bOeV4jtGKfYzeX7tU/D0DlTPRytBoBHwc0t9Y8Q0aNRJP84NDS0ulPMFStWlDxvyhzLsvZpsNrHAh3AYH3UUbHTmOnsR3cKN3/yxirecXCM3bQj87e6XKj+Suv3S88z/oWZl1sWrVSMVcRcgYUqM+o5siwFFJnZI8I0KF1Jm2YwsCsRJtxzaQeD+YfyenvezJkU6xRj7KbViW0odz7j5wAO6SDRrEtfKMBLwPWDPc9bFnc6PTGtJrmWeWpehvcR0d5xk87ipV6Bl/I5PqxQKCzuBdOemVaT9X1/R7Ls+5jxyl6Qz2KmUoG1YBzpec6iXrHrqWmbd9y1wWzbsX4J0KxeJZHFTYcCRFQB481C2L/pJaOem1aTX7euunvepnsz4/ZyKM3G1i9pGnWcMDBgL+w1k0RMq5MIAp6tONTG3bXXSWXxk1VAz2ETcLzr2r9KAjkx0+pk9CnWinM/I6I9k0guw0hCAVpVBx83lOAr8ERNqyVk5mkyiH4E4KAkJM0weqkAL1ENHDsw0JtZgtGYJ27aEeO6MqgvAPikXkqaxe6pAr8H28d7HsU+DzseayOmHTGuFQThlQy6YAIvBBlP3z79O93pV9acPlrR414nbcy0GxPTi8gt0NdSVaKn16pP3PgM5iuEcC6Ocy1Bu3IYN60m7PvhfiD+fjaz0O7wJdder4dl4vfGtbywG+apMK1OQL/2tYPwWwBtOiK9m8SyvrEqsChn2e8oFmnU6tyxoo0TLDWm3cizLMNzLWA+gPRU9EtyRNKFpRj4d8+1P9FuQY1eppE60+pky+XaXlaObgKwXy+Tz2KPqcBSVvTeUsnWq/VSdaXStCOzC3k/qF9A4Euzu26inlEgfF0U7U+mtTpPak27cZiq1erudWV9g4AjEh26yQjGeLJB9Q8MCvHrNKefetOO3HXJ98PTybKuAHinNAs6EbkxYz2YP/fCC0u+3O327iTynxCm3SgEMwtZrX8C3DwdO/uh1r1DGmgWWoku8jzvhe7DJRNhQpl2oyRS8iwmfb4ZdPXotNetSmYk20NhgH/Mii5utWR8e+F723pCmvbvz7v8ykYjuoQIp5s/z7W3AxVbdKKfEvMl453VFRteDwJNaNNuZt7dGxx9HIwz+m8LdiyjrgC6k8BXCuE8GEtEg0H6wrQb9SuXebqVr38IjA8BvINBXVMBrauiE3Bjo66+MjhY/FMqSMVAoq9Mu9kPNrsShCdZZJ0N5iNTd5pLDAM3TohFYFwnpf2dfjw4pS9Nu/mASilnKcq9i0CngfGa3vvFGMJSBt+KHL5dKhQeNcYiAeC+N+3mGpZrtb0shVNY0UlE2Heir+Mlwp9B9AMo3Oa6+QeIiBPwjHGISWXazdX2fd4RiI4lwlEMvBHAdOOjMQ4B/YwK5vssop/V6/zTwcHCH9POuRf8Jq1pXy5muVzb08rTPCg+CBbNBUNvvsz3QvQWYzIB+hDthxXUb4mt+4WwF2WnUsZUCbzFQZhQzZr1yGbM2Jsb2Nti3pMZc0C0GzN2IcKUGJPxwVgComcY/Azp9/+NxuJ6PXi004M0YuSWylDZnbaDYdGFo2u12g5K5WbUWW1nWTTFYgwo6OqIVgEKNpPKE6MGywqJEQJcY4ZPZK1pEK9GXa1Qylk+NEQdlwvtgHpfdPn/ixNifr4QLGYAAAAASUVORK5CYII=",width:230,height:230},left:"16.5%",top:"center"}]},legend:{type:"scroll",orient:"vertical",right:"0%",left:"65%",top:"center",itemWidth:14,itemHeight:14,data:t,textStyle:{rich:{name:{fontSize:14,fontWeight:400,width:200,height:35,padding:[0,0,0,60],color:e.charts.color},rate:{fontSize:15,fontWeight:500,height:35,width:40,padding:[0,0,0,30],color:e.charts.color}}}},series:[{type:"pie",radius:["82",b.value.isIsDark?"50":"102"],center:["32%","50%"],itemStyle:{color:function(m){return h[m.dataIndex]}},label:{show:!1},labelLine:{show:!1},data:n}]};e.global.homeChartTwo.setOption(l),e.myCharts.push(e.global.homeChartTwo)},V=async()=>{let s={namespaceId:f.get("nid")==null?1:f.get("nid"),beginTime:Date.parse(e.jobDateSelect[0].toString())/1e3,endTime:Date.parse(e.jobDateSelect[1].toString())/1e3},t=await F.getDelayChart(s),r=[],n=t.percentList;for(const h in n)r.push(Number(n[h])/100);e.global.dispose.some(h=>h===e.global.homeCharThree)||e.global.homeCharThree.dispose(),e.global.homeCharThree=A(T(O.value,e.charts.theme));const i={backgroundColor:e.charts.bgColor,title:{text:o("message.home.delay.chartTitle"),x:"left",textStyle:{fontSize:"15",color:e.charts.color}},grid:{top:70,right:20,bottom:30,left:30},tooltip:{trigger:"axis"},legend:{data:[o("message.home.status.success"),o("message.home.status.fail")],right:0},xAxis:{data:t.axisData},yAxis:[{type:"value",name:o("message.home.taskNum"),splitLine:{show:!0,lineStyle:{type:"dashed",color:"#f5f5f5"}}}],series:[{name:o("message.home.status.success"),type:"line",symbolSize:6,symbol:"circle",smooth:!0,data:t.successData,lineStyle:{color:"#fe9a8b"},itemStyle:{color:"#fe9a8b",borderColor:"#fe9a8b"},areaStyle:{color:new E(0,0,0,1,[{offset:0,color:"#fe9a8bb3"},{offset:1,color:"#fe9a8b03"}])}},{name:o("message.home.status.fail"),type:"line",symbolSize:6,symbol:"circle",smooth:!0,data:t.failData,lineStyle:{color:"#9E87FF"},itemStyle:{color:"#9E87FF",borderColor:"#9E87FF"},areaStyle:{color:new E(0,0,0,1,[{offset:0,color:"#9E87FFb3"},{offset:1,color:"#9E87FF03"}])},emphasis:{itemStyle:{color:{type:"radial",x:.5,y:.5,r:.5,colorStops:[{offset:0,color:"#9E87FF"},{offset:.4,color:"#9E87FF"},{offset:.5,color:"#fff"},{offset:.7,color:"#fff"},{offset:.8,color:"#fff"},{offset:1,color:"#fff"}]},borderColor:"#9E87FF",borderWidth:2}}}]};e.global.homeCharThree.setOption(i),e.myCharts.push(e.global.homeCharThree),setTimeout(()=>{_(r)},500)},_=s=>{e.global.dispose.some(m=>m===e.global.homeCharFour)||e.global.homeCharFour.dispose(),e.global.homeCharFour=A(T(Y.value,e.charts.theme));for(var t=[o("message.home.status.waiting"),o("message.home.status.running"),o("message.home.status.success"),o("message.home.status.fail"),o("message.home.status.stop")],r=s,n=[],i=0;i {c}%"},graphic:{elements:[{type:"image",z:-1,style:{image:b.value.isIsDark?"":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK0AAACtCAYAAADCr/9DAAAcoElEQVR4Xu19e7wcRZn28/ZM90xXzzknOYEkIAEiBAUUFyFc4wKCCAt8gHhBUEDFG8K3Iri6+3ETL0hQ9FthvYC4gAb0cwFRQcUlKiIIbpRbEBGUREJIyHWmq2e6Z+r9fjU5iQnJOWcuPV195nT/l5yq93nep57p6amueouQXV0rwMzW6tWrS4XCsFvPVQWIyAphKweR3ShUGw2EAwMIAfhE1OgacJIHoEme/7jpM3O+UgnnWFZuDpF6pQJ2JtDOBJ4JwgxmmgbwEABr3GAAM1Ah8CqAVgC8nEBLFWgJQz1Liv7sefZTRBS0EGvSNslMu9nQL1u2TEyZsv3rARygwK8nxuvIwh7McBJ0iL4T/xXgR8DW75nxcL2ef2jKFFqTIIdUQ01q02qTDg5v/wZLqSMZ9I8AtGHtFI6YAmExFO4jsu6N3Ny9Q0SrU8gzEUqTzrSrV8ud7aJ1okW54wg4jJmLiSgdL4i+Gz8Moh9xQ91ZKhUeizd8uqNNCtNKya9QqnYqWdbbAcwF0Fd5M/AnZv5/UFgwMFBYnG7Ldc+urwZvczmY2Q6CxolMfDaYjwKQ616uCRHhd2BcX63at0ybRusnBOM2SfadaYOAd2Wun8PgMwFMb1OPvmlORBUGfw8K13qes6hvEuunr0nfD/dn4gsJdAqAfD8NUpe5MBF+wWR9QRRydxMRdxnPePcJf6etBNGRFvNFDBxuXM20EyA8QWx9xnVz3yMilXa6o/GbsKYNgugNivlzAOZNVPGN8SY8rpgvK7nObRPxzjvhTFsu1/ay8rgKTP9kbND7BZixyLLoQte1F06klCaMadetWzecz7uXg/DB7Jk1bovRD3JW42PFYvHZuCP3Il7qTcvMJKvRe8D0eYC374UIWcymAlUwf14I5/NEVEuzJqk27bp11Tm2bV3HwGFpFrGfuDHwlKLG+wdd97605pVK0+q7axBE/8zAZwGItIrXx7wUA9esWfXiJ2fNmpW6FWepM63v8w6M6EYivKmPTTExUiM8wQ2cXio5j6SJcKpMu96vnZQj6zqAt0uTSJOcS41B/+a5+S+lZXosFaZduJDzcw+MPk/Ax/rpLV1/mZ1+FLn5M6aQ+XW9xk1bLvN0ykXfpeyN1kTw+F9Y4WTTjwtGTavXC4DodoB3mggjlnFsrun0AT5LiML3TelhzLRS1t7KoBuz2QFTQ98VrgLzJZ5X0LM7iV9GTCtl+FEGvtjiZsDERckAW1SAcN1DD9rnHHEE1VvsEUuzxE1bkbX5BPp4LOyzIOYVYP6hEM7biaiaFJnETKtrA8hq9DUw3p9UchlOMgro9bpu0T5BLzxPAjER0zJzTlajG8A4I4mkMozkFSDggWq1cuzw8PC6XqP33LT6DhtUo/9kxrt7nUwW37gCD/iVtUdPnz69p3fcnpvW98PrQXifcTkzAokoQET3rnpp+fG9XLPQU9NKGX2RwfotV3ZNIgWY+S5POCcRUdSLtHtm2oqMLiTwVb0gncVMvwIM3Oq59mm9WK/QE9NKWX8HQy2YZPOwzIz1ROQDqqbvMrp4HYAiQLqKjS5SN1lqLzQ/VQSeL0ThE3F/xGI3rZTRwQzWe44KcZM1Ha9ZS4D5CRAeJcZitqxnuK6WAOGLnue9RDT6JLv+QVoul4cLhYHpzPVZjQbvRkSvAngfxdiHCMOm8+sBPoNwtuc6N8QZO1bTrpJyVhH2wwDPiJOkqVjMWG0R7mELv2LLvt+z8Vivtl5Xq9XdmfOHKqh5YD4GoL5Yj0GEEExHCmH/Oq5xjM20upCbDCK9RWP/uMiZiEOEv0DXxYJ1h+vmHzJVBLlcq72GFE4gJl1/7B9MaBEj5ouE+v5CiL/FETM20/p+eJ3+KoiDVNIxGCgT4RZifEsI58Gk8cfDq1Z5j7oK30OwzgR4h/Hap/TvDwjXPiyOGYVYTFsJwncT46aUijUqLQKeZsaXhLBvTuoVZDca6R92QdA4iaEuAHBQN7FM9CXQ1ULYmntXV9emXVetzrHZ+h9mDHTFJMHOzHiEiS8vuc4dvXpG7XU6UkaHKlaXENHRvcaKMT6DreM9L39XNzG7Mq3+5Mugfj/AB3RDIqm+uo6rBesi1819vxfzh0nlsTmOlNE8Bl8xccpD0YvCzb+WiFZ2qldXpvWD6FIwX9YpeFL9mLHWIvq06+avISJ9ykzfXXpuHFBXMrBL2pMj0B1C2Cd3yrNj01Yq4T+QhYdSekbBZnrwf4Hr53me90KnIk2UfsuXL/dKg8OXE/DPaX+RwcTvKrmF73SibUembS41DCJtWH2wRiovZqxQxB8aFIXbU0mwh6R8358L2P8Jwl49hOkyNL2kGvm9Bgbaf0zoyLRSRh9jsN4uk86L+W6lnLMGBvRZXZPz0vPmQRB9gYFz0rotnwg3C9dpe41126aVUu7EyD8JoJRCOzT0M7YQzmf75YdWtxo3N5ASfROMwW5j9aA/W0RHtltqtAPThrcwcGoPEugyJK1hhXeWSvZPuwzUd911Td9cnu5gxpzUJUd4/KEH7X3b2RzZlmmljA5hsH6H3Fa/3gvFf1UNHDcZjiPqVEtmHg6C6HYG9CF/6boYH/E85z9aJdWy+Zp1YoPoAQAHtho8iXbM/Aewc0ypRC8mgTeRMZi5IGW4AERvSVkeK4Vr707U2hFSLZtWytopDDJWVWQUkR8Urn0sEa1N2SCkls7IJlP9jKuPrErPxfwZzytc3Aqhlkw7sv37cTD2bCVoQm30AoyjJ8KagYT0aBlmZDyvB+M9LXfqfcOKatR2GxgYGHfGpyXTVoLaacTU0URwj3JdFNb8I6dOnZrdYTsUWBvXD6LvUIp+VOvtWUIU/mW8lMY1bTM5GT5ORCm5y/KzquEc1Mmk9HhiTLa/66NYfRn9OC0FrPW3Zj0KZg8ODr401liMa9r1snZyDnRbOgaUXmpYjUMHi8U/pYPPxGfBzEO+jO4nwt6pyIb5cs8rXNqVaaUMf8PAwSlIqG4RHeW69i9TwKWvKAQB76K4/rt0VGCnVcLN70xEcjSRx7zTShkexICe5jJ+sVIXlErFq40T6VMClWp0FCn+SRoW2ijGOQOe89VOTbuAgXeaHye+zRMFfVBzdvVQAd+vXQyiy3sI0VJoZiwuec6ojyuj3mnL5fL0XL6whNn0VnD6Wz3Kv25oiFa3lHHWqGMF9ByuH0QLCXhDx0Fi6qiIDh8Y5VFwVNNWZPXjBGt+TBw6DaMXVLzJde3/7jRA1q89BfTzbYOjxwhmt08RsEAI5/RtsR/VtH4QLjb+MoFwvec6WT3b9nzXdWvfDz8CwjVdB+ouQBDW7B2nTt36bec2TeuH4f6o4+HuMLvszbw8FM6eU7NXtF0K2X735huzDTUsDmm/d4w9GB/0POcbL4+4TdNWZO0qAl0YI3zboSyyznLdvD5IJLsMKDCynep3JmcTGPhlSTiHj2va5rm01egvzAY3yDEeFsI+MFvIbcCtm0H6fvh1ED5gkIWSHM3a3vOWbc5hqzvtSAG53xgkCovo8OwlgskR2IDt+/4OIPvPRo/NYpzrec61Y5u2Gs1nxeZOn2H83POc7DBn855tMpCydhWbfFQk3OO5zhYFSba60/p++BgIrzGlGYEOFcI2eqc3lXsacZl5uyCI/sqAZ4hfrbzenjZzpq77u+HawrRSylmM/HMGt9Pc7wlnniFxMthRFPD98BoQPmJMIMs6wSvmf7RN0/p++H4QtppiSIwsWyd7Xv6OxPAyoJYUqFZ5t4aKnjI4k/AfnnA2fWi2uNNWZKhPA9f1UA1cvES4zuyJWhDOgGCJQvoy+gHA/ytR0I2PA4Q/Cdd51bbvtDL6G8CvMEFM1yvwvMKnjGBnoOMq4PvV40HWD8dt2JsGrBr2zI3FVzbdadcGwWybc8/2BnPcqKpWrc8eHhZLxm2ZNTCiQHNDpAyXgshIUWcCv0WMlLjaZNogqJ+uWH3bhCIE/EII5wgT2Blm6wpIGV3N4PNb7xFfSwJ9QQi7ORW7ybS+rF8DKDO/ENss1hCfFFmkdhQw+eKJQPcLYTdnljYzbajnRk1sq2GCPUsIer4dAbO2ySuwoWBL/XlD5z74wrUH9Q/1pmlHVvWsh5kJ5Ec94bwu+SHIEDtRwPfDb4Lw3k76dtsnZ6lXF4vFp5qmXVutvtJW1jPdBu2kP4Pnl3pwql8nXLI+4ytQlrVTLdAt47eMvwWBTxGicFvTtL5fPx6kjExnsEXHlIpZpcP4h7g3ESuVykyyHL3qatzyA7EzILrYc+3PNIErsno+wTKx07UhXHsqEZVjTzAL2DMFpAyfZmD3ngGMFphxk+c5Z47cacNrQc2K0YlezHii5DnGFuckmmwfgckgvJkZ7zKQUnNtygbTyuiHAB+fNAkiLBDutjevJc0lw2tdASnD8xlI/JuZQH8Twp614fHADx8hwj6t046nJYE+KYR9ZTzRsihJKVCpRG8ii3+WFN5mOPpxsrjxTrsC4O0TJ8HqRM8r3pk4bgbYlQJS8ixGZOSVO8HeiRYu5PwBB0Y1AFZXmXTQmRXvUyoVHuuga9bFoAIj8/oBACdxGoz9SFeSsXIFI6XfhWsPZEWREx/2WAB9WXsaoMRnEFipN1O1Wt2joSy9wDfZi7HW85ypyYJmaHEpUJGhLp+01fbuuOKPFofA7yDfD/cHJV+YQx+uXBJ/X9jb62Sz+PEqYGzDAOMDVC4Hh1m53C/iTamlaL/1hHNQSy2zRqlTwA/Cr4HxwaSJ6XN/qVKpHkOWdbcB8IVCOG9MGjfDi0cBKcOrGUh8ba2eJiXfrx4HsjbtdIwnpRaiEP3Ec+1jW2iZNUmhAhVZu0IbKHFqRBeR79dOBJGBHbB8pycKJyaedAYYiwK+X7sMRGOejRAL0MuDEF1m7k7L/GPPKyT+6rgnQk7CoL5f+xSILkk8deZLTZr2p55XOCbxpDPAWBSoyNqVBBr3zK9YwDYLwuB/pSCIjlDM98YdvIV4v/aEY7xMegs8sybbUEDK8N8ZOC9pcQh0AZk6wYYZj5U8J/FFOkmL3K94MghvYsa7E8/PwoepVqu9pt4gA+//6QVP2DsmnnQGGIsCfhDdBebEZ3+Y+F0kJe/EiJbGkkl7QerNZWZEjfa6Za3ToIAvw0UA9k2aCyt1LC1btkwMTdluUxnFJElUg/rO06YJEx+YJNPsS6yKH75EhGmJJ8eYO7KeNtR7tEpJExjrrKikuWR4rSuwevXqoUKxZOQEeIvs2U3TyiB8mtnARjULH/SKW59e0rp8WUsTCvh+OBeEh0xgN5ezamBTy8wAXOsJ51wTyWeYnStQCcKziPGtziN02pPWeMIeHtkjVruRiM7oNFSn/Ri4ryScf+y0f9bPjAIVGf5fAv63AfRmNaINz7RBdAmYE68NS4SKW2zWPagbECCD7FABX4b6ZHoDy0rpdk/Yb2maNgjqpylW3+kwh+66Mfb3POd/uguS9U5KAWZ2ZRDpH2GJ7w8ji64SRftfNtxpw3A/1KFP50v8YqjzS6L45cSBM8COFAiC6DDFbGLTgC7E9D7PdW7YWDVRyCDSVRNzHWXSRSdmvrvkFf6pixBZ1wQVKPu1T1tEFyUIuQmKgIOFcB7cVERMBuEfmbHpMIYESQXCtYeJqJogZgbVoQK+DPVB3/t32L2bbg2/Yk+ZPp0qfzetDG9h4NRuonbcl9UJnldMfvdEx4QnZ0cp5U4j58wlXyMD/FRJFF6tld9k2oqMLiTwVUaGg3CT5zpnGsHOQFtWwFQNL02Qwd8uiUJzVdkm066Xcl4O+ftaziDGhsxYv3LF8zNmz56dPSLEqGvcoXwZPgjgwLjjthKPoM4TonjNFqZl5uLIVEahlSBxt2HFp5VKBSMVpuPOpR/jlcu1Pa0cPWGkmLIWNI/Xe47z+y1Mq/9RkeGvCDCym4CBhaVsS3lq/S5l9EUGf8wMQVor3Py0jad5blGC3A+iT4E5+c1qG5TgRl3tOThYTL5Ek5mRmDCoS5cudYenzVwC8HZmSNOdnrA37dx+2Snk0TwGG3mu1WJYhK+7rvMhM8JkqKMpYPqgbwLOE8JpPs9u9XjAzHlfRiuJMMXQEAaqUdt1YGBghSH8DPZlCuiynn4QLSYYmcNvsqlHao+hoeLT2zSt/k8pw1sZeIep0dPTbkIUEt+abCrftONWgtppxGRmXcqGX31PCeE052fHMG3tnQxaYFBMySrcrVQqLTfIIYPecChiLqhGi5mxhylBNi6SGdO0zFwKqvUXmVmYIgpY13oiny0ONzcATWTfD84G5a4zSYPyOEg4zm/HNO0GsrXvg+gUg2TrqsH7DgwUHjfIYVJDr1y5ckB4g08BtIMpIYjwnFu0ZxMRj2taKetvY6jvmSLbxCX6uefabzLKYRKDSxnNZ3DzqHpTF4GuFMLeqjLjNo+K1NvKB4e2e4EIg6YIa1yLcIbrOjeb5DAZsf0w3Bf15sbFvMn8VYNfu61v21HPNy374TcswvtNkmbGKk/YexLRSpM8JhO2nvaUQaSfIV9vNG/Gw57nHLAtDqOaVsrwAAa2eAA2kgTznZ6X1bFNSvuyX/uUZaKE58sTHKO8wJgnSfsy1Hu3zH7idDKMD3ue87WkBm6y4qyX8tA88r9gw48FAK3zK2t2mj59eqWtO61uHAThexTjhhQMomSFQ0sl5w8p4NKXFJh5uyCIfsfALilI8CuecEbdoj7mnZaZCzKoPwfwjBQk8qxw7f2JaE0KuPQVBf0SQVbrPwHzUSlIrFGP1KuHhop/Ho3LmKbVnfwguhjMl6cgGT0Ndo8o5o8joigVfPqEhJTRlxj80XSkw7d7ovCWsbiMa9p163g4b0fPmShQt03ijBs8z3lfOgSe+CykDM9l4CtpyYSAA4VwxqwTNq5pdTIVWZtPIKMTzVuIyvxpzyuYWveblvHtmoeUtVMY9F0TpQO2RZ4Z95Q85+jxEmvJtCOHPj8LwBsvYFJ/14dUCGGb2YiZVJI9xPH96rEg63YARrZXbXtWgOYJYd8/Xtotmbb5bOvXPgeifx0vYIJ/Z333F8L+YoKYfQGlDUtW7r90iaPUJMR8t9di0ZaWTbuGeYoTRM8AGE5NopoI0WWeaydePC9VGrRBpixrp1horo9NzR0WgGKF/Vqd0mzZtBuebcOPEvClNjRKpinjq0LY52XnN4wtd9kPP2xR80dX4uWvxmTGuNHznLNaNUtbpn3iCXZ2mR0+TqA5rQIk1o75LimdU7ffnnQp/uzaTAE9D+sH0XwCDO2mHXM4fIL9KiHo+VYHrS3T6qDVanRMQ3Hip5a3lBDjSaX4lIGBwpMttZ8EjZh5WFbDBWB6cxrTZaJ/K7n2Fe1wa9u0OriU0W0MPrkdoKTaMlC2wB8QonBrUphpxZEyOoShFgCUhlezW8nE4Kc819mHiMJ2NOzQtHInhbzeoTnQDliSbQm42XXtc4lIlzCdVNfChZw/4KD6RWD+P6bXxI4hPCuiNw64dtu1bjsyrSbi++E5IFybcjcsgWWd4xXzP045z9joVSo1fef6JshIOc7W8yBc77lOR+u1OzYtM+vDoO9l4PDWmZppyeDvWmhcIIRo+WHfDNPOUVes4JIohZcQSK8hsDuPlEjPpbVq5bXDw8PrOkHr2LQabE0Q7Gqr3COmt+W0kjgRlRnqqvK6NVfPnDnTyAmVrfBst82GFVrRmVD8GZC5TYht8FYW0dGua/93G322aNqVaXWkShCeQYwbOyWQfD9eTqDPua593USuPq4rv1SC8K0W0aVg7JW8jp0hMvDlknDO76z3hl5dm7ZpXBl+m4DTuyGSdF9mvEjgaxqN2lcHBwdXJY3fKZ4uyVqR0Rk5C+czY4vKK53GTLDfomXPP3fInDlzat1gxmJavUfeKw09NAFFBBH5DL6FGNcLsWVRiG6Ejbvvump195yiswnWewHePu74vY7HjHWNnJo7VPx7Ta5OMWMxrQav1Wp7N5T1oK5Q0ykZ0/0Y/Eci61ZVV99LwwsKn3lHDqK3EfB2AAfH9c1oQGdW4LcOiMJtcWDHZlpNRsra20bWZ8YaN45E247BeJKI7lIW7vEK+d/oH3Jtx2izw9NPP12Y8YpXzM1x7kgiOpaBubr8Q5th0tec+bOeV4jtGKfYzeX7tU/D0DlTPRytBoBHwc0t9Y8Q0aNRJP84NDS0ulPMFStWlDxvyhzLsvZpsNrHAh3AYH3UUbHTmOnsR3cKN3/yxirecXCM3bQj87e6XKj+Suv3S88z/oWZl1sWrVSMVcRcgYUqM+o5siwFFJnZI8I0KF1Jm2YwsCsRJtxzaQeD+YfyenvezJkU6xRj7KbViW0odz7j5wAO6SDRrEtfKMBLwPWDPc9bFnc6PTGtJrmWeWpehvcR0d5xk87ipV6Bl/I5PqxQKCzuBdOemVaT9X1/R7Ls+5jxyl6Qz2KmUoG1YBzpec6iXrHrqWmbd9y1wWzbsX4J0KxeJZHFTYcCRFQB481C2L/pJaOem1aTX7euunvepnsz4/ZyKM3G1i9pGnWcMDBgL+w1k0RMq5MIAp6tONTG3bXXSWXxk1VAz2ETcLzr2r9KAjkx0+pk9CnWinM/I6I9k0guw0hCAVpVBx83lOAr8ERNqyVk5mkyiH4E4KAkJM0weqkAL1ENHDsw0JtZgtGYJ27aEeO6MqgvAPikXkqaxe6pAr8H28d7HsU+DzseayOmHTGuFQThlQy6YAIvBBlP3z79O93pV9acPlrR414nbcy0GxPTi8gt0NdSVaKn16pP3PgM5iuEcC6Ocy1Bu3IYN60m7PvhfiD+fjaz0O7wJdder4dl4vfGtbywG+apMK1OQL/2tYPwWwBtOiK9m8SyvrEqsChn2e8oFmnU6tyxoo0TLDWm3cizLMNzLWA+gPRU9EtyRNKFpRj4d8+1P9FuQY1eppE60+pky+XaXlaObgKwXy+Tz2KPqcBSVvTeUsnWq/VSdaXStCOzC3k/qF9A4Euzu26inlEgfF0U7U+mtTpPak27cZiq1erudWV9g4AjEh26yQjGeLJB9Q8MCvHrNKefetOO3HXJ98PTybKuAHinNAs6EbkxYz2YP/fCC0u+3O327iTynxCm3SgEMwtZrX8C3DwdO/uh1r1DGmgWWoku8jzvhe7DJRNhQpl2oyRS8iwmfb4ZdPXotNetSmYk20NhgH/Mii5utWR8e+F723pCmvbvz7v8ykYjuoQIp5s/z7W3AxVbdKKfEvMl453VFRteDwJNaNNuZt7dGxx9HIwz+m8LdiyjrgC6k8BXCuE8GEtEg0H6wrQb9SuXebqVr38IjA8BvINBXVMBrauiE3Bjo66+MjhY/FMqSMVAoq9Mu9kPNrsShCdZZJ0N5iNTd5pLDAM3TohFYFwnpf2dfjw4pS9Nu/mASilnKcq9i0CngfGa3vvFGMJSBt+KHL5dKhQeNcYiAeC+N+3mGpZrtb0shVNY0UlE2Heir+Mlwp9B9AMo3Oa6+QeIiBPwjHGISWXazdX2fd4RiI4lwlEMvBHAdOOjMQ4B/YwK5vssop/V6/zTwcHCH9POuRf8Jq1pXy5muVzb08rTPCg+CBbNBUNvvsz3QvQWYzIB+hDthxXUb4mt+4WwF2WnUsZUCbzFQZhQzZr1yGbM2Jsb2Nti3pMZc0C0GzN2IcKUGJPxwVgComcY/Azp9/+NxuJ6PXi004M0YuSWylDZnbaDYdGFo2u12g5K5WbUWW1nWTTFYgwo6OqIVgEKNpPKE6MGywqJEQJcY4ZPZK1pEK9GXa1Qylk+NEQdlwvtgHpfdPn/ixNifr4QLGYAAAAASUVORK5CYII=",width:230,height:230},left:"16.5%",top:"center"}]},legend:{type:"scroll",orient:"vertical",right:"0%",left:"65%",top:"center",itemWidth:14,itemHeight:14,data:t,textStyle:{rich:{name:{fontSize:14,fontWeight:400,width:200,height:35,padding:[0,0,0,60],color:e.charts.color},rate:{fontSize:15,fontWeight:500,height:35,width:40,padding:[0,0,0,30],color:e.charts.color}}}},series:[{type:"pie",radius:["82",b.value.isIsDark?"50":"102"],center:["32%","50%"],itemStyle:{color:function(m){return h[m.dataIndex]}},label:{show:!1},labelLine:{show:!1},data:n}]};e.global.homeCharFour.setOption(l),e.myCharts.push(e.global.homeCharFour)},S=()=>{Z(()=>{for(let s=0;s{e.myCharts[s].resize()},s*1e3)})},$=()=>{window.addEventListener("resize",S)},ee=async()=>{let s={namespaceId:f.get("nid")==null?1:f.get("nid")},t=await F.getTaskData(s);e.homeOne[0]={num1:t.job.total,num2:t.job.newTotal,num3:o("message.home.countOne.one"),num4:"fa fa-history",color1:"#FF6462",color2:"--next-color-primary-lighter",color3:"--el-color-primary"},e.homeOne[1]={num1:t.jobInstance.total,num2:t.jobInstance.newTotal,num3:o("message.home.countOne.two"),num4:"fa fa-file",color1:"#6690F9",color2:"--next-color-success-lighter",color3:"--el-color-success"},e.homeOne[2]={num1:t.job.total,num2:t.job.newTotal,num3:o("message.home.countOne.three"),num4:"fa fa-tasks",color1:"#6690F9",color2:"--next-color-warning-lighter",color3:"--el-color-warning"},e.homeOne[3]={num1:t.delayInstance.total,num2:t.delayInstance.newTotal,num3:o("message.home.countOne.four"),num4:"fa fa-clipboard",color1:"#FF6462",color2:"--next-color-danger-lighter",color3:"--el-color-danger"}},te=async()=>{let s={namespaceId:f.get("nid")==null?1:f.get("nid")},t=await F.getSystemData(s);e.homeTwo[0]={num1:t.app.total,num2:t.app.newTotal,num3:o("message.home.countTwo.one"),num4:"fa fa-clone",color1:"#FF6462",color2:"--next-color-primary-lighter",color3:"--el-color-primary"},e.homeTwo[1]={num1:t.server.total,num2:t.server.newTotal,num3:o("message.home.countTwo.two"),num4:"fa fa-server",color1:"#6690F9",color2:"--next-color-success-lighter",color3:"--el-color-success"},e.homeTwo[2]={num1:t.worker.total,num2:t.worker.newTotal,num3:o("message.home.countTwo.three"),num4:"fa fa-desktop",color1:"#6690F9",color2:"--next-color-warning-lighter",color3:"--el-color-warning"},e.homeTwo[3]={num1:t.slot.total,num2:t.slot.newTotal,num3:o("message.home.countTwo.four"),num4:"fa fa-copy",color1:"#FF6462",color2:"--next-color-danger-lighter",color3:"--el-color-danger"}};return ae(async()=>{$(),await ee(),setTimeout(async()=>{await te()},800)}),le(()=>{S()}),B(()=>k.value,()=>{S()}),B(()=>b.value.isIsDark,s=>{Z(()=>{e.charts.theme=s?"dark":"",e.charts.bgColor=s?"transparent":"",e.charts.color=s?"#dadada":"#303133",setTimeout(async()=>{await N()},500),setTimeout(async()=>{await V()},700)})},{deep:!0,immediate:!0}),(s,t)=>{const r=C("el-col"),n=C("el-row"),i=C("el-date-picker"),h=C("el-card");return y(),P("div",ue,[u(n,{gutter:15,class:"home-card-one mb15"},{default:c(()=>[(y(!0),P(L,null,I(e.homeOne,(l,m)=>(y(),J(r,{xs:24,sm:12,md:12,lg:6,xl:6,key:m,class:w({"home-media home-media-lg":m>1,"home-media-sm":m===1})},{default:c(()=>[a("div",he,[a("div",{class:w(["flex-margin flex w100",` home-one-animation${m}`])},[a("div",de,[a("span",ge,p(l.num1),1),a("span",{class:"ml5 font16",style:v({color:l.color1})},"+"+p(l.num2),5),a("div",fe,p(l.num3),1)]),a("div",{class:"home-card-item-icon flex",style:v({background:`var(${l.color2})`})},[a("i",{class:w(["flex-margin font32",l.num4]),style:v({color:`var(${l.color3})`})},null,6)],4)],2)])]),_:2},1032,["class"]))),128))]),_:1}),u(n,{gutter:15,class:"home-card-one mb15"},{default:c(()=>[(y(!0),P(L,null,I(e.homeTwo,(l,m)=>(y(),J(r,{xs:24,sm:12,md:12,lg:6,xl:6,key:m,class:w({"home-media home-media-lg":m>1,"home-media-sm":m===1})},{default:c(()=>[a("div",pe,[a("div",{class:w(["flex-margin flex w100",` home-one-animation${m}`])},[a("div",we,[a("span",be,p(l.num1),1),a("div",ye,p(l.num3),1)]),a("div",{class:"home-card-item-icon flex",style:v({background:`var(${l.color2})`})},[a("i",{class:w(["flex-margin font32",l.num4]),style:v({color:`var(${l.color3})`})},null,6)],4)],2)])]),_:2},1032,["class"]))),128))]),_:1}),u(n,{gutter:15,class:"home-card-job mb15"},{default:c(()=>[u(r,null,{default:c(()=>[u(h,{class:"box-card",shadow:"hover","body-style":"padding-bottom:0px;"},{header:c(()=>[a("div",ve,[X(p(g(o)("message.home.timeSelect"))+": ",1),u(i,{modelValue:e.jobDateSelect,"onUpdate:modelValue":t[0]||(t[0]=l=>e.jobDateSelect=l),type:"datetimerange",shortcuts:g(x),"range-separator":"-",size:"default","start-placeholder":g(o)("message.dateMsg.startDate"),"end-placeholder":g(o)("message.dateMsg.endDate"),onChange:t[1]||(t[1]=l=>N())},null,8,["modelValue","shortcuts","start-placeholder","end-placeholder"])])]),default:c(()=>[u(n,{gutter:15,class:"home-card-two mb15"},{default:c(()=>[u(r,{xs:24,sm:14,md:14,lg:16,xl:16},{default:c(()=>[a("div",Fe,[a("div",{style:{height:"100%"},ref_key:"homeLineJobRef",ref:R},null,512)])]),_:1}),u(r,{xs:24,sm:10,md:10,lg:8,xl:8,class:"home-media"},{default:c(()=>[a("div",De,[a("div",{style:{height:"100%"},ref_key:"homePieJobRef",ref:H},null,512)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),u(n,{gutter:15,class:"home-card-delay mb15"},{default:c(()=>[u(r,null,{default:c(()=>[u(h,{class:"box-card",shadow:"hover","body-style":"padding-bottom:0px;"},{header:c(()=>[a("div",Te,[X(p(g(o)("message.home.timeSelect"))+": ",1),u(i,{modelValue:e.delayDateSelect,"onUpdate:modelValue":t[2]||(t[2]=l=>e.delayDateSelect=l),type:"datetimerange",shortcuts:g(x),"range-separator":"-",size:"default","start-placeholder":g(o)("message.dateMsg.startDate"),"end-placeholder":g(o)("message.dateMsg.endDate"),onChange:t[3]||(t[3]=l=>V())},null,8,["modelValue","shortcuts","start-placeholder","end-placeholder"])])]),default:c(()=>[u(n,{gutter:15,class:"home-card-two mb15"},{default:c(()=>[u(r,{xs:24,sm:14,md:14,lg:16,xl:16},{default:c(()=>[a("div",Ee,[a("div",{style:{height:"100%"},ref_key:"homeLineDelayRef",ref:O},null,512)])]),_:1}),u(r,{xs:24,sm:10,md:10,lg:8,xl:8,class:"home-media"},{default:c(()=>[a("div",ze,[a("div",{style:{height:"100%"},ref_key:"homePieDelayRef",ref:Y},null,512)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}});const Ze=me(Ae,[["__scopeId","data-v-c551590d"]]);export{Ze as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.1020967b.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.1020967b.js new file mode 100644 index 00000000..8e1109a8 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.1020967b.js @@ -0,0 +1 @@ +import{_ as J}from"./preload-helper.101896b7.js";import{u as K}from"./vue-i18n.cjs.2a00fe88.js";import{L as Z}from"./storage.b628b270.js";import{u as G}from"./index.3f2ce315.js";import{b as Q}from"./formatTime.057ac5b9.js";import{J as W}from"./index.f64fca3a.js";import{ay as X}from"./index.e8f4f9cf.js";import{h as C,r as y,ap as Y,K as w,o as ee,a9 as n,ac as ae,j as h,k as te,l as z,D as e,x as o,u as r,B as _,C as g,y as oe,v as le}from"./vue.bd0669ce.js";import{_ as ne}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.ee56f1f7.js";const se={class:"system-role-container layout-padding"},me={class:"system-role-padding layout-padding-auto layout-padding-view"},re={class:"system-user-search mb15"},pe=C({name:"systemRole"}),ie=C({...pe,setup(de){const{t:s}=K(),v=G(),f=y(),B=Y(()=>J(()=>import("./dialog.5b38864a.js"),["assets/dialog.5b38864a.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/index.3f2ce315.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.843de072.css"])),b=y(),i=w({form:{name:""},rules:{name:{required:!1,message:s("message.app.validateName"),pattern:/^[0-9a-zA-Z_.-]*$/,trigger:"blur"}}}),l=w({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:20}}}),p=async()=>{l.tableData.loading=!0;let a=await v.getList({namespaceId:Z.get("nid"),name:i.form.name,page:l.tableData.param.pageNum,size:l.tableData.param.pageSize});l.tableData.data=[],a.list.forEach(function(t){l.tableData.data.push({id:t.id,name:t.name,namespaceId:t.namespaceId,namespaceName:t.namespaceName,desc:t.desc,createTime:Q(t.createTime)})}),l.tableData.total=a.total,setTimeout(()=>{l.tableData.loading=!1},500)},S=a=>{!a||a.validate(t=>{if(t)p();else return!1})},k=()=>{var a;(a=f.value)==null||a.clearValidate(),i.form.name="",p()},R=a=>{b.value.openDialog(a)},N=(a,t)=>{b.value.openDialog(a,t)},$=a=>{W.confirm(s("message.app.deleteTitle")+`(${a.name})?`,s("message.commonMsg.tip"),{confirmButtonText:s("message.commonBtn.confirm"),cancelButtonText:s("message.commonBtn.cancel"),type:"warning"}).then(async()=>{await v.delete({id:a.id}),await p(),X.success(s("message.commonMsg.deleteSuccess"))}).catch(()=>{})},x=a=>{l.tableData.param.pageSize=a,p()},T=a=>{l.tableData.param.pageNum=a,p()};return ee(()=>{p()}),(a,t)=>{const A=n("el-input"),E=n("el-form-item"),D=n("el-col"),V=n("ele-Search"),c=n("el-icon"),u=n("el-button"),I=n("ele-RefreshRight"),M=n("ele-FolderAdd"),L=n("el-row"),O=n("el-form"),d=n("el-table-column"),U=n("ele-Edit"),j=n("ele-Delete"),q=n("el-table"),F=n("el-pagination"),H=ae("loading");return h(),te("div",se,[z("div",me,[z("div",re,[e(O,{ref_key:"tableSearchRef",ref:f,model:i.form,rules:i.rules},{default:o(()=>[e(L,null,{default:o(()=>[e(D,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:o(()=>[e(E,{label:r(s)("message.app.name"),prop:"name"},{default:o(()=>[e(A,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=m=>i.form.name=m),size:"default",style:{width:"95%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e(D,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:o(()=>[e(u,{size:"default",type:"primary",class:"ml10",onClick:t[1]||(t[1]=m=>S(f.value))},{default:o(()=>[e(c,null,{default:o(()=>[e(V)]),_:1}),_(" "+g(a.$t("message.commonBtn.query")),1)]),_:1}),e(u,{size:"default",type:"primary",class:"ml10",onClick:t[2]||(t[2]=m=>k())},{default:o(()=>[e(c,null,{default:o(()=>[e(I)]),_:1}),_(" "+g(a.$t("message.commonBtn.reset")),1)]),_:1}),e(u,{size:"default",type:"success",class:"ml10",onClick:t[3]||(t[3]=m=>R("add"))},{default:o(()=>[e(c,null,{default:o(()=>[e(M)]),_:1}),_(" "+g(a.$t("message.commonBtn.add")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),oe((h(),le(q,{data:l.tableData.data,style:{width:"100%"}},{default:o(()=>[e(d,{prop:"id",label:r(s)("message.app.id"),"show-overflow-tooltip":""},null,8,["label"]),e(d,{prop:"namespaceName",label:r(s)("message.app.namespace"),"show-overflow-tooltip":""},null,8,["label"]),e(d,{prop:"name",label:r(s)("message.app.name"),"show-overflow-tooltip":""},null,8,["label"]),e(d,{prop:"desc",label:r(s)("message.app.desc"),"show-overflow-tooltip":""},null,8,["label"]),e(d,{prop:"createTime",label:r(s)("message.app.createTime"),"show-overflow-tooltip":""},null,8,["label"]),e(d,{label:r(s)("message.commonMsg.operation"),width:"300"},{default:o(m=>[e(u,{type:"primary",size:"default",onClick:P=>N("update",m.row)},{default:o(()=>[e(c,null,{default:o(()=>[e(U)]),_:1}),_(" "+g(a.$t("message.commonBtn.update")),1)]),_:2},1032,["onClick"]),e(u,{type:"danger",size:"default",disabled:m.row.id===1,onClick:P=>$(m.row)},{default:o(()=>[e(c,null,{default:o(()=>[e(j)]),_:1}),_(" "+g(a.$t("message.commonBtn.delete")),1)]),_:2},1032,["disabled","onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[H,l.tableData.loading]]),e(F,{onSizeChange:x,onCurrentChange:T,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":l.tableData.param.pageNum,"onUpdate:current-page":t[4]||(t[4]=m=>l.tableData.param.pageNum=m),background:"","page-size":l.tableData.param.pageSize,"onUpdate:page-size":t[5]||(t[5]=m=>l.tableData.param.pageSize=m),layout:"total, sizes, prev, pager, next, jumper",total:l.tableData.total},null,8,["current-page","page-size","total"])]),e(r(B),{ref_key:"nsDialogRef",ref:b,onRefresh:t[6]||(t[6]=m=>p())},null,512)])}}});const ke=ne(ie,[["__scopeId","data-v-8603d9ee"]]);export{ke as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.106d7c9e.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.106d7c9e.js new file mode 100644 index 00000000..604b560f --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.106d7c9e.js @@ -0,0 +1 @@ +import{h as n,r as l,a9 as s,j as u,k as p,D as r}from"./vue.bd0669ce.js";const m={class:"layout-pd"},_=n({name:"menu121"}),f=n({..._,setup(c){const e=l("");return(d,o)=>{const t=s("el-input");return u(),p("div",m,[r(t,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a),placeholder:"menu121:请输入内容测试路由缓存"},null,8,["modelValue"])])}}});export{f as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.11096183.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.11096183.js new file mode 100644 index 00000000..9134227d --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.11096183.js @@ -0,0 +1 @@ +import{h as u,r as k,K as b,a as C,o as S,a4 as I,a9 as g,j as s,v as E,x as L,y as M,E as B,k as c,l as r,F as D,Z as j,q as F,u as l,T,aE as $,aF as z,D as N,C as p}from"./vue.bd0669ce.js";import{_ as O}from"./_plugin-vue_export-helper.c27b6911.js";const R=t=>($("data-v-8b118bf6"),t=t(),z(),t),V={class:"el-dropdown-menu"},q=["onClick"],K=R(()=>r("div",{class:"el-popper__arrow",style:{left:"10px"}},null,-1)),U=u({name:"pagesWorkflowContextmenu"}),W=u({...U,props:{dropdown:{type:Object,default:()=>({x:"",y:""})}},emits:["current"],setup(t,{expose:m,emit:_}){const x=t,f=k(),e=b({isShow:!1,dropdownList:[{contextMenuClickId:0,txt:"删除",icon:"ele-Delete"},{contextMenuClickId:1,txt:"编辑",icon:"ele-Edit"}],item:{type:"node"},conn:{}}),d=C(()=>x.dropdown),y=n=>{_("current",Object.assign({},{contextMenuClickId:n},e.item),e.conn)},v=(n,i={})=>{e.item=n,e.conn=i,o(),setTimeout(()=>{e.isShow=!0},10)},o=()=>{e.isShow=!1};return S(()=>{document.body.addEventListener("click",o),document.body.addEventListener("contextmenu",o)}),I(()=>{document.body.removeEventListener("click",o),document.body.removeEventListener("contextmenu",o)}),m({openContextmenu:v}),(n,i)=>{const w=g("SvgIcon");return s(),E(T,{name:"el-zoom-in-center",ref_key:"contextmenuRef",ref:f},{default:L(()=>[M((s(),c("div",{"aria-hidden":"true",class:"el-dropdown__popper el-popper is-light is-pure custom-contextmenu",role:"tooltip","data-popper-placement":"bottom",style:F(`top: ${l(d).y+5}px;left: ${l(d).x}px;`),key:Math.random()},[r("ul",V,[(s(!0),c(D,null,j(e.dropdownList,(a,h)=>(s(),c("li",{class:"el-dropdown-menu__item","aria-disabled":"false",tabindex:"-1",key:h,onClick:Z=>y(a.contextMenuClickId)},[N(w,{name:a.icon},null,8,["name"]),r("span",null,p(a.txt)+p(e.item.type==="line"?"线":"节点"),1)],8,q))),128))]),K],4)),[[B,e.isShow]])]),_:1},512)}}});const H=O(W,[["__scopeId","data-v-8b118bf6"]]);export{H as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.13596aea.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.13596aea.js new file mode 100644 index 00000000..a7f534e6 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.13596aea.js @@ -0,0 +1 @@ +import{h as u,r as c,K as b,o as k,a9 as w,y as S,E as W,j as o,k as i,l as d,n as T,A as f,C as B,m as I,v as O,q as m,J as A}from"./vue.bd0669ce.js";import{_ as $}from"./_plugin-vue_export-helper.c27b6911.js";const C={key:1,class:"notice-bar-warp-slot"},R=u({name:"noticeBar"}),_=u({...R,props:{mode:{type:String,default:()=>""},text:{type:String,default:()=>""},color:{type:String,default:()=>"var(--el-color-warning)"},background:{type:String,default:()=>"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:()=>14},height:{type:Number,default:()=>40},delay:{type:Number,default:()=>1},speed:{type:Number,default:()=>100},scrollable:{type:Boolean,default:()=>!1},leftIcon:{type:String,default:()=>""},rightIcon:{type:String,default:()=>""}},emits:["close","link"],setup(t,{emit:s}){const n=t,l=c(),a=c(),e=b({order:1,oneTime:0,twoTime:0,warpOWidth:0,textOWidth:0,isMode:!1}),y=()=>{A(()=>{e.warpOWidth=l.value.offsetWidth,e.textOWidth=a.value.offsetWidth,document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${e.textOWidth}px;}}`),document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${e.warpOWidth}px;} 100% {left: -${e.textOWidth}px;}}`),h(),setTimeout(()=>{r()},n.delay*1e3)})},h=()=>{e.oneTime=e.textOWidth/n.speed,e.twoTime=(e.textOWidth+e.warpOWidth)/n.speed},r=()=>{e.order===1?(a.value.style.cssText=`animation: oneAnimation ${e.oneTime}s linear; opactity: 1;}`,e.order=2):a.value.style.cssText=`animation: twoAnimation ${e.twoTime}s linear infinite; opacity: 1;`},p=()=>{a.value.addEventListener("animationend",()=>{r()},!1)},x=()=>{if(!n.mode)return!1;n.mode==="closeable"?(e.isMode=!0,s("close")):n.mode==="link"&&s("link")};return k(()=>{if(n.scrollable)return!1;y(),p()}),(g,N)=>{const v=w("SvgIcon");return S((o(),i("div",{class:"notice-bar",style:m({background:t.background,height:`${t.height}px`})},[d("div",{class:"notice-bar-warp",style:m({color:t.color,fontSize:`${t.size}px`})},[t.leftIcon?(o(),i("i",{key:0,class:T(["notice-bar-warp-left-icon",t.leftIcon])},null,2)):f("",!0),d("div",{class:"notice-bar-warp-text-box",ref_key:"noticeBarWarpRef",ref:l},[t.scrollable?(o(),i("div",C,[I(g.$slots,"default",{},void 0,!0)])):(o(),i("div",{key:0,class:"notice-bar-warp-text",ref_key:"noticeBarTextRef",ref:a},B(t.text),513))],512),t.rightIcon?(o(),O(v,{key:1,name:t.rightIcon,class:"notice-bar-warp-right-icon",onClick:x},null,8,["name"])):f("",!0)],4)],4)),[[W,!e.isMode]])}}});const E=$(_,[["__scopeId","data-v-eaf205fb"]]);export{E as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.145341d4.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.145341d4.js new file mode 100644 index 00000000..75f7e078 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.145341d4.js @@ -0,0 +1 @@ +import{_ as d}from"./preload-helper.101896b7.js";import{h as n,ap as p,K as c,a9 as r,j as g,k as m,D as o,x as b,u as _}from"./vue.bd0669ce.js";const u={class:"editor-container layout-pd"},x=n({name:"funWangEditor"}),y=n({...x,setup(f){const s=p(()=>d(()=>import("./index.856d5cc1.js"),["assets/index.856d5cc1.js","assets/vue.bd0669ce.js","assets/index.501cf061.css"])),t=c({editor:{htmlVal:'

胡歌,1982年9月20日出生于上海市徐汇区,中国内地影视男演员、流行乐歌手,民盟盟员 [1] ,毕业于上海戏剧学院表演系。

',textVal:"胡歌,1982年9月20日出生于上海市徐汇区,中国内地影视男演员、流行乐歌手,民盟盟员 [1] ,毕业于上海戏剧学院表演系。",disable:!1}});return(h,e)=>{const l=r("el-alert"),i=r("el-card");return g(),m("div",u,[o(i,{shadow:"hover",header:"wangeditor富文本编辑器"},{default:b(()=>[o(l,{title:"感谢优秀的 `wangeditor`,项目地址:https://github.com/wangeditor-team/wangEditor",type:"success",closable:!1,class:"mb15"}),o(_(s),{"get-html":t.editor.htmlVal,"onUpdate:get-html":e[0]||(e[0]=a=>t.editor.htmlVal=a),"get-text":t.editor.textVal,"onUpdate:get-text":e[1]||(e[1]=a=>t.editor.textVal=a),disable:t.editor.disable},null,8,["get-html","get-text","disable"])]),_:1})])}}});export{y as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.15262e19.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.15262e19.js new file mode 100644 index 00000000..f1bc3641 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.15262e19.js @@ -0,0 +1 @@ +import{h as s,ar as p,K as u,a as h,a9 as k,j as t,k as n,l,C as g,u as v,F as C,Z as w,D as N}from"./vue.bd0669ce.js";import{u as T}from"./themeConfig.cb88f033.js";import{_ as x}from"./_plugin-vue_export-helper.c27b6911.js";const y={class:"workflow-tool"},D={class:"pl15"},b={class:"workflow-tool-right"},S=["title","onClick"],B=s({name:"pagesWorkflowTool"}),F=s({...B,emits:["tool"],setup(I,{emit:a}){const c=T(),{themeConfig:i}=p(c),r=u({toolList:[{icon:"ele-Help",title:"帮助",fnName:"help"},{icon:"ele-Download",title:"下载",fnName:"download"},{icon:"ele-Check",title:"提交",fnName:"submit"},{icon:"ele-DocumentCopy",title:"复制",fnName:"copy"},{icon:"ele-Delete",title:"删除",fnName:"del"},{icon:"ele-FullScreen",title:"全屏",fnName:"fullscreen"}]}),_=h(()=>{let{globalTitle:e}=i.value;return`${e}工作流`}),m=e=>{a("tool",e)};return(e,L)=>{const d=k("SvgIcon");return t(),n("div",y,[l("div",D,g(v(_)),1),l("div",b,[(t(!0),n(C,null,w(r.toolList,(o,f)=>(t(),n("div",{class:"workflow-tool-icon",key:f,title:o.title,onClick:V=>m(o.fnName)},[N(d,{name:o.icon},null,8,["name"])],8,S))),128))])])}}});const H=x(F,[["__scopeId","data-v-9348a56b"]]);export{H as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.19bae86a.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.19bae86a.js new file mode 100644 index 00000000..69d03cc6 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.19bae86a.js @@ -0,0 +1 @@ +import{h as _,aH as w,K as f,a9 as s,j as N,k as v,l as t,D as a,x as n,B as o,C as y}from"./vue.bd0669ce.js";const b={class:"layout-padding"},x={class:"layout-padding-auto layout-padding-view"},I={class:"flex-margin",style:{width:"400px"}},C=t("div",null,"1、设置非国际化:格式:tagsViewName=xxx",-1),k=t("br",null,null,-1),z=t("div",null,'2、设置国际化:格式:tagsViewName=JSON.stringify({"zh-cn":"测试用","en":"test+page","zh-tw":"測試用"})',-1),S=t("br",null,null,-1),B=t("div",null,"3、设置国际化后,去顶栏切换语言查看演示效果",-1),q=t("br",null,null,-1),D=t("div",null,[o(" 4、 "),t("a",{href:"https://gitee.com/q7but",target:"_black"},"感谢@q7but"),o("、 "),t("a",{href:"https://gitee.com/lyt-top/vue-next-admin/pulls/22/files",target:"_black"},"!22 add 添加自定义 tagVIewName 拓展,支持国际化")],-1),T=_({name:"paramsCommon"}),U=_({...T,setup(J){const r=w(),e=f({value:"",tagsViewName:"",tagsViewNameIsI18n:!1}),p=()=>{const i={id:e.value};e.tagsViewName&&(i.tagsViewName=e.tagsViewName),r.push({path:"/params/common/details",query:i}),e.value=""},g=()=>{e.tagsViewNameIsI18n=!e.tagsViewNameIsI18n,e.tagsViewNameIsI18n?e.tagsViewName=JSON.stringify({"zh-cn":"测试用",en:"test page","zh-tw":"測試用"}):e.tagsViewName="我是普通路由测试tagsViewName(非国际化)"};return(i,l)=>{const V=s("el-alert"),u=s("el-input"),m=s("SvgIcon"),d=s("el-button"),h=s("el-result");return N(),v("div",b,[t("div",x,[t("div",I,[a(h,{icon:"success",title:"普通路由",subTitle:"可 `开启 TagsView 共用` 进行单标签测试"},{extra:n(()=>[a(V,{type:"success",closable:!1,class:"mb30"},{default:n(()=>[C,k,z,S,B,q,D]),_:1}),a(u,{modelValue:e.tagsViewName,"onUpdate:modelValue":l[0]||(l[0]=c=>e.tagsViewName=c),placeholder:"请输入tagsView 名称",clearable:"",class:"mb15",style:{width:"400px"}},null,8,["modelValue"]),a(u,{modelValue:e.value,"onUpdate:modelValue":l[1]||(l[1]=c=>e.value=c),placeholder:"请输入路由参数 id 值",clearable:"",style:{width:"400px"}},null,8,["modelValue"]),a(d,{type:"primary",size:"default",class:"mt15",onClick:p},{default:n(()=>[a(m,{name:"iconfont icon-putong"}),o(" 普通路由传参 ")]),_:1}),a(d,{type:"primary",size:"default",class:"mt15",onClick:g},{default:n(()=>[a(m,{name:"iconfont icon-fuhao-zhongwen"}),o(" "+y(e.tagsViewNameIsI18n?"普通的演示":"国际化演示"),1)]),_:1})]),_:1})])])])}}});export{U as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.1d6b0bc8.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.1d6b0bc8.js new file mode 100644 index 00000000..b3064cfa --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.1d6b0bc8.js @@ -0,0 +1 @@ +import{g as x}from"./_commonjsHelpers.35101cd5.js";import{h as O,r as T,a9 as v,j as A,k as I,D as j,x as S,B as L}from"./vue.bd0669ce.js";var w={exports:{}};(function(P,M){(function(f,n){P.exports=n()})(window,function(){return function(m){var f={};function n(r){if(f[r])return f[r].exports;var s=f[r]={i:r,l:!1,exports:{}};return m[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=m,n.c=f,n.d=function(r,s,d){n.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:d})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,s){if(s&1&&(r=n(r)),s&8||s&4&&typeof r=="object"&&r&&r.__esModule)return r;var d=Object.create(null);if(n.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:r}),s&2&&typeof r!="string")for(var y in r)n.d(d,y,function(i){return r[i]}.bind(null,y));return d},n.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(s,"a",s),s},n.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},n.p="",n(n.s=0)}({"./src/index.js":function(m,f,n){n.r(f),n("./src/sass/index.scss");var r=n("./src/js/init.js"),s=r.default.init;typeof window<"u"&&(window.printJS=s),f.default=s},"./src/js/browser.js":function(m,f,n){n.r(f);var r={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!r.isIE()&&!!window.StyleMedia},isChrome:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!d.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};f.default=r},"./src/js/functions.js":function(m,f,n){n.r(f),n.d(f,"addWrapper",function(){return y}),n.d(f,"capitalizePrint",function(){return i}),n.d(f,"collectStyles",function(){return l}),n.d(f,"addHeader",function(){return e}),n.d(f,"cleanUp",function(){return u}),n.d(f,"isRawHTML",function(){return p});var r=n("./src/js/modal.js"),s=n("./src/js/browser.js");function d(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(c){return typeof c}:d=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},d(t)}function y(t,a){var c="font-family:"+a.font+" !important; font-size: "+a.font_size+" !important; width:100%;";return'
'+t+"
"}function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,a){for(var c=document.defaultView||window,h="",b=c.getComputedStyle(t,""),E=0;E]*>(.*?)");return a.test(t)}},"./src/js/html.js":function(m,f,n){n.r(f);var r=n("./src/js/functions.js"),s=n("./src/js/print.js");function d(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(e){return typeof e}:d=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(l)}f.default={print:function(o,e){var u=i(o.printable)?o.printable:document.getElementById(o.printable);if(!u){window.console.error("Invalid HTML element id: "+o.printable);return}o.printableElement=y(u,o),o.header&&Object(r.addHeader)(o.printableElement,o),s.default.send(o,e)}};function y(l,o){for(var e=l.cloneNode(),u=Array.prototype.slice.call(l.childNodes),p=0;p"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(g){b.srcdoc+=''})),b.srcdoc+=""),t.type){case"pdf":if(r.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var E=window.open(t.fallbackPrintable,"_blank");E.focus(),t.onIncompatibleBrowser()}catch(g){t.onError(g)}finally{t.showModal&&s.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else d.default.print(t,b);break;case"image":l.default.print(t,b);break;case"html":y.default.print(t,b);break;case"raw-html":i.default.print(t,b);break;case"json":o.default.print(t,b);break}}}},"./src/js/json.js":function(m,f,n){n.r(f);var r=n("./src/js/functions.js"),s=n("./src/js/print.js");function d(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(o){return typeof o}:d=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},d(i)}f.default={print:function(l,o){if(d(l.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof l.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!l.properties||!Array.isArray(l.properties))throw new Error("Invalid properties array for your JSON data.");l.properties=l.properties.map(function(e){return{field:d(e)==="object"?e.field:e,displayName:d(e)==="object"?e.displayName:e,columnSize:d(e)==="object"&&e.columnSize?e.columnSize+";":100/l.properties.length+"%;"}}),l.printableElement=document.createElement("div"),l.header&&Object(r.addHeader)(l.printableElement,l),l.printableElement.innerHTML+=y(l),s.default.send(l,o)}};function y(i){var l=i.printable,o=i.properties,e='';i.repeatTableHeader&&(e+=""),e+="";for(var u=0;u'+Object(r.capitalizePrint)(o[u].displayName)+"";e+="",i.repeatTableHeader&&(e+=""),e+="";for(var p=0;p";for(var t=0;t1)for(var h=0;h'+a+""}e+=""}return e+="
",e}},"./src/js/modal.js":function(m,f,n){n.r(f);var r={show:function(d){var y="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",i=document.createElement("div");i.setAttribute("style",y),i.setAttribute("id","printJS-Modal");var l=document.createElement("div");l.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var o=document.createElement("div");o.setAttribute("class","printClose"),o.setAttribute("id","printClose"),l.appendChild(o);var e=document.createElement("span");e.setAttribute("class","printSpinner"),l.appendChild(e);var u=document.createTextNode(d.modalMessage);l.appendChild(u),i.appendChild(l),document.getElementsByTagName("body")[0].appendChild(i),document.getElementById("printClose").addEventListener("click",function(){r.close()})},close:function(){var d=document.getElementById("printJS-Modal");d&&d.parentNode.removeChild(d)}};f.default=r},"./src/js/pdf.js":function(m,f,n){n.r(f);var r=n("./src/js/print.js"),s=n("./src/js/functions.js");f.default={print:function(i,l){if(i.base64){var o=Uint8Array.from(atob(i.printable),function(u){return u.charCodeAt(0)});d(i,l,o);return}i.printable=/^(blob|http|\/\/)/i.test(i.printable)?i.printable:window.location.origin+(i.printable.charAt(0)!=="/"?"/"+i.printable:i.printable);var e=new window.XMLHttpRequest;e.responseType="arraybuffer",e.addEventListener("error",function(){Object(s.cleanUp)(i),i.onError(e.statusText,e)}),e.addEventListener("load",function(){if([200,201].indexOf(e.status)===-1){Object(s.cleanUp)(i),i.onError(e.statusText,e);return}d(i,l,e.response)}),e.open("GET",i.printable,!0),e.send()}};function d(y,i,l){var o=new window.Blob([l],{type:"application/pdf"});o=window.URL.createObjectURL(o),i.setAttribute("src",o),r.default.send(y,i)}},"./src/js/print.js":function(m,f,n){n.r(f);var r=n("./src/js/browser.js"),s=n("./src/js/functions.js"),d={send:function(e,u){document.getElementsByTagName("body")[0].appendChild(u);var p=document.getElementById(e.frameId);p.onload=function(){if(e.type==="pdf"){r.default.isFirefox()?setTimeout(function(){return y(p,e)},1e3):y(p,e);return}var t=p.contentWindow||p.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!=="pdf"&&e.style){var a=document.createElement("style");a.innerHTML=e.style,t.head.appendChild(a)}var c=t.getElementsByTagName("img");c.length>0?i(Array.from(c)).then(function(){return y(p,e)}):y(p,e)}}};function y(o,e){try{if(o.focus(),r.default.isEdge()||r.default.isIE())try{o.contentWindow.document.execCommand("print",!1,null)}catch{o.contentWindow.print()}else o.contentWindow.print()}catch(u){e.onError(u)}finally{r.default.isFirefox()&&(o.style.visibility="hidden",o.style.left="-1px"),Object(s.cleanUp)(e)}}function i(o){var e=o.map(function(u){if(u.src&&u.src!==window.location.href)return l(u)});return Promise.all(e)}function l(o){return new Promise(function(e){var u=function p(){!o||typeof o.naturalWidth>"u"||o.naturalWidth===0||!o.complete?setTimeout(p,500):e()};u()})}f.default=d},"./src/js/raw-html.js":function(m,f,n){n.r(f);var r=n("./src/js/print.js");f.default={print:function(d,y){d.printableElement=document.createElement("div"),d.printableElement.setAttribute("style","width:100%"),d.printableElement.innerHTML=d.printable,r.default.send(d,y)}}},"./src/sass/index.scss":function(m,f,n){},0:function(m,f,n){m.exports=n("./src/index.js")}}).default})})(w);const D=x(w.exports),B=O({name:"funPrintJs"}),W=O({...B,setup(P){const M=T(),m=()=>{D({printable:M.value,type:"html",css:["//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css","//unpkg.com/element-plus/dist/index.css"],scanStyles:!1,style:"@media print{.mb15{margin-bottom:15px;}.el-button--small i.iconfont{font-size: 12px !important;margin-right: 5px;}}"})};return(f,n)=>{const r=v("el-alert"),s=v("SvgIcon"),d=v("el-button"),y=v("el-card");return A(),I("div",{ref_key:"printRef",ref:M,class:"layout-pd"},[j(y,{shadow:"hover",header:"打印演示"},{default:S(()=>[j(r,{title:"感谢优秀的 `print-js`,项目地址:https://github.com/crabbly/Print.js。请在打印弹窗 `更多设置` 中开启 `背景图形。`",type:"success",closable:!1,class:"mb15"}),j(d,{onClick:m,size:"default",type:"primary"},{default:S(()=>[j(s,{name:"iconfont icon-dayin"}),L(" 点击打印演示 ")]),_:1})]),_:1})],512)}}});export{W as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.28876cf8.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.28876cf8.js new file mode 100644 index 00000000..986386ef --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.28876cf8.js @@ -0,0 +1 @@ +import{i as h}from"./getStyleSheets.43fb22d8.js";import{h as l,K as u,o as v,a9 as o,j as s,k as _,D as i,x as n,F as x,Z as w,v as g,l as e,n as I,C as y}from"./vue.bd0669ce.js";import{_ as k}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.ee56f1f7.js";const C={class:"iconfont-container layout-pd"},L={class:"iconfont-warp"},B={class:"flex-margin"},b={class:"iconfont-warp-value"},S={class:"iconfont-warp-label mt10"},D=l({name:"pagesIocnfont"}),F=l({...D,setup(N){const t=u({sheetsIconList:[]}),r=()=>{h.ali().then(a=>t.sheetsIconList=a)};return v(()=>{r()}),(a,V)=>{const d=o("el-col"),p=o("el-row"),f=o("el-card");return s(),_("div",C,[i(f,{shadow:"hover",header:`iconfont 字体图标(自动载入):${t.sheetsIconList.length}个`},{default:n(()=>[i(p,{class:"iconfont-row"},{default:n(()=>[(s(!0),_(x,null,w(t.sheetsIconList,(c,m)=>(s(),g(d,{xs:12,sm:8,md:6,lg:4,xl:2,key:m},{default:n(()=>[e("div",L,[e("div",B,[e("div",b,[e("i",{class:I([c,"iconfont"])},null,2)]),e("div",S,y(c),1)])])]),_:2},1024))),128))]),_:1})]),_:1},8,["header"])])}}});const K=k(F,[["__scopeId","data-v-c35b33e7"]]);export{K as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2a64026a.css b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2a64026a.css new file mode 100644 index 00000000..522f9c35 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2a64026a.css @@ -0,0 +1 @@ +.slider-demo-block[data-v-2d5599f2]{display:flex;align-items:center}.slider-demo-block .el-slider[data-v-2d5599f2]{margin-top:0;margin-left:12px} diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2ab183db.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2ab183db.js new file mode 100644 index 00000000..afe9ed07 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2ab183db.js @@ -0,0 +1 @@ +import{_ as oe}from"./preload-helper.101896b7.js";import{u as te}from"./vue-i18n.cjs.2a00fe88.js";import{L as le}from"./storage.b628b270.js";import{a as ne}from"./index.dbab376e.js";import{b as se}from"./formatTime.057ac5b9.js";import{d as pe}from"./data.a7368d0d.js";import{r as re}from"./index.2f1ef0a5.js";import{J as me}from"./index.f64fca3a.js";import{ay as ie}from"./index.e8f4f9cf.js";import{h as x,r as S,ap as de,K as C,o as ce,a9 as n,ac as ue,j as v,k,l as R,D as a,x as t,u as m,F as fe,Z as _e,B as d,C as c,y as ge,v as $}from"./vue.bd0669ce.js";import{_ as be}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.3f2ce315.js";import"./header.9390c1c5.js";import"./keepAliveNames.f05bad75.js";import"./routesList.32d6bb58.js";import"./userInfo.f7c9dd73.js";import"./loading.3e617409.js";import"./tagsViewRoutes.054c4a6f.js";import"./index.ee56f1f7.js";const ye={class:"system-role-container layout-padding"},ve={class:"system-role-padding layout-padding-auto layout-padding-view"},we={class:"system-user-search mb15"},De=x({name:"systemRole"}),Ce=x({...De,setup(ze){const{t:s}=te(),z=ne(),w=S(),N=de(()=>oe(()=>import("./dialog.f948c2bd.js"),["assets/dialog.f948c2bd.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/index.3f2ce315.js","assets/index.dbab376e.js","assets/header.9390c1c5.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.c92bdd15.css"])),g=S(),h=C({list:[]}),r=C({form:{appId:"",name:"",topic:""},rules:{topic:{required:!1,message:s("message.app.validateName"),pattern:/^[0-9a-zA-Z_.-]*$/,trigger:"blur"}}}),p=C({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:20}}}),u=async()=>{p.tableData.loading=!0;let o=await z.getList({namespaceId:le.get("nid"),appId:r.form.appId,name:r.form.name,topic:r.form.topic,page:p.tableData.param.pageNum,size:p.tableData.param.pageSize});p.tableData.data=[],o.list.forEach(function(e){p.tableData.data.push({id:e.id,pid:e.pid,cid:e.cid,name:e.name,appName:e.appName,namespaceId:e.namespaceId,appId:e.appId,description:e.description,processorInfo:e.processorInfo,topic:e.topic,total:e.total,ready:e.ready,failCount:e.failCount,failRetryTimes:e.failRetryTimes,failRetryInterval:e.failRetryInterval,concurrency:e.concurrency,blockingSize:e.blockingSize,failTopicEnable:e.failTopicEnable,failTopicConcurrency:e.failTopicConcurrency,executeTimeout:e.executeTimeout,createTime:se(e.createTime)})}),p.tableData.total=o.total,setTimeout(()=>{p.tableData.loading=!1},500)},I=o=>{!o||o.validate(e=>{if(e)u();else return!1})},j=()=>{r.form.appId="",r.form.name="",r.form.topic="",u()},V=o=>{g.value.openDialog(o)},E=(o,e)=>{g.value.openDialog(o,e)},A=o=>{me.confirm(s("message.delay.job.deleteTitle")+`(${o.name})?`,s("message.commonMsg.tip"),{confirmButtonText:s("message.commonBtn.confirm"),cancelButtonText:s("message.commonBtn.cancel"),type:"warning"}).then(async()=>{await z.delete({id:o.id,cid:o.cid}),await u(),ie.success(s("message.commonMsg.deleteSuccess"))}).catch(()=>{})},M=o=>{re.push({path:"/admin/delay-instance/list",query:{appId:o.appId,delayId:o.id}})},L=(o,e)=>{if(o==="copy"){g.value.openDialog("copy",e);return}if(o==="delete"){A(e);return}},U=o=>{p.tableData.param.pageSize=o,u()},F=o=>{p.tableData.param.pageNum=o,u()};return ce(async()=>{h.list=await pe(),await u()}),(o,e)=>{const q=n("el-option"),O=n("el-select"),D=n("el-form-item"),b=n("el-col"),T=n("el-input"),H=n("ele-Search"),f=n("el-icon"),_=n("el-button"),J=n("ele-RefreshRight"),P=n("ele-FolderAdd"),Z=n("el-row"),K=n("el-form"),i=n("el-table-column"),G=n("ele-Edit"),Q=n("ele-Monitor"),B=n("el-dropdown-item"),W=n("el-dropdown-menu"),X=n("el-dropdown"),Y=n("el-table"),ee=n("el-pagination"),ae=ue("loading");return v(),k("div",ye,[R("div",ve,[R("div",we,[a(K,{ref_key:"tableSearchRef",ref:w,model:r.form,rules:r.rules},{default:t(()=>[a(Z,null,{default:t(()=>[a(b,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:t(()=>[a(D,{label:m(s)("message.delay.job.appName"),prop:"appName"},{default:t(()=>[a(O,{modelValue:r.form.appId,"onUpdate:modelValue":e[1]||(e[1]=l=>r.form.appId=l),filterable:"",placeholder:"",size:"default",style:{width:"90%"}},{default:t(()=>[(v(!0),k(fe,null,_e(h.list,l=>(v(),$(q,{key:l.id,label:l.label,value:l.id,onClick:e[0]||(e[0]=y=>I(w.value))},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),a(b,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:t(()=>[a(D,{label:m(s)("message.delay.job.name"),prop:"name"},{default:t(()=>[a(T,{modelValue:r.form.name,"onUpdate:modelValue":e[2]||(e[2]=l=>r.form.name=l),size:"default",style:{width:"95%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),a(b,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:t(()=>[a(D,{label:m(s)("message.delay.job.topic"),prop:"topic"},{default:t(()=>[a(T,{modelValue:r.form.topic,"onUpdate:modelValue":e[3]||(e[3]=l=>r.form.topic=l),size:"default",style:{width:"95%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),a(b,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:t(()=>[a(_,{size:"default",type:"primary",class:"ml10",onClick:e[4]||(e[4]=l=>I(w.value))},{default:t(()=>[a(f,null,{default:t(()=>[a(H)]),_:1}),d(" "+c(o.$t("message.commonBtn.query")),1)]),_:1}),a(_,{size:"default",type:"primary",class:"ml10",onClick:e[5]||(e[5]=l=>j())},{default:t(()=>[a(f,null,{default:t(()=>[a(J)]),_:1}),d(" "+c(o.$t("message.commonBtn.reset")),1)]),_:1}),a(_,{size:"default",type:"success",class:"ml10",onClick:e[6]||(e[6]=l=>V("add"))},{default:t(()=>[a(f,null,{default:t(()=>[a(P)]),_:1}),d(" "+c(o.$t("message.commonBtn.add")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),ge((v(),$(Y,{data:p.tableData.data,style:{width:"100%"}},{default:t(()=>[a(i,{prop:"appName",label:m(s)("message.delay.job.appName"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"name",label:m(s)("message.delay.job.name"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"processorInfo",label:m(s)("message.delay.job.processorInfo"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"topic",label:m(s)("message.delay.job.topic"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"total",label:m(s)("message.delay.job.total"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"ready",label:m(s)("message.delay.job.ready"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"failCount",label:m(s)("message.delay.job.failCount"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"createTime",label:m(s)("message.delay.job.createTime"),width:"200","show-overflow-tooltip":""},null,8,["label"]),a(i,{label:m(s)("message.commonMsg.operation"),width:"360"},{default:t(l=>[a(_,{type:"primary",size:"default",onClick:y=>E("update",l.row)},{default:t(()=>[a(f,null,{default:t(()=>[a(G)]),_:1}),d(" "+c(o.$t("message.commonBtn.update")),1)]),_:2},1032,["onClick"]),a(_,{type:"success",size:"default",onClick:y=>M(l.row)},{default:t(()=>[a(f,null,{default:t(()=>[a(Q)]),_:1}),d(" "+c(o.$t("message.commonBtn.instance")),1)]),_:2},1032,["onClick"]),a(X,{"split-button":"",type:"info",size:"default",style:{"margin-left":"12px"},onCommand:y=>L(y,l.row)},{dropdown:t(()=>[a(W,null,{default:t(()=>[a(B,{command:"copy"},{default:t(()=>[d(c(o.$t("message.commonBtn.copy")),1)]),_:1}),a(B,{command:"delete"},{default:t(()=>[d(c(o.$t("message.commonBtn.delete")),1)]),_:1})]),_:1})]),default:t(()=>[d(c(o.$t("message.commonBtn.more"))+" ",1)]),_:2},1032,["onCommand"])]),_:1},8,["label"])]),_:1},8,["data"])),[[ae,p.tableData.loading]]),a(ee,{onSizeChange:U,onCurrentChange:F,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":p.tableData.param.pageNum,"onUpdate:current-page":e[7]||(e[7]=l=>p.tableData.param.pageNum=l),background:"","page-size":p.tableData.param.pageSize,"onUpdate:page-size":e[8]||(e[8]=l=>p.tableData.param.pageSize=l),layout:"total, sizes, prev, pager, next, jumper",total:p.tableData.total},null,8,["current-page","page-size","total"])]),a(m(N),{ref_key:"nsDialogRef",ref:g,onRefresh:e[9]||(e[9]=l=>u())},null,512)])}}});const Ke=be(Ce,[["__scopeId","data-v-f5bf4bad"]]);export{Ke as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2bcb896f.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2bcb896f.js new file mode 100644 index 00000000..91819616 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2bcb896f.js @@ -0,0 +1 @@ +import{_ as T}from"./preload-helper.101896b7.js";import{J as R}from"./index.f64fca3a.js";import{ay as A}from"./index.e8f4f9cf.js";import{h as f,ap as O,r as $,K as V,o as F,a9 as s,ac as L,j as d,k as M,D as e,x as l,l as U,B as r,y as j,v as m,u as H}from"./vue.bd0669ce.js";import"./index.ee56f1f7.js";const I={class:"system-dic-container layout-padding"},P={class:"system-user-search mb15"},Y=f({name:"systemDic"}),X=f({...Y,setup(J){const b=O(()=>T(()=>import("./dialog.ded9ffab.js"),["assets/dialog.ded9ffab.js","assets/vue.bd0669ce.js"])),u=$(),a=V({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),p=()=>{a.tableData.loading=!0;const o=[];for(let t=0;t<2;t++)o.push({dicName:t===0?"角色标识":"用户性别",fieldName:t===0?"SYS_ROLE":"SYS_UERINFO",describe:t===0?"这是角色字典":"这是用户性别字典",status:!0,createTime:new Date().toLocaleString(),list:[]});a.tableData.data=o,a.tableData.total=a.tableData.data.length,setTimeout(()=>{a.tableData.loading=!1},500)},D=o=>{u.value.openDialog(o)},y=(o,t)=>{u.value.openDialog(o,t)},v=o=>{R.confirm(`此操作将永久删除字典名称:“${o.dicName}”,是否继续?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{p(),A.success("删除成功")}).catch(()=>{})},w=o=>{a.tableData.param.pageSize=o,p()},h=o=>{a.tableData.param.pageNum=o,p()};return F(()=>{p()}),(o,t)=>{const z=s("el-input"),C=s("ele-Search"),_=s("el-icon"),c=s("el-button"),x=s("ele-FolderAdd"),i=s("el-table-column"),g=s("el-tag"),k=s("el-table"),N=s("el-pagination"),S=s("el-card"),B=L("loading");return d(),M("div",I,[e(S,{shadow:"hover",class:"layout-padding-auto"},{default:l(()=>[U("div",P,[e(z,{size:"default",placeholder:"请输入字典名称",style:{"max-width":"180px"}}),e(c,{size:"default",type:"primary",class:"ml10"},{default:l(()=>[e(_,null,{default:l(()=>[e(C)]),_:1}),r(" 查询 ")]),_:1}),e(c,{size:"default",type:"success",class:"ml10",onClick:t[0]||(t[0]=n=>D("add"))},{default:l(()=>[e(_,null,{default:l(()=>[e(x)]),_:1}),r(" 新增字典 ")]),_:1})]),j((d(),m(k,{data:a.tableData.data,style:{width:"100%"}},{default:l(()=>[e(i,{type:"index",label:"序号",width:"50"}),e(i,{prop:"dicName",label:"字典名称","show-overflow-tooltip":""}),e(i,{prop:"fieldName",label:"字段名","show-overflow-tooltip":""}),e(i,{prop:"status",label:"字典状态","show-overflow-tooltip":""},{default:l(n=>[n.row.status?(d(),m(g,{key:0,type:"success"},{default:l(()=>[r("启用")]),_:1})):(d(),m(g,{key:1,type:"info"},{default:l(()=>[r("禁用")]),_:1}))]),_:1}),e(i,{prop:"describe",label:"字典描述","show-overflow-tooltip":""}),e(i,{prop:"createTime",label:"创建时间","show-overflow-tooltip":""}),e(i,{label:"操作",width:"100"},{default:l(n=>[e(c,{size:"small",text:"",type:"primary",onClick:E=>y("edit",n.row)},{default:l(()=>[r("修改")]),_:2},1032,["onClick"]),e(c,{size:"small",text:"",type:"primary",onClick:E=>v(n.row)},{default:l(()=>[r("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,a.tableData.loading]]),e(N,{onSizeChange:w,onCurrentChange:h,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":a.tableData.param.pageNum,"onUpdate:current-page":t[1]||(t[1]=n=>a.tableData.param.pageNum=n),background:"","page-size":a.tableData.param.pageSize,"onUpdate:page-size":t[2]||(t[2]=n=>a.tableData.param.pageSize=n),layout:"total, sizes, prev, pager, next, jumper",total:a.tableData.total},null,8,["current-page","page-size","total"])]),_:1}),e(H(b),{ref_key:"dicDialogRef",ref:u,onRefresh:t[3]||(t[3]=n=>p())},null,512)])}}});export{X as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2f1ef0a5.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2f1ef0a5.js new file mode 100644 index 00000000..dbcba4aa --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.2f1ef0a5.js @@ -0,0 +1 @@ +import{ar as h,at as W,au as J,av as $}from"./vue.bd0669ce.js";import{c as G}from"./_commonjsHelpers.35101cd5.js";import{p as l}from"./index.aa7cec2e.js";import{u as Q}from"./keepAliveNames.f05bad75.js";import{u as k}from"./routesList.32d6bb58.js";import{u as X}from"./themeConfig.cb88f033.js";import{S as T,T as F,R as C}from"./storage.b628b270.js";import{_ as e}from"./preload-helper.101896b7.js";import{u as g}from"./userInfo.f7c9dd73.js";import{N as M}from"./loading.3e617409.js";import{u as q}from"./tagsViewRoutes.054c4a6f.js";import{s as x,M as Y}from"./request.386cf962.js";var j={exports:{}};(function(i,r){(function(s,o){i.exports=o()})(G,function(){var s={};s.version="0.2.0";var o=s.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};s.configure=function(t){var n,a;for(n in t)a=t[n],a!==void 0&&t.hasOwnProperty(n)&&(o[n]=a);return this},s.status=null,s.set=function(t){var n=s.isStarted();t=u(t,o.minimum,1),s.status=t===1?null:t;var a=s.render(!n),_=a.querySelector(o.barSelector),p=o.speed,v=o.easing;return a.offsetWidth,U(function(m){o.positionUsing===""&&(o.positionUsing=s.getPositioningCSS()),D(_,O(t,p,v)),t===1?(D(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout(function(){D(a,{transition:"all "+p+"ms linear",opacity:0}),setTimeout(function(){s.remove(),m()},p)},p)):setTimeout(m,p)}),this},s.isStarted=function(){return typeof s.status=="number"},s.start=function(){s.status||s.set(0);var t=function(){setTimeout(function(){!s.status||(s.trickle(),t())},o.trickleSpeed)};return o.trickle&&t(),this},s.done=function(t){return!t&&!s.status?this:s.inc(.3+.5*Math.random()).set(1)},s.inc=function(t){var n=s.status;return n?(typeof t!="number"&&(t=(1-n)*u(Math.random()*n,.1,.95)),n=u(n+t,0,.994),s.set(n)):s.start()},s.trickle=function(){return s.inc(Math.random()*o.trickleRate)},function(){var t=0,n=0;s.promise=function(a){return!a||a.state()==="resolved"?this:(n===0&&s.start(),t++,n++,a.always(function(){n--,n===0?(t=0,s.done()):s.set((t-n)/t)}),this)}}(),s.render=function(t){if(s.isRendered())return document.getElementById("nprogress");b(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=o.template;var a=n.querySelector(o.barSelector),_=t?"-100":f(s.status||0),p=document.querySelector(o.parent),v;return D(a,{transition:"all 0 linear",transform:"translate3d("+_+"%,0,0)"}),o.showSpinner||(v=n.querySelector(o.spinnerSelector),v&&z(v)),p!=document.body&&b(p,"nprogress-custom-parent"),p.appendChild(n),n},s.remove=function(){S(document.documentElement,"nprogress-busy"),S(document.querySelector(o.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&z(t)},s.isRendered=function(){return!!document.getElementById("nprogress")},s.getPositioningCSS=function(){var t=document.body.style,n="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return n+"Perspective"in t?"translate3d":n+"Transform"in t?"translate":"margin"};function u(t,n,a){return ta?a:t}function f(t){return(-1+t)*100}function O(t,n,a){var _;return o.positionUsing==="translate3d"?_={transform:"translate3d("+f(t)+"%,0,0)"}:o.positionUsing==="translate"?_={transform:"translate("+f(t)+"%,0)"}:_={"margin-left":f(t)+"%"},_.transition="all "+n+"ms "+a,_}var U=function(){var t=[];function n(){var a=t.shift();a&&a(n)}return function(a){t.push(a),t.length==1&&n()}}(),D=function(){var t=["Webkit","O","Moz","ms"],n={};function a(m){return m.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(d,c){return c.toUpperCase()})}function _(m){var d=document.body.style;if(m in d)return m;for(var c=t.length,L=m.charAt(0).toUpperCase()+m.slice(1),E;c--;)if(E=t[c]+L,E in d)return E;return m}function p(m){return m=a(m),n[m]||(n[m]=_(m))}function v(m,d,c){d=p(d),m.style[d]=c}return function(m,d){var c=arguments,L,E;if(c.length==2)for(L in d)E=d[L],E!==void 0&&d.hasOwnProperty(L)&&v(m,L,E);else v(m,c[1],c[2])}}();function K(t,n){var a=typeof t=="string"?t:V(t);return a.indexOf(" "+n+" ")>=0}function b(t,n){var a=V(t),_=a+n;K(a,n)||(t.className=_.substring(1))}function S(t,n){var a=V(t),_;!K(t,n)||(_=a.replace(" "+n+" "," "),t.className=_.substring(1,_.length-1))}function V(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function z(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return s})})(j);const I=j.exports;const A=[{path:"/",name:"/",component:()=>e(()=>import("./index.89e16bac.js"),["assets/index.89e16bac.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/dashboard",meta:{isKeepAlive:!0},children:[{path:"/home",name:"home",component:()=>e(()=>import("./index.0e922f22.js"),["assets/index.0e922f22.js","assets/echarts.c5874920.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/request.386cf962.js","assets/_commonjsHelpers.35101cd5.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.aa7cec2e.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/header.9390c1c5.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.a3f48d94.css"]),meta:{title:"message.router.home",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!0,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-shouye"}},{path:"/system",name:"system",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/system/menu",meta:{title:"message.router.system",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-xitongshezhi"},children:[{path:"/system/menu",name:"systemMenu",component:()=>e(()=>import("./index.d0cd844a.js"),["assets/index.d0cd844a.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/routesList.32d6bb58.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.systemMenu",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/system/role",name:"systemRole",component:()=>e(()=>import("./index.0ad749ea.js"),["assets/index.0ad749ea.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.4b283e84.css"]),meta:{title:"message.router.systemRole",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-ColdDrink"}},{path:"/system/user",name:"systemUser",component:()=>e(()=>import("./index.b6cae7f3.js"),["assets/index.b6cae7f3.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.35b8ad32.css"]),meta:{title:"message.router.systemUser",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-icon-"}},{path:"/system/dept",name:"systemDept",component:()=>e(()=>import("./index.63dafcde.js"),["assets/index.63dafcde.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.systemDept",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-OfficeBuilding"}},{path:"/system/dic",name:"systemDic",component:()=>e(()=>import("./index.2bcb896f.js"),["assets/index.2bcb896f.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.systemDic",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-SetUp"}}]},{path:"/limits",name:"limits",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/limits/frontEnd",meta:{title:"message.router.limits",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-quanxian"},children:[{path:"/limits/frontEnd",name:"limitsFrontEnd",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/limits/frontEnd/page",meta:{title:"message.router.limitsFrontEnd",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:""},children:[{path:"/limits/frontEnd/page",name:"limitsFrontEndPage",component:()=>e(()=>import("./index.5755b38c.js"),["assets/index.5755b38c.js","assets/storage.b628b270.js","assets/vue.bd0669ce.js","assets/userInfo.f7c9dd73.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/preload-helper.101896b7.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.limitsFrontEndPage",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:""}},{path:"/limits/frontEnd/btn",name:"limitsFrontEndBtn",component:()=>e(()=>import("./index.3141a508.js"),["assets/index.3141a508.js","assets/preload-helper.101896b7.js","assets/userInfo.f7c9dd73.js","assets/vue.bd0669ce.js","assets/storage.b628b270.js","assets/arrayOperation.b573dead.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.7000b842.css"]),meta:{title:"message.router.limitsFrontEndBtn",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:""}}]},{path:"/limits/backEnd",name:"limitsBackEnd",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),meta:{title:"message.router.limitsBackEnd",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:""},children:[{path:"/limits/backEnd/page",name:"limitsBackEndEndPage",component:()=>e(()=>import("./index.06f1efcb.js"),["assets/index.06f1efcb.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.limitsBackEndEndPage",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:""}}]}]},{path:"/menu",name:"menu",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/menu/menu1",meta:{title:"message.router.menu",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"},children:[{path:"/menu/menu1",name:"menu1",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/menu/menu1/menu11",meta:{title:"message.router.menu1",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"},children:[{path:"/menu/menu1/menu11",name:"menu11",component:()=>e(()=>import("./index.ea306453.js"),["assets/index.ea306453.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.menu11",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"}},{path:"/menu/menu1/menu12",name:"menu12",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/menu/menu1/menu12/menu121",meta:{title:"message.router.menu12",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"},children:[{path:"/menu/menu1/menu12/menu121",name:"menu121",component:()=>e(()=>import("./index.106d7c9e.js"),["assets/index.106d7c9e.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.menu121",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"}},{path:"/menu/menu1/menu12/menu122",name:"menu122",component:()=>e(()=>import("./index.6a6e5b50.js"),["assets/index.6a6e5b50.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.menu122",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"}}]},{path:"/menu/menu1/menu13",name:"menu13",component:()=>e(()=>import("./index.afeb4e48.js"),["assets/index.afeb4e48.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.menu13",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"}}]},{path:"/menu/menu2",name:"menu2",component:()=>e(()=>import("./index.f460aaab.js"),["assets/index.f460aaab.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.menu2",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caidan"}}]},{path:"/fun",name:"funIndex",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/fun/tagsView",meta:{title:"message.router.funIndex",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-crew_feature"},children:[{path:"/fun/tagsView",name:"funTagsView",component:()=>e(()=>import("./index.3d8ba23b.js"),["assets/index.3d8ba23b.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/mitt.7f99bbc0.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.abfce35b.css"]),meta:{title:"message.router.funTagsView",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Pointer"}},{path:"/fun/countup",name:"funCountup",component:()=>e(()=>import("./index.d41cdb8d.js"),["assets/index.d41cdb8d.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.74e76cdf.css"]),meta:{title:"message.router.funCountup",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Odometer"}},{path:"/fun/wangEditor",name:"funWangEditor",component:()=>e(()=>import("./index.145341d4.js"),["assets/index.145341d4.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.funWangEditor",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-fuwenbenkuang"}},{path:"/fun/cropper",name:"funCropper",component:()=>e(()=>import("./index.482abe74.js"),["assets/index.482abe74.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.020c08fb.css"]),meta:{title:"message.router.funCropper",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-caijian"}},{path:"/fun/qrcode",name:"funQrcode",component:()=>e(()=>import("./index.59d6721b.js"),["assets/index.59d6721b.js","assets/qrcode.f7511028.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.e3e619f2.css"]),meta:{title:"message.router.funQrcode",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-ico"}},{path:"/fun/echartsMap",name:"funEchartsMap",component:()=>e(()=>import("./index.3ecffe5a.js"),["assets/index.3ecffe5a.js","assets/echarts.c5874920.js","assets/bmap.6179077b.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.funEchartsMap",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-ditu"}},{path:"/fun/printJs",name:"funPrintJs",component:()=>e(()=>import("./index.1d6b0bc8.js"),["assets/index.1d6b0bc8.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.funPrintJs",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Printer"}},{path:"/fun/clipboard",name:"funClipboard",component:()=>e(()=>import("./index.a3379a6c.js"),["assets/index.a3379a6c.js","assets/commonFunction.a83fad7a.js","assets/_commonjsHelpers.35101cd5.js","assets/formatTime.057ac5b9.js","assets/vue-i18n.cjs.2a00fe88.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.funClipboard",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-DocumentCopy"}},{path:"/fun/gridLayout",name:"funGridLayout",component:()=>e(()=>import("./index.37f507f0.js"),["assets/index.37f507f0.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.cdab549e.css"]),meta:{title:"message.router.funGridLayout",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-tuodong"}},{path:"/fun/splitpanes",name:"funSplitpanes",component:()=>e(()=>import("./index.d5215b61.js"),["assets/index.d5215b61.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.f652f502.css"]),meta:{title:"message.router.funSplitpanes",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon--chaifenlie"}}]},{path:"/pages",name:"pagesIndex",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/pages/filtering",meta:{title:"message.router.pagesIndex",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-fuzhiyemian"},children:[{path:"/pages/filtering",name:"pagesFiltering",component:()=>e(()=>import("./index.0a7019bc.js"),["assets/index.0a7019bc.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.fc4de1da.css"]),meta:{title:"message.router.pagesFiltering",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Sell"},children:[{path:"/pages/filtering/details",name:"pagesFilteringDetails",component:()=>e(()=>import("./details.4a996dbe.js"),["assets/details.4a996dbe.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.pagesFilteringDetails",isLink:"",isHide:!0,isKeepAlive:!1,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Sunny"}}]},{path:"/pages/filtering/details1",name:"pagesFilteringDetails1",component:()=>e(()=>import("./details1.00a7d66d.js"),["assets/details1.00a7d66d.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.pagesFilteringDetails1",isLink:"",isHide:!0,isKeepAlive:!1,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Sunny"}},{path:"/pages/iocnfont",name:"pagesIocnfont",component:()=>e(()=>import("./index.28876cf8.js"),["assets/index.28876cf8.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.7e864dee.css"]),meta:{title:"message.router.pagesIocnfont",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Present"}},{path:"/pages/element",name:"pagesElement",component:()=>e(()=>import("./index.f1368907.js"),["assets/index.f1368907.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.8b861563.css"]),meta:{title:"message.router.pagesElement",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Eleme"}},{path:"/pages/awesome",name:"pagesAwesome",component:()=>e(()=>import("./index.c16f702f.js"),["assets/index.c16f702f.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.3153db97.css"]),meta:{title:"message.router.pagesAwesome",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-SetUp"}},{path:"/pages/formAdapt",name:"pagesFormAdapt",component:()=>e(()=>import("./index.78b59d2d.js"),["assets/index.78b59d2d.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.pagesFormAdapt",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-biaodan"}},{path:"/pages/tableRules",name:"pagesTableRules",component:()=>e(()=>import("./index.5059c6fd.js"),["assets/index.5059c6fd.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.pagesTableRules",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-jiliandongxuanzeqi"}},{path:"/pages/formI18n",name:"pagesFormI18n",component:()=>e(()=>import("./index.d6d0661d.js"),["assets/index.d6d0661d.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.pagesFormI18n",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-diqiu"}},{path:"/pages/formRules",name:"pagesFormRules",component:()=>e(()=>import("./index.5adc404f.js"),["assets/index.5adc404f.js","assets/preload-helper.101896b7.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.pagesFormRules",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-shuxing"}},{path:"/pages/listAdapt",name:"pagesListAdapt",component:()=>e(()=>import("./index.c8dd6834.js"),["assets/index.c8dd6834.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.07c76759.css"]),meta:{title:"message.router.pagesListAdapt",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-chazhaobiaodanliebiao"}},{path:"/pages/waterfall",name:"pagesWaterfall",component:()=>e(()=>import("./index.e4fa8936.js"),["assets/index.e4fa8936.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.94dcd7bb.css"]),meta:{title:"message.router.pagesWaterfall",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-zidingyibuju"}},{path:"/pages/steps",name:"pagesSteps",component:()=>e(()=>import("./index.973dbca6.js"),["assets/index.973dbca6.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.pagesSteps",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-step"}},{path:"/pages/preview",name:"pagesPreview",component:()=>e(()=>import("./index.4885872f.js"),["assets/index.4885872f.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.pagesPreview",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-15tupianyulan"}},{path:"/pages/waves",name:"pagesWaves",component:()=>e(()=>import("./index.054af1f4.js"),["assets/index.054af1f4.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.f20e5b1c.css"]),meta:{title:"message.router.pagesWaves",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-bolangneng"}},{path:"/pages/tree",name:"pagesTree",component:()=>e(()=>import("./index.6895700d.js"),["assets/index.6895700d.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.6c67ac06.css"]),meta:{title:"message.router.pagesTree",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-shuxingtu"}},{path:"/pages/drag",name:"pagesDrag",component:()=>e(()=>import("./index.7e5a9271.js"),["assets/index.7e5a9271.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.c333291d.css"]),meta:{title:"message.router.pagesDrag",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Pointer"}},{path:"/pages/lazyImg",name:"pagesLazyImg",component:()=>e(()=>import("./index.f97239d6.js"),["assets/index.f97239d6.js","assets/vue.bd0669ce.js","assets/other.e9eeae65.js","assets/preload-helper.101896b7.js","assets/index.ee56f1f7.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/storage.b628b270.js","assets/toolsValidate.7cb139e2.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.2e7d8fe6.css"]),meta:{title:"message.router.pagesLazyImg",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-PictureFilled"}},{path:"/pages/dynamicForm",name:"pagesDynamicForm",component:()=>e(()=>import("./index.baf19af9.js"),["assets/index.baf19af9.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.pagesDynamicForm",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-wenducanshu-05"}},{path:"/pages/workflow",name:"pagesWorkflow",component:()=>e(()=>import("./index.f7310985.js"),["assets/index.f7310985.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/_commonjsHelpers.35101cd5.js","assets/sortable.esm.1e7dbfeb.js","assets/themeConfig.cb88f033.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/commonFunction.a83fad7a.js","assets/formatTime.057ac5b9.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/index.f64fca3a.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.a6932966.css"]),meta:{title:"message.router.pagesWorkflow",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Connection"}}]},{path:"/make",name:"makeIndex",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/make/selector",meta:{title:"message.router.makeIndex",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-siweidaotu"},children:[{path:"/make/selector",name:"makeSelector",component:()=>e(()=>import("./index.533326b8.js"),["assets/index.533326b8.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.makeSelector",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-xuanzeqi"}},{path:"/make/noticeBar",name:"makeNoticeBar",component:()=>e(()=>import("./index.cabc35be.js"),["assets/index.cabc35be.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.makeNoticeBar",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-Bell"}},{path:"/make/svgDemo",name:"makeSvgDemo",component:()=>e(()=>import("./index.3fceb8a3.js"),["assets/index.3fceb8a3.js","assets/logo-mini.323e783b.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.makeSvgDemo",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"fa fa-thumbs-o-up"}},{path:"/make/tableDemo",name:"makeTableDemo",component:()=>e(()=>import("./index.ba77e5d3.js"),["assets/index.ba77e5d3.js","assets/preload-helper.101896b7.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.2460762b.css"]),meta:{title:"message.router.makeTableDemo",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-shuju"}}]},{path:"/params",name:"paramsIndex",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/params/common",meta:{title:"message.router.paramsIndex",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-zhongduancanshu"},children:[{path:"/params/common",name:"paramsCommon",component:()=>e(()=>import("./index.19bae86a.js"),["assets/index.19bae86a.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.paramsCommon",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-putong"}},{path:"/params/common/details",name:"paramsCommonDetails",component:()=>e(()=>import("./details.beb5f2a7.js"),["assets/details.beb5f2a7.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.paramsCommonDetails",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Comment"}},{path:"/params/dynamic",name:"paramsDynamic",component:()=>e(()=>import("./index.7618ada6.js"),["assets/index.7618ada6.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),meta:{title:"message.router.paramsDynamic",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-dongtai"}},{path:"/params/dynamic/details/:t/:id/:tagsViewName",name:"paramsDynamicDetails",component:()=>e(()=>import("./details.ec8b463a.js"),["assets/details.ec8b463a.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.paramsDynamicDetails",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Lightning"}}]},{path:"/visualizing",name:"visualizingIndex",component:()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"]),redirect:"/visualizing/visualizingLinkDemo1",meta:{title:"message.router.visualizingIndex",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-ChatLineRound"},children:[{path:"/visualizing/visualizingLinkDemo1",name:"visualizingLinkDemo1",component:()=>e(()=>import("./link.1b442e2e.js"),["assets/link.1b442e2e.js","assets/vue.bd0669ce.js","assets/toolsValidate.7cb139e2.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/link.023d6efa.css"]),meta:{title:"message.router.visualizingLinkDemo1",isLink:"/visualizingDemo1",isHide:!1,isKeepAlive:!1,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caozuo-wailian"}},{path:"/visualizing/visualizingLinkDemo2",name:"visualizingLinkDemo2",component:()=>e(()=>import("./link.1b442e2e.js"),["assets/link.1b442e2e.js","assets/vue.bd0669ce.js","assets/toolsValidate.7cb139e2.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/link.023d6efa.css"]),meta:{title:"message.router.visualizingLinkDemo2",isLink:"/visualizingDemo2",isHide:!1,isKeepAlive:!1,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caozuo-wailian"}}]},{path:"/chart",name:"chartIndex",component:()=>e(()=>import("./index.04106017.js"),["assets/index.04106017.js","assets/preload-helper.101896b7.js","assets/echarts.c5874920.js","assets/echarts.9c516ade.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.ede32894.css"]),meta:{title:"message.router.chartIndex",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-ico_shuju"}},{path:"/personal",name:"personal",component:()=>e(()=>import("./index.d773d83b.js"),["assets/index.d773d83b.js","assets/formatTime.057ac5b9.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.18cbd486.css"]),meta:{title:"message.router.personal",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-gerenzhongxin"}},{path:"/tools",name:"tools",component:()=>e(()=>import("./index.ee1d98fc.js"),["assets/index.ee1d98fc.js","assets/toolsValidate.7cb139e2.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.2109b731.css"]),meta:{title:"message.router.tools",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-gongju"}},{path:"/link",name:"layoutLinkView",component:()=>e(()=>import("./link.1b442e2e.js"),["assets/link.1b442e2e.js","assets/vue.bd0669ce.js","assets/toolsValidate.7cb139e2.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/link.023d6efa.css"]),meta:{title:"message.router.layoutLinkView",isLink:"https://element-plus.gitee.io/#/zh-CN/component/installation",isHide:!1,isKeepAlive:!1,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caozuo-wailian"}},{path:"/iframesOne",name:"layoutIframeViewOne",component:()=>e(()=>import("./iframes.d821f897.js"),["assets/iframes.d821f897.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.layoutIframeViewOne",isLink:"https://nodejs.org/zh-cn/",isHide:!1,isKeepAlive:!0,isAffix:!0,isIframe:!0,roles:["admin"],icon:"iconfont icon-neiqianshujuchucun"}},{path:"/iframesTwo",name:"layoutIframeViewTwo",component:()=>e(()=>import("./iframes.d821f897.js"),["assets/iframes.d821f897.js","assets/vue.bd0669ce.js"]),meta:{title:"message.router.layoutIframeViewTwo",isLink:"https://undraw.co/illustrations",isHide:!1,isKeepAlive:!0,isAffix:!0,isIframe:!0,roles:["admin"],icon:"iconfont icon-neiqianshujuchucun"}}]}],y=[{path:"/:path(.*)*",name:"notFound",component:()=>e(()=>import("./404.1d4840a9.js"),["assets/404.1d4840a9.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/404.3c72d64d.css"]),meta:{title:"message.staticRoutes.notFound",isHide:!0}},{path:"/401",name:"noPower",component:()=>e(()=>import("./401.5737a50e.js"),["assets/401.5737a50e.js","assets/storage.b628b270.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/401.97b0819c.css"]),meta:{title:"message.staticRoutes.noPower",isHide:!0}}],Z=[{path:"/login",name:"login",component:()=>e(()=>import("./index.bd5d4cb1.js"),["assets/index.bd5d4cb1.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/logo-mini.323e783b.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.25dac452.css"]),meta:{title:"登录"}},{path:"/visualizingDemo1",name:"visualizingDemo1",component:()=>e(()=>import("./demo1.a3359329.js"),["assets/demo1.a3359329.js","assets/echarts.c5874920.js","assets/bmap.6179077b.js","assets/formatTime.057ac5b9.js","assets/loading.3e617409.js","assets/vue.bd0669ce.js","assets/loading.70fbfd85.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/demo1.ef967011.css"]),meta:{title:"message.router.visualizingLinkDemo1"}},{path:"/visualizingDemo2",name:"visualizingDemo2",component:()=>e(()=>import("./demo2.e8eb015b.js"),["assets/demo2.e8eb015b.js","assets/echarts.c5874920.js","assets/echarts.9c516ade.js","assets/formatTime.057ac5b9.js","assets/loading.3e617409.js","assets/vue.bd0669ce.js","assets/loading.70fbfd85.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/demo2.d5bd33fc.css"]),meta:{title:"message.router.visualizingLinkDemo2"}}];async function ee(){if(window.nextLoading===void 0&&M.start(),!T.get("token"))return!1;if(await g(l).setUserInfos(),g().userInfos.roles.length<=0)return Promise.resolve(!0);await ie(),oe()}async function ie(){await N().forEach(i=>{R.addRoute(i)})}async function Ke(){await N().forEach(i=>{const r=i.name;R.hasRoute(r)&&R.removeRoute(r)})}function N(){let i=w(P(A));return i[0].children=[...te(i[0].children),...y],i}function te(i){const r=g(l),{userInfos:s}=h(r);let o=[];return i.forEach(u=>{u.meta.roles&&u.meta.roles.forEach(f=>{s.value.roles.forEach(O=>{f===O&&o.push({...u})})})}),o}function se(){const i=g(l),r=q(l),{userInfos:s}=h(i);let o=H(A,s.value.roles);r.setTagsViewRoutes(w(P(o))[0].children)}function oe(){const i=g(l),r=k(l),{userInfos:s}=h(i);r.setRoutesList(H(A[0].children,s.value.roles)),se()}function ne(i,r){return r.meta&&r.meta.roles?i.some(s=>r.meta.roles.includes(s)):!0}function H(i,r){const s=[];return i.forEach(o=>{const u={...o};ne(r,u)&&(u.children&&(u.children=H(u.children,r)),s.push(u))}),s}const re=W("requestOldRoutes",{state:()=>({requestOldRoutes:[]}),actions:{async setRequestOldRoutes(i){this.requestOldRoutes=i}}});function ae(){return{getUserMenus:i=>x({url:Y.userMenus,method:"get",params:i}),getAdminMenu:i=>x({url:"/gitee/lyt-top/vue-next-admin-images/raw/master/menu/adminMenu.json",method:"get",params:i}),getTestMenu:i=>x({url:"/gitee/lyt-top/vue-next-admin-images/raw/master/menu/testMenu.json",method:"get",params:i})}}const me=ae(),ue=Object.assign({"../layout/routerView/iframes.vue":()=>e(()=>import("./iframes.d821f897.js"),["assets/iframes.d821f897.js","assets/vue.bd0669ce.js"]),"../layout/routerView/link.vue":()=>e(()=>import("./link.1b442e2e.js"),["assets/link.1b442e2e.js","assets/vue.bd0669ce.js","assets/toolsValidate.7cb139e2.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/link.023d6efa.css"]),"../layout/routerView/parent.vue":()=>e(()=>import("./parent.e5041590.js"),["assets/parent.e5041590.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/keepAliveNames.f05bad75.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/mitt.7f99bbc0.js"])}),_e=Object.assign({"../views/app/dialog.vue":()=>e(()=>import("./dialog.5b38864a.js"),["assets/dialog.5b38864a.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/index.3f2ce315.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.843de072.css"]),"../views/app/index.vue":()=>e(()=>import("./index.1020967b.js"),["assets/index.1020967b.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/storage.b628b270.js","assets/index.3f2ce315.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.9775797f.css"]),"../views/chart/head.vue":()=>e(()=>import("./head.363793c6.js"),["assets/head.363793c6.js","assets/formatTime.057ac5b9.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/head.0da8c934.css"]),"../views/chart/index.vue":()=>e(()=>import("./index.04106017.js"),["assets/index.04106017.js","assets/preload-helper.101896b7.js","assets/echarts.c5874920.js","assets/echarts.9c516ade.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.ede32894.css"]),"../views/cluster/node/index.vue":()=>e(()=>import("./index.a435dc3e.js"),["assets/index.a435dc3e.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.ecee1b36.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.4dc31bb9.css"]),"../views/cluster/worker/index.vue":()=>e(()=>import("./index.40de9295.js"),["assets/index.40de9295.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.ecee1b36.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/index.3f2ce315.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.6ec61693.css"]),"../views/delay/instance/drawer.vue":()=>e(()=>import("./drawer.bf5cfa32.js"),["assets/drawer.bf5cfa32.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/header.9390c1c5.js","assets/index.dbab376e.js"]),"../views/delay/instance/index.vue":()=>e(()=>import("./index.9ac2fbd6.js"),["assets/index.9ac2fbd6.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/header.9390c1c5.js","assets/storage.b628b270.js","assets/index.dbab376e.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/index.49009f16.css"]),"../views/delay/job/dialog.vue":()=>e(()=>import("./dialog.f948c2bd.js"),["assets/dialog.f948c2bd.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/index.3f2ce315.js","assets/index.dbab376e.js","assets/header.9390c1c5.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.c92bdd15.css"]),"../views/delay/job/index.vue":()=>e(()=>import("./index.2ab183db.js"),["assets/index.2ab183db.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/storage.b628b270.js","assets/index.dbab376e.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/header.9390c1c5.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/index.f7657b69.css"]),"../views/error/401.vue":()=>e(()=>import("./401.5737a50e.js"),["assets/401.5737a50e.js","assets/storage.b628b270.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/401.97b0819c.css"]),"../views/error/404.vue":()=>e(()=>import("./404.1d4840a9.js"),["assets/404.1d4840a9.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/404.3c72d64d.css"]),"../views/fun/clipboard/index.vue":()=>e(()=>import("./index.a3379a6c.js"),["assets/index.a3379a6c.js","assets/commonFunction.a83fad7a.js","assets/_commonjsHelpers.35101cd5.js","assets/formatTime.057ac5b9.js","assets/vue-i18n.cjs.2a00fe88.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),"../views/fun/countup/index.vue":()=>e(()=>import("./index.d41cdb8d.js"),["assets/index.d41cdb8d.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.74e76cdf.css"]),"../views/fun/cropper/index.vue":()=>e(()=>import("./index.482abe74.js"),["assets/index.482abe74.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.020c08fb.css"]),"../views/fun/echartsMap/index.vue":()=>e(()=>import("./index.3ecffe5a.js"),["assets/index.3ecffe5a.js","assets/echarts.c5874920.js","assets/bmap.6179077b.js","assets/vue.bd0669ce.js"]),"../views/fun/gridLayout/index.vue":()=>e(()=>import("./index.37f507f0.js"),["assets/index.37f507f0.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.cdab549e.css"]),"../views/fun/printJs/index.vue":()=>e(()=>import("./index.1d6b0bc8.js"),["assets/index.1d6b0bc8.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js"]),"../views/fun/qrcode/index.vue":()=>e(()=>import("./index.59d6721b.js"),["assets/index.59d6721b.js","assets/qrcode.f7511028.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.e3e619f2.css"]),"../views/fun/splitpanes/index.vue":()=>e(()=>import("./index.d5215b61.js"),["assets/index.d5215b61.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.f652f502.css"]),"../views/fun/tagsView/index.vue":()=>e(()=>import("./index.3d8ba23b.js"),["assets/index.3d8ba23b.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/mitt.7f99bbc0.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.abfce35b.css"]),"../views/fun/wangEditor/index.vue":()=>e(()=>import("./index.145341d4.js"),["assets/index.145341d4.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js"]),"../views/home/index.vue":()=>e(()=>import("./index.0e922f22.js"),["assets/index.0e922f22.js","assets/echarts.c5874920.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/request.386cf962.js","assets/_commonjsHelpers.35101cd5.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.aa7cec2e.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/header.9390c1c5.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.a3f48d94.css"]),"../views/job/instance/drawer-standalone.vue":()=>e(()=>import("./drawer-standalone.fa366cb0.js"),["assets/drawer-standalone.fa366cb0.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/index.7c5dfd4e.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/header.9390c1c5.js"]),"../views/job/instance/index.vue":()=>e(()=>import("./index.a6961f3d.js"),["assets/index.a6961f3d.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/storage.b628b270.js","assets/index.7c5dfd4e.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/header.9390c1c5.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.7753516f.css"]),"../views/job/job/dialog.vue":()=>e(()=>import("./dialog.96a11c08.js"),["assets/dialog.96a11c08.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/header.9390c1c5.js","assets/index.7c5dfd4e.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.ec785c28.css"]),"../views/job/job/drawer.vue":()=>e(()=>import("./drawer.ff000ca5.js"),["assets/drawer.ff000ca5.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/header.9390c1c5.js","assets/index.7c5dfd4e.js","assets/formatTime.057ac5b9.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js"]),"../views/job/job/index.vue":()=>e(()=>import("./index.776d6e14.js"),["assets/index.776d6e14.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/storage.b628b270.js","assets/index.7c5dfd4e.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/data.a7368d0d.js","assets/index.3f2ce315.js","assets/header.9390c1c5.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.3bdfe8ff.css"]),"../views/limits/backEnd/page/index.vue":()=>e(()=>import("./index.06f1efcb.js"),["assets/index.06f1efcb.js","assets/vue.bd0669ce.js"]),"../views/limits/frontEnd/btn/index.vue":()=>e(()=>import("./index.3141a508.js"),["assets/index.3141a508.js","assets/preload-helper.101896b7.js","assets/userInfo.f7c9dd73.js","assets/vue.bd0669ce.js","assets/storage.b628b270.js","assets/arrayOperation.b573dead.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.7000b842.css"]),"../views/limits/frontEnd/page/index.vue":()=>e(()=>import("./index.5755b38c.js"),["assets/index.5755b38c.js","assets/storage.b628b270.js","assets/vue.bd0669ce.js","assets/userInfo.f7c9dd73.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/preload-helper.101896b7.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),"../views/login/component/account.vue":()=>e(()=>import("./account.925469d1.js"),["assets/account.925469d1.js","assets/vue.bd0669ce.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/themeConfig.cb88f033.js","assets/storage.b628b270.js","assets/formatTime.057ac5b9.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/index.c41e61d7.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/userInfo.f7c9dd73.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/preload-helper.101896b7.js","assets/tagsViewRoutes.054c4a6f.js","assets/account.61e87075.css"]),"../views/login/component/mobile.vue":()=>e(()=>import("./mobile.068cd6d9.js"),["assets/mobile.068cd6d9.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/mobile.7acbd2f3.css"]),"../views/login/component/scan.vue":()=>e(()=>import("./scan.d595d282.js"),["assets/scan.d595d282.js","assets/qrcode.f7511028.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/scan.a2b97e10.css"]),"../views/login/index.vue":()=>e(()=>import("./index.bd5d4cb1.js"),["assets/index.bd5d4cb1.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/logo-mini.323e783b.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.25dac452.css"]),"../views/make/noticeBar/index.vue":()=>e(()=>import("./index.cabc35be.js"),["assets/index.cabc35be.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js"]),"../views/make/selector/index.vue":()=>e(()=>import("./index.533326b8.js"),["assets/index.533326b8.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js"]),"../views/make/svgDemo/index.vue":()=>e(()=>import("./index.3fceb8a3.js"),["assets/index.3fceb8a3.js","assets/logo-mini.323e783b.js","assets/vue.bd0669ce.js"]),"../views/make/tableDemo/index.vue":()=>e(()=>import("./index.ba77e5d3.js"),["assets/index.ba77e5d3.js","assets/preload-helper.101896b7.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.2460762b.css"]),"../views/make/tableDemo/search.vue":()=>e(()=>import("./search.ebba3b05.js"),["assets/search.ebba3b05.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/search.3e5cb508.css"]),"../views/menu/menu1/menu11/index.vue":()=>e(()=>import("./index.ea306453.js"),["assets/index.ea306453.js","assets/vue.bd0669ce.js"]),"../views/menu/menu1/menu12/menu121/index.vue":()=>e(()=>import("./index.106d7c9e.js"),["assets/index.106d7c9e.js","assets/vue.bd0669ce.js"]),"../views/menu/menu1/menu12/menu122/index.vue":()=>e(()=>import("./index.6a6e5b50.js"),["assets/index.6a6e5b50.js","assets/vue.bd0669ce.js"]),"../views/menu/menu1/menu13/index.vue":()=>e(()=>import("./index.afeb4e48.js"),["assets/index.afeb4e48.js","assets/vue.bd0669ce.js"]),"../views/menu/menu2/index.vue":()=>e(()=>import("./index.f460aaab.js"),["assets/index.f460aaab.js","assets/vue.bd0669ce.js"]),"../views/namespace/dialog.vue":()=>e(()=>import("./dialog.d4b69b79.js"),["assets/dialog.d4b69b79.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.cf0d5064.css"]),"../views/namespace/index.vue":()=>e(()=>import("./index.93724040.js"),["assets/index.93724040.js","assets/preload-helper.101896b7.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.400b6968.css"]),"../views/pages/awesome/index.vue":()=>e(()=>import("./index.c16f702f.js"),["assets/index.c16f702f.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.3153db97.css"]),"../views/pages/drag/index.vue":()=>e(()=>import("./index.7e5a9271.js"),["assets/index.7e5a9271.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.c333291d.css"]),"../views/pages/dynamicForm/index.vue":()=>e(()=>import("./index.baf19af9.js"),["assets/index.baf19af9.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),"../views/pages/element/index.vue":()=>e(()=>import("./index.f1368907.js"),["assets/index.f1368907.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.8b861563.css"]),"../views/pages/filtering/details.vue":()=>e(()=>import("./details.4a996dbe.js"),["assets/details.4a996dbe.js","assets/vue.bd0669ce.js"]),"../views/pages/filtering/details1.vue":()=>e(()=>import("./details1.00a7d66d.js"),["assets/details1.00a7d66d.js","assets/vue.bd0669ce.js"]),"../views/pages/filtering/index.vue":()=>e(()=>import("./index.0a7019bc.js"),["assets/index.0a7019bc.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.fc4de1da.css"]),"../views/pages/formAdapt/index.vue":()=>e(()=>import("./index.78b59d2d.js"),["assets/index.78b59d2d.js","assets/vue.bd0669ce.js"]),"../views/pages/formI18n/index.vue":()=>e(()=>import("./index.d6d0661d.js"),["assets/index.d6d0661d.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js"]),"../views/pages/formRules/component/formRulesOne.vue":()=>e(()=>import("./formRulesOne.d495f1ac.js"),["assets/formRulesOne.d495f1ac.js","assets/vue.bd0669ce.js"]),"../views/pages/formRules/component/formRulesThree.vue":()=>e(()=>import("./formRulesThree.95a638e9.js"),["assets/formRulesThree.95a638e9.js","assets/vue.bd0669ce.js"]),"../views/pages/formRules/component/formRulesTwo.vue":()=>e(()=>import("./formRulesTwo.70ff49ed.js"),["assets/formRulesTwo.70ff49ed.js","assets/vue.bd0669ce.js"]),"../views/pages/formRules/index.vue":()=>e(()=>import("./index.5adc404f.js"),["assets/index.5adc404f.js","assets/preload-helper.101896b7.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js"]),"../views/pages/iocnfont/index.vue":()=>e(()=>import("./index.28876cf8.js"),["assets/index.28876cf8.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.7e864dee.css"]),"../views/pages/lazyImg/index.vue":()=>e(()=>import("./index.f97239d6.js"),["assets/index.f97239d6.js","assets/vue.bd0669ce.js","assets/other.e9eeae65.js","assets/preload-helper.101896b7.js","assets/index.ee56f1f7.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/storage.b628b270.js","assets/toolsValidate.7cb139e2.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.2e7d8fe6.css"]),"../views/pages/listAdapt/index.vue":()=>e(()=>import("./index.c8dd6834.js"),["assets/index.c8dd6834.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.07c76759.css"]),"../views/pages/preview/index.vue":()=>e(()=>import("./index.4885872f.js"),["assets/index.4885872f.js","assets/vue.bd0669ce.js"]),"../views/pages/steps/index.vue":()=>e(()=>import("./index.973dbca6.js"),["assets/index.973dbca6.js","assets/vue.bd0669ce.js"]),"../views/pages/tableRules/index.vue":()=>e(()=>import("./index.5059c6fd.js"),["assets/index.5059c6fd.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js"]),"../views/pages/tree/index.vue":()=>e(()=>import("./index.6895700d.js"),["assets/index.6895700d.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.6c67ac06.css"]),"../views/pages/waterfall/index.vue":()=>e(()=>import("./index.e4fa8936.js"),["assets/index.e4fa8936.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.94dcd7bb.css"]),"../views/pages/waves/index.vue":()=>e(()=>import("./index.054af1f4.js"),["assets/index.054af1f4.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.f20e5b1c.css"]),"../views/pages/workflow/component/contextmenu/index.vue":()=>e(()=>import("./index.11096183.js"),["assets/index.11096183.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.8013691f.css"]),"../views/pages/workflow/component/drawer/index.vue":()=>e(()=>import("./index.51bc1cb8.js"),["assets/index.51bc1cb8.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js"]),"../views/pages/workflow/component/drawer/line.vue":()=>e(()=>import("./line.8d79a62b.js"),["assets/line.8d79a62b.js","assets/vue.bd0669ce.js"]),"../views/pages/workflow/component/drawer/node.vue":()=>e(()=>import("./node.cd81c84d.js"),["assets/node.cd81c84d.js","assets/echarts.c5874920.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/node.62a60e69.css"]),"../views/pages/workflow/component/tool/help.vue":()=>e(()=>import("./help.2192a231.js"),["assets/help.2192a231.js","assets/vue.bd0669ce.js"]),"../views/pages/workflow/component/tool/index.vue":()=>e(()=>import("./index.15262e19.js"),["assets/index.15262e19.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.c80e0093.css"]),"../views/pages/workflow/index.vue":()=>e(()=>import("./index.f7310985.js"),["assets/index.f7310985.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/_commonjsHelpers.35101cd5.js","assets/sortable.esm.1e7dbfeb.js","assets/themeConfig.cb88f033.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/commonFunction.a83fad7a.js","assets/formatTime.057ac5b9.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/index.f64fca3a.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.a6932966.css"]),"../views/params/common/details.vue":()=>e(()=>import("./details.beb5f2a7.js"),["assets/details.beb5f2a7.js","assets/vue.bd0669ce.js"]),"../views/params/common/index.vue":()=>e(()=>import("./index.19bae86a.js"),["assets/index.19bae86a.js","assets/vue.bd0669ce.js"]),"../views/params/dynamic/details.vue":()=>e(()=>import("./details.ec8b463a.js"),["assets/details.ec8b463a.js","assets/vue.bd0669ce.js"]),"../views/params/dynamic/index.vue":()=>e(()=>import("./index.7618ada6.js"),["assets/index.7618ada6.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),"../views/personal/index.vue":()=>e(()=>import("./index.d773d83b.js"),["assets/index.d773d83b.js","assets/formatTime.057ac5b9.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.18cbd486.css"]),"../views/system/config/index.vue":()=>e(()=>import("./index.4be0451a.js"),["assets/index.4be0451a.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.ecee1b36.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.2a64026a.css"]),"../views/system/dept/dialog.vue":()=>e(()=>import("./dialog.4d312f94.js"),["assets/dialog.4d312f94.js","assets/vue.bd0669ce.js"]),"../views/system/dept/index.vue":()=>e(()=>import("./index.63dafcde.js"),["assets/index.63dafcde.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),"../views/system/dic/dialog.vue":()=>e(()=>import("./dialog.ded9ffab.js"),["assets/dialog.ded9ffab.js","assets/vue.bd0669ce.js"]),"../views/system/dic/index.vue":()=>e(()=>import("./index.2bcb896f.js"),["assets/index.2bcb896f.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),"../views/system/menu/dialog.vue":()=>e(()=>import("./dialog.f4e647c2.js"),["assets/dialog.f4e647c2.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/routesList.32d6bb58.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js"]),"../views/system/menu/index.vue":()=>e(()=>import("./index.d0cd844a.js"),["assets/index.d0cd844a.js","assets/preload-helper.101896b7.js","assets/vue.bd0669ce.js","assets/routesList.32d6bb58.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js"]),"../views/system/role/dialog.vue":()=>e(()=>import("./dialog.e6bfded4.js"),["assets/dialog.e6bfded4.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.5926acda.css"]),"../views/system/role/index.vue":()=>e(()=>import("./index.0ad749ea.js"),["assets/index.0ad749ea.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.4b283e84.css"]),"../views/system/slots/index.vue":()=>e(()=>import("./index.d2b75be2.js"),["assets/index.d2b75be2.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.ecee1b36.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/formatTime.057ac5b9.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.338a3c17.css"]),"../views/system/user/dialog.vue":()=>e(()=>import("./dialog.539a7bf5.js"),["assets/dialog.539a7bf5.js","assets/vue.bd0669ce.js"]),"../views/system/user/index.vue":()=>e(()=>import("./index.b6cae7f3.js"),["assets/index.b6cae7f3.js","assets/preload-helper.101896b7.js","assets/index.f64fca3a.js","assets/vue.bd0669ce.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.35b8ad32.css"]),"../views/tools/index.vue":()=>e(()=>import("./index.ee1d98fc.js"),["assets/index.ee1d98fc.js","assets/toolsValidate.7cb139e2.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.2109b731.css"]),"../views/visualizing/demo1.vue":()=>e(()=>import("./demo1.a3359329.js"),["assets/demo1.a3359329.js","assets/echarts.c5874920.js","assets/bmap.6179077b.js","assets/formatTime.057ac5b9.js","assets/loading.3e617409.js","assets/vue.bd0669ce.js","assets/loading.70fbfd85.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/demo1.ef967011.css"]),"../views/visualizing/demo2.vue":()=>e(()=>import("./demo2.e8eb015b.js"),["assets/demo2.e8eb015b.js","assets/echarts.c5874920.js","assets/echarts.9c516ade.js","assets/formatTime.057ac5b9.js","assets/loading.3e617409.js","assets/vue.bd0669ce.js","assets/loading.70fbfd85.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/demo2.d5bd33fc.css"])}),le=Object.assign({},{...ue},{..._e});async function fe(){if(window.nextLoading===void 0&&M.start(),!T.get(F))return console.log("error: 无 token 停止执行下一步"),!1;await g().setUserInfos();const i=await Ee();if(i.length<=0)return Promise.resolve(!0);re().setRequestOldRoutes(JSON.parse(JSON.stringify(i))),A[0].children=await B(i),await ve(),await pe()}async function pe(){k(l).setRoutesList(A[0].children),de()}function de(){q(l).setTagsViewRoutes(w(P(A))[0].children)}function ce(){let i=w(P(A));return i[0].children=[...i[0].children,...y],i}async function ve(){await ce().forEach(i=>{R.addRoute(i)})}async function Ee(){const i=g(l),{userInfos:r}=h(i);r.value.roles[0];const s=await me.getUserMenus();return console.log("menus data",s),s&&s.hasOwnProperty("list")?s.list:[]}function B(i){if(!!i)return i.map(r=>(r.component&&(r.component=ge(le,r.component)),r.children&&B(r.children),r))}function ge(i,r){const o=Object.keys(i).filter(u=>{const f=u.replace(/..\/views|../,"");return f.startsWith(`${r}`)||f.startsWith(`/${r}`)});if((o==null?void 0:o.length)===1){const u=o[0];return i[u]}if((o==null?void 0:o.length)>1)return!1}const Ae=X(l),{themeConfig:Le}=h(Ae),{isRequestRoutes:Ie}=Le.value,R=J({history:$(),routes:[...y,...Z]});function P(i){if(i.length<=0)return!1;for(let r=0;r{o.path==="/"?r.push({component:o.component,name:o.name,path:o.path,redirect:o.redirect,meta:o.meta,children:[]}):(o.path.indexOf("/:")>-1&&(o.meta.isDynamic=!0,o.meta.isDynamicPath=o.path),r[0].children.push({...o}),r[0].meta.isKeepAlive&&o.meta.isKeepAlive&&(s.push(o.name),Q(l).setCacheKeepAlive(s)))}),r}R.beforeEach(async(i,r,s)=>{I.configure({showSpinner:!1}),i.meta.title&&I.start();const o=T.get(F);if(i.path===C&&!o)s(),I.done();else if(!o)s(`/login?redirect=${i.path}¶ms=${JSON.stringify(i.query?i.query:i.params)}`),T.clear(),I.done();else if(o&&i.path===C)s("/home"),I.done();else{const u=k(l),{routesList:f}=h(u);f.value.length===0?Ie?(await fe(),s({path:i.path,query:i.query})):(await ee(),s({path:i.path,query:i.query})):s()}});R.afterEach(()=>{I.done()});export{oe as a,fe as b,Ke as f,ee as i,R as r,ie as s}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3141a508.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3141a508.js new file mode 100644 index 00000000..8d32215e --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3141a508.js @@ -0,0 +1 @@ +import{_ as E}from"./preload-helper.101896b7.js";import{u as L}from"./userInfo.f7c9dd73.js";import{j as T}from"./arrayOperation.b573dead.js";import{ay as y}from"./index.e8f4f9cf.js";import{h as I,ap as g,a9 as c,ac as C,j as i,k as n,D as e,u as o,x as t,B as l,l as s,y as _}from"./vue.bd0669ce.js";import{_ as O}from"./_plugin-vue_export-helper.c27b6911.js";import"./storage.b628b270.js";import"./index.ee56f1f7.js";function R(m){return L().userInfos.authBtnList.some(f=>f===m)}function j(m){let u=!1;return L().userInfos.authBtnList.map(v=>{m.map(h=>{v===h&&(u=!0)})}),u}function N(m){const u=L();return T(m,u.userInfos.authBtnList)}const F={class:"layout-pd"},M={class:"flex-warp"},S={class:"flex-warp-item"},U={class:"flex-warp-item-box"},q={class:"flex-warp-item"},G={class:"flex-warp-item-box"},H={class:"flex-warp-item"},J={class:"flex-warp-item-box"},K={class:"flex-warp-item"},Q={class:"flex-warp-item-box"},W={class:"flex-warp"},X={class:"flex-warp-item"},Y={class:"flex-warp-item-box"},Z={class:"flex-warp-item"},$={class:"flex-warp-item-box"},ee={class:"flex-warp-item"},te={class:"flex-warp-item-box"},se={class:"flex-warp-item"},le={class:"flex-warp-item-box"},ae={class:"flex-warp"},de={class:"flex-warp-item"},ie={class:"flex-warp-item-box"},ne={class:"flex-warp-item"},oe={class:"flex-warp-item-box"},_e={class:"flex-warp-item"},ce={class:"flex-warp-item-box"},ue={class:"flex-warp-item"},fe={class:"flex-warp-item-box"},re={class:"flex-warp"},xe={class:"flex-warp-item"},pe={class:"flex-warp-item-box"},be={class:"flex-warp-item"},me={class:"flex-warp-item-box"},ve={class:"flex-warp-item"},he={class:"flex-warp-item-box"},we={class:"flex-warp-item"},ye={class:"flex-warp-item-box"},ke={class:"flex-warp"},ze={class:"flex-warp-item"},Ae={class:"flex-warp-item-box"},Ee={class:"flex-warp-item"},ge={class:"flex-warp-item-box"},De={class:"flex-warp-item"},Ce={class:"flex-warp-item-box"},Le={class:"flex-warp-item"},Ie={class:"flex-warp-item-box"},Be={class:"flex-warp"},Ve={class:"flex-warp-item"},Pe={class:"flex-warp-item-box"},Te={class:"flex-warp-item"},Oe={class:"flex-warp-item-box"},Re={class:"flex-warp-item"},je={class:"flex-warp-item-box"},Ne={class:"flex-warp-item"},Fe={class:"flex-warp-item-box"},Me={class:"flex-warp"},Se={class:"flex-warp-item"},Ue={class:"flex-warp-item-box"},qe={class:"flex-warp-item"},Ge={class:"flex-warp-item-box"},He={class:"flex-warp-item"},Je={class:"flex-warp-item-box"},Ke=I({name:"limitsFrontEndBtn"}),Qe=I({...Ke,setup(m){const u=g(()=>E(()=>import("./index.5755b38c.js"),["assets/index.5755b38c.js","assets/storage.b628b270.js","assets/vue.bd0669ce.js","assets/userInfo.f7c9dd73.js","assets/index.2f1ef0a5.js","assets/_commonjsHelpers.35101cd5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/themeConfig.cb88f033.js","assets/preload-helper.101896b7.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/vue-i18n.cjs.2a00fe88.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/index.8b89e2e0.css"])),f=g(()=>E(()=>import("./auth.262a5b05.js"),["assets/auth.262a5b05.js","assets/vue.bd0669ce.js","assets/userInfo.f7c9dd73.js","assets/storage.b628b270.js"])),v=g(()=>E(()=>import("./auths.53360d35.js"),["assets/auths.53360d35.js","assets/vue.bd0669ce.js","assets/userInfo.f7c9dd73.js","assets/storage.b628b270.js"])),h=g(()=>E(()=>import("./authAll.2f548485.js"),["assets/authAll.2f548485.js","assets/vue.bd0669ce.js","assets/userInfo.f7c9dd73.js","assets/storage.b628b270.js","assets/arrayOperation.b573dead.js"])),B=()=>{R("btn.add")?y.success("恭喜,您有权限!"):y.error("抱歉,您没有权限!")},V=()=>{j(["btn.add","btn.edit","btn.del","btn.link"])?y.success("恭喜,您有权限!"):y.error("抱歉,您没有权限!")},P=()=>{N(["btn.add","btn.edit","btn.del","btn.link"])?y.success("恭喜,您有权限!"):y.error("抱歉,您没有权限!")};return(We,Xe)=>{const r=c("el-row"),x=c("ele-DocumentAdd"),a=c("el-icon"),d=c("el-button"),p=c("ele-Edit"),b=c("ele-Delete"),w=c("ele-Link"),D=c("el-card"),k=C("auth"),z=C("auths"),A=C("auth-all");return i(),n("div",F,[e(o(u),{style:{padding:"0 !important"}}),e(D,{shadow:"hover",header:"演示1:组件方式",class:"mt15"},{default:t(()=>[e(r,{class:"mb10",style:{color:"#808080"}},{default:t(()=>[l('单个权限验证(:value="xxx"):')]),_:1}),s("div",M,[e(o(f),{value:"btn.add"},{default:t(()=>[s("div",S,[s("div",U,[e(d,{type:"primary",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(x)]),_:1}),l(" 新增 ")]),_:1})])])]),_:1},8,["value"]),e(o(f),{value:"btn.edit"},{default:t(()=>[s("div",q,[s("div",G,[e(d,{type:"info",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(p)]),_:1}),l(" 编辑 ")]),_:1})])])]),_:1},8,["value"]),e(o(f),{value:"btn.del"},{default:t(()=>[s("div",H,[s("div",J,[e(d,{type:"danger",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(b)]),_:1}),l(" 删除 ")]),_:1})])])]),_:1},8,["value"]),e(o(f),{value:"btn.link"},{default:t(()=>[s("div",K,[s("div",Q,[e(d,{type:"success",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(w)]),_:1}),l(" 跳转 ")]),_:1})])])]),_:1},8,["value"])]),e(r,{class:"mb10 mt10",style:{color:"#808080"}},{default:t(()=>[l('多个权限验证,满足一个则显示(:value="[xxx,xxx]"):')]),_:1}),s("div",W,[e(o(v),{value:["btn.addsss","btn.edit","btn.delsss","btn.linksss"]},{default:t(()=>[s("div",X,[s("div",Y,[e(d,{type:"primary",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(x)]),_:1}),l(" 新增 ")]),_:1})])])]),_:1},8,["value"]),e(o(v),{value:["btn.add","btn.edit","btn.del","btn.link"]},{default:t(()=>[s("div",Z,[s("div",$,[e(d,{type:"info",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(p)]),_:1}),l(" 编辑 ")]),_:1})])])]),_:1},8,["value"]),e(o(v),{value:["btn.add","btn.edit","btn.del","btn.link"]},{default:t(()=>[s("div",ee,[s("div",te,[e(d,{type:"danger",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(b)]),_:1}),l(" 删除 ")]),_:1})])])]),_:1},8,["value"]),e(o(v),{value:["btn.add","btn.edit","btn.del","btn.link"]},{default:t(()=>[s("div",se,[s("div",le,[e(d,{type:"success",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(w)]),_:1}),l(" 跳转 ")]),_:1})])])]),_:1},8,["value"])]),e(r,{class:"mb10 mt10",style:{color:"#808080"}},{default:t(()=>[l('多个权限验证,全部满足则显示(:value="[xxx,xxx]"):')]),_:1}),s("div",ae,[e(o(h),{value:["btn.add","btn.edit","btn.del","btn.link"]},{default:t(()=>[s("div",de,[s("div",ie,[e(d,{type:"primary",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(x)]),_:1}),l(" 新增 ")]),_:1})])])]),_:1},8,["value"]),e(o(h),{value:["btn.add","btn.edit","btn.del","btn.link"]},{default:t(()=>[s("div",ne,[s("div",oe,[e(d,{type:"info",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(p)]),_:1}),l(" 编辑 ")]),_:1})])])]),_:1},8,["value"]),e(o(h),{value:["btn.add","btn.edit","btn.del","btn.link"]},{default:t(()=>[s("div",_e,[s("div",ce,[e(d,{type:"danger",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(b)]),_:1}),l(" 删除 ")]),_:1})])])]),_:1},8,["value"]),e(o(h),{value:["btn.add","btn.edit","btn.del","btn.link"]},{default:t(()=>[s("div",ue,[s("div",fe,[e(d,{type:"success",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(w)]),_:1}),l(" 跳转 ")]),_:1})])])]),_:1},8,["value"])])]),_:1}),e(D,{shadow:"hover",header:"演示2:指令方式(页面初始化时执行)",class:"mt15"},{default:t(()=>[e(r,{class:"mb10",style:{color:"#808080"}},{default:t(()=>[l('单个权限验证(v-auth="xxx"):')]),_:1}),s("div",re,[_((i(),n("div",xe,[s("div",pe,[e(d,{type:"primary",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(x)]),_:1}),l(" 新增 ")]),_:1})])])),[[k,"btn.add"]]),_((i(),n("div",be,[s("div",me,[e(d,{type:"info",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(p)]),_:1}),l(" 编辑 ")]),_:1})])])),[[k,"btn.edit"]]),_((i(),n("div",ve,[s("div",he,[e(d,{type:"danger",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(b)]),_:1}),l(" 删除 ")]),_:1})])])),[[k,"btn.del"]]),_((i(),n("div",we,[s("div",ye,[e(d,{type:"success",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(w)]),_:1}),l(" 跳转 ")]),_:1})])])),[[k,"btn.link"]])]),e(r,{class:"mb10 mt10",style:{color:"#808080"}},{default:t(()=>[l('多个权限验证,满足一个则显示(v-auths="[xxx,xxx]"):')]),_:1}),s("div",ke,[_((i(),n("div",ze,[s("div",Ae,[e(d,{type:"primary",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(x)]),_:1}),l(" 新增 ")]),_:1})])])),[[z,["btn.addsss","btn.edit","btn.delsss","btn.linksss"]]]),_((i(),n("div",Ee,[s("div",ge,[e(d,{type:"info",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(p)]),_:1}),l(" 编辑 ")]),_:1})])])),[[z,["btn.add","btn.edit","btn.del","btn.link"]]]),_((i(),n("div",De,[s("div",Ce,[e(d,{type:"danger",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(b)]),_:1}),l(" 删除 ")]),_:1})])])),[[z,["btn.add","btn.edit","btn.del","btn.link"]]]),_((i(),n("div",Le,[s("div",Ie,[e(d,{type:"success",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(w)]),_:1}),l(" 跳转 ")]),_:1})])])),[[z,["btn.add","btn.edit","btn.del","btn.link"]]])]),e(r,{class:"mb10 mt10",style:{color:"#808080"}},{default:t(()=>[l('多个权限验证,全部满足则显示(v-auth-all="[xxx,xxx]"):')]),_:1}),s("div",Be,[_((i(),n("div",Ve,[s("div",Pe,[e(d,{type:"primary",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(x)]),_:1}),l(" 新增 ")]),_:1})])])),[[A,["btn.add","btn.edit","btn.del","btn.link"]]]),_((i(),n("div",Te,[s("div",Oe,[e(d,{type:"info",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(p)]),_:1}),l(" 编辑 ")]),_:1})])])),[[A,["btn.add","btn.edit","btn.del","btn.link"]]]),_((i(),n("div",Re,[s("div",je,[e(d,{type:"danger",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(b)]),_:1}),l(" 删除 ")]),_:1})])])),[[A,["btn.add","btn.edit","btn.del","btn.link"]]]),_((i(),n("div",Ne,[s("div",Fe,[e(d,{type:"success",size:"default"},{default:t(()=>[e(a,null,{default:t(()=>[e(w)]),_:1}),l(" 跳转 ")]),_:1})])])),[[A,["btn.add","btn.edit","btn.del","btn.link"]]])])]),_:1}),e(D,{shadow:"hover",header:"演示3:函数方式(点击按钮查看有无权限,用于判断)",class:"mt15"},{default:t(()=>[e(r,{class:"mb10",style:{color:"#808080"}},{default:t(()=>[l("auth('xxx')、auths(['xxx','xxx'])、authAll(['xxx','xxx']):")]),_:1}),s("div",Me,[s("div",Se,[s("div",Ue,[e(d,{type:"primary",size:"default",onClick:B},{default:t(()=>[e(a,null,{default:t(()=>[e(x)]),_:1}),l(" 新增 ")]),_:1})])]),s("div",qe,[s("div",Ge,[e(d,{type:"info",size:"default",onClick:V},{default:t(()=>[e(a,null,{default:t(()=>[e(p)]),_:1}),l(" 编辑 ")]),_:1})])]),s("div",He,[s("div",Je,[e(d,{type:"danger",size:"default",onClick:P},{default:t(()=>[e(a,null,{default:t(()=>[e(b)]),_:1}),l(" 删除 ")]),_:1})])])])]),_:1})])}}});const dt=O(Qe,[["__scopeId","data-v-a7d8c9ae"]]);export{dt as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.37f507f0.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.37f507f0.js new file mode 100644 index 00000000..8f3610f9 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.37f507f0.js @@ -0,0 +1 @@ +import{h as c,K as p,a9 as t,j as o,k as n,D as s,x as r,F as h,Z as x,v as m,l as i,C as f}from"./vue.bd0669ce.js";import{_ as g}from"./_plugin-vue_export-helper.c27b6911.js";const w={class:"grid-layout-container layout-pd"},v={class:"w100 h100 flex"},b={class:"flex-margin font14"},k=c({name:"funGridLayout"}),B=c({...k,setup(C){const a=p({layouts:[{x:0,y:0,w:2,h:2,i:"0"},{x:2,y:0,w:2,h:4,i:"1"},{x:4,y:0,w:2,h:5,i:"2"},{x:6,y:0,w:2,h:3,i:"3"},{x:8,y:0,w:2,h:3,i:"4"},{x:10,y:0,w:2,h:3,i:"5"},{x:0,y:5,w:2,h:5,i:"6"}]});return(j,l)=>{const _=t("el-alert"),u=t("grid-item"),d=t("grid-layout"),y=t("el-card");return o(),n("div",w,[s(y,{shadow:"hover",header:"vue-grid-layout 拖拽布局演示"},{default:r(()=>[s(_,{title:"感谢优秀的 `vue-grid-layout`,项目地址:https://github.com/jbaysolutions/vue-grid-layout",type:"success",closable:!1,class:"mb15"}),s(d,{layout:a.layouts,"onUpdate:layout":l[0]||(l[0]=e=>a.layouts=e),"col-num":12,"row-height":30,"is-draggable":!0,"is-resizable":!0,"is-mirrored":!1,"vertical-compact":!0,margin:[10,10],"use-css-transforms":!0},{default:r(()=>[(o(!0),n(h,null,x(a.layouts,e=>(o(),m(u,{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i,key:e.i},{default:r(()=>[i("div",v,[i("span",b,f(e.i),1)])]),_:2},1032,["x","y","w","h","i"]))),128))]),_:1},8,["layout"])]),_:1})])}}});const L=g(B,[["__scopeId","data-v-37453c42"]]);export{L as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3d8ba23b.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3d8ba23b.js new file mode 100644 index 00000000..145d7bcf --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3d8ba23b.js @@ -0,0 +1 @@ +import{_ as k}from"./preload-helper.101896b7.js";import{h as _,ap as b,aq as V,a9 as s,j as y,k as I,D as e,u as O,x as t,l as o,B as i}from"./vue.bd0669ce.js";import{e as a}from"./mitt.7f99bbc0.js";import{_ as T}from"./_plugin-vue_export-helper.c27b6911.js";const j={class:"fun-tagsview layout-pd"},R={class:"flex-warp"},z={class:"flex-warp-item"},B={class:"flex-warp-item-box"},F={class:"flex-warp-item"},M={class:"flex-warp-item-box"},D={class:"flex-warp-item"},N={class:"flex-warp-item-box"},A={class:"flex-warp-item"},E={class:"flex-warp-item-box"},P={class:"flex-warp-item"},S={class:"flex-warp-item-box"},q=_({name:"funTagsView"}),L=_({...q,setup(G){const r=b(()=>k(()=>import("./index.13596aea.js"),["assets/index.13596aea.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.824b7afa.css"])),n=V(),d=()=>{a.emit("onCurrentContextmenuClick",Object.assign({},{contextMenuClickId:0,...n}))},u=()=>{a.emit("onCurrentContextmenuClick",Object.assign({},{contextMenuClickId:1,...n}))},f=()=>{a.emit("onCurrentContextmenuClick",Object.assign({},{contextMenuClickId:2,...n}))},m=()=>{a.emit("onCurrentContextmenuClick",Object.assign({},{contextMenuClickId:3,...n}))},p=()=>{a.emit("onCurrentContextmenuClick",Object.assign({},{contextMenuClickId:4,...n}))};return(H,J)=>{const C=s("ele-RefreshRight"),l=s("el-icon"),c=s("el-button"),x=s("ele-Close"),h=s("ele-CircleClose"),w=s("ele-FolderDelete"),v=s("ele-FullScreen"),g=s("el-card");return y(),I("div",j,[e(O(r),{text:"已删除非当前页 tagsView 演示,后续有时间可以再加回来!,tagsview 支持多标签(参数不同)、单标签共用(参数不同)",background:"#ecf5ff",color:"#409eff"}),e(g,{shadow:"hover",header:"tagsView 当前页演示",class:"mt15"},{default:t(()=>[o("div",R,[o("div",z,[o("div",B,[e(c,{type:"primary",size:"default",onClick:d},{default:t(()=>[e(l,null,{default:t(()=>[e(C)]),_:1}),i(" 刷新当前页 ")]),_:1})])]),o("div",F,[o("div",M,[e(c,{type:"info",size:"default",onClick:u},{default:t(()=>[e(l,null,{default:t(()=>[e(x)]),_:1}),i(" 关闭当前页 ")]),_:1})])]),o("div",D,[o("div",N,[e(c,{type:"warning",size:"default",onClick:f},{default:t(()=>[e(l,null,{default:t(()=>[e(h)]),_:1}),i(" 关闭其它 ")]),_:1})])]),o("div",A,[o("div",E,[e(c,{type:"danger",size:"default",onClick:m},{default:t(()=>[e(l,null,{default:t(()=>[e(w)]),_:1}),i(" 全部关闭 ")]),_:1})])]),o("div",P,[o("div",S,[e(c,{type:"success",size:"default",onClick:p},{default:t(()=>[e(l,null,{default:t(()=>[e(v)]),_:1}),i(" 当前页全屏 ")]),_:1})])])])]),_:1})])}}});const X=T(L,[["__scopeId","data-v-9296c960"]]);export{X as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3ecffe5a.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3ecffe5a.js new file mode 100644 index 00000000..f7c43976 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3ecffe5a.js @@ -0,0 +1 @@ +import{i as r}from"./echarts.c5874920.js";import"./bmap.6179077b.js";import{h as o,r as i,K as c,o as p,j as h,k as d,l as t}from"./vue.bd0669ce.js";const f=[{name:"海门",value:9},{name:"鄂尔多斯",value:12},{name:"招远",value:12},{name:"舟山",value:12},{name:"齐齐哈尔",value:14},{name:"盐城",value:15},{name:"赤峰",value:16},{name:"青岛",value:18},{name:"乳山",value:18},{name:"金昌",value:19},{name:"泉州",value:21},{name:"莱西",value:21},{name:"日照",value:21},{name:"胶南",value:22},{name:"南通",value:23},{name:"拉萨",value:24},{name:"云浮",value:24},{name:"梅州",value:25},{name:"文登",value:25},{name:"上海",value:25},{name:"攀枝花",value:25},{name:"威海",value:25},{name:"承德",value:25},{name:"厦门",value:26},{name:"汕尾",value:26},{name:"潮州",value:26},{name:"丹东",value:27},{name:"太仓",value:27},{name:"曲靖",value:27},{name:"烟台",value:28},{name:"福州",value:29},{name:"瓦房店",value:30},{name:"即墨",value:30},{name:"抚顺",value:31},{name:"玉溪",value:31},{name:"张家口",value:31},{name:"阳泉",value:31},{name:"莱州",value:32},{name:"湖州",value:32},{name:"汕头",value:32},{name:"昆山",value:33},{name:"宁波",value:33},{name:"湛江",value:33},{name:"揭阳",value:34},{name:"荣成",value:34},{name:"连云港",value:35},{name:"葫芦岛",value:35},{name:"常熟",value:36},{name:"东莞",value:36},{name:"河源",value:36},{name:"淮安",value:36},{name:"泰州",value:36},{name:"南宁",value:37},{name:"营口",value:37},{name:"惠州",value:37},{name:"江阴",value:37},{name:"蓬莱",value:37},{name:"韶关",value:38},{name:"嘉峪关",value:38},{name:"广州",value:38},{name:"延安",value:38},{name:"太原",value:39},{name:"清远",value:39},{name:"中山",value:39},{name:"昆明",value:39},{name:"寿光",value:40},{name:"盘锦",value:40},{name:"长治",value:41},{name:"深圳",value:360},{name:"珠海",value:42},{name:"宿迁",value:43},{name:"咸阳",value:43},{name:"铜川",value:44},{name:"平度",value:44},{name:"佛山",value:44},{name:"海口",value:44},{name:"江门",value:45},{name:"章丘",value:45},{name:"肇庆",value:46},{name:"大连",value:47},{name:"临汾",value:47},{name:"吴江",value:47},{name:"石嘴山",value:49},{name:"沈阳",value:50},{name:"苏州",value:50},{name:"茂名",value:50},{name:"嘉兴",value:51},{name:"长春",value:51},{name:"胶州",value:52},{name:"银川",value:52},{name:"张家港",value:52},{name:"三门峡",value:53},{name:"锦州",value:54},{name:"南昌",value:54},{name:"柳州",value:54},{name:"三亚",value:54},{name:"自贡",value:56},{name:"吉林",value:56},{name:"阳江",value:57},{name:"泸州",value:57},{name:"西宁",value:57},{name:"宜宾",value:58},{name:"呼和浩特",value:58},{name:"成都",value:58},{name:"大同",value:58},{name:"镇江",value:59},{name:"桂林",value:59},{name:"张家界",value:59},{name:"宜兴",value:59},{name:"北海",value:60},{name:"西安",value:61},{name:"金坛",value:62},{name:"东营",value:62},{name:"牡丹江",value:63},{name:"遵义",value:63},{name:"绍兴",value:63},{name:"扬州",value:64},{name:"常州",value:64},{name:"潍坊",value:65},{name:"重庆",value:66},{name:"台州",value:67},{name:"南京",value:67},{name:"滨州",value:70},{name:"贵阳",value:71},{name:"无锡",value:71},{name:"本溪",value:71},{name:"克拉玛依",value:72},{name:"渭南",value:72},{name:"马鞍山",value:72},{name:"宝鸡",value:72},{name:"焦作",value:75},{name:"句容",value:75},{name:"北京",value:79},{name:"徐州",value:79},{name:"衡水",value:80},{name:"包头",value:80},{name:"绵阳",value:80},{name:"乌鲁木齐",value:84},{name:"枣庄",value:84},{name:"杭州",value:84},{name:"淄博",value:85},{name:"鞍山",value:86},{name:"溧阳",value:86},{name:"库尔勒",value:86},{name:"安阳",value:90},{name:"开封",value:90},{name:"济南",value:92},{name:"德阳",value:93},{name:"温州",value:95},{name:"九江",value:96},{name:"邯郸",value:98},{name:"临安",value:99},{name:"兰州",value:99},{name:"沧州",value:100},{name:"临沂",value:103},{name:"南充",value:104},{name:"天津",value:105},{name:"富阳",value:106},{name:"泰安",value:112},{name:"诸暨",value:112},{name:"郑州",value:113},{name:"哈尔滨",value:114},{name:"聊城",value:116},{name:"芜湖",value:117},{name:"唐山",value:119},{name:"平顶山",value:119},{name:"邢台",value:119},{name:"德州",value:120},{name:"济宁",value:120},{name:"荆州",value:127},{name:"宜昌",value:130},{name:"义乌",value:132},{name:"丽水",value:133},{name:"洛阳",value:134},{name:"秦皇岛",value:136},{name:"株洲",value:143},{name:"石家庄",value:147},{name:"莱芜",value:148},{name:"常德",value:152},{name:"保定",value:153},{name:"湘潭",value:154},{name:"金华",value:157},{name:"岳阳",value:169},{name:"长沙",value:175},{name:"衢州",value:177},{name:"廊坊",value:93},{name:"菏泽",value:194},{name:"合肥",value:229},{name:"武汉",value:273},{name:"大庆",value:279}],y={海门:[121.15,31.89],鄂尔多斯:[109.781327,39.608266],招远:[120.38,37.35],舟山:[122.207216,29.985295],齐齐哈尔:[123.97,47.33],盐城:[120.13,33.38],赤峰:[118.87,42.28],青岛:[120.33,36.07],乳山:[121.52,36.89],金昌:[102.188043,38.520089],泉州:[118.58,24.93],莱西:[120.53,36.86],日照:[119.46,35.42],胶南:[119.97,35.88],南通:[121.05,32.08],拉萨:[91.11,29.97],云浮:[112.02,22.93],梅州:[116.1,24.55],文登:[122.05,37.2],上海:[121.48,31.22],攀枝花:[101.718637,26.582347],威海:[122.1,37.5],承德:[117.93,40.97],厦门:[118.1,24.46],汕尾:[115.375279,22.786211],潮州:[116.63,23.68],丹东:[124.37,40.13],太仓:[121.1,31.45],曲靖:[103.79,25.51],烟台:[121.39,37.52],福州:[119.3,26.08],瓦房店:[121.979603,39.627114],即墨:[120.45,36.38],抚顺:[123.97,41.97],玉溪:[102.52,24.35],张家口:[114.87,40.82],阳泉:[113.57,37.85],莱州:[119.942327,37.177017],湖州:[120.1,30.86],汕头:[116.69,23.39],昆山:[120.95,31.39],宁波:[121.56,29.86],湛江:[110.359377,21.270708],揭阳:[116.35,23.55],荣成:[122.41,37.16],连云港:[119.16,34.59],葫芦岛:[120.836932,40.711052],常熟:[120.74,31.64],东莞:[113.75,23.04],河源:[114.68,23.73],淮安:[119.15,33.5],泰州:[119.9,32.49],南宁:[108.33,22.84],营口:[122.18,40.65],惠州:[114.4,23.09],江阴:[120.26,31.91],蓬莱:[120.75,37.8],韶关:[113.62,24.84],嘉峪关:[98.289152,39.77313],广州:[113.23,23.16],延安:[109.47,36.6],太原:[112.53,37.87],清远:[113.01,23.7],中山:[113.38,22.52],昆明:[102.73,25.04],寿光:[118.73,36.86],盘锦:[122.070714,41.119997],长治:[113.08,36.18],深圳:[114.07,22.62],珠海:[113.52,22.3],宿迁:[118.3,33.96],咸阳:[108.72,34.36],铜川:[109.11,35.09],平度:[119.97,36.77],佛山:[113.11,23.05],海口:[110.35,20.02],江门:[113.06,22.61],章丘:[117.53,36.72],肇庆:[112.44,23.05],大连:[121.62,38.92],临汾:[111.5,36.08],吴江:[120.63,31.16],石嘴山:[106.39,39.04],沈阳:[123.38,41.8],苏州:[120.62,31.32],茂名:[110.88,21.68],嘉兴:[120.76,30.77],长春:[125.35,43.88],胶州:[120.03336,36.264622],银川:[106.27,38.47],张家港:[120.555821,31.875428],三门峡:[111.19,34.76],锦州:[121.15,41.13],南昌:[115.89,28.68],柳州:[109.4,24.33],三亚:[109.511909,18.252847],自贡:[104.778442,29.33903],吉林:[126.57,43.87],阳江:[111.95,21.85],泸州:[105.39,28.91],西宁:[101.74,36.56],宜宾:[104.56,29.77],呼和浩特:[111.65,40.82],成都:[104.06,30.67],大同:[113.3,40.12],镇江:[119.44,32.2],桂林:[110.28,25.29],张家界:[110.479191,29.117096],宜兴:[119.82,31.36],北海:[109.12,21.49],西安:[108.95,34.27],金坛:[119.56,31.74],东营:[118.49,37.46],牡丹江:[129.58,44.6],遵义:[106.9,27.7],绍兴:[120.58,30.01],扬州:[119.42,32.39],常州:[119.95,31.79],潍坊:[119.1,36.62],重庆:[106.54,29.59],台州:[121.420757,28.656386],南京:[118.78,32.04],滨州:[118.03,37.36],贵阳:[106.71,26.57],无锡:[120.29,31.59],本溪:[123.73,41.3],克拉玛依:[84.77,45.59],渭南:[109.5,34.52],马鞍山:[118.48,31.56],宝鸡:[107.15,34.38],焦作:[113.21,35.24],句容:[119.16,31.95],北京:[116.46,39.92],徐州:[117.2,34.26],衡水:[115.72,37.72],包头:[110,40.58],绵阳:[104.73,31.48],乌鲁木齐:[87.68,43.77],枣庄:[117.57,34.86],杭州:[120.19,30.26],淄博:[118.05,36.78],鞍山:[122.85,41.12],溧阳:[119.48,31.43],库尔勒:[86.06,41.68],安阳:[114.35,36.1],开封:[114.35,34.79],济南:[117,36.65],德阳:[104.37,31.13],温州:[120.65,28.01],九江:[115.97,29.71],邯郸:[114.47,36.6],临安:[119.72,30.23],兰州:[103.73,36.03],沧州:[116.83,38.33],临沂:[118.35,35.05],南充:[106.110698,30.837793],天津:[117.2,39.13],富阳:[119.95,30.07],泰安:[117.13,36.18],诸暨:[120.23,29.71],郑州:[113.65,34.76],哈尔滨:[126.63,45.75],聊城:[115.97,36.45],芜湖:[118.38,31.33],唐山:[118.02,39.63],平顶山:[113.29,33.75],邢台:[114.48,37.05],德州:[116.29,37.45],济宁:[116.59,35.38],荆州:[112.239741,30.335165],宜昌:[111.3,30.7],义乌:[120.06,29.32],丽水:[119.92,28.45],洛阳:[112.44,34.7],秦皇岛:[119.57,39.95],株洲:[113.16,27.83],石家庄:[114.48,38.03],莱芜:[117.67,36.19],常德:[111.69,29.05],保定:[115.48,38.85],湘潭:[112.91,27.87],金华:[119.64,29.12],岳阳:[113.09,29.37],长沙:[113,28.21],衢州:[118.88,28.97],廊坊:[116.7,39.53],菏泽:[115.480656,35.23375],合肥:[117.27,31.86],武汉:[114.31,30.52],大庆:[125.03,46.58]},_={class:"layout-padding"},b={class:"layout-padding-auto layout-padding-view"},M=o({name:"funEchartsMap"}),E=o({...M,setup(g){const m=i(""),u=c({echartsMap:"",echartsMapList:f,echartsMapData:y}),v=a=>{let n=[];for(let e=0;e{const a=r(m.value),n={tooltip:{trigger:"item"},color:["#9a60b4","#ea7ccc"],bmap:{center:[104.114129,37.550339],zoom:5,roam:!0,mapStyle:{}},series:[{name:"pm2.5",type:"scatter",coordinateSystem:"bmap",data:v(u.echartsMapList),symbolSize:function(e){return e[2]/10},encode:{value:2},label:{formatter:"{b}",position:"right",show:!1},emphasis:{label:{show:!0}}},{name:"Top 5",type:"effectScatter",coordinateSystem:"bmap",data:v(u.echartsMapList.sort(function(e,l){return l.value-e.value}).slice(0,6)),symbolSize:function(e){return e[2]/10},encode:{value:2},showEffectOn:"render",rippleEffect:{brushType:"stroke"},hoverAnimation:!0,label:{formatter:"{b}",position:"right",show:!0},itemStyle:{shadowBlur:10,shadowColor:"#333"},zlevel:1}]};a.setOption(n),window.addEventListener("resize",()=>{a.resize()})};return p(()=>{s()}),(a,n)=>(h(),d("div",_,[t("div",b,[t("div",{ref_key:"echartsMapRef",ref:m,style:{height:"100%"}},null,512)])]))}});export{E as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3f2ce315.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3f2ce315.js new file mode 100644 index 00000000..99b2e426 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3f2ce315.js @@ -0,0 +1 @@ +import{s as e,A as r}from"./request.386cf962.js";function d(){return{getList:t=>e({url:r.list,method:"get",params:t}),add:t=>e({url:r.add,method:"post",data:t}),delete:t=>e({url:r.delete,method:"post",data:t}),update:t=>e({url:r.update,method:"post",data:t}),updateStatus:t=>e({url:r.updateStatus,method:"post",data:t})}}export{d as u}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3fceb8a3.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3fceb8a3.js new file mode 100644 index 00000000..69445ce2 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.3fceb8a3.js @@ -0,0 +1 @@ +import{l as m}from"./logo-mini.323e783b.js";import{h as s,K as _,a9 as t,j as p,k as d,D as a,x as l,u as i}from"./vue.bd0669ce.js";const u={class:"svg-demo-container layout-pd"},v=s({name:"makeSvgDemo"}),z=s({...v,setup(f){const r=_({tableData:[{a1:"name",a2:"svg 图标组件名字 / svg 路径 url",a3:"string",a4:"",a5:""},{a1:"size",a2:"svg 大小",a3:"number",a4:"",a5:14},{a1:"color",a2:"svg 颜色",a3:"string",a4:"",a5:""}]});return(g,h)=>{const o=t("SvgIcon"),n=t("el-card"),e=t("el-table-column"),c=t("el-table");return p(),d("div",u,[a(n,{shadow:"hover",header:"svgIcon:演示(支持本地svg)"},{default:l(()=>[a(o,{name:"iconfont icon-shuju1",color:"red",size:30}),a(o,{name:"ele-Trophy",color:"var(--el-color-primary)",size:30}),a(o,{name:"fa fa-flag-checkered",color:"#09f",size:30}),a(o,{name:i(m),color:"#09f",size:30},null,8,["name"])]),_:1}),a(n,{shadow:"hover",header:"svgIcon:参数",class:"mt15"},{default:l(()=>[a(c,{data:r.tableData,style:{width:"100%"}},{default:l(()=>[a(e,{prop:"a1",label:"参数"}),a(e,{prop:"a2",label:"说明"}),a(e,{prop:"a3",label:"类型"}),a(e,{prop:"a4",label:"可选值"}),a(e,{prop:"a5",label:"默认值"})]),_:1},8,["data"])]),_:1})])}}});export{z as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.40de9295.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.40de9295.js new file mode 100644 index 00000000..0873c476 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.40de9295.js @@ -0,0 +1 @@ +import{_ as G}from"./preload-helper.101896b7.js";import{u as J}from"./vue-i18n.cjs.2a00fe88.js";import{u as Q}from"./index.ecee1b36.js";import{b as T}from"./formatTime.057ac5b9.js";import{L as X}from"./storage.b628b270.js";import{u as Y}from"./index.3f2ce315.js";import{h as N,r as S,ap as ee,o as x,K as y,a9 as s,ac as ae,j as u,k as C,l as I,D as a,x as l,u as n,F as te,Z as oe,B as c,C as _,y as le,v as f}from"./vue.bd0669ce.js";import{_ as se}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.f64fca3a.js";import"./index.e8f4f9cf.js";import"./index.ee56f1f7.js";const re={class:"system-role-container layout-padding"},ne={class:"system-role-padding layout-padding-auto layout-padding-view"},pe={class:"system-user-search mb15"},me=N({name:"systemRole"}),ie=N({...me,setup(de){const{t:p}=J(),R=Q(),B=Y(),g=S(),V=ee(()=>G(()=>import("./dialog.d4b69b79.js"),["assets/dialog.d4b69b79.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/index.dbe87b05.js","assets/request.386cf962.js","assets/storage.b628b270.js","assets/index.c3b4fd97.js","assets/index.aa7cec2e.js","assets/themeConfig.cb88f033.js","assets/index.f64fca3a.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/dialog.cf0d5064.css"])),A=S();x(()=>{L()});const b=y({list:[]}),m=y({form:{namespaceId:X.get("nid"),appId:"",address:""},rules:{}}),t=y({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),L=async()=>{let r=await B.getList({namespaceId:m.form.namespaceId,page:1,size:30});b.list=[],r.list.forEach(function(e){b.list.push({id:e.id,label:e.name})})},d=async()=>{t.tableData.loading=!0;let r=await R.getWorkerList({namespaceId:m.form.namespaceId,appId:m.form.appId,address:m.form.address,page:t.tableData.param.pageNum,size:t.tableData.param.pageSize});t.tableData.data=[],r.list.forEach(function(e){t.tableData.data.push({appName:e.appName,address:e.address,status:e.status===1,protocolType:e.protocolType,version:e.version,lastHeartbeatTime:T(e.lastHeartbeatTime),createTime:T(e.createTime)})}),t.tableData.total=r.total,setTimeout(()=>{t.tableData.loading=!1},500)},w=r=>{!r||r.validate(e=>{if(e)d();else return!1})},H=()=>{m.form.address="",m.form.appId="",d()},$=r=>{t.tableData.param.pageSize=r,d()},E=r=>{t.tableData.param.pageNum=r,d()};return x(()=>{d()}),(r,e)=>{const U=s("el-option"),j=s("el-select"),D=s("el-form-item"),v=s("el-col"),F=s("el-input"),M=s("ele-Search"),h=s("el-icon"),k=s("el-button"),P=s("ele-RefreshRight"),q=s("el-row"),K=s("el-form"),i=s("el-table-column"),z=s("el-tag"),O=s("el-table"),W=s("el-pagination"),Z=ae("loading");return u(),C("div",re,[I("div",ne,[I("div",pe,[a(K,{ref_key:"tableSearchRef",ref:g,model:m.form,rules:m.rules},{default:l(()=>[a(q,null,{default:l(()=>[a(v,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:l(()=>[a(D,{label:n(p)("message.app.name"),prop:"appName"},{default:l(()=>[a(j,{modelValue:m.form.appId,"onUpdate:modelValue":e[1]||(e[1]=o=>m.form.appId=o),filterable:"",placeholder:n(p)("message.commonMsg.all"),size:"default",style:{width:"90%"}},{default:l(()=>[(u(!0),C(te,null,oe(b.list,o=>(u(),f(U,{key:o.id,label:o.label,value:o.id,onClick:e[0]||(e[0]=ue=>w(g.value))},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),a(v,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:l(()=>[a(D,{label:n(p)("message.server.worker.address"),prop:"address"},{default:l(()=>[a(F,{modelValue:m.form.address,"onUpdate:modelValue":e[2]||(e[2]=o=>m.form.address=o),size:"default",style:{width:"95%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),a(v,{xs:8,sm:12,md:8,lg:6,xl:4,class:"mb20"},{default:l(()=>[a(k,{size:"default",type:"primary",class:"ml10",onClick:e[3]||(e[3]=o=>w(g.value))},{default:l(()=>[a(h,null,{default:l(()=>[a(M)]),_:1}),c(" "+_(r.$t("message.commonBtn.query")),1)]),_:1}),a(k,{size:"default",type:"primary",class:"ml10",onClick:e[4]||(e[4]=o=>H())},{default:l(()=>[a(h,null,{default:l(()=>[a(P)]),_:1}),c(" "+_(r.$t("message.commonBtn.reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),le((u(),f(O,{data:t.tableData.data,style:{width:"100%"}},{default:l(()=>[a(i,{prop:"appName",label:n(p)("message.server.worker.appName"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"address",label:n(p)("message.server.worker.address"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"protocolType",label:n(p)("message.server.worker.protocolType"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"version",label:n(p)("message.server.worker.version"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"status",label:n(p)("message.server.worker.status"),"show-overflow-tooltip":""},{default:l(o=>[o.row.status?(u(),f(z,{key:0,type:"success"},{default:l(()=>[c(_(n(p)("message.commonBtn.online")),1)]),_:1})):(u(),f(z,{key:1,type:"info"},{default:l(()=>[c(_(n(p)("message.commonBtn.offline")),1)]),_:1}))]),_:1},8,["label"]),a(i,{prop:"lastHeartbeatTime",label:n(p)("message.server.worker.lastHeartbeatTime"),"show-overflow-tooltip":""},null,8,["label"]),a(i,{prop:"createTime",label:n(p)("message.server.worker.createTime"),"show-overflow-tooltip":""},null,8,["label"])]),_:1},8,["data"])),[[Z,t.tableData.loading]]),a(W,{onSizeChange:$,onCurrentChange:E,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":t.tableData.param.pageNum,"onUpdate:current-page":e[5]||(e[5]=o=>t.tableData.param.pageNum=o),background:"","page-size":t.tableData.param.pageSize,"onUpdate:page-size":e[6]||(e[6]=o=>t.tableData.param.pageSize=o),layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},null,8,["current-page","page-size","total"])]),a(n(V),{ref_key:"nsDialogRef",ref:A,onRefresh:e[7]||(e[7]=o=>d())},null,512)])}}});const Ie=se(ie,[["__scopeId","data-v-018b8a53"]]);export{Ie as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.482abe74.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.482abe74.js new file mode 100644 index 00000000..295d3b38 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.482abe74.js @@ -0,0 +1 @@ +import{_ as f}from"./preload-helper.101896b7.js";import{h as a,ap as u,r as g,K as h,a9 as o,j as v,k as C,D as e,x as t,l as s,B as b,u as x}from"./vue.bd0669ce.js";import{_ as y}from"./_plugin-vue_export-helper.c27b6911.js";const D={class:"croppers-container layout-pd"},k={class:"cropper-img-warp"},I={class:"mb15 mt15"},w=["src"],B=a({name:"funCropper"}),E=a({...B,setup(V){const n=u(()=>f(()=>import("./index.695c14ea.js"),["assets/index.695c14ea.js","assets/vue.bd0669ce.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.f0f69fea.css"])),r=g(),c=h({cropperImg:"https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500"}),p=()=>{r.value.openDialog(c.cropperImg)};return(j,N)=>{const _=o("el-alert"),l=o("ele-Crop"),i=o("el-icon"),m=o("el-button"),d=o("el-card");return v(),C("div",D,[e(d,{shadow:"hover",header:"cropper 图片裁剪"},{default:t(()=>[e(_,{title:"感谢优秀的 `cropperjs`,项目地址:https://github.com/fengyuanchen/cropperjs",type:"success",closable:!1,class:"mb15"}),s("div",k,[s("div",I,[s("img",{class:"cropper-img",src:c.cropperImg},null,8,w)]),e(m,{type:"primary",size:"default",onClick:p},{default:t(()=>[e(i,null,{default:t(()=>[e(l)]),_:1}),b(" 更换头像 ")]),_:1})])]),_:1}),e(x(n),{ref_key:"cropperDialogRef",ref:r},null,512)])}}});const O=y(E,[["__scopeId","data-v-8ef91f4b"]]);export{O as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.4885872f.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.4885872f.js new file mode 100644 index 00000000..31361db4 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.4885872f.js @@ -0,0 +1 @@ +import{h as s,K as o,a9 as t,j as p,k as r,D as a,x as m}from"./vue.bd0669ce.js";const n={class:"preview-container layout-pd"},l=s({name:"pagesPreview"}),_=s({...l,setup(u){const e=o({url:"https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500",srcList:["https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500","https://img2.baidu.com/it/u=2370931438,70387529&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500","https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F0%2F582fc47531494.jpg&refer=http%3A%2F%2Fpic1.win4000.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1671617723&t=024966ede9f71fb7c39f6b06a712c1e3"]});return(f,d)=>{const c=t("el-image"),i=t("el-card");return p(),r("div",n,[a(i,{shadow:"hover",header:"element-plus 大图预览"},{default:m(()=>[a(c,{style:{width:"100px",height:"100px","border-radius":"5px"},src:e.url,"preview-src-list":e.srcList,title:"点击查看大图预览"},null,8,["src","preview-src-list"])]),_:1})])}}});export{_ as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.4be0451a.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.4be0451a.js new file mode 100644 index 00000000..af42fa2c --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.4be0451a.js @@ -0,0 +1 @@ +import{u as Z}from"./vue-i18n.cjs.2a00fe88.js";import{u as D}from"./index.ecee1b36.js";import{J as U}from"./index.f64fca3a.js";import{ay as A}from"./index.e8f4f9cf.js";import{h as V,r as B,K as j,o as M,a9 as i,j as p,k as b,D as l,x as s,u,F as c,Z as v,B as z,C,v as _}from"./vue.bd0669ce.js";import{_ as R}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./request.386cf962.js";import"./storage.b628b270.js";import"./index.c3b4fd97.js";import"./index.aa7cec2e.js";import"./themeConfig.cb88f033.js";import"./index.ee56f1f7.js";const T={class:"system-config-container"},h=V({name:"systemRoleDialog"}),I=V({...h,emits:["refresh"],setup(E,{emit:N}){const{t:o}=Z(),F=B(),e=j({selectDays:[{value:1,label:o("message.server.system.selectDays.oneDay")},{value:7,label:o("message.server.system.selectDays.oneWeek")},{value:30,label:o("message.server.system.selectDays.oneMonth")},{value:90,label:o("message.server.system.selectDays.threeMonth")},{value:180,label:o("message.server.system.selectDays.SixMonth")},{value:365,label:o("message.server.system.selectDays.oneYear")},{value:1095,label:o("message.server.system.selectDays.threeYear")}],fromRules:{},ruleForm:{version:"",maxSlot:"256",clusterVersion:"",clusterDelayVersion:"",workerSupervisorSlot:"",delayZsetSlot:"",delayFailZsetSlot:"",delayAddListSlot:"",delayStatusListSlot:"",delayDeleteListSlot:"",jobKeepDays:"",delayKeepDays:"",serverKeepDays:"",workerKeepDays:""}}),g=async r=>{!r||await r.validate(t=>{if(t)x();else return!1})},x=async()=>{U.confirm(o("message.server.system.updateTitle"),o("message.commonMsg.tip"),{confirmButtonText:o("message.commonBtn.confirm"),cancelButtonText:o("message.commonBtn.cancel"),type:"warning"}).then(async()=>{await D().updateSystem({delayZsetSlot:e.ruleForm.delayZsetSlot,delayFailZsetSlot:e.ruleForm.delayFailZsetSlot,delayAddListSlot:e.ruleForm.delayAddListSlot,delayStatusListSlot:e.ruleForm.delayStatusListSlot,delayDeleteListSlot:e.ruleForm.delayDeleteListSlot,jobKeepDays:e.ruleForm.jobKeepDays,delayKeepDays:e.ruleForm.delayKeepDays,serverKeepDays:e.ruleForm.serverKeepDays,workerKeepDays:e.ruleForm.workerKeepDays,maxSlot:e.ruleForm.maxSlot}),A.success(o("message.commonMsg.updateSuccess"))}).catch(()=>{})},w=async()=>{let r=await D().getSystemInfo({});e.ruleForm.version=r.version,e.ruleForm.maxSlot=r.maxSlot,e.ruleForm.clusterVersion=r.clusterVersion,e.ruleForm.clusterDelayVersion=r.clusterDelayVersion,e.ruleForm.workerSupervisorSlot=r.workerSupervisorSlot,e.ruleForm.delayZsetSlot=r.delayZsetSlot,e.ruleForm.delayFailZsetSlot=r.delayFailZsetSlot,e.ruleForm.delayAddListSlot=r.delayAddListSlot,e.ruleForm.delayStatusListSlot=r.delayStatusListSlot,e.ruleForm.delayDeleteListSlot=r.delayDeleteListSlot,e.ruleForm.jobKeepDays=r.jobKeepDays,e.ruleForm.delayKeepDays=r.delayKeepDays,e.ruleForm.serverKeepDays=r.serverKeepDays,e.ruleForm.workerKeepDays=r.workerKeepDays};return M(()=>{w()}),(r,t)=>{const n=i("el-input"),d=i("el-form-item"),m=i("el-col"),y=i("el-row"),f=i("el-option"),S=i("el-select"),K=i("el-button"),k=i("el-form"),L=i("el-card");return p(),b("div",T,[l(L,{shadow:"never",header:"配置信息"},{default:s(()=>[l(k,{ref_key:"appDialogFormRef",ref:F,model:e.ruleForm,"label-width":"150px",rules:e.fromRules,size:"default"},{default:s(()=>[l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.version"),prop:"description"},{default:s(()=>[l(n,{modelValue:e.ruleForm.version,"onUpdate:modelValue":t[0]||(t[0]=a=>e.ruleForm.version=a),disabled:"",clearable:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.maxSlot"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.maxSlot,"onUpdate:modelValue":t[1]||(t[1]=a=>e.ruleForm.maxSlot=a),disabled:"",clearable:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.workerSupervisorSlot"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.workerSupervisorSlot,"onUpdate:modelValue":t[2]||(t[2]=a=>e.ruleForm.workerSupervisorSlot=a),disabled:"",clearable:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.clusterVersion"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.clusterVersion,"onUpdate:modelValue":t[3]||(t[3]=a=>e.ruleForm.clusterVersion=a),disabled:"",clearable:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.clusterDelayVersion"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.clusterDelayVersion,"onUpdate:modelValue":t[4]||(t[4]=a=>e.ruleForm.clusterDelayVersion=a),disabled:"",clearable:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.delayZsetSlot"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.delayZsetSlot,"onUpdate:modelValue":t[5]||(t[5]=a=>e.ruleForm.delayZsetSlot=a),clearable:"",disabled:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.delayAddListSlot"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.delayAddListSlot,"onUpdate:modelValue":t[6]||(t[6]=a=>e.ruleForm.delayAddListSlot=a),clearable:"",disabled:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.delayStatusListSlot"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.delayStatusListSlot,"onUpdate:modelValue":t[7]||(t[7]=a=>e.ruleForm.delayStatusListSlot=a),clearable:"",disabled:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.delayDeleteListSlot"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.delayDeleteListSlot,"onUpdate:modelValue":t[8]||(t[8]=a=>e.ruleForm.delayDeleteListSlot=a),clearable:"",disabled:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.delayFailZsetSlot"),prop:"name"},{default:s(()=>[l(n,{modelValue:e.ruleForm.delayFailZsetSlot,"onUpdate:modelValue":t[9]||(t[9]=a=>e.ruleForm.delayFailZsetSlot=a),clearable:"",disabled:"",style:{width:"96%"}},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.jobKeepDays"),prop:"name"},{default:s(()=>[l(S,{modelValue:e.ruleForm.jobKeepDays,"onUpdate:modelValue":t[10]||(t[10]=a=>e.ruleForm.jobKeepDays=a),filterable:"",class:"m-2",style:{width:"60%"},placeholder:"Select",size:"default"},{default:s(()=>[(p(!0),b(c,null,v(e.selectDays,a=>(p(),_(f,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.delayKeepDays"),prop:"name"},{default:s(()=>[l(S,{modelValue:e.ruleForm.delayKeepDays,"onUpdate:modelValue":t[11]||(t[11]=a=>e.ruleForm.delayKeepDays=a),filterable:"",class:"m-2",style:{width:"60%"},placeholder:"Select",size:"default"},{default:s(()=>[(p(!0),b(c,null,v(e.selectDays,a=>(p(),_(f,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.serverKeepDays"),prop:"name"},{default:s(()=>[l(S,{modelValue:e.ruleForm.serverKeepDays,"onUpdate:modelValue":t[12]||(t[12]=a=>e.ruleForm.serverKeepDays=a),filterable:"",class:"m-2",style:{width:"60%"},placeholder:"Select",size:"default"},{default:s(()=>[(p(!0),b(c,null,v(e.selectDays,a=>(p(),_(f,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1}),l(m,{xs:12,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:s(()=>[l(d,{label:u(o)("message.server.system.workerKeepDays"),prop:"name"},{default:s(()=>[l(S,{modelValue:e.ruleForm.workerKeepDays,"onUpdate:modelValue":t[13]||(t[13]=a=>e.ruleForm.workerKeepDays=a),filterable:"",class:"m-2",style:{width:"60%"},placeholder:"Select",size:"default"},{default:s(()=>[(p(!0),b(c,null,v(e.selectDays,a=>(p(),_(f,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(y,null,{default:s(()=>[l(m,null,{default:s(()=>[l(K,{type:"primary",onClick:t[14]||(t[14]=a=>g(F.value)),size:"default",style:{"margin-left":"150px"}},{default:s(()=>[z(C(u(o)("message.commonBtn.update")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1})])}}});const se=R(I,[["__scopeId","data-v-2d5599f2"]]);export{se as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.5059c6fd.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.5059c6fd.js new file mode 100644 index 00000000..d9a197d4 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.5059c6fd.js @@ -0,0 +1 @@ +import{ay as _}from"./index.e8f4f9cf.js";import{h as k,r as A,K as F,a9 as l,j as o,k as u,D as r,x as a,F as y,Z as w,l as c,B as V,v as p,A as f,C as j}from"./vue.bd0669ce.js";import"./index.ee56f1f7.js";const E={class:"layout-pd"},K={key:0,class:"color-danger"},L={class:"pl5"},M=c("i",{class:"iconfont icon-quanxian"},null,-1),S=c("i",{class:"iconfont icon-shouye_dongtaihui"},null,-1),Z={class:"flex-margin"},G=k({name:"pagesTableRules"}),P=k({...G,setup(H){const b=A(),d=F({tableData:{data:[],header:[{prop:"a1",width:"",label:"一级分类",isRequired:!0,type:"select"},{prop:"a2",width:"",label:"二级分类",isRequired:!0,type:"select"},{prop:"a3",width:"",label:"三级分类",isRequired:!0,type:"select"},{prop:"a4",width:"",label:"四级分类",isRequired:!0,type:"date"},{prop:"a5",width:"",label:"五级分类",isRequired:!0,type:"input"},{prop:"a6",width:"",label:"六级分类",isTooltip:!0,type:"dialog"},{prop:"a7",width:"",label:"演示级分类",type:"input"},{prop:"a8",width:"",label:"颜色是分类",type:"input"}],option:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"}]}}),v=i=>{if(d.tableData.data.length<=0)return _.warning("请先点击增加一行");!i||i.validate(s=>{if(!s)return _.warning("表格项必填未填");_.success("全部验证通过")})},g=()=>{d.tableData.data.push({a1:"",a2:"",a3:"",a4:"",a5:"",a6:"",a7:"",a8:""})};return(i,s)=>{const R=l("el-tooltip"),x=l("el-option"),q=l("el-select"),D=l("el-date-picker"),m=l("el-input"),U=l("el-form-item"),C=l("el-table-column"),B=l("el-table"),$=l("el-form"),h=l("el-button"),N=l("el-row"),T=l("el-card");return o(),u("div",E,[r(T,{shadow:"hover",header:"表单表格验证"},{default:a(()=>[r($,{ref_key:"tableRulesRef",ref:b,model:d.tableData,size:"default"},{default:a(()=>[r(B,{data:d.tableData.data,border:"",class:"module-table-uncollected"},{default:a(()=>[(o(!0),u(y,null,w(d.tableData.header,(e,z)=>(o(),p(C,{key:z,"show-overflow-tooltip":"",prop:e.prop,width:e.width,label:e.label},{header:a(()=>[e.isRequired?(o(),u("span",K,"*")):f("",!0),c("span",L,j(e.label),1),e.isTooltip?(o(),p(R,{key:1,effect:"dark",content:"这是tooltip",placement:"top"},{default:a(()=>[M]),_:1})):f("",!0)]),default:a(n=>[r(U,{prop:`data.${n.$index}.${e.prop}`,rules:[{required:e.isRequired,message:"不能为空",trigger:`${e.type}`=="input"?"blur":"change"}]},{default:a(()=>[e.type==="select"?(o(),p(q,{key:0,modelValue:n.row[e.prop],"onUpdate:modelValue":t=>n.row[e.prop]=t,placeholder:"请选择"},{default:a(()=>[(o(!0),u(y,null,w(d.tableData.option,t=>(o(),p(x,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.type==="date"?(o(),p(D,{key:1,modelValue:n.row[e.prop],"onUpdate:modelValue":t=>n.row[e.prop]=t,type:"date",placeholder:"选择日期",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"])):e.type==="input"?(o(),p(m,{key:2,modelValue:n.row[e.prop],"onUpdate:modelValue":t=>n.row[e.prop]=t,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue"])):e.type==="dialog"?(o(),p(m,{key:3,modelValue:n.row[e.prop],"onUpdate:modelValue":t=>n.row[e.prop]=t,readonly:"",placeholder:"请输入内容"},{suffix:a(()=>[S]),_:2},1032,["modelValue","onUpdate:modelValue"])):f("",!0)]),_:2},1032,["prop","rules"])]),_:2},1032,["prop","width","label"]))),128))]),_:1},8,["data"])]),_:1},8,["model"]),r(N,{class:"flex mt15"},{default:a(()=>[c("div",Z,[r(h,{size:"default",type:"success",onClick:s[0]||(s[0]=e=>v(b.value))},{default:a(()=>[V("表格验证")]),_:1}),r(h,{size:"default",type:"primary",onClick:g},{default:a(()=>[V("新增一行")]),_:1})])]),_:1})]),_:1})])}}});export{P as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.51bc1cb8.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.51bc1cb8.js new file mode 100644 index 00000000..3e523e9d --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.51bc1cb8.js @@ -0,0 +1 @@ +import{_ as p}from"./preload-helper.101896b7.js";import{h as C,ap as _,r as i,K as g,a9 as d,j as t,k as j,D as u,x as c,v as f,u as m,J as w}from"./vue.bd0669ce.js";const E=C({name:"pagesWorkflowDrawer"}),h=C({...E,emits:["label","node"],setup(P,{expose:b,emit:a}){const k=_(()=>p(()=>import("./line.8d79a62b.js"),["assets/line.8d79a62b.js","assets/vue.bd0669ce.js"])),D=_(()=>p(()=>import("./node.cd81c84d.js"),["assets/node.cd81c84d.js","assets/echarts.c5874920.js","assets/index.e8f4f9cf.js","assets/vue.bd0669ce.js","assets/index.ee56f1f7.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/node.62a60e69.css"])),l=i(),s=i(),e=g({isOpen:!1,nodeData:{type:"node"},jsplumbConn:{}}),v=(n,o)=>{e.isOpen=!0,e.jsplumbConn=o,e.nodeData=n,w(()=>{setTimeout(()=>{n.type==="line"?l.value.getParentData(n):s.value.getParentData(n)},300)})},r=()=>{e.isOpen=!1},y=n=>{e.jsplumbConn.label=n,a("label",e.jsplumbConn)},O=n=>{a("node",n)};return b({open:v}),(n,o)=>{const x=d("el-scrollbar"),R=d("el-drawer");return t(),j("div",null,[u(R,{title:`${e.nodeData.type==="line"?"线":"节点"}操作`,modelValue:e.isOpen,"onUpdate:modelValue":o[0]||(o[0]=V=>e.isOpen=V),size:"320px"},{default:c(()=>[u(x,null,{default:c(()=>[e.nodeData.type==="line"?(t(),f(m(k),{key:0,onChange:y,onClose:r,ref_key:"lineRef",ref:l},null,512)):(t(),f(m(D),{key:1,onSubmit:O,onClose:r,ref_key:"nodeRef",ref:s},null,512))]),_:1})]),_:1},8,["title","modelValue"])])}}});export{h as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.533326b8.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.533326b8.js new file mode 100644 index 00000000..7d28adf6 --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.533326b8.js @@ -0,0 +1 @@ +import{_ as u}from"./preload-helper.101896b7.js";import{h as d,ap as b,K as f,a9 as r,j as h,k as g,D as a,x as o,u as v}from"./vue.bd0669ce.js";const D={class:"selector-container layout-pd"},I=d({name:"makeSelector"}),V=d({...I,setup(w){const p=b(()=>u(()=>import("./index.ce143561.js"),["assets/index.ce143561.js","assets/preload-helper.101896b7.js","assets/getStyleSheets.43fb22d8.js","assets/index.ee56f1f7.js","assets/vue.bd0669ce.js","assets/index.47b5c078.css"])),t=f({modelIcon:"",tableData:[{a1:"v-model",a2:"双向绑定值",a3:"string",a4:"",a5:""},{a1:"prepend",a2:"输入框前置内容,只能字体图标",a3:"string",a4:"",a5:"ele-Pointer"},{a1:"placeholder",a2:"输入框占位文本",a3:"string",a4:"",a5:"请输入内容搜索图标或者选择图标"},{a1:"size",a2:"尺寸",a3:"string",a4:"large / default / small",a5:"default"},{a1:"title",a2:"弹窗标题",a3:"string",a4:"",a5:"请选择图标"},{a1:"disabled",a2:"禁用",a3:"boolean",a4:"true",a5:"false"},{a1:"clearable",a2:"是否可清空",a3:"boolean",a4:"false",a5:"true"},{a1:"emptyDescription",a2:"自定义空状态描述文字",a3:"String",a4:"",a5:"无相关图标"}],tableData1:[{a1:"get",a2:"获取当前点击的 icon 图标",a3:"function",a4:"(icon: string)"},{a1:"clear",a2:"清空当前点击的 icon 图标",a3:"function",a4:"(icon: string)"}]}),i=l=>{console.log(l)},_=l=>{console.log(l)};return(l,s)=>{const n=r("el-card"),e=r("el-table-column"),c=r("el-table");return h(),g("div",D,[a(n,{shadow:"hover",header:"图标选择器(宽度自动):"},{default:o(()=>[a(v(p),{onGet:i,onClear:_,modelValue:t.modelIcon,"onUpdate:modelValue":s[0]||(s[0]=m=>t.modelIcon=m)},null,8,["modelValue"])]),_:1}),a(n,{shadow:"hover",header:"图标选择器(宽度自动):参数",class:"mt15"},{default:o(()=>[a(c,{data:t.tableData,style:{width:"100%"}},{default:o(()=>[a(e,{prop:"a1",label:"参数"}),a(e,{prop:"a2",label:"说明"}),a(e,{prop:"a3",label:"类型"}),a(e,{prop:"a4",label:"可选值"}),a(e,{prop:"a5",label:"默认值"})]),_:1},8,["data"])]),_:1}),a(n,{shadow:"hover",header:"图标选择器(宽度自动):事件",class:"mt15"},{default:o(()=>[a(c,{data:t.tableData1,style:{width:"100%"}},{default:o(()=>[a(e,{prop:"a1",label:"事件名称"}),a(e,{prop:"a2",label:"说明"}),a(e,{prop:"a3",label:"类型"}),a(e,{prop:"a4",label:"回调参数"})]),_:1},8,["data"])]),_:1})])}}});export{V as default}; diff --git a/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.55238250.js b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.55238250.js new file mode 100644 index 00000000..8b4ed39c --- /dev/null +++ b/openjob-server/openjob-server-starter/src/main/resources/static/assets/index.55238250.js @@ -0,0 +1,35 @@ +var a0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);import{c as l0,i as At,a as x,w as ke,o as ht,g as yt,r as F,b as sl,u as a,p as gt,d as Xn,e as Wn,s as Kt,f as Ln,h as oe,j as N,k as U,l as te,m as ye,n as P,q as je,t as gn,v as fe,x as se,y as lt,z as St,A as de,B as It,C as Ne,F as Qe,D as Z,E as xt,T as cn,G as Ue,H as sn,I as Jt,J as Ge,K as Rt,L as ur,M as qt,N as Qt,O as i0,P as u0,Q as Kp,R as mt,S as ft,U as Bs,V as _p,W as c0,X as kt,Y as al,Z as bt,_ as Et,$ as nt,a0 as Io,a1 as tn,a2 as ws,a3 as qn,a4 as zs,a5 as Pr,a6 as Fa,a7 as jp,a8 as Ke,a9 as tt,aa as d0,ab as Ti,ac as Rr,ad as Cu,ae as f0,af as _n,ag as Su,ah as cs,ai as p0,aj as os,ak as Ql,al as h0,am as Yp,an as v0,ao as Sd,ap as ei,aq as m0,ar as g0}from"./vue.bd0669ce.js";import{p as y0}from"./index.aa7cec2e.js";import{_ as ti}from"./preload-helper.101896b7.js";import{u as b0,r as w0}from"./vue-i18n.cjs.2a00fe88.js";import{u as C0}from"./tagsViewRoutes.054c4a6f.js";import{u as S0}from"./themeConfig.cb88f033.js";import{o as Oi}from"./other.e9eeae65.js";import{L as ni,S as kd}from"./storage.b628b270.js";import{e as Ed}from"./mitt.7f99bbc0.js";import{r as k0}from"./index.2f1ef0a5.js";import{u as oi}from"./userInfo.f7c9dd73.js";import{j as E0}from"./arrayOperation.b573dead.js";import{i as $d}from"./index.c3b4fd97.js";import{c as bo,g as $0}from"./_commonjsHelpers.35101cd5.js";import{l as Gr,c as T0,a as qr,b as Up,d as O0,e as ll,f as Vo,g as Mo,h as wn,i as Vs,j as mo,k as Ar,m as Dr,n as x0,s as I0,z as M0,o as Gp,r as N0,p as P0,q as R0,t as qp,u as A0,v as D0,w as Td,x as L0,y as Xp,A as Zp,B as aa,C as B0,D as z0,E as V0,F as F0,G as H0,H as W0,I as K0,J as _0,K as Jp,L as j0,M as Y0,N as U0}from"./index.ee56f1f7.js";import{i as G0,a as No,g as il,r as Fo,d as Od,b as q0,c as Qp,e as X0,f as Po,h as ul,j as Z0,k as oo,l as eh,S as Lr,L as ku,M as Ha,m as th,t as Xr,n as J0,o as nh,p as Eu,q as oh,s as Ht,u as rh,v as Q0,w as ew,x as Dt,y as tw,z as wo,A as ce,B as en,C as nw,D as sh,E as ah,F as Re,G as cl,H as $u,I as ow,J as it,K as be,N as rw,O as xd,P as un,Q as pn,_ as Ie,R as dt,T as Wa,U as _e,V as sw,W as Bn,X as Ro,Y as Cn,Z as Ao,$ as cr,a0 as Ye,a1 as Tu,a2 as Jn,a3 as dr,a4 as jt,a5 as lh,a6 as Ut,a7 as Vn,a8 as Zn,a9 as dn,aa as vn,ab as aw,ac as _t,ad as lw,ae as ho,af as ih,ag as Br,ah as dl,ai as iw,aj as ma,ak as fo,al as An,am as uw,an as cw,ao as dw,ap as Go,aq as fw,ar as pw,as as Id,at as hw,au as vw,av as mw,aw as gw,ax as yw,ay as bw}from"./index.e8f4f9cf.js";import{u as ww,f as Ou,C as Lt,t as nn,g as xu,E as Iu,a as Do,U as ut,I as Sn,b as uh,c as bn,d as $t,e as zn,h as on,i as Lo,j as mn,k as ch,l as fr,m as Cw,s as dh,n as ga,o as fh,p as Fs,q as Mu,r as Sw,F as ph,v as kw,w as Ew,x as $w,y as hh,z as ya,T as Tw,A as Md,B as Ow,P as $o,D as Nd,G as xw,H as Iw,J as Mw}from"./index.f64fca3a.js";import"./toolsValidate.7cb139e2.js";import"./keepAliveNames.f05bad75.js";import"./routesList.32d6bb58.js";import"./loading.3e617409.js";import"./request.386cf962.js";var j3=a0((Pn,Rn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerpolicy&&(s.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?s.credentials="include":r.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=o(r);fetch(r.href,s)}})();var Nw=/\s/;function Pw(e){for(var t=e.length;t--&&Nw.test(e.charAt(t)););return t}var Rw=/^\s+/;function Aw(e){return e&&e.slice(0,Pw(e)+1).replace(Rw,"")}var Pd=0/0,Dw=/^[-+]0x[0-9a-f]+$/i,Lw=/^0b[01]+$/i,Bw=/^0o[0-7]+$/i,zw=parseInt;function Rd(e){if(typeof e=="number")return e;if(G0(e))return Pd;if(No(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=No(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Aw(e);var o=Lw.test(e);return o||Bw.test(e)?zw(e.slice(2),o?2:8):Dw.test(e)?Pd:+e}function Nu(e){return e}var Vw=il(Fo,"WeakMap");const xi=Vw;var Ad=Object.create,Fw=function(){function e(){}return function(t){if(!No(t))return{};if(Ad)return Ad(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();const Hw=Fw;function Ww(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function Kw(){}function _w(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o0){if(++t>=jw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function qw(e){return function(){return e}}var Xw=Od?function(e,t){return Od(e,"toString",{configurable:!0,enumerable:!1,value:qw(t),writable:!0})}:Nu;const Zw=Xw;var Jw=Gw(Zw);const vh=Jw;function Qw(e,t){for(var o=-1,n=e==null?0:e.length;++o-1}function fl(e,t,o,n){var r=!o;o||(o={});for(var s=-1,l=t.length;++s-1&&e%1==0&&e<=aC}function Hs(e){return e!=null&&Pu(e.length)&&!X0(e)}var lC=Object.prototype;function Ru(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||lC;return e===o}function iC(e,t){for(var o=-1,n=Array(e);++o0&&o(i)?t>1?Ks(i,t-1,o,n,r):Bu(r,i):n||(r[r.length]=i)}return r}function kh(e){var t=e==null?0:e.length;return t?Ks(e,1):[]}function oS(e){return vh(mh(e,void 0,kh),e+"")}var rS=Sh(Object.getPrototypeOf,Object);const Eh=rS;function Vr(){if(!arguments.length)return[];var e=arguments[0];return oo(e)?e:[e]}function sS(){this.__data__=new ku,this.size=0}function aS(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function lS(e){return this.__data__.get(e)}function iS(e){return this.__data__.has(e)}var uS=200;function cS(e,t){var o=this.__data__;if(o instanceof ku){var n=o.__data__;if(!Ha||n.lengthi))return!1;var c=s.get(e),f=s.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,v=o&Zk?new Ss:void 0;for(s.set(e,t),s.set(t,e);++d=t||A<0||d&&R>=s}function C(){var $=ai();if(b($))return k($);i=setTimeout(C,g($))}function k($){return i=void 0,h&&n?v($):(n=r=void 0,l)}function w(){i!==void 0&&clearTimeout(i),c=0,n=u=r=i=void 0}function E(){return i===void 0?l:k(ai())}function T(){var $=ai(),A=b($);if(n=arguments,r=this,u=$,A){if(i===void 0)return m(u);if(d)return clearTimeout(i),i=setTimeout(C,t),v(u)}return i===void 0&&(i=setTimeout(C,t)),l}return T.cancel=w,T.flush=E,T}function j1(e){return Po(e)&&Hs(e)}function Y1(e,t,o){for(var n=-1,r=e==null?0:e.length;++n=sE){var c=t?null:rE(e);if(c)return Fu(c);l=!1,r=Rh,u=new Ss}else u=t?[]:i;e:for(;++nr=>{const s=e==null?void 0:e(r);if(o===!1||!s)return t==null?void 0:t(r)},sf=e=>t=>t.pointerType==="mouse"?e(t):void 0,iE=(e,t)=>{if(!Dt||!e||!t)return!1;const o=e.getBoundingClientRect();let n;return t instanceof Element?n=t.getBoundingClientRect():n={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},o.topn.top&&o.right>n.left&&o.left{let t=0,o=e;for(;o;)t+=o.offsetTop,o=o.offsetParent;return t},uE=(e,t)=>Math.abs(af(e)-af(t)),Hu=e=>{let t,o;return e.type==="touchend"?(o=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(o=e.touches[0].clientY,t=e.touches[0].clientX):(o=e.clientY,t=e.clientX),{clientX:t,clientY:o}},zh=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Fn=e=>l0(e),hl=(...e)=>t=>{e.forEach(o=>{At(o)?o(t):o.value=t})},cE=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],ii=["sun","mon","tue","wed","thu","fri","sat"],lf=Symbol("INSTALLED_KEY"),dE=e=>tw[e||"default"],uf=e=>e**3,fE=e=>e<.5?uf(e*2)/2:1-uf((1-e)*2)/2,cf=e=>[...new Set(e)],vo=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Wu=()=>Dt&&/firefox/i.test(window.navigator.userAgent),Ku=e=>Dt?window.requestAnimationFrame(e):setTimeout(e,16),_u=e=>Dt?window.cancelAnimationFrame(e):clearTimeout(e),vl=()=>Math.floor(Math.random()*1e4),Vh=Symbol("breadcrumbKey"),Fh=Symbol("carouselContextKey"),Zr=Symbol("checkboxGroupContextKey"),Hh=Symbol("collapseContextKey"),Wh=Symbol("dialogInjectionKey"),Kh=Symbol("elPaginationKey"),_h=Symbol("radioGroupKey"),jh=Symbol("rowContextKey"),Yh=Symbol("scrollbarContextKey"),Uh=Symbol("sliderContextKey"),ml=Symbol("tabsRootContextKey"),Gh=Symbol("uploadContextKey"),ju=Symbol("popper"),qh=Symbol("popperContent"),gl=Symbol("elTooltip"),yl=Symbol("tooltipV2"),Xh=Symbol("tooltipV2Content"),ui="tooltip_v2.open",Yu=Symbol(),pE=e=>({focus:()=>{var t,o;(o=(t=e.value)==null?void 0:t.focus)==null||o.call(t)}}),hE=wo({type:ce(Boolean),default:null}),vE=wo({type:ce(Function)}),mE=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,n=[t],r={[e]:hE,[o]:vE};return{useModelToggle:({indicator:l,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:f,onHide:d})=>{const h=yt(),{emit:v}=h,m=h.props,g=x(()=>At(m[o])),b=x(()=>m[e]===null),C=A=>{l.value!==!0&&(l.value=!0,i&&(i.value=A),At(f)&&f(A))},k=A=>{l.value!==!1&&(l.value=!1,i&&(i.value=A),At(d)&&d(A))},w=A=>{if(m.disabled===!0||At(c)&&!c())return;const R=g.value&&Dt;R&&v(t,!0),(b.value||!R)&&C(A)},E=A=>{if(m.disabled===!0||!Dt)return;const R=g.value&&Dt;R&&v(t,!1),(b.value||!R)&&k(A)},T=A=>{!en(A)||(m.disabled&&A?g.value&&v(t,!1):l.value!==A&&(A?C():k()))},$=()=>{l.value?E():w()};return ke(()=>m[e],T),u&&h.appContext.config.globalProperties.$route!==void 0&&ke(()=>({...h.proxy.$route}),()=>{u.value&&l.value&&E()}),ht(()=>{T(m[e])}),{hide:E,show:w,toggle:$,hasUpdateHandler:g}},useModelToggleProps:r,useModelToggleEmits:n}},gE=(e,t=0)=>{if(t===0)return e;const o=F(!1);let n=0;const r=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{o.value=e.value},t)};return ht(r),ke(()=>e.value,s=>{s?r():o.value=s}),o};function yE(){let e;const t=(n,r)=>{o(),e=window.setTimeout(n,r)},o=()=>window.clearTimeout(e);return nw(()=>o()),{registerTimeout:t,cancelTimeout:o}}let df;const Zh=()=>{const e=sh("namespace",ah),t=ww(),o=x(()=>`${e.value}-popper-container-${t.prefix}`),n=x(()=>`#${o.value}`);return{id:o,selector:n}},bE=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},wE=()=>{sl(()=>{if(!Dt)return;const{id:e,selector:t}=Zh();!df&&!document.body.querySelector(t.value)&&(df=bE(e.value))})},CE=Re({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),SE=({showAfter:e,hideAfter:t,open:o,close:n})=>{const{registerTimeout:r}=yE();return{onOpen:i=>{r(()=>{o(i)},a(e))},onClose:i=>{r(()=>{n(i)},a(t))}}},Jh=Symbol("elForwardRef"),kE=e=>{gt(Jh,{setForwardRef:o=>{e.value=o}})},EE=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});function Uu(e){return e.split("-")[0]}function Gu(e){return e.split("-")[1]}function qu(e){return["top","bottom"].includes(Uu(e))?"x":"y"}function Qh(e){return e==="y"?"height":"width"}function ff(e,t,o){let{reference:n,floating:r}=e;const s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2,i=qu(t),u=Qh(i),c=n[u]/2-r[u]/2,f=Uu(t),d=i==="x";let h;switch(f){case"top":h={x:s,y:n.y-r.height};break;case"bottom":h={x:s,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:l};break;case"left":h={x:n.x-r.width,y:l};break;default:h={x:n.x,y:n.y}}switch(Gu(t)){case"start":h[i]-=c*(o&&d?-1:1);break;case"end":h[i]+=c*(o&&d?-1:1);break}return h}const $E=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:l}=o,i=s.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=ff(c,n,u),h=n,v={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{element:o,padding:n=0}=e??{},{x:r,y:s,placement:l,rects:i,platform:u}=t;if(o==null)return{};const c=OE(n),f={x:r,y:s},d=qu(l),h=Gu(l),v=Qh(d),m=await u.getDimensions(o),g=d==="y"?"top":"left",b=d==="y"?"bottom":"right",C=i.reference[v]+i.reference[d]-f[d]-i.floating[v],k=f[d]-i.reference[d],w=await(u.getOffsetParent==null?void 0:u.getOffsetParent(o));let E=w?d==="y"?w.clientHeight||0:w.clientWidth||0:0;E===0&&(E=i.floating[v]);const T=C/2-k/2,$=c[g],A=E-m[v]-c[b],R=E/2-m[v]/2+T,M=ME($,R,A),L=(h==="start"?c[g]:c[b])>0&&R!==M&&i.reference[v]<=i.floating[v]?R<$?$-R:A-R:0;return{[d]:f[d]-L,data:{[d]:M,centerOffset:R-M}}}});async function PE(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),l=Uu(o),i=Gu(o),u=qu(o)==="x",c=["left","top"].includes(l)?-1:1,f=s&&u?-1:1,d=typeof t=="function"?t(e):t;let{mainAxis:h,crossAxis:v,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(v=i==="end"?m*-1:m),u?{x:v*f,y:h*c}:{x:h*c,y:v*f}}const RE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:o,y:n}=t,r=await PE(t,e);return{x:o+r.x,y:n+r.y,data:r}}}},hf=Math.min,ps=Math.max,ja=Math.round;function bl(e,t){const o=t||e.getBoundingClientRect();return{x:e.offsetWidth>0&&ja(o.width)/e.offsetWidth||1,y:e.offsetHeight>0&&ja(o.height)/e.offsetHeight||1}}function Co(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function go(e){return Co(e).getComputedStyle(e)}function Bo(e){return tv(e)?(e.nodeName||"").toLowerCase():""}function ev(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function ro(e){return e instanceof Co(e).HTMLElement}function sr(e){return e instanceof Co(e).Element}function tv(e){return e instanceof Co(e).Node}function vf(e){if(typeof ShadowRoot>"u")return!1;const t=Co(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wl(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=go(e);return/auto|scroll|overlay|hidden/.test(t+n+o)&&!["inline","contents"].includes(r)}function AE(e){return["table","td","th"].includes(Bo(e))}function Xu(e){const t=/firefox/i.test(ev()),o=go(e),n=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||(n?n!=="none":!1)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)||["transform","perspective"].some(r=>o.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const s=o.contain;return s!=null?s.includes(r):!1})}function nv(){return!/^((?!chrome|android).)*safari/i.test(ev())}function Zu(e){return["html","body","#document"].includes(Bo(e))}function ar(e,t,o){var n,r,s,l;t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect();let u=i,c=e,f={x:1,y:1};!sr(e)&&e.contextElement&&(u=e.contextElement.getBoundingClientRect(),c=e.contextElement),t&&ro(c)&&(f=bl(c,u));const d=sr(e)?Co(e):window,h=!nv()&&o,v=(i.left+(h&&(n=(r=d.visualViewport)==null?void 0:r.offsetLeft)!=null?n:0))/f.x,m=(i.top+(h&&(s=(l=d.visualViewport)==null?void 0:l.offsetTop)!=null?s:0))/f.y,g=i.width/f.x,b=i.height/f.y;return{width:g,height:b,top:m,right:v+g,bottom:m+b,left:v,x:v,y:m}}function Ho(e){return((tv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cl(e){return sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ov(e){return ar(Ho(e)).left+Cl(e).scrollLeft}function DE(e){const t=ar(e);return ja(t.width)!==e.offsetWidth||ja(t.height)!==e.offsetHeight}function LE(e,t,o){const n=ro(t),r=Ho(t),s=ar(e,n&&DE(t),o==="fixed");let l={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if(n||!n&&o!=="fixed")if((Bo(t)!=="body"||wl(r))&&(l=Cl(t)),ro(t)){const u=ar(t,!0);i.x=u.x+t.clientLeft,i.y=u.y+t.clientTop}else r&&(i.x=ov(r));return{x:s.left+l.scrollLeft-i.x,y:s.top+l.scrollTop-i.y,width:s.width,height:s.height}}function ks(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||(vf(e)?e.host:null)||Ho(e);return vf(t)?t.host:t}function mf(e){return!ro(e)||go(e).position==="fixed"?null:e.offsetParent}function BE(e){let t=ks(e);for(;ro(t)&&!Zu(t);){if(Xu(t))return t;t=ks(t)}return null}function gf(e){const t=Co(e);let o=mf(e);for(;o&&AE(o)&&go(o).position==="static";)o=mf(o);return o&&(Bo(o)==="html"||Bo(o)==="body"&&go(o).position==="static"&&!Xu(o))?t:o||BE(e)||t}function zE(e){if(ro(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ar(e);return{width:t.width,height:t.height}}function VE(e){let{rect:t,offsetParent:o,strategy:n}=e;const r=ro(o),s=Ho(o);if(o===s)return t;let l={scrollLeft:0,scrollTop:0},i={x:1,y:1};const u={x:0,y:0};if((r||!r&&n!=="fixed")&&((Bo(o)!=="body"||wl(s))&&(l=Cl(o)),ro(o))){const c=ar(o);i=bl(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-l.scrollLeft*i.x+u.x,y:t.y*i.y-l.scrollTop*i.y+u.y}}function FE(e,t){const o=Co(e),n=Ho(e),r=o.visualViewport;let s=n.clientWidth,l=n.clientHeight,i=0,u=0;if(r){s=r.width,l=r.height;const c=nv();(c||!c&&t==="fixed")&&(i=r.offsetLeft,u=r.offsetTop)}return{width:s,height:l,x:i,y:u}}function HE(e){var t;const o=Ho(e),n=Cl(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=ps(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=ps(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let i=-n.scrollLeft+ov(e);const u=-n.scrollTop;return go(r||o).direction==="rtl"&&(i+=ps(o.clientWidth,r?r.clientWidth:0)-s),{width:s,height:l,x:i,y:u}}function rv(e){const t=ks(e);return Zu(t)?e.ownerDocument.body:ro(t)&&wl(t)?t:rv(t)}function sv(e,t){var o;t===void 0&&(t=[]);const n=rv(e),r=n===((o=e.ownerDocument)==null?void 0:o.body),s=Co(n);return r?t.concat(s,s.visualViewport||[],wl(n)?n:[]):t.concat(n,sv(n))}function WE(e,t){const o=ar(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=ro(e)?bl(e):{x:1,y:1},l=e.clientWidth*s.x,i=e.clientHeight*s.y,u=r*s.x,c=n*s.y;return{top:c,left:u,right:u+l,bottom:c+i,x:u,y:c,width:l,height:i}}function yf(e,t,o){return t==="viewport"?pf(FE(e,o)):sr(t)?WE(t,o):pf(HE(Ho(e)))}function KE(e){let t=sv(e).filter(s=>sr(s)&&Bo(s)!=="body"),o=null;const n=go(e).position==="fixed";let r=n?ks(e):e;for(;sr(r)&&!Zu(r);){const s=go(r),l=Xu(r);(n?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position))?t=t.filter(u=>u!==r):o=s,r=ks(r)}return t}function _E(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const l=[...o==="clippingAncestors"?KE(t):[].concat(o),n],i=l[0],u=l.reduce((c,f)=>{const d=yf(t,f,r);return c.top=ps(d.top,c.top),c.right=hf(d.right,c.right),c.bottom=hf(d.bottom,c.bottom),c.left=ps(d.left,c.left),c},yf(t,i,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}const jE={getClippingRect:_E,convertOffsetParentRelativeRectToViewportRelativeRect:VE,isElement:sr,getDimensions:zE,getOffsetParent:gf,getDocumentElement:Ho,getScale:bl,async getElementRects(e){let{reference:t,floating:o,strategy:n}=e;const r=this.getOffsetParent||gf,s=this.getDimensions;return{reference:LE(t,await r(o),n),floating:{x:0,y:0,...await s(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>go(e).direction==="rtl"},YE=(e,t,o)=>$E(e,t,{platform:jE,...o});Re({});const UE=e=>{if(!Dt)return;if(!e)return e;const t=cl(e);return t||(Wn(e)?t:e)},GE=({middleware:e,placement:t,strategy:o})=>{const n=F(),r=F(),s=F(),l=F(),i=F({}),u={x:s,y:l,placement:t,strategy:o,middlewareData:i},c=async()=>{if(!Dt)return;const f=UE(n),d=cl(r);if(!f||!d)return;const h=await YE(f,d,{placement:a(t),strategy:a(o),middleware:a(e)});$u(u).forEach(v=>{u[v].value=h[v]})};return ht(()=>{Xn(()=>{c()})}),{...u,update:c,referenceRef:n,contentRef:r}},qE=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(o){const n=a(e);return n?NE({element:n,padding:t}).fn(o):{}}}),XE=(e,t,o)=>Ou(e.subTree).filter(s=>{var l;return Ln(s)&&((l=s.type)==null?void 0:l.name)===t&&!!s.component}).map(s=>s.component.uid).map(s=>o[s]).filter(s=>!!s),av=(e,t)=>{const o={},n=Kt([]);return{children:n,addChild:l=>{o[l.uid]=l,n.value=XE(e,t,o)},removeChild:l=>{delete o[l],n.value=n.value.filter(i=>i.uid!==l)}}},ZE="2.2.26",JE=(e=[])=>({version:ZE,install:(o,n)=>{o[lf]||(o[lf]=!0,e.forEach(r=>o.use(r)),n&&ow(n,o,!0))}}),QE=Re({zIndex:{type:ce([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),e$={scroll:({scrollTop:e,fixed:t})=>it(e)&&en(t),[Lt]:e=>en(e)},lv="ElAffix",t$=oe({name:lv}),n$=oe({...t$,props:QE,emits:e$,setup(e,{expose:t,emit:o}){const n=e,r=be("affix"),s=Kt(),l=Kt(),i=Kt(),{height:u}=rw(),{height:c,width:f,top:d,bottom:h,update:v}=xd(l,{windowScroll:!1}),m=xd(s),g=F(!1),b=F(0),C=F(0),k=x(()=>({height:g.value?`${c.value}px`:"",width:g.value?`${f.value}px`:""})),w=x(()=>{if(!g.value)return{};const $=n.offset?un(n.offset):0;return{height:`${c.value}px`,width:`${f.value}px`,top:n.position==="top"?$:"",bottom:n.position==="bottom"?$:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:n.zIndex}}),E=()=>{if(!!i.value)if(b.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,n.position==="top")if(n.target){const $=m.bottom.value-n.offset-c.value;g.value=n.offset>d.value&&m.bottom.value>0,C.value=$<0?$:0}else g.value=n.offset>d.value;else if(n.target){const $=u.value-m.top.value-n.offset-c.value;g.value=u.value-n.offsetm.top.value,C.value=$<0?-$:0}else g.value=u.value-n.offset{v(),o("scroll",{scrollTop:b.value,fixed:g.value})};return ke(g,$=>o("change",$)),ht(()=>{var $;n.target?(s.value=($=document.querySelector(n.target))!=null?$:void 0,s.value||nn(lv,`Target is not existed: ${n.target}`)):s.value=document.documentElement,i.value=xu(l.value,!0),v()}),pn(i,"scroll",T),Xn(E),t({update:E,updateRoot:v}),($,A)=>(N(),U("div",{ref_key:"root",ref:l,class:P(a(r).b()),style:je(a(k))},[te("div",{class:P({[a(r).m("fixed")]:g.value}),style:je(a(w))},[ye($.$slots,"default")],6)],6))}});var o$=Ie(n$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const r$=dt(o$),s$=["light","dark"],a$=Re({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:$u(Wa),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:s$,default:"light"}}),l$={close:e=>e instanceof MouseEvent},i$=oe({name:"ElAlert"}),u$=oe({...i$,props:a$,emits:l$,setup(e,{emit:t}){const o=e,{Close:n}=sw,r=gn(),s=be("alert"),l=F(!0),i=x(()=>Wa[o.type]),u=x(()=>[s.e("icon"),{[s.is("big")]:!!o.description||!!r.default}]),c=x(()=>({[s.is("bold")]:o.description||r.default})),f=d=>{l.value=!1,t("close",d)};return(d,h)=>(N(),fe(cn,{name:a(s).b("fade"),persisted:""},{default:se(()=>[lt(te("div",{class:P([a(s).b(),a(s).m(d.type),a(s).is("center",d.center),a(s).is(d.effect)]),role:"alert"},[d.showIcon&&a(i)?(N(),fe(a(_e),{key:0,class:P(a(u))},{default:se(()=>[(N(),fe(St(a(i))))]),_:1},8,["class"])):de("v-if",!0),te("div",{class:P(a(s).e("content"))},[d.title||d.$slots.title?(N(),U("span",{key:0,class:P([a(s).e("title"),a(c)])},[ye(d.$slots,"title",{},()=>[It(Ne(d.title),1)])],2)):de("v-if",!0),d.$slots.default||d.description?(N(),U("p",{key:1,class:P(a(s).e("description"))},[ye(d.$slots,"default",{},()=>[It(Ne(d.description),1)])],2)):de("v-if",!0),d.closable?(N(),U(Qe,{key:2},[d.closeText?(N(),U("div",{key:0,class:P([a(s).e("close-btn"),a(s).is("customed")]),onClick:f},Ne(d.closeText),3)):(N(),fe(a(_e),{key:1,class:P(a(s).e("close-btn")),onClick:f},{default:se(()=>[Z(a(n))]),_:1},8,["class"]))],64)):de("v-if",!0)],2)],2),[[xt,l.value]])]),_:3},8,["name"]))}});var c$=Ie(u$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const d$=dt(c$),Er=4,iv={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"}},f$=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),p$=Re({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),h$="Thumb",v$=oe({__name:"thumb",props:p$,setup(e){const t=e,o=Ue(Yh),n=be("scrollbar");o||nn(h$,"can not inject scrollbar context");const r=F(),s=F(),l=F({}),i=F(!1);let u=!1,c=!1,f=Dt?document.onselectstart:null;const d=x(()=>iv[t.vertical?"vertical":"horizontal"]),h=x(()=>f$({size:t.size,move:t.move,bar:d.value})),v=x(()=>r.value[d.value.offset]**2/o.wrapElement[d.value.scrollSize]/t.ratio/s.value[d.value.offset]),m=$=>{var A;if($.stopPropagation(),$.ctrlKey||[1,2].includes($.button))return;(A=window.getSelection())==null||A.removeAllRanges(),b($);const R=$.currentTarget;!R||(l.value[d.value.axis]=R[d.value.offset]-($[d.value.client]-R.getBoundingClientRect()[d.value.direction]))},g=$=>{if(!s.value||!r.value||!o.wrapElement)return;const A=Math.abs($.target.getBoundingClientRect()[d.value.direction]-$[d.value.client]),R=s.value[d.value.offset]/2,M=(A-R)*100*v.value/r.value[d.value.offset];o.wrapElement[d.value.scroll]=M*o.wrapElement[d.value.scrollSize]/100},b=$=>{$.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),f=document.onselectstart,document.onselectstart=()=>!1},C=$=>{if(!r.value||!s.value||u===!1)return;const A=l.value[d.value.axis];if(!A)return;const R=(r.value.getBoundingClientRect()[d.value.direction]-$[d.value.client])*-1,M=s.value[d.value.offset]-A,I=(R-M)*100*v.value/r.value[d.value.offset];o.wrapElement[d.value.scroll]=I*o.wrapElement[d.value.scrollSize]/100},k=()=>{u=!1,l.value[d.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k),T(),c&&(i.value=!1)},w=()=>{c=!1,i.value=!!t.size},E=()=>{c=!0,i.value=u};sn(()=>{T(),document.removeEventListener("mouseup",k)});const T=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return pn(Jt(o,"scrollbarElement"),"mousemove",w),pn(Jt(o,"scrollbarElement"),"mouseleave",E),($,A)=>(N(),fe(cn,{name:a(n).b("fade"),persisted:""},{default:se(()=>[lt(te("div",{ref_key:"instance",ref:r,class:P([a(n).e("bar"),a(n).is(a(d).key)]),onMousedown:g},[te("div",{ref_key:"thumb",ref:s,class:P(a(n).e("thumb")),style:je(a(h)),onMousedown:m},null,38)],34),[[xt,$.always||i.value]])]),_:1},8,["name"]))}});var bf=Ie(v$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const m$=Re({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),g$=oe({__name:"bar",props:m$,setup(e,{expose:t}){const o=e,n=F(0),r=F(0);return t({handleScroll:l=>{if(l){const i=l.offsetHeight-Er,u=l.offsetWidth-Er;r.value=l.scrollTop*100/i*o.ratioY,n.value=l.scrollLeft*100/u*o.ratioX}}}),(l,i)=>(N(),U(Qe,null,[Z(bf,{move:n.value,ratio:l.ratioX,size:l.width,always:l.always},null,8,["move","ratio","size","always"]),Z(bf,{move:r.value,ratio:l.ratioY,size:l.height,vertical:"",always:l.always},null,8,["move","ratio","size","always"])],64))}});var y$=Ie(g$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const b$=Re({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ce([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}}),w$={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(it)},C$="ElScrollbar",S$=oe({name:C$}),k$=oe({...S$,props:b$,emits:w$,setup(e,{expose:t,emit:o}){const n=e,r=be("scrollbar");let s,l;const i=F(),u=F(),c=F(),f=F("0"),d=F("0"),h=F(),v=F(1),m=F(1),g=x(()=>{const A={};return n.height&&(A.height=un(n.height)),n.maxHeight&&(A.maxHeight=un(n.maxHeight)),[n.wrapStyle,A]}),b=x(()=>[n.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!n.native}]),C=x(()=>[r.e("view"),n.viewClass]),k=()=>{var A;u.value&&((A=h.value)==null||A.handleScroll(u.value),o("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function w(A,R){qt(A)?u.value.scrollTo(A):it(A)&&it(R)&&u.value.scrollTo(A,R)}const E=A=>{!it(A)||(u.value.scrollTop=A)},T=A=>{!it(A)||(u.value.scrollLeft=A)},$=()=>{if(!u.value)return;const A=u.value.offsetHeight-Er,R=u.value.offsetWidth-Er,M=A**2/u.value.scrollHeight,I=R**2/u.value.scrollWidth,_=Math.max(M,n.minSize),L=Math.max(I,n.minSize);v.value=M/(A-M)/(_/(A-_)),m.value=I/(R-I)/(L/(R-L)),d.value=_+Ern.noresize,A=>{A?(s==null||s(),l==null||l()):({stop:s}=Bn(c,$),l=pn("resize",$))},{immediate:!0}),ke(()=>[n.maxHeight,n.height],()=>{n.native||Ge(()=>{var A;$(),u.value&&((A=h.value)==null||A.handleScroll(u.value))})}),gt(Yh,Rt({scrollbarElement:i,wrapElement:u})),ht(()=>{n.native||Ge(()=>{$()})}),ur(()=>$()),t({wrapRef:u,update:$,scrollTo:w,setScrollTop:E,setScrollLeft:T,handleScroll:k}),(A,R)=>(N(),U("div",{ref_key:"scrollbarRef",ref:i,class:P(a(r).b())},[te("div",{ref_key:"wrapRef",ref:u,class:P(a(b)),style:je(a(g)),onScroll:k},[(N(),fe(St(A.tag),{ref_key:"resizeRef",ref:c,class:P(a(C)),style:je(A.viewStyle)},{default:se(()=>[ye(A.$slots,"default")]),_:3},8,["class","style"]))],38),A.native?de("v-if",!0):(N(),fe(y$,{key:0,ref_key:"barRef",ref:h,height:d.value,width:f.value,always:A.always,"ratio-x":m.value,"ratio-y":v.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var E$=Ie(k$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const So=dt(E$),$$=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],uv=Re({role:{type:String,values:$$,default:"tooltip"}}),T$=oe({name:"ElPopperRoot",inheritAttrs:!1}),O$=oe({...T$,props:uv,setup(e,{expose:t}){const o=e,n=F(),r=F(),s=F(),l=F(),i=x(()=>o.role),u={triggerRef:n,popperInstanceRef:r,contentRef:s,referenceRef:l,role:i};return t(u),gt(ju,u),(c,f)=>ye(c.$slots,"default")}});var x$=Ie(O$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const cv=Re({arrowOffset:{type:Number,default:5}}),I$=oe({name:"ElPopperArrow",inheritAttrs:!1}),M$=oe({...I$,props:cv,setup(e,{expose:t}){const o=e,n=be("popper"),{arrowOffset:r,arrowRef:s}=Ue(qh,void 0);return ke(()=>o.arrowOffset,l=>{r.value=l}),sn(()=>{s.value=void 0}),t({arrowRef:s}),(l,i)=>(N(),U("span",{ref_key:"arrowRef",ref:s,class:P(a(n).e("arrow")),"data-popper-arrow":""},null,2))}});var N$=Ie(M$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const P$="ElOnlyChild",dv=oe({name:P$,setup(e,{slots:t,attrs:o}){var n;const r=Ue(Jh),s=EE((n=r==null?void 0:r.setForwardRef)!=null?n:Qt);return()=>{var l;const i=(l=t.default)==null?void 0:l.call(t,o);if(!i||i.length>1)return null;const u=fv(i);return u?lt(i0(u,o),[[s]]):null}}});function fv(e){if(!e)return null;const t=e;for(const o of t){if(qt(o))switch(o.type){case Kp:continue;case u0:case"svg":return wf(o);case Qe:return fv(o.children);default:return o}return wf(o)}return null}function wf(e){const t=be("only-child");return Z("span",{class:t.e("content")},[e])}const pv=Re({virtualRef:{type:ce(Object)},virtualTriggering:Boolean,onMouseenter:{type:ce(Function)},onMouseleave:{type:ce(Function)},onClick:{type:ce(Function)},onKeydown:{type:ce(Function)},onFocus:{type:ce(Function)},onBlur:{type:ce(Function)},onContextmenu:{type:ce(Function)},id:String,open:Boolean}),R$=oe({name:"ElPopperTrigger",inheritAttrs:!1}),A$=oe({...R$,props:pv,setup(e,{expose:t}){const o=e,{role:n,triggerRef:r}=Ue(ju,void 0);kE(r);const s=x(()=>i.value?o.id:void 0),l=x(()=>{if(n&&n.value==="tooltip")return o.open&&o.id?o.id:void 0}),i=x(()=>{if(n&&n.value!=="tooltip")return n.value}),u=x(()=>i.value?`${o.open}`:void 0);let c;return ht(()=>{ke(()=>o.virtualRef,f=>{f&&(r.value=cl(f))},{immediate:!0}),ke(r,(f,d)=>{c==null||c(),c=void 0,Ro(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var v;const m=o[h];m&&(f.addEventListener(h.slice(2).toLowerCase(),m),(v=d==null?void 0:d.removeEventListener)==null||v.call(d,h.slice(2).toLowerCase(),m))}),c=ke([s,l,i,u],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{Cn(h[m])?f.removeAttribute(v):f.setAttribute(v,h[m])})},{immediate:!0})),Ro(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>d.removeAttribute(h))},{immediate:!0})}),sn(()=>{c==null||c(),c=void 0}),t({triggerRef:r}),(f,d)=>f.virtualTriggering?de("v-if",!0):(N(),fe(a(dv),mt({key:0},f.$attrs,{"aria-controls":a(s),"aria-describedby":a(l),"aria-expanded":a(u),"aria-haspopup":a(i)}),{default:se(()=>[ye(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var D$=Ie(A$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Tn="top",jn="bottom",Yn="right",On="left",Ju="auto",_s=[Tn,jn,Yn,On],Fr="start",Es="end",L$="clippingParents",hv="viewport",rs="popper",B$="reference",Cf=_s.reduce(function(e,t){return e.concat([t+"-"+Fr,t+"-"+Es])},[]),pr=[].concat(_s,[Ju]).reduce(function(e,t){return e.concat([t,t+"-"+Fr,t+"-"+Es])},[]),z$="beforeRead",V$="read",F$="afterRead",H$="beforeMain",W$="main",K$="afterMain",_$="beforeWrite",j$="write",Y$="afterWrite",U$=[z$,V$,F$,H$,W$,K$,_$,j$,Y$];function so(e){return e?(e.nodeName||"").toLowerCase():null}function Qn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=Qn(e).Element;return e instanceof t||e instanceof Element}function Kn(e){var t=Qn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qu(e){if(typeof ShadowRoot>"u")return!1;var t=Qn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function G$(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var n=t.styles[o]||{},r=t.attributes[o]||{},s=t.elements[o];!Kn(s)||!so(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(l){var i=r[l];i===!1?s.removeAttribute(l):s.setAttribute(l,i===!0?"":i)}))})}function q$(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],s=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:o[n]),i=l.reduce(function(u,c){return u[c]="",u},{});!Kn(r)||!so(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}var vv={name:"applyStyles",enabled:!0,phase:"write",fn:G$,effect:q$,requires:["computeStyles"]};function no(e){return e.split("-")[0]}var nr=Math.max,Ya=Math.min,Wr=Math.round;function Kr(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(Kn(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(n=Wr(o.width)/l||1),s>0&&(r=Wr(o.height)/s||1)}return{width:o.width/n,height:o.height/r,top:o.top/r,right:o.right/n,bottom:o.bottom/r,left:o.left/n,x:o.left/n,y:o.top/r}}function ec(e){var t=Kr(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function mv(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Qu(o)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yo(e){return Qn(e).getComputedStyle(e)}function X$(e){return["table","td","th"].indexOf(so(e))>=0}function Wo(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sl(e){return so(e)==="html"?e:e.assignedSlot||e.parentNode||(Qu(e)?e.host:null)||Wo(e)}function Sf(e){return!Kn(e)||yo(e).position==="fixed"?null:e.offsetParent}function Z$(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Kn(e)){var n=yo(e);if(n.position==="fixed")return null}var r=Sl(e);for(Qu(r)&&(r=r.host);Kn(r)&&["html","body"].indexOf(so(r))<0;){var s=yo(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function js(e){for(var t=Qn(e),o=Sf(e);o&&X$(o)&&yo(o).position==="static";)o=Sf(o);return o&&(so(o)==="html"||so(o)==="body"&&yo(o).position==="static")?t:o||Z$(e)||t}function tc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hs(e,t,o){return nr(e,Ya(t,o))}function J$(e,t,o){var n=hs(e,t,o);return n>o?o:n}function gv(){return{top:0,right:0,bottom:0,left:0}}function yv(e){return Object.assign({},gv(),e)}function bv(e,t){return t.reduce(function(o,n){return o[n]=e,o},{})}var Q$=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,yv(typeof e!="number"?e:bv(e,_s))};function eT(e){var t,o=e.state,n=e.name,r=e.options,s=o.elements.arrow,l=o.modifiersData.popperOffsets,i=no(o.placement),u=tc(i),c=[On,Yn].indexOf(i)>=0,f=c?"height":"width";if(!(!s||!l)){var d=Q$(r.padding,o),h=ec(s),v=u==="y"?Tn:On,m=u==="y"?jn:Yn,g=o.rects.reference[f]+o.rects.reference[u]-l[u]-o.rects.popper[f],b=l[u]-o.rects.reference[u],C=js(s),k=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,w=g/2-b/2,E=d[v],T=k-h[f]-d[m],$=k/2-h[f]/2+w,A=hs(E,$,T),R=u;o.modifiersData[n]=(t={},t[R]=A,t.centerOffset=A-$,t)}}function tT(e){var t=e.state,o=e.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!mv(t.elements.popper,r)||(t.elements.arrow=r))}var nT={name:"arrow",enabled:!0,phase:"main",fn:eT,effect:tT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _r(e){return e.split("-")[1]}var oT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rT(e){var t=e.x,o=e.y,n=window,r=n.devicePixelRatio||1;return{x:Wr(t*r)/r||0,y:Wr(o*r)/r||0}}function kf(e){var t,o=e.popper,n=e.popperRect,r=e.placement,s=e.variation,l=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,h=l.x,v=h===void 0?0:h,m=l.y,g=m===void 0?0:m,b=typeof f=="function"?f({x:v,y:g}):{x:v,y:g};v=b.x,g=b.y;var C=l.hasOwnProperty("x"),k=l.hasOwnProperty("y"),w=On,E=Tn,T=window;if(c){var $=js(o),A="clientHeight",R="clientWidth";if($===Qn(o)&&($=Wo(o),yo($).position!=="static"&&i==="absolute"&&(A="scrollHeight",R="scrollWidth")),$=$,r===Tn||(r===On||r===Yn)&&s===Es){E=jn;var M=d&&$===T&&T.visualViewport?T.visualViewport.height:$[A];g-=M-n.height,g*=u?1:-1}if(r===On||(r===Tn||r===jn)&&s===Es){w=Yn;var I=d&&$===T&&T.visualViewport?T.visualViewport.width:$[R];v-=I-n.width,v*=u?1:-1}}var _=Object.assign({position:i},c&&oT),L=f===!0?rT({x:v,y:g}):{x:v,y:g};if(v=L.x,g=L.y,u){var z;return Object.assign({},_,(z={},z[E]=k?"0":"",z[w]=C?"0":"",z.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",z))}return Object.assign({},_,(t={},t[E]=k?g+"px":"",t[w]=C?v+"px":"",t.transform="",t))}function sT(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=n===void 0?!0:n,s=o.adaptive,l=s===void 0?!0:s,i=o.roundOffsets,u=i===void 0?!0:i,c={placement:no(t.placement),variation:_r(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kf(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kf(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var wv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sT,data:{}},ia={passive:!0};function aT(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,s=r===void 0?!0:r,l=n.resize,i=l===void 0?!0:l,u=Qn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",o.update,ia)}),i&&u.addEventListener("resize",o.update,ia),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",o.update,ia)}),i&&u.removeEventListener("resize",o.update,ia)}}var Cv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aT,data:{}},lT={left:"right",right:"left",bottom:"top",top:"bottom"};function ba(e){return e.replace(/left|right|bottom|top/g,function(t){return lT[t]})}var iT={start:"end",end:"start"};function Ef(e){return e.replace(/start|end/g,function(t){return iT[t]})}function nc(e){var t=Qn(e),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}function oc(e){return Kr(Wo(e)).left+nc(e).scrollLeft}function uT(e){var t=Qn(e),o=Wo(e),n=t.visualViewport,r=o.clientWidth,s=o.clientHeight,l=0,i=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=n.offsetLeft,i=n.offsetTop)),{width:r,height:s,x:l+oc(e),y:i}}function cT(e){var t,o=Wo(e),n=nc(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=nr(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=nr(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-n.scrollLeft+oc(e),u=-n.scrollTop;return yo(r||o).direction==="rtl"&&(i+=nr(o.clientWidth,r?r.clientWidth:0)-s),{width:s,height:l,x:i,y:u}}function rc(e){var t=yo(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function Sv(e){return["html","body","#document"].indexOf(so(e))>=0?e.ownerDocument.body:Kn(e)&&rc(e)?e:Sv(Sl(e))}function vs(e,t){var o;t===void 0&&(t=[]);var n=Sv(e),r=n===((o=e.ownerDocument)==null?void 0:o.body),s=Qn(n),l=r?[s].concat(s.visualViewport||[],rc(n)?n:[]):n,i=t.concat(l);return r?i:i.concat(vs(Sl(l)))}function Pi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dT(e){var t=Kr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function $f(e,t){return t===hv?Pi(uT(e)):Hr(t)?dT(t):Pi(cT(Wo(e)))}function fT(e){var t=vs(Sl(e)),o=["absolute","fixed"].indexOf(yo(e).position)>=0,n=o&&Kn(e)?js(e):e;return Hr(n)?t.filter(function(r){return Hr(r)&&mv(r,n)&&so(r)!=="body"}):[]}function pT(e,t,o){var n=t==="clippingParents"?fT(e):[].concat(t),r=[].concat(n,[o]),s=r[0],l=r.reduce(function(i,u){var c=$f(e,u);return i.top=nr(c.top,i.top),i.right=Ya(c.right,i.right),i.bottom=Ya(c.bottom,i.bottom),i.left=nr(c.left,i.left),i},$f(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function kv(e){var t=e.reference,o=e.element,n=e.placement,r=n?no(n):null,s=n?_r(n):null,l=t.x+t.width/2-o.width/2,i=t.y+t.height/2-o.height/2,u;switch(r){case Tn:u={x:l,y:t.y-o.height};break;case jn:u={x:l,y:t.y+t.height};break;case Yn:u={x:t.x+t.width,y:i};break;case On:u={x:t.x-o.width,y:i};break;default:u={x:t.x,y:t.y}}var c=r?tc(r):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case Fr:u[c]=u[c]-(t[f]/2-o[f]/2);break;case Es:u[c]=u[c]+(t[f]/2-o[f]/2);break}}return u}function $s(e,t){t===void 0&&(t={});var o=t,n=o.placement,r=n===void 0?e.placement:n,s=o.boundary,l=s===void 0?L$:s,i=o.rootBoundary,u=i===void 0?hv:i,c=o.elementContext,f=c===void 0?rs:c,d=o.altBoundary,h=d===void 0?!1:d,v=o.padding,m=v===void 0?0:v,g=yv(typeof m!="number"?m:bv(m,_s)),b=f===rs?B$:rs,C=e.rects.popper,k=e.elements[h?b:f],w=pT(Hr(k)?k:k.contextElement||Wo(e.elements.popper),l,u),E=Kr(e.elements.reference),T=kv({reference:E,element:C,strategy:"absolute",placement:r}),$=Pi(Object.assign({},C,T)),A=f===rs?$:E,R={top:w.top-A.top+g.top,bottom:A.bottom-w.bottom+g.bottom,left:w.left-A.left+g.left,right:A.right-w.right+g.right},M=e.modifiersData.offset;if(f===rs&&M){var I=M[r];Object.keys(R).forEach(function(_){var L=[Yn,jn].indexOf(_)>=0?1:-1,z=[Tn,jn].indexOf(_)>=0?"y":"x";R[_]+=I[z]*L})}return R}function hT(e,t){t===void 0&&(t={});var o=t,n=o.placement,r=o.boundary,s=o.rootBoundary,l=o.padding,i=o.flipVariations,u=o.allowedAutoPlacements,c=u===void 0?pr:u,f=_r(n),d=f?i?Cf:Cf.filter(function(m){return _r(m)===f}):_s,h=d.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=d);var v=h.reduce(function(m,g){return m[g]=$s(e,{placement:g,boundary:r,rootBoundary:s,padding:l})[no(g)],m},{});return Object.keys(v).sort(function(m,g){return v[m]-v[g]})}function vT(e){if(no(e)===Ju)return[];var t=ba(e);return[Ef(e),t,Ef(t)]}function mT(e){var t=e.state,o=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,s=r===void 0?!0:r,l=o.altAxis,i=l===void 0?!0:l,u=o.fallbackPlacements,c=o.padding,f=o.boundary,d=o.rootBoundary,h=o.altBoundary,v=o.flipVariations,m=v===void 0?!0:v,g=o.allowedAutoPlacements,b=t.options.placement,C=no(b),k=C===b,w=u||(k||!m?[ba(b)]:vT(b)),E=[b].concat(w).reduce(function(ve,me){return ve.concat(no(me)===Ju?hT(t,{placement:me,boundary:f,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):me)},[]),T=t.rects.reference,$=t.rects.popper,A=new Map,R=!0,M=E[0],I=0;I=0,W=H?"width":"height",j=$s(t,{placement:_,boundary:f,rootBoundary:d,altBoundary:h,padding:c}),D=H?z?Yn:On:z?jn:Tn;T[W]>$[W]&&(D=ba(D));var V=ba(D),B=[];if(s&&B.push(j[L]<=0),i&&B.push(j[D]<=0,j[V]<=0),B.every(function(ve){return ve})){M=_,R=!1;break}A.set(_,B)}if(R)for(var X=m?3:1,Q=function(ve){var me=E.find(function(Ce){var le=A.get(Ce);if(le)return le.slice(0,ve).every(function(re){return re})});if(me)return M=me,"break"},q=X;q>0;q--){var ee=Q(q);if(ee==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}var gT={name:"flip",enabled:!0,phase:"main",fn:mT,requiresIfExists:["offset"],data:{_skip:!1}};function Tf(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Of(e){return[Tn,Yn,jn,On].some(function(t){return e[t]>=0})}function yT(e){var t=e.state,o=e.name,n=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,l=$s(t,{elementContext:"reference"}),i=$s(t,{altBoundary:!0}),u=Tf(l,n),c=Tf(i,r,s),f=Of(u),d=Of(c);t.modifiersData[o]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var bT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yT};function wT(e,t,o){var n=no(e),r=[On,Tn].indexOf(n)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,l=s[0],i=s[1];return l=l||0,i=(i||0)*r,[On,Yn].indexOf(n)>=0?{x:i,y:l}:{x:l,y:i}}function CT(e){var t=e.state,o=e.options,n=e.name,r=o.offset,s=r===void 0?[0,0]:r,l=pr.reduce(function(f,d){return f[d]=wT(d,t.rects,s),f},{}),i=l[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=l}var ST={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CT};function kT(e){var t=e.state,o=e.name;t.modifiersData[o]=kv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Ev={name:"popperOffsets",enabled:!0,phase:"read",fn:kT,data:{}};function ET(e){return e==="x"?"y":"x"}function $T(e){var t=e.state,o=e.options,n=e.name,r=o.mainAxis,s=r===void 0?!0:r,l=o.altAxis,i=l===void 0?!1:l,u=o.boundary,c=o.rootBoundary,f=o.altBoundary,d=o.padding,h=o.tether,v=h===void 0?!0:h,m=o.tetherOffset,g=m===void 0?0:m,b=$s(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),C=no(t.placement),k=_r(t.placement),w=!k,E=tc(C),T=ET(E),$=t.modifiersData.popperOffsets,A=t.rects.reference,R=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if($){if(s){var z,H=E==="y"?Tn:On,W=E==="y"?jn:Yn,j=E==="y"?"height":"width",D=$[E],V=D+b[H],B=D-b[W],X=v?-R[j]/2:0,Q=k===Fr?A[j]:R[j],q=k===Fr?-R[j]:-A[j],ee=t.elements.arrow,ve=v&&ee?ec(ee):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gv(),Ce=me[H],le=me[W],re=hs(0,A[j],ve[j]),ie=w?A[j]/2-X-re-Ce-I.mainAxis:Q-re-Ce-I.mainAxis,pe=w?-A[j]/2+X+re+le+I.mainAxis:q+re+le+I.mainAxis,Ae=t.elements.arrow&&js(t.elements.arrow),Le=Ae?E==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,Xe=(z=_==null?void 0:_[E])!=null?z:0,xe=D+ie-Xe-Le,He=D+pe-Xe,ot=hs(v?Ya(V,xe):V,D,v?nr(B,He):B);$[E]=ot,L[E]=ot-D}if(i){var Pe,qe=E==="x"?Tn:On,ze=E==="x"?jn:Yn,Se=$[T],Oe=T==="y"?"height":"width",De=Se+b[qe],Je=Se-b[ze],rt=[Tn,On].indexOf(C)!==-1,st=(Pe=_==null?void 0:_[T])!=null?Pe:0,Ee=rt?De:Se-A[Oe]-R[Oe]-st+I.altAxis,vt=rt?Se+A[Oe]+R[Oe]-st-I.altAxis:Je,pt=v&&rt?J$(Ee,Se,vt):hs(v?Ee:De,Se,v?vt:Je);$[T]=pt,L[T]=pt-Se}t.modifiersData[n]=L}}var TT={name:"preventOverflow",enabled:!0,phase:"main",fn:$T,requiresIfExists:["offset"]};function OT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xT(e){return e===Qn(e)||!Kn(e)?nc(e):OT(e)}function IT(e){var t=e.getBoundingClientRect(),o=Wr(t.width)/e.offsetWidth||1,n=Wr(t.height)/e.offsetHeight||1;return o!==1||n!==1}function MT(e,t,o){o===void 0&&(o=!1);var n=Kn(t),r=Kn(t)&&IT(t),s=Wo(t),l=Kr(e,r),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!o)&&((so(t)!=="body"||rc(s))&&(i=xT(t)),Kn(t)?(u=Kr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=oc(s))),{x:l.left+i.scrollLeft-u.x,y:l.top+i.scrollTop-u.y,width:l.width,height:l.height}}function NT(e){var t=new Map,o=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function r(s){o.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(i){if(!o.has(i)){var u=t.get(i);u&&r(u)}}),n.push(s)}return e.forEach(function(s){o.has(s.name)||r(s)}),n}function PT(e){var t=NT(e);return U$.reduce(function(o,n){return o.concat(t.filter(function(r){return r.phase===n}))},[])}function RT(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function AT(e){var t=e.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(t).map(function(o){return t[o]})}var xf={placement:"bottom",modifiers:[],strategy:"absolute"};function If(){for(var e=arguments.length,t=new Array(e),o=0;o({})},strategy:{type:String,values:BT,default:"absolute"}}),Tv=Re({...zT,id:String,style:{type:ce([String,Array,Object])},className:{type:ce([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:ce([String,Array,Object])},popperStyle:{type:ce([String,Array,Object])},referenceEl:{type:ce(Object)},triggerTargetEl:{type:ce(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),VT={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Mf=(e,t)=>{const{placement:o,strategy:n,popperOptions:r}=e,s={placement:o,strategy:n,...r,modifiers:HT(e)};return WT(s,t),KT(s,r==null?void 0:r.modifiers),s},FT=e=>{if(!!Dt)return cl(e)};function HT(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function WT(e,{arrowEl:t,arrowOffset:o}){e.modifiers.push({name:"arrow",options:{element:t,padding:o??5}})}function KT(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const _T=oe({name:"ElPopperContent"}),jT=oe({..._T,props:Tv,emits:VT,setup(e,{expose:t,emit:o}){const n=e,{popperInstanceRef:r,contentRef:s,triggerRef:l,role:i}=Ue(ju,void 0),u=Ue(Ao,void 0),{nextZIndex:c}=cr(),f=be("popper"),d=F(),h=F("first"),v=F(),m=F();gt(qh,{arrowRef:v,arrowOffset:m}),u&&(u.addInputId||u.removeInputId)&>(Ao,{...u,addInputId:Qt,removeInputId:Qt});const g=F(n.zIndex||c()),b=F(!1);let C;const k=x(()=>FT(n.referenceEl)||a(l)),w=x(()=>[{zIndex:a(g)},n.popperStyle]),E=x(()=>[f.b(),f.is("pure",n.pure),f.is(n.effect),n.popperClass]),T=x(()=>i&&i.value==="dialog"?"false":void 0),$=({referenceEl:H,popperContentEl:W,arrowEl:j})=>{const D=Mf(n,{arrowEl:j,arrowOffset:a(m)});return $v(H,W,D)},A=(H=!0)=>{var W;(W=a(r))==null||W.update(),H&&(g.value=n.zIndex||c())},R=()=>{var H,W;const j={name:"eventListeners",enabled:n.visible};(W=(H=a(r))==null?void 0:H.setOptions)==null||W.call(H,D=>({...D,modifiers:[...D.modifiers||[],j]})),A(!1),n.visible&&n.focusOnShow?b.value=!0:n.visible===!1&&(b.value=!1)},M=()=>{o("focus")},I=H=>{var W;((W=H.detail)==null?void 0:W.focusReason)!=="pointer"&&(h.value="first",o("blur"))},_=H=>{n.visible&&!b.value&&(H.target&&(h.value=H.target),b.value=!0)},L=H=>{n.trapping||(H.detail.focusReason==="pointer"&&H.preventDefault(),b.value=!1)},z=()=>{b.value=!1,o("close")};return ht(()=>{let H;ke(k,W=>{var j;H==null||H();const D=a(r);if((j=D==null?void 0:D.destroy)==null||j.call(D),W){const V=a(d);s.value=V,r.value=$({referenceEl:W,popperContentEl:V,arrowEl:a(v)}),H=ke(()=>W.getBoundingClientRect(),()=>A(),{immediate:!0})}else r.value=void 0},{immediate:!0}),ke(()=>n.triggerTargetEl,(W,j)=>{C==null||C(),C=void 0;const D=a(W||d.value),V=a(j||d.value);Ro(D)&&(C=ke([i,()=>n.ariaLabel,T,()=>n.id],B=>{["role","aria-label","aria-modal","id"].forEach((X,Q)=>{Cn(B[Q])?D.removeAttribute(X):D.setAttribute(X,B[Q])})},{immediate:!0})),V!==D&&Ro(V)&&["role","aria-label","aria-modal","id"].forEach(B=>{V.removeAttribute(B)})},{immediate:!0}),ke(()=>n.visible,R,{immediate:!0}),ke(()=>Mf(n,{arrowEl:a(v),arrowOffset:a(m)}),W=>{var j;return(j=r.value)==null?void 0:j.setOptions(W)})}),sn(()=>{C==null||C(),C=void 0}),t({popperContentRef:d,popperInstanceRef:r,updatePopper:A,contentStyle:w}),(H,W)=>(N(),U("div",{ref_key:"popperContentRef",ref:d,style:je(a(w)),class:P(a(E)),tabindex:"-1",onMouseenter:W[0]||(W[0]=j=>H.$emit("mouseenter",j)),onMouseleave:W[1]||(W[1]=j=>H.$emit("mouseleave",j))},[Z(a(Iu),{trapped:b.value,"trap-on-focus-in":!0,"focus-trap-el":d.value,"focus-start-el":h.value,onFocusAfterTrapped:M,onFocusAfterReleased:I,onFocusin:_,onFocusoutPrevented:L,onReleaseRequested:z},{default:se(()=>[ye(H.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var YT=Ie(jT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Ov=dt(x$),UT=be("tooltip"),ln=Re({...CE,...Tv,appendTo:{type:ce([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ce(Boolean),default:null},transition:{type:String,default:`${UT.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Ts=Re({...pv,disabled:Boolean,trigger:{type:ce([String,Array]),default:"hover"},triggerKeys:{type:ce(Array),default:()=>[Ye.enter,Ye.space]}}),{useModelToggleProps:GT,useModelToggleEmits:qT,useModelToggle:XT}=mE("visible"),ZT=Re({...uv,...GT,...ln,...Ts,...cv,showArrow:{type:Boolean,default:!0}}),JT=[...qT,"before-show","before-hide","show","hide","open","close"],QT=(e,t)=>ft(e)?e.includes(t):e===t,gr=(e,t,o)=>n=>{QT(a(e),t)&&o(n)},eO=oe({name:"ElTooltipTrigger"}),tO=oe({...eO,props:Ts,setup(e,{expose:t}){const o=e,n=be("tooltip"),{controlled:r,id:s,open:l,onOpen:i,onClose:u,onToggle:c}=Ue(gl,void 0),f=F(null),d=()=>{if(a(r)||o.disabled)return!0},h=Jt(o,"trigger"),v=Wt(d,gr(h,"hover",i)),m=Wt(d,gr(h,"hover",u)),g=Wt(d,gr(h,"click",E=>{E.button===0&&c(E)})),b=Wt(d,gr(h,"focus",i)),C=Wt(d,gr(h,"focus",u)),k=Wt(d,gr(h,"contextmenu",E=>{E.preventDefault(),c(E)})),w=Wt(d,E=>{const{code:T}=E;o.triggerKeys.includes(T)&&(E.preventDefault(),c(E))});return t({triggerRef:f}),(E,T)=>(N(),fe(a(D$),{id:a(s),"virtual-ref":E.virtualRef,open:a(l),"virtual-triggering":E.virtualTriggering,class:P(a(n).e("trigger")),onBlur:a(C),onClick:a(g),onContextmenu:a(k),onFocus:a(b),onMouseenter:a(v),onMouseleave:a(m),onKeydown:a(w)},{default:se(()=>[ye(E.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var nO=Ie(tO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const oO=oe({name:"ElTooltipContent",inheritAttrs:!1}),rO=oe({...oO,props:ln,setup(e,{expose:t}){const o=e,{selector:n}=Zh(),r=F(null),s=F(!1),{controlled:l,id:i,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:m,onBeforeHide:g}=Ue(gl,void 0),b=x(()=>o.persistent);sn(()=>{s.value=!0});const C=x(()=>a(b)?!0:a(u)),k=x(()=>o.disabled?!1:a(u)),w=x(()=>o.appendTo||n.value),E=x(()=>{var W;return(W=o.style)!=null?W:{}}),T=x(()=>!a(u)),$=()=>{v()},A=()=>{if(a(l))return!0},R=Wt(A,()=>{o.enterable&&a(c)==="hover"&&d()}),M=Wt(A,()=>{a(c)==="hover"&&f()}),I=()=>{var W,j;(j=(W=r.value)==null?void 0:W.updatePopper)==null||j.call(W),m==null||m()},_=()=>{g==null||g()},L=()=>{h(),H=Tu(x(()=>{var W;return(W=r.value)==null?void 0:W.popperContentRef}),()=>{if(a(l))return;a(c)!=="hover"&&f()})},z=()=>{o.virtualTriggering||f()};let H;return ke(()=>a(u),W=>{W||H==null||H()},{flush:"post"}),ke(()=>o.content,()=>{var W,j;(j=(W=r.value)==null?void 0:W.updatePopper)==null||j.call(W)}),t({contentRef:r}),(W,j)=>(N(),fe(Bs,{disabled:!W.teleported,to:a(w)},[Z(cn,{name:W.transition,onAfterLeave:$,onBeforeEnter:I,onAfterEnter:L,onBeforeLeave:_},{default:se(()=>[a(C)?lt((N(),fe(a(YT),mt({key:0,id:a(i),ref_key:"contentRef",ref:r},W.$attrs,{"aria-label":W.ariaLabel,"aria-hidden":a(T),"boundaries-padding":W.boundariesPadding,"fallback-placements":W.fallbackPlacements,"gpu-acceleration":W.gpuAcceleration,offset:W.offset,placement:W.placement,"popper-options":W.popperOptions,strategy:W.strategy,effect:W.effect,enterable:W.enterable,pure:W.pure,"popper-class":W.popperClass,"popper-style":[W.popperStyle,a(E)],"reference-el":W.referenceEl,"trigger-target-el":W.triggerTargetEl,visible:a(k),"z-index":W.zIndex,onMouseenter:a(R),onMouseleave:a(M),onBlur:z,onClose:a(f)}),{default:se(()=>[s.value?de("v-if",!0):ye(W.$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"])),[[xt,a(k)]]):de("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var sO=Ie(rO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const aO=["innerHTML"],lO={key:1},iO=oe({name:"ElTooltip"}),uO=oe({...iO,props:ZT,emits:JT,setup(e,{expose:t,emit:o}){const n=e;wE();const r=Do(),s=F(),l=F(),i=()=>{var C;const k=a(s);k&&((C=k.popperInstanceRef)==null||C.update())},u=F(!1),c=F(),{show:f,hide:d,hasUpdateHandler:h}=XT({indicator:u,toggleReason:c}),{onOpen:v,onClose:m}=SE({showAfter:Jt(n,"showAfter"),hideAfter:Jt(n,"hideAfter"),open:f,close:d}),g=x(()=>en(n.visible)&&!h.value);gt(gl,{controlled:g,id:r,open:_p(u),trigger:Jt(n,"trigger"),onOpen:C=>{v(C)},onClose:C=>{m(C)},onToggle:C=>{a(u)?m(C):v(C)},onShow:()=>{o("show",c.value)},onHide:()=>{o("hide",c.value)},onBeforeShow:()=>{o("before-show",c.value)},onBeforeHide:()=>{o("before-hide",c.value)},updatePopper:i}),ke(()=>n.disabled,C=>{C&&u.value&&(u.value=!1)});const b=()=>{var C,k;const w=(k=(C=l.value)==null?void 0:C.contentRef)==null?void 0:k.popperContentRef;return w&&w.contains(document.activeElement)};return c0(()=>u.value&&d()),t({popperRef:s,contentRef:l,isFocusInsideContent:b,updatePopper:i,onOpen:v,onClose:m,hide:d}),(C,k)=>(N(),fe(a(Ov),{ref_key:"popperRef",ref:s,role:C.role},{default:se(()=>[Z(nO,{disabled:C.disabled,trigger:C.trigger,"trigger-keys":C.triggerKeys,"virtual-ref":C.virtualRef,"virtual-triggering":C.virtualTriggering},{default:se(()=>[C.$slots.default?ye(C.$slots,"default",{key:0}):de("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Z(sO,{ref_key:"contentRef",ref:l,"aria-label":C.ariaLabel,"boundaries-padding":C.boundariesPadding,content:C.content,disabled:C.disabled,effect:C.effect,enterable:C.enterable,"fallback-placements":C.fallbackPlacements,"hide-after":C.hideAfter,"gpu-acceleration":C.gpuAcceleration,offset:C.offset,persistent:C.persistent,"popper-class":C.popperClass,"popper-style":C.popperStyle,placement:C.placement,"popper-options":C.popperOptions,pure:C.pure,"raw-content":C.rawContent,"reference-el":C.referenceEl,"trigger-target-el":C.triggerTargetEl,"show-after":C.showAfter,strategy:C.strategy,teleported:C.teleported,transition:C.transition,"virtual-triggering":C.virtualTriggering,"z-index":C.zIndex,"append-to":C.appendTo},{default:se(()=>[ye(C.$slots,"content",{},()=>[C.rawContent?(N(),U("span",{key:0,innerHTML:C.content},null,8,aO)):(N(),U("span",lO,Ne(C.content),1))]),C.showArrow?(N(),fe(a(N$),{key:0,"arrow-offset":C.arrowOffset},null,8,["arrow-offset"])):de("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 cO=Ie(uO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const xn=dt(cO),dO=Re({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ce(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ce([Function,Array]),default:Qt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:ln.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1}}),fO={[ut]:e=>kt(e),[Sn]:e=>kt(e),[Lt]:e=>kt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>qt(e)},pO=["aria-expanded","aria-owns"],hO={key:0},vO=["id","aria-selected","onClick"],xv="ElAutocomplete",mO=oe({name:xv,inheritAttrs:!1}),gO=oe({...mO,props:dO,emits:fO,setup(e,{expose:t,emit:o}){const n=e,r=uh(),s=al(),l=Jn(),i=be("autocomplete"),u=F(),c=F(),f=F(),d=F();let h=!1,v=!1;const m=F([]),g=F(-1),b=F(""),C=F(!1),k=F(!1),w=F(!1),E=x(()=>i.b(String(vl()))),T=x(()=>s.style),$=x(()=>(m.value.length>0||w.value)&&C.value),A=x(()=>!n.hideLoading&&w.value),R=x(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),M=async()=>{await Ge(),$.value&&(b.value=`${u.value.$el.offsetWidth}px`)},I=()=>{v=!0},_=()=>{v=!1,g.value=-1},z=kn(async le=>{if(k.value)return;const re=ie=>{w.value=!1,!k.value&&(ft(ie)?(m.value=ie,g.value=n.highlightFirstItem?0:-1):nn(xv,"autocomplete suggestions must be an array"))};if(w.value=!0,ft(n.fetchSuggestions))re(n.fetchSuggestions);else{const ie=await n.fetchSuggestions(le,re);ft(ie)&&re(ie)}},n.debounce),H=le=>{const re=!!le;if(o(Sn,le),o(ut,le),k.value=!1,C.value||(C.value=re),!n.triggerOnFocus&&!le){k.value=!0,m.value=[];return}z(le)},W=le=>{var re;l.value||(((re=le.target)==null?void 0:re.tagName)!=="INPUT"||R.value.includes(document.activeElement))&&(C.value=!0)},j=le=>{o(Lt,le)},D=le=>{v||(C.value=!0,o("focus",le),n.triggerOnFocus&&!h&&z(String(n.modelValue)))},V=le=>{v||o("blur",le)},B=()=>{C.value=!1,o(ut,""),o("clear")},X=async()=>{$.value&&g.value>=0&&g.value{$.value&&(le.preventDefault(),le.stopPropagation(),q())},q=()=>{C.value=!1},ee=()=>{var le;(le=u.value)==null||le.focus()},ve=()=>{var le;(le=u.value)==null||le.blur()},me=async le=>{o(Sn,le[n.valueKey]),o(ut,le[n.valueKey]),o("select",le),m.value=[],g.value=-1},Ce=le=>{if(!$.value||w.value)return;if(le<0){g.value=-1;return}le>=m.value.length&&(le=m.value.length-1);const re=c.value.querySelector(`.${i.be("suggestion","wrap")}`),pe=re.querySelectorAll(`.${i.be("suggestion","list")} li`)[le],Ae=re.scrollTop,{offsetTop:Le,scrollHeight:Xe}=pe;Le+Xe>Ae+re.clientHeight&&(re.scrollTop+=Xe),Le{$.value&&q()}),ht(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${E.value}-item-${g.value}`),h=u.value.ref.hasAttribute("readonly")}),t({highlightedIndex:g,activated:C,loading:w,inputRef:u,popperRef:f,suggestions:m,handleSelect:me,handleKeyEnter:X,focus:ee,blur:ve,close:q,highlight:Ce}),(le,re)=>(N(),fe(a(xn),{ref_key:"popperRef",ref:f,visible:a($),placement:le.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[a(i).e("popper"),le.popperClass],teleported:le.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${a(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:M,onShow:I,onHide:_},{content:se(()=>[te("div",{ref_key:"regionRef",ref:c,class:P([a(i).b("suggestion"),a(i).is("loading",a(A))]),style:je({[le.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[Z(a(So),{id:a(E),tag:"ul","wrap-class":a(i).be("suggestion","wrap"),"view-class":a(i).be("suggestion","list"),role:"listbox"},{default:se(()=>[a(A)?(N(),U("li",hO,[Z(a(_e),{class:P(a(i).is("loading"))},{default:se(()=>[Z(a(Gr))]),_:1},8,["class"])])):(N(!0),U(Qe,{key:1},bt(m.value,(ie,pe)=>(N(),U("li",{id:`${a(E)}-item-${pe}`,key:pe,class:P({highlighted:g.value===pe}),role:"option","aria-selected":g.value===pe,onClick:Ae=>me(ie)},[ye(le.$slots,"default",{item:ie},()=>[It(Ne(ie[le.valueKey]),1)])],10,vO))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:se(()=>[te("div",{ref_key:"listboxRef",ref:d,class:P([a(i).b(),le.$attrs.class]),style:je(a(T)),role:"combobox","aria-haspopup":"listbox","aria-expanded":a($),"aria-owns":a(E)},[Z(a(bn),mt({ref_key:"inputRef",ref:u},a(r),{"model-value":le.modelValue,onInput:H,onChange:j,onFocus:D,onBlur:V,onClear:B,onKeydown:[re[0]||(re[0]=Et(nt(ie=>Ce(g.value-1),["prevent"]),["up"])),re[1]||(re[1]=Et(nt(ie=>Ce(g.value+1),["prevent"]),["down"])),Et(X,["enter"]),Et(q,["tab"]),Et(Q,["esc"])],onMousedown:W}),Io({_:2},[le.$slots.prepend?{name:"prepend",fn:se(()=>[ye(le.$slots,"prepend")])}:void 0,le.$slots.append?{name:"append",fn:se(()=>[ye(le.$slots,"append")])}:void 0,le.$slots.prefix?{name:"prefix",fn:se(()=>[ye(le.$slots,"prefix")])}:void 0,le.$slots.suffix?{name:"suffix",fn:se(()=>[ye(le.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,pO)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var yO=Ie(gO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const bO=dt(yO),wO=Re({size:{type:[Number,String],values:dr,default:"",validator:e=>it(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:jt},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ce(String),default:"cover"}}),CO={error:e=>e instanceof Event},SO=["src","alt","srcset"],kO=oe({name:"ElAvatar"}),EO=oe({...kO,props:wO,emits:CO,setup(e,{emit:t}){const o=e,n=be("avatar"),r=F(!1),s=x(()=>{const{size:c,icon:f,shape:d}=o,h=[n.b()];return kt(c)&&h.push(n.m(c)),f&&h.push(n.m("icon")),d&&h.push(n.m(d)),h}),l=x(()=>{const{size:c}=o;return it(c)?n.cssVarBlock({size:un(c)||""}):void 0}),i=x(()=>({objectFit:o.fit}));ke(()=>o.src,()=>r.value=!1);function u(c){r.value=!0,t("error",c)}return(c,f)=>(N(),U("span",{class:P(a(s)),style:je(a(l))},[(c.src||c.srcSet)&&!r.value?(N(),U("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:je(a(i)),onError:u},null,44,SO)):c.icon?(N(),fe(a(_e),{key:1},{default:se(()=>[(N(),fe(St(c.icon)))]),_:1})):ye(c.$slots,"default",{key:2})],6))}});var $O=Ie(EO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const TO=dt($O),OO={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},xO={click:e=>e instanceof MouseEvent},IO=(e,t,o)=>{const n=Kt(),r=Kt(),s=F(!1),l=()=>{if(!n.value)return;const f=Date.now(),d=n.value.scrollTop,h=()=>{if(!n.value)return;const v=(Date.now()-f)/500;v<1?(n.value.scrollTop=d*(1-fE(v)),requestAnimationFrame(h)):n.value.scrollTop=0};requestAnimationFrame(h)},i=()=>{n.value&&(s.value=n.value.scrollTop>=e.visibilityHeight)},u=f=>{l(),t("click",f)},c=lh(i,300,!0);return pn(r,"scroll",c),ht(()=>{var f;r.value=document,n.value=document.documentElement,e.target&&(n.value=(f=document.querySelector(e.target))!=null?f:void 0,n.value||nn(o,`target does not exist: ${e.target}`),r.value=n.value)}),{visible:s,handleClick:u}},Iv="ElBacktop",MO=oe({name:Iv}),NO=oe({...MO,props:OO,emits:xO,setup(e,{emit:t}){const o=e,n=be("backtop"),{handleClick:r,visible:s}=IO(o,t,Iv),l=x(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(i,u)=>(N(),fe(cn,{name:`${a(n).namespace.value}-fade-in`},{default:se(()=>[a(s)?(N(),U("div",{key:0,style:je(a(l)),class:P(a(n).b()),onClick:u[0]||(u[0]=nt((...c)=>a(r)&&a(r)(...c),["stop"]))},[ye(i.$slots,"default",{},()=>[Z(a(_e),{class:P(a(n).e("icon"))},{default:se(()=>[Z(a(T0))]),_:1},8,["class"])])],6)):de("v-if",!0)]),_:3},8,["name"]))}});var PO=Ie(NO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const RO=dt(PO),AO=Re({separator:{type:String,default:"/"},separatorIcon:{type:jt}}),DO=oe({name:"ElBreadcrumb"}),LO=oe({...DO,props:AO,setup(e){const t=e,o=be("breadcrumb"),n=F();return gt(Vh,t),ht(()=>{const r=n.value.querySelectorAll(`.${o.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,s)=>(N(),U("div",{ref_key:"breadcrumb",ref:n,class:P(a(o).b()),"aria-label":"Breadcrumb",role:"navigation"},[ye(r.$slots,"default")],2))}});var BO=Ie(LO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const zO=Re({to:{type:ce([String,Object]),default:""},replace:{type:Boolean,default:!1}}),VO=oe({name:"ElBreadcrumbItem"}),FO=oe({...VO,props:zO,setup(e){const t=e,o=yt(),n=Ue(Vh,void 0),r=be("breadcrumb"),{separator:s,separatorIcon:l}=tn(n),i=o.appContext.config.globalProperties.$router,u=F(),c=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(f,d)=>(N(),U("span",{class:P(a(r).e("item"))},[te("span",{ref_key:"link",ref:u,class:P([a(r).e("inner"),a(r).is("link",!!f.to)]),role:"link",onClick:c},[ye(f.$slots,"default")],2),a(l)?(N(),fe(a(_e),{key:0,class:P(a(r).e("separator"))},{default:se(()=>[(N(),fe(St(a(l))))]),_:1},8,["class"])):(N(),U("span",{key:1,class:P(a(r).e("separator")),role:"presentation"},Ne(a(s)),3))],2))}});var Mv=Ie(FO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const HO=dt(BO,{BreadcrumbItem:Mv}),WO=Ut(Mv);var Nv={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){var o=1e3,n=6e4,r=36e5,s="millisecond",l="second",i="minute",u="hour",c="day",f="week",d="month",h="quarter",v="year",m="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,k={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(z){var H=["th","st","nd","rd"],W=z%100;return"["+z+(H[(W-20)%10]||H[W]||H[0])+"]"}},w=function(z,H,W){var j=String(z);return!j||j.length>=H?z:""+Array(H+1-j.length).join(W)+z},E={s:w,z:function(z){var H=-z.utcOffset(),W=Math.abs(H),j=Math.floor(W/60),D=W%60;return(H<=0?"+":"-")+w(j,2,"0")+":"+w(D,2,"0")},m:function z(H,W){if(H.date()1)return z(B[0])}else{var X=H.name;$[X]=H,D=X}return!j&&D&&(T=D),D||!j&&T},M=function(z,H){if(A(z))return z.clone();var W=typeof H=="object"?H:{};return W.date=z,W.args=arguments,new _(W)},I=E;I.l=R,I.i=A,I.w=function(z,H){return M(z,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var _=function(){function z(W){this.$L=R(W.locale,null,!0),this.parse(W)}var H=z.prototype;return H.parse=function(W){this.$d=function(j){var D=j.date,V=j.utc;if(D===null)return new Date(NaN);if(I.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var B=D.match(b);if(B){var X=B[2]-1||0,Q=(B[7]||"0").substring(0,3);return V?new Date(Date.UTC(B[1],X,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Q)):new Date(B[1],X,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Q)}}return new Date(D)}(W),this.$x=W.x||{},this.init()},H.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},H.$utils=function(){return I},H.isValid=function(){return this.$d.toString()!==g},H.isSame=function(W,j){var D=M(W);return this.startOf(j)<=D&&D<=this.endOf(j)},H.isAfter=function(W,j){return M(W)68?1900:2e3)},c=function(g){return function(b){this[g]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var C=b.match(/([+-]|\d\d)/g),k=60*C[1]+(+C[2]||0);return k===0?0:C[0]==="+"?-k:k}(g)}],d=function(g){var b=i[g];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(g,b){var C,k=i.meridiem;if(k){for(var w=1;w<=24;w+=1)if(g.indexOf(k(w,0,b))>-1){C=w>12;break}}else C=g===(b?"pm":"PM");return C},v={A:[l,function(g){this.afternoon=h(g,!1)}],a:[l,function(g){this.afternoon=h(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[r,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[r,c("day")],Do:[l,function(g){var b=i.ordinal,C=g.match(/\d+/);if(this.day=C[0],b)for(var k=1;k<=31;k+=1)b(k).replace(/\[|\]/g,"")===g&&(this.day=k)}],M:[s,c("month")],MM:[r,c("month")],MMM:[l,function(g){var b=d("months"),C=(d("monthsShort")||b.map(function(k){return k.slice(0,3)})).indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[l,function(g){var b=d("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(g){this.year=u(g)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function m(g){var b,C;b=g,C=i&&i.formats;for(var k=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,I,_){var L=_&&_.toUpperCase();return I||C[_]||o[_]||C[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,H,W){return H||W.slice(1)})})).match(n),w=k.length,E=0;E-1)return new Date((D==="X"?1e3:1)*j);var B=m(D)(j),X=B.year,Q=B.month,q=B.day,ee=B.hours,ve=B.minutes,me=B.seconds,Ce=B.milliseconds,le=B.zone,re=new Date,ie=q||(X||Q?1:re.getDate()),pe=X||re.getFullYear(),Ae=0;X&&!Q||(Ae=Q>0?Q-1:re.getMonth());var Le=ee||0,Xe=ve||0,xe=me||0,He=Ce||0;return le?new Date(Date.UTC(pe,Ae,ie,Le,Xe,xe,He+60*le.offset*1e3)):V?new Date(Date.UTC(pe,Ae,ie,Le,Xe,xe,He)):new Date(pe,Ae,ie,Le,Xe,xe,He)}catch{return new Date("")}}(T,R,$),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),_&&T!=this.format(R)&&(this.$d=new Date("")),i={}}else if(R instanceof Array)for(var z=R.length,H=1;H<=z;H+=1){A[1]=R[H-1];var W=C.apply(this,A);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}H===z&&(this.$d=new Date(""))}else w.call(this,E)}}})})(Pv);const ac=Pv.exports,Nf=["hours","minutes","seconds"],Ri="HH:mm:ss",Cr="YYYY-MM-DD",KO={date:Cr,dates:Cr,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Cr} ${Ri}`,monthrange:"YYYY-MM",daterange:Cr,datetimerange:`${Cr} ${Ri}`},ci=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),Rv=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Av=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Pf=function(e,t){const o=ws(e),n=ws(t);return o&&n?e.getTime()===t.getTime():!o&&!n?e===t:!1},Rf=function(e,t){const o=ft(e),n=ft(t);return o&&n?e.length!==t.length?!1:e.every((r,s)=>Pf(r,t[s])):!o&&!n?Pf(e,t):!1},Af=function(e,t,o){const n=Vn(t)||t==="x"?at(e).locale(o):at(e,t).locale(o);return n.isValid()?n:void 0},Df=function(e,t,o){return Vn(t)?e:t==="x"?+e:at(e).locale(o).format(t)},di=(e,t)=>{var o;const n=[],r=t==null?void 0:t();for(let s=0;s({})},modelValue:{type:ce([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ce([Date,Array])},defaultTime:{type:ce([Date,Array])},isRange:{type:Boolean,default:!1},...Dv,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:ce([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),_O=["id","name","placeholder","value","disabled","readonly"],jO=["id","name","placeholder","value","disabled","readonly"],YO=oe({name:"Picker"}),UO=oe({...YO,props:lc,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:o}){const n=e,{lang:r}=$t(),s=be("date"),l=be("input"),i=be("range"),{form:u,formItem:c}=zn(),f=Ue("ElPopperOptions",{}),d=F(),h=F(),v=F(!1),m=F(!1),g=F(null);let b=!1,C=!1;ke(v,Y=>{Y?Ge(()=>{Y&&(g.value=n.modelValue)}):(Pe.value=null,Ge(()=>{k(n.modelValue)}))});const k=(Y,ne)=>{(ne||!Rf(Y,g.value))&&(o("change",Y),n.validateEvent&&(c==null||c.validate("change").catch(he=>on())))},w=Y=>{if(!Rf(n.modelValue,Y)){let ne;ft(Y)?ne=Y.map(he=>Df(he,n.valueFormat,r.value)):Y&&(ne=Df(Y,n.valueFormat,r.value)),o("update:modelValue",Y&&ne,r.value)}},E=Y=>{o("keydown",Y)},T=x(()=>{if(h.value){const Y=Xe.value?h.value:h.value.$el;return Array.from(Y.querySelectorAll("input"))}return[]}),$=(Y,ne,he)=>{const $e=T.value;!$e.length||(!he||he==="min"?($e[0].setSelectionRange(Y,ne),$e[0].focus()):he==="max"&&($e[1].setSelectionRange(Y,ne),$e[1].focus()))},A=()=>{W(!0,!0),Ge(()=>{C=!1})},R=(Y="",ne=!1)=>{ne||(C=!0),v.value=ne;let he;ft(Y)?he=Y.map($e=>$e.toDate()):he=Y&&Y.toDate(),Pe.value=null,w(he)},M=()=>{m.value=!0},I=()=>{o("visible-change",!0)},_=Y=>{(Y==null?void 0:Y.key)===Ye.esc&&W(!0,!0)},L=()=>{m.value=!1,v.value=!1,C=!1,o("visible-change",!1)},z=()=>{v.value=!0},H=()=>{v.value=!1},W=(Y=!0,ne=!1)=>{C=ne;const[he,$e]=a(T);let Be=he;!Y&&Xe.value&&(Be=$e),Be&&Be.focus()},j=Y=>{n.readonly||B.value||v.value||C||(v.value=!0,o("focus",Y))};let D;const V=Y=>{const ne=async()=>{setTimeout(()=>{var he;D===ne&&(!(((he=d.value)==null?void 0:he.isFocusInsideContent())&&!b)&&T.value.filter($e=>$e.contains(document.activeElement)).length===0&&(qe(),v.value=!1,o("blur",Y),n.validateEvent&&(c==null||c.validate("blur").catch($e=>on()))),b=!1)},0)};D=ne,ne()},B=x(()=>n.disabled||(u==null?void 0:u.disabled)),X=x(()=>{let Y;if(re.value?pt.value.getDefaultValue&&(Y=pt.value.getDefaultValue()):ft(n.modelValue)?Y=n.modelValue.map(ne=>Af(ne,n.valueFormat,r.value)):Y=Af(n.modelValue,n.valueFormat,r.value),pt.value.getRangeAvailableTime){const ne=pt.value.getRangeAvailableTime(Y);Dn(ne,Y)||(Y=ne,w(ft(Y)?Y.map(he=>he.toDate()):Y.toDate()))}return ft(Y)&&Y.some(ne=>!ne)&&(Y=[]),Y}),Q=x(()=>{if(!pt.value.panelReady)return"";const Y=Se(X.value);return ft(Pe.value)?[Pe.value[0]||Y&&Y[0]||"",Pe.value[1]||Y&&Y[1]||""]:Pe.value!==null?Pe.value:!ee.value&&re.value||!v.value&&re.value?"":Y?ve.value?Y.join(", "):Y:""}),q=x(()=>n.type.includes("time")),ee=x(()=>n.type.startsWith("time")),ve=x(()=>n.type==="dates"),me=x(()=>n.prefixIcon||(q.value?Up:O0)),Ce=F(!1),le=Y=>{n.readonly||B.value||Ce.value&&(Y.stopPropagation(),A(),w(null),k(null,!0),Ce.value=!1,v.value=!1,pt.value.handleClear&&pt.value.handleClear())},re=x(()=>{const{modelValue:Y}=n;return!Y||ft(Y)&&!Y.filter(Boolean).length}),ie=async Y=>{var ne;n.readonly||B.value||(((ne=Y.target)==null?void 0:ne.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},pe=()=>{n.readonly||B.value||!re.value&&n.clearable&&(Ce.value=!0)},Ae=()=>{Ce.value=!1},Le=Y=>{var ne;n.readonly||B.value||(((ne=Y.touches[0].target)==null?void 0:ne.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},Xe=x(()=>n.type.includes("range")),xe=dn(),He=x(()=>{var Y,ne;return(ne=(Y=a(d))==null?void 0:Y.popperRef)==null?void 0:ne.contentRef}),ot=x(()=>{var Y;return a(Xe)?a(h):(Y=a(h))==null?void 0:Y.$el});Tu(ot,Y=>{const ne=a(He),he=a(ot);ne&&(Y.target===ne||Y.composedPath().includes(ne))||Y.target===he||Y.composedPath().includes(he)||(v.value=!1)});const Pe=F(null),qe=()=>{if(Pe.value){const Y=ze(Q.value);Y&&Oe(Y)&&(w(ft(Y)?Y.map(ne=>ne.toDate()):Y.toDate()),Pe.value=null)}Pe.value===""&&(w(null),k(null),Pe.value=null)},ze=Y=>Y?pt.value.parseUserInput(Y):null,Se=Y=>Y?pt.value.formatToString(Y):null,Oe=Y=>pt.value.isValidValue(Y),De=async Y=>{if(n.readonly||B.value)return;const{code:ne}=Y;if(E(Y),ne===Ye.esc){v.value===!0&&(v.value=!1,Y.preventDefault(),Y.stopPropagation());return}if(ne===Ye.down&&(pt.value.handleFocusPicker&&(Y.preventDefault(),Y.stopPropagation()),v.value===!1&&(v.value=!0,await Ge()),pt.value.handleFocusPicker)){pt.value.handleFocusPicker();return}if(ne===Ye.tab){b=!0;return}if(ne===Ye.enter||ne===Ye.numpadEnter){(Pe.value===null||Pe.value===""||Oe(ze(Q.value)))&&(qe(),v.value=!1),Y.stopPropagation();return}if(Pe.value){Y.stopPropagation();return}pt.value.handleKeydownInput&&pt.value.handleKeydownInput(Y)},Je=Y=>{Pe.value=Y,v.value||(v.value=!0)},rt=Y=>{const ne=Y.target;Pe.value?Pe.value=[ne.value,Pe.value[1]]:Pe.value=[ne.value,null]},st=Y=>{const ne=Y.target;Pe.value?Pe.value=[Pe.value[0],ne.value]:Pe.value=[null,ne.value]},Ee=()=>{var Y;const ne=Pe.value,he=ze(ne&&ne[0]),$e=a(X);if(he&&he.isValid()){Pe.value=[Se(he),((Y=Q.value)==null?void 0:Y[1])||null];const Be=[he,$e&&($e[1]||null)];Oe(Be)&&(w(Be),Pe.value=null)}},vt=()=>{var Y;const ne=a(Pe),he=ze(ne&&ne[1]),$e=a(X);if(he&&he.isValid()){Pe.value=[((Y=a(Q))==null?void 0:Y[0])||null,Se(he)];const Be=[$e&&$e[0],he];Oe(Be)&&(w(Be),Pe.value=null)}},pt=F({}),ue=Y=>{pt.value[Y[0]]=Y[1],pt.value.panelReady=!0},Me=Y=>{o("calendar-change",Y)},We=(Y,ne,he)=>{o("panel-change",Y,ne,he)};return gt("EP_PICKER_BASE",{props:n}),t({focus:W,handleFocusInput:j,handleBlurInput:V,handleOpen:z,handleClose:H,onPick:R}),(Y,ne)=>(N(),fe(a(xn),mt({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},Y.$attrs,{role:"dialog",teleported:"",transition:`${a(s).namespace.value}-zoom-in-top`,"popper-class":[`${a(s).namespace.value}-picker__popper`,Y.popperClass],"popper-options":a(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:M,onShow:I,onHide:L}),{default:se(()=>[a(Xe)?(N(),U("div",{key:1,ref_key:"inputRef",ref:h,class:P([a(s).b("editor"),a(s).bm("editor",Y.type),a(l).e("wrapper"),a(s).is("disabled",a(B)),a(s).is("active",v.value),a(i).b("editor"),a(xe)?a(i).bm("editor",a(xe)):"",Y.$attrs.class]),style:je(Y.$attrs.style),onClick:j,onMouseenter:pe,onMouseleave:Ae,onTouchstart:Le,onKeydown:De},[a(me)?(N(),fe(a(_e),{key:0,class:P([a(l).e("icon"),a(i).e("icon")]),onMousedown:nt(ie,["prevent"]),onTouchstart:Le},{default:se(()=>[(N(),fe(St(a(me))))]),_:1},8,["class","onMousedown"])):de("v-if",!0),te("input",{id:Y.id&&Y.id[0],autocomplete:"off",name:Y.name&&Y.name[0],placeholder:Y.startPlaceholder,value:a(Q)&&a(Q)[0],disabled:a(B),readonly:!Y.editable||Y.readonly,class:P(a(i).b("input")),onMousedown:ie,onInput:rt,onChange:Ee,onFocus:j,onBlur:V},null,42,_O),ye(Y.$slots,"range-separator",{},()=>[te("span",{class:P(a(i).b("separator"))},Ne(Y.rangeSeparator),3)]),te("input",{id:Y.id&&Y.id[1],autocomplete:"off",name:Y.name&&Y.name[1],placeholder:Y.endPlaceholder,value:a(Q)&&a(Q)[1],disabled:a(B),readonly:!Y.editable||Y.readonly,class:P(a(i).b("input")),onMousedown:ie,onFocus:j,onBlur:V,onInput:st,onChange:vt},null,42,jO),Y.clearIcon?(N(),fe(a(_e),{key:1,class:P([a(l).e("icon"),a(i).e("close-icon"),{[a(i).e("close-icon--hidden")]:!Ce.value}]),onClick:le},{default:se(()=>[(N(),fe(St(Y.clearIcon)))]),_:1},8,["class"])):de("v-if",!0)],38)):(N(),fe(a(bn),{key:0,id:Y.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":a(Q),name:Y.name,size:a(xe),disabled:a(B),placeholder:Y.placeholder,class:P([a(s).b("editor"),a(s).bm("editor",Y.type),Y.$attrs.class]),style:je(Y.$attrs.style),readonly:!Y.editable||Y.readonly||a(ve)||Y.type==="week",label:Y.label,tabindex:Y.tabindex,"validate-event":!1,onInput:Je,onFocus:j,onBlur:V,onKeydown:De,onChange:qe,onMousedown:ie,onMouseenter:pe,onMouseleave:Ae,onTouchstart:Le,onClick:ne[0]||(ne[0]=nt(()=>{},["stop"]))},{prefix:se(()=>[a(me)?(N(),fe(a(_e),{key:0,class:P(a(l).e("icon")),onMousedown:nt(ie,["prevent"]),onTouchstart:Le},{default:se(()=>[(N(),fe(St(a(me))))]),_:1},8,["class","onMousedown"])):de("v-if",!0)]),suffix:se(()=>[Ce.value&&Y.clearIcon?(N(),fe(a(_e),{key:0,class:P(`${a(l).e("icon")} clear-icon`),onClick:nt(le,["stop"])},{default:se(()=>[(N(),fe(St(Y.clearIcon)))]),_:1},8,["class","onClick"])):de("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:se(()=>[ye(Y.$slots,"default",{visible:v.value,actualVisible:m.value,parsedValue:a(X),format:Y.format,unlinkPanels:Y.unlinkPanels,type:Y.type,defaultValue:Y.defaultValue,onPick:R,onSelectRange:$,onSetPickerOption:ue,onCalendarChange:Me,onPanelChange:We,onKeydown:_,onMousedown:ne[1]||(ne[1]=nt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var Bv=Ie(UO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const GO=Re({...Lv,datetimeRole:String,parsedValue:{type:ce(Object)}}),zv=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:o})=>{const n=(l,i,u,c)=>{const f={hour:e,minute:t,second:o};let d=l;return["hour","minute","second"].forEach(h=>{if(f[h]){let v;const m=f[h];switch(h){case"minute":{v=m(d.hour(),i,c);break}case"second":{v=m(d.hour(),d.minute(),i,c);break}default:{v=m(i,c);break}}if((v==null?void 0:v.length)&&!v.includes(d[h]())){const g=u?0:v.length-1;d=d[h](v[g])}}}),d},r={};return{timePickerOptions:r,getAvailableTime:n,onSetOption:([l,i])=>{r[l]=i}}},fi=e=>{const t=(n,r)=>n||r,o=n=>n!==!0;return e.map(t).filter(o)},Vv=(e,t,o)=>({getHoursList:(l,i)=>di(24,e&&(()=>e==null?void 0:e(l,i))),getMinutesList:(l,i,u)=>di(60,t&&(()=>t==null?void 0:t(l,i,u))),getSecondsList:(l,i,u,c)=>di(60,o&&(()=>o==null?void 0:o(l,i,u,c)))}),Fv=(e,t,o)=>{const{getHoursList:n,getMinutesList:r,getSecondsList:s}=Vv(e,t,o);return{getAvailableHours:(c,f)=>fi(n(c,f)),getAvailableMinutes:(c,f,d)=>fi(r(c,f,d)),getAvailableSeconds:(c,f,d,h)=>fi(s(c,f,d,h))}},Hv=e=>{const t=F(e.parsedValue);return ke(()=>e.visible,o=>{o||(t.value=e.parsedValue)}),t},To=new Map;let Lf;Dt&&(document.addEventListener("mousedown",e=>Lf=e),document.addEventListener("mouseup",e=>{for(const t of To.values())for(const{documentHandler:o}of t)o(e,Lf)}));function Bf(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:Ro(t.arg)&&o.push(t.arg),function(n,r){const s=t.instance.popperRef,l=n.target,i=r==null?void 0:r.target,u=!t||!t.instance,c=!l||!i,f=e.contains(l)||e.contains(i),d=e===l,h=o.length&&o.some(m=>m==null?void 0:m.contains(l))||o.length&&o.includes(i),v=s&&(s.contains(l)||s.contains(i));u||c||f||d||h||v||t.value(n,r)}}const zo={beforeMount(e,t){To.has(e)||To.set(e,[]),To.get(e).push({documentHandler:Bf(e,t),bindingFn:t.value})},updated(e,t){To.has(e)||To.set(e,[]);const o=To.get(e),n=o.findIndex(s=>s.bindingFn===t.oldValue),r={documentHandler:Bf(e,t),bindingFn:t.value};n>=0?o.splice(n,1,r):o.push(r)},unmounted(e){To.delete(e)}},qO=100,XO=600,Ua={beforeMount(e,t){const o=t.value,{interval:n=qO,delay:r=XO}=At(o)?{}:o;let s,l;const i=()=>At(o)?o():o.handler(),u=()=>{l&&(clearTimeout(l),l=void 0),s&&(clearInterval(s),s=void 0)};e.addEventListener("mousedown",c=>{c.button===0&&(u(),i(),document.addEventListener("mouseup",()=>u(),{once:!0}),l=setTimeout(()=>{s=setInterval(()=>{i()},n)},r))})}};var zf=!1,qo,Ai,Di,wa,Ca,Wv,Sa,Li,Bi,zi,Kv,Vi,Fi,_v,jv;function $n(){if(!zf){zf=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Vi=/\b(iPhone|iP[ao]d)/.exec(e),Fi=/\b(iP[ao]d)/.exec(e),zi=/Android/i.exec(e),_v=/FBAN\/\w+;/i.exec(e),jv=/Mobile/i.exec(e),Kv=!!/Win64/.exec(e),t){qo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qo&&document&&document.documentMode&&(qo=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);Wv=n?parseFloat(n[1])+4:qo,Ai=t[2]?parseFloat(t[2]):NaN,Di=t[3]?parseFloat(t[3]):NaN,wa=t[4]?parseFloat(t[4]):NaN,wa?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ca=t&&t[1]?parseFloat(t[1]):NaN):Ca=NaN}else qo=Ai=Di=Ca=wa=NaN;if(o){if(o[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Sa=r?parseFloat(r[1].replace("_",".")):!0}else Sa=!1;Li=!!o[2],Bi=!!o[3]}else Sa=Li=Bi=!1}}var Hi={ie:function(){return $n()||qo},ieCompatibilityMode:function(){return $n()||Wv>qo},ie64:function(){return Hi.ie()&&Kv},firefox:function(){return $n()||Ai},opera:function(){return $n()||Di},webkit:function(){return $n()||wa},safari:function(){return Hi.webkit()},chrome:function(){return $n()||Ca},windows:function(){return $n()||Li},osx:function(){return $n()||Sa},linux:function(){return $n()||Bi},iphone:function(){return $n()||Vi},mobile:function(){return $n()||Vi||Fi||zi||jv},nativeApp:function(){return $n()||_v},android:function(){return $n()||zi},ipad:function(){return $n()||Fi}},ZO=Hi,ua=!!(typeof window<"u"&&window.document&&window.document.createElement),JO={canUseDOM:ua,canUseWorkers:typeof Worker<"u",canUseEventListeners:ua&&!!(window.addEventListener||window.attachEvent),canUseViewport:ua&&!!window.screen,isInWorker:!ua},Yv=JO,Uv;Yv.canUseDOM&&(Uv=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function QO(e,t){if(!Yv.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,n=o in document;if(!n){var r=document.createElement("div");r.setAttribute(o,"return;"),n=typeof r[o]=="function"}return!n&&Uv&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var ex=QO,Vf=10,Ff=40,Hf=800;function Gv(e){var t=0,o=0,n=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=t*Vf,r=o*Vf,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(e.deltaMode==1?(n*=Ff,r*=Ff):(n*=Hf,r*=Hf)),n&&!t&&(t=n<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:r}}Gv.getEventType=function(){return ZO.firefox()?"DOMMouseScroll":ex("wheel")?"wheel":"mousewheel"};var tx=Gv;const nx=function(e,t){if(e&&e.addEventListener){const o=function(n){const r=tx(n);t&&Reflect.apply(t,this,[n,r])};e.addEventListener("wheel",o,{passive:!0})}},ox={beforeMount(e,t){nx(e,t.value)}},rx=Re({role:{type:String,required:!0},spinnerDate:{type:ce(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ce(String),default:""},...Dv}),sx=["onClick"],ax=["onMouseenter"],lx=oe({__name:"basic-time-spinner",props:rx,emits:["change","select-range","set-option"],setup(e,{emit:t}){const o=e,n=be("time"),{getHoursList:r,getMinutesList:s,getSecondsList:l}=Vv(o.disabledHours,o.disabledMinutes,o.disabledSeconds);let i=!1;const u=F(),c=F(),f=F(),d=F(),h={hours:c,minutes:f,seconds:d},v=x(()=>o.showSeconds?Nf:Nf.slice(0,2)),m=x(()=>{const{spinnerDate:B}=o,X=B.hour(),Q=B.minute(),q=B.second();return{hours:X,minutes:Q,seconds:q}}),g=x(()=>{const{hours:B,minutes:X}=a(m);return{hours:r(o.role),minutes:s(B,o.role),seconds:l(B,X,o.role)}}),b=x(()=>{const{hours:B,minutes:X,seconds:Q}=a(m);return{hours:ci(B,23),minutes:ci(X,59),seconds:ci(Q,59)}}),C=kn(B=>{i=!1,E(B)},200),k=B=>{if(!!!o.amPmMode)return"";const Q=o.amPmMode==="A";let q=B<12?" am":" pm";return Q&&(q=q.toUpperCase()),q},w=B=>{let X;switch(B){case"hours":X=[0,2];break;case"minutes":X=[3,5];break;case"seconds":X=[6,8];break}const[Q,q]=X;t("select-range",Q,q),u.value=B},E=B=>{A(B,a(m)[B])},T=()=>{E("hours"),E("minutes"),E("seconds")},$=B=>B.querySelector(`.${n.namespace.value}-scrollbar__wrap`),A=(B,X)=>{if(o.arrowControl)return;const Q=a(h[B]);Q&&Q.$el&&($(Q.$el).scrollTop=Math.max(0,X*R(B)))},R=B=>{const X=a(h[B]);return(X==null?void 0:X.$el.querySelector("li").offsetHeight)||0},M=()=>{_(1)},I=()=>{_(-1)},_=B=>{u.value||w("hours");const X=u.value,Q=a(m)[X],q=u.value==="hours"?24:60,ee=L(X,Q,B,q);z(X,ee),A(X,ee),Ge(()=>w(X))},L=(B,X,Q,q)=>{let ee=(X+Q+q)%q;const ve=a(g)[B];for(;ve[ee]&&ee!==X;)ee=(ee+Q+q)%q;return ee},z=(B,X)=>{if(a(g)[B][X])return;const{hours:ee,minutes:ve,seconds:me}=a(m);let Ce;switch(B){case"hours":Ce=o.spinnerDate.hour(X).minute(ve).second(me);break;case"minutes":Ce=o.spinnerDate.hour(ee).minute(X).second(me);break;case"seconds":Ce=o.spinnerDate.hour(ee).minute(ve).second(X);break}t("change",Ce)},H=(B,{value:X,disabled:Q})=>{Q||(z(B,X),w(B),A(B,X))},W=B=>{i=!0,C(B);const X=Math.min(Math.round(($(a(h[B]).$el).scrollTop-(j(B)*.5-10)/R(B)+3)/R(B)),B==="hours"?23:59);z(B,X)},j=B=>a(h[B]).$el.offsetHeight,D=()=>{const B=X=>{const Q=a(h[X]);Q&&Q.$el&&($(Q.$el).onscroll=()=>{W(X)})};B("hours"),B("minutes"),B("seconds")};ht(()=>{Ge(()=>{!o.arrowControl&&D(),T(),o.role==="start"&&w("hours")})});const V=(B,X)=>{h[X].value=B};return t("set-option",[`${o.role}_scrollDown`,_]),t("set-option",[`${o.role}_emitSelectRange`,w]),ke(()=>o.spinnerDate,()=>{i||T()}),(B,X)=>(N(),U("div",{class:P([a(n).b("spinner"),{"has-seconds":B.showSeconds}])},[B.arrowControl?de("v-if",!0):(N(!0),U(Qe,{key:0},bt(a(v),Q=>(N(),fe(a(So),{key:Q,ref_for:!0,ref:q=>V(q,Q),class:P(a(n).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":a(n).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:q=>w(Q),onMousemove:q=>E(Q)},{default:se(()=>[(N(!0),U(Qe,null,bt(a(g)[Q],(q,ee)=>(N(),U("li",{key:ee,class:P([a(n).be("spinner","item"),a(n).is("active",ee===a(m)[Q]),a(n).is("disabled",q)]),onClick:ve=>H(Q,{value:ee,disabled:q})},[Q==="hours"?(N(),U(Qe,{key:0},[It(Ne(("0"+(B.amPmMode?ee%12||12:ee)).slice(-2))+Ne(k(ee)),1)],64)):(N(),U(Qe,{key:1},[It(Ne(("0"+ee).slice(-2)),1)],64))],10,sx))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),B.arrowControl?(N(!0),U(Qe,{key:1},bt(a(v),Q=>(N(),U("div",{key:Q,class:P([a(n).be("spinner","wrapper"),a(n).is("arrow")]),onMouseenter:q=>w(Q)},[lt((N(),fe(a(_e),{class:P(["arrow-up",a(n).be("spinner","arrow")])},{default:se(()=>[Z(a(ll))]),_:1},8,["class"])),[[a(Ua),I]]),lt((N(),fe(a(_e),{class:P(["arrow-down",a(n).be("spinner","arrow")])},{default:se(()=>[Z(a(Vo))]),_:1},8,["class"])),[[a(Ua),M]]),te("ul",{class:P(a(n).be("spinner","list"))},[(N(!0),U(Qe,null,bt(a(b)[Q],(q,ee)=>(N(),U("li",{key:ee,class:P([a(n).be("spinner","item"),a(n).is("active",q===a(m)[Q]),a(n).is("disabled",a(g)[Q][q])])},[typeof q=="number"?(N(),U(Qe,{key:0},[Q==="hours"?(N(),U(Qe,{key:0},[It(Ne(("0"+(B.amPmMode?q%12||12:q)).slice(-2))+Ne(k(q)),1)],64)):(N(),U(Qe,{key:1},[It(Ne(("0"+q).slice(-2)),1)],64))],64)):de("v-if",!0)],2))),128))],2)],42,ax))),128)):de("v-if",!0)],2))}});var Wi=Ie(lx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const ix=oe({__name:"panel-time-pick",props:GO,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,n=Ue("EP_PICKER_BASE"),{arrowControl:r,disabledHours:s,disabledMinutes:l,disabledSeconds:i,defaultValue:u}=n.props,{getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}=Fv(s,l,i),h=be("time"),{t:v,lang:m}=$t(),g=F([0,2]),b=Hv(o),C=x(()=>vn(o.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),k=x(()=>o.format.includes("ss")),w=x(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),E=V=>{const B=at(V).locale(m.value),X=H(B);return B.isSame(X)},T=()=>{t("pick",b.value,!1)},$=(V=!1,B=!1)=>{B||t("pick",o.parsedValue,V)},A=V=>{if(!o.visible)return;const B=H(V).millisecond(0);t("pick",B,!0)},R=(V,B)=>{t("select-range",V,B),g.value=[V,B]},M=V=>{const B=[0,3].concat(k.value?[6]:[]),X=["hours","minutes"].concat(k.value?["seconds"]:[]),q=(B.indexOf(g.value[0])+V+B.length)%B.length;_.start_emitSelectRange(X[q])},I=V=>{const B=V.code,{left:X,right:Q,up:q,down:ee}=Ye;if([X,Q].includes(B)){M(B===X?-1:1),V.preventDefault();return}if([q,ee].includes(B)){const ve=B===q?-1:1;_.start_scrollDown(ve),V.preventDefault();return}},{timePickerOptions:_,onSetOption:L,getAvailableTime:z}=zv({getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}),H=V=>z(V,o.datetimeRole||"",!0),W=V=>V?at(V,o.format).locale(m.value):null,j=V=>V?V.format(o.format):null,D=()=>at(u).locale(m.value);return t("set-picker-option",["isValidValue",E]),t("set-picker-option",["formatToString",j]),t("set-picker-option",["parseUserInput",W]),t("set-picker-option",["handleKeydownInput",I]),t("set-picker-option",["getRangeAvailableTime",H]),t("set-picker-option",["getDefaultValue",D]),(V,B)=>(N(),fe(cn,{name:a(C)},{default:se(()=>[V.actualVisible||V.visible?(N(),U("div",{key:0,class:P(a(h).b("panel"))},[te("div",{class:P([a(h).be("panel","content"),{"has-seconds":a(k)}])},[Z(Wi,{ref:"spinner",role:V.datetimeRole||"start","arrow-control":a(r),"show-seconds":a(k),"am-pm-mode":a(w),"spinner-date":V.parsedValue,"disabled-hours":a(s),"disabled-minutes":a(l),"disabled-seconds":a(i),onChange:A,onSetOption:a(L),onSelectRange:R},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),te("div",{class:P(a(h).be("panel","footer"))},[te("button",{type:"button",class:P([a(h).be("panel","btn"),"cancel"]),onClick:T},Ne(a(v)("el.datepicker.cancel")),3),te("button",{type:"button",class:P([a(h).be("panel","btn"),"confirm"]),onClick:B[0]||(B[0]=X=>$())},Ne(a(v)("el.datepicker.confirm")),3)],2)],2)):de("v-if",!0)]),_:1},8,["name"]))}});var Ga=Ie(ix,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const ux=Re({...Lv,parsedValue:{type:ce(Array)}}),cx=["disabled"],dx=oe({__name:"panel-time-range",props:ux,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,n=(ie,pe)=>{const Ae=[];for(let Le=ie;Le<=pe;Le++)Ae.push(Le);return Ae},{t:r,lang:s}=$t(),l=be("time"),i=be("picker"),u=Ue("EP_PICKER_BASE"),{arrowControl:c,disabledHours:f,disabledMinutes:d,disabledSeconds:h,defaultValue:v}=u.props,m=x(()=>o.parsedValue[0]),g=x(()=>o.parsedValue[1]),b=Hv(o),C=()=>{t("pick",b.value,!1)},k=x(()=>o.format.includes("ss")),w=x(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),E=(ie=!1)=>{t("pick",[m.value,g.value],ie)},T=ie=>{R(ie.millisecond(0),g.value)},$=ie=>{R(m.value,ie.millisecond(0))},A=ie=>{const pe=ie.map(Le=>at(Le).locale(s.value)),Ae=B(pe);return pe[0].isSame(Ae[0])&&pe[1].isSame(Ae[1])},R=(ie,pe)=>{t("pick",[ie,pe],!0)},M=x(()=>m.value>g.value),I=F([0,2]),_=(ie,pe)=>{t("select-range",ie,pe,"min"),I.value=[ie,pe]},L=x(()=>k.value?11:8),z=(ie,pe)=>{t("select-range",ie,pe,"max");const Ae=a(L);I.value=[ie+Ae,pe+Ae]},H=ie=>{const pe=k.value?[0,3,6,11,14,17]:[0,3,8,11],Ae=["hours","minutes"].concat(k.value?["seconds"]:[]),Xe=(pe.indexOf(I.value[0])+ie+pe.length)%pe.length,xe=pe.length/2;Xe{const pe=ie.code,{left:Ae,right:Le,up:Xe,down:xe}=Ye;if([Ae,Le].includes(pe)){H(pe===Ae?-1:1),ie.preventDefault();return}if([Xe,xe].includes(pe)){const He=pe===Xe?-1:1,ot=I.value[0]{const Ae=f?f(ie):[],Le=ie==="start",xe=(pe||(Le?g.value:m.value)).hour(),He=Le?n(xe+1,23):n(0,xe-1);return li(Ae,He)},D=(ie,pe,Ae)=>{const Le=d?d(ie,pe):[],Xe=pe==="start",xe=Ae||(Xe?g.value:m.value),He=xe.hour();if(ie!==He)return Le;const ot=xe.minute(),Pe=Xe?n(ot+1,59):n(0,ot-1);return li(Le,Pe)},V=(ie,pe,Ae,Le)=>{const Xe=h?h(ie,pe,Ae):[],xe=Ae==="start",He=Le||(xe?g.value:m.value),ot=He.hour(),Pe=He.minute();if(ie!==ot||pe!==Pe)return Xe;const qe=He.second(),ze=xe?n(qe+1,59):n(0,qe-1);return li(Xe,ze)},B=([ie,pe])=>[ve(ie,"start",!0,pe),ve(pe,"end",!1,ie)],{getAvailableHours:X,getAvailableMinutes:Q,getAvailableSeconds:q}=Fv(j,D,V),{timePickerOptions:ee,getAvailableTime:ve,onSetOption:me}=zv({getAvailableHours:X,getAvailableMinutes:Q,getAvailableSeconds:q}),Ce=ie=>ie?ft(ie)?ie.map(pe=>at(pe,o.format).locale(s.value)):at(ie,o.format).locale(s.value):null,le=ie=>ie?ft(ie)?ie.map(pe=>pe.format(o.format)):ie.format(o.format):null,re=()=>{if(ft(v))return v.map(pe=>at(pe).locale(s.value));const ie=at(v).locale(s.value);return[ie,ie.add(60,"m")]};return t("set-picker-option",["formatToString",le]),t("set-picker-option",["parseUserInput",Ce]),t("set-picker-option",["isValidValue",A]),t("set-picker-option",["handleKeydownInput",W]),t("set-picker-option",["getDefaultValue",re]),t("set-picker-option",["getRangeAvailableTime",B]),(ie,pe)=>ie.actualVisible?(N(),U("div",{key:0,class:P([a(l).b("range-picker"),a(i).b("panel")])},[te("div",{class:P(a(l).be("range-picker","content"))},[te("div",{class:P(a(l).be("range-picker","cell"))},[te("div",{class:P(a(l).be("range-picker","header"))},Ne(a(r)("el.datepicker.startTime")),3),te("div",{class:P([a(l).be("range-picker","body"),a(l).be("panel","content"),a(l).is("arrow",a(c)),{"has-seconds":a(k)}])},[Z(Wi,{ref:"minSpinner",role:"start","show-seconds":a(k),"am-pm-mode":a(w),"arrow-control":a(c),"spinner-date":a(m),"disabled-hours":j,"disabled-minutes":D,"disabled-seconds":V,onChange:T,onSetOption:a(me),onSelectRange:_},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),te("div",{class:P(a(l).be("range-picker","cell"))},[te("div",{class:P(a(l).be("range-picker","header"))},Ne(a(r)("el.datepicker.endTime")),3),te("div",{class:P([a(l).be("range-picker","body"),a(l).be("panel","content"),a(l).is("arrow",a(c)),{"has-seconds":a(k)}])},[Z(Wi,{ref:"maxSpinner",role:"end","show-seconds":a(k),"am-pm-mode":a(w),"arrow-control":a(c),"spinner-date":a(g),"disabled-hours":j,"disabled-minutes":D,"disabled-seconds":V,onChange:$,onSetOption:a(me),onSelectRange:z},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),te("div",{class:P(a(l).be("panel","footer"))},[te("button",{type:"button",class:P([a(l).be("panel","btn"),"cancel"]),onClick:pe[0]||(pe[0]=Ae=>C())},Ne(a(r)("el.datepicker.cancel")),3),te("button",{type:"button",class:P([a(l).be("panel","btn"),"confirm"]),disabled:a(M),onClick:pe[1]||(pe[1]=Ae=>E())},Ne(a(r)("el.datepicker.confirm")),11,cx)],2)],2)):de("v-if",!0)}});var fx=Ie(dx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);at.extend(ac);var px=oe({name:"ElTimePicker",install:null,props:{...lc,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const o=F(),[n,r]=e.isRange?["timerange",fx]:["time",Ga],s=l=>t.emit("update:modelValue",l);return gt("ElPopperOptions",e.popperOptions),t.expose({focus:l=>{var i;(i=o.value)==null||i.handleFocusInput(l)},blur:l=>{var i;(i=o.value)==null||i.handleBlurInput(l)},handleOpen:()=>{var l;(l=o.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=o.value)==null||l.handleClose()}}),()=>{var l;const i=(l=e.format)!=null?l:Ri;return Z(Bv,mt(e,{ref:o,type:n,format:i,"onUpdate:modelValue":s}),{default:u=>Z(r,u,null)})}}});const ka=px;ka.install=e=>{e.component(ka.name,ka)};const hx=ka,vx=(e,t)=>{const o=e.subtract(1,"month").endOf("month").date();return xo(t).map((n,r)=>o-(t-r-1))},mx=e=>{const t=e.daysInMonth();return xo(t).map((o,n)=>n+1)},gx=e=>xo(e.length/7).map(t=>{const o=t*7;return e.slice(o,o+7)}),yx=Re({selectedDay:{type:ce(Object)},range:{type:ce(Array)},date:{type:ce(Object),required:!0},hideHeader:{type:Boolean}}),bx={pick:e=>qt(e)};var qv={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){return function(o,n,r){var s=n.prototype,l=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,v,m,g){var b=d.name?d:d.$locale(),C=l(b[h]),k=l(b[v]),w=C||k.map(function(T){return T.slice(0,m)});if(!g)return w;var E=b.weekStart;return w.map(function(T,$){return w[($+(E||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,h){return d.formats[h]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,b){return g||b.slice(1)})}(d.formats[h.toUpperCase()])},f=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return f.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(h){return c(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(d){return i(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(qv);const Xv=qv.exports,wx=(e,t)=>{at.extend(Xv);const o=at.localeData().firstDayOfWeek(),{t:n,lang:r}=$t(),s=at().locale(r.value),l=x(()=>!!e.range&&!!e.range.length),i=x(()=>{let h=[];if(l.value){const[v,m]=e.range,g=xo(m.date()-v.date()+1).map(k=>({text:v.date()+k,type:"current"}));let b=g.length%7;b=b===0?0:7-b;const C=xo(b).map((k,w)=>({text:w+1,type:"next"}));h=g.concat(C)}else{const v=e.date.startOf("month").day(),m=vx(e.date,(v-o+7)%7).map(k=>({text:k,type:"prev"})),g=mx(e.date).map(k=>({text:k,type:"current"}));h=[...m,...g];const b=7-(h.length%7||7),C=xo(b).map((k,w)=>({text:w+1,type:"next"}));h=h.concat(C)}return gx(h)}),u=x(()=>{const h=o;return h===0?ii.map(v=>n(`el.datepicker.weeks.${v}`)):ii.slice(h).concat(ii.slice(0,h)).map(v=>n(`el.datepicker.weeks.${v}`))}),c=(h,v)=>{switch(v){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:s,isInRange:l,rows:i,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:v})=>{const m=c(h,v);t("pick",m)},getSlotData:({text:h,type:v})=>{const m=c(h,v);return{isSelected:m.isSame(e.selectedDay),type:`${v}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},Cx={key:0},Sx=["onClick"],kx=oe({name:"DateTable"}),Ex=oe({...kx,props:yx,emits:bx,setup(e,{expose:t,emit:o}){const n=e,{isInRange:r,now:s,rows:l,weekDays:i,getFormattedDate:u,handlePickDay:c,getSlotData:f}=wx(n,o),d=be("calendar-table"),h=be("calendar-day"),v=({text:m,type:g})=>{const b=[g];if(g==="current"){const C=u(m,g);C.isSame(n.selectedDay,"day")&&b.push(h.is("selected")),C.isSame(s,"day")&&b.push(h.is("today"))}return b};return t({getFormattedDate:u}),(m,g)=>(N(),U("table",{class:P([a(d).b(),a(d).is("range",a(r))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?de("v-if",!0):(N(),U("thead",Cx,[(N(!0),U(Qe,null,bt(a(i),b=>(N(),U("th",{key:b},Ne(b),1))),128))])),te("tbody",null,[(N(!0),U(Qe,null,bt(a(l),(b,C)=>(N(),U("tr",{key:C,class:P({[a(d).e("row")]:!0,[a(d).em("row","hide-border")]:C===0&&m.hideHeader})},[(N(!0),U(Qe,null,bt(b,(k,w)=>(N(),U("td",{key:w,class:P(v(k)),onClick:E=>a(c)(k)},[te("div",{class:P(a(h).b())},[ye(m.$slots,"date-cell",{data:a(f)(k)},()=>[te("span",null,Ne(k.text),1)])],2)],10,Sx))),128))],2))),128))])],2))}});var Wf=Ie(Ex,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const $x=(e,t)=>{const o=e.endOf("month"),n=t.startOf("month"),s=o.isSame(n,"week")?n.add(1,"week"):n;return[[e,o],[s.startOf("week"),t]]},Tx=(e,t)=>{const o=e.endOf("month"),n=e.add(1,"month").startOf("month"),r=o.isSame(n,"week")?n.add(1,"week"):n,s=r.endOf("month"),l=t.startOf("month"),i=s.isSame(l,"week")?l.add(1,"week"):l;return[[e,o],[r.startOf("week"),s],[i.startOf("week"),t]]},Ox=(e,t,o)=>{const n=gn(),{lang:r}=$t(),s=F(),l=at().locale(r.value),i=x({get(){return e.modelValue?c.value:s.value},set(C){if(!C)return;s.value=C;const k=C.toDate();t(Sn,k),t(ut,k)}}),u=x(()=>{if(!e.range)return[];const C=e.range.map(E=>at(E).locale(r.value)),[k,w]=C;return k.isAfter(w)?[]:k.isSame(w,"month")?m(k,w):k.add(1,"month").month()!==w.month()?[]:m(k,w)}),c=x(()=>e.modelValue?at(e.modelValue).locale(r.value):i.value||(u.value.length?u.value[0][0]:l)),f=x(()=>c.value.subtract(1,"month").date(1)),d=x(()=>c.value.add(1,"month").date(1)),h=x(()=>c.value.subtract(1,"year").date(1)),v=x(()=>c.value.add(1,"year").date(1)),m=(C,k)=>{const w=C.startOf("week"),E=k.endOf("week"),T=w.get("month"),$=E.get("month");return T===$?[[w,E]]:(T+1)%12===$?$x(w,E):T+2===$||(T+1)%11===$?Tx(w,E):[]},g=C=>{i.value=C},b=C=>{const w={"prev-month":f.value,"next-month":d.value,"prev-year":h.value,"next-year":v.value,today:l}[C];w.isSame(c.value,"day")||g(w)};return Lo({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},x(()=>!!n.dateCell)),{calculateValidatedDateRange:m,date:c,realSelectedDay:i,pickDay:g,selectDate:b,validatedRange:u}},xx=e=>ft(e)&&e.length===2&&e.every(t=>ws(t)),Ix=Re({modelValue:{type:Date},range:{type:ce(Array),validator:xx}}),Mx={[ut]:e=>ws(e),[Sn]:e=>ws(e)},Nx="ElCalendar",Px=oe({name:Nx}),Rx=oe({...Px,props:Ix,emits:Mx,setup(e,{expose:t,emit:o}){const n=e,r=be("calendar"),{calculateValidatedDateRange:s,date:l,pickDay:i,realSelectedDay:u,selectDate:c,validatedRange:f}=Ox(n,o),{t:d}=$t(),h=x(()=>{const v=`el.datepicker.month${l.value.format("M")}`;return`${l.value.year()} ${d("el.datepicker.year")} ${d(v)}`});return t({selectedDay:u,pickDay:i,selectDate:c,calculateValidatedDateRange:s}),(v,m)=>(N(),U("div",{class:P(a(r).b())},[te("div",{class:P(a(r).e("header"))},[ye(v.$slots,"header",{date:a(h)},()=>[te("div",{class:P(a(r).e("title"))},Ne(a(h)),3),a(f).length===0?(N(),U("div",{key:0,class:P(a(r).e("button-group"))},[Z(a(ch),null,{default:se(()=>[Z(a(mn),{size:"small",onClick:m[0]||(m[0]=g=>a(c)("prev-month"))},{default:se(()=>[It(Ne(a(d)("el.datepicker.prevMonth")),1)]),_:1}),Z(a(mn),{size:"small",onClick:m[1]||(m[1]=g=>a(c)("today"))},{default:se(()=>[It(Ne(a(d)("el.datepicker.today")),1)]),_:1}),Z(a(mn),{size:"small",onClick:m[2]||(m[2]=g=>a(c)("next-month"))},{default:se(()=>[It(Ne(a(d)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):de("v-if",!0)])],2),a(f).length===0?(N(),U("div",{key:0,class:P(a(r).e("body"))},[Z(Wf,{date:a(l),"selected-day":a(u),onPick:a(i)},Io({_:2},[v.$slots["date-cell"]||v.$slots.dateCell?{name:"date-cell",fn:se(g=>[v.$slots["date-cell"]?ye(v.$slots,"date-cell",qn(mt({key:0},g))):ye(v.$slots,"dateCell",qn(mt({key:1},g)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(N(),U("div",{key:1,class:P(a(r).e("body"))},[(N(!0),U(Qe,null,bt(a(f),(g,b)=>(N(),fe(Wf,{key:b,date:g[0],"selected-day":a(u),range:g,"hide-header":b!==0,onPick:a(i)},Io({_:2},[v.$slots["date-cell"]||v.$slots.dateCell?{name:"date-cell",fn:se(C=>[v.$slots["date-cell"]?ye(v.$slots,"date-cell",qn(mt({key:0},C))):ye(v.$slots,"dateCell",qn(mt({key:1},C)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Ax=Ie(Rx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const Dx=dt(Ax),Lx=Re({header:{type:String,default:""},bodyStyle:{type:ce([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),Bx=oe({name:"ElCard"}),zx=oe({...Bx,props:Lx,setup(e){const t=be("card");return(o,n)=>(N(),U("div",{class:P([a(t).b(),a(t).is(`${o.shadow}-shadow`)])},[o.$slots.header||o.header?(N(),U("div",{key:0,class:P(a(t).e("header"))},[ye(o.$slots,"header",{},()=>[It(Ne(o.header),1)])],2)):de("v-if",!0),te("div",{class:P(a(t).e("body")),style:je(o.bodyStyle)},[ye(o.$slots,"default")],6)],2))}});var Vx=Ie(zx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const Fx=dt(Vx),Hx=Re({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:""},indicator:{type:Boolean,default:!0},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}}),Wx={change:(e,t)=>[e,t].every(it)},Kf=300,Kx=(e,t,o)=>{const{children:n,addChild:r,removeChild:s}=av(yt(),"ElCarouselItem"),l=F(-1),i=F(null),u=F(!1),c=F(),f=x(()=>e.arrow!=="never"&&!a(v)),d=x(()=>n.value.some(j=>j.props.label.toString().length>0)),h=x(()=>e.type==="card"),v=x(()=>e.direction==="vertical"),m=tr(j=>{w(j)},Kf,{trailing:!0}),g=tr(j=>{_(j)},Kf);function b(){i.value&&(clearInterval(i.value),i.value=null)}function C(){e.interval<=0||!e.autoplay||i.value||(i.value=setInterval(()=>k(),e.interval))}const k=()=>{l.valueX.props.name===j);B.length>0&&(j=n.value.indexOf(B[0]))}if(j=Number(j),Number.isNaN(j)||j!==Math.floor(j))return;const D=n.value.length,V=l.value;j<0?l.value=e.loop?D-1:0:j>=D?l.value=e.loop?0:D-1:l.value=j,V===l.value&&E(V),H()}function E(j){n.value.forEach((D,V)=>{D.translateItem(V,l.value,j)})}function T(j,D){var V,B,X,Q;const q=a(n),ee=q.length;if(ee===0||!j.states.inStage)return!1;const ve=D+1,me=D-1,Ce=ee-1,le=q[Ce].states.active,re=q[0].states.active,ie=(B=(V=q[ve])==null?void 0:V.states)==null?void 0:B.active,pe=(Q=(X=q[me])==null?void 0:X.states)==null?void 0:Q.active;return D===Ce&&re||ie?"left":D===0&&le||pe?"right":!1}function $(){u.value=!0,e.pauseOnHover&&b()}function A(){u.value=!1,C()}function R(j){a(v)||n.value.forEach((D,V)=>{j===T(D,V)&&(D.states.hover=!0)})}function M(){a(v)||n.value.forEach(j=>{j.states.hover=!1})}function I(j){l.value=j}function _(j){e.trigger==="hover"&&j!==l.value&&(l.value=j)}function L(){w(l.value-1)}function z(){w(l.value+1)}function H(){b(),C()}ke(()=>l.value,(j,D)=>{E(D),D>-1&&t("change",j,D)}),ke(()=>e.autoplay,j=>{j?C():b()}),ke(()=>e.loop,()=>{w(l.value)}),ke(()=>e.interval,()=>{H()}),ke(()=>n.value,()=>{n.value.length>0&&w(e.initialIndex)});const W=Kt();return ht(()=>{W.value=Bn(c.value,()=>{E()}),C()}),sn(()=>{b(),c.value&&W.value&&W.value.stop()}),gt(Fh,{root:c,isCardType:h,isVertical:v,items:n,loop:e.loop,addItem:r,removeItem:s,setActiveItem:w}),{root:c,activeIndex:l,arrowDisplay:f,hasLabel:d,hover:u,isCardType:h,items:n,handleButtonEnter:R,handleButtonLeave:M,handleIndicatorClick:I,handleMouseEnter:$,handleMouseLeave:A,setActiveItem:w,prev:L,next:z,throttledArrowClick:m,throttledIndicatorHover:g}},_x=["onMouseenter","onClick"],jx={key:0},Yx="ElCarousel",Ux=oe({name:Yx}),Gx=oe({...Ux,props:Hx,emits:Wx,setup(e,{expose:t,emit:o}){const n=e,{root:r,activeIndex:s,arrowDisplay:l,hasLabel:i,hover:u,isCardType:c,items:f,handleButtonEnter:d,handleButtonLeave:h,handleIndicatorClick:v,handleMouseEnter:m,handleMouseLeave:g,setActiveItem:b,prev:C,next:k,throttledArrowClick:w,throttledIndicatorHover:E}=Kx(n,o),T=be("carousel"),$=x(()=>{const R=[T.b(),T.m(n.direction)];return a(c)&&R.push(T.m("card")),R}),A=x(()=>{const R=[T.e("indicators"),T.em("indicators",n.direction)];return a(i)&&R.push(T.em("indicators","labels")),(n.indicatorPosition==="outside"||a(c))&&R.push(T.em("indicators","outside")),R});return t({setActiveItem:b,prev:C,next:k}),(R,M)=>(N(),U("div",{ref_key:"root",ref:r,class:P(a($)),onMouseenter:M[6]||(M[6]=nt((...I)=>a(m)&&a(m)(...I),["stop"])),onMouseleave:M[7]||(M[7]=nt((...I)=>a(g)&&a(g)(...I),["stop"]))},[te("div",{class:P(a(T).e("container")),style:je({height:R.height})},[a(l)?(N(),fe(cn,{key:0,name:"carousel-arrow-left",persisted:""},{default:se(()=>[lt(te("button",{type:"button",class:P([a(T).e("arrow"),a(T).em("arrow","left")]),onMouseenter:M[0]||(M[0]=I=>a(d)("left")),onMouseleave:M[1]||(M[1]=(...I)=>a(h)&&a(h)(...I)),onClick:M[2]||(M[2]=nt(I=>a(w)(a(s)-1),["stop"]))},[Z(a(_e),null,{default:se(()=>[Z(a(Mo))]),_:1})],34),[[xt,(R.arrow==="always"||a(u))&&(n.loop||a(s)>0)]])]),_:1})):de("v-if",!0),a(l)?(N(),fe(cn,{key:1,name:"carousel-arrow-right",persisted:""},{default:se(()=>[lt(te("button",{type:"button",class:P([a(T).e("arrow"),a(T).em("arrow","right")]),onMouseenter:M[3]||(M[3]=I=>a(d)("right")),onMouseleave:M[4]||(M[4]=(...I)=>a(h)&&a(h)(...I)),onClick:M[5]||(M[5]=nt(I=>a(w)(a(s)+1),["stop"]))},[Z(a(_e),null,{default:se(()=>[Z(a(wn))]),_:1})],34),[[xt,(R.arrow==="always"||a(u))&&(n.loop||a(s)(N(),U("li",{key:_,class:P([a(T).e("indicator"),a(T).em("indicator",R.direction),a(T).is("active",_===a(s))]),onMouseenter:L=>a(E)(_),onClick:nt(L=>a(v)(_),["stop"])},[te("button",{class:P(a(T).e("button"))},[a(i)?(N(),U("span",jx,Ne(I.props.label),1)):de("v-if",!0)],2)],42,_x))),128))],2)):de("v-if",!0)],34))}});var qx=Ie(Gx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const Xx=Re({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Zx=(e,t)=>{const o=Ue(Fh),n=yt(),r=.83,s=F(!1),l=F(0),i=F(1),u=F(!1),c=F(!1),f=F(!1),d=F(!1),{isCardType:h,isVertical:v}=o;function m(w,E,T){const $=T-1,A=E-1,R=E+1,M=T/2;return E===0&&w===$?-1:E===$&&w===0?T:w=M?T+1:w>R&&w-E>=M?-2:w}function g(w,E){var T;const $=((T=o.root.value)==null?void 0:T.offsetWidth)||0;return f.value?$*((2-r)*(w-E)+1)/4:w{var $;const A=a(h),R=($=o.items.value.length)!=null?$:Number.NaN,M=w===E;!A&&!vn(T)&&(d.value=M||w===T),!M&&R>2&&o.loop&&(w=m(w,E,R));const I=a(v);u.value=M,A?(f.value=Math.round(Math.abs(w-E))<=1,l.value=g(w,E),i.value=a(u)?1:r):l.value=b(w,E,I),c.value=!0};function k(){if(o&&a(h)){const w=o.items.value.findIndex(({uid:E})=>E===n.uid);o.setActiveItem(w)}}return ht(()=>{o.addItem({props:e,states:Rt({hover:s,translate:l,scale:i,active:u,ready:c,inStage:f,animating:d}),uid:n.uid,translateItem:C})}),zs(()=>{o.removeItem(n.uid)}),{active:u,animating:d,hover:s,inStage:f,isVertical:v,translate:l,isCardType:h,scale:i,ready:c,handleItemClick:k}},Jx=oe({name:"ElCarouselItem"}),Qx=oe({...Jx,props:Xx,setup(e){const t=e,o=be("carousel"),{active:n,animating:r,hover:s,inStage:l,isVertical:i,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=Zx(t),v=x(()=>{const g=`${`translate${a(i)?"Y":"X"}`}(${a(u)}px)`,b=`scale(${a(f)})`;return{transform:[g,b].join(" ")}});return(m,g)=>lt((N(),U("div",{class:P([a(o).e("item"),a(o).is("active",a(n)),a(o).is("in-stage",a(l)),a(o).is("hover",a(s)),a(o).is("animating",a(r)),{[a(o).em("item","card")]:a(c)}]),style:je(a(v)),onClick:g[0]||(g[0]=(...b)=>a(h)&&a(h)(...b))},[a(c)?lt((N(),U("div",{key:0,class:P(a(o).e("mask"))},null,2)),[[xt,!a(n)]]):de("v-if",!0),ye(m.$slots,"default")],6)),[[xt,a(d)]])}});var Zv=Ie(Qx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const eI=dt(qx,{CarouselItem:Zv}),tI=Ut(Zv),Jv={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:Zn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Qv={[ut]:e=>kt(e)||it(e)||en(e),change:e=>kt(e)||it(e)||en(e)},nI=({model:e,isChecked:t})=>{const o=Ue(Zr,void 0),n=x(()=>{var s,l;const i=(s=o==null?void 0:o.max)==null?void 0:s.value,u=(l=o==null?void 0:o.min)==null?void 0:l.value;return!vn(i)&&e.value.length>=i&&!t.value||!vn(u)&&e.value.length<=u&&t.value});return{isDisabled:Jn(x(()=>(o==null?void 0:o.disabled.value)||n.value)),isLimitDisabled:n}},oI=(e,{model:t,isLimitExceeded:o,hasOwnLabel:n,isDisabled:r,isLabeledByFormItem:s})=>{const l=Ue(Zr,void 0),{formItem:i}=zn(),{emit:u}=yt();function c(m){var g,b;return m===e.trueLabel||m===!0?(g=e.trueLabel)!=null?g:!0:(b=e.falseLabel)!=null?b:!1}function f(m,g){u("change",c(m),g)}function d(m){if(o.value)return;const g=m.target;u("change",c(g.checked),m)}async function h(m){o.value||!n.value&&!r.value&&s.value&&(m.composedPath().some(C=>C.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await Ge(),f(t.value,m)))}const v=x(()=>(l==null?void 0:l.validateEvent)||e.validateEvent);return ke(()=>e.modelValue,()=>{v.value&&(i==null||i.validate("change").catch(m=>on()))}),{handleChange:d,onClickRoot:h}},rI=e=>{const t=F(!1),{emit:o}=yt(),n=Ue(Zr,void 0),r=x(()=>vn(n)===!1),s=F(!1);return{model:x({get(){var i,u;return r.value?(i=n==null?void 0:n.modelValue)==null?void 0:i.value:(u=e.modelValue)!=null?u:t.value},set(i){var u,c;r.value&&ft(i)?(s.value=((u=n==null?void 0:n.max)==null?void 0:u.value)!==void 0&&i.length>(n==null?void 0:n.max.value),s.value===!1&&((c=n==null?void 0:n.changeEvent)==null||c.call(n,i))):(o(ut,i),t.value=i)}}),isGroup:r,isLimitExceeded:s}},sI=(e,t,{model:o})=>{const n=Ue(Zr,void 0),r=F(!1),s=x(()=>{const c=o.value;return en(c)?c:ft(c)?qt(e.label)?c.map(Pr).some(f=>Dn(f,e.label)):c.map(Pr).includes(e.label):c!=null?c===e.trueLabel:!!c}),l=dn(x(()=>{var c;return(c=n==null?void 0:n.size)==null?void 0:c.value}),{prop:!0}),i=dn(x(()=>{var c;return(c=n==null?void 0:n.size)==null?void 0:c.value})),u=x(()=>!!(t.default||e.label));return{checkboxButtonSize:l,isChecked:s,isFocused:r,checkboxSize:i,hasOwnLabel:u}},aI=(e,{model:t})=>{function o(){ft(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&o()},em=(e,t)=>{const{formItem:o}=zn(),{model:n,isGroup:r,isLimitExceeded:s}=rI(e),{isFocused:l,isChecked:i,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:f}=sI(e,t,{model:n}),{isDisabled:d}=nI({model:n,isChecked:i}),{inputId:h,isLabeledByFormItem:v}=fr(e,{formItemContext:o,disableIdGeneration:f,disableIdManagement:r}),{handleChange:m,onClickRoot:g}=oI(e,{model:n,isLimitExceeded:s,hasOwnLabel:f,isDisabled:d,isLabeledByFormItem:v});return aI(e,{model:n}),{inputId:h,isLabeledByFormItem:v,isChecked:i,isDisabled:d,isFocused:l,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:f,model:n,handleChange:m,onClickRoot:g}},lI=["tabindex","role","aria-checked"],iI=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],uI=["id","aria-hidden","disabled","value","name","tabindex"],cI=oe({name:"ElCheckbox"}),dI=oe({...cI,props:Jv,emits:Qv,setup(e){const t=e,o=gn(),{inputId:n,isLabeledByFormItem:r,isChecked:s,isDisabled:l,isFocused:i,checkboxSize:u,hasOwnLabel:c,model:f,handleChange:d,onClickRoot:h}=em(t,o),v=be("checkbox");return(m,g)=>(N(),fe(St(!a(c)&&a(r)?"span":"label"),{class:P([a(v).b(),a(v).m(a(u)),a(v).is("disabled",a(l)),a(v).is("bordered",m.border),a(v).is("checked",a(s))]),"aria-controls":m.indeterminate?m.controls:null,onClick:a(h)},{default:se(()=>[te("span",{class:P([a(v).e("input"),a(v).is("disabled",a(l)),a(v).is("checked",a(s)),a(v).is("indeterminate",m.indeterminate),a(v).is("focus",a(i))]),tabindex:m.indeterminate?0:void 0,role:m.indeterminate?"checkbox":void 0,"aria-checked":m.indeterminate?"mixed":void 0},[m.trueLabel||m.falseLabel?lt((N(),U("input",{key:0,id:a(n),"onUpdate:modelValue":g[0]||(g[0]=b=>Wn(f)?f.value=b:null),class:P(a(v).e("original")),type:"checkbox","aria-hidden":m.indeterminate?"true":"false",name:m.name,tabindex:m.tabindex,disabled:a(l),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:g[1]||(g[1]=(...b)=>a(d)&&a(d)(...b)),onFocus:g[2]||(g[2]=b=>i.value=!0),onBlur:g[3]||(g[3]=b=>i.value=!1)},null,42,iI)),[[Fa,a(f)]]):lt((N(),U("input",{key:1,id:a(n),"onUpdate:modelValue":g[4]||(g[4]=b=>Wn(f)?f.value=b:null),class:P(a(v).e("original")),type:"checkbox","aria-hidden":m.indeterminate?"true":"false",disabled:a(l),value:m.label,name:m.name,tabindex:m.tabindex,onChange:g[5]||(g[5]=(...b)=>a(d)&&a(d)(...b)),onFocus:g[6]||(g[6]=b=>i.value=!0),onBlur:g[7]||(g[7]=b=>i.value=!1)},null,42,uI)),[[Fa,a(f)]]),te("span",{class:P(a(v).e("inner"))},null,2)],10,lI),a(c)?(N(),U("span",{key:0,class:P(a(v).e("label"))},[ye(m.$slots,"default"),m.$slots.default?de("v-if",!0):(N(),U(Qe,{key:0},[It(Ne(m.label),1)],64))],2)):de("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var fI=Ie(dI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const pI=["name","tabindex","disabled","true-value","false-value"],hI=["name","tabindex","disabled","value"],vI=oe({name:"ElCheckboxButton"}),mI=oe({...vI,props:Jv,emits:Qv,setup(e){const t=e,o=gn(),{isFocused:n,isChecked:r,isDisabled:s,checkboxButtonSize:l,model:i,handleChange:u}=em(t,o),c=Ue(Zr,void 0),f=be("checkbox"),d=x(()=>{var h,v,m,g;const b=(v=(h=c==null?void 0:c.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:b,borderColor:b,color:(g=(m=c==null?void 0:c.textColor)==null?void 0:m.value)!=null?g:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}});return(h,v)=>(N(),U("label",{class:P([a(f).b("button"),a(f).bm("button",a(l)),a(f).is("disabled",a(s)),a(f).is("checked",a(r)),a(f).is("focus",a(n))])},[h.trueLabel||h.falseLabel?lt((N(),U("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=m=>Wn(i)?i.value=m:null),class:P(a(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:a(s),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...m)=>a(u)&&a(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1)},null,42,pI)),[[Fa,a(i)]]):lt((N(),U("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=m=>Wn(i)?i.value=m:null),class:P(a(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:a(s),value:h.label,onChange:v[5]||(v[5]=(...m)=>a(u)&&a(u)(...m)),onFocus:v[6]||(v[6]=m=>n.value=!0),onBlur:v[7]||(v[7]=m=>n.value=!1)},null,42,hI)),[[Fa,a(i)]]),h.$slots.default||h.label?(N(),U("span",{key:2,class:P(a(f).be("button","inner")),style:je(a(r)?a(d):void 0)},[ye(h.$slots,"default",{},()=>[It(Ne(h.label),1)])],6)):de("v-if",!0)],2))}});var tm=Ie(mI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const gI=Re({modelValue:{type:ce(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Zn,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),yI={[ut]:e=>ft(e),change:e=>ft(e)},bI=oe({name:"ElCheckboxGroup"}),wI=oe({...bI,props:gI,emits:yI,setup(e,{emit:t}){const o=e,n=be("checkbox"),{formItem:r}=zn(),{inputId:s,isLabeledByFormItem:l}=fr(o,{formItemContext:r}),i=async c=>{t(ut,c),await Ge(),t("change",c)},u=x({get(){return o.modelValue},set(c){i(c)}});return gt(Zr,{...po(tn(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:i}),ke(()=>o.modelValue,()=>{o.validateEvent&&(r==null||r.validate("change").catch(c=>on()))}),(c,f)=>{var d;return N(),fe(St(c.tag),{id:a(s),class:P(a(n).b("group")),role:"group","aria-label":a(l)?void 0:c.label||"checkbox-group","aria-labelledby":a(l)?(d=a(r))==null?void 0:d.labelId:void 0},{default:se(()=>[ye(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var nm=Ie(wI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Un=dt(fI,{CheckboxButton:tm,CheckboxGroup:nm}),CI=Ut(tm),om=Ut(nm),rm=Re({size:Zn,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),SI=Re({...rm,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),sm={[ut]:e=>kt(e)||it(e)||en(e),[Lt]:e=>kt(e)||it(e)||en(e)},am=(e,t)=>{const o=F(),n=Ue(_h,void 0),r=x(()=>!!n),s=x({get(){return r.value?n.modelValue:e.modelValue},set(f){r.value?n.changeEvent(f):t&&t(ut,f),o.value.checked=e.modelValue===e.label}}),l=dn(x(()=>n==null?void 0:n.size)),i=Jn(x(()=>n==null?void 0:n.disabled)),u=F(!1),c=x(()=>i.value||r.value&&s.value!==e.label?-1:0);return{radioRef:o,isGroup:r,radioGroup:n,focus:u,size:l,disabled:i,tabIndex:c,modelValue:s}},kI=["value","name","disabled"],EI=oe({name:"ElRadio"}),$I=oe({...EI,props:SI,emits:sm,setup(e,{emit:t}){const o=e,n=be("radio"),{radioRef:r,radioGroup:s,focus:l,size:i,disabled:u,modelValue:c}=am(o,t);function f(){Ge(()=>t("change",c.value))}return(d,h)=>{var v;return N(),U("label",{class:P([a(n).b(),a(n).is("disabled",a(u)),a(n).is("focus",a(l)),a(n).is("bordered",d.border),a(n).is("checked",a(c)===d.label),a(n).m(a(i))])},[te("span",{class:P([a(n).e("input"),a(n).is("disabled",a(u)),a(n).is("checked",a(c)===d.label)])},[lt(te("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":h[0]||(h[0]=m=>Wn(c)?c.value=m:null),class:P(a(n).e("original")),value:d.label,name:d.name||((v=a(s))==null?void 0:v.name),disabled:a(u),type:"radio",onFocus:h[1]||(h[1]=m=>l.value=!0),onBlur:h[2]||(h[2]=m=>l.value=!1),onChange:f},null,42,kI),[[jp,a(c)]]),te("span",{class:P(a(n).e("inner"))},null,2)],2),te("span",{class:P(a(n).e("label")),onKeydown:h[3]||(h[3]=nt(()=>{},["stop"]))},[ye(d.$slots,"default",{},()=>[It(Ne(d.label),1)])],34)],2)}}});var TI=Ie($I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const OI=Re({...rm,name:{type:String,default:""}}),xI=["value","name","disabled"],II=oe({name:"ElRadioButton"}),MI=oe({...II,props:OI,setup(e){const t=e,o=be("radio"),{radioRef:n,focus:r,size:s,disabled:l,modelValue:i,radioGroup:u}=am(t),c=x(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,d)=>{var h;return N(),U("label",{class:P([a(o).b("button"),a(o).is("active",a(i)===f.label),a(o).is("disabled",a(l)),a(o).is("focus",a(r)),a(o).bm("button",a(s))])},[lt(te("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":d[0]||(d[0]=v=>Wn(i)?i.value=v:null),class:P(a(o).be("button","original-radio")),value:f.label,type:"radio",name:f.name||((h=a(u))==null?void 0:h.name),disabled:a(l),onFocus:d[1]||(d[1]=v=>r.value=!0),onBlur:d[2]||(d[2]=v=>r.value=!1)},null,42,xI),[[jp,a(i)]]),te("span",{class:P(a(o).be("button","inner")),style:je(a(i)===f.label?a(c):{}),onKeydown:d[3]||(d[3]=nt(()=>{},["stop"]))},[ye(f.$slots,"default",{},()=>[It(Ne(f.label),1)])],38)],2)}}});var lm=Ie(MI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const NI=Re({id:{type:String,default:void 0},size:Zn,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}}),PI=sm,RI=["id","aria-label","aria-labelledby"],AI=oe({name:"ElRadioGroup"}),DI=oe({...AI,props:NI,emits:PI,setup(e,{emit:t}){const o=e,n=be("radio"),r=Do(),s=F(),{formItem:l}=zn(),{inputId:i,isLabeledByFormItem:u}=fr(o,{formItemContext:l}),c=d=>{t(ut,d),Ge(()=>t("change",d))};ht(()=>{const d=s.value.querySelectorAll("[type=radio]"),h=d[0];!Array.from(d).some(v=>v.checked)&&h&&(h.tabIndex=0)});const f=x(()=>o.name||r.value);return gt(_h,Rt({...tn(o),changeEvent:c,name:f})),ke(()=>o.modelValue,()=>{o.validateEvent&&(l==null||l.validate("change").catch(d=>on()))}),(d,h)=>(N(),U("div",{id:a(i),ref_key:"radioGroupRef",ref:s,class:P(a(n).b("group")),role:"radiogroup","aria-label":a(u)?void 0:d.label||"radio-group","aria-labelledby":a(u)?a(l).labelId:void 0},[ye(d.$slots,"default")],10,RI))}});var im=Ie(DI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const um=dt(TI,{RadioButton:lm,RadioGroup:im}),LI=Ut(im),BI=Ut(lm);var zI=oe({name:"NodeContent",setup(){return{ns:be("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:o}=this.$parent,{data:n,label:r}=t,{renderLabelFn:s}=o;return Ke("span",{class:e.e("label")},s?s({node:t,data:n}):r)}});const ic=Symbol(),VI=oe({name:"ElCascaderNode",components:{ElCheckbox:Un,ElRadio:um,NodeContent:zI,ElIcon:_e,Check:Vs,Loading:Gr,ArrowRight:wn},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const o=Ue(ic),n=be("cascader-node"),r=x(()=>o.isHoverMenu),s=x(()=>o.config.multiple),l=x(()=>o.config.checkStrictly),i=x(()=>{var $;return($=o.checkedNodes[0])==null?void 0:$.uid}),u=x(()=>e.node.isDisabled),c=x(()=>e.node.isLeaf),f=x(()=>l.value&&!c.value||!u.value),d=x(()=>v(o.expandingNode)),h=x(()=>l.value&&o.checkedNodes.some(v)),v=$=>{var A;const{level:R,uid:M}=e.node;return((A=$==null?void 0:$.pathNodes[R-1])==null?void 0:A.uid)===M},m=()=>{d.value||o.expandNode(e.node)},g=$=>{const{node:A}=e;$!==A.checked&&o.handleCheckChange(A,$)},b=()=>{o.lazyLoad(e.node,()=>{c.value||m()})},C=$=>{!r.value||(k(),!c.value&&t("expand",$))},k=()=>{const{node:$}=e;!f.value||$.loading||($.loaded?m():b())},w=()=>{r.value&&!c.value||(c.value&&!u.value&&!l.value&&!s.value?T(!0):k())},E=$=>{l.value?(g($),e.node.loaded&&m()):T($)},T=$=>{e.node.loaded?(g($),!l.value&&m()):b()};return{panel:o,isHoverMenu:r,multiple:s,checkStrictly:l,checkedNodeId:i,isDisabled:u,isLeaf:c,expandable:f,inExpandingPath:d,inCheckedPath:h,ns:n,handleHoverExpand:C,handleExpand:k,handleClick:w,handleCheck:T,handleSelectCheck:E}}}),FI=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],HI=te("span",null,null,-1);function WI(e,t,o,n,r,s){const l=tt("el-checkbox"),i=tt("el-radio"),u=tt("check"),c=tt("el-icon"),f=tt("node-content"),d=tt("loading"),h=tt("arrow-right");return N(),U("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:P([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...v)=>e.handleHoverExpand&&e.handleHoverExpand(...v)),onFocus:t[3]||(t[3]=(...v)=>e.handleHoverExpand&&e.handleHoverExpand(...v)),onClick:t[4]||(t[4]=(...v)=>e.handleClick&&e.handleClick(...v))},[de(" prefix "),e.multiple?(N(),fe(l,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=nt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(N(),fe(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=nt(()=>{},["stop"]))},{default:se(()=>[de(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),HI]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(N(),fe(c,{key:2,class:P(e.ns.e("prefix"))},{default:se(()=>[Z(u)]),_:1},8,["class"])):de("v-if",!0),de(" content "),Z(f),de(" postfix "),e.isLeaf?de("v-if",!0):(N(),U(Qe,{key:3},[e.node.loading?(N(),fe(c,{key:0,class:P([e.ns.is("loading"),e.ns.e("postfix")])},{default:se(()=>[Z(d)]),_:1},8,["class"])):(N(),fe(c,{key:1,class:P(["arrow-right",e.ns.e("postfix")])},{default:se(()=>[Z(h)]),_:1},8,["class"]))],64))],42,FI)}var KI=Ie(VI,[["render",WI],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _I=oe({name:"ElCascaderMenu",components:{Loading:Gr,ElIcon:_e,ElScrollbar:So,ElCascaderNode:KI},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=yt(),o=be("cascader-menu"),{t:n}=$t(),r=vl();let s=null,l=null;const i=Ue(ic),u=F(null),c=x(()=>!e.nodes.length),f=x(()=>!i.initialLoaded),d=x(()=>`cascader-menu-${r}-${e.index}`),h=b=>{s=b.target},v=b=>{if(!(!i.isHoverMenu||!s||!u.value))if(s.contains(b.target)){m();const C=t.vnode.el,{left:k}=C.getBoundingClientRect(),{offsetWidth:w,offsetHeight:E}=C,T=b.clientX-k,$=s.offsetTop,A=$+s.offsetHeight;u.value.innerHTML=` + + + `}else l||(l=window.setTimeout(g,i.config.hoverThreshold))},m=()=>{!l||(clearTimeout(l),l=null)},g=()=>{!u.value||(u.value.innerHTML="",m())};return{ns:o,panel:i,hoverZone:u,isEmpty:c,isLoading:f,menuId:d,t:n,handleExpand:h,handleMouseMove:v,clearHoverZone:g}}});function jI(e,t,o,n,r,s){const l=tt("el-cascader-node"),i=tt("loading"),u=tt("el-icon"),c=tt("el-scrollbar");return N(),fe(c,{key:e.menuId,tag:"ul",role:"menu",class:P(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:se(()=>{var f;return[(N(!0),U(Qe,null,bt(e.nodes,d=>(N(),fe(l,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(N(),U("div",{key:0,class:P(e.ns.e("empty-text"))},[Z(u,{size:"14",class:P(e.ns.is("loading"))},{default:se(()=>[Z(i)]),_:1},8,["class"]),It(" "+Ne(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(N(),U("div",{key:1,class:P(e.ns.e("empty-text"))},Ne(e.t("el.cascader.noData")),3)):(f=e.panel)!=null&&f.isHoverMenu?(N(),U("svg",{key:2,ref:"hoverZone",class:P(e.ns.e("hover-zone"))},null,2)):de("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var YI=Ie(_I,[["render",jI],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let UI=0;const GI=e=>{const t=[e];let{parent:o}=e;for(;o;)t.unshift(o),o=o.parent;return t};let Os=class{constructor(t,o,n,r=!1){this.data=t,this.config=o,this.parent=n,this.root=r,this.uid=UI++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:s,label:l,children:i}=o,u=t[i],c=GI(this);this.level=r?0:n?n.level+1:1,this.value=t[s],this.label=t[l],this.pathNodes=c,this.pathValues=c.map(f=>f.value),this.pathLabels=c.map(f=>f.label),this.childrenData=u,this.children=(u||[]).map(f=>new Os(f,o,this)),this.loaded=!o.lazy||this.isLeaf||!Vn(u)}get isDisabled(){const{data:t,parent:o,config:n}=this,{disabled:r,checkStrictly:s}=n;return(At(r)?r(t,this):!!t[r])||!s&&(o==null?void 0:o.isDisabled)}get isLeaf(){const{data:t,config:o,childrenData:n,loaded:r}=this,{lazy:s,leaf:l}=o,i=At(l)?l(t,this):t[l];return vn(i)?s&&!r?!1:!(Array.isArray(n)&&n.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:o,children:n}=this,r=new Os(t,this.config,this);return Array.isArray(o)?o.push(t):this.childrenData=[t],n.push(r),r}calcText(t,o){const n=t?this.pathLabels.join(o):this.label;return this.text=n,n}broadcast(t,...o){const n=`onParent${Fn(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...o),r[n]&&r[n](...o))})}emit(t,...o){const{parent:n}=this,r=`onChild${Fn(t)}`;n&&(n[r]&&n[r](...o),n.emit(t,...o))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,o=t.filter(r=>!r.isDisabled),n=o.length?o.every(r=>r.checked):!1;this.setCheckState(n)}setCheckState(t){const o=this.children.length,n=this.children.reduce((r,s)=>{const l=s.checked?1:s.indeterminate?.5:0;return r+l},0);this.checked=this.loaded&&this.children.filter(r=>!r.isDisabled).every(r=>r.loaded&&r.checked)&&t,this.indeterminate=this.loaded&&n!==o&&n>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:o,multiple:n}=this.config;o||!n?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Ki=(e,t)=>e.reduce((o,n)=>(n.isLeaf?o.push(n):(!t&&o.push(n),o=o.concat(Ki(n.children,t))),o),[]);class _f{constructor(t,o){this.config=o;const n=(t||[]).map(r=>new Os(r,this.config));this.nodes=n,this.allNodes=Ki(n,!1),this.leafNodes=Ki(n,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,o){const n=o?o.appendChild(t):new Os(t,this.config);o||this.nodes.push(n),this.allNodes.push(n),n.isLeaf&&this.leafNodes.push(n)}appendNodes(t,o){t.forEach(n=>this.appendNode(n,o))}getNodeByValue(t,o=!1){return!t&&t!==0?null:this.getFlattedNodes(o).find(r=>Dn(r.value,t)||Dn(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:n,level:r})=>Dn(t.value,n)&&t.level===r)||null}}const cm={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},qI={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Qt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},XI=e=>x(()=>({...qI,...e.props})),jf=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},ZI=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Cw(e)&&e.click()},JI=(e,t)=>{const o=t.slice(0),n=o.map(s=>s.uid),r=e.reduce((s,l)=>{const i=n.indexOf(l.uid);return i>-1&&(s.push(l),o.splice(i,1),n.splice(i,1)),s},[]);return r.push(...o),r},QI=oe({name:"ElCascaderPanel",components:{ElCascaderMenu:YI},props:{...cm,border:{type:Boolean,default:!0},renderLabel:Function},emits:[ut,Lt,"close","expand-change"],setup(e,{emit:t,slots:o}){let n=!1;const r=be("cascader"),s=XI(e);let l=null;const i=F(!0),u=F([]),c=F(null),f=F([]),d=F(null),h=F([]),v=x(()=>s.value.expandTrigger==="hover"),m=x(()=>e.renderLabel||o.default),g=()=>{const{options:L}=e,z=s.value;n=!1,l=new _f(L,z),f.value=[l.getNodes()],z.lazy&&Vn(e.options)?(i.value=!1,b(void 0,H=>{H&&(l=new _f(H,z),f.value=[l.getNodes()]),i.value=!0,R(!1,!0)})):R(!1,!0)},b=(L,z)=>{const H=s.value;L=L||new Os({},H,void 0,!0),L.loading=!0;const W=j=>{const D=L,V=D.root?null:D;j&&(l==null||l.appendNodes(j,V)),D.loading=!1,D.loaded=!0,D.childrenData=D.childrenData||[],z&&z(j)};H.lazyLoad(L,W)},C=(L,z)=>{var H;const{level:W}=L,j=f.value.slice(0,W);let D;L.isLeaf?D=L.pathNodes[W-2]:(D=L,j.push(L.children)),((H=d.value)==null?void 0:H.uid)!==(D==null?void 0:D.uid)&&(d.value=L,f.value=j,!z&&t("expand-change",(L==null?void 0:L.pathValues)||[]))},k=(L,z,H=!0)=>{const{checkStrictly:W,multiple:j}=s.value,D=h.value[0];n=!0,!j&&(D==null||D.doCheck(!1)),L.doCheck(z),A(),H&&!j&&!W&&t("close"),!H&&!j&&!W&&w(L)},w=L=>{!L||(L=L.parent,w(L),L&&C(L))},E=L=>l==null?void 0:l.getFlattedNodes(L),T=L=>{var z;return(z=E(L))==null?void 0:z.filter(H=>H.checked!==!1)},$=()=>{h.value.forEach(L=>L.doCheck(!1)),A()},A=()=>{var L;const{checkStrictly:z,multiple:H}=s.value,W=h.value,j=T(!z),D=JI(W,j),V=D.map(B=>B.valueByOption);h.value=D,c.value=H?V:(L=V[0])!=null?L:null},R=(L=!1,z=!1)=>{const{modelValue:H}=e,{lazy:W,multiple:j,checkStrictly:D}=s.value,V=!D;if(!(!i.value||n||!z&&Dn(H,c.value)))if(W&&!L){const X=cf(Z1(vo(H))).map(Q=>l==null?void 0:l.getNodeByValue(Q)).filter(Q=>!!Q&&!Q.loaded&&!Q.loading);X.length?X.forEach(Q=>{b(Q,()=>R(!1,z))}):R(!0,z)}else{const B=j?vo(H):[H],X=cf(B.map(Q=>l==null?void 0:l.getNodeByValue(Q,V)));M(X,z),c.value=Ph(H)}},M=(L,z=!0)=>{const{checkStrictly:H}=s.value,W=h.value,j=L.filter(B=>!!B&&(H||B.isLeaf)),D=l==null?void 0:l.getSameNode(d.value),V=z&&D||j[0];V?V.pathNodes.forEach(B=>C(B,!0)):d.value=null,W.forEach(B=>B.doCheck(!1)),j.forEach(B=>B.doCheck(!0)),h.value=j,Ge(I)},I=()=>{!Dt||u.value.forEach(L=>{const z=L==null?void 0:L.$el;if(z){const H=z.querySelector(`.${r.namespace.value}-scrollbar__wrap`),W=z.querySelector(`.${r.b("node")}.${r.is("active")}`)||z.querySelector(`.${r.b("node")}.in-active-path`);dh(H,W)}})},_=L=>{const z=L.target,{code:H}=L;switch(H){case Ye.up:case Ye.down:{L.preventDefault();const W=H===Ye.up?-1:1;ga(fh(z,W,`.${r.b("node")}[tabindex="-1"]`));break}case Ye.left:{L.preventDefault();const W=u.value[jf(z)-1],j=W==null?void 0:W.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);ga(j);break}case Ye.right:{L.preventDefault();const W=u.value[jf(z)+1],j=W==null?void 0:W.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);ga(j);break}case Ye.enter:ZI(z);break}};return gt(ic,Rt({config:s,expandingNode:d,checkedNodes:h,isHoverMenu:v,initialLoaded:i,renderLabelFn:m,lazyLoad:b,expandNode:C,handleCheckChange:k})),ke([s,()=>e.options],g,{deep:!0,immediate:!0}),ke(()=>e.modelValue,()=>{n=!1,R()},{deep:!0}),ke(()=>c.value,L=>{Dn(L,e.modelValue)||(t(ut,L),t(Lt,L))}),d0(()=>u.value=[]),ht(()=>!Vn(e.modelValue)&&R()),{ns:r,menuList:u,menus:f,checkedNodes:h,handleKeyDown:_,handleCheckChange:k,getFlattedNodes:E,getCheckedNodes:T,clearCheckedNodes:$,calculateCheckedValue:A,scrollToExpandingNode:I}}});function eM(e,t,o,n,r,s){const l=tt("el-cascader-menu");return N(),U("div",{class:P([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...i)=>e.handleKeyDown&&e.handleKeyDown(...i))},[(N(!0),U(Qe,null,bt(e.menus,(i,u)=>(N(),fe(l,{key:u,ref_for:!0,ref:c=>e.menuList[u]=c,index:u,nodes:[...i]},null,8,["index","nodes"]))),128))],34)}var Ea=Ie(QI,[["render",eM],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);Ea.install=e=>{e.component(Ea.name,Ea)};const dm=Ea,tM=dm,uc=Re({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:dr,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),nM={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},oM=oe({name:"ElTag"}),rM=oe({...oM,props:uc,emits:nM,setup(e,{emit:t}){const o=e,n=dn(),r=be("tag"),s=x(()=>{const{type:u,hit:c,effect:f,closable:d,round:h}=o;return[r.b(),r.is("closable",d),r.m(u),r.m(n.value),r.m(f),r.is("hit",c),r.is("round",h)]}),l=u=>{t("close",u)},i=u=>{t("click",u)};return(u,c)=>u.disableTransitions?(N(),U("span",{key:0,class:P(a(s)),style:je({backgroundColor:u.color}),onClick:i},[te("span",{class:P(a(r).e("content"))},[ye(u.$slots,"default")],2),u.closable?(N(),fe(a(_e),{key:0,class:P(a(r).e("close")),onClick:nt(l,["stop"])},{default:se(()=>[Z(a(mo))]),_:1},8,["class","onClick"])):de("v-if",!0)],6)):(N(),fe(cn,{key:1,name:`${a(r).namespace.value}-zoom-in-center`,appear:""},{default:se(()=>[te("span",{class:P(a(s)),style:je({backgroundColor:u.color}),onClick:i},[te("span",{class:P(a(r).e("content"))},[ye(u.$slots,"default")],2),u.closable?(N(),fe(a(_e),{key:0,class:P(a(r).e("close")),onClick:nt(l,["stop"])},{default:se(()=>[Z(a(mo))]),_:1},8,["class","onClick"])):de("v-if",!0)],6)]),_:3},8,["name"]))}});var sM=Ie(rM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const kl=dt(sM),aM={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:o}=e;["right","left","bottom","top"].includes(o)||(t.arrow.x=35)},requires:["arrow"]}]},lM="ElCascader",iM=oe({name:lM,components:{ElCascaderPanel:dm,ElInput:bn,ElTooltip:xn,ElScrollbar:So,ElTag:kl,ElIcon:_e,CircleClose:qr,Check:Vs,ArrowDown:Vo},directives:{Clickoutside:zo},props:{...cm,size:{type:String,validator:Fs},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},teleported:ln.teleported,tagType:{...uc.type,default:"info"},validateEvent:{type:Boolean,default:!0}},emits:[ut,Lt,"focus","blur","visible-change","expand-change","remove-tag"],setup(e,{emit:t}){let o=0,n=0;const r=be("cascader"),s=be("input"),{t:l}=$t(),{form:i,formItem:u}=zn(),c=F(null),f=F(null),d=F(null),h=F(null),v=F(null),m=F(!1),g=F(!1),b=F(!1),C=F(""),k=F(""),w=F([]),E=F([]),T=F([]),$=F(!1),A=x(()=>e.disabled||(i==null?void 0:i.disabled)),R=x(()=>e.placeholder||l("el.cascader.placeholder")),M=x(()=>k.value||w.value.length>0?"":R.value),I=dn(),_=x(()=>["small"].includes(I.value)?"small":"default"),L=x(()=>!!e.props.multiple),z=x(()=>!e.filterable||L.value),H=x(()=>L.value?k.value:C.value),W=x(()=>{var Se;return((Se=h.value)==null?void 0:Se.checkedNodes)||[]}),j=x(()=>!e.clearable||A.value||b.value||!g.value?!1:!!W.value.length),D=x(()=>{const{showAllLevels:Se,separator:Oe}=e,De=W.value;return De.length?L.value?"":De[0].calcText(Se,Oe):""}),V=x({get(){return Ph(e.modelValue)},set(Se){t(ut,Se),t(Lt,Se),e.validateEvent&&(u==null||u.validate("change").catch(Oe=>on()))}}),B=x(()=>{var Se,Oe;return(Oe=(Se=c.value)==null?void 0:Se.popperRef)==null?void 0:Oe.contentRef}),X=Se=>{var Oe,De,Je;A.value||(Se=Se??!m.value,Se!==m.value&&(m.value=Se,(De=(Oe=f.value)==null?void 0:Oe.input)==null||De.setAttribute("aria-expanded",`${Se}`),Se?(Q(),Ge((Je=h.value)==null?void 0:Je.scrollToExpandingNode)):e.filterable&&xe(),t("visible-change",Se)))},Q=()=>{Ge(()=>{var Se;(Se=c.value)==null||Se.updatePopper()})},q=()=>{b.value=!1},ee=Se=>{const{showAllLevels:Oe,separator:De}=e;return{node:Se,key:Se.uid,text:Se.calcText(Oe,De),hitState:!1,closable:!A.value&&!Se.isDisabled,isCollapseTag:!1}},ve=Se=>{var Oe;const De=Se.node;De.doCheck(!1),(Oe=h.value)==null||Oe.calculateCheckedValue(),t("remove-tag",De.valueByOption)},me=()=>{if(!L.value)return;const Se=W.value,Oe=[],De=[];if(Se.forEach(Je=>De.push(ee(Je))),E.value=De,Se.length){const[Je,...rt]=Se,st=rt.length;Oe.push(ee(Je)),st&&(e.collapseTags?Oe.push({key:-1,text:`+ ${st}`,closable:!1,isCollapseTag:!0}):rt.forEach(Ee=>Oe.push(ee(Ee))))}w.value=Oe},Ce=()=>{var Se,Oe;const{filterMethod:De,showAllLevels:Je,separator:rt}=e,st=(Oe=(Se=h.value)==null?void 0:Se.getFlattedNodes(!e.props.checkStrictly))==null?void 0:Oe.filter(Ee=>Ee.isDisabled?!1:(Ee.calcText(Je,rt),De(Ee,H.value)));L.value&&(w.value.forEach(Ee=>{Ee.hitState=!1}),E.value.forEach(Ee=>{Ee.hitState=!1})),b.value=!0,T.value=st,Q()},le=()=>{var Se;let Oe;b.value&&v.value?Oe=v.value.$el.querySelector(`.${r.e("suggestion-item")}`):Oe=(Se=h.value)==null?void 0:Se.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!b.value&&Oe.click())},re=()=>{var Se,Oe;const De=(Se=f.value)==null?void 0:Se.input,Je=d.value,rt=(Oe=v.value)==null?void 0:Oe.$el;if(!(!Dt||!De)){if(rt){const st=rt.querySelector(`.${r.e("suggestion-list")}`);st.style.minWidth=`${De.offsetWidth}px`}if(Je){const{offsetHeight:st}=Je,Ee=w.value.length>0?`${Math.max(st+6,o)}px`:`${o}px`;De.style.height=Ee,Q()}}},ie=Se=>{var Oe;return(Oe=h.value)==null?void 0:Oe.getCheckedNodes(Se)},pe=Se=>{Q(),t("expand-change",Se)},Ae=Se=>{var Oe;const De=(Oe=Se.target)==null?void 0:Oe.value;if(Se.type==="compositionend")$.value=!1,Ge(()=>ze(De));else{const Je=De[De.length-1]||"";$.value=!Mu(Je)}},Le=Se=>{if(!$.value)switch(Se.code){case Ye.enter:X();break;case Ye.down:X(!0),Ge(le),Se.preventDefault();break;case Ye.esc:m.value===!0&&(Se.preventDefault(),Se.stopPropagation(),X(!1));break;case Ye.tab:X(!1);break}},Xe=()=>{var Se;(Se=h.value)==null||Se.clearCheckedNodes(),!m.value&&e.filterable&&xe(),X(!1)},xe=()=>{const{value:Se}=D;C.value=Se,k.value=Se},He=Se=>{var Oe,De;const{checked:Je}=Se;L.value?(Oe=h.value)==null||Oe.handleCheckChange(Se,!Je,!1):(!Je&&((De=h.value)==null||De.handleCheckChange(Se,!0,!1)),X(!1))},ot=Se=>{const Oe=Se.target,{code:De}=Se;switch(De){case Ye.up:case Ye.down:{const Je=De===Ye.up?-1:1;ga(fh(Oe,Je,`.${r.e("suggestion-item")}[tabindex="-1"]`));break}case Ye.enter:Oe.click();break}},Pe=()=>{const Se=w.value,Oe=Se[Se.length-1];n=k.value?0:n+1,!(!Oe||!n||e.collapseTags&&Se.length>1)&&(Oe.hitState?ve(Oe):Oe.hitState=!0)},qe=kn(()=>{const{value:Se}=H;if(!Se)return;const Oe=e.beforeFilter(Se);Ti(Oe)?Oe.then(Ce).catch(()=>{}):Oe!==!1?Ce():q()},e.debounce),ze=(Se,Oe)=>{!m.value&&X(!0),!(Oe!=null&&Oe.isComposing)&&(Se?qe():q())};return ke(b,Q),ke([W,A],me),ke(w,()=>{Ge(()=>re())}),ke(D,xe,{immediate:!0}),ht(()=>{const Se=f.value.input,Oe=Number.parseFloat(aw(s.cssVarName("input-height"),Se).value)-2;o=Se.offsetHeight||Oe,Bn(Se,re)}),{popperOptions:aM,tooltipRef:c,popperPaneRef:B,input:f,tagWrapper:d,panel:h,suggestionPanel:v,popperVisible:m,inputHover:g,inputPlaceholder:R,currentPlaceholder:M,filtering:b,presentText:D,checkedValue:V,inputValue:C,searchInputValue:k,presentTags:w,allPresentTags:E,suggestions:T,isDisabled:A,isOnComposition:$,realSize:I,tagSize:_,multiple:L,readonly:z,clearBtnVisible:j,nsCascader:r,nsInput:s,t:l,togglePopperVisible:X,hideSuggestionPanel:q,deleteTag:ve,focusFirstNode:le,getCheckedNodes:ie,handleExpandChange:pe,handleKeyDown:Le,handleComposition:Ae,handleClear:Xe,handleSuggestionClick:He,handleSuggestionKeyDown:ot,handleDelete:Pe,handleInput:ze}}}),uM={key:0},cM=["placeholder"],dM=["onClick"];function fM(e,t,o,n,r,s){const l=tt("circle-close"),i=tt("el-icon"),u=tt("arrow-down"),c=tt("el-input"),f=tt("el-tag"),d=tt("el-tooltip"),h=tt("el-cascader-panel"),v=tt("check"),m=tt("el-scrollbar"),g=Rr("clickoutside");return N(),fe(d,{ref:"tooltipRef",visible:e.popperVisible,teleported:e.teleported,"popper-class":[e.nsCascader.e("dropdown"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${e.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:e.hideSuggestionPanel},{default:se(()=>[lt((N(),U("div",{class:P([e.nsCascader.b(),e.nsCascader.m(e.realSize),e.nsCascader.is("disabled",e.isDisabled),e.$attrs.class]),style:je(e.$attrs.style),onClick:t[11]||(t[11]=()=>e.togglePopperVisible(e.readonly?void 0:!0)),onKeydown:t[12]||(t[12]=(...b)=>e.handleKeyDown&&e.handleKeyDown(...b)),onMouseenter:t[13]||(t[13]=b=>e.inputHover=!0),onMouseleave:t[14]||(t[14]=b=>e.inputHover=!1)},[Z(c,{ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=b=>e.inputValue=b),placeholder:e.currentPlaceholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1,size:e.realSize,class:P(e.nsCascader.is("focus",e.popperVisible)),onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onFocus:t[2]||(t[2]=b=>e.$emit("focus",b)),onBlur:t[3]||(t[3]=b=>e.$emit("blur",b)),onInput:e.handleInput},{suffix:se(()=>[e.clearBtnVisible?(N(),fe(i,{key:"clear",class:P([e.nsInput.e("icon"),"icon-circle-close"]),onClick:nt(e.handleClear,["stop"])},{default:se(()=>[Z(l)]),_:1},8,["class","onClick"])):(N(),fe(i,{key:"arrow-down",class:P([e.nsInput.e("icon"),"icon-arrow-down",e.nsCascader.is("reverse",e.popperVisible)]),onClick:t[0]||(t[0]=nt(b=>e.togglePopperVisible(),["stop"]))},{default:se(()=>[Z(u)]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),e.multiple?(N(),U("div",{key:0,ref:"tagWrapper",class:P(e.nsCascader.e("tags"))},[(N(!0),U(Qe,null,bt(e.presentTags,b=>(N(),fe(f,{key:b.key,type:e.tagType,size:e.tagSize,hit:b.hitState,closable:b.closable,"disable-transitions":"",onClose:C=>e.deleteTag(b)},{default:se(()=>[b.isCollapseTag===!1?(N(),U("span",uM,Ne(b.text),1)):(N(),fe(d,{key:1,disabled:e.popperVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:se(()=>[te("span",null,Ne(b.text),1)]),content:se(()=>[te("div",{class:P(e.nsCascader.e("collapse-tags"))},[(N(!0),U(Qe,null,bt(e.allPresentTags.slice(1),(C,k)=>(N(),U("div",{key:k,class:P(e.nsCascader.e("collapse-tag"))},[(N(),fe(f,{key:C.key,class:"in-tooltip",type:e.tagType,size:e.tagSize,hit:C.hitState,closable:C.closable,"disable-transitions":"",onClose:w=>e.deleteTag(C)},{default:se(()=>[te("span",null,Ne(C.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),e.filterable&&!e.isDisabled?lt((N(),U("input",{key:0,"onUpdate:modelValue":t[4]||(t[4]=b=>e.searchInputValue=b),type:"text",class:P(e.nsCascader.e("search-input")),placeholder:e.presentText?"":e.inputPlaceholder,onInput:t[5]||(t[5]=b=>e.handleInput(e.searchInputValue,b)),onClick:t[6]||(t[6]=nt(b=>e.togglePopperVisible(!0),["stop"])),onKeydown:t[7]||(t[7]=Et((...b)=>e.handleDelete&&e.handleDelete(...b),["delete"])),onCompositionstart:t[8]||(t[8]=(...b)=>e.handleComposition&&e.handleComposition(...b)),onCompositionupdate:t[9]||(t[9]=(...b)=>e.handleComposition&&e.handleComposition(...b)),onCompositionend:t[10]||(t[10]=(...b)=>e.handleComposition&&e.handleComposition(...b))},null,42,cM)),[[Cu,e.searchInputValue]]):de("v-if",!0)],2)):de("v-if",!0)],38)),[[g,()=>e.togglePopperVisible(!1),e.popperPaneRef]])]),content:se(()=>[lt(Z(h,{ref:"panel",modelValue:e.checkedValue,"onUpdate:modelValue":t[15]||(t[15]=b=>e.checkedValue=b),options:e.options,props:e.props,border:!1,"render-label":e.$slots.default,onExpandChange:e.handleExpandChange,onClose:t[16]||(t[16]=b=>e.$nextTick(()=>e.togglePopperVisible(!1)))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[xt,!e.filtering]]),e.filterable?lt((N(),fe(m,{key:0,ref:"suggestionPanel",tag:"ul",class:P(e.nsCascader.e("suggestion-panel")),"view-class":e.nsCascader.e("suggestion-list"),onKeydown:e.handleSuggestionKeyDown},{default:se(()=>[e.suggestions.length?(N(!0),U(Qe,{key:0},bt(e.suggestions,b=>(N(),U("li",{key:b.uid,class:P([e.nsCascader.e("suggestion-item"),e.nsCascader.is("checked",b.checked)]),tabindex:-1,onClick:C=>e.handleSuggestionClick(b)},[te("span",null,Ne(b.text),1),b.checked?(N(),fe(i,{key:0},{default:se(()=>[Z(v)]),_:1})):de("v-if",!0)],10,dM))),128)):ye(e.$slots,"empty",{key:1},()=>[te("li",{class:P(e.nsCascader.e("empty-text"))},Ne(e.t("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class","onKeydown"])),[[xt,e.filtering]]):de("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var $a=Ie(iM,[["render",fM],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/index.vue"]]);$a.install=e=>{e.component($a.name,$a)};const pM=$a,hM=pM,vM=Re({checked:{type:Boolean,default:!1}}),mM={"update:checked":e=>en(e),[Lt]:e=>en(e)},gM=oe({name:"ElCheckTag"}),yM=oe({...gM,props:vM,emits:mM,setup(e,{emit:t}){const o=e,n=be("check-tag"),r=()=>{const s=!o.checked;t(Lt,s),t("update:checked",s)};return(s,l)=>(N(),U("span",{class:P([a(n).b(),a(n).is("checked",s.checked)]),onClick:r},[ye(s.$slots,"default")],2))}});var bM=Ie(yM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const wM=dt(bM),CM=Re({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:ce([Number,Object]),default:()=>_t({})},sm:{type:ce([Number,Object]),default:()=>_t({})},md:{type:ce([Number,Object]),default:()=>_t({})},lg:{type:ce([Number,Object]),default:()=>_t({})},xl:{type:ce([Number,Object]),default:()=>_t({})}}),SM=oe({name:"ElCol"}),kM=oe({...SM,props:CM,setup(e){const t=e,{gutter:o}=Ue(jh,{gutter:x(()=>0)}),n=be("col"),r=x(()=>{const l={};return o.value&&(l.paddingLeft=l.paddingRight=`${o.value/2}px`),l}),s=x(()=>{const l=[];return["span","offset","pull","push"].forEach(c=>{const f=t[c];it(f)&&(c==="span"?l.push(n.b(`${t[c]}`)):f>0&&l.push(n.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{it(t[c])?l.push(n.b(`${c}-${t[c]}`)):qt(t[c])&&Object.entries(t[c]).forEach(([f,d])=>{l.push(f!=="span"?n.b(`${c}-${f}-${d}`):n.b(`${c}-${d}`))})}),o.value&&l.push(n.is("guttered")),[n.b(),l]});return(l,i)=>(N(),fe(St(l.tag),{class:P(a(s)),style:je(a(r))},{default:se(()=>[ye(l.$slots,"default")]),_:3},8,["class","style"]))}});var EM=Ie(kM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const $M=dt(EM),Yf=e=>typeof it(e),TM=Re({accordion:Boolean,modelValue:{type:ce([Array,String,Number]),default:()=>_t([])}}),OM={[ut]:Yf,[Lt]:Yf},xM=(e,t)=>{const o=F(Vr(e.modelValue)),n=s=>{o.value=s;const l=e.accordion?o.value[0]:o.value;t(ut,l),t(Lt,l)},r=s=>{if(e.accordion)n([o.value[0]===s?"":s]);else{const l=[...o.value],i=l.indexOf(s);i>-1?l.splice(i,1):l.push(s),n(l)}};return ke(()=>e.modelValue,()=>o.value=Vr(e.modelValue),{deep:!0}),gt(Hh,{activeNames:o,handleItemClick:r}),{activeNames:o,setActiveNames:n}},IM=()=>{const e=be("collapse");return{rootKls:x(()=>e.b())}},MM=oe({name:"ElCollapse"}),NM=oe({...MM,props:TM,emits:OM,setup(e,{expose:t,emit:o}){const n=e,{activeNames:r,setActiveNames:s}=xM(n,o),{rootKls:l}=IM();return t({activeNames:r,setActiveNames:s}),(i,u)=>(N(),U("div",{class:P(a(l)),role:"tablist","aria-multiselectable":"true"},[ye(i.$slots,"default")],2))}});var PM=Ie(NM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const RM=oe({name:"ElCollapseTransition"}),AM=oe({...RM,setup(e){const t=be("collapse-transition"),o={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,r)=>(N(),fe(cn,mt({name:a(t).b()},f0(o)),{default:se(()=>[ye(n.$slots,"default")]),_:3},16,["name"]))}});var Ta=Ie(AM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Ta.install=e=>{e.component(Ta.name,Ta)};const El=Ta,DM=El,LM=Re({title:{type:String,default:""},name:{type:ce([String,Number]),default:()=>vl()},disabled:Boolean}),BM=e=>{const t=Ue(Hh),o=F(!1),n=F(!1),r=F(vl()),s=x(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:o,id:r,isActive:s,handleFocus:()=>{setTimeout(()=>{n.value?n.value=!1:o.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),o.value=!1,n.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},zM=(e,{focusing:t,isActive:o,id:n})=>{const r=be("collapse"),s=x(()=>[r.b("item"),r.is("active",a(o)),r.is("disabled",e.disabled)]),l=x(()=>[r.be("item","header"),r.is("active",a(o)),{focusing:a(t)&&!e.disabled}]),i=x(()=>[r.be("item","arrow"),r.is("active",a(o))]),u=x(()=>r.be("item","wrap")),c=x(()=>r.be("item","content")),f=x(()=>r.b(`content-${a(n)}`)),d=x(()=>r.b(`head-${a(n)}`));return{arrowKls:i,headKls:l,rootKls:s,itemWrapperKls:u,itemContentKls:c,scopedContentId:f,scopedHeadId:d}},VM=["aria-expanded","aria-controls","aria-describedby"],FM=["id","tabindex"],HM=["id","aria-hidden","aria-labelledby"],WM=oe({name:"ElCollapseItem"}),KM=oe({...WM,props:LM,setup(e,{expose:t}){const o=e,{focusing:n,id:r,isActive:s,handleFocus:l,handleHeaderClick:i,handleEnterClick:u}=BM(o),{arrowKls:c,headKls:f,rootKls:d,itemWrapperKls:h,itemContentKls:v,scopedContentId:m,scopedHeadId:g}=zM(o,{focusing:n,isActive:s,id:r});return t({isActive:s}),(b,C)=>(N(),U("div",{class:P(a(d))},[te("div",{role:"tab","aria-expanded":a(s),"aria-controls":a(m),"aria-describedby":a(m)},[te("div",{id:a(g),class:P(a(f)),role:"button",tabindex:b.disabled?-1:0,onClick:C[0]||(C[0]=(...k)=>a(i)&&a(i)(...k)),onKeypress:C[1]||(C[1]=Et(nt((...k)=>a(u)&&a(u)(...k),["stop","prevent"]),["space","enter"])),onFocus:C[2]||(C[2]=(...k)=>a(l)&&a(l)(...k)),onBlur:C[3]||(C[3]=k=>n.value=!1)},[ye(b.$slots,"title",{},()=>[It(Ne(b.title),1)]),Z(a(_e),{class:P(a(c))},{default:se(()=>[Z(a(wn))]),_:1},8,["class"])],42,FM)],8,VM),Z(a(El),null,{default:se(()=>[lt(te("div",{id:a(m),class:P(a(h)),role:"tabpanel","aria-hidden":!a(s),"aria-labelledby":a(g)},[te("div",{class:P(a(v))},[ye(b.$slots,"default")],2)],10,HM),[[xt,a(s)]])]),_:3})],2))}});var fm=Ie(KM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const _M=dt(PM,{CollapseItem:fm}),jM=Ut(fm);let pi=!1;function xs(e,t){if(!Dt)return;const o=function(s){var l;(l=t.drag)==null||l.call(t,s)},n=function(s){var l;document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",o),document.removeEventListener("touchend",n),document.onselectstart=null,document.ondragstart=null,pi=!1,(l=t.end)==null||l.call(t,s)},r=function(s){var l;pi||(s.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",o),document.addEventListener("mouseup",n),document.addEventListener("touchmove",o),document.addEventListener("touchend",n),pi=!0,(l=t.start)==null||l.call(t,s))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}const YM=oe({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=be("color-alpha-slider"),o=yt(),n=Kt(),r=Kt(),s=F(0),l=F(0),i=F();ke(()=>e.color.get("alpha"),()=>{v()}),ke(()=>e.color.value,()=>{v()});function u(){if(!n.value||e.vertical)return 0;const m=o.vnode.el,g=e.color.get("alpha");return m?Math.round(g*(m.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const m=o.vnode.el;if(!e.vertical)return 0;const g=e.color.get("alpha");return m?Math.round(g*(m.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:m,g,b}=e.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${g}, ${b}, 0) 0%, rgba(${m}, ${g}, ${b}, 1) 100%)`}return""}function d(m){m.target!==n.value&&h(m)}function h(m){if(!r.value||!n.value)return;const b=o.vnode.el.getBoundingClientRect(),{clientX:C,clientY:k}=Hu(m);if(e.vertical){let w=k-b.top;w=Math.max(n.value.offsetHeight/2,w),w=Math.min(w,b.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((w-n.value.offsetHeight/2)/(b.height-n.value.offsetHeight)*100))}else{let w=C-b.left;w=Math.max(n.value.offsetWidth/2,w),w=Math.min(w,b.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((w-n.value.offsetWidth/2)/(b.width-n.value.offsetWidth)*100))}}function v(){s.value=u(),l.value=c(),i.value=f()}return ht(()=>{if(!r.value||!n.value)return;const m={drag:g=>{h(g)},end:g=>{h(g)}};xs(r.value,m),xs(n.value,m),v()}),{thumb:n,bar:r,thumbLeft:s,thumbTop:l,background:i,handleClick:d,update:v,ns:t}}});function UM(e,t,o,n,r,s){return N(),U("div",{class:P([e.ns.b(),e.ns.is("vertical",e.vertical)])},[te("div",{ref:"bar",class:P(e.ns.e("bar")),style:je({background:e.background}),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},null,6),te("div",{ref:"thumb",class:P(e.ns.e("thumb")),style:je({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var GM=Ie(YM,[["render",UM],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const qM=oe({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=be("color-hue-slider"),o=yt(),n=F(),r=F(),s=F(0),l=F(0),i=x(()=>e.color.get("hue"));ke(()=>i.value,()=>{h()});function u(v){v.target!==n.value&&c(v)}function c(v){if(!r.value||!n.value)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:b,clientY:C}=Hu(v);let k;if(e.vertical){let w=C-g.top;w=Math.min(w,g.height-n.value.offsetHeight/2),w=Math.max(n.value.offsetHeight/2,w),k=Math.round((w-n.value.offsetHeight/2)/(g.height-n.value.offsetHeight)*360)}else{let w=b-g.left;w=Math.min(w,g.width-n.value.offsetWidth/2),w=Math.max(n.value.offsetWidth/2,w),k=Math.round((w-n.value.offsetWidth/2)/(g.width-n.value.offsetWidth)*360)}e.color.set("hue",k)}function f(){if(!n.value)return 0;const v=o.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetWidth-n.value.offsetWidth/2)/360):0}function d(){if(!n.value)return 0;const v=o.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetHeight-n.value.offsetHeight/2)/360):0}function h(){s.value=f(),l.value=d()}return ht(()=>{if(!r.value||!n.value)return;const v={drag:m=>{c(m)},end:m=>{c(m)}};xs(r.value,v),xs(n.value,v),h()}),{bar:r,thumb:n,thumbLeft:s,thumbTop:l,hueValue:i,handleClick:u,update:h,ns:t}}});function XM(e,t,o,n,r,s){return N(),U("div",{class:P([e.ns.b(),e.ns.is("vertical",e.vertical)])},[te("div",{ref:"bar",class:P(e.ns.e("bar")),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},null,2),te("div",{ref:"thumb",class:P(e.ns.e("thumb")),style:je({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var ZM=Ie(qM,[["render",XM],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const JM=Re({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Zn,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ce(Array)},validateEvent:{type:Boolean,default:!0}}),QM={[ut]:e=>kt(e)||Cn(e),[Lt]:e=>kt(e)||Cn(e),activeChange:e=>kt(e)||Cn(e)},pm=Symbol("colorPickerContextKey"),Uf=function(e,t,o){return[e,t*o/((e=(2-t)*o)<1?e:2-e)||0,e/2]},eN=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},tN=function(e){return typeof e=="string"&&e.includes("%")},Ir=function(e,t){eN(e)&&(e="100%");const o=tN(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),o&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Gf={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Oa=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),o=e%16;return`${Gf[t]||t}${Gf[o]||o}`},qf=function({r:e,g:t,b:o}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+o)?"":`#${Oa(e)}${Oa(t)}${Oa(o)}`},hi={A:10,B:11,C:12,D:13,E:14,F:15},Yo=function(e){return e.length===2?(hi[e[0].toUpperCase()]||+e[0])*16+(hi[e[1].toUpperCase()]||+e[1]):hi[e[1].toUpperCase()]||+e[1]},nN=function(e,t,o){t=t/100,o=o/100;let n=t;const r=Math.max(o,.01);o*=2,t*=o<=1?o:2-o,n*=r<=1?r:2-r;const s=(o+t)/2,l=o===0?2*n/(r+n):2*t/(o+t);return{h:e,s:l*100,v:s*100}},Xf=(e,t,o)=>{e=Ir(e,255),t=Ir(t,255),o=Ir(o,255);const n=Math.max(e,t,o),r=Math.min(e,t,o);let s;const l=n,i=n-r,u=n===0?0:i/n;if(n===r)s=0;else{switch(n){case e:{s=(t-o)/i+(t{this._hue=Math.max(0,Math.min(360,n)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,s)),this.doOnChange()};if(t.includes("hsl")){const n=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));if(n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3){const{h:r,s,v:l}=nN(n[0],n[1],n[2]);o(r,s,l)}}else if(t.includes("hsv")){const n=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3&&o(n[0],n[1],n[2])}else if(t.includes("rgb")){const n=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));if(n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3){const{h:r,s,v:l}=Xf(n[0],n[1],n[2]);o(r,s,l)}}else if(t.includes("#")){const n=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,s,l;n.length===3?(r=Yo(n[0]+n[0]),s=Yo(n[1]+n[1]),l=Yo(n[2]+n[2])):(n.length===6||n.length===8)&&(r=Yo(n.slice(0,2)),s=Yo(n.slice(2,4)),l=Yo(n.slice(4,6))),n.length===8?this._alpha=Yo(n.slice(6))/255*100:(n.length===3||n.length===6)&&(this._alpha=100);const{h:i,s:u,v:c}=Xf(r,s,l);o(i,u,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:o,_value:n,_alpha:r,format:s}=this;if(this.enableAlpha)switch(s){case"hsl":{const l=Uf(t,o/100,n/100);this.value=`hsla(${t}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(o)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${qf(ss(t,o,n))}${Oa(r*255/100)}`;break}default:{const{r:l,g:i,b:u}=ss(t,o,n);this.value=`rgba(${l}, ${i}, ${u}, ${this.get("alpha")/100})`}}else switch(s){case"hsl":{const l=Uf(t,o/100,n/100);this.value=`hsl(${t}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(o)}%, ${Math.round(n)}%)`;break}case"rgb":{const{r:l,g:i,b:u}=ss(t,o,n);this.value=`rgb(${l}, ${i}, ${u})`;break}default:this.value=qf(ss(t,o,n))}}}const oN=oe({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=be("color-predefine"),{currentColor:o}=Ue(pm),n=F(s(e.colors,e.color));ke(()=>o.value,l=>{const i=new ms;i.fromString(l),n.value.forEach(u=>{u.selected=i.compare(u)})}),Xn(()=>{n.value=s(e.colors,e.color)});function r(l){e.color.fromString(e.colors[l])}function s(l,i){return l.map(u=>{const c=new ms;return c.enableAlpha=!0,c.format="rgba",c.fromString(u),c.selected=c.value===i.value,c})}return{rgbaColors:n,handleSelect:r,ns:t}}}),rN=["onClick"];function sN(e,t,o,n,r,s){return N(),U("div",{class:P(e.ns.b())},[te("div",{class:P(e.ns.e("colors"))},[(N(!0),U(Qe,null,bt(e.rgbaColors,(l,i)=>(N(),U("div",{key:e.colors[i],class:P([e.ns.e("color-selector"),e.ns.is("alpha",l._alpha<100),{selected:l.selected}]),onClick:u=>e.handleSelect(i)},[te("div",{style:je({backgroundColor:l.value})},null,4)],10,rN))),128))],2)],2)}var aN=Ie(oN,[["render",sN],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const lN=oe({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=be("color-svpanel"),o=yt(),n=F(0),r=F(0),s=F("hsl(0, 100%, 50%)"),l=x(()=>{const c=e.color.get("hue"),f=e.color.get("value");return{hue:c,value:f}});function i(){const c=e.color.get("saturation"),f=e.color.get("value"),d=o.vnode.el,{clientWidth:h,clientHeight:v}=d;r.value=c*h/100,n.value=(100-f)*v/100,s.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(c){const d=o.vnode.el.getBoundingClientRect(),{clientX:h,clientY:v}=Hu(c);let m=h-d.left,g=v-d.top;m=Math.max(0,m),m=Math.min(m,d.width),g=Math.max(0,g),g=Math.min(g,d.height),r.value=m,n.value=g,e.color.set({saturation:m/d.width*100,value:100-g/d.height*100})}return ke(()=>l.value,()=>{i()}),ht(()=>{xs(o.vnode.el,{drag:c=>{u(c)},end:c=>{u(c)}}),i()}),{cursorTop:n,cursorLeft:r,background:s,colorValue:l,handleDrag:u,update:i,ns:t}}}),iN=te("div",null,null,-1),uN=[iN];function cN(e,t,o,n,r,s){return N(),U("div",{class:P(e.ns.b()),style:je({backgroundColor:e.background})},[te("div",{class:P(e.ns.e("white"))},null,2),te("div",{class:P(e.ns.e("black"))},null,2),te("div",{class:P(e.ns.e("cursor")),style:je({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},uN,6)],6)}var dN=Ie(lN,[["render",cN],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const fN=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],pN=oe({name:"ElColorPicker"}),hN=oe({...pN,props:JM,emits:QM,setup(e,{expose:t,emit:o}){const n=e,{t:r}=$t(),s=be("color"),{formItem:l}=zn(),i=dn(),u=Jn(),{inputId:c,isLabeledByFormItem:f}=fr(n,{formItemContext:l}),d=F(),h=F(),v=F(),m=F();let g=!0;const b=Rt(new ms({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue})),C=F(!1),k=F(!1),w=F(""),E=x(()=>!n.modelValue&&!k.value?"transparent":R(b,n.showAlpha)),T=x(()=>!n.modelValue&&!k.value?"":b.value),$=x(()=>f.value?void 0:n.label||r("el.colorpicker.defaultLabel")),A=x(()=>f.value?l==null?void 0:l.labelId:void 0);function R(D,V){if(!(D instanceof ms))throw new TypeError("color should be instance of _color Class");const{r:B,g:X,b:Q}=D.toRgb();return V?`rgba(${B}, ${X}, ${Q}, ${D.get("alpha")/100})`:`rgb(${B}, ${X}, ${Q})`}function M(D){C.value=D}const I=kn(M,100);function _(){I(!1),L()}function L(){Ge(()=>{n.modelValue?b.fromString(n.modelValue):(b.value="",Ge(()=>{k.value=!1}))})}function z(){u.value||I(!C.value)}function H(){b.fromString(w.value)}function W(){const D=b.value;o(ut,D),o("change",D),n.validateEvent&&(l==null||l.validate("change").catch(V=>on())),I(!1),Ge(()=>{const V=new ms({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue});b.compare(V)||L()})}function j(){I(!1),o(ut,null),o("change",null),n.modelValue!==null&&n.validateEvent&&(l==null||l.validate("change").catch(D=>on())),L()}return ht(()=>{n.modelValue&&(w.value=T.value)}),ke(()=>n.modelValue,D=>{D?D&&D!==b.value&&(g=!1,b.fromString(D)):k.value=!1}),ke(()=>T.value,D=>{w.value=D,g&&o("activeChange",D),g=!0}),ke(()=>b.value,()=>{!n.modelValue&&!k.value&&(k.value=!0)}),ke(()=>C.value,()=>{Ge(()=>{var D,V,B;(D=d.value)==null||D.update(),(V=h.value)==null||V.update(),(B=v.value)==null||B.update()})}),gt(pm,{currentColor:T}),t({color:b}),(D,V)=>(N(),fe(a(xn),{ref_key:"popper",ref:m,visible:C.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[a(s).be("picker","panel"),a(s).b("dropdown"),D.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${a(s).namespace.value}-zoom-in-top`,persistent:""},{content:se(()=>[lt((N(),U("div",null,[te("div",{class:P(a(s).be("dropdown","main-wrapper"))},[Z(ZM,{ref_key:"hue",ref:d,class:"hue-slider",color:a(b),vertical:""},null,8,["color"]),Z(dN,{ref:"svPanel",color:a(b)},null,8,["color"])],2),D.showAlpha?(N(),fe(GM,{key:0,ref_key:"alpha",ref:v,color:a(b)},null,8,["color"])):de("v-if",!0),D.predefine?(N(),fe(aN,{key:1,ref:"predefine",color:a(b),colors:D.predefine},null,8,["color","colors"])):de("v-if",!0),te("div",{class:P(a(s).be("dropdown","btns"))},[te("span",{class:P(a(s).be("dropdown","value"))},[Z(a(bn),{modelValue:w.value,"onUpdate:modelValue":V[0]||(V[0]=B=>w.value=B),"validate-event":!1,size:"small",onKeyup:Et(H,["enter"]),onBlur:H},null,8,["modelValue","onKeyup"])],2),Z(a(mn),{class:P(a(s).be("dropdown","link-btn")),text:"",size:"small",onClick:j},{default:se(()=>[It(Ne(a(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),Z(a(mn),{plain:"",size:"small",class:P(a(s).be("dropdown","btn")),onClick:W},{default:se(()=>[It(Ne(a(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[a(zo),_]])]),default:se(()=>[te("div",{id:a(c),class:P([a(s).b("picker"),a(s).is("disabled",a(u)),a(s).bm("picker",a(i))]),role:"button","aria-label":a($),"aria-labelledby":a(A),"aria-description":a(r)("el.colorpicker.description",{color:D.modelValue||""}),tabindex:D.tabindex,onKeydown:Et(z,["enter"])},[a(u)?(N(),U("div",{key:0,class:P(a(s).be("picker","mask"))},null,2)):de("v-if",!0),te("div",{class:P(a(s).be("picker","trigger")),onClick:z},[te("span",{class:P([a(s).be("picker","color"),a(s).is("alpha",D.showAlpha)])},[te("span",{class:P(a(s).be("picker","color-inner")),style:je({backgroundColor:a(E)})},[lt(Z(a(_e),{class:P([a(s).be("picker","icon"),a(s).is("icon-arrow-down")])},{default:se(()=>[Z(a(Vo))]),_:1},8,["class"]),[[xt,D.modelValue||k.value]]),!D.modelValue&&!k.value?(N(),fe(a(_e),{key:0,class:P([a(s).be("picker","empty"),a(s).is("icon-close")])},{default:se(()=>[Z(a(mo))]),_:1},8,["class"])):de("v-if",!0)],6)],2)],2)],42,fN)]),_:1},8,["visible","popper-class","transition"]))}});var vN=Ie(hN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const mN=dt(vN),gN=dt(lw),yN=oe({name:"ElContainer"}),bN=oe({...yN,props:{direction:{type:String}},setup(e){const t=e,o=gn(),n=be("container"),r=x(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:o&&o.default?o.default().some(l=>{const i=l.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(s,l)=>(N(),U("section",{class:P([a(n).b(),a(n).is("vertical",a(r))])},[ye(s.$slots,"default")],2))}});var wN=Ie(bN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const CN=oe({name:"ElAside"}),SN=oe({...CN,props:{width:{type:String,default:null}},setup(e){const t=e,o=be("aside"),n=x(()=>t.width?o.cssVarBlock({width:t.width}):{});return(r,s)=>(N(),U("aside",{class:P(a(o).b()),style:je(a(n))},[ye(r.$slots,"default")],6))}});var hm=Ie(SN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const kN=oe({name:"ElFooter"}),EN=oe({...kN,props:{height:{type:String,default:null}},setup(e){const t=e,o=be("footer"),n=x(()=>t.height?o.cssVarBlock({height:t.height}):{});return(r,s)=>(N(),U("footer",{class:P(a(o).b()),style:je(a(n))},[ye(r.$slots,"default")],6))}});var vm=Ie(EN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const $N=oe({name:"ElHeader"}),TN=oe({...$N,props:{height:{type:String,default:null}},setup(e){const t=e,o=be("header"),n=x(()=>t.height?o.cssVarBlock({height:t.height}):{});return(r,s)=>(N(),U("header",{class:P(a(o).b()),style:je(a(n))},[ye(r.$slots,"default")],6))}});var mm=Ie(TN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const ON=oe({name:"ElMain"}),xN=oe({...ON,setup(e){const t=be("main");return(o,n)=>(N(),U("main",{class:P(a(t).b())},[ye(o.$slots,"default")],2))}});var gm=Ie(xN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const IN=dt(wN,{Aside:hm,Footer:vm,Header:mm,Main:gm}),MN=Ut(hm),NN=Ut(vm),PN=Ut(mm),RN=Ut(gm);var ym={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){return function(o,n){var r=n.prototype,s=r.format;r.format=function(l){var i=this,u=this.$locale();if(!this.isValid())return s.bind(this)(l);var c=this.$utils(),f=(l||"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(d){switch(d){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}});return s.bind(this)(f)}}})})(ym);const AN=ym.exports;var bm={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){var o="week",n="year";return function(r,s,l){var i=s.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=l(this).startOf(n).add(1,n).date(c),d=l(this).endOf(o);if(f.isBefore(d))return 1}var h=l(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),v=this.diff(h,o,!0);return v<0?l(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(bm);const DN=bm.exports;var wm={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),s=this.week(),l=this.year();return s===1&&r===11?l+1:r===0&&s>=52?l-1:l}}})})(wm);const LN=wm.exports;var Cm={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){return function(o,n,r){n.prototype.dayOfYear=function(s){var l=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return s==null?l:this.add(s-l,"day")}}})})(Cm);const BN=Cm.exports;var Sm={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}})})(Sm);const zN=Sm.exports;var km={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(bo,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}})})(km);const VN=km.exports,FN=Re({type:{type:ce(String),default:"date"}}),HN=["date","dates","year","month","week","range"],cc=Re({disabledDate:{type:ce(Function)},date:{type:ce(Object),required:!0},minDate:{type:ce(Object)},maxDate:{type:ce(Object)},parsedValue:{type:ce([Object,Array])},rangeState:{type:ce(Object),default:()=>({endDate:null,selecting:!1})}}),Em=Re({type:{type:ce(String),required:!0,values:cE}}),$m=Re({unlinkPanels:Boolean,parsedValue:{type:ce(Array)}}),Tm=e=>({type:String,values:HN,default:e}),WN=Re({...Em,parsedValue:{type:ce([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),KN=Re({...cc,cellClassName:{type:ce(Function)},showWeekNumber:Boolean,selectionMode:Tm("date")}),_i=e=>{if(!ft(e))return!1;const[t,o]=e;return at.isDayjs(t)&&at.isDayjs(o)&&t.isSameOrBefore(o)},Om=(e,{lang:t,unit:o,unlinkPanels:n})=>{let r;if(ft(e)){let[s,l]=e.map(i=>at(i).locale(t));return n||(l=s.add(1,o)),[s,l]}else e?r=at(e):r=at();return r=r.locale(t),[r,r.add(1,o)]},_N=(e,t,{columnIndexOffset:o,startDate:n,nextEndDate:r,now:s,unit:l,relativeDateGetter:i,setCellMetadata:u,setRowMetadata:c})=>{for(let f=0;f{const{cell:n}=e;if(o.default){const r=o.default(n).filter(s=>s.patchFlag!==-2&&s.type.toString()!=="Symbol(Comment)");if(r.length)return r}return Z("div",{class:t.b()},[Z("span",{class:t.e("text")},[n==null?void 0:n.text])])}}});const UN=["aria-label"],GN={key:0,scope:"col"},qN=["aria-label"],XN=["aria-current","aria-selected","tabindex"],ZN=oe({__name:"basic-date-table",props:KN,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const n=e,r=be("date-table"),{t:s,lang:l}=$t(),i=F(),u=F(),c=F(),f=F(),d=F([[],[],[],[],[],[]]);let h=!1;const v=n.date.$locale().weekStart||7,m=n.date.locale("en").localeData().weekdaysShort().map(q=>q.toLowerCase()),g=x(()=>v>3?7-v:-v),b=x(()=>{const q=n.date.startOf("month");return q.subtract(q.day()||7,"day")}),C=x(()=>m.concat(m).slice(v,v+7)),k=x(()=>kh(R.value).some(q=>q.isCurrent)),w=x(()=>{const q=n.date.startOf("month"),ee=q.day()||7,ve=q.daysInMonth(),me=q.subtract(1,"month").daysInMonth();return{startOfMonthDay:ee,dateCountOfMonth:ve,dateCountOfLastMonth:me}}),E=x(()=>n.selectionMode==="dates"?vo(n.parsedValue):[]),T=(q,{count:ee,rowIndex:ve,columnIndex:me})=>{const{startOfMonthDay:Ce,dateCountOfMonth:le,dateCountOfLastMonth:re}=a(w),ie=a(g);if(ve>=0&&ve<=1){const pe=Ce+ie<0?7+Ce+ie:Ce+ie;if(me+ve*7>=pe)return q.text=ee,!0;q.text=re-(pe-me%7)+1+ve*7,q.type="prev-month"}else return ee<=le?q.text=ee:(q.text=ee-le,q.type="next-month"),!0;return!1},$=(q,{columnIndex:ee,rowIndex:ve},me)=>{const{disabledDate:Ce,cellClassName:le}=n,re=a(E),ie=T(q,{count:me,rowIndex:ve,columnIndex:ee}),pe=q.dayjs.toDate();return q.selected=re.find(Ae=>Ae.valueOf()===q.dayjs.valueOf()),q.isSelected=!!q.selected,q.isCurrent=_(q),q.disabled=Ce==null?void 0:Ce(pe),q.customClass=le==null?void 0:le(pe),ie},A=q=>{if(n.selectionMode==="week"){const[ee,ve]=n.showWeekNumber?[1,7]:[0,6],me=Q(q[ee+1]);q[ee].inRange=me,q[ee].start=me,q[ve].inRange=me,q[ve].end=me}},R=x(()=>{const{minDate:q,maxDate:ee,rangeState:ve,showWeekNumber:me}=n,Ce=g.value,le=d.value,re="day";let ie=1;if(me)for(let pe=0;pe<6;pe++)le[pe][0]||(le[pe][0]={type:"week",text:b.value.add(pe*7+1,re).week()});return _N({row:6,column:7},le,{startDate:q,columnIndexOffset:me?1:0,nextEndDate:ve.endDate||ee||ve.selecting&&q||null,now:at().locale(a(l)).startOf(re),unit:re,relativeDateGetter:pe=>b.value.add(pe-Ce,re),setCellMetadata:(...pe)=>{$(...pe,ie)&&(ie+=1)},setRowMetadata:A}),le});ke(()=>n.date,async()=>{var q,ee;(q=i.value)!=null&&q.contains(document.activeElement)&&(await Ge(),(ee=u.value)==null||ee.focus())});const M=async()=>{var q;(q=u.value)==null||q.focus()},I=(q="")=>["normal","today"].includes(q),_=q=>n.selectionMode==="date"&&I(q.type)&&L(q,n.parsedValue),L=(q,ee)=>ee?at(ee).locale(l.value).isSame(n.date.date(Number(q.text)),"day"):!1,z=q=>{const ee=[];return I(q.type)&&!q.disabled?(ee.push("available"),q.type==="today"&&ee.push("today")):ee.push(q.type),_(q)&&ee.push("current"),q.inRange&&(I(q.type)||n.selectionMode==="week")&&(ee.push("in-range"),q.start&&ee.push("start-date"),q.end&&ee.push("end-date")),q.disabled&&ee.push("disabled"),q.selected&&ee.push("selected"),q.customClass&&ee.push(q.customClass),ee.join(" ")},H=(q,ee)=>{const ve=q*7+(ee-(n.showWeekNumber?1:0))-g.value;return b.value.add(ve,"day")},W=q=>{var ee;if(!n.rangeState.selecting)return;let ve=q.target;if(ve.tagName==="SPAN"&&(ve=(ee=ve.parentNode)==null?void 0:ee.parentNode),ve.tagName==="DIV"&&(ve=ve.parentNode),ve.tagName!=="TD")return;const me=ve.parentNode.rowIndex-1,Ce=ve.cellIndex;R.value[me][Ce].disabled||(me!==c.value||Ce!==f.value)&&(c.value=me,f.value=Ce,o("changerange",{selecting:!0,endDate:H(me,Ce)}))},j=q=>!k.value&&(q==null?void 0:q.text)===1&&q.type==="normal"||q.isCurrent,D=q=>{h||k.value||n.selectionMode!=="date"||X(q,!0)},V=q=>{!q.target.closest("td")||(h=!0)},B=q=>{!q.target.closest("td")||(h=!1)},X=(q,ee=!1)=>{const ve=q.target.closest("td");if(!ve)return;const me=ve.parentNode.rowIndex-1,Ce=ve.cellIndex,le=R.value[me][Ce];if(le.disabled||le.type==="week")return;const re=H(me,Ce);if(n.selectionMode==="range")!n.rangeState.selecting||!n.minDate?(o("pick",{minDate:re,maxDate:null}),o("select",!0)):(re>=n.minDate?o("pick",{minDate:n.minDate,maxDate:re}):o("pick",{minDate:re,maxDate:n.minDate}),o("select",!1));else if(n.selectionMode==="date")o("pick",re,ee);else if(n.selectionMode==="week"){const ie=re.week(),pe=`${re.year()}w${ie}`;o("pick",{year:re.year(),week:ie,value:pe,date:re.startOf("week")})}else if(n.selectionMode==="dates"){const ie=le.selected?vo(n.parsedValue).filter(pe=>(pe==null?void 0:pe.valueOf())!==re.valueOf()):vo(n.parsedValue).concat([re]);o("pick",ie)}},Q=q=>{if(n.selectionMode!=="week")return!1;let ee=n.date.startOf("day");if(q.type==="prev-month"&&(ee=ee.subtract(1,"month")),q.type==="next-month"&&(ee=ee.add(1,"month")),ee=ee.date(Number.parseInt(q.text,10)),n.parsedValue&&!Array.isArray(n.parsedValue)){const ve=(n.parsedValue.day()-v+7)%7-1;return n.parsedValue.subtract(ve,"day").isSame(ee,"day")}return!1};return t({focus:M}),(q,ee)=>(N(),U("table",{role:"grid","aria-label":a(s)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:P([a(r).b(),{"is-week-mode":q.selectionMode==="week"}]),onClick:X,onMousemove:W,onMousedown:V,onMouseup:B},[te("tbody",{ref_key:"tbodyRef",ref:i},[te("tr",null,[q.showWeekNumber?(N(),U("th",GN,Ne(a(s)("el.datepicker.week")),1)):de("v-if",!0),(N(!0),U(Qe,null,bt(a(C),(ve,me)=>(N(),U("th",{key:me,scope:"col","aria-label":a(s)("el.datepicker.weeksFull."+ve)},Ne(a(s)("el.datepicker.weeks."+ve)),9,qN))),128))]),(N(!0),U(Qe,null,bt(a(R),(ve,me)=>(N(),U("tr",{key:me,class:P([a(r).e("row"),{current:Q(ve[1])}])},[(N(!0),U(Qe,null,bt(ve,(Ce,le)=>(N(),U("td",{key:`${me}.${le}`,ref_for:!0,ref:re=>j(Ce)&&(u.value=re),class:P(z(Ce)),"aria-current":Ce.isCurrent?"date":void 0,"aria-selected":Ce.isCurrent,tabindex:j(Ce)?0:-1,onFocus:D},[Z(a(YN),{cell:Ce},null,8,["cell"])],42,XN))),128))],2))),128))],512)],42,UN))}});var ji=Ie(ZN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const JN=Re({...cc,selectionMode:Tm("month")}),QN=["aria-label"],eP=["aria-selected","aria-label","tabindex","onKeydown"],tP={class:"cell"},nP=oe({__name:"basic-month-table",props:JN,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const n=e,r=(E,T,$)=>{const A=at().locale($).startOf("month").month(T).year(E),R=A.daysInMonth();return xo(R).map(M=>A.add(M,"day").toDate())},s=be("month-table"),{t:l,lang:i}=$t(),u=F(),c=F(),f=F(n.date.locale("en").localeData().monthsShort().map(E=>E.toLowerCase())),d=F([[],[],[]]),h=F(),v=F(),m=x(()=>{var E,T;const $=d.value,A=at().locale(i.value).startOf("month");for(let R=0;R<3;R++){const M=$[R];for(let I=0;I<4;I++){const _=M[I]||(M[I]={row:R,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});_.type="normal";const L=R*4+I,z=n.date.startOf("year").month(L),H=n.rangeState.endDate||n.maxDate||n.rangeState.selecting&&n.minDate||null;_.inRange=!!(n.minDate&&z.isSameOrAfter(n.minDate,"month")&&H&&z.isSameOrBefore(H,"month"))||!!(n.minDate&&z.isSameOrBefore(n.minDate,"month")&&H&&z.isSameOrAfter(H,"month")),(E=n.minDate)!=null&&E.isSameOrAfter(H)?(_.start=!!(H&&z.isSame(H,"month")),_.end=n.minDate&&z.isSame(n.minDate,"month")):(_.start=!!(n.minDate&&z.isSame(n.minDate,"month")),_.end=!!(H&&z.isSame(H,"month"))),A.isSame(z)&&(_.type="today"),_.text=L,_.disabled=((T=n.disabledDate)==null?void 0:T.call(n,z.toDate()))||!1}}return $}),g=()=>{var E;(E=c.value)==null||E.focus()},b=E=>{const T={},$=n.date.year(),A=new Date,R=E.text;return T.disabled=n.disabledDate?r($,R,i.value).every(n.disabledDate):!1,T.current=vo(n.parsedValue).findIndex(M=>at.isDayjs(M)&&M.year()===$&&M.month()===R)>=0,T.today=A.getFullYear()===$&&A.getMonth()===R,E.inRange&&(T["in-range"]=!0,E.start&&(T["start-date"]=!0),E.end&&(T["end-date"]=!0)),T},C=E=>{const T=n.date.year(),$=E.text;return vo(n.date).findIndex(A=>A.year()===T&&A.month()===$)>=0},k=E=>{var T;if(!n.rangeState.selecting)return;let $=E.target;if($.tagName==="A"&&($=(T=$.parentNode)==null?void 0:T.parentNode),$.tagName==="DIV"&&($=$.parentNode),$.tagName!=="TD")return;const A=$.parentNode.rowIndex,R=$.cellIndex;m.value[A][R].disabled||(A!==h.value||R!==v.value)&&(h.value=A,v.value=R,o("changerange",{selecting:!0,endDate:n.date.startOf("year").month(A*4+R)}))},w=E=>{var T;const $=(T=E.target)==null?void 0:T.closest("td");if(($==null?void 0:$.tagName)!=="TD"||ho($,"disabled"))return;const A=$.cellIndex,M=$.parentNode.rowIndex*4+A,I=n.date.startOf("year").month(M);n.selectionMode==="range"?n.rangeState.selecting?(n.minDate&&I>=n.minDate?o("pick",{minDate:n.minDate,maxDate:I}):o("pick",{minDate:I,maxDate:n.minDate}),o("select",!1)):(o("pick",{minDate:I,maxDate:null}),o("select",!0)):o("pick",M)};return ke(()=>n.date,async()=>{var E,T;(E=u.value)!=null&&E.contains(document.activeElement)&&(await Ge(),(T=c.value)==null||T.focus())}),t({focus:g}),(E,T)=>(N(),U("table",{role:"grid","aria-label":a(l)("el.datepicker.monthTablePrompt"),class:P(a(s).b()),onClick:w,onMousemove:k},[te("tbody",{ref_key:"tbodyRef",ref:u},[(N(!0),U(Qe,null,bt(a(m),($,A)=>(N(),U("tr",{key:A},[(N(!0),U(Qe,null,bt($,(R,M)=>(N(),U("td",{key:M,ref_for:!0,ref:I=>C(R)&&(c.value=I),class:P(b(R)),"aria-selected":`${C(R)}`,"aria-label":a(l)(`el.datepicker.month${+R.text+1}`),tabindex:C(R)?0:-1,onKeydown:[Et(nt(w,["prevent","stop"]),["space"]),Et(nt(w,["prevent","stop"]),["enter"])]},[te("div",null,[te("span",tP,Ne(a(l)("el.datepicker.months."+f.value[R.text])),1)])],42,eP))),128))]))),128))],512)],42,QN))}});var Yi=Ie(nP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:oP,disabledDate:rP,parsedValue:sP}=cc,aP=Re({date:oP,disabledDate:rP,parsedValue:sP}),lP=["aria-label"],iP=["aria-selected","tabindex","onKeydown"],uP={class:"cell"},cP={key:1},dP=oe({__name:"basic-year-table",props:aP,emits:["pick"],setup(e,{expose:t,emit:o}){const n=e,r=(g,b)=>{const C=at(String(g)).locale(b).startOf("year"),w=C.endOf("year").dayOfYear();return xo(w).map(E=>C.add(E,"day").toDate())},s=be("year-table"),{t:l,lang:i}=$t(),u=F(),c=F(),f=x(()=>Math.floor(n.date.year()/10)*10),d=()=>{var g;(g=c.value)==null||g.focus()},h=g=>{const b={},C=at().locale(i.value);return b.disabled=n.disabledDate?r(g,i.value).every(n.disabledDate):!1,b.current=vo(n.parsedValue).findIndex(k=>k.year()===g)>=0,b.today=C.year()===g,b},v=g=>g===f.value&&n.date.year()f.value+9||vo(n.date).findIndex(b=>b.year()===g)>=0,m=g=>{const C=g.target.closest("td");if(C&&C.textContent){if(ho(C,"disabled"))return;const k=C.textContent||C.innerText;o("pick",Number(k))}};return ke(()=>n.date,async()=>{var g,b;(g=u.value)!=null&&g.contains(document.activeElement)&&(await Ge(),(b=c.value)==null||b.focus())}),t({focus:d}),(g,b)=>(N(),U("table",{role:"grid","aria-label":a(l)("el.datepicker.yearTablePrompt"),class:P(a(s).b()),onClick:m},[te("tbody",{ref_key:"tbodyRef",ref:u},[(N(),U(Qe,null,bt(3,(C,k)=>te("tr",{key:k},[(N(),U(Qe,null,bt(4,(w,E)=>(N(),U(Qe,{key:k+"_"+E},[k*4+E<10?(N(),U("td",{key:0,ref_for:!0,ref:T=>v(a(f)+k*4+E)&&(c.value=T),class:P(["available",h(a(f)+k*4+E)]),"aria-selected":`${v(a(f)+k*4+E)}`,tabindex:v(a(f)+k*4+E)?0:-1,onKeydown:[Et(nt(m,["prevent","stop"]),["space"]),Et(nt(m,["prevent","stop"]),["enter"])]},[te("span",uP,Ne(a(f)+k*4+E),1)],42,iP)):(N(),U("td",cP))],64))),64))])),64))],512)],10,lP))}});var fP=Ie(dP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const pP=["onClick"],hP=["aria-label"],vP=["aria-label"],mP=["aria-label"],gP=["aria-label"],yP=oe({__name:"panel-date-pick",props:WN,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const o=e,n=(ue,Me,We)=>!0,r=be("picker-panel"),s=be("date-picker"),l=al(),i=gn(),{t:u,lang:c}=$t(),f=Ue("EP_PICKER_BASE"),d=Ue(gl),{shortcuts:h,disabledDate:v,cellClassName:m,defaultTime:g,arrowControl:b}=f.props,C=Jt(f.props,"defaultValue"),k=F(),w=F(at().locale(c.value)),E=F(!1),T=x(()=>at(g).locale(c.value)),$=x(()=>w.value.month()),A=x(()=>w.value.year()),R=F([]),M=F(null),I=F(null),_=ue=>R.value.length>0?n(ue,R.value,o.format||"HH:mm:ss"):!0,L=ue=>g&&!Le.value&&!E.value?T.value.year(ue.year()).month(ue.month()).date(ue.date()):Ce.value?ue.millisecond(0):ue.startOf("day"),z=(ue,...Me)=>{if(!ue)t("pick",ue,...Me);else if(ft(ue)){const We=ue.map(L);t("pick",We,...Me)}else t("pick",L(ue),...Me);M.value=null,I.value=null,E.value=!1},H=(ue,Me)=>{if(X.value==="date"){ue=ue;let We=o.parsedValue?o.parsedValue.year(ue.year()).month(ue.month()).date(ue.date()):ue;_(We)||(We=R.value[0][0].year(ue.year()).month(ue.month()).date(ue.date())),w.value=We,z(We,Ce.value||Me)}else X.value==="week"?z(ue.date):X.value==="dates"&&z(ue,!0)},W=ue=>{const Me=ue?"add":"subtract";w.value=w.value[Me](1,"month"),pt("month")},j=ue=>{const Me=w.value,We=ue?"add":"subtract";w.value=D.value==="year"?Me[We](10,"year"):Me[We](1,"year"),pt("year")},D=F("date"),V=x(()=>{const ue=u("el.datepicker.year");if(D.value==="year"){const Me=Math.floor(A.value/10)*10;return ue?`${Me} ${ue} - ${Me+9} ${ue}`:`${Me} - ${Me+9}`}return`${A.value} ${ue}`}),B=ue=>{const Me=At(ue.value)?ue.value():ue.value;if(Me){z(at(Me).locale(c.value));return}ue.onClick&&ue.onClick({attrs:l,slots:i,emit:t})},X=x(()=>{const{type:ue}=o;return["week","month","year","dates"].includes(ue)?ue:"date"}),Q=x(()=>X.value==="date"?D.value:X.value),q=x(()=>!!h.length),ee=async ue=>{w.value=w.value.startOf("month").month(ue),X.value==="month"?z(w.value,!1):(D.value="date",["month","year","date","week"].includes(X.value)&&(z(w.value,!0),await Ge(),st())),pt("month")},ve=async ue=>{X.value==="year"?(w.value=w.value.startOf("year").year(ue),z(w.value,!1)):(w.value=w.value.year(ue),D.value="month",["month","year","date","week"].includes(X.value)&&(z(w.value,!0),await Ge(),st())),pt("year")},me=async ue=>{D.value=ue,await Ge(),st()},Ce=x(()=>o.type==="datetime"||o.type==="datetimerange"),le=x(()=>Ce.value||X.value==="dates"),re=()=>{if(X.value==="dates")z(o.parsedValue);else{let ue=o.parsedValue;if(!ue){const Me=at(g).locale(c.value),We=rt();ue=Me.year(We.year()).month(We.month()).date(We.date())}w.value=ue,z(ue)}},ie=()=>{const Me=at().locale(c.value).toDate();E.value=!0,(!v||!v(Me))&&_(Me)&&(w.value=at().locale(c.value),z(w.value))},pe=x(()=>Av(o.format)),Ae=x(()=>Rv(o.format)),Le=x(()=>{if(I.value)return I.value;if(!(!o.parsedValue&&!C.value))return(o.parsedValue||w.value).format(pe.value)}),Xe=x(()=>{if(M.value)return M.value;if(!(!o.parsedValue&&!C.value))return(o.parsedValue||w.value).format(Ae.value)}),xe=F(!1),He=()=>{xe.value=!0},ot=()=>{xe.value=!1},Pe=ue=>({hour:ue.hour(),minute:ue.minute(),second:ue.second(),year:ue.year(),month:ue.month(),date:ue.date()}),qe=(ue,Me,We)=>{const{hour:Y,minute:ne,second:he}=Pe(ue),$e=o.parsedValue?o.parsedValue.hour(Y).minute(ne).second(he):ue;w.value=$e,z(w.value,!0),We||(xe.value=Me)},ze=ue=>{const Me=at(ue,pe.value).locale(c.value);if(Me.isValid()&&_(Me)){const{year:We,month:Y,date:ne}=Pe(w.value);w.value=Me.year(We).month(Y).date(ne),I.value=null,xe.value=!1,z(w.value,!0)}},Se=ue=>{const Me=at(ue,Ae.value).locale(c.value);if(Me.isValid()){if(v&&v(Me.toDate()))return;const{hour:We,minute:Y,second:ne}=Pe(w.value);w.value=Me.hour(We).minute(Y).second(ne),M.value=null,z(w.value,!0)}},Oe=ue=>at.isDayjs(ue)&&ue.isValid()&&(v?!v(ue.toDate()):!0),De=ue=>X.value==="dates"?ue.map(Me=>Me.format(o.format)):ue.format(o.format),Je=ue=>at(ue,o.format).locale(c.value),rt=()=>{const ue=at(C.value).locale(c.value);if(!C.value){const Me=T.value;return at().hour(Me.hour()).minute(Me.minute()).second(Me.second()).locale(c.value)}return ue},st=async()=>{var ue;["week","month","year","date"].includes(X.value)&&((ue=k.value)==null||ue.focus(),X.value==="week"&&vt(Ye.down))},Ee=ue=>{const{code:Me}=ue;[Ye.up,Ye.down,Ye.left,Ye.right,Ye.home,Ye.end,Ye.pageUp,Ye.pageDown].includes(Me)&&(vt(Me),ue.stopPropagation(),ue.preventDefault()),[Ye.enter,Ye.space].includes(Me)&&M.value===null&&I.value===null&&(ue.preventDefault(),z(w.value,!1))},vt=ue=>{var Me;const{up:We,down:Y,left:ne,right:he,home:$e,end:Be,pageUp:Mt,pageDown:Nt}=Ye,Bt={year:{[We]:-4,[Y]:4,[ne]:-1,[he]:1,offset:(Ct,we)=>Ct.setFullYear(Ct.getFullYear()+we)},month:{[We]:-4,[Y]:4,[ne]:-1,[he]:1,offset:(Ct,we)=>Ct.setMonth(Ct.getMonth()+we)},week:{[We]:-1,[Y]:1,[ne]:-1,[he]:1,offset:(Ct,we)=>Ct.setDate(Ct.getDate()+we*7)},date:{[We]:-7,[Y]:7,[ne]:-1,[he]:1,[$e]:Ct=>-Ct.getDay(),[Be]:Ct=>-Ct.getDay()+6,[Mt]:Ct=>-new Date(Ct.getFullYear(),Ct.getMonth(),0).getDate(),[Nt]:Ct=>new Date(Ct.getFullYear(),Ct.getMonth()+1,0).getDate(),offset:(Ct,we)=>Ct.setDate(Ct.getDate()+we)}},Tt=w.value.toDate();for(;Math.abs(w.value.diff(Tt,"year",!0))<1;){const Ct=Bt[Q.value];if(!Ct)return;if(Ct.offset(Tt,At(Ct[ue])?Ct[ue](Tt):(Me=Ct[ue])!=null?Me:0),v&&v(Tt))break;const we=at(Tt).locale(c.value);w.value=we,t("pick",we,!0);break}},pt=ue=>{t("panel-change",w.value.toDate(),ue,D.value)};return ke(()=>X.value,ue=>{if(["month","year"].includes(ue)){D.value=ue;return}D.value="date"},{immediate:!0}),ke(()=>D.value,()=>{d==null||d.updatePopper()}),ke(()=>C.value,ue=>{ue&&(w.value=rt())},{immediate:!0}),ke(()=>o.parsedValue,ue=>{if(ue){if(X.value==="dates"||Array.isArray(ue))return;w.value=ue}else w.value=rt()},{immediate:!0}),t("set-picker-option",["isValidValue",Oe]),t("set-picker-option",["formatToString",De]),t("set-picker-option",["parseUserInput",Je]),t("set-picker-option",["handleFocusPicker",st]),(ue,Me)=>(N(),U("div",{class:P([a(r).b(),a(s).b(),{"has-sidebar":ue.$slots.sidebar||a(q),"has-time":a(Ce)}])},[te("div",{class:P(a(r).e("body-wrapper"))},[ye(ue.$slots,"sidebar",{class:P(a(r).e("sidebar"))}),a(q)?(N(),U("div",{key:0,class:P(a(r).e("sidebar"))},[(N(!0),U(Qe,null,bt(a(h),(We,Y)=>(N(),U("button",{key:Y,type:"button",class:P(a(r).e("shortcut")),onClick:ne=>B(We)},Ne(We.text),11,pP))),128))],2)):de("v-if",!0),te("div",{class:P(a(r).e("body"))},[a(Ce)?(N(),U("div",{key:0,class:P(a(s).e("time-header"))},[te("span",{class:P(a(s).e("editor-wrap"))},[Z(a(bn),{placeholder:a(u)("el.datepicker.selectDate"),"model-value":a(Xe),size:"small","validate-event":!1,onInput:Me[0]||(Me[0]=We=>M.value=We),onChange:Se},null,8,["placeholder","model-value"])],2),lt((N(),U("span",{class:P(a(s).e("editor-wrap"))},[Z(a(bn),{placeholder:a(u)("el.datepicker.selectTime"),"model-value":a(Le),size:"small","validate-event":!1,onFocus:He,onInput:Me[1]||(Me[1]=We=>I.value=We),onChange:ze},null,8,["placeholder","model-value"]),Z(a(Ga),{visible:xe.value,format:a(pe),"time-arrow-control":a(b),"parsed-value":w.value,onPick:qe},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[a(zo),ot]])],2)):de("v-if",!0),lt(te("div",{class:P([a(s).e("header"),(D.value==="year"||D.value==="month")&&a(s).e("header--bordered")])},[te("span",{class:P(a(s).e("prev-btn"))},[te("button",{type:"button","aria-label":a(u)("el.datepicker.prevYear"),class:P(["d-arrow-left",a(r).e("icon-btn")]),onClick:Me[2]||(Me[2]=We=>j(!1))},[Z(a(_e),null,{default:se(()=>[Z(a(Ar))]),_:1})],10,hP),lt(te("button",{type:"button","aria-label":a(u)("el.datepicker.prevMonth"),class:P([a(r).e("icon-btn"),"arrow-left"]),onClick:Me[3]||(Me[3]=We=>W(!1))},[Z(a(_e),null,{default:se(()=>[Z(a(Mo))]),_:1})],10,vP),[[xt,D.value==="date"]])],2),te("span",{role:"button",class:P(a(s).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Me[4]||(Me[4]=Et(We=>me("year"),["enter"])),onClick:Me[5]||(Me[5]=We=>me("year"))},Ne(a(V)),35),lt(te("span",{role:"button","aria-live":"polite",tabindex:"0",class:P([a(s).e("header-label"),{active:D.value==="month"}]),onKeydown:Me[6]||(Me[6]=Et(We=>me("month"),["enter"])),onClick:Me[7]||(Me[7]=We=>me("month"))},Ne(a(u)(`el.datepicker.month${a($)+1}`)),35),[[xt,D.value==="date"]]),te("span",{class:P(a(s).e("next-btn"))},[lt(te("button",{type:"button","aria-label":a(u)("el.datepicker.nextMonth"),class:P([a(r).e("icon-btn"),"arrow-right"]),onClick:Me[8]||(Me[8]=We=>W(!0))},[Z(a(_e),null,{default:se(()=>[Z(a(wn))]),_:1})],10,mP),[[xt,D.value==="date"]]),te("button",{type:"button","aria-label":a(u)("el.datepicker.nextYear"),class:P([a(r).e("icon-btn"),"d-arrow-right"]),onClick:Me[9]||(Me[9]=We=>j(!0))},[Z(a(_e),null,{default:se(()=>[Z(a(Dr))]),_:1})],10,gP)],2)],2),[[xt,D.value!=="time"]]),te("div",{class:P(a(r).e("content")),onKeydown:Ee},[D.value==="date"?(N(),fe(ji,{key:0,ref_key:"currentViewRef",ref:k,"selection-mode":a(X),date:w.value,"parsed-value":ue.parsedValue,"disabled-date":a(v),"cell-class-name":a(m),onPick:H},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):de("v-if",!0),D.value==="year"?(N(),fe(fP,{key:1,ref_key:"currentViewRef",ref:k,date:w.value,"disabled-date":a(v),"parsed-value":ue.parsedValue,onPick:ve},null,8,["date","disabled-date","parsed-value"])):de("v-if",!0),D.value==="month"?(N(),fe(Yi,{key:2,ref_key:"currentViewRef",ref:k,date:w.value,"parsed-value":ue.parsedValue,"disabled-date":a(v),onPick:ee},null,8,["date","parsed-value","disabled-date"])):de("v-if",!0)],34)],2)],2),lt(te("div",{class:P(a(r).e("footer"))},[lt(Z(a(mn),{text:"",size:"small",class:P(a(r).e("link-btn")),onClick:ie},{default:se(()=>[It(Ne(a(u)("el.datepicker.now")),1)]),_:1},8,["class"]),[[xt,a(X)!=="dates"]]),Z(a(mn),{plain:"",size:"small",class:P(a(r).e("link-btn")),onClick:re},{default:se(()=>[It(Ne(a(u)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[xt,a(le)&&D.value==="date"]])],2))}});var bP=Ie(yP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const wP=Re({...Em,...$m}),CP=e=>{const{emit:t}=yt(),o=al(),n=gn();return s=>{const l=At(s.value)?s.value():s.value;if(l){t("pick",[at(l[0]).locale(e.value),at(l[1]).locale(e.value)]);return}s.onClick&&s.onClick({attrs:o,slots:n,emit:t})}},xm=(e,{defaultValue:t,leftDate:o,rightDate:n,unit:r,onParsedValueChanged:s})=>{const{emit:l}=yt(),{pickerNs:i}=Ue(Yu),u=be("date-range-picker"),{t:c,lang:f}=$t(),d=CP(f),h=F(),v=F(),m=F({endDate:null,selecting:!1}),g=w=>{m.value=w},b=(w=!1)=>{const E=a(h),T=a(v);_i([E,T])&&l("pick",[E,T],w)},C=w=>{m.value.selecting=w,w||(m.value.endDate=null)},k=()=>{const[w,E]=Om(a(t),{lang:a(f),unit:r,unlinkPanels:e.unlinkPanels});h.value=void 0,v.value=void 0,o.value=w,n.value=E};return ke(t,w=>{w&&k()},{immediate:!0}),ke(()=>e.parsedValue,w=>{if(ft(w)&&w.length===2){const[E,T]=w;h.value=E,o.value=E,v.value=T,s(a(h),a(v))}else k()},{immediate:!0}),{minDate:h,maxDate:v,rangeState:m,lang:f,ppNs:i,drpNs:u,handleChangeRange:g,handleRangeConfirm:b,handleShortcutClick:d,onSelect:C,t:c}},SP=["onClick"],kP=["disabled"],EP=["disabled"],$P=["disabled"],TP=["disabled"],ca="month",OP=oe({__name:"panel-date-range",props:wP,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const o=e,n=Ue("EP_PICKER_BASE"),{disabledDate:r,cellClassName:s,format:l,defaultTime:i,arrowControl:u,clearable:c}=n.props,f=Jt(n.props,"shortcuts"),d=Jt(n.props,"defaultValue"),{lang:h}=$t(),v=F(at().locale(h.value)),m=F(at().locale(h.value).add(1,ca)),{minDate:g,maxDate:b,rangeState:C,ppNs:k,drpNs:w,handleChangeRange:E,handleRangeConfirm:T,handleShortcutClick:$,onSelect:A,t:R}=xm(o,{defaultValue:d,leftDate:v,rightDate:m,unit:ca,onParsedValueChanged:Y}),M=F({min:null,max:null}),I=F({min:null,max:null}),_=x(()=>`${v.value.year()} ${R("el.datepicker.year")} ${R(`el.datepicker.month${v.value.month()+1}`)}`),L=x(()=>`${m.value.year()} ${R("el.datepicker.year")} ${R(`el.datepicker.month${m.value.month()+1}`)}`),z=x(()=>v.value.year()),H=x(()=>v.value.month()),W=x(()=>m.value.year()),j=x(()=>m.value.month()),D=x(()=>!!f.value.length),V=x(()=>M.value.min!==null?M.value.min:g.value?g.value.format(ee.value):""),B=x(()=>M.value.max!==null?M.value.max:b.value||g.value?(b.value||g.value).format(ee.value):""),X=x(()=>I.value.min!==null?I.value.min:g.value?g.value.format(q.value):""),Q=x(()=>I.value.max!==null?I.value.max:b.value||g.value?(b.value||g.value).format(q.value):""),q=x(()=>Av(l)),ee=x(()=>Rv(l)),ve=()=>{v.value=v.value.subtract(1,"year"),o.unlinkPanels||(m.value=v.value.add(1,"month")),Le("year")},me=()=>{v.value=v.value.subtract(1,"month"),o.unlinkPanels||(m.value=v.value.add(1,"month")),Le("month")},Ce=()=>{o.unlinkPanels?m.value=m.value.add(1,"year"):(v.value=v.value.add(1,"year"),m.value=v.value.add(1,"month")),Le("year")},le=()=>{o.unlinkPanels?m.value=m.value.add(1,"month"):(v.value=v.value.add(1,"month"),m.value=v.value.add(1,"month")),Le("month")},re=()=>{v.value=v.value.add(1,"year"),Le("year")},ie=()=>{v.value=v.value.add(1,"month"),Le("month")},pe=()=>{m.value=m.value.subtract(1,"year"),Le("year")},Ae=()=>{m.value=m.value.subtract(1,"month"),Le("month")},Le=ne=>{t("panel-change",[v.value.toDate(),m.value.toDate()],ne)},Xe=x(()=>{const ne=(H.value+1)%12,he=H.value+1>=12?1:0;return o.unlinkPanels&&new Date(z.value+he,ne)o.unlinkPanels&&W.value*12+j.value-(z.value*12+H.value+1)>=12),He=x(()=>!(g.value&&b.value&&!C.value.selecting&&_i([g.value,b.value]))),ot=x(()=>o.type==="datetime"||o.type==="datetimerange"),Pe=(ne,he)=>{if(!!ne)return i?at(i[he]||i).locale(h.value).year(ne.year()).month(ne.month()).date(ne.date()):ne},qe=(ne,he=!0)=>{const $e=ne.minDate,Be=ne.maxDate,Mt=Pe($e,0),Nt=Pe(Be,1);b.value===Nt&&g.value===Mt||(t("calendar-change",[$e.toDate(),Be&&Be.toDate()]),b.value=Nt,g.value=Mt,!(!he||ot.value)&&T())},ze=F(!1),Se=F(!1),Oe=()=>{ze.value=!1},De=()=>{Se.value=!1},Je=(ne,he)=>{M.value[he]=ne;const $e=at(ne,ee.value).locale(h.value);if($e.isValid()){if(r&&r($e.toDate()))return;he==="min"?(v.value=$e,g.value=(g.value||v.value).year($e.year()).month($e.month()).date($e.date()),o.unlinkPanels||(m.value=$e.add(1,"month"),b.value=g.value.add(1,"month"))):(m.value=$e,b.value=(b.value||m.value).year($e.year()).month($e.month()).date($e.date()),o.unlinkPanels||(v.value=$e.subtract(1,"month"),g.value=b.value.subtract(1,"month")))}},rt=(ne,he)=>{M.value[he]=null},st=(ne,he)=>{I.value[he]=ne;const $e=at(ne,q.value).locale(h.value);$e.isValid()&&(he==="min"?(ze.value=!0,g.value=(g.value||v.value).hour($e.hour()).minute($e.minute()).second($e.second()),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value)):(Se.value=!0,b.value=(b.value||m.value).hour($e.hour()).minute($e.minute()).second($e.second()),m.value=b.value,b.value&&b.value.isBefore(g.value)&&(g.value=b.value)))},Ee=(ne,he)=>{I.value[he]=null,he==="min"?(v.value=g.value,ze.value=!1):(m.value=b.value,Se.value=!1)},vt=(ne,he,$e)=>{I.value.min||(ne&&(v.value=ne,g.value=(g.value||v.value).hour(ne.hour()).minute(ne.minute()).second(ne.second())),$e||(ze.value=he),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value,m.value=ne))},pt=(ne,he,$e)=>{I.value.max||(ne&&(m.value=ne,b.value=(b.value||m.value).hour(ne.hour()).minute(ne.minute()).second(ne.second())),$e||(Se.value=he),b.value&&b.value.isBefore(g.value)&&(g.value=b.value))},ue=()=>{v.value=Om(a(d),{lang:a(h),unit:"month",unlinkPanels:o.unlinkPanels})[0],m.value=v.value.add(1,"month"),t("pick",null)},Me=ne=>ft(ne)?ne.map(he=>he.format(l)):ne.format(l),We=ne=>ft(ne)?ne.map(he=>at(he,l).locale(h.value)):at(ne,l).locale(h.value);function Y(ne,he){if(o.unlinkPanels&&he){const $e=(ne==null?void 0:ne.year())||0,Be=(ne==null?void 0:ne.month())||0,Mt=he.year(),Nt=he.month();m.value=$e===Mt&&Be===Nt?he.add(1,ca):he}else m.value=v.value.add(1,ca),he&&(m.value=m.value.hour(he.hour()).minute(he.minute()).second(he.second()))}return t("set-picker-option",["isValidValue",_i]),t("set-picker-option",["parseUserInput",We]),t("set-picker-option",["formatToString",Me]),t("set-picker-option",["handleClear",ue]),(ne,he)=>(N(),U("div",{class:P([a(k).b(),a(w).b(),{"has-sidebar":ne.$slots.sidebar||a(D),"has-time":a(ot)}])},[te("div",{class:P(a(k).e("body-wrapper"))},[ye(ne.$slots,"sidebar",{class:P(a(k).e("sidebar"))}),a(D)?(N(),U("div",{key:0,class:P(a(k).e("sidebar"))},[(N(!0),U(Qe,null,bt(a(f),($e,Be)=>(N(),U("button",{key:Be,type:"button",class:P(a(k).e("shortcut")),onClick:Mt=>a($)($e)},Ne($e.text),11,SP))),128))],2)):de("v-if",!0),te("div",{class:P(a(k).e("body"))},[a(ot)?(N(),U("div",{key:0,class:P(a(w).e("time-header"))},[te("span",{class:P(a(w).e("editors-wrap"))},[te("span",{class:P(a(w).e("time-picker-wrap"))},[Z(a(bn),{size:"small",disabled:a(C).selecting,placeholder:a(R)("el.datepicker.startDate"),class:P(a(w).e("editor")),"model-value":a(V),"validate-event":!1,onInput:he[0]||(he[0]=$e=>Je($e,"min")),onChange:he[1]||(he[1]=$e=>rt($e,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),lt((N(),U("span",{class:P(a(w).e("time-picker-wrap"))},[Z(a(bn),{size:"small",class:P(a(w).e("editor")),disabled:a(C).selecting,placeholder:a(R)("el.datepicker.startTime"),"model-value":a(X),"validate-event":!1,onFocus:he[2]||(he[2]=$e=>ze.value=!0),onInput:he[3]||(he[3]=$e=>st($e,"min")),onChange:he[4]||(he[4]=$e=>Ee($e,"min"))},null,8,["class","disabled","placeholder","model-value"]),Z(a(Ga),{visible:ze.value,format:a(q),"datetime-role":"start","time-arrow-control":a(u),"parsed-value":v.value,onPick:vt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[a(zo),Oe]])],2),te("span",null,[Z(a(_e),null,{default:se(()=>[Z(a(wn))]),_:1})]),te("span",{class:P([a(w).e("editors-wrap"),"is-right"])},[te("span",{class:P(a(w).e("time-picker-wrap"))},[Z(a(bn),{size:"small",class:P(a(w).e("editor")),disabled:a(C).selecting,placeholder:a(R)("el.datepicker.endDate"),"model-value":a(B),readonly:!a(g),"validate-event":!1,onInput:he[5]||(he[5]=$e=>Je($e,"max")),onChange:he[6]||(he[6]=$e=>rt($e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),lt((N(),U("span",{class:P(a(w).e("time-picker-wrap"))},[Z(a(bn),{size:"small",class:P(a(w).e("editor")),disabled:a(C).selecting,placeholder:a(R)("el.datepicker.endTime"),"model-value":a(Q),readonly:!a(g),"validate-event":!1,onFocus:he[7]||(he[7]=$e=>a(g)&&(Se.value=!0)),onInput:he[8]||(he[8]=$e=>st($e,"max")),onChange:he[9]||(he[9]=$e=>Ee($e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Z(a(Ga),{"datetime-role":"end",visible:Se.value,format:a(q),"time-arrow-control":a(u),"parsed-value":m.value,onPick:pt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[a(zo),De]])],2)],2)):de("v-if",!0),te("div",{class:P([[a(k).e("content"),a(w).e("content")],"is-left"])},[te("div",{class:P(a(w).e("header"))},[te("button",{type:"button",class:P([a(k).e("icon-btn"),"d-arrow-left"]),onClick:ve},[Z(a(_e),null,{default:se(()=>[Z(a(Ar))]),_:1})],2),te("button",{type:"button",class:P([a(k).e("icon-btn"),"arrow-left"]),onClick:me},[Z(a(_e),null,{default:se(()=>[Z(a(Mo))]),_:1})],2),ne.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!a(xe),class:P([[a(k).e("icon-btn"),{"is-disabled":!a(xe)}],"d-arrow-right"]),onClick:re},[Z(a(_e),null,{default:se(()=>[Z(a(Dr))]),_:1})],10,kP)):de("v-if",!0),ne.unlinkPanels?(N(),U("button",{key:1,type:"button",disabled:!a(Xe),class:P([[a(k).e("icon-btn"),{"is-disabled":!a(Xe)}],"arrow-right"]),onClick:ie},[Z(a(_e),null,{default:se(()=>[Z(a(wn))]),_:1})],10,EP)):de("v-if",!0),te("div",null,Ne(a(_)),1)],2),Z(ji,{"selection-mode":"range",date:v.value,"min-date":a(g),"max-date":a(b),"range-state":a(C),"disabled-date":a(r),"cell-class-name":a(s),onChangerange:a(E),onPick:qe,onSelect:a(A)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),te("div",{class:P([[a(k).e("content"),a(w).e("content")],"is-right"])},[te("div",{class:P(a(w).e("header"))},[ne.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!a(xe),class:P([[a(k).e("icon-btn"),{"is-disabled":!a(xe)}],"d-arrow-left"]),onClick:pe},[Z(a(_e),null,{default:se(()=>[Z(a(Ar))]),_:1})],10,$P)):de("v-if",!0),ne.unlinkPanels?(N(),U("button",{key:1,type:"button",disabled:!a(Xe),class:P([[a(k).e("icon-btn"),{"is-disabled":!a(Xe)}],"arrow-left"]),onClick:Ae},[Z(a(_e),null,{default:se(()=>[Z(a(Mo))]),_:1})],10,TP)):de("v-if",!0),te("button",{type:"button",class:P([a(k).e("icon-btn"),"d-arrow-right"]),onClick:Ce},[Z(a(_e),null,{default:se(()=>[Z(a(Dr))]),_:1})],2),te("button",{type:"button",class:P([a(k).e("icon-btn"),"arrow-right"]),onClick:le},[Z(a(_e),null,{default:se(()=>[Z(a(wn))]),_:1})],2),te("div",null,Ne(a(L)),1)],2),Z(ji,{"selection-mode":"range",date:m.value,"min-date":a(g),"max-date":a(b),"range-state":a(C),"disabled-date":a(r),"cell-class-name":a(s),onChangerange:a(E),onPick:qe,onSelect:a(A)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),a(ot)?(N(),U("div",{key:0,class:P(a(k).e("footer"))},[a(c)?(N(),fe(a(mn),{key:0,text:"",size:"small",class:P(a(k).e("link-btn")),onClick:ue},{default:se(()=>[It(Ne(a(R)("el.datepicker.clear")),1)]),_:1},8,["class"])):de("v-if",!0),Z(a(mn),{plain:"",size:"small",class:P(a(k).e("link-btn")),disabled:a(He),onClick:he[10]||(he[10]=$e=>a(T)(!1))},{default:se(()=>[It(Ne(a(R)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):de("v-if",!0)],2))}});var xP=Ie(OP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const IP=Re({...$m}),MP=["pick","set-picker-option"],NP=({unlinkPanels:e,leftDate:t,rightDate:o})=>{const{t:n}=$t(),r=()=>{t.value=t.value.subtract(1,"year"),e.value||(o.value=o.value.subtract(1,"year"))},s=()=>{e.value||(t.value=t.value.add(1,"year")),o.value=o.value.add(1,"year")},l=()=>{t.value=t.value.add(1,"year")},i=()=>{o.value=o.value.subtract(1,"year")},u=x(()=>`${t.value.year()} ${n("el.datepicker.year")}`),c=x(()=>`${o.value.year()} ${n("el.datepicker.year")}`),f=x(()=>t.value.year()),d=x(()=>o.value.year()===t.value.year()?t.value.year()+1:o.value.year());return{leftPrevYear:r,rightNextYear:s,leftNextYear:l,rightPrevYear:i,leftLabel:u,rightLabel:c,leftYear:f,rightYear:d}},PP=["onClick"],RP=["disabled"],AP=["disabled"],da="year",DP=oe({name:"DatePickerMonthRange"}),LP=oe({...DP,props:IP,emits:MP,setup(e,{emit:t}){const o=e,{lang:n}=$t(),r=Ue("EP_PICKER_BASE"),{shortcuts:s,disabledDate:l,format:i}=r.props,u=Jt(r.props,"defaultValue"),c=F(at().locale(n.value)),f=F(at().locale(n.value).add(1,da)),{minDate:d,maxDate:h,rangeState:v,ppNs:m,drpNs:g,handleChangeRange:b,handleRangeConfirm:C,handleShortcutClick:k,onSelect:w}=xm(o,{defaultValue:u,leftDate:c,rightDate:f,unit:da,onParsedValueChanged:j}),E=x(()=>!!s.length),{leftPrevYear:T,rightNextYear:$,leftNextYear:A,rightPrevYear:R,leftLabel:M,rightLabel:I,leftYear:_,rightYear:L}=NP({unlinkPanels:Jt(o,"unlinkPanels"),leftDate:c,rightDate:f}),z=x(()=>o.unlinkPanels&&L.value>_.value+1),H=(D,V=!0)=>{const B=D.minDate,X=D.maxDate;h.value===X&&d.value===B||(h.value=X,d.value=B,V&&C())},W=D=>D.map(V=>V.format(i));function j(D,V){if(o.unlinkPanels&&V){const B=(D==null?void 0:D.year())||0,X=V.year();f.value=B===X?V.add(1,da):V}else f.value=c.value.add(1,da)}return t("set-picker-option",["formatToString",W]),(D,V)=>(N(),U("div",{class:P([a(m).b(),a(g).b(),{"has-sidebar":Boolean(D.$slots.sidebar)||a(E)}])},[te("div",{class:P(a(m).e("body-wrapper"))},[ye(D.$slots,"sidebar",{class:P(a(m).e("sidebar"))}),a(E)?(N(),U("div",{key:0,class:P(a(m).e("sidebar"))},[(N(!0),U(Qe,null,bt(a(s),(B,X)=>(N(),U("button",{key:X,type:"button",class:P(a(m).e("shortcut")),onClick:Q=>a(k)(B)},Ne(B.text),11,PP))),128))],2)):de("v-if",!0),te("div",{class:P(a(m).e("body"))},[te("div",{class:P([[a(m).e("content"),a(g).e("content")],"is-left"])},[te("div",{class:P(a(g).e("header"))},[te("button",{type:"button",class:P([a(m).e("icon-btn"),"d-arrow-left"]),onClick:V[0]||(V[0]=(...B)=>a(T)&&a(T)(...B))},[Z(a(_e),null,{default:se(()=>[Z(a(Ar))]),_:1})],2),D.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!a(z),class:P([[a(m).e("icon-btn"),{[a(m).is("disabled")]:!a(z)}],"d-arrow-right"]),onClick:V[1]||(V[1]=(...B)=>a(A)&&a(A)(...B))},[Z(a(_e),null,{default:se(()=>[Z(a(Dr))]),_:1})],10,RP)):de("v-if",!0),te("div",null,Ne(a(M)),1)],2),Z(Yi,{"selection-mode":"range",date:c.value,"min-date":a(d),"max-date":a(h),"range-state":a(v),"disabled-date":a(l),onChangerange:a(b),onPick:H,onSelect:a(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),te("div",{class:P([[a(m).e("content"),a(g).e("content")],"is-right"])},[te("div",{class:P(a(g).e("header"))},[D.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!a(z),class:P([[a(m).e("icon-btn"),{"is-disabled":!a(z)}],"d-arrow-left"]),onClick:V[2]||(V[2]=(...B)=>a(R)&&a(R)(...B))},[Z(a(_e),null,{default:se(()=>[Z(a(Ar))]),_:1})],10,AP)):de("v-if",!0),te("button",{type:"button",class:P([a(m).e("icon-btn"),"d-arrow-right"]),onClick:V[3]||(V[3]=(...B)=>a($)&&a($)(...B))},[Z(a(_e),null,{default:se(()=>[Z(a(Dr))]),_:1})],2),te("div",null,Ne(a(I)),1)],2),Z(Yi,{"selection-mode":"range",date:f.value,"min-date":a(d),"max-date":a(h),"range-state":a(v),"disabled-date":a(l),onChangerange:a(b),onPick:H,onSelect:a(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var BP=Ie(LP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const zP=function(e){switch(e){case"daterange":case"datetimerange":return xP;case"monthrange":return BP;default:return bP}};at.extend(Xv);at.extend(AN);at.extend(ac);at.extend(DN);at.extend(LN);at.extend(BN);at.extend(zN);at.extend(VN);var VP=oe({name:"ElDatePicker",install:null,props:{...lc,...FN},emits:["update:modelValue"],setup(e,{expose:t,emit:o,slots:n}){const r=be("picker-panel");gt("ElPopperOptions",Rt(Jt(e,"popperOptions"))),gt(Yu,{slots:n,pickerNs:r});const s=F();t({focus:(u=!0)=>{var c;(c=s.value)==null||c.focus(u)},handleOpen:()=>{var u;(u=s.value)==null||u.handleOpen()},handleClose:()=>{var u;(u=s.value)==null||u.handleClose()}});const i=u=>{o("update:modelValue",u)};return()=>{var u;const c=(u=e.format)!=null?u:KO[e.type]||Cr,f=zP(e.type);return Z(Bv,mt(e,{format:c,type:e.type,ref:s,"onUpdate:modelValue":i}),{default:d=>Z(f,d,null),"range-separator":n["range-separator"]})}}});const xa=VP;xa.install=e=>{e.component(xa.name,xa)};const FP=xa,dc="elDescriptions";var as=oe({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Ue(dc,{})}},render(){var e,t,o,n,r,s;const l=Sw(this.cell),{border:i,direction:u}=this.descriptions,c=u==="vertical",f=((o=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:o.call(t))||l.label,d=(s=(r=(n=this.cell)==null?void 0:n.children)==null?void 0:r.default)==null?void 0:s.call(r),h=l.span,v=l.align?`is-${l.align}`:"",m=l.labelAlign?`is-${l.labelAlign}`:v,g=l.className,b=l.labelClassName,C={width:un(l.width),minWidth:un(l.minWidth)},k=be("descriptions");switch(this.type){case"label":return Ke(this.tag,{style:C,class:[k.e("cell"),k.e("label"),k.is("bordered-label",i),k.is("vertical-label",c),m,b],colSpan:c?h:1},f);case"content":return Ke(this.tag,{style:C,class:[k.e("cell"),k.e("content"),k.is("bordered-content",i),k.is("vertical-content",c),v,g],colSpan:c?h:h*2-1},d);default:return Ke("td",{style:C,class:[k.e("cell"),v],colSpan:h},[Ke("span",{class:[k.e("label"),b]},f),Ke("span",{class:[k.e("content"),g]},d)])}}});const HP=Re({row:{type:Array,default:()=>[]}}),WP={key:1},KP=oe({name:"ElDescriptionsRow"}),_P=oe({...KP,props:HP,setup(e){const t=Ue(dc,{});return(o,n)=>a(t).direction==="vertical"?(N(),U(Qe,{key:0},[te("tr",null,[(N(!0),U(Qe,null,bt(o.row,(r,s)=>(N(),fe(a(as),{key:`tr1-${s}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),te("tr",null,[(N(!0),U(Qe,null,bt(o.row,(r,s)=>(N(),fe(a(as),{key:`tr2-${s}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(N(),U("tr",WP,[(N(!0),U(Qe,null,bt(o.row,(r,s)=>(N(),U(Qe,{key:`tr3-${s}`},[a(t).border?(N(),U(Qe,{key:0},[Z(a(as),{cell:r,tag:"td",type:"label"},null,8,["cell"]),Z(a(as),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(N(),fe(a(as),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var jP=Ie(_P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const YP=Re({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Zn,title:{type:String,default:""},extra:{type:String,default:""}}),UP=oe({name:"ElDescriptions"}),GP=oe({...UP,props:YP,setup(e){const t=e,o=be("descriptions"),n=dn(),r=gn();gt(dc,t);const s=x(()=>[o.b(),o.m(n.value)]),l=(u,c,f,d=!1)=>(u.props||(u.props={}),c>f&&(u.props.span=f),d&&(u.props.span=c),u),i=()=>{var u;const c=Ou((u=r.default)==null?void 0:u.call(r)).filter(m=>{var g;return((g=m==null?void 0:m.type)==null?void 0:g.name)==="ElDescriptionsItem"}),f=[];let d=[],h=t.column,v=0;return c.forEach((m,g)=>{var b;const C=((b=m.props)==null?void 0:b.span)||1;if(gh?h:C),g===c.length-1){const k=t.column-v%t.column;d.push(l(m,k,h,!0)),f.push(d);return}C(N(),U("div",{class:P(a(s))},[u.title||u.extra||u.$slots.title||u.$slots.extra?(N(),U("div",{key:0,class:P(a(o).e("header"))},[te("div",{class:P(a(o).e("title"))},[ye(u.$slots,"title",{},()=>[It(Ne(u.title),1)])],2),te("div",{class:P(a(o).e("extra"))},[ye(u.$slots,"extra",{},()=>[It(Ne(u.extra),1)])],2)],2)):de("v-if",!0),te("div",{class:P(a(o).e("body"))},[te("table",{class:P([a(o).e("table"),a(o).is("bordered",u.border)])},[te("tbody",null,[(N(!0),U(Qe,null,bt(i(),(f,d)=>(N(),fe(jP,{key:d,row:f},null,8,["row"]))),128))])],2)],2)],2))}});var qP=Ie(GP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),Im=oe({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 XP=dt(qP,{DescriptionsItem:Im}),ZP=Ut(Im),Mm=Re({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:jt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),JP={close:()=>!0},QP=["aria-label"],eR=["id"],tR=oe({name:"ElDialogContent"}),nR=oe({...tR,props:Mm,emits:JP,setup(e){const t=e,{t:o}=$t(),{Close:n}=ih,{dialogRef:r,headerRef:s,bodyId:l,ns:i,style:u}=Ue(Wh),{focusTrapRef:c}=Ue(ph),f=hl(c,r),d=x(()=>t.draggable);return kw(r,s,d),(h,v)=>(N(),U("div",{ref:a(f),class:P([a(i).b(),a(i).is("fullscreen",h.fullscreen),a(i).is("draggable",a(d)),a(i).is("align-center",h.alignCenter),{[a(i).m("center")]:h.center},h.customClass]),style:je(a(u)),tabindex:"-1"},[te("header",{ref_key:"headerRef",ref:s,class:P(a(i).e("header"))},[ye(h.$slots,"header",{},()=>[te("span",{role:"heading",class:P(a(i).e("title"))},Ne(h.title),3)]),h.showClose?(N(),U("button",{key:0,"aria-label":a(o)("el.dialog.close"),class:P(a(i).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=m=>h.$emit("close"))},[Z(a(_e),{class:P(a(i).e("close"))},{default:se(()=>[(N(),fe(St(h.closeIcon||a(n))))]),_:1},8,["class"])],10,QP)):de("v-if",!0)],2),te("div",{id:a(l),class:P(a(i).e("body"))},[ye(h.$slots,"default")],10,eR),h.$slots.footer?(N(),U("footer",{key:0,class:P(a(i).e("footer"))},[ye(h.$slots,"footer")],2)):de("v-if",!0)],6))}});var oR=Ie(nR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Nm=Re({...Mm,appendToBody:{type:Boolean,default:!1},beforeClose:{type:ce(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}}),Pm={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ut]:e=>en(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Rm=(e,t)=>{const n=yt().emit,{nextZIndex:r}=cr();let s="";const l=Do(),i=Do(),u=F(!1),c=F(!1),f=F(!1),d=F(e.zIndex||r());let h,v;const m=sh("namespace",ah),g=x(()=>{const H={},W=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(H[`${W}-margin-top`]=e.top),e.width&&(H[`${W}-width`]=un(e.width))),H}),b=x(()=>e.alignCenter?{display:"flex"}:{});function C(){n("opened")}function k(){n("closed"),n(ut,!1),e.destroyOnClose&&(f.value=!1)}function w(){n("close")}function E(){v==null||v(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Br(()=>R(),e.openDelay):R()}function T(){h==null||h(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=Br(()=>M(),e.closeDelay):M()}function $(){function H(W){W||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(H):T()}function A(){e.closeOnClickModal&&$()}function R(){!Dt||(u.value=!0)}function M(){u.value=!1}function I(){n("openAutoFocus")}function _(){n("closeAutoFocus")}function L(H){var W;((W=H.detail)==null?void 0:W.focusReason)==="pointer"&&H.preventDefault()}e.lockScroll&&Ew(u);function z(){e.closeOnPressEscape&&$()}return ke(()=>e.modelValue,H=>{H?(c.value=!1,E(),f.value=!0,d.value=e.zIndex?d.value++:r(),Ge(()=>{n("open"),t.value&&(t.value.scrollTop=0)})):u.value&&T()}),ke(()=>e.fullscreen,H=>{!t.value||(H?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),ht(()=>{e.modelValue&&(u.value=!0,f.value=!0,E())}),{afterEnter:C,afterLeave:k,beforeLeave:w,handleClose:$,onModalClick:A,close:T,doClose:M,onOpenAutoFocus:I,onCloseAutoFocus:_,onCloseRequested:z,onFocusoutPrevented:L,titleId:l,bodyId:i,closed:c,style:g,overlayDialogStyle:b,rendered:f,visible:u,zIndex:d}},rR=["aria-label","aria-labelledby","aria-describedby"],sR=oe({name:"ElDialog",inheritAttrs:!1}),aR=oe({...sR,props:Nm,emits:Pm,setup(e,{expose:t}){const o=e,n=gn();Lo({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"},x(()=>!!n.title)),Lo({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"},x(()=>!!o.customClass));const r=be("dialog"),s=F(),l=F(),i=F(),{visible:u,titleId:c,bodyId:f,style:d,overlayDialogStyle:h,rendered:v,zIndex:m,afterEnter:g,afterLeave:b,beforeLeave:C,handleClose:k,onModalClick:w,onOpenAutoFocus:E,onCloseAutoFocus:T,onCloseRequested:$,onFocusoutPrevented:A}=Rm(o,s);gt(Wh,{dialogRef:s,headerRef:l,bodyId:f,ns:r,rendered:v,style:d});const R=$w(w),M=x(()=>o.draggable&&!o.fullscreen);return t({visible:u,dialogContentRef:i}),(I,_)=>(N(),fe(Bs,{to:"body",disabled:!I.appendToBody},[Z(cn,{name:"dialog-fade",onAfterEnter:a(g),onAfterLeave:a(b),onBeforeLeave:a(C),persisted:""},{default:se(()=>[lt(Z(a(hh),{"custom-mask-event":"",mask:I.modal,"overlay-class":I.modalClass,"z-index":a(m)},{default:se(()=>[te("div",{role:"dialog","aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:a(c),"aria-describedby":a(f),class:P(`${a(r).namespace.value}-overlay-dialog`),style:je(a(h)),onClick:_[0]||(_[0]=(...L)=>a(R).onClick&&a(R).onClick(...L)),onMousedown:_[1]||(_[1]=(...L)=>a(R).onMousedown&&a(R).onMousedown(...L)),onMouseup:_[2]||(_[2]=(...L)=>a(R).onMouseup&&a(R).onMouseup(...L))},[Z(a(Iu),{loop:"",trapped:a(u),"focus-start-el":"container",onFocusAfterTrapped:a(E),onFocusAfterReleased:a(T),onFocusoutPrevented:a(A),onReleaseRequested:a($)},{default:se(()=>[a(v)?(N(),fe(oR,mt({key:0,ref_key:"dialogContentRef",ref:i},I.$attrs,{"custom-class":I.customClass,center:I.center,"align-center":I.alignCenter,"close-icon":I.closeIcon,draggable:a(M),fullscreen:I.fullscreen,"show-close":I.showClose,title:I.title,onClose:a(k)}),Io({header:se(()=>[I.$slots.title?ye(I.$slots,"title",{key:1}):ye(I.$slots,"header",{key:0,close:a(k),titleId:a(c),titleClass:a(r).e("title")})]),default:se(()=>[ye(I.$slots,"default")]),_:2},[I.$slots.footer?{name:"footer",fn:se(()=>[ye(I.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):de("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,rR)]),_:3},8,["mask","overlay-class","z-index"]),[[xt,a(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var lR=Ie(aR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const iR=dt(lR),uR=Re({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ce(String),default:"solid"}}),cR=oe({name:"ElDivider"}),dR=oe({...cR,props:uR,setup(e){const t=e,o=be("divider"),n=x(()=>o.cssVar({"border-style":t.borderStyle}));return(r,s)=>(N(),U("div",{class:P([a(o).b(),a(o).m(r.direction)]),style:je(a(n)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(N(),U("div",{key:0,class:P([a(o).e("text"),a(o).is(r.contentPosition)])},[ye(r.$slots,"default")],2)):de("v-if",!0)],6))}});var fR=Ie(dR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const Am=dt(fR),pR=Re({...Nm,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}}),hR=Pm,vR=oe({name:"ElDrawer",components:{ElOverlay:hh,ElFocusTrap:Iu,ElIcon:_e,Close:mo},inheritAttrs:!1,props:pR,emits:hR,setup(e,{slots:t}){Lo({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"},x(()=>!!t.title)),Lo({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"},x(()=>!!e.customClass));const o=F(),n=F(),r=be("drawer"),{t:s}=$t(),l=x(()=>e.direction==="rtl"||e.direction==="ltr"),i=x(()=>un(e.size));return{...Rm(e,o),drawerRef:o,focusStartRef:n,isHorizontal:l,drawerSize:i,ns:r,t:s}}}),mR=["aria-label","aria-labelledby","aria-describedby"],gR=["id"],yR=["aria-label"],bR=["id"];function wR(e,t,o,n,r,s){const l=tt("close"),i=tt("el-icon"),u=tt("el-focus-trap"),c=tt("el-overlay");return N(),fe(Bs,{to:"body",disabled:!e.appendToBody},[Z(cn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:se(()=>[lt(Z(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:se(()=>[Z(u,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:se(()=>[te("div",mt({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=nt(()=>{},["stop"]))}),[te("span",{ref:"focusStartRef",class:P(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(N(),U("header",{key:0,class:P(e.ns.e("header"))},[e.$slots.title?ye(e.$slots,"title",{key:1},()=>[de(" DEPRECATED SLOT ")]):ye(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?de("v-if",!0):(N(),U("span",{key:0,id:e.titleId,role:"heading",class:P(e.ns.e("title"))},Ne(e.title),11,gR))]),e.showClose?(N(),U("button",{key:2,"aria-label":e.t("el.drawer.close"),class:P(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[Z(i,{class:P(e.ns.e("close"))},{default:se(()=>[Z(l)]),_:1},8,["class"])],10,yR)):de("v-if",!0)],2)):de("v-if",!0),e.rendered?(N(),U("div",{key:1,id:e.bodyId,class:P(e.ns.e("body"))},[ye(e.$slots,"default")],10,bR)):de("v-if",!0),e.$slots.footer?(N(),U("div",{key:2,class:P(e.ns.e("footer"))},[ye(e.$slots,"footer")],2)):de("v-if",!0)],16,mR)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[xt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var CR=Ie(vR,[["render",wR],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const SR=dt(CR),kR=oe({inheritAttrs:!1});function ER(e,t,o,n,r,s){return ye(e.$slots,"default")}var $R=Ie(kR,[["render",ER],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const TR=oe({name:"ElCollectionItem",inheritAttrs:!1});function OR(e,t,o,n,r,s){return ye(e.$slots,"default")}var xR=Ie(TR,[["render",OR],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Dm="data-el-collection-item",Lm=e=>{const t=`El${e}Collection`,o=`${t}Item`,n=Symbol(t),r=Symbol(o),s={...$R,name:t,setup(){const i=F(null),u=new Map;gt(n,{itemMap:u,getItems:()=>{const f=a(i);if(!f)return[];const d=Array.from(f.querySelectorAll(`[${Dm}]`));return[...u.values()].sort((v,m)=>d.indexOf(v.ref)-d.indexOf(m.ref))},collectionRef:i})}},l={...xR,name:o,setup(i,{attrs:u}){const c=F(null),f=Ue(n,void 0);gt(r,{collectionItemRef:c}),ht(()=>{const d=a(c);d&&f.itemMap.set(d,{ref:d,...u})}),sn(()=>{const d=a(c);f.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:s,ElCollectionItem:l}},IR=Re({style:{type:ce([String,Array,Object])},currentTabId:{type:ce(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ce(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:MR,ElCollectionItem:NR,COLLECTION_INJECTION_KEY:fc,COLLECTION_ITEM_INJECTION_KEY:PR}=Lm("RovingFocusGroup"),pc=Symbol("elRovingFocusGroup"),Bm=Symbol("elRovingFocusGroupItem"),RR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},AR=(e,t)=>{if(t!=="rtl")return e;switch(e){case Ye.right:return Ye.left;case Ye.left:return Ye.right;default:return e}},DR=(e,t,o)=>{const n=AR(e.key,o);if(!(t==="vertical"&&[Ye.left,Ye.right].includes(n))&&!(t==="horizontal"&&[Ye.up,Ye.down].includes(n)))return RR[n]},LR=(e,t)=>e.map((o,n)=>e[(n+t)%e.length]),hc=e=>{const{activeElement:t}=document;for(const o of e)if(o===t||(o.focus(),t!==document.activeElement))return},Zf="currentTabIdChange",Jf="rovingFocusGroup.entryFocus",BR={bubbles:!1,cancelable:!0},zR=oe({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:IR,emits:[Zf,"entryFocus"],setup(e,{emit:t}){var o;const n=F((o=e.currentTabId||e.defaultCurrentTabId)!=null?o:null),r=F(!1),s=F(!1),l=F(null),{getItems:i}=Ue(fc,void 0),u=x(()=>[{outline:"none"},e.style]),c=g=>{t(Zf,g)},f=()=>{r.value=!0},d=Wt(g=>{var b;(b=e.onMousedown)==null||b.call(e,g)},()=>{s.value=!0}),h=Wt(g=>{var b;(b=e.onFocus)==null||b.call(e,g)},g=>{const b=!a(s),{target:C,currentTarget:k}=g;if(C===k&&b&&!a(r)){const w=new Event(Jf,BR);if(k==null||k.dispatchEvent(w),!w.defaultPrevented){const E=i().filter(M=>M.focusable),T=E.find(M=>M.active),$=E.find(M=>M.id===a(n)),R=[T,$,...E].filter(Boolean).map(M=>M.ref);hc(R)}}s.value=!1}),v=Wt(g=>{var b;(b=e.onBlur)==null||b.call(e,g)},()=>{r.value=!1}),m=(...g)=>{t("entryFocus",...g)};gt(pc,{currentTabbedId:_p(n),loop:Jt(e,"loop"),tabIndex:x(()=>a(r)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:u,orientation:Jt(e,"orientation"),dir:Jt(e,"dir"),onItemFocus:c,onItemShiftTab:f,onBlur:v,onFocus:h,onMousedown:d}),ke(()=>e.currentTabId,g=>{n.value=g??null}),pn(l,Jf,m)}});function VR(e,t,o,n,r,s){return ye(e.$slots,"default")}var FR=Ie(zR,[["render",VR],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const HR=oe({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:MR,ElRovingFocusGroupImpl:FR}});function WR(e,t,o,n,r,s){const l=tt("el-roving-focus-group-impl"),i=tt("el-focus-group-collection");return N(),fe(i,null,{default:se(()=>[Z(l,qn(Su(e.$attrs)),{default:se(()=>[ye(e.$slots,"default")]),_:3},16)]),_:3})}var KR=Ie(HR,[["render",WR],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const _R=oe({components:{ElRovingFocusCollectionItem:NR},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:o,loop:n,onItemFocus:r,onItemShiftTab:s}=Ue(pc,void 0),{getItems:l}=Ue(fc,void 0),i=Do(),u=F(null),c=Wt(v=>{t("mousedown",v)},v=>{e.focusable?r(a(i)):v.preventDefault()}),f=Wt(v=>{t("focus",v)},()=>{r(a(i))}),d=Wt(v=>{t("keydown",v)},v=>{const{key:m,shiftKey:g,target:b,currentTarget:C}=v;if(m===Ye.tab&&g){s();return}if(b!==C)return;const k=DR(v);if(k){v.preventDefault();let E=l().filter(T=>T.focusable).map(T=>T.ref);switch(k){case"last":{E.reverse();break}case"prev":case"next":{k==="prev"&&E.reverse();const T=E.indexOf(C);E=n.value?LR(E,T+1):E.slice(T+1);break}}Ge(()=>{hc(E)})}}),h=x(()=>o.value===a(i));return gt(Bm,{rovingFocusGroupItemRef:u,tabIndex:x(()=>a(h)?0:-1),handleMousedown:c,handleFocus:f,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:f,handleMousedown:c}}});function jR(e,t,o,n,r,s){const l=tt("el-roving-focus-collection-item");return N(),fe(l,{id:e.id,focusable:e.focusable,active:e.active},{default:se(()=>[ye(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var YR=Ie(_R,[["render",jR],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Ia=Re({trigger:Ts.trigger,effect:{...ln.effect,default:"light"},type:{type:ce(String)},placement:{type:ce(String),default:"bottom"},popperOptions:{type:ce(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:ce([Number,String]),default:0},maxHeight:{type:ce([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ce(Object)},teleported:ln.teleported}),zm=Re({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:jt}}),UR=Re({onKeydown:{type:ce(Function)}}),GR=[Ye.down,Ye.pageDown,Ye.home],Vm=[Ye.up,Ye.pageUp,Ye.end],qR=[...GR,...Vm],{ElCollection:XR,ElCollectionItem:ZR,COLLECTION_INJECTION_KEY:JR,COLLECTION_ITEM_INJECTION_KEY:QR}=Lm("Dropdown"),$l=Symbol("elDropdown"),{ButtonGroup:e2}=mn,t2=oe({name:"ElDropdown",components:{ElButton:mn,ElButtonGroup:e2,ElScrollbar:So,ElDropdownCollection:XR,ElTooltip:xn,ElRovingFocusGroup:KR,ElOnlyChild:dv,ElIcon:_e,ArrowDown:Vo},props:Ia,emits:["visible-change","click","command"],setup(e,{emit:t}){const o=yt(),n=be("dropdown"),{t:r}=$t(),s=F(),l=F(),i=F(null),u=F(null),c=F(null),f=F(null),d=F(!1),h=[Ye.enter,Ye.space,Ye.down],v=x(()=>({maxHeight:un(e.maxHeight)})),m=x(()=>[n.m(E.value)]),g=Do().value,b=x(()=>e.id||g);function C(){k()}function k(){var W;(W=i.value)==null||W.onClose()}function w(){var W;(W=i.value)==null||W.onOpen()}const E=dn();function T(...W){t("command",...W)}function $(){}function A(){const W=a(u);W==null||W.focus(),f.value=null}function R(W){f.value=W}function M(W){d.value||(W.preventDefault(),W.stopImmediatePropagation())}function I(){t("visible-change",!0)}function _(W){(W==null?void 0:W.type)==="keydown"&&u.value.focus()}function L(){t("visible-change",!1)}return gt($l,{contentRef:u,role:x(()=>e.role),triggerId:b,isUsingKeyboard:d,onItemEnter:$,onItemLeave:A}),gt("elDropdown",{instance:o,dropdownSize:E,handleClick:C,commandHandler:T,trigger:Jt(e,"trigger"),hideOnClick:Jt(e,"hideOnClick")}),{t:r,ns:n,scrollbar:c,wrapStyle:v,dropdownTriggerKls:m,dropdownSize:E,triggerId:b,triggerKeys:h,currentTabId:f,handleCurrentTabIdChange:R,handlerMainButtonClick:W=>{t("click",W)},handleEntryFocus:M,handleClose:k,handleOpen:w,handleBeforeShowTooltip:I,handleShowTooltip:_,handleBeforeHideTooltip:L,onFocusAfterTrapped:W=>{var j,D;W.preventDefault(),(D=(j=u.value)==null?void 0:j.focus)==null||D.call(j,{preventScroll:!0})},popperRef:i,contentRef:u,triggeringElementRef:s,referenceElementRef:l}}});function n2(e,t,o,n,r,s){var l;const i=tt("el-dropdown-collection"),u=tt("el-roving-focus-group"),c=tt("el-scrollbar"),f=tt("el-only-child"),d=tt("el-tooltip"),h=tt("el-button"),v=tt("arrow-down"),m=tt("el-icon"),g=tt("el-button-group");return N(),U("div",{class:P([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Z(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(l=e.referenceElementRef)==null?void 0:l.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Io({content:se(()=>[Z(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:se(()=>[Z(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:se(()=>[Z(i,null,{default:se(()=>[ye(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:se(()=>[Z(f,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:se(()=>[ye(e.$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"]),e.splitButton?(N(),fe(g,{key:0},{default:se(()=>[Z(h,mt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:se(()=>[ye(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Z(h,mt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:se(()=>[Z(m,{class:P(e.ns.e("icon"))},{default:se(()=>[Z(v)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):de("v-if",!0)],2)}var o2=Ie(t2,[["render",n2],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const r2=oe({name:"DropdownItemImpl",components:{ElIcon:_e},props:zm,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const o=be("dropdown"),{role:n}=Ue($l,void 0),{collectionItemRef:r}=Ue(QR,void 0),{collectionItemRef:s}=Ue(PR,void 0),{rovingFocusGroupItemRef:l,tabIndex:i,handleFocus:u,handleKeydown:c,handleMousedown:f}=Ue(Bm,void 0),d=hl(r,s,l),h=x(()=>n.value==="menu"?"menuitem":n.value==="navigation"?"link":"button"),v=Wt(m=>{const{code:g}=m;if(g===Ye.enter||g===Ye.space)return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},c);return{ns:o,itemRef:d,dataset:{[Dm]:""},role:h,tabIndex:i,handleFocus:u,handleKeydown:v,handleMousedown:f}}}),s2=["aria-disabled","tabindex","role"];function a2(e,t,o,n,r,s){const l=tt("el-icon");return N(),U(Qe,null,[e.divided?(N(),U("li",mt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):de("v-if",!0),te("li",mt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=(...i)=>e.handleKeydown&&e.handleKeydown(...i)),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(N(),fe(l,{key:0},{default:se(()=>[(N(),fe(St(e.icon)))]),_:1})):de("v-if",!0),ye(e.$slots,"default")],16,s2)],64)}var l2=Ie(r2,[["render",a2],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Fm=()=>{const e=Ue("elDropdown",{}),t=x(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},i2=oe({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ZR,ElRovingFocusItem:YR,ElDropdownItemImpl:l2},inheritAttrs:!1,props:zm,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:o}){const{elDropdown:n}=Fm(),r=yt(),s=F(null),l=x(()=>{var v,m;return(m=(v=a(s))==null?void 0:v.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:u}=Ue($l,void 0),c=Wt(v=>(t("pointermove",v),v.defaultPrevented),sf(v=>{var m;e.disabled?u(v):(i(v),v.defaultPrevented||(m=v.currentTarget)==null||m.focus())})),f=Wt(v=>(t("pointerleave",v),v.defaultPrevented),sf(v=>{u(v)})),d=Wt(v=>{if(!e.disabled)return t("click",v),v.type!=="keydown"&&v.defaultPrevented},v=>{var m,g,b;if(e.disabled){v.stopImmediatePropagation();return}(m=n==null?void 0:n.hideOnClick)!=null&&m.value&&((g=n.handleClick)==null||g.call(n)),(b=n.commandHandler)==null||b.call(n,e.command,r,v)}),h=x(()=>({...e,...o}));return{handleClick:d,handlePointerMove:c,handlePointerLeave:f,textContent:l,propsAndAttrs:h}}});function u2(e,t,o,n,r,s){var l;const i=tt("el-dropdown-item-impl"),u=tt("el-roving-focus-item"),c=tt("el-dropdown-collection-item");return N(),fe(c,{disabled:e.disabled,"text-value":(l=e.textValue)!=null?l:e.textContent},{default:se(()=>[Z(u,{focusable:!e.disabled},{default:se(()=>[Z(i,mt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:se(()=>[ye(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Hm=Ie(i2,[["render",u2],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const c2=oe({name:"ElDropdownMenu",props:UR,setup(e){const t=be("dropdown"),{_elDropdownSize:o}=Fm(),n=o.value,{focusTrapRef:r,onKeydown:s}=Ue(ph,void 0),{contentRef:l,role:i,triggerId:u}=Ue($l,void 0),{collectionRef:c,getItems:f}=Ue(JR,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:h,tabIndex:v,onBlur:m,onFocus:g,onMousedown:b}=Ue(pc,void 0),{collectionRef:C}=Ue(fc,void 0),k=x(()=>[t.b("menu"),t.bm("menu",n==null?void 0:n.value)]),w=hl(l,c,r,d,C),E=Wt($=>{var A;(A=e.onKeydown)==null||A.call(e,$)},$=>{const{currentTarget:A,code:R,target:M}=$;if(A.contains(M),Ye.tab===R&&$.stopImmediatePropagation(),$.preventDefault(),M!==a(l)||!qR.includes(R))return;const _=f().filter(L=>!L.disabled).map(L=>L.ref);Vm.includes(R)&&_.reverse(),hc(_)});return{size:n,rovingFocusGroupRootStyle:h,tabIndex:v,dropdownKls:k,role:i,triggerId:u,dropdownListWrapperRef:w,handleKeydown:$=>{E($),s($)},onBlur:m,onFocus:g,onMousedown:b}}}),d2=["role","aria-labelledby"];function f2(e,t,o,n,r,s){return N(),U("ul",{ref:e.dropdownListWrapperRef,class:P(e.dropdownKls),style:je(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...l)=>e.onBlur&&e.onBlur(...l)),onFocus:t[1]||(t[1]=(...l)=>e.onFocus&&e.onFocus(...l)),onKeydown:t[2]||(t[2]=(...l)=>e.handleKeydown&&e.handleKeydown(...l)),onMousedown:t[3]||(t[3]=(...l)=>e.onMousedown&&e.onMousedown(...l))},[ye(e.$slots,"default")],46,d2)}var Wm=Ie(c2,[["render",f2],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const p2=dt(o2,{DropdownItem:Hm,DropdownMenu:Wm}),h2=Ut(Hm),v2=Ut(Wm);let m2=0;const g2=oe({name:"ImgEmpty",setup(){return{ns:be("empty"),id:++m2}}}),y2={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},b2=["id"],w2=["stop-color"],C2=["stop-color"],S2=["id"],k2=["stop-color"],E2=["stop-color"],$2=["id"],T2={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},O2={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},x2={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},I2=["fill"],M2=["fill"],N2={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)"},P2=["fill"],R2=["fill"],A2=["fill"],D2=["fill"],L2=["fill"],B2={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},z2=["fill","xlink:href"],V2=["fill","mask"],F2=["fill"];function H2(e,t,o,n,r,s){return N(),U("svg",y2,[te("defs",null,[te("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[te("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,w2),te("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,C2)],8,b2),te("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[te("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,k2),te("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,E2)],8,S2),te("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,$2)]),te("g",T2,[te("g",O2,[te("g",x2,[te("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(${e.ns.cssVarBlockName("fill-color-3")})`},null,8,I2),te("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.ns.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,M2),te("g",N2,[te("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.ns.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,P2),te("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,R2),te("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,A2),te("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.ns.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,D2)]),te("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,L2),te("g",B2,[te("use",{id:"Mask",fill:`var(${e.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,z2),te("polygon",{id:"Rectangle-Copy",fill:`var(${e.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.id})`,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,V2)]),te("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.ns.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,F2)])])])])}var W2=Ie(g2,[["render",H2],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const K2={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},_2=["src"],j2={key:1},Y2=oe({name:"ElEmpty"}),U2=oe({...Y2,props:K2,setup(e){const t=e,{t:o}=$t(),n=be("empty"),r=x(()=>t.description||o("el.table.emptyText")),s=x(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(l,i)=>(N(),U("div",{class:P(a(n).b())},[te("div",{class:P(a(n).e("image")),style:je(a(s))},[l.image?(N(),U("img",{key:0,src:l.image,ondragstart:"return false"},null,8,_2)):ye(l.$slots,"image",{key:1},()=>[Z(W2)])],6),te("div",{class:P(a(n).e("description"))},[l.$slots.description?ye(l.$slots,"description",{key:0}):(N(),U("p",j2,Ne(a(r)),1))],2),l.$slots.default?(N(),U("div",{key:0,class:P(a(n).e("bottom"))},[ye(l.$slots,"default")],2)):de("v-if",!0)],2))}});var G2=Ie(U2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const Km=dt(G2),q2=Re({model:Object,rules:{type:ce(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},size:{type:String,values:dr},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),X2={validate:(e,t,o)=>(ft(e)||kt(e))&&en(t)&&kt(o)};function Z2(){const e=F([]),t=x(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function o(s){const l=e.value.indexOf(s);return l===-1&&t.value,l}function n(s,l){if(s&&l){const i=o(l);e.value.splice(i,1,s)}else s&&e.value.push(s)}function r(s){const l=o(s);l>-1&&e.value.splice(l,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:r}}const fa=(e,t)=>{const o=Vr(t);return o.length>0?e.filter(n=>n.prop&&o.includes(n.prop)):e},J2="ElForm",Q2=oe({name:J2}),eA=oe({...Q2,props:q2,emits:X2,setup(e,{expose:t,emit:o}){const n=e,r=[],s=dn(),l=be("form"),i=x(()=>{const{labelPosition:k,inline:w}=n;return[l.b(),l.m(s.value||"default"),{[l.m(`label-${k}`)]:k,[l.m("inline")]:w}]}),u=k=>{r.push(k)},c=k=>{k.prop&&r.splice(r.indexOf(k),1)},f=(k=[])=>{!n.model||fa(r,k).forEach(w=>w.resetField())},d=(k=[])=>{fa(r,k).forEach(w=>w.clearValidate())},h=x(()=>!!n.model),v=k=>{if(r.length===0)return[];const w=fa(r,k);return w.length?w:[]},m=async k=>b(void 0,k),g=async(k=[])=>{if(!h.value)return!1;const w=v(k);if(w.length===0)return!0;let E={};for(const T of w)try{await T.validate("")}catch($){E={...E,...$}}return Object.keys(E).length===0?!0:Promise.reject(E)},b=async(k=[],w)=>{const E=!At(w);try{const T=await g(k);return T===!0&&(w==null||w(T)),T}catch(T){if(T instanceof Error)throw T;const $=T;return n.scrollToError&&C(Object.keys($)[0]),w==null||w(!1,$),E&&Promise.reject($)}},C=k=>{var w;const E=fa(r,k)[0];E&&((w=E.$el)==null||w.scrollIntoView())};return ke(()=>n.rules,()=>{n.validateOnRuleChange&&m().catch(k=>on())},{deep:!0}),gt(dl,Rt({...tn(n),emit:o,resetFields:f,clearValidate:d,validateField:b,addField:u,removeField:c,...Z2()})),t({validate:m,validateField:b,resetFields:f,clearValidate:d,scrollToField:C}),(k,w)=>(N(),U("form",{class:P(a(i))},[ye(k.$slots,"default")],2))}});var tA=Ie(eA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ma(e,t,o){return oA()?Ma=Reflect.construct.bind():Ma=function(r,s,l){var i=[null];i.push.apply(i,s);var u=Function.bind.apply(r,i),c=new u;return l&&Is(c,l.prototype),c},Ma.apply(null,arguments)}function rA(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gi(e){var t=typeof Map=="function"?new Map:void 0;return Gi=function(n){if(n===null||!rA(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Ma(n,arguments,Ui(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Is(r,n)},Gi(e)}var sA=/%[sdj%]/g,aA=function(){};typeof process<"u"&&process.env;function qi(e){if(!e||!e.length)return null;var t={};return e.forEach(function(o){var n=o.field;t[n]=t[n]||[],t[n].push(o)}),t}function Nn(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n=s)return i;switch(i){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch{return"[Circular]"}break;default:return i}});return l}return e}function lA(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function rn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||lA(t)&&typeof e=="string"&&!e)}function iA(e,t,o){var n=[],r=0,s=e.length;function l(i){n.push.apply(n,i||[]),r++,r===s&&o(n)}e.forEach(function(i){t(i,l)})}function Qf(e,t,o){var n=0,r=e.length;function s(l){if(l&&l.length){o(l);return}var i=n;n=n+1,i()\[\]\\.,;:\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},is={integer:function(t){return is.number(t)&&parseInt(t,10)===t},float:function(t){return is.number(t)&&!is.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(op.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(hA())},hex:function(t){return typeof t=="string"&&!!t.match(op.hex)}},vA=function(t,o,n,r,s){if(t.required&&o===void 0){_m(t,o,n,r,s);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;l.indexOf(i)>-1?is[i](o)||r.push(Nn(s.messages.types[i],t.fullField,t.type)):i&&typeof o!==t.type&&r.push(Nn(s.messages.types[i],t.fullField,t.type))},mA=function(t,o,n,r,s){var l=typeof t.len=="number",i=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=o,d=null,h=typeof o=="number",v=typeof o=="string",m=Array.isArray(o);if(h?d="number":v?d="string":m&&(d="array"),!d)return!1;m&&(f=o.length),v&&(f=o.replace(c,"_").length),l?f!==t.len&&r.push(Nn(s.messages[d].len,t.fullField,t.len)):i&&!u&&ft.max?r.push(Nn(s.messages[d].max,t.fullField,t.max)):i&&u&&(ft.max)&&r.push(Nn(s.messages[d].range,t.fullField,t.min,t.max))},yr="enum",gA=function(t,o,n,r,s){t[yr]=Array.isArray(t[yr])?t[yr]:[],t[yr].indexOf(o)===-1&&r.push(Nn(s.messages[yr],t.fullField,t[yr].join(", ")))},yA=function(t,o,n,r,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(o)||r.push(Nn(s.messages.pattern.mismatch,t.fullField,o,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(o)||r.push(Nn(s.messages.pattern.mismatch,t.fullField,o,t.pattern))}}},Pt={required:_m,whitespace:pA,type:vA,range:mA,enum:gA,pattern:yA},bA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o,"string")&&!t.required)return n();Pt.required(t,o,r,l,s,"string"),rn(o,"string")||(Pt.type(t,o,r,l,s),Pt.range(t,o,r,l,s),Pt.pattern(t,o,r,l,s),t.whitespace===!0&&Pt.whitespace(t,o,r,l,s))}n(l)},wA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),o!==void 0&&Pt.type(t,o,r,l,s)}n(l)},CA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(o===""&&(o=void 0),rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),o!==void 0&&(Pt.type(t,o,r,l,s),Pt.range(t,o,r,l,s))}n(l)},SA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),o!==void 0&&Pt.type(t,o,r,l,s)}n(l)},kA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),rn(o)||Pt.type(t,o,r,l,s)}n(l)},EA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),o!==void 0&&(Pt.type(t,o,r,l,s),Pt.range(t,o,r,l,s))}n(l)},$A=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),o!==void 0&&(Pt.type(t,o,r,l,s),Pt.range(t,o,r,l,s))}n(l)},TA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(o==null&&!t.required)return n();Pt.required(t,o,r,l,s,"array"),o!=null&&(Pt.type(t,o,r,l,s),Pt.range(t,o,r,l,s))}n(l)},OA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),o!==void 0&&Pt.type(t,o,r,l,s)}n(l)},xA="enum",IA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s),o!==void 0&&Pt[xA](t,o,r,l,s)}n(l)},MA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o,"string")&&!t.required)return n();Pt.required(t,o,r,l,s),rn(o,"string")||Pt.pattern(t,o,r,l,s)}n(l)},NA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o,"date")&&!t.required)return n();if(Pt.required(t,o,r,l,s),!rn(o,"date")){var u;o instanceof Date?u=o:u=new Date(o),Pt.type(t,u,r,l,s),u&&Pt.range(t,u.getTime(),r,l,s)}}n(l)},PA=function(t,o,n,r,s){var l=[],i=Array.isArray(o)?"array":typeof o;Pt.required(t,o,r,l,s,i),n(l)},vi=function(t,o,n,r,s){var l=t.type,i=[],u=t.required||!t.required&&r.hasOwnProperty(t.field);if(u){if(rn(o,l)&&!t.required)return n();Pt.required(t,o,r,i,s,l),rn(o,l)||Pt.type(t,o,r,i,s)}n(i)},RA=function(t,o,n,r,s){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(rn(o)&&!t.required)return n();Pt.required(t,o,r,l,s)}n(l)},gs={string:bA,method:wA,number:CA,boolean:SA,regexp:kA,integer:EA,float:$A,array:TA,object:OA,enum:IA,pattern:MA,date:NA,url:vi,hex:vi,email:vi,required:PA,any:RA};function Xi(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Zi=Xi(),Ys=function(){function e(o){this.rules=null,this._messages=Zi,this.define(o)}var t=e.prototype;return t.define=function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(s){var l=n[s];r.rules[s]=Array.isArray(l)?l:[l]})},t.messages=function(n){return n&&(this._messages=np(Xi(),n)),this._messages},t.validate=function(n,r,s){var l=this;r===void 0&&(r={}),s===void 0&&(s=function(){});var i=n,u=r,c=s;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function f(g){var b=[],C={};function k(E){if(Array.isArray(E)){var T;b=(T=b).concat.apply(T,E)}else b.push(E)}for(var w=0;w");const r=be("form"),s=F(),l=F(0),i=()=>{var f;if((f=s.value)!=null&&f.firstElementChild){const d=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},u=(f="update")=>{Ge(()=>{t.default&&e.isAutoWidth&&(f==="update"?l.value=i():f==="remove"&&(o==null||o.deregisterLabelWidth(l.value)))})},c=()=>u("update");return ht(()=>{c()}),sn(()=>{u("remove")}),ur(()=>c()),ke(l,(f,d)=>{e.updateAll&&(o==null||o.registerLabelWidth(f,d))}),Bn(x(()=>{var f,d;return(d=(f=s.value)==null?void 0:f.firstElementChild)!=null?d:null}),c),()=>{var f,d;if(!t)return null;const{isAutoWidth:h}=e;if(h){const v=o==null?void 0:o.autoLabelWidth,m=n==null?void 0:n.hasLabel,g={};if(m&&v&&v!=="auto"){const b=Math.max(0,Number.parseInt(v,10)-l.value),C=o.labelPosition==="left"?"marginRight":"marginLeft";b&&(g[C]=`${b}px`)}return Z("div",{ref:s,class:[r.be("item","label-wrap")],style:g},[(f=t.default)==null?void 0:f.call(t)])}else return Z(Qe,{ref:s},[(d=t.default)==null?void 0:d.call(t)])}}});const BA=["role","aria-labelledby"],zA=oe({name:"ElFormItem"}),VA=oe({...zA,props:DA,setup(e,{expose:t}){const o=e,n=gn(),r=Ue(dl,void 0),s=Ue(Ao,void 0),l=dn(void 0,{formItem:!1}),i=be("form-item"),u=Do().value,c=F([]),f=F(""),d=iw(f,100),h=F(""),v=F();let m,g=!1;const b=x(()=>{if((r==null?void 0:r.labelPosition)==="top")return{};const le=un(o.labelWidth||(r==null?void 0:r.labelWidth)||"");return le?{width:le}:{}}),C=x(()=>{if((r==null?void 0:r.labelPosition)==="top"||(r==null?void 0:r.inline))return{};if(!o.label&&!o.labelWidth&&M)return{};const le=un(o.labelWidth||(r==null?void 0:r.labelWidth)||"");return!o.label&&!n.label?{marginLeft:le}:{}}),k=x(()=>[i.b(),i.m(l.value),i.is("error",f.value==="error"),i.is("validating",f.value==="validating"),i.is("success",f.value==="success"),i.is("required",H.value||o.required),i.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:r==null?void 0:r.statusIcon}]),w=x(()=>en(o.inlineMessage)?o.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),E=x(()=>[i.e("error"),{[i.em("error","inline")]:w.value}]),T=x(()=>o.prop?kt(o.prop)?o.prop:o.prop.join("."):""),$=x(()=>!!(o.label||n.label)),A=x(()=>o.for||c.value.length===1?c.value[0]:void 0),R=x(()=>!A.value&&$.value),M=!!s,I=x(()=>{const le=r==null?void 0:r.model;if(!(!le||!o.prop))return ma(le,o.prop).value}),_=x(()=>{const{required:le}=o,re=[];o.rules&&re.push(...Vr(o.rules));const ie=r==null?void 0:r.rules;if(ie&&o.prop){const pe=ma(ie,o.prop).value;pe&&re.push(...Vr(pe))}if(le!==void 0){const pe=re.map((Ae,Le)=>[Ae,Le]).filter(([Ae])=>Object.keys(Ae).includes("required"));if(pe.length>0)for(const[Ae,Le]of pe)Ae.required!==le&&(re[Le]={...Ae,required:le});else re.push({required:le})}return re}),L=x(()=>_.value.length>0),z=le=>_.value.filter(ie=>!ie.trigger||!le?!0:Array.isArray(ie.trigger)?ie.trigger.includes(le):ie.trigger===le).map(({trigger:ie,...pe})=>pe),H=x(()=>_.value.some(le=>le.required)),W=x(()=>{var le;return d.value==="error"&&o.showMessage&&((le=r==null?void 0:r.showMessage)!=null?le:!0)}),j=x(()=>`${o.label||""}${(r==null?void 0:r.labelSuffix)||""}`),D=le=>{f.value=le},V=le=>{var re,ie;const{errors:pe,fields:Ae}=le;(!pe||!Ae)&&console.error(le),D("error"),h.value=pe?(ie=(re=pe==null?void 0:pe[0])==null?void 0:re.message)!=null?ie:`${o.prop} is required`:"",r==null||r.emit("validate",o.prop,!1,h.value)},B=()=>{D("success"),r==null||r.emit("validate",o.prop,!0,"")},X=async le=>{const re=T.value;return new Ys({[re]:le}).validate({[re]:I.value},{firstFields:!0}).then(()=>(B(),!0)).catch(pe=>(V(pe),Promise.reject(pe)))},Q=async(le,re)=>{if(g||!o.prop)return!1;const ie=At(re);if(!L.value)return re==null||re(!1),!1;const pe=z(le);return pe.length===0?(re==null||re(!0),!0):(D("validating"),X(pe).then(()=>(re==null||re(!0),!0)).catch(Ae=>{const{fields:Le}=Ae;return re==null||re(!1,Le),ie?!1:Promise.reject(Le)}))},q=()=>{D(""),h.value="",g=!1},ee=async()=>{const le=r==null?void 0:r.model;if(!le||!o.prop)return;const re=ma(le,o.prop);g=!0,re.value=ef(m),await Ge(),q(),g=!1},ve=le=>{c.value.includes(le)||c.value.push(le)},me=le=>{c.value=c.value.filter(re=>re!==le)};ke(()=>o.error,le=>{h.value=le||"",D(le?"error":"")},{immediate:!0}),ke(()=>o.validateStatus,le=>D(le||""));const Ce=Rt({...tn(o),$el:v,size:l,validateState:f,labelId:u,inputIds:c,isGroup:R,hasLabel:$,addInputId:ve,removeInputId:me,resetField:ee,clearValidate:q,validate:Q});return gt(Ao,Ce),ht(()=>{o.prop&&(r==null||r.addField(Ce),m=ef(I.value))}),sn(()=>{r==null||r.removeField(Ce)}),t({size:l,validateMessage:h,validateState:f,validate:Q,clearValidate:q,resetField:ee}),(le,re)=>{var ie;return N(),U("div",{ref_key:"formItemRef",ref:v,class:P(a(k)),role:a(R)?"group":void 0,"aria-labelledby":a(R)?a(u):void 0},[Z(a(LA),{"is-auto-width":a(b).width==="auto","update-all":((ie=a(r))==null?void 0:ie.labelWidth)==="auto"},{default:se(()=>[a($)?(N(),fe(St(a(A)?"label":"div"),{key:0,id:a(u),for:a(A),class:P(a(i).e("label")),style:je(a(b))},{default:se(()=>[ye(le.$slots,"label",{label:a(j)},()=>[It(Ne(a(j)),1)])]),_:3},8,["id","for","class","style"])):de("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),te("div",{class:P(a(i).e("content")),style:je(a(C))},[ye(le.$slots,"default"),Z(cn,{name:`${a(i).namespace.value}-zoom-in-top`},{default:se(()=>[a(W)?ye(le.$slots,"error",{key:0,error:h.value},()=>[te("div",{class:P(a(E))},Ne(h.value),3)]):de("v-if",!0)]),_:3},8,["name"])],6)],10,BA)}}});var jm=Ie(VA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const FA=dt(tA,{FormItem:jm}),HA=Ut(jm),WA=Re({urlList:{type:ce(Array),default:()=>_t([])},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}}),KA={close:()=>!0,switch:e=>it(e)},_A=["src"],jA=oe({name:"ElImageViewer"}),YA=oe({...jA,props:WA,emits:KA,setup(e,{expose:t,emit:o}){const n=e,r={CONTAIN:{name:"contain",icon:cs(x0)},ORIGINAL:{name:"original",icon:cs(I0)}},s=Wu()?"DOMMouseScroll":"mousewheel",{t:l}=$t(),i=be("image-viewer"),{nextZIndex:u}=cr(),c=F(),f=F([]),d=p0(),h=F(!0),v=F(n.initialIndex),m=Kt(r.CONTAIN),g=F({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),b=x(()=>{const{urlList:V}=n;return V.length<=1}),C=x(()=>v.value===0),k=x(()=>v.value===n.urlList.length-1),w=x(()=>n.urlList[v.value]),E=x(()=>{const{scale:V,deg:B,offsetX:X,offsetY:Q,enableTransition:q}=g.value;let ee=X/V,ve=Q/V;switch(B%360){case 90:case-270:[ee,ve]=[ve,-ee];break;case 180:case-180:[ee,ve]=[-ee,-ve];break;case 270:case-90:[ee,ve]=[-ve,ee];break}const me={transform:`scale(${V}) rotate(${B}deg) translate(${ee}px, ${ve}px)`,transition:q?"transform .3s":""};return m.value.name===r.CONTAIN.name&&(me.maxWidth=me.maxHeight="100%"),me}),T=x(()=>it(n.zIndex)?n.zIndex:u());function $(){R(),o("close")}function A(){const V=tr(X=>{switch(X.code){case Ye.esc:n.closeOnPressEscape&&$();break;case Ye.space:z();break;case Ye.left:W();break;case Ye.up:D("zoomIn");break;case Ye.right:j();break;case Ye.down:D("zoomOut");break}}),B=tr(X=>{(X.wheelDelta?X.wheelDelta:-X.detail)>0?D("zoomIn",{zoomRate:1.2,enableTransition:!1}):D("zoomOut",{zoomRate:1.2,enableTransition:!1})});d.run(()=>{pn(document,"keydown",V),pn(document,s,B)})}function R(){d.stop()}function M(){h.value=!1}function I(V){h.value=!1,V.target.alt=l("el.image.error")}function _(V){if(h.value||V.button!==0||!c.value)return;g.value.enableTransition=!1;const{offsetX:B,offsetY:X}=g.value,Q=V.pageX,q=V.pageY,ee=tr(me=>{g.value={...g.value,offsetX:B+me.pageX-Q,offsetY:X+me.pageY-q}}),ve=pn(document,"mousemove",ee);pn(document,"mouseup",()=>{ve()}),V.preventDefault()}function L(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function z(){if(h.value)return;const V=$u(r),B=Object.values(r),X=m.value.name,q=(B.findIndex(ee=>ee.name===X)+1)%V.length;m.value=r[V[q]],L()}function H(V){const B=n.urlList.length;v.value=(V+B)%B}function W(){C.value&&!n.infinite||H(v.value-1)}function j(){k.value&&!n.infinite||H(v.value+1)}function D(V,B={}){if(h.value)return;const{zoomRate:X,rotateDeg:Q,enableTransition:q}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...B};switch(V){case"zoomOut":g.value.scale>.2&&(g.value.scale=Number.parseFloat((g.value.scale/X).toFixed(3)));break;case"zoomIn":g.value.scale<7&&(g.value.scale=Number.parseFloat((g.value.scale*X).toFixed(3)));break;case"clockwise":g.value.deg+=Q;break;case"anticlockwise":g.value.deg-=Q;break}g.value.enableTransition=q}return ke(w,()=>{Ge(()=>{const V=f.value[0];V!=null&&V.complete||(h.value=!0)})}),ke(v,V=>{L(),o("switch",V)}),ht(()=>{var V,B;A(),(B=(V=c.value)==null?void 0:V.focus)==null||B.call(V)}),t({setActiveItem:H}),(V,B)=>(N(),fe(Bs,{to:"body",disabled:!V.teleported},[Z(cn,{name:"viewer-fade",appear:""},{default:se(()=>[te("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:P(a(i).e("wrapper")),style:je({zIndex:a(T)})},[te("div",{class:P(a(i).e("mask")),onClick:B[0]||(B[0]=nt(X=>V.hideOnClickModal&&$(),["self"]))},null,2),de(" CLOSE "),te("span",{class:P([a(i).e("btn"),a(i).e("close")]),onClick:$},[Z(a(_e),null,{default:se(()=>[Z(a(mo))]),_:1})],2),de(" ARROW "),a(b)?de("v-if",!0):(N(),U(Qe,{key:0},[te("span",{class:P([a(i).e("btn"),a(i).e("prev"),a(i).is("disabled",!V.infinite&&a(C))]),onClick:W},[Z(a(_e),null,{default:se(()=>[Z(a(Mo))]),_:1})],2),te("span",{class:P([a(i).e("btn"),a(i).e("next"),a(i).is("disabled",!V.infinite&&a(k))]),onClick:j},[Z(a(_e),null,{default:se(()=>[Z(a(wn))]),_:1})],2)],64)),de(" ACTIONS "),te("div",{class:P([a(i).e("btn"),a(i).e("actions")])},[te("div",{class:P(a(i).e("actions__inner"))},[Z(a(_e),{onClick:B[1]||(B[1]=X=>D("zoomOut"))},{default:se(()=>[Z(a(M0))]),_:1}),Z(a(_e),{onClick:B[2]||(B[2]=X=>D("zoomIn"))},{default:se(()=>[Z(a(Gp))]),_:1}),te("i",{class:P(a(i).e("actions__divider"))},null,2),Z(a(_e),{onClick:z},{default:se(()=>[(N(),fe(St(a(m).icon)))]),_:1}),te("i",{class:P(a(i).e("actions__divider"))},null,2),Z(a(_e),{onClick:B[3]||(B[3]=X=>D("anticlockwise"))},{default:se(()=>[Z(a(N0))]),_:1}),Z(a(_e),{onClick:B[4]||(B[4]=X=>D("clockwise"))},{default:se(()=>[Z(a(P0))]),_:1})],2)],2),de(" CANVAS "),te("div",{class:P(a(i).e("canvas"))},[(N(!0),U(Qe,null,bt(V.urlList,(X,Q)=>lt((N(),U("img",{ref_for:!0,ref:q=>f.value[Q]=q,key:X,src:X,style:je(a(E)),class:P(a(i).e("img")),onLoad:M,onError:I,onMousedown:_},null,46,_A)),[[xt,Q===v.value]])),128))],2),ye(V.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var UA=Ie(YA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const Ym=dt(UA),GA=Re({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:ce([String,Object])},previewSrcList:{type:ce(Array),default:()=>_t([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),qA={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>it(e),close:()=>!0,show:()=>!0},XA=["src","loading"],ZA={key:0},JA=oe({name:"ElImage",inheritAttrs:!1}),QA=oe({...JA,props:GA,emits:qA,setup(e,{emit:t}){const o=e;let n="";const{t:r}=$t(),s=be("image"),l=al(),i=uh(),u=F(),c=F(!1),f=F(!0),d=F(!1),h=F(),v=F(),m=Dt&&"loading"in HTMLImageElement.prototype;let g,b;const C=x(()=>l.style),k=x(()=>{const{fit:D}=o;return Dt&&D?{objectFit:D}:{}}),w=x(()=>{const{previewSrcList:D}=o;return Array.isArray(D)&&D.length>0}),E=x(()=>{const{previewSrcList:D,initialIndex:V}=o;let B=V;return V>D.length-1&&(B=0),B}),T=x(()=>o.loading==="eager"?!1:!m&&o.loading==="lazy"||o.lazy),$=()=>{!Dt||(f.value=!0,c.value=!1,u.value=o.src)};function A(D){f.value=!1,c.value=!1,t("load",D)}function R(D){f.value=!1,c.value=!0,t("error",D)}function M(){iE(h.value,v.value)&&($(),L())}const I=lh(M,200);async function _(){var D;if(!Dt)return;await Ge();const{scrollContainer:V}=o;Ro(V)?v.value=V:kt(V)&&V!==""?v.value=(D=document.querySelector(V))!=null?D:void 0:h.value&&(v.value=xu(h.value)),v.value&&(g=pn(v,"scroll",I),setTimeout(()=>M(),100))}function L(){!Dt||!v.value||!I||(g==null||g(),v.value=void 0)}function z(D){if(!!D.ctrlKey){if(D.deltaY<0)return D.preventDefault(),!1;if(D.deltaY>0)return D.preventDefault(),!1}}function H(){!w.value||(b=pn("wheel",z,{passive:!1}),n=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function W(){b==null||b(),document.body.style.overflow=n,d.value=!1,t("close")}function j(D){t("switch",D)}return ke(()=>o.src,()=>{T.value?(f.value=!0,c.value=!1,L(),_()):$()}),ht(()=>{T.value?_():$()}),(D,V)=>(N(),U("div",{ref_key:"container",ref:h,class:P([a(s).b(),D.$attrs.class]),style:je(a(C))},[u.value!==void 0&&!c.value?(N(),U("img",mt({key:0},a(i),{src:u.value,loading:D.loading,style:a(k),class:[a(s).e("inner"),a(w)&&a(s).e("preview"),f.value&&a(s).is("loading")],onClick:H,onLoad:A,onError:R}),null,16,XA)):de("v-if",!0),f.value||c.value?(N(),U("div",{key:1,class:P(a(s).e("wrapper"))},[f.value?ye(D.$slots,"placeholder",{key:0},()=>[te("div",{class:P(a(s).e("placeholder"))},null,2)]):c.value?ye(D.$slots,"error",{key:1},()=>[te("div",{class:P(a(s).e("error"))},Ne(a(r)("el.image.error")),3)]):de("v-if",!0)],2)):de("v-if",!0),a(w)?(N(),U(Qe,{key:2},[d.value?(N(),fe(a(Ym),{key:0,"z-index":D.zIndex,"initial-index":a(E),infinite:D.infinite,"url-list":D.previewSrcList,"hide-on-click-modal":D.hideOnClickModal,teleported:D.previewTeleported,"close-on-press-escape":D.closeOnPressEscape,onClose:W,onSwitch:j},{default:se(()=>[D.$slots.viewer?(N(),U("div",ZA,[ye(D.$slots,"viewer")])):de("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):de("v-if",!0)],64)):de("v-if",!0)],6))}});var eD=Ie(QA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const tD=dt(eD),nD=Re({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:Zn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||it(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),oD={[Lt]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Sn]:e=>it(e)||Cn(e),[ut]:e=>it(e)||Cn(e)},rD=["aria-label","onKeydown"],sD=["aria-label","onKeydown"],aD=oe({name:"ElInputNumber"}),lD=oe({...aD,props:nD,emits:oD,setup(e,{expose:t,emit:o}){const n=e,{t:r}=$t(),s=be("input-number"),l=F(),i=Rt({currentValue:n.modelValue,userInput:null}),{formItem:u}=zn(),c=x(()=>it(n.modelValue)&&n.modelValue<=n.min),f=x(()=>it(n.modelValue)&&n.modelValue>=n.max),d=x(()=>{const z=C(n.step);return vn(n.precision)?Math.max(C(n.modelValue),z):(z>n.precision,n.precision)}),h=x(()=>n.controls&&n.controlsPosition==="right"),v=dn(),m=Jn(),g=x(()=>{if(i.userInput!==null)return i.userInput;let z=i.currentValue;if(Cn(z))return"";if(it(z)){if(Number.isNaN(z))return"";vn(n.precision)||(z=z.toFixed(n.precision))}return z}),b=(z,H)=>{if(vn(H)&&(H=d.value),H===0)return Math.round(z);let W=String(z);const j=W.indexOf(".");if(j===-1||!W.replace(".","").split("")[j+H])return z;const B=W.length;return W.charAt(B-1)==="5"&&(W=`${W.slice(0,Math.max(0,B-1))}6`),Number.parseFloat(Number(W).toFixed(H))},C=z=>{if(Cn(z))return 0;const H=z.toString(),W=H.indexOf(".");let j=0;return W!==-1&&(j=H.length-W-1),j},k=(z,H=1)=>it(z)?b(z+n.step*H):i.currentValue,w=()=>{if(n.readonly||m.value||f.value)return;const z=Number(g.value)||0,H=k(z);$(H),o(Sn,i.currentValue)},E=()=>{if(n.readonly||m.value||c.value)return;const z=Number(g.value)||0,H=k(z,-1);$(H),o(Sn,i.currentValue)},T=(z,H)=>{const{max:W,min:j,step:D,precision:V,stepStrictly:B,valueOnClear:X}=n;let Q=Number(z);if(Cn(z)||Number.isNaN(Q))return null;if(z===""){if(X===null)return null;Q=kt(X)?{min:j,max:W}[X]:X}return B&&(Q=b(Math.round(Q/D)*D,V)),vn(V)||(Q=b(Q,V)),(Q>W||QW?W:j,H&&o(ut,Q)),Q},$=(z,H=!0)=>{var W;const j=i.currentValue,D=T(z);if(j!==D){if(!H){o(ut,D);return}i.userInput=null,o(ut,D),o(Lt,D,j),n.validateEvent&&((W=u==null?void 0:u.validate)==null||W.call(u,"change").catch(V=>on())),i.currentValue=D}},A=z=>{i.userInput=z;const H=z===""?null:Number(z);o(Sn,H),$(H,!1)},R=z=>{const H=z!==""?Number(z):"";(it(H)&&!Number.isNaN(H)||z==="")&&$(H),i.userInput=null},M=()=>{var z,H;(H=(z=l.value)==null?void 0:z.focus)==null||H.call(z)},I=()=>{var z,H;(H=(z=l.value)==null?void 0:z.blur)==null||H.call(z)},_=z=>{o("focus",z)},L=z=>{var H;o("blur",z),n.validateEvent&&((H=u==null?void 0:u.validate)==null||H.call(u,"blur").catch(W=>on()))};return ke(()=>n.modelValue,z=>{const H=T(i.userInput),W=T(z,!0);(!H||H!==W)&&(i.currentValue=W,i.userInput=null)},{immediate:!0}),ht(()=>{var z;const{min:H,max:W,modelValue:j}=n,D=(z=l.value)==null?void 0:z.input;if(D.setAttribute("role","spinbutton"),Number.isFinite(W)?D.setAttribute("aria-valuemax",String(W)):D.removeAttribute("aria-valuemax"),Number.isFinite(H)?D.setAttribute("aria-valuemin",String(H)):D.removeAttribute("aria-valuemin"),D.setAttribute("aria-valuenow",String(i.currentValue)),D.setAttribute("aria-disabled",String(m.value)),!it(j)&&j!=null){let V=Number(j);Number.isNaN(V)&&(V=null),o(ut,V)}}),ur(()=>{var z;const H=(z=l.value)==null?void 0:z.input;H==null||H.setAttribute("aria-valuenow",`${i.currentValue}`)}),t({focus:M,blur:I}),(z,H)=>(N(),U("div",{class:P([a(s).b(),a(s).m(a(v)),a(s).is("disabled",a(m)),a(s).is("without-controls",!z.controls),a(s).is("controls-right",a(h))]),onDragstart:H[0]||(H[0]=nt(()=>{},["prevent"]))},[z.controls?lt((N(),U("span",{key:0,role:"button","aria-label":a(r)("el.inputNumber.decrease"),class:P([a(s).e("decrease"),a(s).is("disabled",a(c))]),onKeydown:Et(E,["enter"])},[Z(a(_e),null,{default:se(()=>[a(h)?(N(),fe(a(Vo),{key:0})):(N(),fe(a(R0),{key:1}))]),_:1})],42,rD)),[[a(Ua),E]]):de("v-if",!0),z.controls?lt((N(),U("span",{key:1,role:"button","aria-label":a(r)("el.inputNumber.increase"),class:P([a(s).e("increase"),a(s).is("disabled",a(f))]),onKeydown:Et(w,["enter"])},[Z(a(_e),null,{default:se(()=>[a(h)?(N(),fe(a(ll),{key:0})):(N(),fe(a(qp),{key:1}))]),_:1})],42,sD)),[[a(Ua),w]]):de("v-if",!0),Z(a(bn),{id:z.id,ref_key:"input",ref:l,type:"number",step:z.step,"model-value":a(g),placeholder:z.placeholder,readonly:z.readonly,disabled:a(m),size:a(v),max:z.max,min:z.min,name:z.name,label:z.label,"validate-event":!1,onKeydown:[Et(nt(w,["prevent"]),["up"]),Et(nt(E,["prevent"]),["down"])],onBlur:L,onFocus:_,onInput:A,onChange:R},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var iD=Ie(lD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Um=dt(iD),uD=Re({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:jt}}),cD={click:e=>e instanceof MouseEvent},dD=["href"],fD=oe({name:"ElLink"}),pD=oe({...fD,props:uD,emits:cD,setup(e,{emit:t}){const o=e,n=be("link"),r=x(()=>[n.b(),n.m(o.type),n.is("disabled",o.disabled),n.is("underline",o.underline&&!o.disabled)]);function s(l){o.disabled||t("click",l)}return(l,i)=>(N(),U("a",{class:P(a(r)),href:l.disabled||!l.href?void 0:l.href,onClick:s},[l.icon?(N(),fe(a(_e),{key:0},{default:se(()=>[(N(),fe(St(l.icon)))]),_:1})):de("v-if",!0),l.$slots.default?(N(),U("span",{key:1,class:P(a(n).e("inner"))},[ye(l.$slots,"default")],2)):de("v-if",!0),l.$slots.icon?ye(l.$slots,"icon",{key:2}):de("v-if",!0)],10,dD))}});var hD=Ie(pD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const vD=dt(hD);let mD=class{constructor(t,o){this.parent=t,this.domNode=o,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,o=>{o.addEventListener("keydown",n=>{let r=!1;switch(n.code){case Ye.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case Ye.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case Ye.tab:{ya(t,"mouseleave");break}case Ye.enter:case Ye.space:{r=!0,n.currentTarget.click();break}}return r&&(n.preventDefault(),n.stopPropagation()),!1})})}},gD=class{constructor(t,o){this.domNode=t,this.submenu=null,this.submenu=null,this.init(o)}init(t){this.domNode.setAttribute("tabindex","0");const o=this.domNode.querySelector(`.${t}-menu`);o&&(this.submenu=new mD(this,o)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let o=!1;switch(t.code){case Ye.down:{ya(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),o=!0;break}case Ye.up:{ya(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),o=!0;break}case Ye.tab:{ya(t.currentTarget,"mouseleave");break}case Ye.enter:case Ye.space:{o=!0,t.currentTarget.click();break}}o&&t.preventDefault()})}},yD=class{constructor(t,o){this.domNode=t,this.init(o)}init(t){const o=this.domNode.childNodes;Array.from(o).forEach(n=>{n.nodeType===1&&new gD(n,t)})}};const bD=oe({name:"ElMenuCollapseTransition",setup(){const e=be("menu");return{listeners:{onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,n){fo(o,`${e.namespace.value}-opacity-transition`),o.style.opacity="1",n()},onAfterEnter(o){An(o,`${e.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),ho(o,e.m("collapse"))?(An(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),fo(o,e.m("collapse"))):(fo(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),An(o,e.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){fo(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}}}}});function wD(e,t,o,n,r,s){return N(),fe(cn,mt({mode:"out-in"},e.listeners),{default:se(()=>[ye(e.$slots,"default")]),_:3},16)}var CD=Ie(bD,[["render",wD],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Gm(e,t){const o=x(()=>{let r=e.parent;const s=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&s.unshift(r.props.index),r=r.parent;return s});return{parentMenu:x(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:o}}function SD(e){return x(()=>{const o=e.backgroundColor;return o?new Tw(o).shade(20).toString():""})}const qm=(e,t)=>{const o=be("menu");return x(()=>o.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":SD(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},kD=Re({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},popperOffset:{type:Number,default:6},expandCloseIcon:{type:jt},expandOpenIcon:{type:jt},collapseCloseIcon:{type:jt},collapseOpenIcon:{type:jt}}),mi="ElSubMenu";var vc=oe({name:mi,props:kD,setup(e,{slots:t,expose:o}){const n=yt(),{indexPath:r,parentMenu:s}=Gm(n,x(()=>e.index)),l=be("menu"),i=be("sub-menu"),u=Ue("rootMenu");u||nn(mi,"can not inject root menu");const c=Ue(`subMenu:${s.value.uid}`);c||nn(mi,"can not inject sub menu");const f=F({}),d=F({});let h;const v=F(!1),m=F(),g=F(null),b=x(()=>_.value==="horizontal"&&k.value?"bottom-start":"right-start"),C=x(()=>_.value==="horizontal"&&k.value||_.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?$.value?e.expandOpenIcon:e.expandCloseIcon:Vo:e.collapseCloseIcon&&e.collapseOpenIcon?$.value?e.collapseOpenIcon:e.collapseCloseIcon:wn),k=x(()=>c.level===0),w=x(()=>e.popperAppendToBody===void 0?k.value:Boolean(e.popperAppendToBody)),E=x(()=>u.props.collapse?`${l.namespace.value}-zoom-in-left`:`${l.namespace.value}-zoom-in-top`),T=x(()=>_.value==="horizontal"&&k.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"]),$=x(()=>u.openedMenus.includes(e.index)),A=x(()=>{let B=!1;return Object.values(f.value).forEach(X=>{X.active&&(B=!0)}),Object.values(d.value).forEach(X=>{X.active&&(B=!0)}),B}),R=x(()=>u.props.backgroundColor||""),M=x(()=>u.props.activeTextColor||""),I=x(()=>u.props.textColor||""),_=x(()=>u.props.mode),L=Rt({index:e.index,indexPath:r,active:A}),z=x(()=>_.value!=="horizontal"?{color:I.value}:{borderBottomColor:A.value?u.props.activeTextColor?M.value:"":"transparent",color:A.value?M.value:I.value}),H=()=>{var B,X,Q;return(Q=(X=(B=g.value)==null?void 0:B.popperRef)==null?void 0:X.popperInstanceRef)==null?void 0:Q.destroy()},W=B=>{B||H()},j=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:r.value,active:A.value})},D=(B,X=e.showTimeout)=>{var Q;B.type!=="focus"&&(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,h==null||h(),{stop:h}=Br(()=>{u.openMenu(e.index,r.value)},X),w.value&&((Q=s.value.vnode.el)==null||Q.dispatchEvent(new MouseEvent("mouseenter")))))},V=(B=!1)=>{var X,Q;u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||(h==null||h(),c.mouseInChild.value=!1,{stop:h}=Br(()=>!v.value&&u.closeMenu(e.index,r.value),e.hideTimeout),w.value&&B&&((X=n.parent)==null?void 0:X.type.name)==="ElSubMenu"&&((Q=c.handleMouseleave)==null||Q.call(c,!0)))};ke(()=>u.props.collapse,B=>W(Boolean(B)));{const B=Q=>{d.value[Q.index]=Q},X=Q=>{delete d.value[Q.index]};gt(`subMenu:${n.uid}`,{addSubMenu:B,removeSubMenu:X,handleMouseleave:V,mouseInChild:v,level:c.level+1})}return o({opened:$}),ht(()=>{u.addSubMenu(L),c.addSubMenu(L)}),sn(()=>{c.removeSubMenu(L),u.removeSubMenu(L)}),()=>{var B;const X=[(B=t.title)==null?void 0:B.call(t),Ke(_e,{class:i.e("icon-arrow"),style:{transform:$.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>kt(C.value)?Ke(n.appContext.components[C.value]):Ke(C.value)})],Q=qm(u.props,c.level+1),q=u.isMenuPopup?Ke(xn,{ref:g,visible:$.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:b.value,teleported:w.value,fallbackPlacements:T.value,transition:E.value,gpuAcceleration:!1},{content:()=>{var ee;return Ke("div",{class:[l.m(_.value),l.m("popup-container"),e.popperClass],onMouseenter:ve=>D(ve,100),onMouseleave:()=>V(!0),onFocus:ve=>D(ve,100)},[Ke("ul",{class:[l.b(),l.m("popup"),l.m(`popup-${b.value}`)],style:Q.value},[(ee=t.default)==null?void 0:ee.call(t)])])},default:()=>Ke("div",{class:i.e("title"),style:[z.value,{backgroundColor:R.value}],onClick:j},X)}):Ke(Qe,{},[Ke("div",{class:i.e("title"),style:[z.value,{backgroundColor:R.value}],ref:m,onClick:j},X),Ke(El,{},{default:()=>{var ee;return lt(Ke("ul",{role:"menu",class:[l.b(),l.m("inline")],style:Q.value},[(ee=t.default)==null?void 0:ee.call(t)]),[[xt,$.value]])}})]);return Ke("li",{class:[i.b(),i.is("active",A.value),i.is("opened",$.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:$.value,onMouseenter:D,onMouseleave:()=>V(!0),onFocus:D},[q])}}});const ED=Re({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ce(Array),default:()=>_t([])},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"}}),gi=e=>Array.isArray(e)&&e.every(t=>kt(t)),$D={close:(e,t)=>kt(e)&&gi(t),open:(e,t)=>kt(e)&&gi(t),select:(e,t,o,n)=>kt(e)&&gi(t)&&qt(o)&&(n===void 0||n instanceof Promise)};var TD=oe({name:"ElMenu",props:ED,emits:$D,setup(e,{emit:t,slots:o,expose:n}){const r=yt(),s=r.appContext.config.globalProperties.$router,l=F(),i=be("menu"),u=be("sub-menu"),c=F(-1),f=F(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=F(e.defaultActive),h=F({}),v=F({}),m=x(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),g=()=>{const I=d.value&&h.value[d.value];if(!I||e.mode==="horizontal"||e.collapse)return;I.indexPath.forEach(L=>{const z=v.value[L];z&&b(L,z.indexPath)})},b=(I,_)=>{f.value.includes(I)||(e.uniqueOpened&&(f.value=f.value.filter(L=>_.includes(L))),f.value.push(I),t("open",I,_))},C=(I,_)=>{const L=f.value.indexOf(I);L!==-1&&f.value.splice(L,1),t("close",I,_)},k=({index:I,indexPath:_})=>{f.value.includes(I)?C(I,_):b(I,_)},w=I=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:_,indexPath:L}=I;if(!(_===void 0||L===void 0))if(e.router&&s){const z=I.route||_,H=s.push(z).then(W=>(W||(d.value=_),W));t("select",_,L,{index:_,indexPath:L,route:z},H)}else d.value=_,t("select",_,L,{index:_,indexPath:L})},E=I=>{const _=h.value,L=_[I]||d.value&&_[d.value]||_[e.defaultActive];L?d.value=L.index:d.value=I},T=()=>{var I,_;if(!l.value)return-1;const L=Array.from((_=(I=l.value)==null?void 0:I.childNodes)!=null?_:[]).filter(B=>B.nodeName!=="#text"||B.nodeValue),z=64,H=Number.parseInt(getComputedStyle(l.value).paddingLeft,10),W=Number.parseInt(getComputedStyle(l.value).paddingRight,10),j=l.value.clientWidth-H-W;let D=0,V=0;return L.forEach((B,X)=>{D+=B.offsetWidth||0,D<=j-z&&(V=X+1)}),V===L.length?-1:V},$=(I,_=33.34)=>{let L;return()=>{L&&clearTimeout(L),L=setTimeout(()=>{I()},_)}};let A=!0;const R=()=>{const I=()=>{c.value=-1,Ge(()=>{c.value=T()})};A?I():$(I)(),A=!1};ke(()=>e.defaultActive,I=>{h.value[I]||(d.value=""),E(I)}),ke(()=>e.collapse,I=>{I&&(f.value=[])}),ke(h.value,g);let M;Xn(()=>{e.mode==="horizontal"&&e.ellipsis?M=Bn(l,R).stop:M==null||M()});{const I=H=>{v.value[H.index]=H},_=H=>{delete v.value[H.index]};gt("rootMenu",Rt({props:e,openedMenus:f,items:h,subMenus:v,activeIndex:d,isMenuPopup:m,addMenuItem:H=>{h.value[H.index]=H},removeMenuItem:H=>{delete h.value[H.index]},addSubMenu:I,removeSubMenu:_,openMenu:b,closeMenu:C,handleMenuItemClick:w,handleSubMenuClick:k})),gt(`subMenu:${r.uid}`,{addSubMenu:I,removeSubMenu:_,mouseInChild:F(!1),level:0})}return ht(()=>{e.mode==="horizontal"&&new yD(r.vnode.el,i.namespace.value)}),n({open:_=>{const{indexPath:L}=v.value[_];L.forEach(z=>b(z,L))},close:C,handleResize:R}),()=>{var I,_;let L=(_=(I=o.default)==null?void 0:I.call(o))!=null?_:[];const z=[];if(e.mode==="horizontal"&&l.value){const j=Ou(L),D=c.value===-1?j:j.slice(0,c.value),V=c.value===-1?[]:j.slice(c.value);(V==null?void 0:V.length)&&e.ellipsis&&(L=D,z.push(Ke(vc,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>Ke(_e,{class:u.e("icon-more")},{default:()=>Ke(A0)}),default:()=>V})))}const H=qm(e,0),W=Ke("ul",{key:String(e.collapse),role:"menubar",ref:l,style:H.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...L,...z]);return e.collapseTransition&&e.mode==="vertical"?Ke(CD,()=>W):W}}});const OD=Re({index:{type:ce([String,null]),default:null},route:{type:ce([String,Object])},disabled:Boolean}),xD={click:e=>kt(e.index)&&Array.isArray(e.indexPath)},yi="ElMenuItem",ID=oe({name:yi,components:{ElTooltip:xn},props:OD,emits:xD,setup(e,{emit:t}){const o=yt(),n=Ue("rootMenu"),r=be("menu"),s=be("menu-item");n||nn(yi,"can not inject root menu");const{parentMenu:l,indexPath:i}=Gm(o,Jt(e,"index")),u=Ue(`subMenu:${l.value.uid}`);u||nn(yi,"can not inject sub menu");const c=x(()=>e.index===n.activeIndex),f=Rt({index:e.index,indexPath:i,active:c}),d=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",f))};return ht(()=>{u.addSubMenu(f),n.addMenuItem(f)}),sn(()=>{u.removeSubMenu(f),n.removeMenuItem(f)}),{parentMenu:l,rootMenu:n,active:c,nsMenu:r,nsMenuItem:s,handleClick:d}}});function MD(e,t,o,n,r,s){const l=tt("el-tooltip");return N(),U("li",{class:P([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(N(),fe(l,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:se(()=>[ye(e.$slots,"title")]),default:se(()=>[te("div",{class:P(e.nsMenu.be("tooltip","trigger"))},[ye(e.$slots,"default")],2)]),_:3},8,["effect"])):(N(),U(Qe,{key:1},[ye(e.$slots,"default"),ye(e.$slots,"title")],64))],2)}var Xm=Ie(ID,[["render",MD],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const ND={title:String},PD="ElMenuItemGroup",RD=oe({name:PD,props:ND,setup(){return{ns:be("menu-item-group")}}});function AD(e,t,o,n,r,s){return N(),U("li",{class:P(e.ns.b())},[te("div",{class:P(e.ns.e("title"))},[e.$slots.title?ye(e.$slots,"title",{key:1}):(N(),U(Qe,{key:0},[It(Ne(e.title),1)],64))],2),te("ul",null,[ye(e.$slots,"default")])],2)}var Zm=Ie(RD,[["render",AD],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const DD=dt(TD,{MenuItem:Xm,MenuItemGroup:Zm,SubMenu:vc}),LD=Ut(Xm),BD=Ut(Zm);Ut(vc);const zD=Re({icon:{type:jt,default:()=>D0},title:String,content:{type:String,default:""}}),VD={back:()=>!0},FD=["aria-label"],HD=oe({name:"ElPageHeader"}),WD=oe({...HD,props:zD,emits:VD,setup(e,{emit:t}){const o=gn(),{t:n}=$t(),r=be("page-header"),s=x(()=>[r.b(),{[r.m("has-breadcrumb")]:!!o.breadcrumb,[r.m("has-extra")]:!!o.extra,[r.is("contentful")]:!!o.default}]);function l(){t("back")}return(i,u)=>(N(),U("div",{class:P(a(s))},[i.$slots.breadcrumb?(N(),U("div",{key:0,class:P(a(r).e("breadcrumb"))},[ye(i.$slots,"breadcrumb")],2)):de("v-if",!0),te("div",{class:P(a(r).e("header"))},[te("div",{class:P(a(r).e("left"))},[te("div",{class:P(a(r).e("back")),role:"button",tabindex:"0",onClick:l},[i.icon||i.$slots.icon?(N(),U("div",{key:0,"aria-label":i.title||a(n)("el.pageHeader.title"),class:P(a(r).e("icon"))},[ye(i.$slots,"icon",{},()=>[i.icon?(N(),fe(a(_e),{key:0},{default:se(()=>[(N(),fe(St(i.icon)))]),_:1})):de("v-if",!0)])],10,FD)):de("v-if",!0),te("div",{class:P(a(r).e("title"))},[ye(i.$slots,"title",{},()=>[It(Ne(i.title||a(n)("el.pageHeader.title")),1)])],2)],2),Z(a(Am),{direction:"vertical"}),te("div",{class:P(a(r).e("content"))},[ye(i.$slots,"content",{},()=>[It(Ne(i.content),1)])],2)],2),i.$slots.extra?(N(),U("div",{key:0,class:P(a(r).e("extra"))},[ye(i.$slots,"extra")],2)):de("v-if",!0)],2),i.$slots.default?(N(),U("div",{key:1,class:P(a(r).e("main"))},[ye(i.$slots,"default")],2)):de("v-if",!0)],2))}});var KD=Ie(WD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const _D=dt(KD),jD=Re({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:jt}}),YD={click:e=>e instanceof MouseEvent},UD=["disabled","aria-disabled"],GD={key:0},qD=oe({name:"ElPaginationPrev"}),XD=oe({...qD,props:jD,emits:YD,setup(e){const t=e,o=x(()=>t.disabled||t.currentPage<=1);return(n,r)=>(N(),U("button",{type:"button",class:"btn-prev",disabled:a(o),"aria-disabled":a(o),onClick:r[0]||(r[0]=s=>n.$emit("click",s))},[n.prevText?(N(),U("span",GD,Ne(n.prevText),1)):(N(),fe(a(_e),{key:1},{default:se(()=>[(N(),fe(St(n.prevIcon)))]),_:1}))],8,UD))}});var ZD=Ie(XD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const JD=Re({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:jt}}),QD=["disabled","aria-disabled"],eL={key:0},tL=oe({name:"ElPaginationNext"}),nL=oe({...tL,props:JD,emits:["click"],setup(e){const t=e,o=x(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(n,r)=>(N(),U("button",{type:"button",class:"btn-next",disabled:a(o),"aria-disabled":a(o),onClick:r[0]||(r[0]=s=>n.$emit("click",s))},[n.nextText?(N(),U("span",eL,Ne(n.nextText),1)):(N(),fe(a(_e),{key:1},{default:se(()=>[(N(),fe(St(n.nextIcon)))]),_:1}))],8,QD))}});var oL=Ie(nL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Jm="ElSelectGroup",Us="ElSelect";function rL(e,t){const o=Ue(Us),n=Ue(Jm,{disabled:!1}),r=x(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=x(()=>o.props.multiple?d(o.props.modelValue,e.value):h(e.value,o.props.modelValue)),l=x(()=>{if(o.props.multiple){const g=o.props.modelValue||[];return!s.value&&g.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),i=x(()=>e.label||(r.value?"":e.value)),u=x(()=>e.value||e.label||""),c=x(()=>e.disabled||t.groupDisabled||l.value),f=yt(),d=(g=[],b)=>{if(r.value){const C=o.props.valueKey;return g&&g.some(k=>Pr(Ht(k,C))===Ht(b,C))}else return g&&g.includes(b)},h=(g,b)=>{if(r.value){const{valueKey:C}=o.props;return Ht(g,C)===Ht(b,C)}else return g===b},v=()=>{!e.disabled&&!n.disabled&&(o.hoverIndex=o.optionsArray.indexOf(f.proxy))};ke(()=>i.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),ke(()=>e.value,(g,b)=>{const{remote:C,valueKey:k}=o.props;if(Object.is(g,b)||(o.onOptionDestroy(b,f.proxy),o.onOptionCreate(f.proxy)),!e.created&&!C){if(k&&typeof g=="object"&&typeof b=="object"&&g[k]===b[k])return;o.setSelected()}}),ke(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0});const{queryChange:m}=Pr(o);return ke(m,g=>{const{query:b}=a(g),C=new RegExp(zh(b),"i");t.visible=C.test(i.value)||e.created,t.visible||o.filteredOptionsCount--}),{select:o,currentLabel:i,currentValue:u,itemSelected:s,isDisabled:c,hoverItem:v}}const sL=oe({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=be("select"),o=Rt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:n,itemSelected:r,isDisabled:s,select:l,hoverItem:i}=rL(e,o),{visible:u,hover:c}=tn(o),f=yt().proxy;l.onOptionCreate(f),sn(()=>{const h=f.value,{selected:v}=l,g=(l.props.multiple?v:[v]).some(b=>b.value===f.value);Ge(()=>{l.cachedOptions.get(h)===f&&!g&&l.cachedOptions.delete(h)}),l.onOptionDestroy(h,f)});function d(){e.disabled!==!0&&o.groupDisabled!==!0&&l.handleOptionSelect(f,!0)}return{ns:t,currentLabel:n,itemSelected:r,isDisabled:s,select:l,hoverItem:i,visible:u,hover:c,selectOptionClick:d,states:o}}});function aL(e,t,o,n,r,s){return lt((N(),U("li",{class:P([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...l)=>e.hoverItem&&e.hoverItem(...l)),onClick:t[1]||(t[1]=nt((...l)=>e.selectOptionClick&&e.selectOptionClick(...l),["stop"]))},[ye(e.$slots,"default",{},()=>[te("span",null,Ne(e.currentLabel),1)])],34)),[[xt,e.visible]])}var mc=Ie(sL,[["render",aL],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const lL=oe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ue(Us),t=be("select"),o=x(()=>e.props.popperClass),n=x(()=>e.props.multiple),r=x(()=>e.props.fitInputWidth),s=F("");function l(){var i;s.value=`${(i=e.selectWrapper)==null?void 0:i.offsetWidth}px`}return ht(()=>{l(),Bn(e.selectWrapper,l)}),{ns:t,minWidth:s,popperClass:o,isMultiple:n,isFitInputWidth:r}}});function iL(e,t,o,n,r,s){return N(),U("div",{class:P([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:je({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[ye(e.$slots,"default")],6)}var uL=Ie(lL,[["render",iL],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function cL(e){const{t}=$t();return Rt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const dL=(e,t,o)=>{const{t:n}=$t(),r=be("select");Lo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},x(()=>e.suffixTransition===!1));const s=F(null),l=F(null),i=F(null),u=F(null),c=F(null),f=F(null),d=F(-1),h=Kt({query:""}),v=Kt(""),{form:m,formItem:g}=zn(),b=x(()=>!e.filterable||e.multiple||!t.visible),C=x(()=>e.disabled||(m==null?void 0:m.disabled)),k=x(()=>{const Y=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!C.value&&t.inputHovering&&Y}),w=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),E=x(()=>r.is("reverse",w.value&&t.visible&&e.suffixTransition)),T=x(()=>e.remote?300:0),$=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||n("el.select.noMatch"):t.options.size===0?e.noDataText||n("el.select.noData"):null),A=x(()=>Array.from(t.options.values())),R=x(()=>Array.from(t.cachedOptions.values())),M=x(()=>{const Y=A.value.filter(ne=>!ne.created).some(ne=>ne.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!Y}),I=dn(),_=x(()=>["small"].includes(I.value)?"small":"default"),L=x({get(){return t.visible&&$.value!==!1},set(Y){t.visible=Y}});ke([()=>C.value,()=>I.value,()=>m==null?void 0:m.size],()=>{Ge(()=>{z()})}),ke(()=>e.placeholder,Y=>{t.cachedPlaceHolder=t.currentPlaceholder=Y}),ke(()=>e.modelValue,(Y,ne)=>{e.multiple&&(z(),Y&&Y.length>0||l.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",H(t.query))),D(),e.filterable&&!e.multiple&&(t.inputLength=20),!Dn(Y,ne)&&e.validateEvent&&(g==null||g.validate("change").catch(he=>on()))},{flush:"post",deep:!0}),ke(()=>t.visible,Y=>{var ne,he,$e;Y?((he=(ne=i.value)==null?void 0:ne.updatePopper)==null||he.call(ne),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?($e=l.value)==null||$e.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),H(t.query),!e.multiple&&!e.remote&&(h.value.query="",os(h),os(v)))):(e.filterable&&(At(e.filterMethod)&&e.filterMethod(""),At(e.remoteMethod)&&e.remoteMethod("")),l.value&&l.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,B(),Ge(()=>{l.value&&l.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),o.emit("visible-change",Y)}),ke(()=>t.options.entries(),()=>{var Y,ne,he;if(!Dt)return;(ne=(Y=i.value)==null?void 0:Y.updatePopper)==null||ne.call(Y),e.multiple&&z();const $e=((he=c.value)==null?void 0:he.querySelectorAll("input"))||[];Array.from($e).includes(document.activeElement)||D(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&j()},{flush:"post"}),ke(()=>t.hoverIndex,Y=>{it(Y)&&Y>-1?d.value=A.value[Y]||{}:d.value={},A.value.forEach(ne=>{ne.hover=d.value===ne})});const z=()=>{e.collapseTags&&!e.filterable||Ge(()=>{var Y,ne;if(!s.value)return;const he=s.value.$el.querySelector("input"),$e=u.value,Be=dE(I.value||(m==null?void 0:m.size));he.style.height=`${(t.selected.length===0?Be:Math.max($e?$e.clientHeight+($e.clientHeight>Be?6:0):0,Be))-2}px`,t.tagInMultiLine=Number.parseFloat(he.style.height)>=Be,t.visible&&$.value!==!1&&((ne=(Y=i.value)==null?void 0:Y.updatePopper)==null||ne.call(Y))})},H=async Y=>{if(!(t.previousQuery===Y||t.isOnComposition)){if(t.previousQuery===null&&(At(e.filterMethod)||At(e.remoteMethod))){t.previousQuery=Y;return}t.previousQuery=Y,Ge(()=>{var ne,he;t.visible&&((he=(ne=i.value)==null?void 0:ne.updatePopper)==null||he.call(ne))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ge(()=>{const ne=l.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,ne):ne,W(),z()}),e.remote&&At(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(Y)):At(e.filterMethod)?(e.filterMethod(Y),os(v)):(t.filteredOptionsCount=t.optionsCount,h.value.query=Y,os(h),os(v)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ge(),j())}},W=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=l.value.value?"":t.cachedPlaceHolder)},j=()=>{const Y=A.value.filter($e=>$e.visible&&!$e.disabled&&!$e.states.groupDisabled),ne=Y.find($e=>$e.created),he=Y[0];t.hoverIndex=pe(A.value,ne||he)},D=()=>{var Y;if(e.multiple)t.selectedLabel="";else{const he=V(e.modelValue);(Y=he.props)!=null&&Y.created?(t.createdLabel=he.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=he.currentLabel,t.selected=he,e.filterable&&(t.query=t.selectedLabel);return}const ne=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(he=>{ne.push(V(he))}),t.selected=ne,Ge(()=>{z()})},V=Y=>{let ne;const he=Ql(Y).toLowerCase()==="object",$e=Ql(Y).toLowerCase()==="null",Be=Ql(Y).toLowerCase()==="undefined";for(let Bt=t.cachedOptions.size-1;Bt>=0;Bt--){const Tt=R.value[Bt];if(he?Ht(Tt.value,e.valueKey)===Ht(Y,e.valueKey):Tt.value===Y){ne={value:Y,currentLabel:Tt.currentLabel,isDisabled:Tt.isDisabled};break}}if(ne)return ne;const Mt=he?Y.label:!$e&&!Be?Y:"",Nt={value:Y,currentLabel:Mt};return e.multiple&&(Nt.hitState=!1),Nt},B=()=>{setTimeout(()=>{const Y=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(ne=>A.value.findIndex(he=>Ht(he,Y)===Ht(ne,Y)))):t.hoverIndex=-1:t.hoverIndex=A.value.findIndex(ne=>vt(ne)===vt(t.selected))},300)},X=()=>{var Y,ne;Q(),(ne=(Y=i.value)==null?void 0:Y.updatePopper)==null||ne.call(Y),e.multiple&&!e.filterable&&z()},Q=()=>{var Y;t.inputWidth=(Y=s.value)==null?void 0:Y.$el.getBoundingClientRect().width},q=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,H(t.query))},ee=kn(()=>{q()},T.value),ve=kn(Y=>{H(Y.target.value)},T.value),me=Y=>{Dn(e.modelValue,Y)||o.emit(Lt,Y)},Ce=Y=>{if(Y.target.value.length<=0&&!ot()){const ne=e.modelValue.slice();ne.pop(),o.emit(ut,ne),me(ne)}Y.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},le=(Y,ne)=>{const he=t.selected.indexOf(ne);if(he>-1&&!C.value){const $e=e.modelValue.slice();$e.splice(he,1),o.emit(ut,$e),me($e),o.emit("remove-tag",ne.value)}Y.stopPropagation()},re=Y=>{Y.stopPropagation();const ne=e.multiple?[]:"";if(!kt(ne))for(const he of t.selected)he.isDisabled&&ne.push(he.value);o.emit(ut,ne),me(ne),t.hoverIndex=-1,t.visible=!1,o.emit("clear")},ie=(Y,ne)=>{var he;if(e.multiple){const $e=(e.modelValue||[]).slice(),Be=pe($e,Y.value);Be>-1?$e.splice(Be,1):(e.multipleLimit<=0||$e.length{Le(Y)})},pe=(Y=[],ne)=>{if(!qt(ne))return Y.indexOf(ne);const he=e.valueKey;let $e=-1;return Y.some((Be,Mt)=>Pr(Ht(Be,he))===Ht(ne,he)?($e=Mt,!0):!1),$e},Ae=()=>{t.softFocus=!0;const Y=l.value||s.value;Y&&(Y==null||Y.focus())},Le=Y=>{var ne,he,$e,Be,Mt;const Nt=Array.isArray(Y)?Y[0]:Y;let Bt=null;if(Nt!=null&&Nt.value){const Tt=A.value.filter(Ct=>Ct.value===Nt.value);Tt.length>0&&(Bt=Tt[0].$el)}if(i.value&&Bt){const Tt=(Be=($e=(he=(ne=i.value)==null?void 0:ne.popperRef)==null?void 0:he.contentRef)==null?void 0:$e.querySelector)==null?void 0:Be.call($e,`.${r.be("dropdown","wrap")}`);Tt&&dh(Tt,Bt)}(Mt=f.value)==null||Mt.handleScroll()},Xe=Y=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(Y.value,Y),t.cachedOptions.set(Y.value,Y)},xe=(Y,ne)=>{t.options.get(Y)===ne&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(Y))},He=Y=>{Y.code!==Ye.backspace&&ot(!1),t.inputLength=l.value.value.length*15+20,z()},ot=Y=>{if(!Array.isArray(t.selected))return;const ne=t.selected[t.selected.length-1];if(!!ne)return Y===!0||Y===!1?(ne.hitState=Y,Y):(ne.hitState=!ne.hitState,ne.hitState)},Pe=Y=>{const ne=Y.target.value;if(Y.type==="compositionend")t.isOnComposition=!1,Ge(()=>H(ne));else{const he=ne[ne.length-1]||"";t.isOnComposition=!Mu(he)}},qe=()=>{Ge(()=>Le(t.selected))},ze=Y=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),o.emit("focus",Y))},Se=()=>{var Y;t.visible=!1,(Y=s.value)==null||Y.blur()},Oe=Y=>{Ge(()=>{t.isSilentBlur?t.isSilentBlur=!1:o.emit("blur",Y)}),t.softFocus=!1},De=Y=>{re(Y)},Je=()=>{t.visible=!1},rt=Y=>{t.visible&&(Y.preventDefault(),Y.stopPropagation(),t.visible=!1)},st=Y=>{var ne;Y&&!t.mouseEnter||C.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!i.value||!i.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((ne=l.value||s.value)==null||ne.focus()))},Ee=()=>{t.visible?A.value[t.hoverIndex]&&ie(A.value[t.hoverIndex],void 0):st()},vt=Y=>qt(Y.value)?Ht(Y.value,e.valueKey):Y.value,pt=x(()=>A.value.filter(Y=>Y.visible).every(Y=>Y.disabled)),ue=Y=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!pt.value){Y==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):Y==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const ne=A.value[t.hoverIndex];(ne.disabled===!0||ne.states.groupDisabled===!0||!ne.visible)&&ue(Y),Ge(()=>Le(d.value))}};return{optionsArray:A,selectSize:I,handleResize:X,debouncedOnInputChange:ee,debouncedQueryChange:ve,deletePrevTag:Ce,deleteTag:le,deleteSelected:re,handleOptionSelect:ie,scrollToOption:Le,readonly:b,resetInputHeight:z,showClose:k,iconComponent:w,iconReverse:E,showNewOption:M,collapseTagSize:_,setSelected:D,managePlaceholder:W,selectDisabled:C,emptyText:$,toggleLastOptionHitState:ot,resetInputState:He,handleComposition:Pe,onOptionCreate:Xe,onOptionDestroy:xe,handleMenuEnter:qe,handleFocus:ze,blur:Se,handleBlur:Oe,handleClearClick:De,handleClose:Je,handleKeydownEscape:rt,toggleMenu:st,selectOption:Ee,getValueKey:vt,navigateOptions:ue,dropMenuVisible:L,queryChange:h,groupQueryChange:v,reference:s,input:l,tooltipRef:i,tags:u,selectWrapper:c,scrollbar:f,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}},sp="ElSelect",fL=oe({name:sp,componentName:sp,components:{ElInput:bn,ElSelectMenu:uL,ElOption:mc,ElTag:kl,ElScrollbar:So,ElTooltip:xn,ElIcon:_e},directives:{ClickOutside:zo},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:Fs},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,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},teleported:ln.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:jt,default:qr},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:jt,default:Vo},tagType:{...uc.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:pr,default:"bottom-start"}},emits:[ut,Lt,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const o=be("select"),n=be("input"),{t:r}=$t(),s=cL(e),{optionsArray:l,selectSize:i,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:m,deleteSelected:g,handleOptionSelect:b,scrollToOption:C,setSelected:k,resetInputHeight:w,managePlaceholder:E,showClose:T,selectDisabled:$,iconComponent:A,iconReverse:R,showNewOption:M,emptyText:I,toggleLastOptionHitState:_,resetInputState:L,handleComposition:z,onOptionCreate:H,onOptionDestroy:W,handleMenuEnter:j,handleFocus:D,blur:V,handleBlur:B,handleClearClick:X,handleClose:Q,handleKeydownEscape:q,toggleMenu:ee,selectOption:ve,getValueKey:me,navigateOptions:Ce,dropMenuVisible:le,reference:re,input:ie,tooltipRef:pe,tags:Ae,selectWrapper:Le,scrollbar:Xe,queryChange:xe,groupQueryChange:He,handleMouseEnter:ot,handleMouseLeave:Pe}=dL(e,s,t),{focus:qe}=pE(re),{inputWidth:ze,selected:Se,inputLength:Oe,filteredOptionsCount:De,visible:Je,softFocus:rt,selectedLabel:st,hoverIndex:Ee,query:vt,inputHovering:pt,currentPlaceholder:ue,menuVisibleOnFocus:Me,isOnComposition:We,isSilentBlur:Y,options:ne,cachedOptions:he,optionsCount:$e,prefixWidth:Be,tagInMultiLine:Mt}=tn(s),Nt=x(()=>{const we=[o.b()],Ze=a(i);return Ze&&we.push(o.m(Ze)),e.disabled&&we.push(o.m("disabled")),we}),Bt=x(()=>({maxWidth:`${a(ze)-32}px`,width:"100%"})),Tt=x(()=>({maxWidth:`${a(ze)>123?a(ze)-123:a(ze)-75}px`}));gt(Us,Rt({props:e,options:ne,optionsArray:l,cachedOptions:he,optionsCount:$e,filteredOptionsCount:De,hoverIndex:Ee,handleOptionSelect:b,onOptionCreate:H,onOptionDestroy:W,selectWrapper:Le,selected:Se,setSelected:k,queryChange:xe,groupQueryChange:He})),ht(()=>{s.cachedPlaceHolder=ue.value=e.placeholder||r("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(ue.value=""),Bn(Le,c),e.remote&&e.multiple&&w(),Ge(()=>{const we=re.value&&re.value.$el;if(!!we&&(ze.value=we.getBoundingClientRect().width,t.slots.prefix)){const Ze=we.querySelector(`.${n.e("prefix")}`);Be.value=Math.max(Ze.getBoundingClientRect().width+5,30)}}),k()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(ut,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(ut,"");const Ct=x(()=>{var we,Ze;return(Ze=(we=pe.value)==null?void 0:we.popperRef)==null?void 0:Ze.contentRef});return{tagInMultiLine:Mt,prefixWidth:Be,selectSize:i,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:m,deleteSelected:g,handleOptionSelect:b,scrollToOption:C,inputWidth:ze,selected:Se,inputLength:Oe,filteredOptionsCount:De,visible:Je,softFocus:rt,selectedLabel:st,hoverIndex:Ee,query:vt,inputHovering:pt,currentPlaceholder:ue,menuVisibleOnFocus:Me,isOnComposition:We,isSilentBlur:Y,options:ne,resetInputHeight:w,managePlaceholder:E,showClose:T,selectDisabled:$,iconComponent:A,iconReverse:R,showNewOption:M,emptyText:I,toggleLastOptionHitState:_,resetInputState:L,handleComposition:z,handleMenuEnter:j,handleFocus:D,blur:V,handleBlur:B,handleClearClick:X,handleClose:Q,handleKeydownEscape:q,toggleMenu:ee,selectOption:ve,getValueKey:me,navigateOptions:Ce,dropMenuVisible:le,focus:qe,reference:re,input:ie,tooltipRef:pe,popperPaneRef:Ct,tags:Ae,selectWrapper:Le,scrollbar:Xe,wrapperKls:Nt,selectTagsStyle:Bt,nsSelect:o,tagTextStyle:Tt,handleMouseEnter:ot,handleMouseLeave:Pe}}}),pL=["disabled","autocomplete"],hL={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function vL(e,t,o,n,r,s){const l=tt("el-tag"),i=tt("el-tooltip"),u=tt("el-icon"),c=tt("el-input"),f=tt("el-option"),d=tt("el-scrollbar"),h=tt("el-select-menu"),v=Rr("click-outside");return lt((N(),U("div",{ref:"selectWrapper",class:P(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...m)=>e.handleMouseEnter&&e.handleMouseEnter(...m)),onMouseleave:t[23]||(t[23]=(...m)=>e.handleMouseLeave&&e.handleMouseLeave(...m)),onClick:t[24]||(t[24]=nt((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},[Z(i,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:se(()=>[te("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=m=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=m=>e.inputHovering=!1)},[e.multiple?(N(),U("div",{key:0,ref:"tags",class:P(e.nsSelect.e("tags")),style:je(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(N(),U("span",{key:0,class:P([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[Z(l,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=m=>e.deleteTag(m,e.selected[0]))},{default:se(()=>[te("span",{class:P(e.nsSelect.e("tags-text")),style:je(e.tagTextStyle)},Ne(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(N(),fe(l,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:se(()=>[e.collapseTagsTooltip?(N(),fe(i,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:se(()=>[te("span",{class:P(e.nsSelect.e("tags-text"))},"+ "+Ne(e.selected.length-1),3)]),content:se(()=>[te("div",{class:P(e.nsSelect.e("collapse-tags"))},[(N(!0),U(Qe,null,bt(e.selected.slice(1),(m,g)=>(N(),U("div",{key:g,class:P(e.nsSelect.e("collapse-tag"))},[(N(),fe(l,{key:e.getValueKey(m),class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:b=>e.deleteTag(b,m)},{default:se(()=>[te("span",{class:P(e.nsSelect.e("tags-text")),style:je({maxWidth:e.inputWidth-75+"px"})},Ne(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(N(),U("span",{key:1,class:P(e.nsSelect.e("tags-text"))},"+ "+Ne(e.selected.length-1),3))]),_:1},8,["size","type"])):de("v-if",!0)],2)):de("v-if",!0),de("
"),e.collapseTags?de("v-if",!0):(N(),fe(cn,{key:1,onAfterLeave:e.resetInputHeight},{default:se(()=>[te("span",{class:P([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(N(!0),U(Qe,null,bt(e.selected,m=>(N(),fe(l,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,m)},{default:se(()=>[te("span",{class:P(e.nsSelect.e("tags-text")),style:je({maxWidth:e.inputWidth-75+"px"})},Ne(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),de("
"),e.filterable?lt((N(),U("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=m=>e.query=m),type:"text",class:P([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:je({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[3]||(t[3]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeyup:t[4]||(t[4]=(...m)=>e.managePlaceholder&&e.managePlaceholder(...m)),onKeydown:[t[5]||(t[5]=(...m)=>e.resetInputState&&e.resetInputState(...m)),t[6]||(t[6]=Et(nt(m=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=Et(nt(m=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=Et((...m)=>e.handleKeydownEscape&&e.handleKeydownEscape(...m),["esc"])),t[9]||(t[9]=Et(nt((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[10]||(t[10]=Et((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["delete"])),t[11]||(t[11]=Et(m=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionupdate:t[13]||(t[13]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionend:t[14]||(t[14]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onInput:t[15]||(t[15]=(...m)=>e.debouncedQueryChange&&e.debouncedQueryChange(...m))},null,46,pL)),[[Cu,e.query]]):de("v-if",!0)],6)):de("v-if",!0),Z(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=m=>e.selectedLabel=m),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:P([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Et(nt(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Et(nt(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Et(nt(e.selectOption,["stop","prevent"]),["enter"]),Et(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Et(m=>e.visible=!1,["tab"]))]},Io({suffix:se(()=>[e.iconComponent&&!e.showClose?(N(),fe(u,{key:0,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:se(()=>[(N(),fe(St(e.iconComponent)))]),_:1},8,["class"])):de("v-if",!0),e.showClose&&e.clearIcon?(N(),fe(u,{key:1,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:se(()=>[(N(),fe(St(e.clearIcon)))]),_:1},8,["class","onClick"])):de("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:se(()=>[te("div",hL,[ye(e.$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:se(()=>[Z(h,null,{default:se(()=>[lt(Z(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:P([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:se(()=>[e.showNewOption?(N(),fe(f,{key:0,value:e.query,created:!0},null,8,["value"])):de("v-if",!0),ye(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[xt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(N(),U(Qe,{key:0},[e.$slots.empty?ye(e.$slots,"empty",{key:0}):(N(),U("p",{key:1,class:P(e.nsSelect.be("dropdown","empty"))},Ne(e.emptyText),3))],64)):de("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var mL=Ie(fL,[["render",vL],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const gL=oe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=be("select"),o=F(!0),n=yt(),r=F([]);gt(Jm,Rt({...tn(e)}));const s=Ue(Us);ht(()=>{r.value=l(n.subTree)});const l=u=>{const c=[];return Array.isArray(u.children)&&u.children.forEach(f=>{var d;f.type&&f.type.name==="ElOption"&&f.component&&f.component.proxy?c.push(f.component.proxy):(d=f.children)!=null&&d.length&&c.push(...l(f))}),c},{groupQueryChange:i}=Pr(s);return ke(i,()=>{o.value=r.value.some(u=>u.visible===!0)},{flush:"post"}),{visible:o,ns:t}}});function yL(e,t,o,n,r,s){return lt((N(),U("ul",{class:P(e.ns.be("group","wrap"))},[te("li",{class:P(e.ns.be("group","title"))},Ne(e.label),3),te("li",null,[te("ul",{class:P(e.ns.b("group"))},[ye(e.$slots,"default")],2)])],2)),[[xt,e.visible]])}var Qm=Ie(gL,[["render",yL],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const lr=dt(mL,{Option:mc,OptionGroup:Qm}),qa=Ut(mc),bL=Ut(Qm),gc=()=>Ue(Kh,{}),wL=Re({pageSize:{type:Number,required:!0},pageSizes:{type:ce(Array),default:()=>_t([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:dr}}),CL=oe({name:"ElPaginationSizes"}),SL=oe({...CL,props:wL,emits:["page-size-change"],setup(e,{emit:t}){const o=e,{t:n}=$t(),r=be("pagination"),s=gc(),l=F(o.pageSize);ke(()=>o.pageSizes,(c,f)=>{if(!Dn(c,f)&&Array.isArray(c)){const d=c.includes(o.pageSize)?o.pageSize:o.pageSizes[0];t("page-size-change",d)}}),ke(()=>o.pageSize,c=>{l.value=c});const i=x(()=>o.pageSizes);function u(c){var f;c!==l.value&&(l.value=c,(f=s.handleSizeChange)==null||f.call(s,Number(c)))}return(c,f)=>(N(),U("span",{class:P(a(r).e("sizes"))},[Z(a(lr),{"model-value":l.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,"validate-event":!1,onChange:u},{default:se(()=>[(N(!0),U(Qe,null,bt(a(i),d=>(N(),fe(a(qa),{key:d,value:d,label:d+a(n)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var kL=Ie(SL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const EL=Re({size:{type:String,values:dr}}),$L=["disabled"],TL=oe({name:"ElPaginationJumper"}),OL=oe({...TL,props:EL,setup(e){const{t}=$t(),o=be("pagination"),{pageCount:n,disabled:r,currentPage:s,changeEvent:l}=gc(),i=F(),u=x(()=>{var d;return(d=i.value)!=null?d:s==null?void 0:s.value});function c(d){i.value=+d}function f(d){d=Math.trunc(+d),l==null||l(+d),i.value=void 0}return(d,h)=>(N(),U("span",{class:P(a(o).e("jump")),disabled:a(r)},[te("span",{class:P([a(o).e("goto")])},Ne(a(t)("el.pagination.goto")),3),Z(a(bn),{size:d.size,class:P([a(o).e("editor"),a(o).is("in-pagination")]),min:1,max:a(n),disabled:a(r),"model-value":a(u),"validate-event":!1,type:"number","onUpdate:modelValue":c,onChange:f},null,8,["size","class","max","disabled","model-value"]),te("span",{class:P([a(o).e("classifier")])},Ne(a(t)("el.pagination.pageClassifier")),3)],10,$L))}});var xL=Ie(OL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const IL=Re({total:{type:Number,default:1e3}}),ML=["disabled"],NL=oe({name:"ElPaginationTotal"}),PL=oe({...NL,props:IL,setup(e){const{t}=$t(),o=be("pagination"),{disabled:n}=gc();return(r,s)=>(N(),U("span",{class:P(a(o).e("total")),disabled:a(n)},Ne(a(t)("el.pagination.total",{total:r.total})),11,ML))}});var RL=Ie(PL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const AL=Re({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),DL=["onKeyup"],LL=["aria-current","tabindex"],BL=["tabindex"],zL=["aria-current","tabindex"],VL=["tabindex"],FL=["aria-current","tabindex"],HL=oe({name:"ElPaginationPager"}),WL=oe({...HL,props:AL,emits:["change"],setup(e,{emit:t}){const o=e,n=be("pager"),r=be("icon"),s=F(!1),l=F(!1),i=F(!1),u=F(!1),c=F(!1),f=F(!1),d=x(()=>{const C=o.pagerCount,k=(C-1)/2,w=Number(o.currentPage),E=Number(o.pageCount);let T=!1,$=!1;E>C&&(w>C-k&&(T=!0),wo.disabled?-1:0);Xn(()=>{const C=(o.pagerCount-1)/2;s.value=!1,l.value=!1,o.pageCount>o.pagerCount&&(o.currentPage>o.pagerCount-C&&(s.value=!0),o.currentPageE&&(w=E)),w!==T&&t("change",w)}return(C,k)=>(N(),U("ul",{class:P(a(n).b()),onClick:b,onKeyup:Et(g,["enter"])},[C.pageCount>0?(N(),U("li",{key:0,class:P([[a(n).is("active",C.currentPage===1),a(n).is("disabled",C.disabled)],"number"]),"aria-current":C.currentPage===1,tabindex:a(h)}," 1 ",10,LL)):de("v-if",!0),s.value?(N(),U("li",{key:1,class:P(["more","btn-quickprev",a(r).b(),a(n).is("disabled",C.disabled)]),tabindex:a(h),onMouseenter:k[0]||(k[0]=w=>v(!0)),onMouseleave:k[1]||(k[1]=w=>i.value=!1),onFocus:k[2]||(k[2]=w=>m(!0)),onBlur:k[3]||(k[3]=w=>c.value=!1)},[(i.value||c.value)&&!C.disabled?(N(),fe(a(Ar),{key:0})):(N(),fe(a(Td),{key:1}))],42,BL)):de("v-if",!0),(N(!0),U(Qe,null,bt(a(d),w=>(N(),U("li",{key:w,class:P([[a(n).is("active",C.currentPage===w),a(n).is("disabled",C.disabled)],"number"]),"aria-current":C.currentPage===w,tabindex:a(h)},Ne(w),11,zL))),128)),l.value?(N(),U("li",{key:2,class:P(["more","btn-quicknext",a(r).b(),a(n).is("disabled",C.disabled)]),tabindex:a(h),onMouseenter:k[4]||(k[4]=w=>v()),onMouseleave:k[5]||(k[5]=w=>u.value=!1),onFocus:k[6]||(k[6]=w=>m()),onBlur:k[7]||(k[7]=w=>f.value=!1)},[(u.value||f.value)&&!C.disabled?(N(),fe(a(Dr),{key:0})):(N(),fe(a(Td),{key:1}))],42,VL)):de("v-if",!0),C.pageCount>1?(N(),U("li",{key:3,class:P([[a(n).is("active",C.currentPage===C.pageCount),a(n).is("disabled",C.disabled)],"number"]),"aria-current":C.currentPage===C.pageCount,tabindex:a(h)},Ne(C.pageCount),11,FL)):de("v-if",!0)],42,DL))}});var KL=Ie(WL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const yn=e=>typeof e!="number",_L=Re({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ce(Array),default:()=>_t([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:jt,default:()=>Mo},nextText:{type:String,default:""},nextIcon:{type:jt,default:()=>wn},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),jL={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},ap="ElPagination";var YL=oe({name:ap,props:_L,emits:jL,setup(e,{emit:t,slots:o}){const{t:n}=$t(),r=be("pagination"),s=yt().vnode.props||{},l="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,i="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,u=x(()=>{if(yn(e.total)&&yn(e.pageCount)||!yn(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(yn(e.pageCount)){if(!yn(e.total)&&!yn(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),c=F(yn(e.defaultPageSize)?10:e.defaultPageSize),f=F(yn(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=x({get(){return yn(e.pageSize)?c.value:e.pageSize},set(w){yn(e.pageSize)&&(c.value=w),i&&(t("update:page-size",w),t("size-change",w))}}),h=x(()=>{let w=0;return yn(e.pageCount)?yn(e.total)||(w=Math.max(1,Math.ceil(e.total/d.value))):w=e.pageCount,w}),v=x({get(){return yn(e.currentPage)?f.value:e.currentPage},set(w){let E=w;w<1?E=1:w>h.value&&(E=h.value),yn(e.currentPage)&&(f.value=E),l&&(t("update:current-page",E),t("current-change",E))}});ke(h,w=>{v.value>w&&(v.value=w)});function m(w){v.value=w}function g(w){d.value=w;const E=h.value;v.value>E&&(v.value=E)}function b(){e.disabled||(v.value-=1,t("prev-click",v.value))}function C(){e.disabled||(v.value+=1,t("next-click",v.value))}function k(w,E){w&&(w.props||(w.props={}),w.props.class=[w.props.class,E].join(" "))}return gt(Kh,{pageCount:h,disabled:x(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:g}),()=>{var w,E;if(!u.value)return on(ap,n("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const T=[],$=[],A=Ke("div",{class:r.e("rightwrapper")},$),R={prev:Ke(ZD,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:Ke(xL,{size:e.small?"small":"default"}),pager:Ke(KL,{currentPage:v.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:Ke(oL,{disabled:e.disabled,currentPage:v.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:C}),sizes:Ke(kL,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(E=(w=o==null?void 0:o.default)==null?void 0:w.call(o))!=null?E:null,total:Ke(RL,{total:yn(e.total)?0:e.total})},M=e.layout.split(",").map(_=>_.trim());let I=!1;return M.forEach(_=>{if(_==="->"){I=!0;return}I?$.push(R[_]):T.push(R[_])}),k(T[0],r.is("first")),k(T[T.length-1],r.is("last")),I&&$.length>0&&(k($[0],r.is("first")),k($[$.length-1],r.is("last")),T.push(A)),Ke("div",{role:"pagination","aria-label":"pagination",class:[r.b(),r.is("background",e.background),{[r.m("small")]:e.small}]},T)}}});const UL=dt(YL),GL=Re({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Md,default:"primary"},cancelButtonType:{type:String,values:Md,default:"text"},icon:{type:jt,default:()=>L0},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:ce(Function)},onCancel:{type:ce(Function)},teleported:ln.teleported,persistent:ln.persistent,width:{type:[String,Number],default:150}}),qL=oe({name:"ElPopconfirm"}),XL=oe({...qL,props:GL,setup(e){const t=e,{t:o}=$t(),n=be("popconfirm"),r=F(),s=()=>{var d,h;(h=(d=r.value)==null?void 0:d.onClose)==null||h.call(d)},l=x(()=>({width:un(t.width)})),i=d=>{var h;(h=t.onConfirm)==null||h.call(t,d),s()},u=d=>{var h;(h=t.onCancel)==null||h.call(t,d),s()},c=x(()=>t.confirmButtonText||o("el.popconfirm.confirmButtonText")),f=x(()=>t.cancelButtonText||o("el.popconfirm.cancelButtonText"));return(d,h)=>(N(),fe(a(xn),mt({ref_key:"tooltipRef",ref:r,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${a(n).namespace.value}-popover`,"popper-style":a(l),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:se(()=>[te("div",{class:P(a(n).b())},[te("div",{class:P(a(n).e("main"))},[!d.hideIcon&&d.icon?(N(),fe(a(_e),{key:0,class:P(a(n).e("icon")),style:je({color:d.iconColor})},{default:se(()=>[(N(),fe(St(d.icon)))]),_:1},8,["class","style"])):de("v-if",!0),It(" "+Ne(d.title),1)],2),te("div",{class:P(a(n).e("action"))},[Z(a(mn),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:se(()=>[It(Ne(a(f)),1)]),_:1},8,["type","text"]),Z(a(mn),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:i},{default:se(()=>[It(Ne(a(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:se(()=>[d.$slots.reference?ye(d.$slots,"reference",{key:0}):de("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var ZL=Ie(XL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const JL=dt(ZL),QL=Re({trigger:Ts.trigger,placement:Ia.placement,disabled:Ts.disabled,visible:ln.visible,transition:ln.transition,popperOptions:Ia.popperOptions,tabindex:Ia.tabindex,content:ln.content,popperStyle:ln.popperStyle,popperClass:ln.popperClass,enterable:{...ln.enterable,default:!0},effect:{...ln.effect,default:"light"},teleported:ln.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}}),eB={"update:visible":e=>en(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},tB="onUpdate:visible",nB=oe({name:"ElPopover"}),oB=oe({...nB,props:QL,emits:eB,setup(e,{expose:t,emit:o}){const n=e,r=x(()=>n[tB]),s=be("popover"),l=F(),i=x(()=>{var b;return(b=a(l))==null?void 0:b.popperRef}),u=x(()=>[{width:un(n.width)},n.popperStyle]),c=x(()=>[s.b(),n.popperClass,{[s.m("plain")]:!!n.content}]),f=x(()=>n.transition===`${s.namespace.value}-fade-in-linear`),d=()=>{var b;(b=l.value)==null||b.hide()},h=()=>{o("before-enter")},v=()=>{o("before-leave")},m=()=>{o("after-enter")},g=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:i,hide:d}),(b,C)=>(N(),fe(a(xn),mt({ref_key:"tooltipRef",ref:l},b.$attrs,{trigger:b.trigger,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":a(c),"popper-style":a(u),teleported:b.teleported,persistent:b.persistent,"gpu-acceleration":a(f),"onUpdate:visible":a(r),onBeforeShow:h,onBeforeHide:v,onShow:m,onHide:g}),{content:se(()=>[b.title?(N(),U("div",{key:0,class:P(a(s).e("title")),role:"title"},Ne(b.title),3)):de("v-if",!0),ye(b.$slots,"default",{},()=>[It(Ne(b.content),1)])]),default:se(()=>[b.$slots.reference?ye(b.$slots,"reference",{key:0}):de("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 rB=Ie(oB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const lp=(e,t)=>{const o=t.arg||t.value,n=o==null?void 0:o.popperRef;n&&(n.triggerRef=e)};var sB={mounted(e,t){lp(e,t)},updated(e,t){lp(e,t)}};const aB="popover",eg=uw(sB,aB),lB=dt(rB,{directive:eg}),iB=Re({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=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:ce(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ce([String,Array,Function]),default:""},format:{type:ce(Function),default:e=>`${e}%`}}),uB=["aria-valuenow"],cB={viewBox:"0 0 100 100"},dB=["d","stroke","stroke-width"],fB=["d","stroke","opacity","stroke-linecap","stroke-width"],pB={key:0},hB=oe({name:"ElProgress"}),vB=oe({...hB,props:iB,setup(e){const t=e,o={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=be("progress"),r=x(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:k(t.percentage)})),s=x(()=>(t.strokeWidth/t.width*100).toFixed(1)),l=x(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(s.value)/2}`,10):0),i=x(()=>{const w=l.value,E=t.type==="dashboard";return` + M 50 50 + m 0 ${E?"":"-"}${w} + a ${w} ${w} 0 1 1 0 ${E?"-":""}${w*2} + a ${w} ${w} 0 1 1 0 ${E?"":"-"}${w*2} + `}),u=x(()=>2*Math.PI*l.value),c=x(()=>t.type==="dashboard"?.75:1),f=x(()=>`${-1*u.value*(1-c.value)/2}px`),d=x(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:f.value})),h=x(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=x(()=>{let w;return t.color?w=k(t.percentage):w=o[t.status]||o.default,w}),m=x(()=>t.status==="warning"?Xp:t.type==="line"?t.status==="success"?Zp:qr:t.status==="success"?Vs:mo),g=x(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),b=x(()=>t.format(t.percentage));function C(w){const E=100/w.length;return w.map(($,A)=>kt($)?{color:$,percentage:(A+1)*E}:$).sort(($,A)=>$.percentage-A.percentage)}const k=w=>{var E;const{color:T}=t;if(At(T))return T(w);if(kt(T))return T;{const $=C(T);for(const A of $)if(A.percentage>w)return A.color;return(E=$[$.length-1])==null?void 0:E.color}};return(w,E)=>(N(),U("div",{class:P([a(n).b(),a(n).m(w.type),a(n).is(w.status),{[a(n).m("without-text")]:!w.showText,[a(n).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(N(),U("div",{key:0,class:P(a(n).b("bar"))},[te("div",{class:P(a(n).be("bar","outer")),style:je({height:`${w.strokeWidth}px`})},[te("div",{class:P([a(n).be("bar","inner"),{[a(n).bem("bar","inner","indeterminate")]:w.indeterminate}]),style:je(a(r))},[(w.showText||w.$slots.default)&&w.textInside?(N(),U("div",{key:0,class:P(a(n).be("bar","innerText"))},[ye(w.$slots,"default",{percentage:w.percentage},()=>[te("span",null,Ne(a(b)),1)])],2)):de("v-if",!0)],6)],6)],2)):(N(),U("div",{key:1,class:P(a(n).b("circle")),style:je({height:`${w.width}px`,width:`${w.width}px`})},[(N(),U("svg",cB,[te("path",{class:P(a(n).be("circle","track")),d:a(i),stroke:`var(${a(n).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":a(s),fill:"none",style:je(a(d))},null,14,dB),te("path",{class:P(a(n).be("circle","path")),d:a(i),stroke:a(v),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":a(s),style:je(a(h))},null,14,fB)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(N(),U("div",{key:2,class:P(a(n).e("text")),style:je({fontSize:`${a(g)}px`})},[ye(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(N(),fe(a(_e),{key:1},{default:se(()=>[(N(),fe(St(a(m))))]),_:1})):(N(),U("span",pB,Ne(a(b)),1))])],6)):de("v-if",!0)],10,uB))}});var mB=Ie(vB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const tg=dt(mB),gB=Re({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:ce([Array,Object]),default:()=>_t(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ce([Array,Object]),default:()=>[aa,aa,aa]},voidIcon:{type:jt,default:()=>B0},disabledVoidIcon:{type:jt,default:()=>aa},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:ce(Array),default:()=>_t(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:Fs},label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),yB={[Lt]:e=>it(e),[ut]:e=>it(e)},bB=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],wB=["onMousemove","onClick"],CB=oe({name:"ElRate"}),SB=oe({...CB,props:gB,emits:yB,setup(e,{expose:t,emit:o}){const n=e;function r(j,D){const V=Q=>qt(Q),B=Object.keys(D).map(Q=>+Q).filter(Q=>{const q=D[Q];return(V(q)?q.excluded:!1)?jQ-q),X=D[B[0]];return V(X)&&X.value||X}const s=Ue(dl,void 0),l=Ue(Ao,void 0),i=dn(),u=be("rate"),{inputId:c,isLabeledByFormItem:f}=fr(n,{formItemContext:l}),d=F(n.modelValue),h=F(-1),v=F(!0),m=x(()=>[u.b(),u.m(i.value)]),g=x(()=>n.disabled||(s==null?void 0:s.disabled)),b=x(()=>u.cssVarBlock({"void-color":n.voidColor,"disabled-void-color":n.disabledVoidColor,"fill-color":E.value})),C=x(()=>{let j="";return n.showScore?j=n.scoreTemplate.replace(/\{\s*value\s*\}/,g.value?`${n.modelValue}`:`${d.value}`):n.showText&&(j=n.texts[Math.ceil(d.value)-1]),j}),k=x(()=>n.modelValue*100-Math.floor(n.modelValue)*100),w=x(()=>ft(n.colors)?{[n.lowThreshold]:n.colors[0],[n.highThreshold]:{value:n.colors[1],excluded:!0},[n.max]:n.colors[2]}:n.colors),E=x(()=>{const j=r(d.value,w.value);return qt(j)?"":j}),T=x(()=>{let j="";return g.value?j=`${k.value}%`:n.allowHalf&&(j="50%"),{color:E.value,width:j}}),$=x(()=>{let j=ft(n.icons)?[...n.icons]:{...n.icons};return j=cs(j),ft(j)?{[n.lowThreshold]:j[0],[n.highThreshold]:{value:j[1],excluded:!0},[n.max]:j[2]}:j}),A=x(()=>r(n.modelValue,$.value)),R=x(()=>g.value?kt(n.disabledVoidIcon)?n.disabledVoidIcon:cs(n.disabledVoidIcon):kt(n.voidIcon)?n.voidIcon:cs(n.voidIcon)),M=x(()=>r(d.value,$.value));function I(j){const D=g.value&&k.value>0&&j-1n.modelValue,V=n.allowHalf&&v.value&&j-.5<=d.value&&j>d.value;return D||V}function _(j){n.clearable&&j===n.modelValue&&(j=0),o(ut,j),n.modelValue!==j&&o("change",j)}function L(j){g.value||(n.allowHalf&&v.value?_(d.value):_(j))}function z(j){if(g.value)return;let D=d.value;const V=j.code;return V===Ye.up||V===Ye.right?(n.allowHalf?D+=.5:D+=1,j.stopPropagation(),j.preventDefault()):(V===Ye.left||V===Ye.down)&&(n.allowHalf?D-=.5:D-=1,j.stopPropagation(),j.preventDefault()),D=D<0?0:D,D=D>n.max?n.max:D,o(ut,D),o("change",D),D}function H(j,D){if(!g.value){if(n.allowHalf){let V=D.target;ho(V,u.e("item"))&&(V=V.querySelector(`.${u.e("icon")}`)),(V.clientWidth===0||ho(V,u.e("decimal")))&&(V=V.parentNode),v.value=D.offsetX*2<=V.clientWidth,d.value=v.value?j-.5:j}else d.value=j;h.value=j}}function W(){g.value||(n.allowHalf&&(v.value=n.modelValue!==Math.floor(n.modelValue)),d.value=n.modelValue,h.value=-1)}return ke(()=>n.modelValue,j=>{d.value=j,v.value=n.modelValue!==Math.floor(n.modelValue)}),n.modelValue||o(ut,0),t({setCurrentValue:H,resetCurrentValue:W}),(j,D)=>{var V;return N(),U("div",{id:a(c),class:P([a(m),a(u).is("disabled",a(g))]),role:"slider","aria-label":a(f)?void 0:j.label||"rating","aria-labelledby":a(f)?(V=a(l))==null?void 0:V.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":a(C)||void 0,"aria-valuemin":"0","aria-valuemax":j.max,tabindex:"0",style:je(a(b)),onKeydown:z},[(N(!0),U(Qe,null,bt(j.max,(B,X)=>(N(),U("span",{key:X,class:P(a(u).e("item")),onMousemove:Q=>H(B,Q),onMouseleave:W,onClick:Q=>L(B)},[Z(a(_e),{class:P([a(u).e("icon"),{hover:h.value===B},a(u).is("active",B<=d.value)])},{default:se(()=>[I(B)?de("v-if",!0):(N(),U(Qe,{key:0},[lt((N(),fe(St(a(M)),null,null,512)),[[xt,B<=d.value]]),lt((N(),fe(St(a(R)),null,null,512)),[[xt,!(B<=d.value)]])],64)),I(B)?(N(),fe(a(_e),{key:1,style:je(a(T)),class:P([a(u).e("icon"),a(u).e("decimal")])},{default:se(()=>[(N(),fe(St(a(A))))]),_:1},8,["style","class"])):de("v-if",!0)]),_:2},1032,["class"])],42,wB))),128)),j.showText||j.showScore?(N(),U("span",{key:0,class:P(a(u).e("text"))},Ne(a(C)),3)):de("v-if",!0)],46,bB)}}});var kB=Ie(SB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const EB=dt(kB),$r={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},ip={[$r.success]:z0,[$r.warning]:Xp,[$r.error]:V0,[$r.info]:F0},$B=Re({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),TB=oe({name:"ElResult"}),OB=oe({...TB,props:$B,setup(e){const t=e,o=be("result"),n=x(()=>{const r=t.icon,s=r&&$r[r]?$r[r]:"icon-info",l=ip[s]||ip["icon-info"];return{class:s,component:l}});return(r,s)=>(N(),U("div",{class:P(a(o).b())},[te("div",{class:P(a(o).e("icon"))},[ye(r.$slots,"icon",{},()=>[a(n).component?(N(),fe(St(a(n).component),{key:0,class:P(a(n).class)},null,8,["class"])):de("v-if",!0)])],2),r.title||r.$slots.title?(N(),U("div",{key:0,class:P(a(o).e("title"))},[ye(r.$slots,"title",{},()=>[te("p",null,Ne(r.title),1)])],2)):de("v-if",!0),r.subTitle||r.$slots["sub-title"]?(N(),U("div",{key:1,class:P(a(o).e("subtitle"))},[ye(r.$slots,"sub-title",{},()=>[te("p",null,Ne(r.subTitle),1)])],2)):de("v-if",!0),r.$slots.extra?(N(),U("div",{key:2,class:P(a(o).e("extra"))},[ye(r.$slots,"extra")],2)):de("v-if",!0)],2))}});var xB=Ie(OB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const IB=dt(xB),MB=["start","center","end","space-around","space-between","space-evenly"],NB=["top","middle","bottom"],PB=Re({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:MB,default:"start"},align:{type:String,values:NB,default:"top"}}),RB=oe({name:"ElRow"}),AB=oe({...RB,props:PB,setup(e){const t=e,o=be("row"),n=x(()=>t.gutter);gt(jh,{gutter:n});const r=x(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l}),s=x(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,t.align!=="top")]);return(l,i)=>(N(),fe(St(l.tag),{class:P(a(s)),style:je(a(r))},{default:se(()=>[ye(l.$slots,"default")]),_:3},8,["class","style"]))}});var DB=Ie(AB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const LB=dt(DB);var up=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function BB(e,t){return!!(e===t||up(e)&&up(t))}function zB(e,t){if(e.length!==t.length)return!1;for(var o=0;o{const t=yt().proxy.$props;return x(()=>{const o=(n,r,s)=>({});return t.perfMode?cw(o):VB(o)})},Ji=50,Xa="itemRendered",Za="scroll",Tr="forward",Ja="backward",Hn="auto",Tl="smart",Ms="start",eo="center",Ns="end",jr="horizontal",yc="vertical",FB="ltr",Mr="rtl",Ps="negative",bc="positive-ascending",wc="positive-descending",HB={[jr]:"left",[yc]:"top"},WB=20,KB={[jr]:"deltaX",[yc]:"deltaY"},_B=({atEndEdge:e,atStartEdge:t,layout:o},n)=>{let r,s=0;const l=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:l,onWheel:u=>{_u(r);const c=u[KB[o.value]];l(s)&&l(s+c)||(s+=c,Wu()||u.preventDefault(),r=Ku(()=>{n(s),s=0}))}}},Qi=wo({type:ce([Number,Function]),required:!0}),eu=wo({type:Number}),tu=wo({type:Number,default:2}),jB=wo({type:String,values:["ltr","rtl"],default:"ltr"}),nu=wo({type:Number,default:0}),Qa=wo({type:Number,required:!0}),og=wo({type:String,values:["horizontal","vertical"],default:yc}),rg=Re({className:{type:String,default:""},containerElement:{type:ce([String,Object]),default:"div"},data:{type:ce(Array),default:()=>_t([])},direction:jB,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ce([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),sg=Re({cache:tu,estimatedItemSize:eu,layout:og,initScrollOffset:nu,total:Qa,itemSize:Qi,...rg}),ou={type:Number,default:6},ag={type:Number,default:0},lg={type:Number,default:2},or=Re({columnCache:tu,columnWidth:Qi,estimatedColumnWidth:eu,estimatedRowHeight:eu,initScrollLeft:nu,initScrollTop:nu,itemKey:{type:ce(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:tu,rowHeight:Qi,totalColumn:Qa,totalRow:Qa,hScrollbarSize:ou,vScrollbarSize:ou,scrollbarStartGap:ag,scrollbarEndGap:lg,...rg}),ig=Re({alwaysOn:Boolean,class:String,layout:og,total:Qa,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ou,startGap:ag,endGap:lg,visible:Boolean}),Jo=(e,t)=>ee===FB||e===Mr||e===jr,cp=e=>e===Mr;let br=null;function el(e=!1){if(br===null||e){const t=document.createElement("div"),o=t.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";const n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?br=wc:(t.scrollLeft=1,t.scrollLeft===0?br=Ps:br=bc),document.body.removeChild(t),br}return br}function YB({move:e,size:t,bar:o},n){const r={},s=`translate${o.axis}(${e}px)`;return r[o.size]=t,r.transform=s,r.msTransform=s,r.webkitTransform=s,n==="horizontal"?r.height="100%":r.width="100%",r}const ru=oe({name:"ElVirtualScrollBar",props:ig,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const o=x(()=>e.startGap+e.endGap),n=be("virtual-scrollbar"),r=be("scrollbar"),s=F(),l=F();let i=null,u=null;const c=Rt({isDragging:!1,traveled:0}),f=x(()=>iv[e.layout]),d=x(()=>e.clientSize-a(o)),h=x(()=>({position:"absolute",width:`${jr===e.layout?d.value:e.scrollbarSize}px`,height:`${jr===e.layout?e.scrollbarSize:d.value}px`,[HB[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),v=x(()=>{const $=e.ratio,A=e.clientSize;if($>=100)return Number.POSITIVE_INFINITY;if($>=50)return $*A/100;const R=A/3;return Math.floor(Math.min(Math.max($*A,WB),R))}),m=x(()=>{if(!Number.isFinite(v.value))return{display:"none"};const $=`${v.value}px`;return YB({bar:f.value,size:$,move:c.traveled},e.layout)}),g=x(()=>Math.floor(e.clientSize-v.value-a(o))),b=()=>{window.addEventListener("mousemove",E),window.addEventListener("mouseup",w);const $=a(l);!$||(u=document.onselectstart,document.onselectstart=()=>!1,$.addEventListener("touchmove",E),$.addEventListener("touchend",w))},C=()=>{window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const $=a(l);!$||($.removeEventListener("touchmove",E),$.removeEventListener("touchend",w))},k=$=>{$.stopImmediatePropagation(),!($.ctrlKey||[1,2].includes($.button))&&(c.isDragging=!0,c[f.value.axis]=$.currentTarget[f.value.offset]-($[f.value.client]-$.currentTarget.getBoundingClientRect()[f.value.direction]),t("start-move"),b())},w=()=>{c.isDragging=!1,c[f.value.axis]=0,t("stop-move"),C()},E=$=>{const{isDragging:A}=c;if(!A||!l.value||!s.value)return;const R=c[f.value.axis];if(!R)return;_u(i);const M=(s.value.getBoundingClientRect()[f.value.direction]-$[f.value.client])*-1,I=l.value[f.value.offset]-R,_=M-I;i=Ku(()=>{c.traveled=Math.max(e.startGap,Math.min(_,g.value)),t("scroll",_,g.value)})},T=$=>{const A=Math.abs($.target.getBoundingClientRect()[f.value.direction]-$[f.value.client]),R=l.value[f.value.offset]/2,M=A-R;c.traveled=Math.max(0,Math.min(M,g.value)),t("scroll",M,g.value)};return ke(()=>e.scrollFrom,$=>{c.isDragging||(c.traveled=Math.ceil($*g.value))}),sn(()=>{C()}),()=>Ke("div",{role:"presentation",ref:s,class:[n.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:nt(T,["stop","prevent"]),onTouchstartPrevent:k},Ke("div",{ref:l,class:r.e("thumb"),style:m.value,onMousedown:k},[]))}}),ug=({name:e,getOffset:t,getItemSize:o,getItemOffset:n,getEstimatedTotalSize:r,getStartIndexForOffset:s,getStopIndexForStartIndex:l,initCache:i,clearCache:u,validateProps:c})=>oe({name:e??"ElVirtualList",props:sg,emits:[Xa,Za],setup(f,{emit:d,expose:h}){c(f);const v=yt(),m=be("vl"),g=F(i(f,v)),b=ng(),C=F(),k=F(),w=F(),E=F({isScrolling:!1,scrollDir:"forward",scrollOffset:it(f.initScrollOffset)?f.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:f.scrollbarAlwaysOn}),T=x(()=>{const{total:ee,cache:ve}=f,{isScrolling:me,scrollDir:Ce,scrollOffset:le}=a(E);if(ee===0)return[0,0,0,0];const re=s(f,le,a(g)),ie=l(f,re,le,a(g)),pe=!me||Ce===Ja?Math.max(1,ve):1,Ae=!me||Ce===Tr?Math.max(1,ve):1;return[Math.max(0,re-pe),Math.max(0,Math.min(ee-1,ie+Ae)),re,ie]}),$=x(()=>r(f,a(g))),A=x(()=>Rs(f.layout)),R=x(()=>[{position:"relative",[`overflow-${A.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:f.direction,height:it(f.height)?`${f.height}px`:f.height,width:it(f.width)?`${f.width}px`:f.width},f.style]),M=x(()=>{const ee=a($),ve=a(A);return{height:ve?"100%":`${ee}px`,pointerEvents:a(E).isScrolling?"none":void 0,width:ve?`${ee}px`:"100%"}}),I=x(()=>A.value?f.width:f.height),{onWheel:_}=_B({atStartEdge:x(()=>E.value.scrollOffset<=0),atEndEdge:x(()=>E.value.scrollOffset>=$.value),layout:x(()=>f.layout)},ee=>{var ve,me;(me=(ve=w.value).onMouseUp)==null||me.call(ve),D(Math.min(E.value.scrollOffset+ee,$.value-I.value))}),L=()=>{const{total:ee}=f;if(ee>0){const[le,re,ie,pe]=a(T);d(Xa,le,re,ie,pe)}const{scrollDir:ve,scrollOffset:me,updateRequested:Ce}=a(E);d(Za,ve,me,Ce)},z=ee=>{const{clientHeight:ve,scrollHeight:me,scrollTop:Ce}=ee.currentTarget,le=a(E);if(le.scrollOffset===Ce)return;const re=Math.max(0,Math.min(Ce,me-ve));E.value={...le,isScrolling:!0,scrollDir:Jo(le.scrollOffset,re),scrollOffset:re,updateRequested:!1},Ge(X)},H=ee=>{const{clientWidth:ve,scrollLeft:me,scrollWidth:Ce}=ee.currentTarget,le=a(E);if(le.scrollOffset===me)return;const{direction:re}=f;let ie=me;if(re===Mr)switch(el()){case Ps:{ie=-me;break}case wc:{ie=Ce-ve-me;break}}ie=Math.max(0,Math.min(ie,Ce-ve)),E.value={...le,isScrolling:!0,scrollDir:Jo(le.scrollOffset,ie),scrollOffset:ie,updateRequested:!1},Ge(X)},W=ee=>{a(A)?H(ee):z(ee),L()},j=(ee,ve)=>{const me=($.value-I.value)/ve*ee;D(Math.min($.value-I.value,me))},D=ee=>{ee=Math.max(ee,0),ee!==a(E).scrollOffset&&(E.value={...a(E),scrollOffset:ee,scrollDir:Jo(a(E).scrollOffset,ee),updateRequested:!0},Ge(X))},V=(ee,ve=Hn)=>{const{scrollOffset:me}=a(E);ee=Math.max(0,Math.min(ee,f.total-1)),D(t(f,ee,ve,me,a(g)))},B=ee=>{const{direction:ve,itemSize:me,layout:Ce}=f,le=b.value(u&&me,u&&Ce,u&&ve);let re;if(_n(le,String(ee)))re=le[ee];else{const ie=n(f,ee,a(g)),pe=o(f,ee,a(g)),Ae=a(A),Le=ve===Mr,Xe=Ae?ie:0;le[ee]=re={position:"absolute",left:Le?void 0:`${Xe}px`,right:Le?`${Xe}px`:void 0,top:Ae?0:`${ie}px`,height:Ae?"100%":`${pe}px`,width:Ae?`${pe}px`:"100%"}}return re},X=()=>{E.value.isScrolling=!1,Ge(()=>{b.value(-1,null,null)})},Q=()=>{const ee=C.value;ee&&(ee.scrollTop=0)};ht(()=>{if(!Dt)return;const{initScrollOffset:ee}=f,ve=a(C);it(ee)&&ve&&(a(A)?ve.scrollLeft=ee:ve.scrollTop=ee),L()}),ur(()=>{const{direction:ee,layout:ve}=f,{scrollOffset:me,updateRequested:Ce}=a(E),le=a(C);if(Ce&&le)if(ve===jr)if(ee===Mr)switch(el()){case Ps:{le.scrollLeft=-me;break}case bc:{le.scrollLeft=me;break}default:{const{clientWidth:re,scrollWidth:ie}=le;le.scrollLeft=ie-re-me;break}}else le.scrollLeft=me;else le.scrollTop=me});const q={ns:m,clientSize:I,estimatedTotalSize:$,windowStyle:R,windowRef:C,innerRef:k,innerStyle:M,itemsToRender:T,scrollbarRef:w,states:E,getItemStyle:B,onScroll:W,onScrollbarScroll:j,onWheel:_,scrollTo:D,scrollToItem:V,resetScrollTop:Q};return h({windowRef:C,innerRef:k,getItemStyleCache:b,scrollTo:D,scrollToItem:V,resetScrollTop:Q,states:E}),q},render(f){var d;const{$slots:h,className:v,clientSize:m,containerElement:g,data:b,getItemStyle:C,innerElement:k,itemsToRender:w,innerStyle:E,layout:T,total:$,onScroll:A,onScrollbarScroll:R,onWheel:M,states:I,useIsScrolling:_,windowStyle:L,ns:z}=f,[H,W]=w,j=St(g),D=St(k),V=[];if($>0)for(let q=H;q<=W;q++)V.push((d=h.default)==null?void 0:d.call(h,{data:b,key:q,index:q,isScrolling:_?I.isScrolling:void 0,style:C(q)}));const B=[Ke(D,{style:E,ref:"innerRef"},kt(D)?V:{default:()=>V})],X=Ke(ru,{ref:"scrollbarRef",clientSize:m,layout:T,onScroll:R,ratio:m*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-m),total:$}),Q=Ke(j,{class:[z.e("window"),v],style:L,onScroll:A,onWheel:M,ref:"windowRef",key:0},kt(j)?[B]:{default:()=>[B]});return Ke("div",{key:0,class:[z.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[Q,X])}}),cg=ug({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:o,layout:n,width:r},s,l,i)=>{const u=Rs(n)?r:e,c=Math.max(0,t*o-u),f=Math.min(c,s*o),d=Math.max(0,(s+1)*o-u);switch(l===Tl&&(i>=d-u&&i<=f+u?l=Hn:l=eo),l){case Ms:return f;case Ns:return d;case eo:{const h=Math.round(d+(f-d)/2);return hc+Math.floor(u/2)?c:h}case Hn:default:return i>=d&&i<=f?i:iMath.max(0,Math.min(e-1,Math.floor(o/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:o,layout:n,width:r},s,l)=>{const i=s*o,u=Rs(n)?r:e,c=Math.ceil((u+l-i)/o);return Math.max(0,Math.min(t-1,s+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Or=(e,t,o)=>{const{itemSize:n}=e,{items:r,lastVisitedIndex:s}=o;if(t>s){let l=0;if(s>=0){const i=r[s];l=i.offset+i.size}for(let i=s+1;i<=t;i++){const u=n(i);r[i]={offset:l,size:u},l+=u}o.lastVisitedIndex=t}return r[t]},UB=(e,t,o)=>{const{items:n,lastVisitedIndex:r}=t;return(r>0?n[r].offset:0)>=o?dg(e,t,0,r,o):GB(e,t,Math.max(0,r),o)},dg=(e,t,o,n,r)=>{for(;o<=n;){const s=o+Math.floor((n-o)/2),l=Or(e,s,t).offset;if(l===r)return s;lr&&(n=s-1)}return Math.max(0,o-1)},GB=(e,t,o,n)=>{const{total:r}=e;let s=1;for(;o{let r=0;if(n>=e&&(n=e-1),n>=0){const i=t[n];r=i.offset+i.size}const l=(e-n-1)*o;return r+l},qB=ug({name:"ElDynamicSizeList",getItemOffset:(e,t,o)=>Or(e,t,o).offset,getItemSize:(e,t,{items:o})=>o[t].size,getEstimatedTotalSize:dp,getOffset:(e,t,o,n,r)=>{const{height:s,layout:l,width:i}=e,u=Rs(l)?i:s,c=Or(e,t,r),f=dp(e,r),d=Math.max(0,Math.min(f-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(o===Tl&&(n>=h-u&&n<=d+u?o=Hn:o=eo),o){case Ms:return d;case Ns:return h;case eo:return Math.round(h+(d-h)/2);case Hn:default:return n>=h&&n<=d?n:nUB(e,o,t),getStopIndexForStartIndex:(e,t,o,n)=>{const{height:r,total:s,layout:l,width:i}=e,u=Rs(l)?i:r,c=Or(e,t,n),f=o+u;let d=c.offset+c.size,h=t;for(;h{var s,l;o.lastVisitedIndex=Math.min(o.lastVisitedIndex,n-1),(s=t.exposed)==null||s.getItemStyleCache(-1),r&&((l=t.proxy)==null||l.$forceUpdate())},o},clearCache:!1,validateProps:({itemSize:e})=>{}}),XB=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:o,atYStartEdge:n},r)=>{let s=null,l=0,i=0;const u=(f,d)=>{const h=f<0&&t.value||f>0&&e.value,v=d<0&&n.value||d>0&&o.value;return h&&v};return{hasReachedEdge:u,onWheel:f=>{_u(s);let d=f.deltaX,h=f.deltaY;Math.abs(d)>Math.abs(h)?h=0:d=0,f.shiftKey&&h!==0&&(d=h,h=0),!(u(l,i)&&u(l+d,i+h))&&(l+=d,i+=h,Wu()||f.preventDefault(),s=Ku(()=>{r(l,i),l=0,i=0}))}}},fg=({name:e,clearCache:t,getColumnPosition:o,getColumnStartIndexForOffset:n,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:s,getEstimatedTotalWidth:l,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:d,initCache:h,injectToInstance:v,validateProps:m})=>oe({name:e??"ElVirtualList",props:or,emits:[Xa,Za],setup(g,{emit:b,expose:C,slots:k}){const w=be("vl");m(g);const E=yt(),T=F(h(g,E));v==null||v(E,T);const $=F(),A=F(),R=F(),M=F(null),I=F({isScrolling:!1,scrollLeft:it(g.initScrollLeft)?g.initScrollLeft:0,scrollTop:it(g.initScrollTop)?g.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Tr,yAxisScrollDir:Tr}),_=ng(),L=x(()=>Number.parseInt(`${g.height}`,10)),z=x(()=>Number.parseInt(`${g.width}`,10)),H=x(()=>{const{totalColumn:Pe,totalRow:qe,columnCache:ze}=g,{isScrolling:Se,xAxisScrollDir:Oe,scrollLeft:De}=a(I);if(Pe===0||qe===0)return[0,0,0,0];const Je=n(g,De,a(T)),rt=r(g,Je,De,a(T)),st=!Se||Oe===Ja?Math.max(1,ze):1,Ee=!Se||Oe===Tr?Math.max(1,ze):1;return[Math.max(0,Je-st),Math.max(0,Math.min(Pe-1,rt+Ee)),Je,rt]}),W=x(()=>{const{totalColumn:Pe,totalRow:qe,rowCache:ze}=g,{isScrolling:Se,yAxisScrollDir:Oe,scrollTop:De}=a(I);if(Pe===0||qe===0)return[0,0,0,0];const Je=f(g,De,a(T)),rt=d(g,Je,De,a(T)),st=!Se||Oe===Ja?Math.max(1,ze):1,Ee=!Se||Oe===Tr?Math.max(1,ze):1;return[Math.max(0,Je-st),Math.max(0,Math.min(qe-1,rt+Ee)),Je,rt]}),j=x(()=>s(g,a(T))),D=x(()=>l(g,a(T))),V=x(()=>{var Pe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:it(g.height)?`${g.height}px`:g.height,width:it(g.width)?`${g.width}px`:g.width},(Pe=g.style)!=null?Pe:{}]}),B=x(()=>{const Pe=`${a(D)}px`;return{height:`${a(j)}px`,pointerEvents:a(I).isScrolling?"none":void 0,width:Pe}}),X=()=>{const{totalColumn:Pe,totalRow:qe}=g;if(Pe>0&&qe>0){const[rt,st,Ee,vt]=a(H),[pt,ue,Me,We]=a(W);b(Xa,{columnCacheStart:rt,columnCacheEnd:st,rowCacheStart:pt,rowCacheEnd:ue,columnVisibleStart:Ee,columnVisibleEnd:vt,rowVisibleStart:Me,rowVisibleEnd:We})}const{scrollLeft:ze,scrollTop:Se,updateRequested:Oe,xAxisScrollDir:De,yAxisScrollDir:Je}=a(I);b(Za,{xAxisScrollDir:De,scrollLeft:ze,yAxisScrollDir:Je,scrollTop:Se,updateRequested:Oe})},Q=Pe=>{const{clientHeight:qe,clientWidth:ze,scrollHeight:Se,scrollLeft:Oe,scrollTop:De,scrollWidth:Je}=Pe.currentTarget,rt=a(I);if(rt.scrollTop===De&&rt.scrollLeft===Oe)return;let st=Oe;if(cp(g.direction))switch(el()){case Ps:st=-Oe;break;case wc:st=Je-ze-Oe;break}I.value={...rt,isScrolling:!0,scrollLeft:st,scrollTop:Math.max(0,Math.min(De,Se-qe)),updateRequested:!0,xAxisScrollDir:Jo(rt.scrollLeft,st),yAxisScrollDir:Jo(rt.scrollTop,De)},Ge(()=>re()),ie(),X()},q=(Pe,qe)=>{const ze=a(L),Se=(j.value-ze)/qe*Pe;me({scrollTop:Math.min(j.value-ze,Se)})},ee=(Pe,qe)=>{const ze=a(z),Se=(D.value-ze)/qe*Pe;me({scrollLeft:Math.min(D.value-ze,Se)})},{onWheel:ve}=XB({atXStartEdge:x(()=>I.value.scrollLeft<=0),atXEndEdge:x(()=>I.value.scrollLeft>=D.value),atYStartEdge:x(()=>I.value.scrollTop<=0),atYEndEdge:x(()=>I.value.scrollTop>=j.value)},(Pe,qe)=>{var ze,Se,Oe,De;(Se=(ze=A.value)==null?void 0:ze.onMouseUp)==null||Se.call(ze),(De=(Oe=A.value)==null?void 0:Oe.onMouseUp)==null||De.call(Oe);const Je=a(z),rt=a(L);me({scrollLeft:Math.min(I.value.scrollLeft+Pe,D.value-Je),scrollTop:Math.min(I.value.scrollTop+qe,j.value-rt)})}),me=({scrollLeft:Pe=I.value.scrollLeft,scrollTop:qe=I.value.scrollTop})=>{Pe=Math.max(Pe,0),qe=Math.max(qe,0);const ze=a(I);qe===ze.scrollTop&&Pe===ze.scrollLeft||(I.value={...ze,xAxisScrollDir:Jo(ze.scrollLeft,Pe),yAxisScrollDir:Jo(ze.scrollTop,qe),scrollLeft:Pe,scrollTop:qe,updateRequested:!0},Ge(()=>re()),ie(),X())},Ce=(Pe=0,qe=0,ze=Hn)=>{const Se=a(I);qe=Math.max(0,Math.min(qe,g.totalColumn-1)),Pe=Math.max(0,Math.min(Pe,g.totalRow-1));const Oe=Ow(w.namespace.value),De=a(T),Je=s(g,De),rt=l(g,De);me({scrollLeft:i(g,qe,ze,Se.scrollLeft,De,rt>g.width?Oe:0),scrollTop:u(g,Pe,ze,Se.scrollTop,De,Je>g.height?Oe:0)})},le=(Pe,qe)=>{const{columnWidth:ze,direction:Se,rowHeight:Oe}=g,De=_.value(t&&ze,t&&Oe,t&&Se),Je=`${Pe},${qe}`;if(_n(De,Je))return De[Je];{const[,rt]=o(g,qe,a(T)),st=a(T),Ee=cp(Se),[vt,pt]=c(g,Pe,st),[ue]=o(g,qe,st);return De[Je]={position:"absolute",left:Ee?void 0:`${rt}px`,right:Ee?`${rt}px`:void 0,top:`${pt}px`,height:`${vt}px`,width:`${ue}px`},De[Je]}},re=()=>{I.value.isScrolling=!1,Ge(()=>{_.value(-1,null,null)})};ht(()=>{if(!Dt)return;const{initScrollLeft:Pe,initScrollTop:qe}=g,ze=a($);ze&&(it(Pe)&&(ze.scrollLeft=Pe),it(qe)&&(ze.scrollTop=qe)),X()});const ie=()=>{const{direction:Pe}=g,{scrollLeft:qe,scrollTop:ze,updateRequested:Se}=a(I),Oe=a($);if(Se&&Oe){if(Pe===Mr)switch(el()){case Ps:{Oe.scrollLeft=-qe;break}case bc:{Oe.scrollLeft=qe;break}default:{const{clientWidth:De,scrollWidth:Je}=Oe;Oe.scrollLeft=Je-De-qe;break}}else Oe.scrollLeft=Math.max(0,qe);Oe.scrollTop=Math.max(0,ze)}},{resetAfterColumnIndex:pe,resetAfterRowIndex:Ae,resetAfter:Le}=E.proxy;C({windowRef:$,innerRef:M,getItemStyleCache:_,scrollTo:me,scrollToItem:Ce,states:I,resetAfterColumnIndex:pe,resetAfterRowIndex:Ae,resetAfter:Le});const Xe=()=>{const{scrollbarAlwaysOn:Pe,scrollbarStartGap:qe,scrollbarEndGap:ze,totalColumn:Se,totalRow:Oe}=g,De=a(z),Je=a(L),rt=a(D),st=a(j),{scrollLeft:Ee,scrollTop:vt}=a(I),pt=Ke(ru,{ref:A,alwaysOn:Pe,startGap:qe,endGap:ze,class:w.e("horizontal"),clientSize:De,layout:"horizontal",onScroll:ee,ratio:De*100/rt,scrollFrom:Ee/(rt-De),total:Oe,visible:!0}),ue=Ke(ru,{ref:R,alwaysOn:Pe,startGap:qe,endGap:ze,class:w.e("vertical"),clientSize:Je,layout:"vertical",onScroll:q,ratio:Je*100/st,scrollFrom:vt/(st-Je),total:Se,visible:!0});return{horizontalScrollbar:pt,verticalScrollbar:ue}},xe=()=>{var Pe;const[qe,ze]=a(H),[Se,Oe]=a(W),{data:De,totalColumn:Je,totalRow:rt,useIsScrolling:st,itemKey:Ee}=g,vt=[];if(rt>0&&Je>0)for(let pt=Se;pt<=Oe;pt++)for(let ue=qe;ue<=ze;ue++)vt.push((Pe=k.default)==null?void 0:Pe.call(k,{columnIndex:ue,data:De,key:Ee({columnIndex:ue,data:De,rowIndex:pt}),isScrolling:st?a(I).isScrolling:void 0,style:le(pt,ue),rowIndex:pt}));return vt},He=()=>{const Pe=St(g.innerElement),qe=xe();return[Ke(Pe,{style:a(B),ref:M},kt(Pe)?qe:{default:()=>qe})]};return()=>{const Pe=St(g.containerElement),{horizontalScrollbar:qe,verticalScrollbar:ze}=Xe(),Se=He();return Ke("div",{key:0,class:w.e("wrapper")},[Ke(Pe,{class:g.className,style:a(V),onScroll:Q,onWheel:ve,ref:$},kt(Pe)?Se:{default:()=>Se}),qe,ze])}}}),ZB=fg({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:o},n,r,s,l,i)=>{o=Number(o);const u=Math.max(0,e*t-o),c=Math.min(u,n*t),f=Math.max(0,n*t-o+i+t);switch(r==="smart"&&(s>=f-o&&s<=c+o?r=Hn:r=eo),r){case Ms:return c;case Ns:return f;case eo:{const d=Math.round(f+(c-f)/2);return du+Math.floor(o/2)?u:d}case Hn:default:return s>=f&&s<=c?s:f>c||s{t=Number(t);const u=Math.max(0,o*e-t),c=Math.min(u,n*e),f=Math.max(0,n*e-t+i+e);switch(r===Tl&&(s>=f-t&&s<=c+t?r=Hn:r=eo),r){case Ms:return c;case Ns:return f;case eo:{const d=Math.round(f+(c-f)/2);return du+Math.floor(t/2)?u:d}case Hn:default:return s>=f&&s<=c?s:f>c||sMath.max(0,Math.min(t-1,Math.floor(o/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:o},n,r)=>{const s=n*e,l=Math.ceil((o+r-s)/e);return Math.max(0,Math.min(t-1,n+l-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},o)=>Math.max(0,Math.min(t-1,Math.floor(o/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:o},n,r)=>{const s=n*e,l=Math.ceil((o+r-s)/e);return Math.max(0,Math.min(t-1,n+l-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:tl,min:pg,floor:hg}=Math,JB={column:"columnWidth",row:"rowHeight"},su={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},uo=(e,t,o,n)=>{const[r,s,l]=[o[n],e[JB[n]],o[su[n]]];if(t>l){let i=0;if(l>=0){const u=r[l];i=u.offset+u.size}for(let u=l+1;u<=t;u++){const c=s(u);r[u]={offset:i,size:c},i+=c}o[su[n]]=t}return r[t]},vg=(e,t,o,n,r,s)=>{for(;o<=n;){const l=o+hg((n-o)/2),i=uo(e,l,t,s).offset;if(i===r)return l;i{const s=r==="column"?e.totalColumn:e.totalRow;let l=1;for(;o{const[r,s]=[t[n],t[su[n]]];return(s>0?r[s].offset:0)>=o?vg(e,t,0,s,o,n):QB(e,t,tl(0,s),o,n)},mg=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:o,row:n})=>{let r=0;if(o>=e&&(o=e-1),o>=0){const i=n[o];r=i.offset+i.size}const l=(e-o-1)*t;return r+l},gg=({totalColumn:e},{column:t,estimatedColumnWidth:o,lastVisitedColumnIndex:n})=>{let r=0;if(n>e&&(n=e-1),n>=0){const i=t[n];r=i.offset+i.size}const l=(e-n-1)*o;return r+l},ez={column:gg,row:mg},pp=(e,t,o,n,r,s,l)=>{const[i,u]=[s==="row"?e.height:e.width,ez[s]],c=uo(e,t,r,s),f=u(e,r),d=tl(0,pg(f-i,c.offset)),h=tl(0,c.offset-i+l+c.size);switch(o===Tl&&(n>=h-i&&n<=d+i?o=Hn:o=eo),o){case Ms:return d;case Ns:return h;case eo:return Math.round(h+(d-h)/2);case Hn:default:return n>=h&&n<=d?n:h>d||n{const n=uo(e,t,o,"column");return[n.size,n.offset]},getRowPosition:(e,t,o)=>{const n=uo(e,t,o,"row");return[n.size,n.offset]},getColumnOffset:(e,t,o,n,r,s)=>pp(e,t,o,n,r,"column",s),getRowOffset:(e,t,o,n,r,s)=>pp(e,t,o,n,r,"row",s),getColumnStartIndexForOffset:(e,t,o)=>fp(e,o,t,"column"),getColumnStopIndexForStartIndex:(e,t,o,n)=>{const r=uo(e,t,n,"column"),s=o+e.width;let l=r.offset+r.size,i=t;for(;ifp(e,o,t,"row"),getRowStopIndexForStartIndex:(e,t,o,n)=>{const{totalRow:r,height:s}=e,l=uo(e,t,n,"row"),i=o+s;let u=l.size+l.offset,c=t;for(;c{const o=({columnIndex:s,rowIndex:l},i)=>{var u,c;i=vn(i)?!0:i,it(s)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,s-1)),it(l)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,l-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},n=(s,l)=>{o({columnIndex:s},l)},r=(s,l)=>{o({rowIndex:s},l)};Object.assign(e.proxy,{resetAfterColumnIndex:n,resetAfterRowIndex:r,resetAfter:o})},initCache:({estimatedColumnWidth:e=Ji,estimatedRowHeight:t=Ji})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),nz=oe({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:be("select")}}});function oz(e,t,o,n,r,s){return e.item.isTitle?(N(),U("div",{key:0,class:P(e.ns.be("group","title")),style:je([e.style,{lineHeight:`${e.height}px`}])},Ne(e.item.label),7)):(N(),U("div",{key:1,class:P(e.ns.be("group","split")),style:je(e.style)},[te("span",{class:P(e.ns.be("group","split-dash")),style:je({top:`${e.height/2}px`})},null,6)],6))}var rz=Ie(nz,[["render",oz],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function sz(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const az={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:qr},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,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:ln.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Fs},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:ce(String),values:pr,default:"bottom-start"}},lz={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},iz=oe({props:lz,emits:["select","hover"],setup(e,{emit:t}){const o=be("select"),{hoverItem:n,selectOptionClick:r}=sz(e,{emit:t});return{ns:o,hoverItem:n,selectOptionClick:r}}}),uz=["aria-selected"];function cz(e,t,o,n,r,s){return N(),U("li",{"aria-selected":e.selected,style:je(e.style),class:P([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...l)=>e.hoverItem&&e.hoverItem(...l)),onClick:t[1]||(t[1]=nt((...l)=>e.selectOptionClick&&e.selectOptionClick(...l),["stop"]))},[ye(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[te("span",null,Ne(e.item.label),1)])],46,uz)}var dz=Ie(iz,[["render",cz],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const yg="ElSelectV2Injection";var fz=oe({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:o}){const n=Ue(yg),r=be("select"),s=F([]),l=F(),i=x(()=>e.data.length);ke(()=>i.value,()=>{var R,M;(M=(R=n.popper.value).updatePopper)==null||M.call(R)});const u=x(()=>vn(n.props.estimatedOptionHeight)),c=x(()=>u.value?{itemSize:n.props.itemHeight}:{estimatedSize:n.props.estimatedOptionHeight,itemSize:R=>s.value[R]}),f=(R=[],M)=>{const{props:{valueKey:I}}=n;return qt(M)?R&&R.some(_=>Ht(_,I)===Ht(M,I)):R.includes(M)},d=(R,M)=>{if(qt(M)){const{valueKey:I}=n.props;return Ht(R,I)===Ht(M,I)}else return R===M},h=(R,M)=>{const{valueKey:I}=n.props;return n.props.multiple?f(R,Ht(M,I)):d(R,Ht(M,I))},v=(R,M)=>{const{disabled:I,multiple:_,multipleLimit:L}=n.props;return I||!M&&(_?L>0&&R.length>=L:!1)},m=R=>e.hoveringIndex===R;o({listRef:l,isSized:u,isItemDisabled:v,isItemHovering:m,isItemSelected:h,scrollToItem:R=>{const M=l.value;M&&M.scrollToItem(R)},resetScrollTop:()=>{const R=l.value;R&&R.resetScrollTop()}});const C=R=>{const{index:M,data:I,style:_}=R,L=a(u),{itemSize:z,estimatedSize:H}=a(c),{modelValue:W}=n.props,{onSelect:j,onHover:D}=n,V=I[M];if(V.type==="Group")return Z(rz,{item:V,style:_,height:L?z:H},null);const B=h(W,V),X=v(W,B),Q=m(M);return Z(dz,mt(R,{selected:B,disabled:V.disabled||X,created:!!V.created,hovering:Q,item:V,onSelect:j,onHover:D}),{default:q=>{var ee;return((ee=t.default)==null?void 0:ee.call(t,q))||Z("span",null,[V.label])}})},{onKeyboardNavigate:k,onKeyboardSelect:w}=n,E=()=>{k("forward")},T=()=>{k("backward")},$=()=>{n.expanded=!1},A=R=>{const{code:M}=R,{tab:I,esc:_,down:L,up:z,enter:H}=Ye;switch(M!==I&&(R.preventDefault(),R.stopPropagation()),M){case I:case _:{$();break}case L:{E();break}case z:{T();break}case H:{w();break}}};return()=>{var R;const{data:M,width:I}=e,{height:_,multiple:L,scrollbarAlwaysOn:z}=n.props;if(M.length===0)return Z("div",{class:r.b("dropdown"),style:{width:`${I}px`}},[(R=t.empty)==null?void 0:R.call(t)]);const H=a(u)?cg:qB;return Z("div",{class:[r.b("dropdown"),r.is("multiple",L)]},[Z(H,mt({ref:l},a(c),{className:r.be("dropdown","list"),scrollbarAlwaysOn:z,data:M,height:_,width:I,total:M.length,onKeydown:A}),{default:W=>Z(C,W,null)})])}}});function pz(e,t){const o=F(0),n=F(null),r=x(()=>e.allowCreate&&e.filterable);function s(f){const d=h=>h.value===f;return e.options&&e.options.some(d)||t.createdOptions.some(d)}function l(f){!r.value||(e.multiple&&f.created?o.value++:n.value=f)}function i(f){if(r.value)if(f&&f.length>0&&!s(f)){const d={value:f,label:f,created:!0,disabled:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=d:t.createdOptions.push(d)}else if(e.multiple)t.createdOptions.length=o.value;else{const d=n.value;t.createdOptions.length=0,d&&d.created&&t.createdOptions.push(d)}}function u(f){if(!r.value||!f||!f.created||f.created&&e.reserveKeyword&&t.inputValue===f.label)return;const d=t.createdOptions.findIndex(h=>h.value===f.value);~d&&(t.createdOptions.splice(d,1),o.value--)}function c(){r.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:i,removeNewOption:u,selectNewOption:l,clearAllNewOption:c}}const hz=e=>{const t=[];return e.forEach(o=>{ft(o.options)?(t.push({label:o.label,isTitle:!0,type:"Group"}),o.options.forEach(n=>{t.push(n)}),t.push({type:"Group"})):t.push(o)}),t};function vz(e){const t=F(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:s=>{const l=s.target.value,i=l[l.length-1]||"";t.value=!Mu(i)},handleCompositionEnd:s=>{t.value&&(t.value=!1,At(e)&&e(s))}}}const hp="",vp=11,mz={larget:51,default:42,small:33},gz=(e,t)=>{const{t:o}=$t(),n=be("select-v2"),r=be("input"),{form:s,formItem:l}=zn(),i=Rt({inputValue:hp,displayInputValue:hp,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}),u=F(-1),c=F(-1),f=F(null),d=F(null),h=F(null),v=F(null),m=F(null),g=F(null),b=F(null),C=F(!1),k=x(()=>e.disabled||(s==null?void 0:s.disabled)),w=x(()=>{const we=L.value.length*34;return we>e.height?e.height:we}),E=x(()=>!Cn(e.modelValue)),T=x(()=>{const we=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:E.value;return e.clearable&&!k.value&&i.comboBoxHovering&&we}),$=x(()=>e.remote&&e.filterable?"":ll),A=x(()=>$.value&&n.is("reverse",C.value)),R=x(()=>(l==null?void 0:l.validateState)||""),M=x(()=>dw[R.value]),I=x(()=>e.remote?300:0),_=x(()=>{const we=L.value;return e.loading?e.loadingText||o("el.select.loading"):e.remote&&i.inputValue===""&&we.length===0?!1:e.filterable&&i.inputValue&&we.length>0?e.noMatchText||o("el.select.noMatch"):we.length===0?e.noDataText||o("el.select.noData"):null}),L=x(()=>{const we=Ze=>{const ct=i.inputValue,Ot=new RegExp(zh(ct),"i");return ct?Ot.test(Ze.label||""):!0};return e.loading?[]:hz(e.options.concat(i.createdOptions).map(Ze=>{if(ft(Ze.options)){const ct=Ze.options.filter(we);if(ct.length>0)return{...Ze,options:ct}}else if(e.remote||we(Ze))return Ze;return null}).filter(Ze=>Ze!==null))}),z=x(()=>L.value.every(we=>we.disabled)),H=dn(),W=x(()=>H.value==="small"?"small":"default"),j=x(()=>{const we=g.value,Ze=W.value||"default",ct=we?Number.parseInt(getComputedStyle(we).paddingLeft):0,Ot=we?Number.parseInt(getComputedStyle(we).paddingRight):0;return i.selectWidth-Ot-ct-mz[Ze]}),D=()=>{var we;c.value=((we=m.value)==null?void 0:we.offsetWidth)||200},V=x(()=>({width:`${i.calculatedWidth===0?vp:Math.ceil(i.calculatedWidth)+vp}px`})),B=x(()=>ft(e.modelValue)?e.modelValue.length===0&&!i.displayInputValue:e.filterable?i.displayInputValue.length===0:!0),X=x(()=>{const we=e.placeholder||o("el.select.placeholder");return e.multiple||Cn(e.modelValue)?we:i.selectedLabel}),Q=x(()=>{var we,Ze;return(Ze=(we=v.value)==null?void 0:we.popperRef)==null?void 0:Ze.contentRef}),q=x(()=>{if(e.multiple){const we=e.modelValue.length;if(e.modelValue.length>0)return L.value.findIndex(Ze=>Ze.value===e.modelValue[we-1])}else if(e.modelValue)return L.value.findIndex(we=>we.value===e.modelValue);return-1}),ee=x({get(){return C.value&&_.value!==!1},set(we){C.value=we}}),{createNewOption:ve,removeNewOption:me,selectNewOption:Ce,clearAllNewOption:le}=pz(e,i),{handleCompositionStart:re,handleCompositionUpdate:ie,handleCompositionEnd:pe}=vz(we=>Mt(we)),Ae=()=>{var we,Ze,ct;(Ze=(we=d.value).focus)==null||Ze.call(we),(ct=v.value)==null||ct.updatePopper()},Le=()=>{if(!e.automaticDropdown&&!k.value)return i.isComposing&&(i.softFocus=!0),Ge(()=>{var we,Ze;C.value=!C.value,(Ze=(we=d.value)==null?void 0:we.focus)==null||Ze.call(we)})},Xe=()=>(e.filterable&&i.inputValue!==i.selectedLabel&&(i.query=i.selectedLabel),He(i.inputValue),Ge(()=>{ve(i.inputValue)})),xe=kn(Xe,I.value),He=we=>{i.previousQuery!==we&&(i.previousQuery=we,e.filterable&&At(e.filterMethod)?e.filterMethod(we):e.filterable&&e.remote&&At(e.remoteMethod)&&e.remoteMethod(we))},ot=we=>{Dn(e.modelValue,we)||t(Lt,we)},Pe=we=>{t(ut,we),ot(we),i.previousValue=we==null?void 0:we.toString()},qe=(we=[],Ze)=>{if(!qt(Ze))return we.indexOf(Ze);const ct=e.valueKey;let Ot=-1;return we.some((an,In)=>Ht(an,ct)===Ht(Ze,ct)?(Ot=In,!0):!1),Ot},ze=we=>qt(we)?Ht(we,e.valueKey):we,Se=we=>qt(we)?we.label:we,Oe=()=>{if(!(e.collapseTags&&!e.filterable))return Ge(()=>{var we,Ze;if(!d.value)return;const ct=g.value;m.value.height=ct.offsetHeight,C.value&&_.value!==!1&&((Ze=(we=v.value)==null?void 0:we.updatePopper)==null||Ze.call(we))})},De=()=>{var we,Ze;if(Je(),D(),(Ze=(we=v.value)==null?void 0:we.updatePopper)==null||Ze.call(we),e.multiple)return Oe()},Je=()=>{const we=g.value;we&&(i.selectWidth=we.getBoundingClientRect().width)},rt=(we,Ze,ct=!0)=>{var Ot,an;if(e.multiple){let In=e.modelValue.slice();const Mn=qe(In,ze(we));Mn>-1?(In=[...In.slice(0,Mn),...In.slice(Mn+1)],i.cachedOptions.splice(Mn,1),me(we)):(e.multipleLimit<=0||In.length{const{valueKey:ct}=e,Ot=e.modelValue.indexOf(Ht(Ze,ct));if(Ot>-1&&!k.value){const an=[...e.modelValue.slice(0,Ot),...e.modelValue.slice(Ot+1)];return i.cachedOptions.splice(Ot,1),Pe(an),t("remove-tag",Ht(Ze,ct)),i.softFocus=!0,me(Ze),Ge(Ae)}we.stopPropagation()},Ee=we=>{const Ze=i.isComposing;i.isComposing=!0,i.softFocus?i.softFocus=!1:Ze||t("focus",we)},vt=we=>(i.softFocus=!1,Ge(()=>{var Ze,ct;(ct=(Ze=d.value)==null?void 0:Ze.blur)==null||ct.call(Ze),b.value&&(i.calculatedWidth=b.value.getBoundingClientRect().width),i.isSilentBlur?i.isSilentBlur=!1:i.isComposing&&t("blur",we),i.isComposing=!1})),pt=()=>{i.displayInputValue.length>0?We(""):C.value=!1},ue=we=>{if(i.displayInputValue.length===0){we.preventDefault();const Ze=e.modelValue.slice();Ze.pop(),me(i.cachedOptions.pop()),Pe(Ze)}},Me=()=>{let we;return ft(e.modelValue)?we=[]:we=void 0,i.softFocus=!0,e.multiple?i.cachedOptions=[]:i.selectedLabel="",C.value=!1,Pe(we),t("clear"),le(),Ge(Ae)},We=we=>{i.displayInputValue=we,i.inputValue=we},Y=(we,Ze=void 0)=>{const ct=L.value;if(!["forward","backward"].includes(we)||k.value||ct.length<=0||z.value)return;if(!C.value)return Le();Ze===void 0&&(Ze=i.hoveringIndex);let Ot=-1;we==="forward"?(Ot=Ze+1,Ot>=ct.length&&(Ot=0)):we==="backward"&&(Ot=Ze-1,(Ot<0||Ot>=ct.length)&&(Ot=ct.length-1));const an=ct[Ot];if(an.disabled||an.type==="Group")return Y(we,Ot);he(Ot),Tt(Ot)},ne=()=>{if(C.value)~i.hoveringIndex&&L.value[i.hoveringIndex]&&rt(L.value[i.hoveringIndex],i.hoveringIndex,!1);else return Le()},he=we=>{i.hoveringIndex=we},$e=()=>{i.hoveringIndex=-1},Be=()=>{var we;const Ze=d.value;Ze&&((we=Ze.focus)==null||we.call(Ze))},Mt=we=>{const Ze=we.target.value;if(We(Ze),i.displayInputValue.length>0&&!C.value&&(C.value=!0),i.calculatedWidth=b.value.getBoundingClientRect().width,e.multiple&&Oe(),e.remote)xe();else return Xe()},Nt=()=>(C.value=!1,vt()),Bt=()=>(i.inputValue=i.displayInputValue,Ge(()=>{~q.value&&(he(q.value),Tt(i.hoveringIndex))})),Tt=we=>{h.value.scrollToItem(we)},Ct=()=>{if($e(),e.multiple)if(e.modelValue.length>0){let we=!1;i.cachedOptions.length=0,i.previousValue=e.modelValue.toString(),e.modelValue.forEach(Ze=>{const ct=L.value.findIndex(Ot=>ze(Ot)===Ze);~ct&&(i.cachedOptions.push(L.value[ct]),we||he(ct),we=!0)})}else i.cachedOptions=[],i.previousValue=void 0;else if(E.value){i.previousValue=e.modelValue;const we=L.value,Ze=we.findIndex(ct=>ze(ct)===ze(e.modelValue));~Ze?(i.selectedLabel=we[Ze].label,he(Ze)):i.selectedLabel=`${e.modelValue}`}else i.selectedLabel="",i.previousValue=void 0;le(),D()};return ke(C,we=>{var Ze,ct;t("visible-change",we),we?(ct=(Ze=v.value).update)==null||ct.call(Ze):(i.displayInputValue="",i.previousQuery=null,ve(""))}),ke(()=>e.modelValue,(we,Ze)=>{var ct;(!we||we.toString()!==i.previousValue)&&Ct(),!Dn(we,Ze)&&e.validateEvent&&((ct=l==null?void 0:l.validate)==null||ct.call(l,"change").catch(Ot=>on()))},{deep:!0}),ke(()=>e.options,()=>{const we=d.value;(!we||we&&document.activeElement!==we)&&Ct()},{deep:!0}),ke(L,()=>Ge(h.value.resetScrollTop)),ht(()=>{Ct()}),Bn(m,De),{collapseTagSize:W,currentPlaceholder:X,expanded:C,emptyText:_,popupHeight:w,debounce:I,filteredOptions:L,iconComponent:$,iconReverse:A,inputWrapperStyle:V,popperSize:c,dropdownMenuVisible:ee,hasModelValue:E,shouldShowPlaceholder:B,selectDisabled:k,selectSize:H,showClearBtn:T,states:i,tagMaxWidth:j,nsSelectV2:n,nsInput:r,calculatorRef:b,controlRef:f,inputRef:d,menuRef:h,popper:v,selectRef:m,selectionRef:g,popperRef:Q,validateState:R,validateIcon:M,debouncedOnInputChange:xe,deleteTag:st,getLabel:Se,getValueKey:ze,handleBlur:vt,handleClear:Me,handleClickOutside:Nt,handleDel:ue,handleEsc:pt,handleFocus:Ee,handleMenuEnter:Bt,handleResize:De,toggleMenu:Le,scrollTo:Tt,onInput:Mt,onKeyboardNavigate:Y,onKeyboardSelect:ne,onSelect:rt,onHover:he,onUpdateInputValue:We,handleCompositionStart:re,handleCompositionEnd:pe,handleCompositionUpdate:ie}},yz=oe({name:"ElSelectV2",components:{ElSelectMenu:fz,ElTag:kl,ElTooltip:xn,ElIcon:_e},directives:{ClickOutside:zo,ModelText:Cu},props:az,emits:[ut,Lt,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=x(()=>{const{modelValue:r,multiple:s}=e,l=s?[]:void 0;return ft(r)?s?r:l:s?l:r}),n=gz(Rt({...tn(e),modelValue:o}),t);return gt(yg,{props:Rt({...tn(e),height:n.popupHeight,modelValue:o}),popper:n.popper,onSelect:n.onSelect,onHover:n.onHover,onKeyboardNavigate:n.onKeyboardNavigate,onKeyboardSelect:n.onKeyboardSelect}),{...n,modelValue:o}}}),bz={key:0},wz=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Cz=["textContent"],Sz=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],kz=["textContent"];function Ez(e,t,o,n,r,s){const l=tt("el-tag"),i=tt("el-tooltip"),u=tt("el-icon"),c=tt("el-select-menu"),f=Rr("model-text"),d=Rr("click-outside");return lt((N(),U("div",{ref:"selectRef",class:P([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[25]||(t[25]=nt((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"])),onMouseenter:t[26]||(t[26]=h=>e.states.comboBoxHovering=!0),onMouseleave:t[27]||(t[27]=h=>e.states.comboBoxHovering=!1)},[Z(i,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[24]||(t[24]=h=>e.states.inputValue=e.states.displayInputValue)},{default:se(()=>{var h;return[te("div",{ref:"selectionRef",class:P([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(N(),U("div",bz,[ye(e.$slots,"prefix")])):de("v-if",!0),e.multiple?(N(),U("div",{key:1,class:P(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(N(),U("div",{key:0,class:P(e.nsSelectV2.e("selected-item"))},[Z(l,{closable:!e.selectDisabled&&!((h=e.states.cachedOptions[0])!=null&&h.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:t[0]||(t[0]=v=>e.deleteTag(v,e.states.cachedOptions[0]))},{default:se(()=>{var v;return[te("span",{class:P(e.nsSelectV2.e("tags-text")),style:je({maxWidth:`${e.tagMaxWidth}px`})},Ne((v=e.states.cachedOptions[0])==null?void 0:v.label),7)]}),_:1},8,["closable","size"]),e.modelValue.length>1?(N(),fe(l,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:se(()=>[e.collapseTagsTooltip?(N(),fe(i,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:se(()=>[te("span",{class:P(e.nsSelectV2.e("tags-text")),style:je({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Ne(e.modelValue.length-1),7)]),content:se(()=>[te("div",{class:P(e.nsSelectV2.e("selection"))},[(N(!0),U(Qe,null,bt(e.states.cachedOptions.slice(1),(v,m)=>(N(),U("div",{key:m,class:P(e.nsSelectV2.e("selected-item"))},[(N(),fe(l,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:se(()=>[te("span",{class:P(e.nsSelectV2.e("tags-text")),style:je({maxWidth:`${e.tagMaxWidth}px`})},Ne(e.getLabel(v)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(N(),U("span",{key:1,class:P(e.nsSelectV2.e("tags-text")),style:je({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Ne(e.modelValue.length-1),7))]),_:1},8,["size"])):de("v-if",!0)],2)):(N(!0),U(Qe,{key:1},bt(e.states.cachedOptions,(v,m)=>(N(),U("div",{key:m,class:P(e.nsSelectV2.e("selected-item"))},[(N(),fe(l,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:se(()=>[te("span",{class:P(e.nsSelectV2.e("tags-text")),style:je({maxWidth:`${e.tagMaxWidth}px`})},Ne(e.getLabel(v)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),te("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:je(e.inputWrapperStyle)},[lt(te("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:P([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[1]||(t[1]=(...v)=>e.onUpdateInputValue&&e.onUpdateInputValue(...v)),onFocus:t[2]||(t[2]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[3]||(t[3]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onInput:t[4]||(t[4]=(...v)=>e.onInput&&e.onInput(...v)),onCompositionstart:t[5]||(t[5]=(...v)=>e.handleCompositionStart&&e.handleCompositionStart(...v)),onCompositionupdate:t[6]||(t[6]=(...v)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...v)),onCompositionend:t[7]||(t[7]=(...v)=>e.handleCompositionEnd&&e.handleCompositionEnd(...v)),onKeydown:[t[8]||(t[8]=Et(nt(v=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[9]||(t[9]=Et(nt(v=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[10]||(t[10]=Et(nt((...v)=>e.onKeyboardSelect&&e.onKeyboardSelect(...v),["stop","prevent"]),["enter"])),t[11]||(t[11]=Et(nt((...v)=>e.handleEsc&&e.handleEsc(...v),["stop","prevent"]),["esc"])),t[12]||(t[12]=Et(nt((...v)=>e.handleDel&&e.handleDel(...v),["stop"]),["delete"]))]},null,42,wz),[[f,e.states.displayInputValue]]),e.filterable?(N(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P(e.nsSelectV2.e("input-calculator")),textContent:Ne(e.states.displayInputValue)},null,10,Cz)):de("v-if",!0)],6)],2)):(N(),U(Qe,{key:2},[te("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[lt(te("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:P(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[13]||(t[13]=(...v)=>e.handleCompositionStart&&e.handleCompositionStart(...v)),onCompositionupdate:t[14]||(t[14]=(...v)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...v)),onCompositionend:t[15]||(t[15]=(...v)=>e.handleCompositionEnd&&e.handleCompositionEnd(...v)),onFocus:t[16]||(t[16]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[17]||(t[17]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onInput:t[18]||(t[18]=(...v)=>e.onInput&&e.onInput(...v)),onKeydown:[t[19]||(t[19]=Et(nt(v=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[20]||(t[20]=Et(nt(v=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[21]||(t[21]=Et(nt((...v)=>e.onKeyboardSelect&&e.onKeyboardSelect(...v),["stop","prevent"]),["enter"])),t[22]||(t[22]=Et(nt((...v)=>e.handleEsc&&e.handleEsc(...v),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[23]||(t[23]=(...v)=>e.onUpdateInputValue&&e.onUpdateInputValue(...v))},null,42,Sz),[[f,e.states.displayInputValue]])],2),e.filterable?(N(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:Ne(e.states.displayInputValue)},null,10,kz)):de("v-if",!0)],64)),e.shouldShowPlaceholder?(N(),U("span",{key:3,class:P([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},Ne(e.currentPlaceholder),3)):de("v-if",!0),te("span",{class:P(e.nsSelectV2.e("suffix"))},[e.iconComponent?lt((N(),fe(u,{key:0,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:se(()=>[(N(),fe(St(e.iconComponent)))]),_:1},8,["class"])),[[xt,!e.showClearBtn]]):de("v-if",!0),e.showClearBtn&&e.clearIcon?(N(),fe(u,{key:1,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:nt(e.handleClear,["prevent","stop"])},{default:se(()=>[(N(),fe(St(e.clearIcon)))]),_:1},8,["class","onClick"])):de("v-if",!0),e.validateState&&e.validateIcon?(N(),fe(u,{key:2,class:P([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:se(()=>[(N(),fe(St(e.validateIcon)))]),_:1},8,["class"])):de("v-if",!0)],2)],2)]}),content:se(()=>[Z(c,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:se(h=>[ye(e.$slots,"default",qn(Su(h)))]),empty:se(()=>[ye(e.$slots,"empty",{},()=>[te("p",{class:P(e.nsSelectV2.e("empty"))},Ne(e.emptyText?e.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)),[[d,e.handleClickOutside,e.popperRef]])}var Na=Ie(yz,[["render",Ez],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Na.install=e=>{e.component(Na.name,Na)};const $z=Na,Tz=$z,Oz=Re({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),xz=Re({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Iz=oe({name:"ElSkeletonItem"}),Mz=oe({...Iz,props:xz,setup(e){const t=be("skeleton");return(o,n)=>(N(),U("div",{class:P([a(t).e("item"),a(t).e(o.variant)])},[o.variant==="image"?(N(),fe(a(H0),{key:0})):de("v-if",!0)],2))}});var nl=Ie(Mz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Nz=oe({name:"ElSkeleton"}),Pz=oe({...Nz,props:Oz,setup(e,{expose:t}){const o=e,n=be("skeleton"),r=gE(Jt(o,"loading"),o.throttle);return t({uiLoading:r}),(s,l)=>a(r)?(N(),U("div",mt({key:0,class:[a(n).b(),a(n).is("animated",s.animated)]},s.$attrs),[(N(!0),U(Qe,null,bt(s.count,i=>(N(),U(Qe,{key:i},[s.loading?ye(s.$slots,"template",{key:i},()=>[Z(nl,{class:P(a(n).is("first")),variant:"p"},null,8,["class"]),(N(!0),U(Qe,null,bt(s.rows,u=>(N(),fe(nl,{key:u,class:P([a(n).e("paragraph"),a(n).is("last",u===s.rows&&s.rows>1)]),variant:"p"},null,8,["class"]))),128))]):de("v-if",!0)],64))),128))],16)):ye(s.$slots,"default",qn(mt({key:1},s.$attrs)))}});var Rz=Ie(Pz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const Az=dt(Rz,{SkeletonItem:nl}),Dz=Ut(nl),Lz=Re({modelValue:{type:ce([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:Zn,inputSize:Zn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ce(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:ce(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:pr,default:"top"},marks:{type:ce(Object)},validateEvent:{type:Boolean,default:!0}}),bi=e=>it(e)||ft(e)&&e.every(it),Bz={[ut]:bi,[Sn]:bi,[Lt]:bi},zz=(e,t,o)=>{const n=F();return ht(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),pn(window,"resize",o),await Ge(),o()}),{sliderWrapper:n}},Vz=e=>x(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((o,n)=>o-n).filter(o=>o<=e.max&&o>=e.min).map(o=>({point:o,position:(o-e.min)*100/(e.max-e.min),mark:e.marks[o]})):[]),Fz=(e,t,o)=>{const{form:n,formItem:r}=zn(),s=Kt(),l=F(),i=F(),u={firstButton:l,secondButton:i},c=x(()=>e.disabled||(n==null?void 0:n.disabled)||!1),f=x(()=>Math.min(t.firstValue,t.secondValue)),d=x(()=>Math.max(t.firstValue,t.secondValue)),h=x(()=>e.range?`${100*(d.value-f.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),v=x(()=>e.range?`${100*(f.value-e.min)/(e.max-e.min)}%`:"0%"),m=x(()=>e.vertical?{height:e.height}:{}),g=x(()=>e.vertical?{height:h.value,bottom:v.value}:{width:h.value,left:v.value}),b=()=>{s.value&&(t.sliderSize=s.value[`client${e.vertical?"Height":"Width"}`])},C=_=>{const L=e.min+_*(e.max-e.min)/100;if(!e.range)return l;let z;return Math.abs(f.value-L)t.secondValue?"firstButton":"secondButton",u[z]},k=_=>{const L=C(_);return L.value.setPosition(_),L},w=_=>{t.firstValue=_,T(e.range?[f.value,d.value]:_)},E=_=>{t.secondValue=_,e.range&&T([f.value,d.value])},T=_=>{o(ut,_),o(Sn,_)},$=async()=>{await Ge(),o(Lt,e.range?[f.value,d.value]:e.modelValue)},A=_=>{var L,z,H,W,j,D;if(c.value||t.dragging)return;b();let V=0;if(e.vertical){const B=(H=(z=(L=_.touches)==null?void 0:L.item(0))==null?void 0:z.clientY)!=null?H:_.clientY;V=(s.value.getBoundingClientRect().bottom-B)/t.sliderSize*100}else{const B=(D=(j=(W=_.touches)==null?void 0:W.item(0))==null?void 0:j.clientX)!=null?D:_.clientX,X=s.value.getBoundingClientRect().left;V=(B-X)/t.sliderSize*100}if(!(V<0||V>100))return k(V)};return{elFormItem:r,slider:s,firstButton:l,secondButton:i,sliderDisabled:c,minValue:f,maxValue:d,runwayStyle:m,barStyle:g,resetSize:b,setPosition:k,emitChange:$,onSliderWrapperPrevent:_=>{var L,z;(((L=u.firstButton.value)==null?void 0:L.dragging)||((z=u.secondButton.value)==null?void 0:z.dragging))&&_.preventDefault()},onSliderClick:_=>{A(_)&&$()},onSliderDown:async _=>{const L=A(_);L&&(await Ge(),L.value.onButtonDown(_))},setFirstValue:w,setSecondValue:E}},{left:Hz,down:Wz,right:Kz,up:_z,home:jz,end:Yz,pageUp:Uz,pageDown:Gz}=Ye,qz=(e,t,o)=>{const n=F(),r=F(!1),s=x(()=>t.value instanceof Function),l=x(()=>s.value&&t.value(e.modelValue)||e.modelValue),i=kn(()=>{o.value&&(r.value=!0)},50),u=kn(()=>{o.value&&(r.value=!1)},50);return{tooltip:n,tooltipVisible:r,formatValue:l,displayTooltip:i,hideTooltip:u}},Xz=(e,t,o)=>{const{disabled:n,min:r,max:s,step:l,showTooltip:i,precision:u,sliderSize:c,formatTooltip:f,emitChange:d,resetSize:h,updateDragging:v}=Ue(Uh),{tooltip:m,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:k}=qz(e,f,i),w=F(),E=x(()=>`${(e.modelValue-r.value)/(s.value-r.value)*100}%`),T=x(()=>e.vertical?{bottom:E.value}:{left:E.value}),$=()=>{t.hovering=!0,C()},A=()=>{t.hovering=!1,t.dragging||k()},R=q=>{n.value||(q.preventDefault(),V(q),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",X),window.addEventListener("touchend",X),window.addEventListener("contextmenu",X),w.value.focus())},M=q=>{n.value||(t.newPosition=Number.parseFloat(E.value)+q/(s.value-r.value)*100,Q(t.newPosition),d())},I=()=>{M(-l.value)},_=()=>{M(l.value)},L=()=>{M(-l.value*4)},z=()=>{M(l.value*4)},H=()=>{n.value||(Q(0),d())},W=()=>{n.value||(Q(100),d())},j=q=>{let ee=!0;[Hz,Wz].includes(q.key)?I():[Kz,_z].includes(q.key)?_():q.key===jz?H():q.key===Yz?W():q.key===Gz?L():q.key===Uz?z():ee=!1,ee&&q.preventDefault()},D=q=>{let ee,ve;return q.type.startsWith("touch")?(ve=q.touches[0].clientY,ee=q.touches[0].clientX):(ve=q.clientY,ee=q.clientX),{clientX:ee,clientY:ve}},V=q=>{t.dragging=!0,t.isClick=!0;const{clientX:ee,clientY:ve}=D(q);e.vertical?t.startY=ve:t.startX=ee,t.startPosition=Number.parseFloat(E.value),t.newPosition=t.startPosition},B=q=>{if(t.dragging){t.isClick=!1,C(),h();let ee;const{clientX:ve,clientY:me}=D(q);e.vertical?(t.currentY=me,ee=(t.startY-t.currentY)/c.value*100):(t.currentX=ve,ee=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+ee,Q(t.newPosition)}},X=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||k(),t.isClick||Q(t.newPosition),d()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),window.removeEventListener("contextmenu",X))},Q=async q=>{if(q===null||Number.isNaN(+q))return;q<0?q=0:q>100&&(q=100);const ee=100/((s.value-r.value)/l.value);let me=Math.round(q/ee)*ee*(s.value-r.value)*.01+r.value;me=Number.parseFloat(me.toFixed(u.value)),me!==e.modelValue&&o(ut,me),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ge(),t.dragging&&C(),m.value.updatePopper()};return ke(()=>t.dragging,q=>{v(q)}),{disabled:n,button:w,tooltip:m,tooltipVisible:g,showTooltip:i,wrapperStyle:T,formatValue:b,handleMouseEnter:$,handleMouseLeave:A,onButtonDown:R,onKeyDown:j,setPosition:Q}},Zz=(e,t,o,n)=>({stops:x(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const l=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),u=Array.from({length:l-1}).map((c,f)=>(f+1)*i);return e.range?u.filter(c=>c<100*(o.value-e.min)/(e.max-e.min)||c>100*(n.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:l=>e.vertical?{bottom:`${l}%`}:{left:`${l}%`}}),Jz=(e,t,o,n,r,s)=>{const l=c=>{r(ut,c),r(Sn,c)},i=()=>e.range?![o.value,n.value].every((c,f)=>c===t.oldValue[f]):e.modelValue!==t.oldValue,u=()=>{var c,f;if(e.min>e.max){nn("Slider","min should not be greater than max.");return}const d=e.modelValue;e.range&&Array.isArray(d)?d[1]e.max?l([e.max,e.max]):d[0]e.max?l([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],i()&&(e.validateEvent&&((c=s==null?void 0:s.validate)==null||c.call(s,"change").catch(h=>on())),t.oldValue=d.slice())):!e.range&&typeof d=="number"&&!Number.isNaN(d)&&(de.max?l(e.max):(t.firstValue=d,i()&&(e.validateEvent&&((f=s==null?void 0:s.validate)==null||f.call(s,"change").catch(h=>on())),t.oldValue=d)))};u(),ke(()=>t.dragging,c=>{c||u()}),ke(()=>e.modelValue,(c,f)=>{t.dragging||Array.isArray(c)&&Array.isArray(f)&&c.every((d,h)=>d===f[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ke(()=>[e.min,e.max],()=>{u()})},Qz=Re({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:pr,default:"top"}}),eV={[ut]:e=>it(e)},tV=["tabindex"],nV=oe({name:"ElSliderButton"}),oV=oe({...nV,props:Qz,emits:eV,setup(e,{expose:t,emit:o}){const n=e,r=be("slider"),s=Rt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:n.modelValue}),{disabled:l,button:i,tooltip:u,showTooltip:c,tooltipVisible:f,wrapperStyle:d,formatValue:h,handleMouseEnter:v,handleMouseLeave:m,onButtonDown:g,onKeyDown:b,setPosition:C}=Xz(n,s,o),{hovering:k,dragging:w}=tn(s);return t({onButtonDown:g,onKeyDown:b,setPosition:C,hovering:k,dragging:w}),(E,T)=>(N(),U("div",{ref_key:"button",ref:i,class:P([a(r).e("button-wrapper"),{hover:a(k),dragging:a(w)}]),style:je(a(d)),tabindex:a(l)?-1:0,onMouseenter:T[0]||(T[0]=(...$)=>a(v)&&a(v)(...$)),onMouseleave:T[1]||(T[1]=(...$)=>a(m)&&a(m)(...$)),onMousedown:T[2]||(T[2]=(...$)=>a(g)&&a(g)(...$)),onTouchstart:T[3]||(T[3]=(...$)=>a(g)&&a(g)(...$)),onFocus:T[4]||(T[4]=(...$)=>a(v)&&a(v)(...$)),onBlur:T[5]||(T[5]=(...$)=>a(m)&&a(m)(...$)),onKeydown:T[6]||(T[6]=(...$)=>a(b)&&a(b)(...$))},[Z(a(xn),{ref_key:"tooltip",ref:u,visible:a(f),placement:E.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":E.tooltipClass,disabled:!a(c),persistent:""},{content:se(()=>[te("span",null,Ne(a(h)),1)]),default:se(()=>[te("div",{class:P([a(r).e("button"),{hover:a(k),dragging:a(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,tV))}});var mp=Ie(oV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const rV=Re({mark:{type:ce([String,Object]),default:void 0}});var sV=oe({name:"ElSliderMarker",props:rV,setup(e){const t=be("slider"),o=x(()=>kt(e.mark)?e.mark:e.mark.label),n=x(()=>kt(e.mark)?void 0:e.mark.style);return()=>Ke("div",{class:t.e("marks-text"),style:n.value},o.value)}});const aV=["id","role","aria-label","aria-labelledby"],lV={key:1},iV=oe({name:"ElSlider"}),uV=oe({...iV,props:Lz,emits:Bz,setup(e,{expose:t,emit:o}){const n=e,r=be("slider"),{t:s}=$t(),l=Rt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:u,firstButton:c,secondButton:f,sliderDisabled:d,minValue:h,maxValue:v,runwayStyle:m,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:k,onSliderClick:w,onSliderDown:E,setFirstValue:T,setSecondValue:$}=Fz(n,l,o),{stops:A,getStopStyle:R}=Zz(n,l,h,v),{inputId:M,isLabeledByFormItem:I}=fr(n,{formItemContext:i}),_=dn(),L=x(()=>n.inputSize||_.value),z=x(()=>n.label||s("el.slider.defaultLabel",{min:n.min,max:n.max})),H=x(()=>n.range?n.rangeStartLabel||s("el.slider.defaultRangeStartLabel"):z.value),W=x(()=>n.formatValueText?n.formatValueText(q.value):`${q.value}`),j=x(()=>n.rangeEndLabel||s("el.slider.defaultRangeEndLabel")),D=x(()=>n.formatValueText?n.formatValueText(ee.value):`${ee.value}`),V=x(()=>[r.b(),r.m(_.value),r.is("vertical",n.vertical),{[r.m("with-input")]:n.showInput}]),B=Vz(n);Jz(n,l,h,v,o,i);const X=x(()=>{const Ce=[n.min,n.max,n.step].map(le=>{const re=`${le}`.split(".")[1];return re?re.length:0});return Math.max.apply(null,Ce)}),{sliderWrapper:Q}=zz(n,l,b),{firstValue:q,secondValue:ee,sliderSize:ve}=tn(l),me=Ce=>{l.dragging=Ce};return gt(Uh,{...tn(n),sliderSize:ve,disabled:d,precision:X,emitChange:C,resetSize:b,updateDragging:me}),t({onSliderClick:w}),(Ce,le)=>{var re,ie;return N(),U("div",{id:Ce.range?a(M):void 0,ref_key:"sliderWrapper",ref:Q,class:P(a(V)),role:Ce.range?"group":void 0,"aria-label":Ce.range&&!a(I)?a(z):void 0,"aria-labelledby":Ce.range&&a(I)?(re=a(i))==null?void 0:re.labelId:void 0,onTouchstart:le[2]||(le[2]=(...pe)=>a(k)&&a(k)(...pe)),onTouchmove:le[3]||(le[3]=(...pe)=>a(k)&&a(k)(...pe))},[te("div",{ref_key:"slider",ref:u,class:P([a(r).e("runway"),{"show-input":Ce.showInput&&!Ce.range},a(r).is("disabled",a(d))]),style:je(a(m)),onMousedown:le[0]||(le[0]=(...pe)=>a(E)&&a(E)(...pe)),onTouchstart:le[1]||(le[1]=(...pe)=>a(E)&&a(E)(...pe))},[te("div",{class:P(a(r).e("bar")),style:je(a(g))},null,6),Z(mp,{id:Ce.range?void 0:a(M),ref_key:"firstButton",ref:c,"model-value":a(q),vertical:Ce.vertical,"tooltip-class":Ce.tooltipClass,placement:Ce.placement,role:"slider","aria-label":Ce.range||!a(I)?a(H):void 0,"aria-labelledby":!Ce.range&&a(I)?(ie=a(i))==null?void 0:ie.labelId:void 0,"aria-valuemin":Ce.min,"aria-valuemax":Ce.range?a(ee):Ce.max,"aria-valuenow":a(q),"aria-valuetext":a(W),"aria-orientation":Ce.vertical?"vertical":"horizontal","aria-disabled":a(d),"onUpdate:modelValue":a(T)},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"]),Ce.range?(N(),fe(mp,{key:0,ref_key:"secondButton",ref:f,"model-value":a(ee),vertical:Ce.vertical,"tooltip-class":Ce.tooltipClass,placement:Ce.placement,role:"slider","aria-label":a(j),"aria-valuemin":a(q),"aria-valuemax":Ce.max,"aria-valuenow":a(ee),"aria-valuetext":a(D),"aria-orientation":Ce.vertical?"vertical":"horizontal","aria-disabled":a(d),"onUpdate:modelValue":a($)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):de("v-if",!0),Ce.showStops?(N(),U("div",lV,[(N(!0),U(Qe,null,bt(a(A),(pe,Ae)=>(N(),U("div",{key:Ae,class:P(a(r).e("stop")),style:je(a(R)(pe))},null,6))),128))])):de("v-if",!0),a(B).length>0?(N(),U(Qe,{key:2},[te("div",null,[(N(!0),U(Qe,null,bt(a(B),(pe,Ae)=>(N(),U("div",{key:Ae,style:je(a(R)(pe.position)),class:P([a(r).e("stop"),a(r).e("marks-stop")])},null,6))),128))]),te("div",{class:P(a(r).e("marks"))},[(N(!0),U(Qe,null,bt(a(B),(pe,Ae)=>(N(),fe(a(sV),{key:Ae,mark:pe.mark,style:je(a(R)(pe.position))},null,8,["mark","style"]))),128))],2)],64)):de("v-if",!0)],38),Ce.showInput&&!Ce.range?(N(),fe(a(Um),{key:0,ref:"input","model-value":a(q),class:P(a(r).e("input")),step:Ce.step,disabled:a(d),controls:Ce.showInputControls,min:Ce.min,max:Ce.max,debounce:Ce.debounce,size:a(L),"onUpdate:modelValue":a(T),onChange:a(C)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):de("v-if",!0)],42,aV)}}});var cV=Ie(uV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const dV=dt(cV),fV=Re({prefixCls:{type:String}}),gp=oe({name:"ElSpaceItem",props:fV,setup(e,{slots:t}){const o=be("space"),n=x(()=>`${e.prefixCls||o.b()}__item`);return()=>Ke("div",{class:n.value},ye(t,"default"))}}),yp={small:8,default:12,large:16};function pV(e){const t=be("space"),o=x(()=>[t.b(),t.m(e.direction),e.class]),n=F(0),r=F(0),s=x(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${r.value}px`}:{},u={alignItems:e.alignment};return[i,u,e.style]}),l=x(()=>{const i={paddingBottom:`${r.value}px`,marginRight:`${n.value}px`},u=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[i,u]});return Xn(()=>{const{size:i="small",wrap:u,direction:c,fill:f}=e;if(ft(i)){const[d=0,h=0]=i;n.value=d,r.value=h}else{let d;it(i)?d=i:d=yp[i||"small"]||yp.small,(u||f)&&c==="horizontal"?n.value=r.value=d:c==="horizontal"?(n.value=d,r.value=0):(r.value=d,n.value=0)}}),{classes:o,containerStyle:s,itemStyle:l}}const hV=Re({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ce([String,Object,Array]),default:""},style:{type:ce([String,Array,Object]),default:""},alignment:{type:ce(String),default:"center"},prefixCls:{type:String},spacer:{type:ce([Object,String,Number,Array]),default:null,validator:e=>Ln(e)||it(e)||kt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:dr,validator:e=>it(e)||ft(e)&&e.length===2&&e.every(it)}}),vV=oe({name:"ElSpace",props:hV,setup(e,{slots:t}){const{classes:o,containerStyle:n,itemStyle:r}=pV(e);function s(l,i="",u=[]){const{prefixCls:c}=e;return l.forEach((f,d)=>{Nd(f)?ft(f.children)&&f.children.forEach((h,v)=>{Nd(h)&&ft(h.children)?s(h.children,`${i+v}-`,u):u.push(Z(gp,{style:r.value,prefixCls:c,key:`nested-${i+v}`},{default:()=>[h]},$o.PROPS|$o.STYLE,["style","prefixCls"]))}):xw(f)&&u.push(Z(gp,{style:r.value,prefixCls:c,key:`LoopKey${i+d}`},{default:()=>[f]},$o.PROPS|$o.STYLE,["style","prefixCls"]))}),u}return()=>{var l;const{spacer:i,direction:u}=e,c=ye(t,"default",{key:0},()=>[]);if(((l=c.children)!=null?l:[]).length===0)return null;if(ft(c.children)){let f=s(c.children);if(i){const d=f.length-1;f=f.reduce((h,v,m)=>{const g=[...h,v];return m!==d&&g.push(Z("span",{style:[r.value,u==="vertical"?"width: 100%":null],key:m},[Ln(i)?i:It(i,$o.TEXT)],$o.STYLE)),g},[])}return Z("div",{class:o.value,style:n.value},f,$o.STYLE|$o.CLASS)}return c.children}}}),mV=dt(vV),gV=Re({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"}}),yV={[Lt]:(e,t)=>[e,t].every(it)},bV=oe({name:"ElSteps"}),wV=oe({...bV,props:gV,emits:yV,setup(e,{emit:t}){const o=e,n=be("steps"),r=F([]);return ke(r,()=>{r.value.forEach((s,l)=>{s.setIndex(l)})}),gt("ElSteps",{props:o,steps:r}),ke(()=>o.active,(s,l)=>{t(Lt,s,l)}),(s,l)=>(N(),U("div",{class:P([a(n).b(),a(n).m(s.simple?"simple":s.direction)])},[ye(s.$slots,"default")],2))}});var CV=Ie(wV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const SV=Re({title:{type:String,default:""},icon:{type:jt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),kV=oe({name:"ElStep"}),EV=oe({...kV,props:SV,setup(e){const t=e,o=be("step"),n=F(-1),r=F({}),s=F(""),l=Ue("ElSteps"),i=yt();ht(()=>{ke([()=>l.props.active,()=>l.props.processStatus,()=>l.props.finishStatus],([T])=>{w(T)},{immediate:!0})}),sn(()=>{l.steps.value=l.steps.value.filter(T=>T.uid!==(i==null?void 0:i.uid))});const u=x(()=>t.status||s.value),c=x(()=>{const T=l.steps.value[n.value-1];return T?T.currentStatus:"wait"}),f=x(()=>l.props.alignCenter),d=x(()=>l.props.direction==="vertical"),h=x(()=>l.props.simple),v=x(()=>l.steps.value.length),m=x(()=>{var T;return((T=l.steps.value[v.value-1])==null?void 0:T.uid)===(i==null?void 0:i.uid)}),g=x(()=>h.value?"":l.props.space),b=x(()=>{const T={flexBasis:typeof g.value=="number"?`${g.value}px`:g.value?g.value:`${100/(v.value-(f.value?0:1))}%`};return d.value||m.value&&(T.maxWidth=`${100/v.value}%`),T}),C=T=>{n.value=T},k=T=>{let $=100;const A={};A.transitionDelay=`${150*n.value}ms`,T===l.props.processStatus?$=0:T==="wait"&&($=0,A.transitionDelay=`${-150*n.value}ms`),A.borderWidth=$&&!h.value?"1px":0,A[l.props.direction==="vertical"?"height":"width"]=`${$}%`,r.value=A},w=T=>{T>n.value?s.value=l.props.finishStatus:T===n.value&&c.value!=="error"?s.value=l.props.processStatus:s.value="wait";const $=l.steps.value[n.value-1];$&&$.calcProgress(s.value)},E=Rt({uid:x(()=>i==null?void 0:i.uid),currentStatus:u,setIndex:C,calcProgress:k});return l.steps.value=[...l.steps.value,E],(T,$)=>(N(),U("div",{style:je(a(b)),class:P([a(o).b(),a(o).is(a(h)?"simple":a(l).props.direction),a(o).is("flex",a(m)&&!a(g)&&!a(f)),a(o).is("center",a(f)&&!a(d)&&!a(h))])},[de(" icon & line "),te("div",{class:P([a(o).e("head"),a(o).is(a(u))])},[a(h)?de("v-if",!0):(N(),U("div",{key:0,class:P(a(o).e("line"))},[te("i",{class:P(a(o).e("line-inner")),style:je(r.value)},null,6)],2)),te("div",{class:P([a(o).e("icon"),a(o).is(T.icon||T.$slots.icon?"icon":"text")])},[ye(T.$slots,"icon",{},()=>[T.icon?(N(),fe(a(_e),{key:0,class:P(a(o).e("icon-inner"))},{default:se(()=>[(N(),fe(St(T.icon)))]),_:1},8,["class"])):a(u)==="success"?(N(),fe(a(_e),{key:1,class:P([a(o).e("icon-inner"),a(o).is("status")])},{default:se(()=>[Z(a(Vs))]),_:1},8,["class"])):a(u)==="error"?(N(),fe(a(_e),{key:2,class:P([a(o).e("icon-inner"),a(o).is("status")])},{default:se(()=>[Z(a(mo))]),_:1},8,["class"])):a(h)?de("v-if",!0):(N(),U("div",{key:3,class:P(a(o).e("icon-inner"))},Ne(n.value+1),3))])],2)],2),de(" title & description "),te("div",{class:P(a(o).e("main"))},[te("div",{class:P([a(o).e("title"),a(o).is(a(u))])},[ye(T.$slots,"title",{},()=>[It(Ne(T.title),1)])],2),a(h)?(N(),U("div",{key:0,class:P(a(o).e("arrow"))},null,2)):(N(),U("div",{key:1,class:P([a(o).e("description"),a(o).is(a(u))])},[ye(T.$slots,"description",{},()=>[It(Ne(T.description),1)])],2))],2)],6))}});var bg=Ie(EV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const $V=dt(CV,{Step:bg}),TV=Ut(bg),OV=Re({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:jt},inactiveIcon:{type:jt},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:ce(Function)},size:{type:String,validator:Fs},tabindex:{type:[String,Number]}}),xV={[ut]:e=>en(e)||kt(e)||it(e),[Lt]:e=>en(e)||kt(e)||it(e),[Sn]:e=>en(e)||kt(e)||it(e)},IV=["onClick"],MV=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],NV=["aria-hidden"],PV=["aria-hidden"],RV=["aria-hidden"],au="ElSwitch",AV=oe({name:au}),DV=oe({...AV,props:OV,emits:xV,setup(e,{expose:t,emit:o}){const n=e,r=yt(),{formItem:s}=zn(),l=dn(),i=be("switch");Lo({from:'"value"',replacement:'"model-value" or "v-model"',scope:au,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},x(()=>{var T;return!!((T=r.vnode.props)!=null&&T.value)}));const{inputId:u}=fr(n,{formItemContext:s}),c=Jn(x(()=>n.loading)),f=F(n.modelValue!==!1),d=F(),h=F(),v=x(()=>[i.b(),i.m(l.value),i.is("disabled",c.value),i.is("checked",b.value)]),m=x(()=>({width:un(n.width)}));ke(()=>n.modelValue,()=>{f.value=!0}),ke(()=>n.value,()=>{f.value=!1});const g=x(()=>f.value?n.modelValue:n.value),b=x(()=>g.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(g.value)||(o(ut,n.inactiveValue),o(Lt,n.inactiveValue),o(Sn,n.inactiveValue)),ke(b,T=>{var $;d.value.checked=T,n.validateEvent&&(($=s==null?void 0:s.validate)==null||$.call(s,"change").catch(A=>on()))});const C=()=>{const T=b.value?n.inactiveValue:n.activeValue;o(ut,T),o(Lt,T),o(Sn,T),Ge(()=>{d.value.checked=b.value})},k=()=>{if(c.value)return;const{beforeChange:T}=n;if(!T){C();return}const $=T();[Ti($),en($)].includes(!0)||nn(au,"beforeChange must return type `Promise` or `boolean`"),Ti($)?$.then(R=>{R&&C()}).catch(R=>{}):$&&C()},w=x(()=>i.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),E=()=>{var T,$;($=(T=d.value)==null?void 0:T.focus)==null||$.call(T)};return ht(()=>{d.value.checked=b.value}),t({focus:E,checked:b}),(T,$)=>(N(),U("div",{class:P(a(v)),style:je(a(w)),onClick:nt(k,["prevent"])},[te("input",{id:a(u),ref_key:"input",ref:d,class:P(a(i).e("input")),type:"checkbox",role:"switch","aria-checked":a(b),"aria-disabled":a(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:a(c),tabindex:T.tabindex,onChange:C,onKeydown:Et(k,["enter"])},null,42,MV),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(N(),U("span",{key:0,class:P([a(i).e("label"),a(i).em("label","left"),a(i).is("active",!a(b))])},[T.inactiveIcon?(N(),fe(a(_e),{key:0},{default:se(()=>[(N(),fe(St(T.inactiveIcon)))]),_:1})):de("v-if",!0),!T.inactiveIcon&&T.inactiveText?(N(),U("span",{key:1,"aria-hidden":a(b)},Ne(T.inactiveText),9,NV)):de("v-if",!0)],2)):de("v-if",!0),te("span",{ref_key:"core",ref:h,class:P(a(i).e("core")),style:je(a(m))},[T.inlinePrompt?(N(),U("div",{key:0,class:P(a(i).e("inner"))},[T.activeIcon||T.inactiveIcon?(N(),fe(a(_e),{key:0,class:P(a(i).is("icon"))},{default:se(()=>[(N(),fe(St(a(b)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(N(),U("span",{key:1,class:P(a(i).is("text")),"aria-hidden":!a(b)},Ne(a(b)?T.activeText:T.inactiveText),11,PV)):de("v-if",!0)],2)):de("v-if",!0),te("div",{class:P(a(i).e("action"))},[T.loading?(N(),fe(a(_e),{key:0,class:P(a(i).is("loading"))},{default:se(()=>[Z(a(Gr))]),_:1},8,["class"])):de("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(N(),U("span",{key:1,class:P([a(i).e("label"),a(i).em("label","right"),a(i).is("active",a(b))])},[T.activeIcon?(N(),fe(a(_e),{key:0},{default:se(()=>[(N(),fe(St(T.activeIcon)))]),_:1})):de("v-if",!0),!T.activeIcon&&T.activeText?(N(),U("span",{key:1,"aria-hidden":!a(b)},Ne(T.activeText),9,RV)):de("v-if",!0)],2)):de("v-if",!0)],14,IV))}});var LV=Ie(DV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const BV=dt(LV);var zV=/["'&<>]/,VV=FV;function FV(e){var t=""+e,o=zV.exec(t);if(!o)return t;var n,r="",s=0,l=0;for(s=o.index;stypeof c=="string"?Ht(i,c):c(i,u,e))):(t!=="$key"&&bp(i)&&"$value"in i&&(i=i.$value),[bp(i)?Ht(i,t):i])},l=function(i,u){if(n)return n(i.value,u.value);for(let c=0,f=i.key.length;cu.key[c])return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:s?s(i,u):null})).sort((i,u)=>{let c=l(i,u);return c||(c=i.index-u.index),c*+o}).map(i=>i.value)},wg=function(e,t){let o=null;return e.columns.forEach(n=>{n.id===t&&(o=n)}),o},WV=function(e,t){let o=null;for(let n=0;n{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const o=t.split(".");let n=e;for(const r of o)n=n[r];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Qo=function(e,t){const o={};return(e||[]).forEach((n,r)=>{o[fn(n,t)]={row:n,index:r}}),o};function KV(e,t){const o={};let n;for(n in e)o[n]=e[n];for(n in t)if(_n(t,n)){const r=t[n];typeof r<"u"&&(o[n]=r)}return o}function Cc(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Cg(e){return e===""||e!==void 0&&(e=Cc(e),Number.isNaN(e)&&(e=80)),e}function _V(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function jV(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,o)=>(...n)=>t(o(...n)))}function ys(e,t,o){let n=!1;const r=e.indexOf(t),s=r!==-1,l=i=>{i==="add"?e.push(t):e.splice(r,1),n=!0,ft(t.children)&&t.children.forEach(u=>{ys(e,u,o??!s)})};return en(o)?o&&!s?l("add"):!o&&s&&l("remove"):l(s?"remove":"add"),n}function YV(e,t,o="children",n="hasChildren"){const r=l=>!(Array.isArray(l)&&l.length);function s(l,i,u){t(l,i,u),i.forEach(c=>{if(c[n]){t(c,null,u+1);return}const f=c[o];r(f)||s(c,f,u+1)})}e.forEach(l=>{if(l[n]){t(l,null,0);return}const i=l[o];r(i)||s(l,i,0)})}let io;function UV(e,t,o,n,r){const{nextZIndex:s}=cr(),l=e==null?void 0:e.dataset.prefix,i=e==null?void 0:e.querySelector(`.${l}-scrollbar__wrap`);function u(){const m=r==="light",g=document.createElement("div");return g.className=`${l}-popper ${m?"is-light":"is-dark"}`,o=VV(o),g.innerHTML=o,g.style.zIndex=String(s()),e==null||e.appendChild(g),g}function c(){const m=document.createElement("div");return m.className=`${l}-popper__arrow`,m}function f(){d&&d.update()}io==null||io(),io=()=>{try{d&&d.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",io),i==null||i.removeEventListener("scroll",io),io=void 0}catch{}};let d=null;const h=u(),v=c();return h.appendChild(v),d=$v(t,h,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:v,padding:10}}],...n}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",io),i==null||i.addEventListener("scroll",io),d}function Sg(e){return e.children?q1(e.children,Sg):[e]}function Cp(e,t){return e+t.colSpan}const kg=(e,t,o,n)=>{let r=0,s=e;const l=o.states.columns.value;if(n){const u=Sg(n[e]);r=l.slice(0,l.indexOf(u[0])).reduce(Cp,0),s=r+u.reduce(Cp,0)-1}else r=e;let i;switch(t){case"left":s=l.length-o.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:s=l.length-o.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:r,after:s}:{}},Sc=(e,t,o,n,r,s=0)=>{const l=[],{direction:i,start:u,after:c}=kg(t,o,n,r);if(i){const f=i==="left";l.push(`${e}-fixed-column--${i}`),f&&c+s===n.states.fixedLeafColumnsLength.value-1?l.push("is-last-column"):!f&&u-s===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&l.push("is-first-column")}return l};function Sp(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const kc=(e,t,o,n)=>{const{direction:r,start:s=0,after:l=0}=kg(e,t,o,n);if(!r)return;const i={},u=r==="left",c=o.states.columns.value;return u?i.left=c.slice(0,s).reduce(Sp,0):i.right=c.slice(l+1).reverse().reduce(Sp,0),i},Yr=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function GV(e){const t=yt(),o=F(!1),n=F([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(o.value)n.value=u.slice();else if(c){const f=Qo(n.value,c);n.value=u.reduce((d,h)=>{const v=fn(h,c);return f[v]&&d.push(h),d},[])}else n.value=[]},toggleRowExpansion:(u,c)=>{ys(n.value,u,c)&&t.emit("expand-change",u,n.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],f=e.rowKey.value,d=Qo(c,f);n.value=u.reduce((h,v)=>{const m=d[v];return m&&h.push(m.row),h},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Qo(n.value,c)[fn(u,c)]:n.value.includes(u)},states:{expandRows:n,defaultExpandAll:o}}}function qV(e){const t=yt(),o=F(null),n=F(null),r=c=>{t.store.assertRowKey(),o.value=c,l(c)},s=()=>{o.value=null},l=c=>{const{data:f,rowKey:d}=e;let h=null;d.value&&(h=(a(f)||[]).find(v=>fn(v,d.value)===c)),n.value=h,t.emit("current-change",n.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:s,setCurrentRowByKey:l,updateCurrentRow:c=>{const f=n.value;if(c&&c!==f){n.value=c,t.emit("current-change",n.value,f);return}!c&&f&&(n.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const c=e.rowKey.value,f=e.data.value||[],d=n.value;if(!f.includes(d)&&d){if(c){const h=fn(d,c);l(h)}else n.value=null;n.value===null&&t.emit("current-change",null,d)}else o.value&&(l(o.value),s())},states:{_currentRowKey:o,currentRow:n}}}function XV(e){const t=F([]),o=F({}),n=F(16),r=F(!1),s=F({}),l=F("hasChildren"),i=F("children"),u=yt(),c=x(()=>{if(!e.rowKey.value)return{};const C=e.data.value||[];return d(C)}),f=x(()=>{const C=e.rowKey.value,k=Object.keys(s.value),w={};return k.length&&k.forEach(E=>{if(s.value[E].length){const T={children:[]};s.value[E].forEach($=>{const A=fn($,C);T.children.push(A),$[l.value]&&!w[A]&&(w[A]={children:[]})}),w[E]=T}}),w}),d=C=>{const k=e.rowKey.value,w={};return YV(C,(E,T,$)=>{const A=fn(E,k);Array.isArray(T)?w[A]={children:T.map(R=>fn(R,k)),level:$}:r.value&&(w[A]={children:[],lazy:!0,level:$})},i.value,l.value),w},h=(C=!1,k=(w=>(w=u.store)==null?void 0:w.states.defaultExpandAll.value)())=>{var w;const E=c.value,T=f.value,$=Object.keys(E),A={};if($.length){const R=a(o),M=[],I=(L,z)=>{if(C)return t.value?k||t.value.includes(z):!!(k||(L==null?void 0:L.expanded));{const H=k||t.value&&t.value.includes(z);return!!((L==null?void 0:L.expanded)||H)}};$.forEach(L=>{const z=R[L],H={...E[L]};if(H.expanded=I(z,L),H.lazy){const{loaded:W=!1,loading:j=!1}=z||{};H.loaded=!!W,H.loading=!!j,M.push(L)}A[L]=H});const _=Object.keys(T);r.value&&_.length&&M.length&&_.forEach(L=>{const z=R[L],H=T[L].children;if(M.includes(L)){if(A[L].children.length!==0)throw new Error("[ElTable]children must be an empty array.");A[L].children=H}else{const{loaded:W=!1,loading:j=!1}=z||{};A[L]={lazy:!0,loaded:!!W,loading:!!j,expanded:I(z,L),children:H,level:""}}})}o.value=A,(w=u.store)==null||w.updateTableScrollY()};ke(()=>t.value,()=>{h(!0)}),ke(()=>c.value,()=>{h()}),ke(()=>f.value,()=>{h()});const v=C=>{t.value=C,h()},m=(C,k)=>{u.store.assertRowKey();const w=e.rowKey.value,E=fn(C,w),T=E&&o.value[E];if(E&&T&&"expanded"in T){const $=T.expanded;k=typeof k>"u"?!T.expanded:k,o.value[E].expanded=k,$!==k&&u.emit("expand-change",C,k),u.store.updateTableScrollY()}},g=C=>{u.store.assertRowKey();const k=e.rowKey.value,w=fn(C,k),E=o.value[w];r.value&&E&&"loaded"in E&&!E.loaded?b(C,w,E):m(C,void 0)},b=(C,k,w)=>{const{load:E}=u.props;E&&!o.value[k].loaded&&(o.value[k].loading=!0,E(C,w,T=>{if(!Array.isArray(T))throw new TypeError("[ElTable] data must be an array");o.value[k].loading=!1,o.value[k].loaded=!0,o.value[k].expanded=!0,T.length&&(s.value[k]=T),u.emit("expand-change",C,!0)}))};return{loadData:b,loadOrToggle:g,toggleTreeExpansion:m,updateTreeExpandKeys:v,updateTreeData:h,normalize:d,states:{expandRowKeys:t,treeData:o,indent:n,lazy:r,lazyTreeNodeMap:s,lazyColumnIdentifier:l,childrenColumnName:i}}}const ZV=(e,t)=>{const o=t.sortingColumn;return!o||typeof o.sortable=="string"?e:HV(e,t.sortProp,t.sortOrder,o.sortMethod,o.sortBy)},Pa=e=>{const t=[];return e.forEach(o=>{o.children?t.push.apply(t,Pa(o.children)):t.push(o)}),t};function JV(){var e;const t=yt(),{size:o}=tn((e=t.proxy)==null?void 0:e.$props),n=F(null),r=F([]),s=F([]),l=F(!1),i=F([]),u=F([]),c=F([]),f=F([]),d=F([]),h=F([]),v=F([]),m=F([]),g=F(0),b=F(0),C=F(0),k=F(!1),w=F([]),E=F(!1),T=F(!1),$=F(null),A=F({}),R=F(null),M=F(null),I=F(null),_=F(null),L=F(null);ke(r,()=>t.state&&j(!1),{deep:!0});const z=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},H=ue=>{var Me;(Me=ue.children)==null||Me.forEach(We=>{We.fixed=ue.fixed,H(We)})},W=()=>{i.value.forEach(ne=>{H(ne)}),f.value=i.value.filter(ne=>ne.fixed===!0||ne.fixed==="left"),d.value=i.value.filter(ne=>ne.fixed==="right"),f.value.length>0&&i.value[0]&&i.value[0].type==="selection"&&!i.value[0].fixed&&(i.value[0].fixed=!0,f.value.unshift(i.value[0]));const ue=i.value.filter(ne=>!ne.fixed);u.value=[].concat(f.value).concat(ue).concat(d.value);const Me=Pa(ue),We=Pa(f.value),Y=Pa(d.value);g.value=Me.length,b.value=We.length,C.value=Y.length,c.value=[].concat(We).concat(Me).concat(Y),l.value=f.value.length>0||d.value.length>0},j=(ue,Me=!1)=>{ue&&W(),Me?t.state.doLayout():t.state.debouncedUpdateLayout()},D=ue=>w.value.includes(ue),V=()=>{k.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},B=()=>{let ue;if(n.value){ue=[];const Me=Qo(w.value,n.value),We=Qo(r.value,n.value);for(const Y in Me)_n(Me,Y)&&!We[Y]&&ue.push(Me[Y].row)}else ue=w.value.filter(Me=>!r.value.includes(Me));if(ue.length){const Me=w.value.filter(We=>!ue.includes(We));w.value=Me,t.emit("selection-change",Me.slice())}},X=()=>(w.value||[]).slice(),Q=(ue,Me=void 0,We=!0)=>{if(ys(w.value,ue,Me)){const ne=(w.value||[]).slice();We&&t.emit("select",ne,ue),t.emit("selection-change",ne)}},q=()=>{var ue,Me;const We=T.value?!k.value:!(k.value||w.value.length);k.value=We;let Y=!1,ne=0;const he=(Me=(ue=t==null?void 0:t.store)==null?void 0:ue.states)==null?void 0:Me.rowKey.value;r.value.forEach(($e,Be)=>{const Mt=Be+ne;$.value?$.value.call(null,$e,Mt)&&ys(w.value,$e,We)&&(Y=!0):ys(w.value,$e,We)&&(Y=!0),ne+=me(fn($e,he))}),Y&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},ee=()=>{const ue=Qo(w.value,n.value);r.value.forEach(Me=>{const We=fn(Me,n.value),Y=ue[We];Y&&(w.value[Y.index]=Me)})},ve=()=>{var ue,Me,We;if(((ue=r.value)==null?void 0:ue.length)===0){k.value=!1;return}let Y;n.value&&(Y=Qo(w.value,n.value));const ne=function(Mt){return Y?!!Y[fn(Mt,n.value)]:w.value.includes(Mt)};let he=!0,$e=0,Be=0;for(let Mt=0,Nt=(r.value||[]).length;Mt{var Me;if(!t||!t.store)return 0;const{treeData:We}=t.store.states;let Y=0;const ne=(Me=We.value[ue])==null?void 0:Me.children;return ne&&(Y+=ne.length,ne.forEach(he=>{Y+=me(he)})),Y},Ce=(ue,Me)=>{Array.isArray(ue)||(ue=[ue]);const We={};return ue.forEach(Y=>{A.value[Y.id]=Me,We[Y.columnKey||Y.id]=Me}),We},le=(ue,Me,We)=>{M.value&&M.value!==ue&&(M.value.order=null),M.value=ue,I.value=Me,_.value=We},re=()=>{let ue=a(s);Object.keys(A.value).forEach(Me=>{const We=A.value[Me];if(!We||We.length===0)return;const Y=wg({columns:c.value},Me);Y&&Y.filterMethod&&(ue=ue.filter(ne=>We.some(he=>Y.filterMethod.call(null,he,ne,Y))))}),R.value=ue},ie=()=>{r.value=ZV(R.value,{sortingColumn:M.value,sortProp:I.value,sortOrder:_.value})},pe=(ue=void 0)=>{ue&&ue.filter||re(),ie()},Ae=ue=>{const{tableHeaderRef:Me}=t.refs;if(!Me)return;const We=Object.assign({},Me.filterPanels),Y=Object.keys(We);if(!!Y.length)if(typeof ue=="string"&&(ue=[ue]),Array.isArray(ue)){const ne=ue.map(he=>WV({columns:c.value},he));Y.forEach(he=>{const $e=ne.find(Be=>Be.id===he);$e&&($e.filteredValue=[])}),t.store.commit("filterChange",{column:ne,values:[],silent:!0,multi:!0})}else Y.forEach(ne=>{const he=c.value.find($e=>$e.id===ne);he&&(he.filteredValue=[])}),A.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Le=()=>{!M.value||(le(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Xe,toggleRowExpansion:xe,updateExpandRows:He,states:ot,isRowExpanded:Pe}=GV({data:r,rowKey:n}),{updateTreeExpandKeys:qe,toggleTreeExpansion:ze,updateTreeData:Se,loadOrToggle:Oe,states:De}=XV({data:r,rowKey:n}),{updateCurrentRowData:Je,updateCurrentRow:rt,setCurrentRowKey:st,states:Ee}=qV({data:r,rowKey:n});return{assertRowKey:z,updateColumns:W,scheduleLayout:j,isSelected:D,clearSelection:V,cleanSelection:B,getSelectionRows:X,toggleRowSelection:Q,_toggleAllSelection:q,toggleAllSelection:null,updateSelectionByRowKey:ee,updateAllSelected:ve,updateFilters:Ce,updateCurrentRow:rt,updateSort:le,execFilter:re,execSort:ie,execQuery:pe,clearFilter:Ae,clearSort:Le,toggleRowExpansion:xe,setExpandRowKeysAdapter:ue=>{Xe(ue),qe(ue)},setCurrentRowKey:st,toggleRowExpansionAdapter:(ue,Me)=>{c.value.some(({type:Y})=>Y==="expand")?xe(ue,Me):ze(ue,Me)},isRowExpanded:Pe,updateExpandRows:He,updateCurrentRowData:Je,loadOrToggle:Oe,updateTreeData:Se,states:{tableSize:o,rowKey:n,data:r,_data:s,isComplex:l,_columns:i,originColumns:u,columns:c,fixedColumns:f,rightFixedColumns:d,leafColumns:h,fixedLeafColumns:v,rightFixedLeafColumns:m,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:k,selection:w,reserveSelection:E,selectOnIndeterminate:T,selectable:$,filters:A,filteredData:R,sortingColumn:M,sortProp:I,sortOrder:_,hoverRow:L,...ot,...De,...Ee}}}function lu(e,t){return e.map(o=>{var n;return o.id===t.id?t:((n=o.children)!=null&&n.length&&(o.children=lu(o.children,t)),o)})}function Eg(e){e.forEach(t=>{var o,n;t.no=(o=t.getColumnIndex)==null?void 0:o.call(t),(n=t.children)!=null&&n.length&&Eg(t.children)}),e.sort((t,o)=>t.no-o.no)}function QV(){const e=yt(),t=JV();return{ns:be("table"),...t,mutations:{setData(l,i){const u=a(l._data)!==i;l.data.value=i,l._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),a(l.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(l,i,u){const c=a(l._columns);let f=[];u?(u&&!u.children&&(u.children=[]),u.children.push(i),f=lu(c,u)):(c.push(i),f=c),Eg(f),l._columns.value=f,i.type==="selection"&&(l.selectable.value=i.selectable,l.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(l,i,u){const c=a(l._columns)||[];if(u)u.children.splice(u.children.findIndex(f=>f.id===i.id),1),Ge(()=>{var f;((f=u.children)==null?void 0:f.length)===0&&delete u.children}),l._columns.value=lu(c,u);else{const f=c.indexOf(i);f>-1&&(c.splice(f,1),l._columns.value=c)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(l,i){const{prop:u,order:c,init:f}=i;if(u){const d=a(l.columns).find(h=>h.property===u);d&&(d.order=c,e.store.updateSort(d,u,c),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(l,i){const{sortingColumn:u,sortProp:c,sortOrder:f}=l,d=a(u),h=a(c),v=a(f);v===null&&(l.sortingColumn.value=null,l.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:d,prop:h,order:v}),e.store.updateTableScrollY()},filterChange(l,i){const{column:u,values:c,silent:f}=i,d=e.store.updateFilters(u,c);e.store.execQuery(),f||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(l,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(l,i){l.hoverRow.value=i},setCurrentRow(l,i){e.store.updateCurrentRow(i)}},commit:function(l,...i){const u=e.store.mutations;if(u[l])u[l].apply(e,[e.store.states].concat(i));else throw new Error(`Action not found: ${l}`)},updateTableScrollY:function(){Ge(()=>e.layout.updateScrollY.apply(e.layout))}}}const bs={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 eF(e,t){if(!e)throw new Error("Table is required.");const o=QV();return o.toggleAllSelection=kn(o._toggleAllSelection,10),Object.keys(bs).forEach(n=>{$g(Tg(t,n),n,o)}),tF(o,t),o}function tF(e,t){Object.keys(bs).forEach(o=>{ke(()=>Tg(t,o),n=>{$g(n,o,e)})})}function $g(e,t,o){let n=e,r=bs[t];typeof bs[t]=="object"&&(r=r.key,n=n||bs[t].default),o.states[r].value=n}function Tg(e,t){if(t.includes(".")){const o=t.split(".");let n=e;return o.forEach(r=>{n=n[r]}),n}else return e[t]}class nF{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=F(null),this.scrollX=F(!1),this.scrollY=F(!1),this.bodyWidth=F(null),this.fixedWidth=F(null),this.rightFixedWidth=F(null),this.gutterWidth=0;for(const o in t)_n(t,o)&&(Wn(this[o])?this[o].value=t[o]:this[o]=t[o]);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 o=this.table.refs.scrollBarRef;if(this.table.vnode.el&&o){let n=!0;const r=this.scrollY.value;return n=o.wrapRef.scrollHeight>o.wrapRef.clientHeight,this.scrollY.value=n,r!==n}return!1}setHeight(t,o="height"){if(!Dt)return;const n=this.table.vnode.el;if(t=_V(t),this.height.value=Number(t),!n&&(t||t===0))return Ge(()=>this.setHeight(t,o));typeof t=="number"?(n.style[o]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[o]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let o=t;for(;o.tagName!=="DIV";){if(getComputedStyle(o).display==="none")return!0;o=o.parentElement}return!1}updateColumnsWidth(){if(!Dt)return;const t=this.fit,o=this.table.vnode.el.clientWidth;let n=0;const r=this.getFlattenColumns(),s=r.filter(u=>typeof u.width!="number");if(r.forEach(u=>{typeof u.width=="number"&&u.realWidth&&(u.realWidth=null)}),s.length>0&&t){if(r.forEach(u=>{n+=Number(u.width||u.minWidth||80)}),n<=o){this.scrollX.value=!1;const u=o-n;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+u;else{const c=s.reduce((h,v)=>h+Number(v.minWidth||80),0),f=u/c;let d=0;s.forEach((h,v)=>{if(v===0)return;const m=Math.floor(Number(h.minWidth||80)*f);d+=m,h.realWidth=Number(h.minWidth||80)+m}),s[0].realWidth=Number(s[0].minWidth||80)+u-d}}else this.scrollX.value=!0,s.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(n,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),n+=u.realWidth}),this.scrollX.value=n>o,this.bodyWidth.value=n;const l=this.store.states.fixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let u=0;i.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const o=this.observers.indexOf(t);o!==-1&&this.observers.splice(o,1)}notifyObservers(t){this.observers.forEach(n=>{var r,s;switch(t){case"columns":(r=n.state)==null||r.onColumnsChange(this);break;case"scrollable":(s=n.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:oF}=Un,rF=oe({name:"ElTableFilterPanel",components:{ElCheckbox:Un,ElCheckboxGroup:oF,ElScrollbar:So,ElTooltip:xn,ElIcon:_e,ArrowDown:Vo,ArrowUp:ll},directives:{ClickOutside:zo},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=yt(),{t:o}=$t(),n=be("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const s=F(!1),l=F(null),i=x(()=>e.column&&e.column.filters),u=x({get:()=>{var E;return(((E=e.column)==null?void 0:E.filteredValue)||[])[0]},set:E=>{c.value&&(typeof E<"u"&&E!==null?c.value.splice(0,1,E):c.value.splice(0,1))}}),c=x({get(){return e.column?e.column.filteredValue||[]:[]},set(E){e.column&&e.upDataColumn("filteredValue",E)}}),f=x(()=>e.column?e.column.filterMultiple:!0),d=E=>E.value===u.value,h=()=>{s.value=!1},v=E=>{E.stopPropagation(),s.value=!s.value},m=()=>{s.value=!1},g=()=>{k(c.value),h()},b=()=>{c.value=[],k(c.value),h()},C=E=>{u.value=E,k(typeof E<"u"&&E!==null?c.value:[]),h()},k=E=>{e.store.commit("filterChange",{column:e.column,values:E}),e.store.updateAllSelected()};ke(s,E=>{e.column&&e.upDataColumn("filterOpened",E)},{immediate:!0});const w=x(()=>{var E,T;return(T=(E=l.value)==null?void 0:E.popperRef)==null?void 0:T.contentRef});return{tooltipVisible:s,multiple:f,filteredValue:c,filterValue:u,filters:i,handleConfirm:g,handleReset:b,handleSelect:C,isActive:d,t:o,ns:n,showFilterPanel:v,hideFilterPanel:m,popperPaneRef:w,tooltip:l}}}),sF={key:0},aF=["disabled"],lF=["label","onClick"];function iF(e,t,o,n,r,s){const l=tt("el-checkbox"),i=tt("el-checkbox-group"),u=tt("el-scrollbar"),c=tt("arrow-up"),f=tt("arrow-down"),d=tt("el-icon"),h=tt("el-tooltip"),v=Rr("click-outside");return N(),fe(h,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:se(()=>[e.multiple?(N(),U("div",sF,[te("div",{class:P(e.ns.e("content"))},[Z(u,{"wrap-class":e.ns.e("wrap")},{default:se(()=>[Z(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:P(e.ns.e("checkbox-group"))},{default:se(()=>[(N(!0),U(Qe,null,bt(e.filters,m=>(N(),fe(l,{key:m.value,label:m.value},{default:se(()=>[It(Ne(m.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),te("div",{class:P(e.ns.e("bottom"))},[te("button",{class:P({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},Ne(e.t("el.table.confirmFilter")),11,aF),te("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},Ne(e.t("el.table.resetFilter")),1)],2)])):(N(),U("ul",{key:1,class:P(e.ns.e("list"))},[te("li",{class:P([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=m=>e.handleSelect(null))},Ne(e.t("el.table.clearFilter")),3),(N(!0),U(Qe,null,bt(e.filters,m=>(N(),U("li",{key:m.value,class:P([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:g=>e.handleSelect(m.value)},Ne(m.text),11,lF))),128))],2))]),default:se(()=>[lt((N(),U("span",{class:P([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...m)=>e.showFilterPanel&&e.showFilterPanel(...m))},[Z(d,null,{default:se(()=>[e.column.filterOpened?(N(),fe(c,{key:0})):(N(),fe(f,{key:1}))]),_:1})],2)),[[v,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var uF=Ie(rF,[["render",iF],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Og(e){const t=yt();sl(()=>{o.value.addObserver(t)}),ht(()=>{n(o.value),r(o.value)}),ur(()=>{n(o.value),r(o.value)}),zs(()=>{o.value.removeObserver(t)});const o=x(()=>{const s=e.layout;if(!s)throw new Error("Can not find table layout.");return s}),n=s=>{var l;const i=((l=e.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=s.getFlattenColumns(),c={};u.forEach(f=>{c[f.id]=f});for(let f=0,d=i.length;f{var l,i;const u=((l=e.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,d=u.length;f{g.stopPropagation()},s=(g,b)=>{!b.filters&&b.sortable?m(g,b,!1):b.filterable&&!b.sortable&&r(g),n==null||n.emit("header-click",b,g)},l=(g,b)=>{n==null||n.emit("header-contextmenu",b,g)},i=F(null),u=F(!1),c=F({}),f=(g,b)=>{if(!!Dt&&!(b.children&&b.children.length>0)&&i.value&&e.border){u.value=!0;const C=n;t("set-drag-visible",!0);const w=(C==null?void 0:C.vnode.el).getBoundingClientRect().left,E=o.vnode.el.querySelector(`th.${b.id}`),T=E.getBoundingClientRect(),$=T.left-w+30;fo(E,"noclick"),c.value={startMouseLeft:g.clientX,startLeft:T.right-w,startColumnLeft:T.left-w,tableLeft:w};const A=C==null?void 0:C.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=I=>{const _=I.clientX-c.value.startMouseLeft,L=c.value.startLeft+_;A.style.left=`${Math.max($,L)}px`},M=()=>{if(u.value){const{startColumnLeft:I,startLeft:_}=c.value,z=Number.parseInt(A.style.left,10)-I;b.width=b.realWidth=z,C==null||C.emit("header-dragend",b.width,_-I,b,g),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{An(E,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",M)}},d=(g,b)=>{var C;if(b.children&&b.children.length>0)return;const k=(C=g.target)==null?void 0:C.closest("th");if(!(!b||!b.resizable)&&!u.value&&e.border){const w=k.getBoundingClientRect(),E=document.body.style;w.width>12&&w.right-g.pageX<8?(E.cursor="col-resize",ho(k,"is-sortable")&&(k.style.cursor="col-resize"),i.value=b):u.value||(E.cursor="",ho(k,"is-sortable")&&(k.style.cursor="pointer"),i.value=null)}},h=()=>{!Dt||(document.body.style.cursor="")},v=({order:g,sortOrders:b})=>{if(g==="")return b[0];const C=b.indexOf(g||null);return b[C>b.length-2?0:C+1]},m=(g,b,C)=>{var k;g.stopPropagation();const w=b.order===C?null:C||v(b),E=(k=g.target)==null?void 0:k.closest("th");if(E&&ho(E,"noclick")){An(E,"noclick");return}if(!b.sortable)return;const T=e.store.states;let $=T.sortProp.value,A;const R=T.sortingColumn.value;(R!==b||R===b&&R.order===null)&&(R&&(R.order=null),T.sortingColumn.value=b,$=b.property),w?A=b.order=w:A=b.order=null,T.sortProp.value=$,T.sortOrder.value=A,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:m,handleFilterClick:r}}function dF(e){const t=Ue(ao),o=be("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return typeof u=="function"?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,f)=>{var d;let h=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof h=="function"&&(h=h.call(null,{rowIndex:i,columnIndex:u,row:c,column:f}));const v=kc(u,f.fixed,e.store,c);return Yr(v,"left"),Yr(v,"right"),Object.assign({},h,v)},getHeaderCellClass:(i,u,c,f)=>{const d=Sc(o.b(),u,f.fixed,e.store,c),h=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...d];f.children||h.push("is-leaf"),f.sortable&&h.push("is-sortable");const v=t==null?void 0:t.props.headerCellClassName;return typeof v=="string"?h.push(v):typeof v=="function"&&h.push(v.call(null,{rowIndex:i,columnIndex:u,row:c,column:f})),h.push(o.e("cell")),h.filter(m=>Boolean(m)).join(" ")}}}const xg=e=>{const t=[];return e.forEach(o=>{o.children?(t.push(o),t.push.apply(t,xg(o.children))):t.push(o)}),t},fF=e=>{let t=1;const o=(s,l)=>{if(l&&(s.level=l.level+1,t{o(u,s),i+=u.colSpan}),s.colSpan=i}else s.colSpan=1};e.forEach(s=>{s.level=1,o(s,void 0)});const n=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(l=>l.isSubColumn=!0)):s.rowSpan=t-s.level+1,n[s.level-1].push(s)}),n};function pF(e){const t=Ue(ao),o=x(()=>fF(e.store.states.originColumns.value));return{isGroup:x(()=>{const s=o.value.length>1;return s&&t&&(t.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:o}}var hF=oe({name:"ElTableHeader",components:{ElCheckbox:Un},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const o=yt(),n=Ue(ao),r=be("table"),s=F({}),{onColumnsChange:l,onScrollableChange:i}=Og(n);ht(async()=>{await Ge(),await Ge();const{prop:$,order:A}=e.defaultSort;n==null||n.store.commit("sort",{prop:$,order:A,init:!0})});const{handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:v,handleFilterClick:m}=cF(e,t),{getHeaderRowStyle:g,getHeaderRowClass:b,getHeaderCellStyle:C,getHeaderCellClass:k}=dF(e),{isGroup:w,toggleAllSelection:E,columnRows:T}=pF(e);return o.state={onColumnsChange:l,onScrollableChange:i},o.filterPanels=s,{ns:r,filterPanels:s,onColumnsChange:l,onScrollableChange:i,columnRows:T,getHeaderRowClass:b,getHeaderRowStyle:g,getHeaderCellClass:k,getHeaderCellStyle:C,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:v,handleFilterClick:m,isGroup:w,toggleAllSelection:E}},render(){const{ns:e,isGroup:t,columnRows:o,getHeaderCellStyle:n,getHeaderCellClass:r,getHeaderRowClass:s,getHeaderRowStyle:l,handleHeaderClick:i,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleSortClick:d,handleMouseOut:h,store:v,$parent:m}=this;let g=1;return Ke("thead",{class:{[e.is("group")]:t}},o.map((b,C)=>Ke("tr",{class:s(C),key:C,style:l(C)},b.map((k,w)=>(k.rowSpan>g&&(g=k.rowSpan),Ke("th",{class:r(C,w,b,k),colspan:k.colSpan,key:`${k.id}-thead`,rowspan:k.rowSpan,style:n(C,w,b,k),onClick:E=>i(E,k),onContextmenu:E=>u(E,k),onMousedown:E=>c(E,k),onMousemove:E=>f(E,k),onMouseout:h},[Ke("div",{class:["cell",k.filteredValue&&k.filteredValue.length>0?"highlight":""]},[k.renderHeader?k.renderHeader({column:k,$index:w,store:v,_self:m}):k.label,k.sortable&&Ke("span",{onClick:E=>d(E,k),class:"caret-wrapper"},[Ke("i",{onClick:E=>d(E,k,"ascending"),class:"sort-caret ascending"}),Ke("i",{onClick:E=>d(E,k,"descending"),class:"sort-caret descending"})]),k.filterable&&Ke(uF,{store:v,placement:k.filterPlacement||"bottom-start",column:k,upDataColumn:(E,T)=>{k[E]=T}})])]))))))}});function vF(e){const t=Ue(ao),o=F(""),n=F(Ke("div")),r=(h,v,m)=>{var g;const b=t,C=wi(h);let k;const w=(g=b==null?void 0:b.vnode.el)==null?void 0:g.dataset.prefix;C&&(k=wp({columns:e.store.states.columns.value},C,w),k&&(b==null||b.emit(`cell-${m}`,v,k,C,h))),b==null||b.emit(`row-${m}`,v,k,h)},s=(h,v)=>{r(h,v,"dblclick")},l=(h,v)=>{e.store.commit("setCurrentRow",v),r(h,v,"click")},i=(h,v)=>{r(h,v,"contextmenu")},u=kn(h=>{e.store.commit("setHoverRow",h)},30),c=kn(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:s,handleClick:l,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,v,m)=>{var g;const b=t,C=wi(h),k=(g=b==null?void 0:b.vnode.el)==null?void 0:g.dataset.prefix;if(C){const A=wp({columns:e.store.states.columns.value},C,k),R=b.hoverState={cell:C,column:A,row:v};b==null||b.emit("cell-mouse-enter",R.row,R.column,R.cell,h)}const w=h.target.querySelector(".cell");if(!(ho(w,`${k}-tooltip`)&&w.childNodes.length))return;const E=document.createRange();E.setStart(w,0),E.setEnd(w,w.childNodes.length);const T=Math.round(E.getBoundingClientRect().width),$=(Number.parseInt(Go(w,"paddingLeft"),10)||0)+(Number.parseInt(Go(w,"paddingRight"),10)||0);(T+$>w.offsetWidth||w.scrollWidth>w.offsetWidth)&&UV(t==null?void 0:t.refs.tableWrapper,C,C.innerText||C.textContent,{placement:"top",strategy:"fixed"},m)},handleCellMouseLeave:h=>{if(!wi(h))return;const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,h)},tooltipContent:o,tooltipTrigger:n}}function mF(e){const t=Ue(ao),o=be("table");return{getRowStyle:(c,f)=>{const d=t==null?void 0:t.props.rowStyle;return typeof d=="function"?d.call(null,{row:c,rowIndex:f}):d||null},getRowClass:(c,f)=>{const d=[o.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&f%2===1&&d.push(o.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{row:c,rowIndex:f})),d},getCellStyle:(c,f,d,h)=>{const v=t==null?void 0:t.props.cellStyle;let m=v??{};typeof v=="function"&&(m=v.call(null,{rowIndex:c,columnIndex:f,row:d,column:h}));const g=kc(f,e==null?void 0:e.fixed,e.store);return Yr(g,"left"),Yr(g,"right"),Object.assign({},m,g)},getCellClass:(c,f,d,h,v)=>{const m=Sc(o.b(),f,e==null?void 0:e.fixed,e.store,void 0,v),g=[h.id,h.align,h.className,...m],b=t==null?void 0:t.props.cellClassName;return typeof b=="string"?g.push(b):typeof b=="function"&&g.push(b.call(null,{rowIndex:c,columnIndex:f,row:d,column:h})),g.push(o.e("cell")),g.filter(C=>Boolean(C)).join(" ")},getSpan:(c,f,d,h)=>{let v=1,m=1;const g=t==null?void 0:t.props.spanMethod;if(typeof g=="function"){const b=g({row:c,column:f,rowIndex:d,columnIndex:h});Array.isArray(b)?(v=b[0],m=b[1]):typeof b=="object"&&(v=b.rowspan,m=b.colspan)}return{rowspan:v,colspan:m}},getColspanRealWidth:(c,f,d)=>{if(f<1)return c[d].realWidth;const h=c.map(({realWidth:v,width:m})=>v||m).slice(d,d+f);return Number(h.reduce((v,m)=>Number(v)+Number(m),-1))}}}function gF(e){const t=Ue(ao),o=be("table"),{handleDoubleClick:n,handleClick:r,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:f,tooltipTrigger:d}=vF(e),{getRowStyle:h,getRowClass:v,getCellStyle:m,getCellClass:g,getSpan:b,getColspanRealWidth:C}=mF(e),k=x(()=>e.store.states.columns.value.findIndex(({type:A})=>A==="default")),w=(A,R)=>{const M=t.props.rowKey;return M?fn(A,M):R},E=(A,R,M,I=!1)=>{const{tooltipEffect:_,store:L}=e,{indent:z,columns:H}=L.states,W=v(A,R);let j=!0;return M&&(W.push(o.em("row",`level-${M.level}`)),j=M.display),Ke("tr",{style:[j?null:{display:"none"},h(A,R)],class:W,key:w(A,R),onDblclick:V=>n(V,A),onClick:V=>r(V,A),onContextmenu:V=>s(V,A),onMouseenter:()=>l(R),onMouseleave:i},H.value.map((V,B)=>{const{rowspan:X,colspan:Q}=b(A,V,R,B);if(!X||!Q)return null;const q={...V};q.realWidth=C(H.value,Q,B);const ee={store:e.store,_self:e.context||t,column:q,row:A,$index:R,cellIndex:B,expanded:I};B===k.value&&M&&(ee.treeNode={indent:M.level*z.value,level:M.level},typeof M.expanded=="boolean"&&(ee.treeNode.expanded=M.expanded,"loading"in M&&(ee.treeNode.loading=M.loading),"noLazyChildren"in M&&(ee.treeNode.noLazyChildren=M.noLazyChildren)));const ve=`${R},${B}`,me=q.columnKey||q.rawColumnKey||"",Ce=T(B,V,ee);return Ke("td",{style:m(R,B,A,V),class:g(R,B,A,V,Q-1),key:`${me}${ve}`,rowspan:X,colspan:Q,onMouseenter:le=>u(le,A,_),onMouseleave:c},[Ce])}))},T=(A,R,M)=>R.renderCell(M);return{wrappedRowRender:(A,R)=>{const M=e.store,{isRowExpanded:I,assertRowKey:_}=M,{treeData:L,lazyTreeNodeMap:z,childrenColumnName:H,rowKey:W}=M.states,j=M.states.columns.value;if(j.some(({type:V})=>V==="expand")){const V=I(A),B=E(A,R,void 0,V),X=t.renderExpanded;return V?X?[[B,Ke("tr",{key:`expanded-row__${B.key}`},[Ke("td",{colspan:j.length,class:`${o.e("cell")} ${o.e("expanded-cell")}`},[X({row:A,$index:R,store:M,expanded:V})])])]]:(console.error("[Element Error]renderExpanded is required."),B):[[B]]}else if(Object.keys(L.value).length){_();const V=fn(A,W.value);let B=L.value[V],X=null;B&&(X={expanded:B.expanded,level:B.level,display:!0},typeof B.lazy=="boolean"&&(typeof B.loaded=="boolean"&&B.loaded&&(X.noLazyChildren=!(B.children&&B.children.length)),X.loading=B.loading));const Q=[E(A,R,X)];if(B){let q=0;const ee=(me,Ce)=>{!(me&&me.length&&Ce)||me.forEach(le=>{const re={display:Ce.display&&Ce.expanded,level:Ce.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ie=fn(le,W.value);if(ie==null)throw new Error("For nested data item, row-key is required.");if(B={...L.value[ie]},B&&(re.expanded=B.expanded,B.level=B.level||re.level,B.display=!!(B.expanded&&re.display),typeof B.lazy=="boolean"&&(typeof B.loaded=="boolean"&&B.loaded&&(re.noLazyChildren=!(B.children&&B.children.length)),re.loading=B.loading)),q++,Q.push(E(le,R+q,re)),B){const pe=z.value[ie]||le[H.value];ee(pe,B)}})};B.display=!0;const ve=z.value[V]||A[H.value];ee(ve,B)}return Q}else return E(A,R,void 0)},tooltipContent:f,tooltipTrigger:d}}const yF={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var bF=oe({name:"ElTableBody",props:yF,setup(e){const t=yt(),o=Ue(ao),n=be("table"),{wrappedRowRender:r,tooltipContent:s,tooltipTrigger:l}=gF(e),{onColumnsChange:i,onScrollableChange:u}=Og(o);return ke(e.store.states.hoverRow,(c,f)=>{if(!e.store.states.isComplex.value||!Dt)return;let d=window.requestAnimationFrame;d||(d=h=>window.setTimeout(h,16)),d(()=>{const h=t==null?void 0:t.vnode.el,v=Array.from((h==null?void 0:h.children)||[]).filter(b=>b==null?void 0:b.classList.contains(`${n.e("row")}`)),m=v[f],g=v[c];m&&An(m,"hover-row"),g&&fo(g,"hover-row")})}),zs(()=>{var c;(c=io)==null||c()}),{ns:n,onColumnsChange:i,onScrollableChange:u,wrappedRowRender:r,tooltipContent:s,tooltipTrigger:l}},render(){const{wrappedRowRender:e,store:t}=this,o=t.states.data.value||[];return Ke("tbody",{},[o.reduce((n,r)=>n.concat(e(r,n.length)),[])])}});function Ec(e){const t=e.tableLayout==="auto";let o=e.columns||[];t&&o.every(r=>r.width===void 0)&&(o=[]);const n=r=>{const s={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?s.style={width:`${r.width}px`}:s.name=r.id,s};return Ke("colgroup",{},o.map(r=>Ke("col",n(r))))}Ec.props=["columns","tableLayout"];function wF(){const e=Ue(ao),t=e==null?void 0:e.store,o=x(()=>t.states.fixedLeafColumnsLength.value),n=x(()=>t.states.rightFixedColumns.value.length),r=x(()=>t.states.columns.value.length),s=x(()=>t.states.fixedColumns.value.length),l=x(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:o,rightFixedLeafCount:n,columnsCount:r,leftFixedCount:s,rightFixedCount:l,columns:t.states.columns}}function CF(e){const{columns:t}=wF(),o=be("table");return{getCellClasses:(s,l)=>{const i=s[l],u=[o.e("cell"),i.id,i.align,i.labelClassName,...Sc(o.b(),l,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(o.is("leaf")),u},getCellStyles:(s,l)=>{const i=kc(l,s.fixed,e.store);return Yr(i,"left"),Yr(i,"right"),i},columns:t}}var SF=oe({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:o,columns:n}=CF(e);return{ns:be("table"),getCellClasses:t,getCellStyles:o,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:o,summaryMethod:n,sumText:r,ns:s}=this,l=this.store.states.data.value;let i=[];return n?i=n({columns:e,data:l}):e.forEach((u,c)=>{if(c===0){i[c]=r;return}const f=l.map(m=>Number(m[u.property])),d=[];let h=!0;f.forEach(m=>{if(!Number.isNaN(+m)){h=!1;const g=`${m}`.split(".")[1];d.push(g?g.length:0)}});const v=Math.max.apply(null,d);h?i[c]="":i[c]=f.reduce((m,g)=>{const b=Number(g);return Number.isNaN(+b)?m:Number.parseFloat((m+g).toFixed(Math.min(v,20)))},0)}),Ke("table",{class:s.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Ec({columns:e}),Ke("tbody",[Ke("tr",{},[...e.map((u,c)=>Ke("td",{key:c,colspan:u.colSpan,rowspan:u.rowSpan,class:o(e,c),style:t(u,c)},[Ke("div",{class:["cell",u.labelClassName]},[i[c]])]))])])])}});function kF(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,d)=>{e.toggleRowSelection(f,d,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,d)=>{e.toggleRowExpansionAdapter(f,d)},clearSort:()=>{e.clearSort()},sort:(f,d)=>{e.commit("sort",{prop:f,order:d})}}}function EF(e,t,o,n){const r=F(!1),s=F(null),l=F(!1),i=V=>{l.value=V},u=F({width:null,height:null,headerHeight:null}),c=F(!1),f={display:"inline-block",verticalAlign:"middle"},d=F(),h=F(0),v=F(0),m=F(0),g=F(0);Xn(()=>{t.setHeight(e.height)}),Xn(()=>{t.setMaxHeight(e.maxHeight)}),ke(()=>[e.currentRowKey,o.states.rowKey],([V,B])=>{!a(B)||!a(V)||o.setCurrentRowKey(`${V}`)},{immediate:!0}),ke(()=>e.data,V=>{n.store.commit("setData",V)},{immediate:!0,deep:!0}),Xn(()=>{e.expandRowKeys&&o.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},C=(V,B)=>{const{pixelX:X,pixelY:Q}=B;Math.abs(X)>=Math.abs(Q)&&(n.refs.bodyWrapper.scrollLeft+=B.pixelX/5)},k=x(()=>e.height||e.maxHeight||o.states.fixedColumns.value.length>0||o.states.rightFixedColumns.value.length>0),w=x(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),E=()=>{k.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(R)};ht(async()=>{await Ge(),o.updateColumns(),M(),requestAnimationFrame(E);const V=n.vnode.el,B=n.refs.headerWrapper;e.flexible&&V&&V.parentElement&&(V.parentElement.style.minWidth="0"),u.value={width:d.value=V.offsetWidth,height:V.offsetHeight,headerHeight:e.showHeader&&B?B.offsetHeight:null},o.states.columns.value.forEach(X=>{X.filteredValue&&X.filteredValue.length&&n.store.commit("filterChange",{column:X,values:X.filteredValue,silent:!0})}),n.$ready=!0});const T=(V,B)=>{if(!V)return;const X=Array.from(V.classList).filter(Q=>!Q.startsWith("is-scrolling-"));X.push(t.scrollX.value?B:"is-scrolling-none"),V.className=X.join(" ")},$=V=>{const{tableWrapper:B}=n.refs;T(B,V)},A=V=>{const{tableWrapper:B}=n.refs;return!!(B&&B.classList.contains(V))},R=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const me="is-scrolling-none";A(me)||$(me);return}const V=n.refs.scrollBarRef.wrapRef;if(!V)return;const{scrollLeft:B,offsetWidth:X,scrollWidth:Q}=V,{headerWrapper:q,footerWrapper:ee}=n.refs;q&&(q.scrollLeft=B),ee&&(ee.scrollLeft=B);const ve=Q-X-1;B>=ve?$("is-scrolling-right"):$(B===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{!n.refs.scrollBarRef||(n.refs.scrollBarRef.wrapRef&&pn(n.refs.scrollBarRef.wrapRef,"scroll",R,{passive:!0}),e.fit?Bn(n.vnode.el,I):pn(window,"resize",I),Bn(n.refs.bodyWrapper,()=>{var V,B;I(),(B=(V=n.refs)==null?void 0:V.scrollBarRef)==null||B.update()}))},I=()=>{var V,B,X;const Q=n.vnode.el;if(!n.$ready||!Q)return;let q=!1;const{width:ee,height:ve,headerHeight:me}=u.value,Ce=d.value=Q.offsetWidth;ee!==Ce&&(q=!0);const le=Q.offsetHeight;(e.height||k.value)&&ve!==le&&(q=!0);const re=e.tableLayout==="fixed"?n.refs.headerWrapper:(V=n.refs.tableHeaderRef)==null?void 0:V.$el;e.showHeader&&(re==null?void 0:re.offsetHeight)!==me&&(q=!0),h.value=((B=n.refs.tableWrapper)==null?void 0:B.scrollHeight)||0,m.value=(re==null?void 0:re.scrollHeight)||0,g.value=((X=n.refs.footerWrapper)==null?void 0:X.offsetHeight)||0,v.value=h.value-m.value-g.value,q&&(u.value={width:Ce,height:le,headerHeight:e.showHeader&&(re==null?void 0:re.offsetHeight)||0},E())},_=dn(),L=x(()=>{const{bodyWidth:V,scrollY:B,gutterWidth:X}=t;return V.value?`${V.value-(B.value?X:0)}px`:""}),z=x(()=>e.maxHeight?"fixed":e.tableLayout),H=x(()=>{if(e.data&&e.data.length)return null;let V="100%";e.height&&v.value&&(V=`${v.value}px`);const B=d.value;return{width:B?`${B}px`:"",height:V}}),W=x(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),j=x(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${m.value+g.value}px)`};{const V=e.maxHeight;if(h.value>=Number(V))return{maxHeight:`${h.value-m.value-g.value}px`}}}return{}});return{isHidden:r,renderExpanded:s,setDragVisible:i,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:_,emptyBlockStyle:H,handleFixedMousewheel:(V,B)=>{const X=n.refs.bodyWrapper;if(Math.abs(B.spinY)>0){const Q=X.scrollTop;B.pixelY<0&&Q!==0&&V.preventDefault(),B.pixelY>0&&X.scrollHeight-X.clientHeight>Q&&V.preventDefault(),X.scrollTop+=Math.ceil(B.pixelY/5)}else X.scrollLeft+=Math.ceil(B.pixelX/5)},resizeProxyVisible:l,bodyWidth:L,resizeState:u,doLayout:E,tableBodyStyles:w,tableLayout:z,scrollbarViewStyle:f,tableInnerStyle:W,scrollbarStyle:j}}var $F={data:{type:Array,default:()=>[]},size:String,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,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 TF=()=>{const e=F(),t=(s,l)=>{const i=e.value;i&&i.scrollTo(s,l)},o=(s,l)=>{const i=e.value;i&&it(l)&&["Top","Left"].includes(s)&&i[`setScroll${s}`](l)};return{scrollBarRef:e,scrollTo:t,setScrollTop:s=>o("Top",s),setScrollLeft:s=>o("Left",s)}};let OF=1;const xF=oe({name:"ElTable",directives:{Mousewheel:ox},components:{TableHeader:hF,TableBody:bF,TableFooter:SF,ElScrollbar:So,hColgroup:Ec},props:$F,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(e){const{t}=$t(),o=be("table"),n=yt();gt(ao,n);const r=eF(n,e);n.store=r;const s=new nF({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=s;const l=x(()=>(r.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,sort:g}=kF(r),{isHidden:b,renderExpanded:C,setDragVisible:k,isGroup:w,handleMouseLeave:E,handleHeaderFooterMousewheel:T,tableSize:$,emptyBlockStyle:A,handleFixedMousewheel:R,resizeProxyVisible:M,bodyWidth:I,resizeState:_,doLayout:L,tableBodyStyles:z,tableLayout:H,scrollbarViewStyle:W,tableInnerStyle:j,scrollbarStyle:D}=EF(e,s,r,n),{scrollBarRef:V,scrollTo:B,setScrollLeft:X,setScrollTop:Q}=TF(),q=kn(L,50),ee=`${o.namespace.value}-table_${OF++}`;n.tableId=ee,n.state={isGroup:w,resizeState:_,doLayout:L,debouncedUpdateLayout:q};const ve=x(()=>e.sumText||t("el.table.sumText")),me=x(()=>e.emptyText||t("el.table.emptyText"));return{ns:o,layout:s,store:r,handleHeaderFooterMousewheel:T,handleMouseLeave:E,tableId:ee,tableSize:$,isHidden:b,isEmpty:l,renderExpanded:C,resizeProxyVisible:M,resizeState:_,isGroup:w,bodyWidth:I,tableBodyStyles:z,emptyBlockStyle:A,debouncedUpdateLayout:q,handleFixedMousewheel:R,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,doLayout:L,sort:g,t,setDragVisible:k,context:n,computedSumText:ve,computedEmptyText:me,tableLayout:H,scrollbarViewStyle:W,tableInnerStyle:j,scrollbarStyle:D,scrollBarRef:V,scrollTo:B,setScrollLeft:X,setScrollTop:Q}}}),IF=["data-prefix"],MF={ref:"hiddenColumns",class:"hidden-columns"};function NF(e,t,o,n,r,s){const l=tt("hColgroup"),i=tt("table-header"),u=tt("table-body"),c=tt("el-scrollbar"),f=tt("table-footer"),d=Rr("mousewheel");return N(),U("div",{ref:"tableWrapper",class:P([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:je(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=h=>e.handleMouseLeave())},[te("div",{class:P(e.ns.e("inner-wrapper")),style:je(e.tableInnerStyle)},[te("div",MF,[ye(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?lt((N(),U("div",{key:0,ref:"headerWrapper",class:P(e.ns.e("header-wrapper"))},[te("table",{ref:"tableHeader",class:P(e.ns.e("header")),style:je(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Z(l,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):de("v-if",!0),te("div",{ref:"bodyWrapper",class:P(e.ns.e("body-wrapper"))},[Z(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:se(()=>[te("table",{ref:"tableBody",class:P(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:je({width:e.bodyWidth,tableLayout:e.tableLayout})},[Z(l,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(N(),fe(i,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):de("v-if",!0),Z(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(N(),U("div",{key:0,ref:"emptyBlock",style:je(e.emptyBlockStyle),class:P(e.ns.e("empty-block"))},[te("span",{class:P(e.ns.e("empty-text"))},[ye(e.$slots,"empty",{},()=>[It(Ne(e.computedEmptyText),1)])],2)],6)):de("v-if",!0),e.$slots.append?(N(),U("div",{key:1,ref:"appendWrapper",class:P(e.ns.e("append-wrapper"))},[ye(e.$slots,"append")],2)):de("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?lt((N(),U("div",{key:1,ref:"footerWrapper",class:P(e.ns.e("footer-wrapper"))},[Z(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:je(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[xt,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):de("v-if",!0),e.border||e.isGroup?(N(),U("div",{key:2,class:P(e.ns.e("border-left-patch"))},null,2)):de("v-if",!0)],6),lt(te("div",{ref:"resizeProxy",class:P(e.ns.e("column-resize-proxy"))},null,2),[[xt,e.resizeProxyVisible]])],46,IF)}var PF=Ie(xF,[["render",NF],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const RF={selection:"table-column--selection",expand:"table__expand-column"},AF={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:""}},DF=e=>RF[e]||"",LF={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ke(Un,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:o,$index:n}){return Ke(Un,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:o.states.tableSize.value,onChange:()=>{o.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:o.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let o=t+1;const n=e.index;return typeof n=="number"?o=t+n:typeof n=="function"&&(o=n(t)),Ke("div",{},[o])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:o}){const{ns:n}=t,r=[n.e("expand-icon")];return o&&r.push(n.em("expand-icon","expanded")),Ke("div",{class:r,onClick:function(l){l.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ke(_e,null,{default:()=>[Ke(wn)]})]})},sortable:!1,resizable:!1}};function BF({row:e,column:t,$index:o}){var n;const r=t.property,s=r&&ma(e,r).value;return t&&t.formatter?t.formatter(e,t,s,o):((n=s==null?void 0:s.toString)==null?void 0:n.call(s))||""}function zF({row:e,treeNode:t,store:o},n=!1){const{ns:r}=o;if(!t)return n?[Ke("span",{class:r.e("placeholder")})]:null;const s=[],l=function(i){i.stopPropagation(),!t.loading&&o.loadOrToggle(e)};if(t.indent&&s.push(Ke("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const i=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let u=wn;t.loading&&(u=Gr),s.push(Ke("div",{class:i,onClick:l},{default:()=>[Ke(_e,{class:{[r.is("loading")]:t.loading}},{default:()=>[Ke(u)]})]}))}else s.push(Ke("span",{class:r.e("placeholder")}));return s}function kp(e,t){return e.reduce((o,n)=>(o[n]=n,o),t)}function VF(e,t){const o=yt();return{registerComplexWatchers:()=>{const s=["fixed"],l={realWidth:"width",realMinWidth:"minWidth"},i=kp(s,l);Object.keys(i).forEach(u=>{const c=l[u];_n(t,c)&&ke(()=>t[c],f=>{let d=f;c==="width"&&u==="realWidth"&&(d=Cc(f)),c==="minWidth"&&u==="realMinWidth"&&(d=Cg(f)),o.columnConfig.value[c]=d,o.columnConfig.value[u]=d;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],l={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=kp(s,l);Object.keys(i).forEach(u=>{const c=l[u];_n(t,c)&&ke(()=>t[c],f=>{o.columnConfig.value[u]=f})})}}}function FF(e,t,o){const n=yt(),r=F(""),s=F(!1),l=F(),i=F(),u=be("table");Xn(()=>{l.value=e.align?`is-${e.align}`:null,l.value}),Xn(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:l.value,i.value});const c=x(()=>{let w=n.vnode.vParent||n.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),f=x(()=>{const{store:w}=n.parent;if(!w)return!1;const{treeData:E}=w.states,T=E.value;return T&&Object.keys(T).length>0}),d=F(Cc(e.width)),h=F(Cg(e.minWidth)),v=w=>(d.value&&(w.width=d.value),h.value&&(w.minWidth=h.value),!d.value&&h.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),m=w=>{const E=w.type,T=LF[E]||{};Object.keys(T).forEach(A=>{const R=T[A];A!=="className"&&R!==void 0&&(w[A]=R)});const $=DF(E);if($){const A=`${a(u.namespace)}-${$}`;w.className=w.className?`${w.className} ${A}`:A}return w},g=w=>{Array.isArray(w)?w.forEach(T=>E(T)):E(w);function E(T){var $;(($=T==null?void 0:T.type)==null?void 0:$.name)==="ElTableColumn"&&(T.vParent=n)}};return{columnId:r,realAlign:l,isSubColumn:s,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:v,setColumnForcedProps:m,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=T=>{n.columnConfig.value.label;const $=t.header;return $?$(T):w.label});let E=w.renderCell;return w.type==="expand"?(w.renderCell=T=>Ke("div",{class:"cell"},[E(T)]),o.value.renderExpanded=T=>t.default?t.default(T):t.default):(E=E||BF,w.renderCell=T=>{let $=null;if(t.default){const I=t.default(T);$=I.some(_=>_.type!==Kp)?I:E(T)}else $=E(T);const A=f.value&&T.cellIndex===0&&T.column.type!=="selection",R=zF(T,A),M={class:"cell",style:{}};return w.showOverflowTooltip&&(M.class=`${M.class} ${a(u.namespace)}-tooltip`,M.style={width:`${(T.column.realWidth||Number(T.column.width))-1}px`}),g($),Ke("div",M,[R,$])}),w},getPropsData:(...w)=>w.reduce((E,T)=>(Array.isArray(T)&&T.forEach($=>{E[$]=e[$]}),E),{}),getColumnElIndex:(w,E)=>Array.prototype.indexOf.call(w,E)}}var HF={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,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,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:e=>e.every(t=>["ascending","descending",null].includes(t))}};let WF=1;var Ig=oe({name:"ElTableColumn",components:{ElCheckbox:Un},props:HF,setup(e,{slots:t}){const o=yt(),n=F({}),r=x(()=>{let k=o.parent;for(;k&&!k.tableId;)k=k.parent;return k}),{registerNormalWatchers:s,registerComplexWatchers:l}=VF(r,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:f,setColumnWidth:d,setColumnForcedProps:h,setColumnRenders:v,getPropsData:m,getColumnElIndex:g,realAlign:b}=FF(e,t,r),C=f.value;i.value=`${C.tableId||C.columnId}_column_${WF++}`,sl(()=>{u.value=r.value!==C;const k=e.type||"default",w=e.sortable===""?!0:e.sortable,E={...AF[k],id:i.value,type:k,property:e.prop||e.property,align:b,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:o.vnode.key};let M=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);M=KV(E,M),M=jV(v,d,h)(M),n.value=M,s(),l()}),ht(()=>{var k;const w=f.value,E=u.value?w.vnode.el.children:(k=w.refs.hiddenColumns)==null?void 0:k.children,T=()=>g(E||[],o.vnode.el);n.value.getColumnIndex=T,T()>-1&&r.value.store.commit("insertColumn",n.value,u.value?w.columnConfig.value:null)}),sn(()=>{r.value.store.commit("removeColumn",n.value,u.value?C.columnConfig.value:null)}),o.columnId=i.value,o.columnConfig=n},render(){var e,t,o;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Array.isArray(n))for(const l of n)((o=l.type)==null?void 0:o.name)==="ElTableColumn"||l.shapeFlag&2?r.push(l):l.type===Qe&&Array.isArray(l.children)&&l.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!kt(i==null?void 0:i.children)&&r.push(i)});return Ke("div",r)}catch{return Ke("div",[])}}});const KF=dt(PF,{TableColumn:Ig}),_F=Ut(Ig);var As=(e=>(e.ASC="asc",e.DESC="desc",e))(As||{}),Ds=(e=>(e.CENTER="center",e.RIGHT="right",e))(Ds||{}),Mg=(e=>(e.LEFT="left",e.RIGHT="right",e))(Mg||{});const iu={asc:"desc",desc:"asc"},Ls=Symbol("placeholder"),jF=(e,t,o)=>{var n;const r={flexGrow:0,flexShrink:0,...o?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};o||(r.flexShrink=1);const s={...(n=e.style)!=null?n:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(s.maxWidth=e.maxWidth),e.minWidth&&(s.minWidth=e.minWidth)),s};function YF(e,t,o){const n=x(()=>a(t).filter(g=>!g.hidden)),r=x(()=>a(n).filter(g=>g.fixed==="left"||g.fixed===!0)),s=x(()=>a(n).filter(g=>g.fixed==="right")),l=x(()=>a(n).filter(g=>!g.fixed)),i=x(()=>{const g=[];return a(r).forEach(b=>{g.push({...b,placeholderSign:Ls})}),a(l).forEach(b=>{g.push(b)}),a(s).forEach(b=>{g.push({...b,placeholderSign:Ls})}),g}),u=x(()=>a(r).length||a(s).length),c=x(()=>a(t).reduce((b,C)=>(b[C.key]=jF(C,a(o),e.fixed),b),{})),f=x(()=>a(n).reduce((g,b)=>g+b.width,0)),d=g=>a(t).find(b=>b.key===g),h=g=>a(c)[g],v=(g,b)=>{g.width=b};function m(g){var b;const{key:C}=g.currentTarget.dataset;if(!C)return;const{sortState:k,sortBy:w}=e;let E=As.ASC;qt(k)?E=iu[k[C]]:E=iu[w.order],(b=e.onColumnSort)==null||b.call(e,{column:d(C),key:C,order:E})}return{columns:t,columnsStyles:c,columnsTotalWidth:f,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,hasFixedColumns:u,mainColumns:i,normalColumns:l,visibleColumns:n,getColumn:d,getColumnStyle:h,updateColumnWidth:v,onColumnSorted:m}}const UF=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:n,onMaybeEndReached:r})=>{const s=F({scrollLeft:0,scrollTop:0});function l(v){var m,g,b;const{scrollTop:C}=v;(m=t.value)==null||m.scrollTo(v),(g=o.value)==null||g.scrollToTop(C),(b=n.value)==null||b.scrollToTop(C)}function i(v){s.value=v,l(v)}function u(v){s.value.scrollTop=v,l(a(s))}function c(v){var m,g;s.value.scrollLeft=v,(g=(m=t.value)==null?void 0:m.scrollTo)==null||g.call(m,a(s))}function f(v){var m;i(v),(m=e.onScroll)==null||m.call(e,v)}function d({scrollTop:v}){const{scrollTop:m}=a(s);v!==m&&u(v)}function h(v,m="auto"){var g;(g=t.value)==null||g.scrollToRow(v,m)}return ke(()=>a(s).scrollTop,(v,m)=>{v>m&&r()}),{scrollPos:s,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:f,onVerticalScroll:d}},GF=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:n,onMaybeEndReached:r})=>{const s=yt(),{emit:l}=s,i=Kt(!1),u=Kt(null),c=F(e.defaultExpandedRowKeys||[]),f=F(-1),d=Kt(null),h=F({}),v=F({}),m=Kt({}),g=Kt({}),b=Kt({}),C=x(()=>it(e.estimatedRowHeight));function k(M){var I;(I=e.onRowsRendered)==null||I.call(e,M),M.rowCacheEnd>a(f)&&(f.value=M.rowCacheEnd)}function w({hovered:M,rowKey:I}){u.value=M?I:null}function E({expanded:M,rowData:I,rowIndex:_,rowKey:L}){var z,H;const W=[...a(c)],j=W.indexOf(L);M?j===-1&&W.push(L):j>-1&&W.splice(j,1),c.value=W,l("update:expandedRowKeys",W),(z=e.onRowExpand)==null||z.call(e,{expanded:M,rowData:I,rowIndex:_,rowKey:L}),(H=e.onExpandedRowsChange)==null||H.call(e,W)}const T=kn(()=>{var M,I,_,L;i.value=!0,h.value={...a(h),...a(v)},$(a(d),!1),v.value={},d.value=null,(M=t.value)==null||M.forceUpdate(),(I=o.value)==null||I.forceUpdate(),(_=n.value)==null||_.forceUpdate(),(L=s.proxy)==null||L.$forceUpdate(),i.value=!1},0);function $(M,I=!1){!a(C)||[t,o,n].forEach(_=>{const L=a(_);L&&L.resetAfterRowIndex(M,I)})}function A(M,I,_){const L=a(d);(L===null||L>_)&&(d.value=_),v.value[M]=I}function R({rowKey:M,height:I,rowIndex:_},L){L?L===Mg.RIGHT?b.value[M]=I:m.value[M]=I:g.value[M]=I;const z=Math.max(...[m,b,g].map(H=>H.value[M]||0));a(h)[M]!==z&&(A(M,z,_),T())}return ke(f,()=>r()),{hoveringRowKey:u,expandedRowKeys:c,lastRenderedRowIndex:f,isDynamic:C,isResetting:i,rowHeights:h,resetAfterIndex:$,onRowExpanded:E,onRowHovered:w,onRowsRendered:k,onRowHeightChange:R}},qF=(e,{expandedRowKeys:t,lastRenderedRowIndex:o,resetAfterIndex:n})=>{const r=F({}),s=x(()=>{const i={},{data:u,rowKey:c}=e,f=a(t);if(!f||!f.length)return u;const d=[],h=new Set;f.forEach(m=>h.add(m));let v=u.slice();for(v.forEach(m=>i[m[c]]=0);v.length>0;){const m=v.shift();d.push(m),h.has(m[c])&&Array.isArray(m.children)&&m.children.length>0&&(v=[...m.children,...v],m.children.forEach(g=>i[g[c]]=i[m[c]]+1))}return r.value=i,d}),l=x(()=>{const{data:i,expandColumnKey:u}=e;return u?a(s):i});return ke(l,(i,u)=>{i!==u&&(o.value=-1,n(0,!0))}),{data:l,depthMap:r}},XF=(e,t)=>e+t,Ra=e=>ft(e)?e.reduce(XF,0):e,ir=(e,t,o={})=>At(e)?e(t):e??o,Oo=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=un(e[t])}),e),Ng=e=>Ln(e)?t=>Ke(e,t):e,ZF=(e,{columnsTotalWidth:t,data:o,fixedColumnsOnLeft:n,fixedColumnsOnRight:r})=>{const s=x(()=>{const{fixed:w,width:E,vScrollbarSize:T}=e,$=E-T;return w?Math.max(Math.round(a(t)),$):$}),l=x(()=>a(s)+(e.fixed?e.vScrollbarSize:0)),i=x(()=>{const{height:w=0,maxHeight:E=0,footerHeight:T,hScrollbarSize:$}=e;if(E>0){const A=a(m),R=a(u),I=a(v)+A+R+$;return Math.min(I,E-T)}return w-T}),u=x(()=>{const{rowHeight:w,estimatedRowHeight:E}=e,T=a(o);return it(E)?T.length*E:T.length*w}),c=x(()=>{const{maxHeight:w}=e,E=a(i);if(it(w)&&w>0)return E;const T=a(u)+a(v)+a(m);return Math.min(E,T)}),f=w=>w.width,d=x(()=>Ra(a(n).map(f))),h=x(()=>Ra(a(r).map(f))),v=x(()=>Ra(e.headerHeight)),m=x(()=>{var w;return(((w=e.fixedData)==null?void 0:w.length)||0)*e.rowHeight}),g=x(()=>a(i)-a(v)-a(m)),b=x(()=>{const{style:w={},height:E,width:T}=e;return Oo({...w,height:E,width:T})}),C=x(()=>Oo({height:e.footerHeight})),k=x(()=>({top:un(a(v)),bottom:un(e.footerHeight),width:un(e.width)}));return{bodyWidth:s,fixedTableHeight:c,mainTableHeight:i,leftTableWidth:d,rightTableWidth:h,headerWidth:l,rowsHeight:u,windowHeight:g,footerHeight:C,emptyStyle:k,rootStyle:b,headerHeight:v}},JF=e=>{const t=F(),o=F(0),n=F(0);let r;return ht(()=>{r=Bn(t,([s])=>{const{width:l,height:i}=s.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:f,paddingBottom:d}=getComputedStyle(s.target),h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,m=Number.parseInt(f)||0,g=Number.parseInt(d)||0;o.value=l-h-v,n.value=i-m-g}).stop}),sn(()=>{r==null||r()}),ke([o,n],([s,l])=>{var i;(i=e.onResize)==null||i.call(e,{width:s,height:l})}),{sizer:t,width:o,height:n}};function QF(e){const t=F(),o=F(),n=F(),{columns:r,columnsStyles:s,columnsTotalWidth:l,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:f,onColumnSorted:d}=YF(e,Jt(e,"columns"),Jt(e,"fixed")),{scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:g,onScroll:b,onVerticalScroll:C,scrollPos:k}=UF(e,{mainTableRef:t,leftTableRef:o,rightTableRef:n,onMaybeEndReached:Le}),{expandedRowKeys:w,hoveringRowKey:E,lastRenderedRowIndex:T,isDynamic:$,isResetting:A,rowHeights:R,resetAfterIndex:M,onRowExpanded:I,onRowHeightChange:_,onRowHovered:L,onRowsRendered:z}=GF(e,{mainTableRef:t,leftTableRef:o,rightTableRef:n,onMaybeEndReached:Le}),{data:H,depthMap:W}=qF(e,{expandedRowKeys:w,lastRenderedRowIndex:T,resetAfterIndex:M}),{bodyWidth:j,fixedTableHeight:D,mainTableHeight:V,leftTableWidth:B,rightTableWidth:X,headerWidth:Q,rowsHeight:q,windowHeight:ee,footerHeight:ve,emptyStyle:me,rootStyle:Ce,headerHeight:le}=ZF(e,{columnsTotalWidth:l,data:H,fixedColumnsOnLeft:i,fixedColumnsOnRight:u}),re=Kt(!1),ie=F(),pe=x(()=>{const Xe=a(H).length===0;return ft(e.fixedData)?e.fixedData.length===0&&Xe:Xe});function Ae(Xe){const{estimatedRowHeight:xe,rowHeight:He,rowKey:ot}=e;return xe?a(R)[a(H)[Xe][ot]]||xe:He}function Le(){const{onEndReached:Xe}=e;if(!Xe)return;const{scrollTop:xe}=a(k),He=a(q),ot=a(ee),Pe=He-(xe+ot)+e.hScrollbarSize;a(T)>=0&&He===xe+a(V)-a(le)&&Xe(Pe)}return ke(()=>e.expandedRowKeys,Xe=>w.value=Xe,{deep:!0}),{columns:r,containerRef:ie,mainTableRef:t,leftTableRef:o,rightTableRef:n,isDynamic:$,isResetting:A,isScrolling:re,hoveringRowKey:E,hasFixedColumns:c,columnsStyles:s,columnsTotalWidth:l,data:H,expandedRowKeys:w,depthMap:W,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:f,bodyWidth:j,emptyStyle:me,rootStyle:Ce,headerWidth:Q,footerHeight:ve,mainTableHeight:V,fixedTableHeight:D,leftTableWidth:B,rightTableWidth:X,showEmpty:pe,getRowHeight:Ae,onColumnSorted:d,onRowHovered:L,onRowExpanded:I,onRowsRendered:z,onRowHeightChange:_,scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:g,onScroll:b,onVerticalScroll:C}}const $c=Symbol("tableV2"),Pg=String,Gs={type:ce(Array),required:!0},Tc={type:ce(Array)},Rg={...Tc,required:!0},eH=String,Ep={type:ce(Array),default:()=>_t([])},Xo={type:Number,required:!0},Ag={type:ce([String,Number,Symbol]),default:"id"},$p={type:ce(Object)},er=Re({class:String,columns:Gs,columnsStyles:{type:ce(Object),required:!0},depth:Number,expandColumnKey:eH,estimatedRowHeight:{...or.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ce(Function)},onRowHover:{type:ce(Function)},onRowHeightChange:{type:ce(Function)},rowData:{type:ce(Object),required:!0},rowEventHandlers:{type:ce(Object)},rowIndex:{type:Number,required:!0},rowKey:Ag,style:{type:ce(Object)}}),Ci={type:Number,required:!0},Oc=Re({class:String,columns:Gs,fixedHeaderData:{type:ce(Array)},headerData:{type:ce(Array),required:!0},headerHeight:{type:ce([Number,Array]),default:50},rowWidth:Ci,rowHeight:{type:Number,default:50},height:Ci,width:Ci}),Aa=Re({columns:Gs,data:Rg,fixedData:Tc,estimatedRowHeight:er.estimatedRowHeight,width:Xo,height:Xo,headerWidth:Xo,headerHeight:Oc.headerHeight,bodyWidth:Xo,rowHeight:Xo,cache:sg.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:or.scrollbarAlwaysOn,scrollbarStartGap:or.scrollbarStartGap,scrollbarEndGap:or.scrollbarEndGap,class:Pg,style:$p,containerStyle:$p,getRowHeight:{type:ce(Function),required:!0},rowKey:er.rowKey,onRowsRendered:{type:ce(Function)},onScroll:{type:ce(Function)}}),tH=Re({cache:Aa.cache,estimatedRowHeight:er.estimatedRowHeight,rowKey:Ag,headerClass:{type:ce([String,Function])},headerProps:{type:ce([Object,Function])},headerCellProps:{type:ce([Object,Function])},headerHeight:Oc.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ce([String,Function])},rowProps:{type:ce([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ce([Object,Function])},columns:Gs,data:Rg,dataGetter:{type:ce(Function)},fixedData:Tc,expandColumnKey:er.expandColumnKey,expandedRowKeys:Ep,defaultExpandedRowKeys:Ep,class:Pg,fixed:Boolean,style:{type:ce(Object)},width:Xo,height:Xo,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:or.hScrollbarSize,vScrollbarSize:or.vScrollbarSize,scrollbarAlwaysOn:ig.alwaysOn,sortBy:{type:ce(Object),default:()=>({})},sortState:{type:ce(Object),default:void 0},onColumnSort:{type:ce(Function)},onExpandedRowsChange:{type:ce(Function)},onEndReached:{type:ce(Function)},onRowExpand:er.onRowExpand,onScroll:Aa.onScroll,onRowsRendered:Aa.onRowsRendered,rowEventHandlers:er.rowEventHandlers}),xc=(e,{slots:t})=>{var o;const{cellData:n,style:r}=e,s=((o=n==null?void 0:n.toString)==null?void 0:o.call(n))||"";return Z("div",{class:e.class,title:s,style:r},[t.default?t.default(e):s])};xc.displayName="ElTableV2Cell";xc.inheritAttrs=!1;const Ic=(e,{slots:t})=>{var o,n;return t.default?t.default(e):Z("div",{class:e.class,title:(o=e.column)==null?void 0:o.title},[(n=e.column)==null?void 0:n.title])};Ic.displayName="ElTableV2HeaderCell";Ic.inheritAttrs=!1;const nH=Re({class:String,columns:Gs,columnsStyles:{type:ce(Object),required:!0},headerIndex:Number,style:{type:ce(Object)}}),oH=oe({name:"ElTableV2HeaderRow",props:nH,setup(e,{slots:t}){return()=>{const{columns:o,columnsStyles:n,headerIndex:r,style:s}=e;let l=o.map((i,u)=>t.cell({columns:o,column:i,columnIndex:u,headerIndex:r,style:n[i.key]}));return t.header&&(l=t.header({cells:l.map(i=>ft(i)&&i.length===1?i[0]:i),columns:o,headerIndex:r})),Z("div",{class:e.class,style:s},[l])}}}),rH="ElTableV2Header",sH=oe({name:rH,props:Oc,setup(e,{slots:t,expose:o}){const n=be("table-v2"),r=F(),s=x(()=>Oo({width:e.width,height:e.height})),l=x(()=>Oo({width:e.rowWidth,height:e.height})),i=x(()=>Vr(a(e.headerHeight))),u=d=>{const h=a(r);Ge(()=>{h!=null&&h.scroll&&h.scroll({left:d})})},c=()=>{const d=n.e("fixed-header-row"),{columns:h,fixedHeaderData:v,rowHeight:m}=e;return v==null?void 0:v.map((g,b)=>{var C;const k=Oo({height:m,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:d,columns:h,rowData:g,rowIndex:-(b+1),style:k})})},f=()=>{const d=n.e("dynamic-header-row"),{columns:h}=e;return a(i).map((v,m)=>{var g;const b=Oo({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:d,columns:h,headerIndex:m,style:b})})};return o({scrollToLeft:u}),()=>{if(!(e.height<=0))return Z("div",{ref:r,class:e.class,style:a(s)},[Z("div",{style:a(l),class:n.e("header")},[f(),c()])])}}}),aH=e=>{const{isScrolling:t}=Ue($c),o=F(!1),n=F(),r=x(()=>it(e.estimatedRowHeight)&&e.rowIndex>=0),s=(u=!1)=>{const c=a(n);if(!c)return;const{columns:f,onRowHeightChange:d,rowKey:h,rowIndex:v,style:m}=e,{height:g}=c.getBoundingClientRect();o.value=!0,Ge(()=>{if(u||g!==Number.parseInt(m.height)){const b=f[0],C=(b==null?void 0:b.placeholderSign)===Ls;d==null||d({rowKey:h,height:g,rowIndex:v},b&&!C&&b.fixed)}})},l=x(()=>{const{rowData:u,rowIndex:c,rowKey:f,onRowHover:d}=e,h=e.rowEventHandlers||{},v={};return Object.entries(h).forEach(([m,g])=>{At(g)&&(v[m]=b=>{g({event:b,rowData:u,rowIndex:c,rowKey:f})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:g})=>{const b=v[m];v[m]=C=>{d({event:C,hovered:g,rowData:u,rowIndex:c,rowKey:f}),b==null||b(C)}}),v}),i=u=>{const{onRowExpand:c,rowData:f,rowIndex:d,rowKey:h}=e;c==null||c({expanded:u,rowData:f,rowIndex:d,rowKey:h})};return ht(()=>{a(r)&&s(!0)}),{isScrolling:t,measurable:r,measured:o,rowRef:n,eventHandlers:l,onExpand:i}},lH="ElTableV2TableRow",iH=oe({name:lH,props:er,setup(e,{expose:t,slots:o,attrs:n}){const{eventHandlers:r,isScrolling:s,measurable:l,measured:i,rowRef:u,onExpand:c}=aH(e);return t({onExpand:c}),()=>{const{columns:f,columnsStyles:d,expandColumnKey:h,depth:v,rowData:m,rowIndex:g,style:b}=e;let C=f.map((k,w)=>{const E=ft(m.children)&&m.children.length>0&&k.key===h;return o.cell({column:k,columns:f,columnIndex:w,depth:v,style:d[k.key],rowData:m,rowIndex:g,isScrolling:a(s),expandIconProps:E?{rowData:m,rowIndex:g,onExpand:c}:void 0})});if(o.row&&(C=o.row({cells:C.map(k=>ft(k)&&k.length===1?k[0]:k),style:b,columns:f,depth:v,rowData:m,rowIndex:g,isScrolling:a(s)})),a(l)){const{height:k,...w}=b||{},E=a(i);return Z("div",mt({ref:u,class:e.class,style:E?b:w},n,a(r)),[C])}return Z("div",mt(n,{ref:u,class:e.class,style:b},a(r)),[C])}}}),uH=e=>{const{sortOrder:t}=e;return Z(_e,{size:14,class:e.class},{default:()=>[t===As.ASC?Z(W0,null,null):Z(K0,null,null)]})},cH=e=>{const{expanded:t,expandable:o,onExpand:n,style:r,size:s}=e,l={onClick:o?()=>n(!t):void 0,class:e.class};return Z(_e,mt(l,{size:s,style:r}),{default:()=>[Z(wn,null,null)]})},dH="ElTableV2Grid",fH=e=>{const t=F(),o=F(),n=x(()=>{const{data:g,rowHeight:b,estimatedRowHeight:C}=e;if(!C)return g.length*b}),r=x(()=>{const{fixedData:g,rowHeight:b}=e;return((g==null?void 0:g.length)||0)*b}),s=x(()=>Ra(e.headerHeight)),l=x(()=>{const{height:g}=e;return Math.max(0,g-a(s)-a(r))}),i=x(()=>a(s)+a(r)>0),u=({data:g,rowIndex:b})=>g[b][e.rowKey];function c({rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:k}){var w;(w=e.onRowsRendered)==null||w.call(e,{rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:k})}function f(g,b){var C;(C=o.value)==null||C.resetAfterRowIndex(g,b)}function d(g,b){const C=a(t),k=a(o);!C||!k||(qt(g)?(C.scrollToLeft(g.scrollLeft),k.scrollTo(g)):(C.scrollToLeft(g),k.scrollTo({scrollLeft:g,scrollTop:b})))}function h(g){var b;(b=a(o))==null||b.scrollTo({scrollTop:g})}function v(g,b){var C;(C=a(o))==null||C.scrollToItem(g,1,b)}function m(){var g,b;(g=a(o))==null||g.$forceUpdate(),(b=a(t))==null||b.$forceUpdate()}return{bodyRef:o,forceUpdate:m,fixedRowHeight:r,gridHeight:l,hasHeader:i,headerHeight:s,headerRef:t,totalHeight:n,itemKey:u,onItemRendered:c,resetAfterRowIndex:f,scrollTo:d,scrollToTop:h,scrollToRow:v}},Mc=oe({name:dH,props:Aa,setup(e,{slots:t,expose:o}){const{ns:n}=Ue($c),{bodyRef:r,fixedRowHeight:s,gridHeight:l,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:f,forceUpdate:d,itemKey:h,onItemRendered:v,resetAfterRowIndex:m,scrollTo:g,scrollToTop:b,scrollToRow:C}=fH(e);o({forceUpdate:d,totalHeight:f,scrollTo:g,scrollToTop:b,scrollToRow:C,resetAfterRowIndex:m});const k=()=>e.bodyWidth;return()=>{const{cache:w,columns:E,data:T,fixedData:$,useIsScrolling:A,scrollbarAlwaysOn:R,scrollbarEndGap:M,scrollbarStartGap:I,style:_,rowHeight:L,bodyWidth:z,estimatedRowHeight:H,headerWidth:W,height:j,width:D,getRowHeight:V,onScroll:B}=e,X=it(H),Q=X?tz:ZB,q=a(c);return Z("div",{role:"table",class:[n.e("table"),e.class],style:_},[Z(Q,{ref:r,data:T,useIsScrolling:A,itemKey:h,columnCache:0,columnWidth:X?k:z,totalColumn:1,totalRow:T.length,rowCache:w,rowHeight:X?V:L,width:D,height:a(l),class:n.e("body"),scrollbarStartGap:I,scrollbarEndGap:M,scrollbarAlwaysOn:R,onScroll:B,onItemRendered:v,perfMode:!1},{default:ee=>{var ve;const me=T[ee.rowIndex];return(ve=t.row)==null?void 0:ve.call(t,{...ee,columns:E,rowData:me})}}),a(i)&&Z(sH,{ref:u,class:n.e("header-wrapper"),columns:E,headerData:T,headerHeight:e.headerHeight,fixedHeaderData:$,rowWidth:W,rowHeight:L,width:D,height:Math.min(q+a(s),j)},{dynamic:t.header,fixed:t.row})])}}});function pH(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ln(e)}const hH=(e,{slots:t})=>{const{mainTableRef:o,...n}=e;return Z(Mc,mt({ref:o},n),pH(t)?t:{default:()=>[t]})};function vH(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ln(e)}const mH=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:o,...n}=e;return Z(Mc,mt({ref:o},n),vH(t)?t:{default:()=>[t]})};function gH(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ln(e)}const yH=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:o,...n}=e;return Z(Mc,mt({ref:o},n),gH(t)?t:{default:()=>[t]})};function bH(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ln(e)}const wH=(e,{slots:t})=>{const{columns:o,columnsStyles:n,depthMap:r,expandColumnKey:s,expandedRowKeys:l,estimatedRowHeight:i,hasFixedColumns:u,hoveringRowKey:c,rowData:f,rowIndex:d,style:h,isScrolling:v,rowProps:m,rowClass:g,rowKey:b,rowEventHandlers:C,ns:k,onRowHovered:w,onRowExpanded:E}=e,T=ir(g,{columns:o,rowData:f,rowIndex:d},""),$=ir(m,{columns:o,rowData:f,rowIndex:d}),A=f[b],R=r[A]||0,M=Boolean(s),I=d<0,_=[k.e("row"),T,{[k.e(`row-depth-${R}`)]:M&&d>=0,[k.is("expanded")]:M&&l.includes(A),[k.is("hovered")]:!v&&A===c,[k.is("fixed")]:!R&&I,[k.is("customized")]:Boolean(t.row)}],L=u?w:void 0,z={...$,columns:o,columnsStyles:n,class:_,depth:R,expandColumnKey:s,estimatedRowHeight:I?void 0:i,isScrolling:v,rowIndex:d,rowData:f,rowKey:A,rowEventHandlers:C,style:h};return Z(iH,mt(z,{onRowHover:L,onRowExpand:E}),bH(t)?t:{default:()=>[t]})},uu=({columns:e,column:t,columnIndex:o,depth:n,expandIconProps:r,isScrolling:s,rowData:l,rowIndex:i,style:u,expandedRowKeys:c,ns:f,cellProps:d,expandColumnKey:h,indentSize:v,iconSize:m,rowKey:g},{slots:b})=>{const C=Oo(u);if(t.placeholderSign===Ls)return Z("div",{class:f.em("row-cell","placeholder"),style:C},null);const{cellRenderer:k,dataKey:w,dataGetter:E}=t,$=Ng(k)||b.default||(j=>Z(xc,j,null)),A=At(E)?E({columns:e,column:t,columnIndex:o,rowData:l,rowIndex:i}):Ht(l,w??""),R=ir(d,{cellData:A,columns:e,column:t,columnIndex:o,rowIndex:i,rowData:l}),M={class:f.e("cell-text"),columns:e,column:t,columnIndex:o,cellData:A,isScrolling:s,rowData:l,rowIndex:i},I=$(M),_=[f.e("row-cell"),t.align===Ds.CENTER&&f.is("align-center"),t.align===Ds.RIGHT&&f.is("align-right")],L=i>=0&&t.key===h,z=i>=0&&c.includes(l[g]);let H;const W=`margin-inline-start: ${n*v}px;`;return L&&(qt(r)?H=Z(cH,mt(r,{class:[f.e("expand-icon"),f.is("expanded",z)],size:m,expanded:z,style:W,expandable:!0}),null):H=Z("div",{style:[W,`width: ${m}px; height: ${m}px;`].join(" ")},null)),Z("div",mt({class:_,style:C},R),[H,I])};uu.inheritAttrs=!1;function CH(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ln(e)}const SH=({columns:e,columnsStyles:t,headerIndex:o,style:n,headerClass:r,headerProps:s,ns:l},{slots:i})=>{const u={columns:e,headerIndex:o},c=[l.e("header-row"),ir(r,u,""),{[l.is("customized")]:Boolean(i.header)}],f={...ir(s,u),columnsStyles:t,class:c,columns:e,headerIndex:o,style:n};return Z(oH,f,CH(i)?i:{default:()=>[i]})},Tp=(e,{slots:t})=>{const{column:o,ns:n,style:r,onColumnSorted:s}=e,l=Oo(r);if(o.placeholderSign===Ls)return Z("div",{class:n.em("header-row-cell","placeholder"),style:l},null);const{headerCellRenderer:i,headerClass:u,sortable:c}=o,f={...e,class:n.e("header-cell-text")},h=(Ng(i)||t.default||(E=>Z(Ic,E,null)))(f),{sortBy:v,sortState:m,headerCellProps:g}=e;let b,C;if(m){const E=m[o.key];b=Boolean(iu[E]),C=b?E:As.ASC}else b=o.key===v.key,C=b?v.order:As.ASC;const k=[n.e("header-cell"),ir(u,e,""),o.align===Ds.CENTER&&n.is("align-center"),o.align===Ds.RIGHT&&n.is("align-right"),c&&n.is("sortable")],w={...ir(g,e),onClick:o.sortable?s:void 0,class:k,style:l,["data-key"]:o.key};return Z("div",w,[h,c&&Z(uH,{class:[n.e("sort-icon"),b&&n.is("sorting")],sortOrder:C},null)])},Dg=(e,{slots:t})=>{var o;return Z("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};Dg.displayName="ElTableV2Footer";const Lg=(e,{slots:t})=>Z("div",{class:e.class,style:e.style},[t.default?t.default():Z(Km,null,null)]);Lg.displayName="ElTableV2Empty";const Bg=(e,{slots:t})=>{var o;return Z("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};Bg.displayName="ElTableV2Overlay";function ls(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ln(e)}const kH="ElTableV2",EH=oe({name:kH,props:tH,setup(e,{slots:t,expose:o}){const n=be("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:i,mainTableHeight:u,fixedTableHeight:c,leftTableWidth:f,rightTableWidth:d,data:h,depthMap:v,expandedRowKeys:m,hasFixedColumns:g,hoveringRowKey:b,mainTableRef:C,leftTableRef:k,rightTableRef:w,isDynamic:E,isResetting:T,isScrolling:$,bodyWidth:A,emptyStyle:R,rootStyle:M,headerWidth:I,footerHeight:_,showEmpty:L,scrollTo:z,scrollToLeft:H,scrollToTop:W,scrollToRow:j,getRowHeight:D,onColumnSorted:V,onRowHeightChange:B,onRowHovered:X,onRowExpanded:Q,onRowsRendered:q,onScroll:ee,onVerticalScroll:ve}=QF(e);return o({scrollTo:z,scrollToLeft:H,scrollToTop:W,scrollToRow:j}),gt($c,{ns:n,isResetting:T,hoveringRowKey:b,isScrolling:$}),()=>{const{cache:me,cellProps:Ce,estimatedRowHeight:le,expandColumnKey:re,fixedData:ie,headerHeight:pe,headerClass:Ae,headerProps:Le,headerCellProps:Xe,sortBy:xe,sortState:He,rowHeight:ot,rowClass:Pe,rowEventHandlers:qe,rowKey:ze,rowProps:Se,scrollbarAlwaysOn:Oe,indentSize:De,iconSize:Je,useIsScrolling:rt,vScrollbarSize:st,width:Ee}=e,vt=a(h),pt={cache:me,class:n.e("main"),columns:a(i),data:vt,fixedData:ie,estimatedRowHeight:le,bodyWidth:a(A),headerHeight:pe,headerWidth:a(I),height:a(u),mainTableRef:C,rowKey:ze,rowHeight:ot,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:st,useIsScrolling:rt,width:Ee,getRowHeight:D,onRowsRendered:q,onScroll:ee},ue=a(f),Me=a(c),We={cache:me,class:n.e("left"),columns:a(s),data:vt,estimatedRowHeight:le,leftTableRef:k,rowHeight:ot,bodyWidth:ue,headerWidth:ue,headerHeight:pe,height:Me,rowKey:ze,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:st,useIsScrolling:rt,width:ue,getRowHeight:D,onScroll:ve},ne=a(d)+st,he={cache:me,class:n.e("right"),columns:a(l),data:vt,estimatedRowHeight:le,rightTableRef:w,rowHeight:ot,bodyWidth:ne,headerWidth:ne,headerHeight:pe,height:Me,rowKey:ze,scrollbarAlwaysOn:Oe,scrollbarStartGap:2,scrollbarEndGap:st,width:ne,style:`--${a(n.namespace)}-table-scrollbar-size: ${st}px`,useIsScrolling:rt,getRowHeight:D,onScroll:ve},$e=a(r),Be={ns:n,depthMap:a(v),columnsStyles:$e,expandColumnKey:re,expandedRowKeys:a(m),estimatedRowHeight:le,hasFixedColumns:a(g),hoveringRowKey:a(b),rowProps:Se,rowClass:Pe,rowKey:ze,rowEventHandlers:qe,onRowHovered:X,onRowExpanded:Q,onRowHeightChange:B},Mt={cellProps:Ce,expandColumnKey:re,indentSize:De,iconSize:Je,rowKey:ze,expandedRowKeys:a(m),ns:n},Nt={ns:n,headerClass:Ae,headerProps:Le,columnsStyles:$e},Bt={ns:n,sortBy:xe,sortState:He,headerCellProps:Xe,onColumnSorted:V},Tt={row:Ze=>Z(wH,mt(Ze,Be),{row:t.row,cell:ct=>{let Ot;return t.cell?Z(uu,mt(ct,Mt,{style:$e[ct.column.key]}),ls(Ot=t.cell(ct))?Ot:{default:()=>[Ot]}):Z(uu,mt(ct,Mt,{style:$e[ct.column.key]}),null)}}),header:Ze=>Z(SH,mt(Ze,Nt),{header:t.header,cell:ct=>{let Ot;return t["header-cell"]?Z(Tp,mt(ct,Bt,{style:$e[ct.column.key]}),ls(Ot=t["header-cell"](ct))?Ot:{default:()=>[Ot]}):Z(Tp,mt(ct,Bt,{style:$e[ct.column.key]}),null)}})},Ct=[e.class,n.b(),n.e("root"),{[n.is("dynamic")]:a(E)}],we={class:n.e("footer"),style:a(_)};return Z("div",{class:Ct,style:a(M)},[Z(hH,pt,ls(Tt)?Tt:{default:()=>[Tt]}),Z(mH,We,ls(Tt)?Tt:{default:()=>[Tt]}),Z(yH,he,ls(Tt)?Tt:{default:()=>[Tt]}),t.footer&&Z(Dg,we,{default:t.footer}),a(L)&&Z(Lg,{class:n.e("empty"),style:a(R)},{default:t.empty}),t.overlay&&Z(Bg,{class:n.e("overlay")},{default:t.overlay})])}}}),$H=Re({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ce(Function)}}),TH=oe({name:"ElAutoResizer",props:$H,setup(e,{slots:t}){const o=be("auto-resizer"),{height:n,width:r,sizer:s}=JF(e),l={width:"100%",height:"100%"};return()=>{var i;return Z("div",{ref:s,class:o.b(),style:l},[(i=t.default)==null?void 0:i.call(t,{height:n.value,width:r.value})])}}}),OH=dt(EH),xH=dt(TH),IH=Re({tabs:{type:ce(Array),default:()=>_t([])}}),zg="ElTabBar",MH=oe({name:zg}),NH=oe({...MH,props:IH,setup(e,{expose:t}){const o=e,n=yt(),r=Ue(ml);r||nn(zg,"");const s=be("tabs"),l=F(),i=F(),u=()=>{let f=0,d=0;const h=["top","bottom"].includes(r.props.tabPosition)?"width":"height",v=h==="width"?"x":"y";return o.tabs.every(m=>{var g,b,C,k;const w=(b=(g=n.parent)==null?void 0:g.refs)==null?void 0:b[`tab-${m.uid}`];if(!w)return!1;if(!m.active)return!0;d=w[`client${Fn(h)}`];const E=v==="x"?"left":"top";f=w[`offset${Fn(E)}`]-((k=(C=w.parentElement)==null?void 0:C[`offset${Fn(E)}`])!=null?k:0);const T=w.closest(".is-scrollable");if(T){const A=window.getComputedStyle(T);f+=Number.parseFloat(A[`padding${Fn(E)}`])}const $=window.getComputedStyle(w);return h==="width"&&(o.tabs.length>1&&(d-=Number.parseFloat($.paddingLeft)+Number.parseFloat($.paddingRight)),f+=Number.parseFloat($.paddingLeft)),!1}),{[h]:`${d}px`,transform:`translate${Fn(v)}(${f}px)`}},c=()=>i.value=u();return ke(()=>o.tabs,async()=>{await Ge(),c()},{immediate:!0}),Bn(l,()=>c()),t({ref:l,update:c}),(f,d)=>(N(),U("div",{ref_key:"barRef",ref:l,class:P([a(s).e("active-bar"),a(s).is(a(r).props.tabPosition)]),style:je(i.value)},null,6))}});var PH=Ie(NH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const RH=Re({panes:{type:ce(Array),default:()=>_t([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),AH={tabClick:(e,t,o)=>o instanceof Event,tabRemove:(e,t)=>t instanceof Event},Op="ElTabNav",DH=oe({name:Op,props:RH,emits:AH,setup(e,{expose:t,emit:o}){const n=yt(),r=Ue(ml);r||nn(Op,"");const s=be("tabs"),l=fw(),i=pw(),u=F(),c=F(),f=F(),d=F(!1),h=F(0),v=F(!1),m=F(!0),g=x(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),b=x(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),C=()=>{if(!u.value)return;const R=u.value[`offset${Fn(g.value)}`],M=h.value;if(!M)return;const I=M>R?M-R:0;h.value=I},k=()=>{if(!u.value||!c.value)return;const R=c.value[`offset${Fn(g.value)}`],M=u.value[`offset${Fn(g.value)}`],I=h.value;if(R-I<=M)return;const _=R-I>M*2?I+M:R-M;h.value=_},w=async()=>{const R=c.value;if(!d.value||!f.value||!u.value||!R)return;await Ge();const M=f.value.querySelector(".is-active");if(!M)return;const I=u.value,_=["top","bottom"].includes(r.props.tabPosition),L=M.getBoundingClientRect(),z=I.getBoundingClientRect(),H=_?R.offsetWidth-z.width:R.offsetHeight-z.height,W=h.value;let j=W;_?(L.leftz.right&&(j=W+L.right-z.right)):(L.topz.bottom&&(j=W+(L.bottom-z.bottom))),j=Math.max(j,0),h.value=Math.min(j,H)},E=()=>{if(!c.value||!u.value)return;const R=c.value[`offset${Fn(g.value)}`],M=u.value[`offset${Fn(g.value)}`],I=h.value;if(M0&&(h.value=0)},T=R=>{const M=R.code,{up:I,down:_,left:L,right:z}=Ye;if(![I,_,L,z].includes(M))return;const H=Array.from(R.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),W=H.indexOf(R.target);let j;M===L||M===I?W===0?j=H.length-1:j=W-1:W{m.value&&(v.value=!0)},A=()=>v.value=!1;return ke(l,R=>{R==="hidden"?m.value=!1:R==="visible"&&setTimeout(()=>m.value=!0,50)}),ke(i,R=>{R?setTimeout(()=>m.value=!0,50):m.value=!1}),Bn(f,E),ht(()=>setTimeout(()=>w(),0)),ur(()=>E()),t({scrollToActiveTab:w,removeFocus:A}),ke(()=>e.panes,()=>n.update(),{flush:"post"}),()=>{const R=d.value?[Z("span",{class:[s.e("nav-prev"),s.is("disabled",!d.value.prev)],onClick:C},[Z(_e,null,{default:()=>[Z(Mo,null,null)]})]),Z("span",{class:[s.e("nav-next"),s.is("disabled",!d.value.next)],onClick:k},[Z(_e,null,{default:()=>[Z(wn,null,null)]})])]:null,M=e.panes.map((I,_)=>{var L,z,H,W;const j=I.uid,D=I.props.disabled,V=(z=(L=I.props.name)!=null?L:I.index)!=null?z:`${_}`,B=!D&&(I.isClosable||e.editable);I.index=`${_}`;const X=B?Z(_e,{class:"is-icon-close",onClick:ee=>o("tabRemove",I,ee)},{default:()=>[Z(mo,null,null)]}):null,Q=((W=(H=I.slots).label)==null?void 0:W.call(H))||I.props.label,q=!D&&I.active?0:-1;return Z("div",{ref:`tab-${j}`,class:[s.e("item"),s.is(r.props.tabPosition),s.is("active",I.active),s.is("disabled",D),s.is("closable",B),s.is("focus",v.value)],id:`tab-${V}`,key:`tab-${j}`,"aria-controls":`pane-${V}`,role:"tab","aria-selected":I.active,tabindex:q,onFocus:()=>$(),onBlur:()=>A(),onClick:ee=>{A(),o("tabClick",I,V,ee)},onKeydown:ee=>{B&&(ee.code===Ye.delete||ee.code===Ye.backspace)&&o("tabRemove",I,ee)}},[Q,X])});return Z("div",{ref:f,class:[s.e("nav-wrap"),s.is("scrollable",!!d.value),s.is(r.props.tabPosition)]},[R,Z("div",{class:s.e("nav-scroll"),ref:u},[Z("div",{class:[s.e("nav"),s.is(r.props.tabPosition),s.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:c,style:b.value,role:"tablist",onKeydown:T},[e.type?null:Z(PH,{tabs:[...e.panes]},null),M])])])}}}),LH=Re({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:ce(Function),default:()=>!0},stretch:Boolean}),Si=e=>kt(e)||it(e),BH={[ut]:e=>Si(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Si(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Si(e),tabAdd:()=>!0};var zH=oe({name:"ElTabs",props:LH,emits:BH,setup(e,{emit:t,slots:o,expose:n}){var r,s;const l=be("tabs"),{children:i,addChild:u,removeChild:c}=av(yt(),"ElTabPane"),f=F(),d=F((s=(r=e.modelValue)!=null?r:e.activeName)!=null?s:"0"),h=C=>{d.value=C,t(ut,C),t("tabChange",C)},v=async C=>{var k,w,E;if(!(d.value===C||vn(C)))try{await((k=e.beforeLeave)==null?void 0:k.call(e,C,d.value))!==!1&&(h(C),(E=(w=f.value)==null?void 0:w.removeFocus)==null||E.call(w))}catch{}},m=(C,k,w)=>{C.props.disabled||(v(k),t("tabClick",C,w))},g=(C,k)=>{C.props.disabled||vn(C.props.name)||(k.stopPropagation(),t("edit",C.props.name,"remove"),t("tabRemove",C.props.name))},b=()=>{t("edit",void 0,"add"),t("tabAdd")};return Lo({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"},x(()=>!!e.activeName)),ke(()=>e.activeName,C=>v(C)),ke(()=>e.modelValue,C=>v(C)),ke(d,async()=>{var C;await Ge(),(C=f.value)==null||C.scrollToActiveTab()}),gt(ml,{props:e,currentName:d,registerPane:u,unregisterPane:c}),n({currentName:d}),()=>{const C=e.editable||e.addable?Z("span",{class:l.e("new-tab"),tabindex:"0",onClick:b,onKeydown:E=>{E.code===Ye.enter&&b()}},[Z(_e,{class:l.is("icon-plus")},{default:()=>[Z(qp,null,null)]})]):null,k=Z("div",{class:[l.e("header"),l.is(e.tabPosition)]},[C,Z(DH,{ref:f,currentName:d.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:m,onTabRemove:g},null)]),w=Z("div",{class:l.e("content")},[ye(o,"default")]);return Z("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[k,w]:[w,k]])}}});const VH=Re({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),FH=["id","aria-hidden","aria-labelledby"],Vg="ElTabPane",HH=oe({name:Vg}),WH=oe({...HH,props:VH,setup(e){const t=e,o=yt(),n=gn(),r=Ue(ml);r||nn(Vg,"usage: ");const s=be("tab-pane"),l=F(),i=x(()=>t.closable||r.props.closable),u=Id(()=>{var v;return r.currentName.value===((v=t.name)!=null?v:l.value)}),c=F(u.value),f=x(()=>{var v;return(v=t.name)!=null?v:l.value}),d=Id(()=>!t.lazy||c.value||u.value);ke(u,v=>{v&&(c.value=!0)});const h=Rt({uid:o.uid,slots:n,props:t,paneName:f,active:u,index:l,isClosable:i});return ht(()=>{r.registerPane(h)}),zs(()=>{r.unregisterPane(h.uid)}),(v,m)=>a(d)?lt((N(),U("div",{key:0,id:`pane-${a(f)}`,class:P(a(s).b()),role:"tabpanel","aria-hidden":!a(u),"aria-labelledby":`tab-${a(f)}`},[ye(v.$slots,"default")],10,FH)),[[xt,a(u)]]):de("v-if",!0)}});var Fg=Ie(WH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const KH=dt(zH,{TabPane:Fg}),_H=Ut(Fg),jH=Re({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:Zn,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:ce([String,Object]),default:()=>Up},clearIcon:{type:ce([String,Object]),default:()=>qr}}),co=e=>{const t=(e||"").split(":");if(t.length>=2){let o=Number.parseInt(t[0],10);const n=Number.parseInt(t[1],10),r=e.toUpperCase();return r.includes("AM")&&o===12?o=0:r.includes("PM")&&o!==12&&(o+=12),{hours:o,minutes:n}}return null},ki=(e,t)=>{const o=co(e);if(!o)return-1;const n=co(t);if(!n)return-1;const r=o.minutes+o.hours*60,s=n.minutes+n.hours*60;return r===s?0:r>s?1:-1},xp=e=>`${e}`.padStart(2,"0"),Sr=e=>`${xp(e.hours)}:${xp(e.minutes)}`,YH=(e,t)=>{const o=co(e);if(!o)return"";const n=co(t);if(!n)return"";const r={hours:o.hours,minutes:o.minutes};return r.minutes+=n.minutes,r.hours+=n.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,Sr(r)},UH=oe({name:"ElTimeSelect"}),GH=oe({...UH,props:jH,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const o=e;at.extend(ac);const{Option:n}=lr,r=be("input"),s=F(),l=Jn(),i=x(()=>o.modelValue),u=x(()=>{const b=co(o.start);return b?Sr(b):null}),c=x(()=>{const b=co(o.end);return b?Sr(b):null}),f=x(()=>{const b=co(o.step);return b?Sr(b):null}),d=x(()=>{const b=co(o.minTime||"");return b?Sr(b):null}),h=x(()=>{const b=co(o.maxTime||"");return b?Sr(b):null}),v=x(()=>{const b=[];if(o.start&&o.end&&o.step){let C=u.value,k;for(;C&&c.value&&ki(C,c.value)<=0;)k=at(C,"HH:mm").format(o.format),b.push({value:k,disabled:ki(C,d.value||"-1:-1")<=0||ki(C,h.value||"100:100")>=0}),C=YH(C,f.value)}return b});return t({blur:()=>{var b,C;(C=(b=s.value)==null?void 0:b.blur)==null||C.call(b)},focus:()=>{var b,C;(C=(b=s.value)==null?void 0:b.focus)==null||C.call(b)}}),(b,C)=>(N(),fe(a(lr),{ref_key:"select",ref:s,"model-value":a(i),disabled:a(l),clearable:b.clearable,"clear-icon":b.clearIcon,size:b.size,effect:b.effect,placeholder:b.placeholder,"default-first-option":"",filterable:b.editable,"onUpdate:modelValue":C[0]||(C[0]=k=>b.$emit("update:modelValue",k)),onChange:C[1]||(C[1]=k=>b.$emit("change",k)),onBlur:C[2]||(C[2]=k=>b.$emit("blur",k)),onFocus:C[3]||(C[3]=k=>b.$emit("focus",k))},{prefix:se(()=>[b.prefixIcon?(N(),fe(a(_e),{key:0,class:P(a(r).e("prefix-icon"))},{default:se(()=>[(N(),fe(St(b.prefixIcon)))]),_:1},8,["class"])):de("v-if",!0)]),default:se(()=>[(N(!0),U(Qe,null,bt(a(v),k=>(N(),fe(a(n),{key:k.value,label:k.value,value:k.value,disabled:k.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Da=Ie(GH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);Da.install=e=>{e.component(Da.name,Da)};const qH=Da,XH=qH,ZH=oe({name:"ElTimeline",setup(e,{slots:t}){const o=be("timeline");return gt("timeline",t),()=>Ke("ul",{class:[o.b()]},[ye(t,"default")])}}),JH=Re({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:jt},hollow:{type:Boolean,default:!1}}),QH=oe({name:"ElTimelineItem"}),eW=oe({...QH,props:JH,setup(e){const t=be("timeline-item");return(o,n)=>(N(),U("li",{class:P([a(t).b(),{[a(t).e("center")]:o.center}])},[te("div",{class:P(a(t).e("tail"))},null,2),o.$slots.dot?de("v-if",!0):(N(),U("div",{key:0,class:P([a(t).e("node"),a(t).em("node",o.size||""),a(t).em("node",o.type||""),a(t).is("hollow",o.hollow)]),style:je({backgroundColor:o.color})},[o.icon?(N(),fe(a(_e),{key:0,class:P(a(t).e("icon"))},{default:se(()=>[(N(),fe(St(o.icon)))]),_:1},8,["class"])):de("v-if",!0)],6)),o.$slots.dot?(N(),U("div",{key:1,class:P(a(t).e("dot"))},[ye(o.$slots,"dot")],2)):de("v-if",!0),te("div",{class:P(a(t).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(N(),U("div",{key:0,class:P([a(t).e("timestamp"),a(t).is("top")])},Ne(o.timestamp),3)):de("v-if",!0),te("div",{class:P(a(t).e("content"))},[ye(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(N(),U("div",{key:1,class:P([a(t).e("timestamp"),a(t).is("bottom")])},Ne(o.timestamp),3)):de("v-if",!0)],2)],2))}});var Hg=Ie(eW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const tW=dt(ZH,{TimelineItem:Hg}),nW=Ut(Hg),Wg=Re({nowrap:Boolean});var Kg=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Kg||{});const oW=Object.values(Kg),Nc=Re({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ce(Object),default:null}}),rW=Re({side:{type:ce(String),values:oW,required:!0}}),sW=["absolute","fixed"],aW=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Pc=Re({ariaLabel:String,arrowPadding:{type:ce(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:ce(String),values:aW,default:"bottom"},reference:{type:ce(Object),default:null},offset:{type:Number,default:8},strategy:{type:ce(String),values:sW,default:"absolute"},showArrow:{type:Boolean,default:!1}}),Rc=Re({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ce(Function)},"onUpdate:open":{type:ce(Function)}}),wr={type:ce(Function)},Ac=Re({onBlur:wr,onClick:wr,onFocus:wr,onMouseDown:wr,onMouseEnter:wr,onMouseLeave:wr}),lW=Re({...Rc,...Nc,...Ac,...Pc,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ce(Object),default:null},teleported:Boolean,to:{type:ce(String),default:"body"}}),iW=oe({name:"ElTooltipV2Root"}),uW=oe({...iW,props:Rc,setup(e,{expose:t}){const o=e,n=F(o.defaultOpen),r=F(null),s=x({get:()=>hw(o.open)?n.value:o.open,set:b=>{var C;n.value=b,(C=o["onUpdate:open"])==null||C.call(o,b)}}),l=x(()=>it(o.delayDuration)&&o.delayDuration>0),{start:i,stop:u}=Br(()=>{s.value=!0},x(()=>o.delayDuration),{immediate:!1}),c=be("tooltip-v2"),f=Do(),d=()=>{u(),s.value=!0},h=()=>{a(l)?i():d()},v=d,m=()=>{u(),s.value=!1};return ke(s,b=>{var C;b&&(document.dispatchEvent(new CustomEvent(ui)),v()),(C=o.onOpenChange)==null||C.call(o,b)}),ht(()=>{document.addEventListener(ui,m)}),sn(()=>{u(),document.removeEventListener(ui,m)}),gt(yl,{contentId:f,triggerRef:r,ns:c,onClose:m,onDelayOpen:h,onOpen:v}),t({onOpen:v,onClose:m}),(b,C)=>ye(b.$slots,"default",{open:a(s)})}});var cW=Ie(uW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const dW=oe({name:"ElTooltipV2Arrow"}),fW=oe({...dW,props:{...Nc,...rW},setup(e){const t=e,{ns:o}=Ue(yl),{arrowRef:n}=Ue(Xh),r=x(()=>{const{style:s,width:l,height:i}=t,u=o.namespace.value;return{[`--${u}-tooltip-v2-arrow-width`]:`${l}px`,[`--${u}-tooltip-v2-arrow-height`]:`${i}px`,[`--${u}-tooltip-v2-arrow-border-width`]:`${l/2}px`,[`--${u}-tooltip-v2-arrow-cover-width`]:l/2-1,...s||{}}});return(s,l)=>(N(),U("span",{ref_key:"arrowRef",ref:n,style:je(a(r)),class:P(a(o).e("arrow"))},null,6))}});var Ip=Ie(fW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const pW=Re({style:{type:ce([String,Object,Array]),default:()=>({})}}),hW=oe({name:"ElVisuallyHidden"}),vW=oe({...hW,props:pW,setup(e){const t=e,o=x(()=>[t.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(n,r)=>(N(),U("span",mt(n.$attrs,{style:a(o)}),[ye(n.$slots,"default")],16))}});var mW=Ie(vW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const gW=["data-side"],yW=oe({name:"ElTooltipV2Content"}),bW=oe({...yW,props:{...Pc,...Wg},setup(e){const t=e,{triggerRef:o,contentId:n}=Ue(yl),r=F(t.placement),s=F(t.strategy),l=F(null),{referenceRef:i,contentRef:u,middlewareData:c,x:f,y:d,update:h}=GE({placement:r,strategy:s,middleware:x(()=>{const w=[RE(t.offset)];return t.showArrow&&w.push(qE({arrowRef:l})),w})}),v=cr().nextZIndex(),m=be("tooltip-v2"),g=x(()=>r.value.split("-")[0]),b=x(()=>({position:a(s),top:`${a(d)||0}px`,left:`${a(f)||0}px`,zIndex:v})),C=x(()=>{if(!t.showArrow)return{};const{arrow:w}=a(c);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),k=x(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(a(s)),t.contentClass]);return ke(l,()=>h()),ke(()=>t.placement,w=>r.value=w),ht(()=>{ke(()=>t.reference||o.value,w=>{i.value=w||void 0},{immediate:!0})}),gt(Xh,{arrowRef:l}),(w,E)=>(N(),U("div",{ref_key:"contentRef",ref:u,style:je(a(b)),"data-tooltip-v2-root":""},[w.nowrap?de("v-if",!0):(N(),U("div",{key:0,"data-side":a(g),class:P(a(k))},[ye(w.$slots,"default",{contentStyle:a(b),contentClass:a(k)}),Z(a(mW),{id:a(n),role:"tooltip"},{default:se(()=>[w.ariaLabel?(N(),U(Qe,{key:0},[It(Ne(w.ariaLabel),1)],64)):ye(w.$slots,"default",{key:1})]),_:3},8,["id"]),ye(w.$slots,"arrow",{style:je(a(C)),side:a(g)})],10,gW))],4))}});var Mp=Ie(bW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const wW=Re({setRef:{type:ce(Function),required:!0},onlyChild:Boolean});var CW=oe({props:wW,setup(e,{slots:t}){const o=F(),n=hl(o,r=>{r?e.setRef(r.nextElementSibling):e.setRef(null)});return()=>{var r;const[s]=((r=t.default)==null?void 0:r.call(t))||[],l=e.onlyChild?Iw(s.children):s.children;return Z(Qe,{ref:n},[l])}}});const SW=oe({name:"ElTooltipV2Trigger"}),kW=oe({...SW,props:{...Wg,...Ac},setup(e){const t=e,{onClose:o,onOpen:n,onDelayOpen:r,triggerRef:s,contentId:l}=Ue(yl);let i=!1;const u=k=>{s.value=k},c=()=>{i=!1},f=Wt(t.onMouseEnter,r),d=Wt(t.onMouseLeave,o),h=Wt(t.onMouseDown,()=>{o(),i=!0,document.addEventListener("mouseup",c,{once:!0})}),v=Wt(t.onFocus,()=>{i||n()}),m=Wt(t.onBlur,o),g=Wt(t.onClick,k=>{k.detail===0&&o()}),b={blur:m,click:g,focus:v,mousedown:h,mouseenter:f,mouseleave:d},C=(k,w,E)=>{k&&Object.entries(w).forEach(([T,$])=>{k[E](T,$)})};return ke(s,(k,w)=>{C(k,b,"addEventListener"),C(w,b,"removeEventListener"),k&&k.setAttribute("aria-describedby",l.value)}),sn(()=>{C(s.value,b,"removeEventListener"),document.removeEventListener("mouseup",c)}),(k,w)=>k.nowrap?(N(),fe(a(CW),{key:0,"set-ref":u,"only-child":""},{default:se(()=>[ye(k.$slots,"default")]),_:3})):(N(),U("button",mt({key:1,ref_key:"triggerRef",ref:s},k.$attrs),[ye(k.$slots,"default")],16))}});var EW=Ie(kW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const $W=oe({name:"ElTooltipV2"}),TW=oe({...$W,props:lW,setup(e){const o=tn(e),n=Rt(po(o,Object.keys(Nc))),r=Rt(po(o,Object.keys(Pc))),s=Rt(po(o,Object.keys(Rc))),l=Rt(po(o,Object.keys(Ac)));return(i,u)=>(N(),fe(cW,qn(Su(s)),{default:se(({open:c})=>[Z(EW,mt(l,{nowrap:""}),{default:se(()=>[ye(i.$slots,"trigger")]),_:3},16),(N(),fe(Bs,{to:i.to,disabled:!i.teleported},[i.fullTransition?(N(),fe(cn,qn(mt({key:0},i.transitionProps)),{default:se(()=>[i.alwaysOn||c?(N(),fe(Mp,qn(mt({key:0},r)),{arrow:se(({style:f,side:d})=>[i.showArrow?(N(),fe(Ip,mt({key:0},n,{style:f,side:d}),null,16,["style","side"])):de("v-if",!0)]),default:se(()=>[ye(i.$slots,"default")]),_:3},16)):de("v-if",!0)]),_:2},1040)):(N(),U(Qe,{key:1},[i.alwaysOn||c?(N(),fe(Mp,qn(mt({key:0},r)),{arrow:se(({style:f,side:d})=>[i.showArrow?(N(),fe(Ip,mt({key:0},n,{style:f,side:d}),null,16,["style","side"])):de("v-if",!0)]),default:se(()=>[ye(i.$slots,"default")]),_:3},16)):de("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var OW=Ie(TW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const xW=dt(OW),_g="left-check-change",jg="right-check-change",kr=Re({data:{type:ce(Array),default:()=>[]},titles:{type:ce(Array),default:()=>[]},buttonTexts:{type:ce(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ce(Function)},leftDefaultChecked:{type:ce(Array),default:()=>[]},rightDefaultChecked:{type:ce(Array),default:()=>[]},renderContent:{type:ce(Function)},modelValue:{type:ce(Array),default:()=>[]},format:{type:ce(Object),default:()=>({})},filterable:Boolean,props:{type:ce(Object),default:()=>_t({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),cu=(e,t)=>[e,t].every(ft)||ft(e)&&Cn(t),IW={[Lt]:(e,t,o)=>[e,o].every(ft)&&["left","right"].includes(t),[ut]:e=>ft(e),[_g]:cu,[jg]:cu},du="checked-change",MW=Re({data:kr.data,optionRender:{type:ce(Function)},placeholder:String,title:String,filterable:Boolean,format:kr.format,filterMethod:kr.filterMethod,defaultChecked:kr.leftDefaultChecked,props:kr.props}),NW={[du]:cu},qs=e=>{const t={label:"label",key:"key",disabled:"disabled"};return x(()=>({...t,...e.props}))},PW=(e,t,o)=>{const n=qs(e),r=x(()=>e.data.filter(f=>At(e.filterMethod)?e.filterMethod(t.query,f):String(f[n.value.label]||f[n.value.key]).toLowerCase().includes(t.query.toLowerCase()))),s=x(()=>r.value.filter(f=>!f[n.value.disabled])),l=x(()=>{const f=t.checked.length,d=e.data.length,{noChecked:h,hasChecked:v}=e.format;return h&&v?f>0?v.replace(/\${checked}/g,f.toString()).replace(/\${total}/g,d.toString()):h.replace(/\${total}/g,d.toString()):`${f}/${d}`}),i=x(()=>{const f=t.checked.length;return f>0&&f{const f=s.value.map(d=>d[n.value.key]);t.allChecked=f.length>0&&f.every(d=>t.checked.includes(d))},c=f=>{t.checked=f?s.value.map(d=>d[n.value.key]):[]};return ke(()=>t.checked,(f,d)=>{if(u(),t.checkChangeByUser){const h=f.concat(d).filter(v=>!f.includes(v)||!d.includes(v));o(du,f,h)}else o(du,f),t.checkChangeByUser=!0}),ke(s,()=>{u()}),ke(()=>e.data,()=>{const f=[],d=r.value.map(h=>h[n.value.key]);t.checked.forEach(h=>{d.includes(h)&&f.push(h)}),t.checkChangeByUser=!1,t.checked=f}),ke(()=>e.defaultChecked,(f,d)=>{if(d&&f.length===d.length&&f.every(m=>d.includes(m)))return;const h=[],v=s.value.map(m=>m[n.value.key]);f.forEach(m=>{v.includes(m)&&h.push(m)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:r,checkableData:s,checkedSummary:l,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},RW=(e,t)=>({onSourceCheckedChange:(r,s)=>{e.leftChecked=r,s&&t(_g,r,s)},onTargetCheckedChange:(r,s)=>{e.rightChecked=r,s&&t(jg,r,s)}}),AW=e=>{const t=qs(e),o=x(()=>e.data.reduce((s,l)=>(s[l[t.value.key]]=l)&&s,{})),n=x(()=>e.data.filter(s=>!e.modelValue.includes(s[t.value.key]))),r=x(()=>e.targetOrder==="original"?e.data.filter(s=>e.modelValue.includes(s[t.value.key])):e.modelValue.reduce((s,l)=>{const i=o.value[l];return i&&s.push(i),s},[]));return{sourceData:n,targetData:r}},DW=(e,t,o)=>{const n=qs(e),r=(i,u,c)=>{o(ut,i),o(Lt,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),r(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const f=c[n.value.key];return t.leftChecked.includes(f)&&!e.modelValue.includes(f)}).map(c=>c[n.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[n.value.key])).map(c=>c[n.value.key])),r(i,"right",t.leftChecked)}}},LW=oe({name:"ElTransferPanel"}),BW=oe({...LW,props:MW,emits:NW,setup(e,{expose:t,emit:o}){const n=e,r=gn(),s=({option:E})=>E,{t:l}=$t(),i=be("transfer"),u=Rt({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),c=qs(n),{filteredData:f,checkedSummary:d,isIndeterminate:h,handleAllCheckedChange:v}=PW(n,u,o),m=x(()=>!Vn(u.query)&&Vn(f.value)),g=x(()=>!Vn(r.default()[0].children)),{checked:b,allChecked:C,query:k,inputHover:w}=tn(u);return t({query:k}),(E,T)=>(N(),U("div",{class:P(a(i).b("panel"))},[te("p",{class:P(a(i).be("panel","header"))},[Z(a(Un),{modelValue:a(C),"onUpdate:modelValue":T[0]||(T[0]=$=>Wn(C)?C.value=$:null),indeterminate:a(h),"validate-event":!1,onChange:a(v)},{default:se(()=>[It(Ne(E.title)+" ",1),te("span",null,Ne(a(d)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),te("div",{class:P([a(i).be("panel","body"),a(i).is("with-footer",a(g))])},[E.filterable?(N(),fe(a(bn),{key:0,modelValue:a(k),"onUpdate:modelValue":T[1]||(T[1]=$=>Wn(k)?k.value=$:null),class:P(a(i).be("panel","filter")),size:"default",placeholder:E.placeholder,"prefix-icon":a(_0),clearable:"","validate-event":!1,onMouseenter:T[2]||(T[2]=$=>w.value=!0),onMouseleave:T[3]||(T[3]=$=>w.value=!1)},null,8,["modelValue","class","placeholder","prefix-icon"])):de("v-if",!0),lt(Z(a(om),{modelValue:a(b),"onUpdate:modelValue":T[4]||(T[4]=$=>Wn(b)?b.value=$:null),"validate-event":!1,class:P([a(i).is("filterable",E.filterable),a(i).be("panel","list")])},{default:se(()=>[(N(!0),U(Qe,null,bt(a(f),$=>(N(),fe(a(Un),{key:$[a(c).key],class:P(a(i).be("panel","item")),label:$[a(c).key],disabled:$[a(c).disabled],"validate-event":!1},{default:se(()=>{var A;return[Z(s,{option:(A=E.optionRender)==null?void 0:A.call(E,$)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[xt,!a(m)&&!a(Vn)(E.data)]]),lt(te("p",{class:P(a(i).be("panel","empty"))},Ne(a(m)?a(l)("el.transfer.noMatch"):a(l)("el.transfer.noData")),3),[[xt,a(m)||a(Vn)(E.data)]])],2),a(g)?(N(),U("p",{key:0,class:P(a(i).be("panel","footer"))},[ye(E.$slots,"default")],2)):de("v-if",!0)],2))}});var Np=Ie(BW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const zW={key:0},VW={key:0},FW=oe({name:"ElTransfer"}),HW=oe({...FW,props:kr,emits:IW,setup(e,{expose:t,emit:o}){const n=e,r=gn(),{t:s}=$t(),l=be("transfer"),{formItem:i}=zn(),u=Rt({leftChecked:[],rightChecked:[]}),c=qs(n),{sourceData:f,targetData:d}=AW(n),{onSourceCheckedChange:h,onTargetCheckedChange:v}=RW(u,o),{addToLeft:m,addToRight:g}=DW(n,u,o),b=F(),C=F(),k=R=>{switch(R){case"left":b.value.query="";break;case"right":C.value.query="";break}},w=x(()=>n.buttonTexts.length===2),E=x(()=>n.titles[0]||s("el.transfer.titles.0")),T=x(()=>n.titles[1]||s("el.transfer.titles.1")),$=x(()=>n.filterPlaceholder||s("el.transfer.filterPlaceholder"));ke(()=>n.modelValue,()=>{var R;n.validateEvent&&((R=i==null?void 0:i.validate)==null||R.call(i,"change").catch(M=>on()))});const A=x(()=>R=>n.renderContent?n.renderContent(Ke,R):r.default?r.default({option:R}):Ke("span",R[c.value.label]||R[c.value.key]));return t({clearQuery:k,leftPanel:b,rightPanel:C}),(R,M)=>(N(),U("div",{class:P(a(l).b())},[Z(Np,{ref_key:"leftPanel",ref:b,data:a(f),"option-render":a(A),placeholder:a($),title:a(E),filterable:R.filterable,format:R.format,"filter-method":R.filterMethod,"default-checked":R.leftDefaultChecked,props:n.props,onCheckedChange:a(h)},{default:se(()=>[ye(R.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),te("div",{class:P(a(l).e("buttons"))},[Z(a(mn),{type:"primary",class:P([a(l).e("button"),a(l).is("with-texts",a(w))]),disabled:a(Vn)(u.rightChecked),onClick:a(m)},{default:se(()=>[Z(a(_e),null,{default:se(()=>[Z(a(Mo))]),_:1}),a(vn)(R.buttonTexts[0])?de("v-if",!0):(N(),U("span",zW,Ne(R.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Z(a(mn),{type:"primary",class:P([a(l).e("button"),a(l).is("with-texts",a(w))]),disabled:a(Vn)(u.leftChecked),onClick:a(g)},{default:se(()=>[a(vn)(R.buttonTexts[1])?de("v-if",!0):(N(),U("span",VW,Ne(R.buttonTexts[1]),1)),Z(a(_e),null,{default:se(()=>[Z(a(wn))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Z(Np,{ref_key:"rightPanel",ref:C,data:a(d),"option-render":a(A),placeholder:a($),filterable:R.filterable,format:R.format,"filter-method":R.filterMethod,title:a(T),"default-checked":R.rightDefaultChecked,props:n.props,onCheckedChange:a(v)},{default:se(()=>[ye(R.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var WW=Ie(HW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const KW=dt(WW),Nr="$treeNodeId",Pp=function(e,t){!t||t[Nr]||Object.defineProperty(t,Nr,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Dc=function(e,t){return e?t[e]:t[Nr]},fu=(e,t,o)=>{const n=e.value.currentNode;o();const r=e.value.currentNode;n!==r&&t("current-change",r?r.data:null,r)},pu=e=>{let t=!0,o=!0,n=!0;for(let r=0,s=e.length;r"u"){const s=n[t];return s===void 0?"":s}};let _W=0;class rr{constructor(t){this.id=_W++,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 o in t)_n(t,o)&&(this[o]=t[o]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const o=t.props;if(o&&typeof o.isLeaf<"u"){const s=ha(this,"isLeaf");typeof s=="boolean"&&(this.isLeafByUser=s)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||Pp(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,r=t.key;r&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||Pp(this,t),this.data=t,this.childNodes=[];let o;this.level===0&&Array.isArray(this.data)?o=this.data:o=ha(this,"children")||[];for(let n=0,r=o.length;n-1)return t.childNodes[o+1]}return null}get previousSibling(){const t=this.parent;if(t){const o=t.childNodes.indexOf(this);if(o>-1)return o>0?t.childNodes[o-1]:null}return null}contains(t,o=!0){return(this.childNodes||[]).some(n=>n===t||o&&n.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,o,n){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof rr)){if(!n){const r=this.getChildren(!0);r.includes(t.data)||(typeof o>"u"||o<0?r.push(t.data):r.splice(o,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Rt(new rr(t)),t instanceof rr&&t.initialize()}t.level=this.level+1,typeof o>"u"||o<0?this.childNodes.push(t):this.childNodes.splice(o,0,t),this.updateLeafState()}insertBefore(t,o){let n;o&&(n=this.childNodes.indexOf(o)),this.insertChild(t,n)}insertAfter(t,o){let n;o&&(n=this.childNodes.indexOf(o),n!==-1&&(n+=1)),this.insertChild(t,n)}removeChild(t){const o=this.getChildren()||[],n=o.indexOf(t.data);n>-1&&o.splice(n,1);const r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(t){let o=null;for(let n=0;n{if(o){let r=this.parent;for(;r.level>0;)r.expanded=!0,r=r.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(r=>{r.canFocus=!0})};this.shouldLoadData()?this.loadData(r=>{Array.isArray(r)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||La(this),n())}):n()}doCreateChildren(t,o={}){t.forEach(n=>{this.insertChild(Object.assign({data:n},o),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.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 t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,o,n,r){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:l,allWithoutDisable:i}=pu(this.childNodes);!this.isLeaf&&!l&&i&&(this.checked=!1,t=!1);const u=()=>{if(o){const c=this.childNodes;for(let h=0,v=c.length;h{u(),La(this)},{checked:t!==!1});return}else u()}const s=this.parent;!s||s.level===0||n||La(s)}getChildren(t=!1){if(this.level===0)return this.data;const o=this.data;if(!o)return null;const n=this.store.props;let r="children";return n&&(r=n.children||"children"),o[r]===void 0&&(o[r]=null),t&&!o[r]&&(o[r]=[]),o[r]}updateChildren(){const t=this.getChildren()||[],o=this.childNodes.map(s=>s.data),n={},r=[];t.forEach((s,l)=>{const i=s[Nr];!!i&&o.findIndex(c=>c[Nr]===i)>=0?n[i]={index:l,data:s}:r.push({index:l,data:s})}),this.store.lazy||o.forEach(s=>{n[s[Nr]]||this.removeChildByData(s)}),r.forEach(({index:s,data:l})=>{this.insertChild({data:l},s)}),this.updateLeafState()}loadData(t,o={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(o).length)){this.loading=!0;const n=r=>{this.childNodes=[],this.doCreateChildren(r,o),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)};this.store.load(this,n)}else t&&t.call(this)}}class jW{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const o in t)_n(t,o)&&(this[o]=t[o]);this.nodesMap={}}initialize(){if(this.root=new rr({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,o=>{this.root.doCreateChildren(o),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const o=this.filterNodeMethod,n=this.lazy,r=function(s){const l=s.root?s.root.childNodes:s.childNodes;if(l.forEach(i=>{i.visible=o.call(i,t,i.data,i),r(i)}),!s.visible&&l.length){let i=!0;i=!l.some(u=>u.visible),s.root?s.root.visible=i===!1:s.visible=i===!1}!t||s.visible&&!s.isLeaf&&!n&&s.expand()};r(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof rr)return t;const o=qt(t)?Dc(this.key,t):t;return this.nodesMap[o]||null}insertBefore(t,o){const n=this.getNode(o);n.parent.insertBefore({data:t},n)}insertAfter(t,o){const n=this.getNode(o);n.parent.insertAfter({data:t},n)}remove(t){const o=this.getNode(t);o&&o.parent&&(o===this.currentNode&&(this.currentNode=null),o.parent.removeChild(o))}append(t,o){const n=o?this.getNode(o):this.root;n&&n.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],o=this.nodesMap;t.forEach(n=>{const r=o[n];r&&r.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const o=this.key;!t||!t.data||(o?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(n=>{this.deregisterNode(n)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,o=!1){const n=[],r=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(i=>{(i.checked||o&&i.indeterminate)&&(!t||t&&i.isLeaf)&&n.push(i.data),r(i)})};return r(this),n}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(o=>(o||{})[this.key])}getHalfCheckedNodes(){const t=[],o=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(s=>{s.indeterminate&&t.push(s.data),o(s)})};return o(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],o=this.nodesMap;for(const n in o)_n(o,n)&&t.push(o[n]);return t}updateChildren(t,o){const n=this.nodesMap[t];if(!n)return;const r=n.childNodes;for(let s=r.length-1;s>=0;s--){const l=r[s];this.remove(l.data)}for(let s=0,l=o.length;su.level-i.level),s=Object.create(null),l=Object.keys(n);r.forEach(i=>i.setChecked(!1,!1));for(let i=0,u=r.length;i0;)s[h.data[t]]=!0,h=h.parent;if(c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),o){c.setChecked(!1,!1);const v=function(m){m.childNodes.forEach(b=>{b.isLeaf||b.setChecked(!1,!1),v(b)})};v(c)}}}setCheckedNodes(t,o=!1){const n=this.key,r={};t.forEach(s=>{r[(s||{})[n]]=!0}),this._setCheckedKeys(n,o,r)}setCheckedKeys(t,o=!1){this.defaultCheckedKeys=t;const n=this.key,r={};t.forEach(s=>{r[s]=!0}),this._setCheckedKeys(n,o,r)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(o=>{const n=this.getNode(o);n&&n.expand(null,this.autoExpandParent)})}setChecked(t,o,n){const r=this.getNode(t);r&&r.setChecked(!!o,n)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const o=this.currentNode;o&&(o.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,o=!0){const n=t[this.key],r=this.nodesMap[n];this.setCurrentNode(r),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,o=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(t);n&&(this.setCurrentNode(n),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const YW=oe({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=be("tree"),o=Ue("NodeInstance"),n=Ue("RootTree");return()=>{const r=e.node,{data:s,store:l}=r;return e.renderContent?e.renderContent(Ke,{_self:o,node:r,data:s,store:l}):n.ctx.slots.default?n.ctx.slots.default({node:r,data:s}):Ke("span",{class:t.be("node","label")},[r.label])}}});var UW=Ie(YW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function Yg(e){const t=Ue("TreeNodeMap",null),o={treeNodeExpand:n=>{e.node!==n&&e.node.collapse()},children:[]};return t&&t.children.push(o),gt("TreeNodeMap",o),{broadcastExpanded:n=>{if(!!e.accordion)for(const r of o.children)r.treeNodeExpand(n)}}}const Ug=Symbol("dragEvents");function GW({props:e,ctx:t,el$:o,dropIndicator$:n,store:r}){const s=be("tree"),l=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return gt(Ug,{treeNodeDragStart:({event:f,treeNode:d})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(d.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch{}l.value.draggingNode=d,t.emit("node-drag-start",d.node,f)},treeNodeDragOver:({event:f,treeNode:d})=>{const h=d,v=l.value.dropNode;v&&v!==h&&An(v.$el,s.is("drop-inner"));const m=l.value.draggingNode;if(!m||!h)return;let g=!0,b=!0,C=!0,k=!0;typeof e.allowDrop=="function"&&(g=e.allowDrop(m.node,h.node,"prev"),k=b=e.allowDrop(m.node,h.node,"inner"),C=e.allowDrop(m.node,h.node,"next")),f.dataTransfer.dropEffect=b||g||C?"move":"none",(g||b||C)&&v!==h&&(v&&t.emit("node-drag-leave",m.node,v.node,f),t.emit("node-drag-enter",m.node,h.node,f)),(g||b||C)&&(l.value.dropNode=h),h.node.nextSibling===m.node&&(C=!1),h.node.previousSibling===m.node&&(g=!1),h.node.contains(m.node,!1)&&(b=!1),(m.node===h.node||m.node.contains(h.node))&&(g=!1,b=!1,C=!1);const w=h.$el.getBoundingClientRect(),E=o.value.getBoundingClientRect();let T;const $=g?b?.25:C?.45:1:-1,A=C?b?.75:g?.55:0:1;let R=-9999;const M=f.clientY-w.top;Mw.height*A?T="after":b?T="inner":T="none";const I=h.$el.querySelector(`.${s.be("node","expand-icon")}`).getBoundingClientRect(),_=n.value;T==="before"?R=I.top-E.top:T==="after"&&(R=I.bottom-E.top),_.style.top=`${R}px`,_.style.left=`${I.right-E.left}px`,T==="inner"?fo(h.$el,s.is("drop-inner")):An(h.$el,s.is("drop-inner")),l.value.showDropIndicator=T==="before"||T==="after",l.value.allowDrop=l.value.showDropIndicator||k,l.value.dropType=T,t.emit("node-drag-over",m.node,h.node,f)},treeNodeDragEnd:f=>{const{draggingNode:d,dropType:h,dropNode:v}=l.value;if(f.preventDefault(),f.dataTransfer.dropEffect="move",d&&v){const m={data:d.node.data};h!=="none"&&d.node.remove(),h==="before"?v.node.parent.insertBefore(m,v.node):h==="after"?v.node.parent.insertAfter(m,v.node):h==="inner"&&v.node.insertChild(m),h!=="none"&&r.value.registerNode(m),An(v.$el,s.is("drop-inner")),t.emit("node-drag-end",d.node,v.node,h,f),h!=="none"&&t.emit("node-drop",d.node,v.node,h,f)}d&&!v&&t.emit("node-drag-end",d.node,null,h,f),l.value.showDropIndicator=!1,l.value.draggingNode=null,l.value.dropNode=null,l.value.allowDrop=!0}}),{dragState:l}}const qW=oe({name:"ElTreeNode",components:{ElCollapseTransition:El,ElCheckbox:Un,NodeContent:UW,ElIcon:_e,Loading:Gr},props:{node:{type:rr,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const o=be("tree"),{broadcastExpanded:n}=Yg(e),r=Ue("RootTree"),s=F(!1),l=F(!1),i=F(null),u=F(null),c=F(null),f=Ue(Ug),d=yt();gt("NodeInstance",d),e.node.expanded&&(s.value=!0,l.value=!0);const h=r.props.children||"children";ke(()=>{const M=e.node.data[h];return M&&[...M]},()=>{e.node.updateChildren()}),ke(()=>e.node.indeterminate,M=>{g(e.node.checked,M)}),ke(()=>e.node.checked,M=>{g(M,e.node.indeterminate)}),ke(()=>e.node.expanded,M=>{Ge(()=>s.value=M),M&&(l.value=!0)});const v=M=>Dc(r.props.nodeKey,M.data),m=M=>{const I=e.props.class;if(!I)return{};let _;if(At(I)){const{data:L}=M;_=I(L,M)}else _=I;return kt(_)?{[_]:!0}:_},g=(M,I)=>{(i.value!==M||u.value!==I)&&r.ctx.emit("check-change",e.node.data,M,I),i.value=M,u.value=I},b=M=>{fu(r.store,r.ctx.emit,()=>r.store.value.setCurrentNode(e.node)),r.currentNode.value=e.node,r.props.expandOnClickNode&&k(),r.props.checkOnClickNode&&!e.node.disabled&&w(null,{target:{checked:!e.node.checked}}),r.ctx.emit("node-click",e.node.data,e.node,d,M)},C=M=>{r.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),r.ctx.emit("node-contextmenu",M,e.node.data,e.node,d)},k=()=>{e.node.isLeaf||(s.value?(r.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,d)))},w=(M,I)=>{e.node.setChecked(I.target.checked,!r.props.checkStrictly),Ge(()=>{const _=r.store.value;r.ctx.emit("check",e.node.data,{checkedNodes:_.getCheckedNodes(),checkedKeys:_.getCheckedKeys(),halfCheckedNodes:_.getHalfCheckedNodes(),halfCheckedKeys:_.getHalfCheckedKeys()})})};return{ns:o,node$:c,tree:r,expanded:s,childNodeRendered:l,oldChecked:i,oldIndeterminate:u,getNodeKey:v,getNodeClass:m,handleSelectChange:g,handleClick:b,handleContextMenu:C,handleExpandIconClick:k,handleCheckChange:w,handleChildNodeExpand:(M,I,_)=>{n(I),r.ctx.emit("node-expand",M,I,_)},handleDragStart:M=>{!r.props.draggable||f.treeNodeDragStart({event:M,treeNode:e})},handleDragOver:M=>{M.preventDefault(),r.props.draggable&&f.treeNodeDragOver({event:M,treeNode:{$el:c.value,node:e.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{!r.props.draggable||f.treeNodeDragEnd(M)},CaretRight:Jp}}}),XW=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],ZW=["aria-expanded"];function JW(e,t,o,n,r,s){const l=tt("el-icon"),i=tt("el-checkbox"),u=tt("loading"),c=tt("node-content"),f=tt("el-tree-node"),d=tt("el-collapse-transition");return lt((N(),U("div",{ref:"node$",class:P([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=nt((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[2]||(t[2]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[3]||(t[3]=nt((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[4]||(t[4]=nt((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[5]||(t[5]=nt((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[6]||(t[6]=nt((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[te("div",{class:P(e.ns.be("node","content")),style:je({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(N(),fe(l,{key:0,class:P([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:nt(e.handleExpandIconClick,["stop"])},{default:se(()=>[(N(),fe(St(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):de("v-if",!0),e.showCheckbox?(N(),fe(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=nt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):de("v-if",!0),e.node.loading?(N(),fe(l,{key:2,class:P([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:se(()=>[Z(u)]),_:1},8,["class"])):de("v-if",!0),Z(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Z(d,null,{default:se(()=>[!e.renderAfterExpand||e.childNodeRendered?lt((N(),U("div",{key:0,class:P(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(N(!0),U(Qe,null,bt(e.node.childNodes,h=>(N(),fe(f,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,ZW)),[[xt,e.expanded]]):de("v-if",!0)]),_:1})],42,XW)),[[xt,e.node.visible]])}var QW=Ie(qW,[["render",JW],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function eK({el$:e},t){const o=be("tree"),n=Kt([]),r=Kt([]);ht(()=>{l()}),ur(()=>{n.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ke(r,i=>{i.forEach(u=>{u.setAttribute("tabindex","-1")})}),pn(e,"keydown",i=>{const u=i.target;if(!u.className.includes(o.b("node")))return;const c=i.code;n.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));const f=n.value.indexOf(u);let d;if([Ye.up,Ye.down].includes(c)){if(i.preventDefault(),c===Ye.up){d=f===-1?0:f!==0?f-1:n.value.length-1;const v=d;for(;!t.value.getNode(n.value[d].dataset.key).canFocus;){if(d--,d===v){d=-1;break}d<0&&(d=n.value.length-1)}}else{d=f===-1?0:f=n.value.length&&(d=0)}}d!==-1&&n.value[d].focus()}[Ye.left,Ye.right].includes(c)&&(i.preventDefault(),u.click());const h=u.querySelector('[type="checkbox"]');[Ye.enter,Ye.space].includes(c)&&h&&(i.preventDefault(),h.click())});const l=()=>{var i;n.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const u=e.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(i=n.value[0])==null||i.setAttribute("tabindex","0")}}const tK=oe({name:"ElTree",components:{ElTreeNode:QW},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:jt}},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(e,t){const{t:o}=$t(),n=be("tree"),r=F(new jW({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));r.value.initialize();const s=F(r.value.root),l=F(null),i=F(null),u=F(null),{broadcastExpanded:c}=Yg(e),{dragState:f}=GW({props:e,ctx:t,el$:i,dropIndicator$:u,store:r});eK({el$:i},r);const d=x(()=>{const{childNodes:D}=s.value;return!D||D.length===0||D.every(({visible:V})=>!V)});ke(()=>e.currentNodeKey,D=>{r.value.setCurrentNodeKey(D)}),ke(()=>e.defaultCheckedKeys,D=>{r.value.setDefaultCheckedKey(D)}),ke(()=>e.defaultExpandedKeys,D=>{r.value.setDefaultExpandedKeys(D)}),ke(()=>e.data,D=>{r.value.setData(D)},{deep:!0}),ke(()=>e.checkStrictly,D=>{r.value.checkStrictly=D});const h=D=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter(D)},v=D=>Dc(e.nodeKey,D.data),m=D=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const V=r.value.getNode(D);if(!V)return[];const B=[V.data];let X=V.parent;for(;X&&X!==s.value;)B.push(X.data),X=X.parent;return B.reverse()},g=(D,V)=>r.value.getCheckedNodes(D,V),b=D=>r.value.getCheckedKeys(D),C=()=>{const D=r.value.getCurrentNode();return D?D.data:null},k=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const D=C();return D?D[e.nodeKey]:null},w=(D,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes(D,V)},E=(D,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys(D,V)},T=(D,V,B)=>{r.value.setChecked(D,V,B)},$=()=>r.value.getHalfCheckedNodes(),A=()=>r.value.getHalfCheckedKeys(),R=(D,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");fu(r,t.emit,()=>r.value.setUserCurrentNode(D,V))},M=(D,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");fu(r,t.emit,()=>r.value.setCurrentNodeKey(D,V))},I=D=>r.value.getNode(D),_=D=>{r.value.remove(D)},L=(D,V)=>{r.value.append(D,V)},z=(D,V)=>{r.value.insertBefore(D,V)},H=(D,V)=>{r.value.insertAfter(D,V)},W=(D,V,B)=>{c(V),t.emit("node-expand",D,V,B)},j=(D,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren(D,V)};return gt("RootTree",{ctx:t,props:e,store:r,root:s,currentNode:l,instance:yt()}),gt(Ao,void 0),{ns:n,store:r,root:s,currentNode:l,dragState:f,el$:i,dropIndicator$:u,isEmpty:d,filter:h,getNodeKey:v,getNodePath:m,getCheckedNodes:g,getCheckedKeys:b,getCurrentNode:C,getCurrentKey:k,setCheckedNodes:w,setCheckedKeys:E,setChecked:T,getHalfCheckedNodes:$,getHalfCheckedKeys:A,setCurrentNode:R,setCurrentKey:M,t:o,getNode:I,remove:_,append:L,insertBefore:z,insertAfter:H,handleNodeExpand:W,updateKeyChildren:j}}});function nK(e,t,o,n,r,s){var l;const i=tt("el-tree-node");return N(),U("div",{ref:"el$",class:P([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(N(!0),U(Qe,null,bt(e.root.childNodes,u=>(N(),fe(i,{key:e.getNodeKey(u),node:u,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(N(),U("div",{key:0,class:P(e.ns.e("empty-block"))},[te("span",{class:P(e.ns.e("empty-text"))},Ne((l=e.emptyText)!=null?l:e.t("el.tree.emptyText")),3)],2)):de("v-if",!0),lt(te("div",{ref:"dropIndicator$",class:P(e.ns.e("drop-indicator"))},null,2),[[xt,e.dragState.showDropIndicator]])],2)}var Ba=Ie(tK,[["render",nK],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Ba.install=e=>{e.component(Ba.name,Ba)};const ol=Ba,oK=ol,rK=(e,{attrs:t},{tree:o,key:n})=>{const r=be("tree-select"),s={...po(tn(e),Object.keys(lr.props)),...t,valueKey:n,popperClass:x(()=>{const l=[r.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{e.filterMethod&&e.filterMethod(l),Ge(()=>{var i;(i=o.value)==null||i.filter(l)})},onVisibleChange:l=>{var i;(i=t.onVisibleChange)==null||i.call(t,l),e.filterable&&l&&s.filterMethod()}};return s},sK=oe({extends:qa,setup(e,t){const o=qa.setup(e,t);delete o.selectOptionClick;const n=yt().proxy;return Ge(()=>{o.select.cachedOptions.get(n.value)||o.select.onOptionCreate(n)}),o},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function hu(e){return e||e===0}function Lc(e){return Array.isArray(e)&&e.length}function Ei(e){return Array.isArray(e)?e:hu(e)?[e]:[]}function za(e,t,o,n,r){for(let s=0;s{ke(()=>e.modelValue,()=>{e.showCheckbox&&Ge(()=>{const d=s.value;d&&!Dn(d.getCheckedKeys(),Ei(e.modelValue))&&d.setCheckedKeys(Ei(e.modelValue))})},{immediate:!0,deep:!0});const i=x(()=>({value:l.value,...e.props})),u=(d,h)=>{var v;const m=i.value[d];return At(m)?m(h,(v=s.value)==null?void 0:v.getNode(u("value",h))):h[m]},c=Ei(e.modelValue).map(d=>za(e.data||[],h=>u("value",h)===d,h=>u("children",h),(h,v,m,g)=>g&&u("value",g))).filter(d=>hu(d)),f=x(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return Gg(e.data.concat(e.cacheData),h=>{const v=u("value",h);d.push({value:v,currentLabel:u("label",h),isDisabled:u("disabled",h)})},h=>u("children",h)),d});return{...po(tn(e),Object.keys(ol.props)),...t,nodeKey:l,expandOnClickNode:x(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:x(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(d,{node:h,data:v,store:m})=>d(sK,{value:u("value",v),label:u("label",v),disabled:u("disabled",v)},e.renderContent?()=>e.renderContent(d,{node:h,data:v,store:m}):o.default?()=>o.default({node:h,data:v,store:m}):void 0),filterNodeMethod:(d,h,v)=>{var m;return e.filterNodeMethod?e.filterNodeMethod(d,h,v):d?(m=u("label",h))==null?void 0:m.includes(d):!0},onNodeClick:(d,h,v)=>{var m,g,b;if((m=t.onNodeClick)==null||m.call(t,d,h,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!u("disabled",d)){const C=(g=r.value)==null?void 0:g.options.get(u("value",d));(b=r.value)==null||b.handleOptionSelect(C,!0)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(d,h)=>{var v;(v=t.onCheck)==null||v.call(t,d,h);const m=u("value",d);if(e.checkStrictly)n(ut,e.multiple?h.checkedKeys:h.checkedKeys.includes(m)?m:void 0);else if(e.multiple)n(ut,s.value.getCheckedKeys(!0));else{const g=za([d],k=>!Lc(u("children",k))&&!u("disabled",k),k=>u("children",k)),b=g?u("value",g):void 0,C=hu(e.modelValue)&&!!za([d],k=>u("value",k)===e.modelValue,k=>u("children",k));n(ut,b===e.modelValue||C?void 0:b)}},cacheOptions:f}};var lK=oe({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ue(Us);return e.data.forEach(o=>t.cachedOptions.set(o.value,o)),()=>{}}});const iK=oe({name:"ElTreeSelect",inheritAttrs:!1,props:{...lr.props,...ol.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:o,expose:n}=t,r=F(),s=F(),l=x(()=>e.nodeKey||e.valueKey||"value"),i=rK(e,t,{select:r,tree:s,key:l}),{cacheOptions:u,...c}=aK(e,t,{select:r,tree:s,key:l}),f=Rt({});return n(f),ht(()=>{Object.assign(f,{...po(s.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...po(r.value,["focus","blur"])})}),()=>Ke(lr,Rt({...i,ref:d=>r.value=d}),{...o,default:()=>[Ke(lK,{data:u.value}),Ke(ol,Rt({...c,ref:d=>s.value=d}))]})}});var Va=Ie(iK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Va.install=e=>{e.component(Va.name,Va)};const uK=Va,cK=uK,Bc=Symbol(),dK={key:-1,level:-1,data:{}};var us=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(us||{}),vu=(e=>(e.ADD="add",e.DELETE="delete",e))(vu||{});const fK=Re({data:{type:ce(Array),default:()=>_t([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ce(Object),default:()=>_t({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ce(Array),default:()=>_t([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ce(Array),default:()=>_t([])},indent:{type:Number,default:16},icon:{type:jt},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ce([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ce(Function)},perfMode:{type:Boolean,default:!0}}),pK=Re({node:{type:ce(Object),default:()=>_t(dK)},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}}),hK=Re({node:{type:ce(Object),required:!0}}),qg="node-click",Xg="node-expand",Zg="node-collapse",Jg="current-change",Qg="check",ey="check-change",ty="node-contextmenu",vK={[qg]:(e,t,o)=>e&&t&&o,[Xg]:(e,t)=>e&&t,[Zg]:(e,t)=>e&&t,[Jg]:(e,t)=>e&&t,[Qg]:(e,t)=>e&&t,[ey]:(e,t)=>e&&typeof t=="boolean",[ty]:(e,t,o)=>e&&t&&o},mK={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function gK(e,t){const o=F(new Set),n=F(new Set),{emit:r}=yt();ke([()=>t.value,()=>e.defaultCheckedKeys],()=>Ge(()=>{k(e.defaultCheckedKeys)}),{immediate:!0});const s=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:E}=t.value,T=o.value,$=new Set;for(let A=E-1;A>=1;--A){const R=w.get(A);!R||R.forEach(M=>{const I=M.children;if(I){let _=!0,L=!1;for(const z of I){const H=z.key;if(T.has(H))L=!0;else if($.has(H)){_=!1,L=!0;break}else _=!1}_?T.add(M.key):L?($.add(M.key),T.delete(M.key)):(T.delete(M.key),$.delete(M.key))}})}n.value=$},l=w=>o.value.has(w.key),i=w=>n.value.has(w.key),u=(w,E,T=!0)=>{const $=o.value,A=(R,M)=>{$[M?vu.ADD:vu.DELETE](R.key);const I=R.children;!e.checkStrictly&&I&&I.forEach(_=>{_.disabled||A(_,M)})};A(w,E),s(),T&&c(w,E)},c=(w,E)=>{const{checkedNodes:T,checkedKeys:$}=m(),{halfCheckedNodes:A,halfCheckedKeys:R}=g();r(Qg,w.data,{checkedKeys:$,checkedNodes:T,halfCheckedKeys:R,halfCheckedNodes:A}),r(ey,w.data,E)};function f(w=!1){return m(w).checkedKeys}function d(w=!1){return m(w).checkedNodes}function h(){return g().halfCheckedKeys}function v(){return g().halfCheckedNodes}function m(w=!1){const E=[],T=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:$}=t.value;o.value.forEach(A=>{const R=$.get(A);R&&(!w||w&&R.isLeaf)&&(T.push(A),E.push(R.data))})}return{checkedKeys:T,checkedNodes:E}}function g(){const w=[],E=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:T}=t.value;n.value.forEach($=>{const A=T.get($);A&&(E.push($),w.push(A.data))})}return{halfCheckedNodes:w,halfCheckedKeys:E}}function b(w){o.value.clear(),n.value.clear(),k(w)}function C(w,E){if((t==null?void 0:t.value)&&e.showCheckbox){const T=t.value.treeNodeMap.get(w);T&&u(T,E,!1)}}function k(w){if(t!=null&&t.value){const{treeNodeMap:E}=t.value;if(e.showCheckbox&&E&&w)for(const T of w){const $=E.get(T);$&&!l($)&&u($,!0,!1)}}}return{updateCheckedKeys:s,toggleCheckbox:u,isChecked:l,isIndeterminate:i,getCheckedKeys:f,getCheckedNodes:d,getHalfCheckedKeys:h,getHalfCheckedNodes:v,setChecked:C,setCheckedKeys:b}}function yK(e,t){const o=F(new Set([])),n=F(new Set([])),r=x(()=>At(e.filterMethod));function s(i){var u;if(!r.value)return;const c=new Set,f=n.value,d=o.value,h=[],v=((u=t.value)==null?void 0:u.treeNodes)||[],m=e.filterMethod;d.clear();function g(b){b.forEach(C=>{h.push(C),m!=null&&m(i,C.data)?h.forEach(w=>{c.add(w.key)}):C.isLeaf&&d.add(C.key);const k=C.children;if(k&&g(k),!C.isLeaf){if(!c.has(C.key))d.add(C.key);else if(k){let w=!0;for(const E of k)if(!d.has(E.key)){w=!1;break}w?f.add(C.key):f.delete(C.key)}}h.pop()})}return g(v),c}function l(i){return n.value.has(i.key)}return{hiddenExpandIconKeySet:n,hiddenNodeKeySet:o,doFilter:s,isForceHiddenExpandIcon:l}}function bK(e,t){const o=F(new Set(e.defaultExpandedKeys)),n=F(),r=Kt();ke(()=>e.currentNodeKey,re=>{n.value=re},{immediate:!0}),ke(()=>e.data,re=>{Ce(re)},{immediate:!0});const{isIndeterminate:s,isChecked:l,toggleCheckbox:i,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:h,setCheckedKeys:v}=gK(e,r),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=yK(e,r),C=x(()=>{var re;return((re=e.props)==null?void 0:re.value)||us.KEY}),k=x(()=>{var re;return((re=e.props)==null?void 0:re.children)||us.CHILDREN}),w=x(()=>{var re;return((re=e.props)==null?void 0:re.disabled)||us.DISABLED}),E=x(()=>{var re;return((re=e.props)==null?void 0:re.label)||us.LABEL}),T=x(()=>{const re=o.value,ie=g.value,pe=[],Ae=r.value&&r.value.treeNodes||[];function Le(){const Xe=[];for(let xe=Ae.length-1;xe>=0;--xe)Xe.push(Ae[xe]);for(;Xe.length;){const xe=Xe.pop();if(!!xe&&(ie.has(xe.key)||pe.push(xe),re.has(xe.key))){const He=xe.children;if(He){const ot=He.length;for(let Pe=ot-1;Pe>=0;--Pe)Xe.push(He[Pe])}}}}return Le(),pe}),$=x(()=>T.value.length>0);function A(re){const ie=new Map,pe=new Map;let Ae=1;function Le(xe,He=1,ot=void 0){var Pe;const qe=[];for(const ze of xe){const Se=I(ze),Oe={level:He,key:Se,data:ze};Oe.label=L(ze),Oe.parent=ot;const De=M(ze);Oe.disabled=_(ze),Oe.isLeaf=!De||De.length===0,De&&De.length&&(Oe.children=Le(De,He+1,Oe)),qe.push(Oe),ie.set(Se,Oe),pe.has(He)||pe.set(He,[]),(Pe=pe.get(He))==null||Pe.push(Oe)}return He>Ae&&(Ae=He),qe}const Xe=Le(re);return{treeNodeMap:ie,levelTreeNodeMap:pe,maxLevel:Ae,treeNodes:Xe}}function R(re){const ie=m(re);ie&&(o.value=ie)}function M(re){return re[k.value]}function I(re){return re?re[C.value]:""}function _(re){return re[w.value]}function L(re){return re[E.value]}function z(re){o.value.has(re.key)?B(re):V(re)}function H(re){o.value=new Set(re)}function W(re,ie){t(qg,re.data,re,ie),j(re),e.expandOnClickNode&&z(re),e.showCheckbox&&e.checkOnClickNode&&!re.disabled&&i(re,!l(re),!0)}function j(re){q(re)||(n.value=re.key,t(Jg,re.data,re))}function D(re,ie){i(re,ie)}function V(re){const ie=o.value;if(r.value&&e.accordion){const{treeNodeMap:pe}=r.value;ie.forEach(Ae=>{const Le=pe.get(Ae);re&&re.level===(Le==null?void 0:Le.level)&&ie.delete(Ae)})}ie.add(re.key),t(Xg,re.data,re)}function B(re){o.value.delete(re.key),t(Zg,re.data,re)}function X(re){return o.value.has(re.key)}function Q(re){return!!re.disabled}function q(re){const ie=n.value;return!!ie&&ie===re.key}function ee(){var re,ie;if(!!n.value)return(ie=(re=r.value)==null?void 0:re.treeNodeMap.get(n.value))==null?void 0:ie.data}function ve(){return n.value}function me(re){n.value=re}function Ce(re){Ge(()=>r.value=A(re))}function le(re){var ie;const pe=qt(re)?I(re):re;return(ie=r.value)==null?void 0:ie.treeNodeMap.get(pe)}return{tree:r,flattenTree:T,isNotEmpty:$,getKey:I,getChildren:M,toggleExpand:z,toggleCheckbox:i,isExpanded:X,isChecked:l,isIndeterminate:s,isDisabled:Q,isCurrent:q,isForceHiddenExpandIcon:b,handleNodeClick:W,handleNodeCheck:D,getCurrentNode:ee,getCurrentKey:ve,setCurrentKey:me,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:h,setCheckedKeys:v,filter:R,setData:Ce,getNode:le,expandNode:V,collapseNode:B,setExpandedKeys:H}}var wK=oe({name:"ElTreeNodeContent",props:hK,setup(e){const t=Ue(Bc),o=be("tree");return()=>{const n=e.node,{data:r}=n;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:n,data:r}):Ke("span",{class:o.be("node","label")},[n==null?void 0:n.label])}}});const CK=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],SK=oe({name:"ElTreeNode"}),kK=oe({...SK,props:pK,emits:mK,setup(e,{emit:t}){const o=e,n=Ue(Bc),r=be("tree"),s=x(()=>{var d;return(d=n==null?void 0:n.props.indent)!=null?d:16}),l=x(()=>{var d;return(d=n==null?void 0:n.props.icon)!=null?d:Jp}),i=d=>{t("click",o.node,d)},u=()=>{t("toggle",o.node)},c=d=>{t("check",o.node,d)},f=d=>{var h,v,m,g;(m=(v=(h=n==null?void 0:n.instance)==null?void 0:h.vnode)==null?void 0:v.props)!=null&&m.onNodeContextmenu&&(d.stopPropagation(),d.preventDefault()),n==null||n.ctx.emit(ty,d,(g=o.node)==null?void 0:g.data,o.node)};return(d,h)=>{var v,m,g;return N(),U("div",{ref:"node$",class:P([a(r).b("node"),a(r).is("expanded",d.expanded),a(r).is("current",d.current),a(r).is("focusable",!d.disabled),a(r).is("checked",!d.disabled&&d.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":d.expanded,"aria-disabled":d.disabled,"aria-checked":d.checked,"data-key":(v=d.node)==null?void 0:v.key,onClick:nt(i,["stop"]),onContextmenu:f},[te("div",{class:P(a(r).be("node","content")),style:je({paddingLeft:`${(d.node.level-1)*a(s)}px`})},[a(l)?(N(),fe(a(_e),{key:0,class:P([a(r).is("leaf",!!((m=d.node)!=null&&m.isLeaf)),a(r).is("hidden",d.hiddenExpandIcon),{expanded:!((g=d.node)!=null&&g.isLeaf)&&d.expanded},a(r).be("node","expand-icon")]),onClick:nt(u,["stop"])},{default:se(()=>[(N(),fe(St(a(l))))]),_:1},8,["class","onClick"])):de("v-if",!0),d.showCheckbox?(N(),fe(a(Un),{key:1,"model-value":d.checked,indeterminate:d.indeterminate,disabled:d.disabled,onChange:c,onClick:h[0]||(h[0]=nt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):de("v-if",!0),Z(a(wK),{node:d.node},null,8,["node"])],6)],42,CK)}}});var EK=Ie(kK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const $K=26,TK=oe({name:"ElTreeV2"}),OK=oe({...TK,props:fK,emits:vK,setup(e,{expose:t,emit:o}){const n=e,r=gn();gt(Bc,{ctx:{emit:o,slots:r},props:n,instance:yt()}),gt(Ao,void 0);const{t:s}=$t(),l=be("tree"),{flattenTree:i,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:g,handleNodeClick:b,handleNodeCheck:C,toggleCheckbox:k,getCurrentNode:w,getCurrentKey:E,setCurrentKey:T,getCheckedKeys:$,getCheckedNodes:A,getHalfCheckedKeys:R,getHalfCheckedNodes:M,setChecked:I,setCheckedKeys:_,filter:L,setData:z,getNode:H,expandNode:W,collapseNode:j,setExpandedKeys:D}=bK(n,o);return t({toggleCheckbox:k,getCurrentNode:w,getCurrentKey:E,setCurrentKey:T,getCheckedKeys:$,getCheckedNodes:A,getHalfCheckedKeys:R,getHalfCheckedNodes:M,setChecked:I,setCheckedKeys:_,filter:L,setData:z,getNode:H,expandNode:W,collapseNode:j,setExpandedKeys:D}),(V,B)=>{var X;return N(),U("div",{class:P([a(l).b(),{[a(l).m("highlight-current")]:V.highlightCurrent}]),role:"tree"},[a(u)?(N(),fe(a(cg),{key:0,"class-name":a(l).b("virtual-list"),data:a(i),total:a(i).length,height:V.height,"item-size":$K,"perf-mode":V.perfMode},{default:se(({data:Q,index:q,style:ee})=>[(N(),fe(EK,{key:Q[q].key,style:je(ee),node:Q[q],expanded:a(f)(Q[q]),"show-checkbox":V.showCheckbox,checked:a(h)(Q[q]),indeterminate:a(d)(Q[q]),disabled:a(v)(Q[q]),current:a(m)(Q[q]),"hidden-expand-icon":a(g)(Q[q]),onClick:a(b),onToggle:a(c),onCheck:a(C)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","perf-mode"])):(N(),U("div",{key:1,class:P(a(l).e("empty-block"))},[te("span",{class:P(a(l).e("empty-text"))},Ne((X=V.emptyText)!=null?X:a(s)("el.tree.emptyText")),3)],2))],2)}}});var xK=Ie(OK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const IK=dt(xK),MK="ElUpload";class NK extends Error{constructor(t,o,n,r){super(t),this.name="UploadAjaxError",this.status=o,this.method=n,this.url=r}}function Rp(e,t,o){let n;return o.response?n=`${o.response.error||o.response}`:o.responseText?n=`${o.responseText}`:n=`fail to ${t.method} ${e} ${o.status}`,new NK(n,o.status,t.method,e)}function PK(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const RK=e=>{typeof XMLHttpRequest>"u"&&nn(MK,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,o=e.action;t.upload&&t.upload.addEventListener("progress",s=>{const l=s;l.percent=s.total>0?s.loaded/s.total*100:0,e.onProgress(l)});const n=new FormData;if(e.data)for(const[s,l]of Object.entries(e.data))Array.isArray(l)?n.append(s,...l):n.append(s,l);n.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Rp(o,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Rp(o,e,t));e.onSuccess(PK(t))}),t.open(e.method,o,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};if(r instanceof Headers)r.forEach((s,l)=>t.setRequestHeader(l,s));else for(const[s,l]of Object.entries(r))Cn(l)||t.setRequestHeader(s,String(l));return t.send(n),t},ny=["text","picture","picture-card"];let AK=1;const mu=()=>Date.now()+AK++,oy=Re({action:{type:String,default:"#"},headers:{type:ce(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>_t({})},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:ce(Array),default:()=>_t([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ny,default:"text"},httpRequest:{type:ce(Function),default:RK},disabled:Boolean,limit:Number}),DK=Re({...oy,beforeUpload:{type:ce(Function),default:Qt},beforeRemove:{type:ce(Function)},onRemove:{type:ce(Function),default:Qt},onChange:{type:ce(Function),default:Qt},onPreview:{type:ce(Function),default:Qt},onSuccess:{type:ce(Function),default:Qt},onProgress:{type:ce(Function),default:Qt},onError:{type:ce(Function),default:Qt},onExceed:{type:ce(Function),default:Qt}}),LK=Re({files:{type:ce(Array),default:()=>_t([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ce(Function),default:Qt},listType:{type:String,values:ny,default:"text"}}),BK={remove:e=>!!e},zK=["onKeydown"],VK=["src"],FK=["onClick"],HK=["onClick"],WK=["onClick"],KK=oe({name:"ElUploadList"}),_K=oe({...KK,props:LK,emits:BK,setup(e,{emit:t}){const{t:o}=$t(),n=be("upload"),r=be("icon"),s=be("list"),l=Jn(),i=F(!1),u=c=>{t("remove",c)};return(c,f)=>(N(),fe(h0,{tag:"ul",class:P([a(n).b("list"),a(n).bm("list",c.listType),a(n).is("disabled",a(l))]),name:a(s).b()},{default:se(()=>[(N(!0),U(Qe,null,bt(c.files,d=>(N(),U("li",{key:d.uid||d.name,class:P([a(n).be("list","item"),a(n).is(d.status),{focusing:i.value}]),tabindex:"0",onKeydown:Et(h=>!a(l)&&u(d),["delete"]),onFocus:f[0]||(f[0]=h=>i.value=!0),onBlur:f[1]||(f[1]=h=>i.value=!1),onClick:f[2]||(f[2]=h=>i.value=!1)},[ye(c.$slots,"default",{file:d},()=>[c.listType==="picture"||d.status!=="uploading"&&c.listType==="picture-card"?(N(),U("img",{key:0,class:P(a(n).be("list","item-thumbnail")),src:d.url,alt:""},null,10,VK)):de("v-if",!0),d.status==="uploading"||c.listType!=="picture-card"?(N(),U("div",{key:1,class:P(a(n).be("list","item-info"))},[te("a",{class:P(a(n).be("list","item-name")),onClick:nt(h=>c.handlePreview(d),["prevent"])},[Z(a(_e),{class:P(a(r).m("document"))},{default:se(()=>[Z(a(j0))]),_:1},8,["class"]),te("span",{class:P(a(n).be("list","item-file-name"))},Ne(d.name),3)],10,FK),d.status==="uploading"?(N(),fe(a(tg),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(d.percentage),style:je(c.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):de("v-if",!0)],2)):de("v-if",!0),te("label",{class:P(a(n).be("list","item-status-label"))},[c.listType==="text"?(N(),fe(a(_e),{key:0,class:P([a(r).m("upload-success"),a(r).m("circle-check")])},{default:se(()=>[Z(a(Zp))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?(N(),fe(a(_e),{key:1,class:P([a(r).m("upload-success"),a(r).m("check")])},{default:se(()=>[Z(a(Vs))]),_:1},8,["class"])):de("v-if",!0)],2),a(l)?de("v-if",!0):(N(),fe(a(_e),{key:2,class:P(a(r).m("close")),onClick:h=>u(d)},{default:se(()=>[Z(a(mo))]),_:2},1032,["class","onClick"])),de(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),de(" This is a bug which needs to be fixed "),de(" TODO: Fix the incorrect navigation interaction "),a(l)?de("v-if",!0):(N(),U("i",{key:3,class:P(a(r).m("close-tip"))},Ne(a(o)("el.upload.deleteTip")),3)),c.listType==="picture-card"?(N(),U("span",{key:4,class:P(a(n).be("list","item-actions"))},[te("span",{class:P(a(n).be("list","item-preview")),onClick:h=>c.handlePreview(d)},[Z(a(_e),{class:P(a(r).m("zoom-in"))},{default:se(()=>[Z(a(Gp))]),_:1},8,["class"])],10,HK),a(l)?de("v-if",!0):(N(),U("span",{key:0,class:P(a(n).be("list","item-delete")),onClick:h=>u(d)},[Z(a(_e),{class:P(a(r).m("delete"))},{default:se(()=>[Z(a(Y0))]),_:1},8,["class"])],10,WK))],2)):de("v-if",!0)])],42,zK))),128)),ye(c.$slots,"append")]),_:3},8,["class","name"]))}});var Ap=Ie(_K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const jK=Re({disabled:{type:Boolean,default:!1}}),YK={file:e=>ft(e)},UK=["onDrop","onDragover"],ry="ElUploadDrag",GK=oe({name:ry}),qK=oe({...GK,props:jK,emits:YK,setup(e,{emit:t}){const o=Ue(Gh);o||nn(ry,"usage: ");const n=be("upload"),r=F(!1),s=Jn(),l=u=>{if(s.value)return;r.value=!1;const c=Array.from(u.dataTransfer.files),f=o.accept.value;if(!f){t("file",c);return}const d=c.filter(h=>{const{type:v,name:m}=h,g=m.includes(".")?`.${m.split(".").pop()}`:"",b=v.replace(/\/.*$/,"");return f.split(",").map(C=>C.trim()).filter(C=>C).some(C=>C.startsWith(".")?g===C:/\/\*$/.test(C)?b===C.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(C)?v===C:!1)});t("file",d)},i=()=>{s.value||(r.value=!0)};return(u,c)=>(N(),U("div",{class:P([a(n).b("dragger"),a(n).is("dragover",r.value)]),onDrop:nt(l,["prevent"]),onDragover:nt(i,["prevent"]),onDragleave:c[0]||(c[0]=nt(f=>r.value=!1,["prevent"]))},[ye(u.$slots,"default")],42,UK))}});var XK=Ie(qK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const ZK=Re({...oy,beforeUpload:{type:ce(Function),default:Qt},onRemove:{type:ce(Function),default:Qt},onStart:{type:ce(Function),default:Qt},onSuccess:{type:ce(Function),default:Qt},onProgress:{type:ce(Function),default:Qt},onError:{type:ce(Function),default:Qt},onExceed:{type:ce(Function),default:Qt}}),JK=["onKeydown"],QK=["name","multiple","accept"],e3=oe({name:"ElUploadContent",inheritAttrs:!1}),t3=oe({...e3,props:ZK,setup(e,{expose:t}){const o=e,n=be("upload"),r=Jn(),s=Kt({}),l=Kt(),i=m=>{if(m.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:k,onStart:w,onExceed:E}=o;if(b&&C.length+m.length>b){E(m,C);return}k||(m=m.slice(0,1));for(const T of m){const $=T;$.uid=mu(),w($),g&&u($)}},u=async m=>{if(l.value.value="",!o.beforeUpload)return c(m);let g;try{g=await o.beforeUpload(m)}catch{g=!1}if(g===!1){o.onRemove(m);return}let b=m;g instanceof Blob&&(g instanceof File?b=g:b=new File([g],m.name,{type:m.type})),c(Object.assign(b,{uid:m.uid}))},c=m=>{const{headers:g,data:b,method:C,withCredentials:k,name:w,action:E,onProgress:T,onSuccess:$,onError:A,httpRequest:R}=o,{uid:M}=m,I={headers:g||{},withCredentials:k,file:m,data:b,method:C,filename:w,action:E,onProgress:L=>{T(L,m)},onSuccess:L=>{$(L,m),delete s.value[M]},onError:L=>{A(L,m),delete s.value[M]}},_=R(I);s.value[M]=_,_ instanceof Promise&&_.then(I.onSuccess,I.onError)},f=m=>{const g=m.target.files;!g||i(Array.from(g))},d=()=>{r.value||(l.value.value="",l.value.click())},h=()=>{d()};return t({abort:m=>{vw(s.value).filter(m?([b])=>String(m.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete s.value[b]})},upload:u}),(m,g)=>(N(),U("div",{class:P([a(n).b(),a(n).m(m.listType),a(n).is("drag",m.drag)]),tabindex:"0",onClick:d,onKeydown:Et(nt(h,["self"]),["enter","space"])},[m.drag?(N(),fe(XK,{key:0,disabled:a(r),onFile:i},{default:se(()=>[ye(m.$slots,"default")]),_:3},8,["disabled"])):ye(m.$slots,"default",{key:1}),te("input",{ref_key:"inputRef",ref:l,class:P(a(n).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=nt(()=>{},["stop"]))},null,42,QK)],42,JK))}});var Dp=Ie(t3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Lp="ElUpload",n3=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},o3=(e,t)=>{const o=mw(e,"fileList",void 0,{passive:!0}),n=h=>o.value.find(v=>v.uid===h.uid);function r(h){var v;(v=t.value)==null||v.abort(h)}function s(h=["ready","uploading","success","fail"]){o.value=o.value.filter(v=>!h.includes(v.status))}const l=(h,v)=>{const m=n(v);!m||(console.error(h),m.status="fail",o.value.splice(o.value.indexOf(m),1),e.onError(h,m,o.value),e.onChange(m,o.value))},i=(h,v)=>{const m=n(v);!m||(e.onProgress(h,m,o.value),m.status="uploading",m.percentage=Math.round(h.percent))},u=(h,v)=>{const m=n(v);!m||(m.status="success",m.response=h,e.onSuccess(h,m,o.value),e.onChange(m,o.value))},c=h=>{Cn(h.uid)&&(h.uid=mu());const v={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(h)}catch(m){on(Lp,m.message),e.onError(m,v,o.value)}o.value=[...o.value,v],e.onChange(v,o.value)},f=async h=>{const v=h instanceof File?n(h):h;v||nn(Lp,"file to be removed not found");const m=g=>{r(g);const b=o.value;b.splice(b.indexOf(g),1),e.onRemove(g,b),n3(g)};e.beforeRemove?await e.beforeRemove(v,o.value)!==!1&&m(v):m(v)};function d(){o.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var v;return h&&((v=t.value)==null?void 0:v.upload(h))})}return ke(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(o.value=o.value.map(v=>{const{raw:m,url:g}=v;if(!g&&m)try{v.url=URL.createObjectURL(m)}catch(b){e.onError(b,v,o.value)}return v}))}),ke(o,h=>{for(const v of h)v.uid||(v.uid=mu()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:r,clearFiles:s,handleError:l,handleProgress:i,handleStart:c,handleSuccess:u,handleRemove:f,submit:d}},r3=oe({name:"ElUpload"}),s3=oe({...r3,props:DK,setup(e,{expose:t}){const o=e,n=gn(),r=Jn(),s=Kt(),{abort:l,submit:i,clearFiles:u,uploadFiles:c,handleStart:f,handleError:d,handleRemove:h,handleSuccess:v,handleProgress:m}=o3(o,s),g=x(()=>o.listType==="picture-card"),b=x(()=>({...o,fileList:c.value,onStart:f,onProgress:m,onSuccess:v,onError:d,onRemove:h}));return sn(()=>{c.value.forEach(({url:C})=>{C!=null&&C.startsWith("blob:")&&URL.revokeObjectURL(C)})}),gt(Gh,{accept:Jt(o,"accept")}),t({abort:l,submit:i,clearFiles:u,handleStart:f,handleRemove:h}),(C,k)=>(N(),U("div",null,[a(g)&&C.showFileList?(N(),fe(Ap,{key:0,disabled:a(r),"list-type":C.listType,files:a(c),"handle-preview":C.onPreview,onRemove:a(h)},Io({append:se(()=>[Z(Dp,mt({ref_key:"uploadRef",ref:s},a(b)),{default:se(()=>[a(n).trigger?ye(C.$slots,"trigger",{key:0}):de("v-if",!0),!a(n).trigger&&a(n).default?ye(C.$slots,"default",{key:1}):de("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:se(({file:w})=>[ye(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):de("v-if",!0),!a(g)||a(g)&&!C.showFileList?(N(),fe(Dp,mt({key:1,ref_key:"uploadRef",ref:s},a(b)),{default:se(()=>[a(n).trigger?ye(C.$slots,"trigger",{key:0}):de("v-if",!0),!a(n).trigger&&a(n).default?ye(C.$slots,"default",{key:1}):de("v-if",!0)]),_:3},16)):de("v-if",!0),C.$slots.trigger?ye(C.$slots,"default",{key:2}):de("v-if",!0),ye(C.$slots,"tip"),!a(g)&&C.showFileList?(N(),fe(Ap,{key:3,disabled:a(r),"list-type":C.listType,files:a(c),"handle-preview":C.onPreview,onRemove:a(h)},Io({_:2},[C.$slots.file?{name:"default",fn:se(({file:w})=>[ye(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):de("v-if",!0)]))}});var a3=Ie(s3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const l3=dt(a3);var i3=[r$,d$,bO,xH,TO,RO,gw,HO,WO,mn,ch,Dx,Fx,eI,tI,hM,tM,wM,Un,CI,om,$M,_M,jM,DM,mN,gN,IN,MN,NN,PN,RN,FP,XP,ZP,iR,Am,SR,p2,h2,v2,Km,FA,HA,_e,tD,Ym,bn,Um,vD,DD,LD,BD,_D,UL,JL,lB,Ov,tg,um,BI,LI,EB,IB,LB,So,lr,qa,bL,Tz,Az,Dz,dV,mV,$V,TV,BV,KF,_F,OH,KH,_H,kl,hx,XH,tW,nW,xn,xW,KW,oK,cK,IK,l3];const Gn="ElInfiniteScroll",u3=50,c3=200,d3=0,f3={delay:{type:Number,default:c3},distance:{type:Number,default:d3},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},zc=(e,t)=>Object.entries(f3).reduce((o,[n,r])=>{var s,l;const{type:i,default:u}=r,c=e.getAttribute(`infinite-scroll-${n}`);let f=(l=(s=t[c])!=null?s:c)!=null?l:u;return f=f==="false"?!1:f,f=i(f),o[n]=Number.isNaN(f)?u:f,o},{}),sy=e=>{const{observer:t}=e[Gn];t&&(t.disconnect(),delete e[Gn].observer)},p3=(e,t)=>{const{container:o,containerEl:n,instance:r,observer:s,lastScrollTop:l}=e[Gn],{disabled:i,distance:u}=zc(e,r),{clientHeight:c,scrollHeight:f,scrollTop:d}=n,h=d-l;if(e[Gn].lastScrollTop=d,s||i||h<0)return;let v=!1;if(o===e)v=f-(c+d)<=u;else{const{clientTop:m,scrollHeight:g}=e,b=uE(e,n);v=d+c>=b+m+g-u}v&&t.call(r)};function $i(e,t){const{containerEl:o,instance:n}=e[Gn],{disabled:r}=zc(e,n);r||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?t.call(n):sy(e))}const h3={async mounted(e,t){const{instance:o,value:n}=t;At(n)||nn(Gn,"'v-infinite-scroll' binding value must be a function"),await Ge();const{delay:r,immediate:s}=zc(e,o),l=xu(e,!0),i=l===window?document.documentElement:l,u=tr(p3.bind(null,e,n),r);if(!!l){if(e[Gn]={instance:o,container:l,containerEl:i,delay:r,cb:n,onScroll:u,lastScrollTop:i.scrollTop},s){const c=new MutationObserver(tr($i.bind(null,e,n),u3));e[Gn].observer=c,c.observe(e,{childList:!0,subtree:!0}),$i(e,n)}l.addEventListener("scroll",u)}},unmounted(e){const{container:t,onScroll:o}=e[Gn];t==null||t.removeEventListener("scroll",o),sy(e)},async updated(e){e[Gn]||await Ge();const{containerEl:t,cb:o,observer:n}=e[Gn];t.clientHeight&&n&&$i(e,o)}},gu=h3;gu.install=e=>{e.directive("InfiniteScroll",gu)};const v3=gu;function m3(e){let t;const o=be("loading"),n=F(!1),r=Rt({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(v){r.text=v}function l(){const v=r.parent;if(!v.vLoadingAddClassList){let m=v.getAttribute("loading-number");m=Number.parseInt(m)-1,m?v.setAttribute("loading-number",m.toString()):(An(v,o.bm("parent","relative")),v.removeAttribute("loading-number")),An(v,o.bm("parent","hidden"))}i(),d.unmount()}function i(){var v,m;(m=(v=h.$el)==null?void 0:v.parentNode)==null||m.removeChild(h.$el)}function u(){var v;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(c,400),r.visible=!1,(v=e.closed)==null||v.call(e))}function c(){if(!n.value)return;const v=r.parent;n.value=!1,v.vLoadingAddClassList=void 0,l()}const d=Yp({name:"ElLoading",setup(){return()=>{const v=r.spinner||r.svg,m=Ke("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[Ke("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),g=r.text?Ke("p",{class:o.b("text")},[r.text]):void 0;return Ke(cn,{name:o.b("fade"),onAfterLeave:c},{default:se(()=>[lt(Z("div",{style:{backgroundColor:r.background||""},class:[o.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Ke("div",{class:o.b("spinner")},[m,g])]),[[xt,r.visible]])])})}}}),h=d.mount(document.createElement("div"));return{...tn(r),setText:s,removeElLoadingChild:i,close:u,handleAfterLeave:c,vm:h,get $el(){return h.$el}}}let va;const yu=function(e={}){if(!Dt)return;const t=g3(e);if(t.fullscreen&&va)return va;const o=m3({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(va=void 0)}});y3(t,t.parent,o),Bp(t,t.parent,o),t.parent.vLoadingAddClassList=()=>Bp(t,t.parent,o);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(o.$el),Ge(()=>o.visible.value=t.visible),t.fullscreen&&(va=o),o},g3=e=>{var t,o,n,r;let s;return kt(e.target)?s=(t=document.querySelector(e.target))!=null?t:document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,target:s}},y3=async(e,t,o)=>{const{nextZIndex:n}=cr(),r={};if(e.fullscreen)o.originalPosition.value=Go(document.body,"position"),o.originalOverflow.value=Go(document.body,"overflow"),r.zIndex=n();else if(e.parent===document.body){o.originalPosition.value=Go(document.body,"position"),await Ge();for(const s of["top","left"]){const l=s==="top"?"scrollTop":"scrollLeft";r[s]=`${e.target.getBoundingClientRect()[s]+document.body[l]+document.documentElement[l]-Number.parseInt(Go(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])r[s]=`${e.target.getBoundingClientRect()[s]}px`}else o.originalPosition.value=Go(t,"position");for(const[s,l]of Object.entries(r))o.$el.style[s]=l},Bp=(e,t,o)=>{const n=be("loading");["absolute","fixed","sticky"].includes(o.originalPosition.value)?An(t,n.bm("parent","relative")):fo(t,n.bm("parent","relative")),e.fullscreen&&e.lock?fo(t,n.bm("parent","hidden")):An(t,n.bm("parent","hidden"))},bu=Symbol("ElLoading"),zp=(e,t)=>{var o,n,r,s;const l=t.instance,i=h=>qt(t.value)?t.value[h]:void 0,u=h=>{const v=kt(h)&&(l==null?void 0:l[h])||h;return v&&F(v)},c=h=>u(i(h)||e.getAttribute(`element-loading-${v0(h)}`)),f=(o=i("fullscreen"))!=null?o:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:f,target:(n=i("target"))!=null?n:f?void 0:e,body:(r=i("body"))!=null?r:t.modifiers.body,lock:(s=i("lock"))!=null?s:t.modifiers.lock};e[bu]={options:d,instance:yu(d)}},b3=(e,t)=>{for(const o of Object.keys(t))Wn(t[o])&&(t[o].value=e[o])},Vp={mounted(e,t){t.value&&zp(e,t)},updated(e,t){const o=e[bu];t.oldValue!==t.value&&(t.value&&!t.oldValue?zp(e,t):t.value&&t.oldValue?qt(t.value)&&b3(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[bu])==null||t.instance.close()}},w3={install(e){e.directive("loading",Vp),e.config.globalProperties.$loading=yu},directive:Vp,service:yu},ay=["success","info","warning","error"],C3=Re({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:jt},id:{type:String,default:""},message:{type:ce([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:ce(Function),default:()=>{}},onClose:{type:ce(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:[...ay,""],default:""},zIndex:{type:Number,default:0}}),S3={destroy:()=>!0},k3=["id"],E3=["textContent"],$3={key:0},T3=["innerHTML"],O3=oe({name:"ElNotification"}),x3=oe({...O3,props:C3,emits:S3,setup(e,{expose:t}){const o=e,n=be("notification"),{Close:r}=ih,s=F(!1);let l;const i=x(()=>{const b=o.type;return b&&Wa[o.type]?n.m(b):""}),u=x(()=>o.type&&Wa[o.type]||o.icon),c=x(()=>o.position.endsWith("right")?"right":"left"),f=x(()=>o.position.startsWith("top")?"top":"bottom"),d=x(()=>({[f.value]:`${o.offset}px`,zIndex:o.zIndex}));function h(){o.duration>0&&({stop:l}=Br(()=>{s.value&&m()},o.duration))}function v(){l==null||l()}function m(){s.value=!1}function g({code:b}){b===Ye.delete||b===Ye.backspace?v():b===Ye.esc?s.value&&m():h()}return ht(()=>{h(),s.value=!0}),pn(document,"keydown",g),t({visible:s,close:m}),(b,C)=>(N(),fe(cn,{name:a(n).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:C[1]||(C[1]=k=>b.$emit("destroy")),persisted:""},{default:se(()=>[lt(te("div",{id:b.id,class:P([a(n).b(),b.customClass,a(c)]),style:je(a(d)),role:"alert",onMouseenter:v,onMouseleave:h,onClick:C[0]||(C[0]=(...k)=>b.onClick&&b.onClick(...k))},[a(u)?(N(),fe(a(_e),{key:0,class:P([a(n).e("icon"),a(i)])},{default:se(()=>[(N(),fe(St(a(u))))]),_:1},8,["class"])):de("v-if",!0),te("div",{class:P(a(n).e("group"))},[te("h2",{class:P(a(n).e("title")),textContent:Ne(b.title)},null,10,E3),lt(te("div",{class:P(a(n).e("content")),style:je(b.title?void 0:{margin:0})},[ye(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(N(),U(Qe,{key:1},[de(" Caution here, message could've been compromised, never use user's input as message "),te("p",{innerHTML:b.message},null,8,T3)],2112)):(N(),U("p",$3,Ne(b.message),1))])],6),[[xt,b.message]]),b.showClose?(N(),fe(a(_e),{key:0,class:P(a(n).e("closeBtn")),onClick:nt(m,["stop"])},{default:se(()=>[Z(a(r))]),_:1},8,["class","onClick"])):de("v-if",!0)],2)],46,k3),[[xt,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var I3=Ie(x3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const rl={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},wu=16;let M3=1;const Ur=function(e={},t=null){if(!Dt)return{close:()=>{}};(typeof e=="string"||Ln(e))&&(e={message:e});const o=e.position||"top-right";let n=e.offset||0;rl[o].forEach(({vm:d})=>{var h;n+=(((h=d.el)==null?void 0:h.offsetHeight)||0)+wu}),n+=wu;const{nextZIndex:r}=cr(),s=`notification_${M3++}`,l=e.onClose,i={...e,zIndex:r(),offset:n,id:s,onClose:()=>{N3(s,o,l)}};let u=document.body;Ro(e.appendTo)?u=e.appendTo:kt(e.appendTo)&&(u=document.querySelector(e.appendTo)),Ro(u)||(u=document.body);const c=document.createElement("div"),f=Z(I3,i,Ln(i.message)?{default:()=>i.message}:null);return f.appContext=t??Ur._context,f.props.onDestroy=()=>{Sd(null,c)},Sd(f,c),rl[o].push({vm:f}),u.appendChild(c.firstElementChild),{close:()=>{f.component.exposed.visible.value=!1}}};ay.forEach(e=>{Ur[e]=(t={})=>((typeof t=="string"||Ln(t))&&(t={message:t}),Ur({...t,type:e}))});function N3(e,t,o){const n=rl[t],r=n.findIndex(({vm:c})=>{var f;return((f=c.component)==null?void 0:f.props.id)===e});if(r===-1)return;const{vm:s}=n[r];if(!s)return;o==null||o(s);const l=s.el.offsetHeight,i=t.split("-")[0];n.splice(r,1);const u=n.length;if(!(u<1))for(let c=r;c{t.component.exposed.visible.value=!1})}Ur.closeAll=P3;Ur._context=null;const R3=yw(Ur,"$notify");var A3=[v3,w3,bw,Mw,R3,eg],D3=JE([...i3,...A3]);const Fp=["//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css","//cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"],Hp=[];function L3(){if(Fp.length<=0)return!1;Fp.map(e=>{let t=document.createElement("link");t.rel="stylesheet",t.href=e,t.crossOrigin="anonymous",document.getElementsByTagName("head")[0].appendChild(t)})}function B3(){if(Hp.length<=0)return!1;Hp.map(e=>{let t=document.createElement("script");t.src=e,document.body.appendChild(t)})}const Wp={cssCdn:()=>{L3()},jsCdn:()=>{B3()}},z3=oe({name:"app"}),V3=oe({...z3,setup(e){const t=ei(()=>ti(()=>import("./index.c82c5ebc.js"),["assets/index.c82c5ebc.js","assets/vue.bd0669ce.js","assets/formatTime.057ac5b9.js","assets/storage.b628b270.js","assets/themeConfig.cb88f033.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.4e61e06f.css"])),o=ei(()=>ti(()=>import("./setings.9fa2d183.js"),["assets/setings.9fa2d183.js","assets/vue-i18n.cjs.2a00fe88.js","assets/_commonjsHelpers.35101cd5.js","assets/vue.bd0669ce.js","assets/themeConfig.cb88f033.js","assets/index.e8f4f9cf.js","assets/index.ee56f1f7.js","assets/toolsValidate.7cb139e2.js","assets/storage.b628b270.js","assets/commonFunction.a83fad7a.js","assets/formatTime.057ac5b9.js","assets/other.e9eeae65.js","assets/preload-helper.101896b7.js","assets/index.2f1ef0a5.js","assets/index.aa7cec2e.js","assets/keepAliveNames.f05bad75.js","assets/routesList.32d6bb58.js","assets/userInfo.f7c9dd73.js","assets/loading.3e617409.js","assets/loading.70fbfd85.css","assets/tagsViewRoutes.054c4a6f.js","assets/request.386cf962.js","assets/index.c3b4fd97.js","assets/index.f64fca3a.js","assets/index.8b89e2e0.css","assets/mitt.7f99bbc0.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/setings.c1a0d63f.css"])),n=ei(()=>ti(()=>import("./closeFull.bf8d3509.js"),["assets/closeFull.bf8d3509.js","assets/vue.bd0669ce.js","assets/tagsViewRoutes.054c4a6f.js","assets/storage.b628b270.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/closeFull.5a2179a2.css"])),{messages:r,locale:s}=b0(),l=F(),i=m0(),u=C0(),c=S0(),{themeConfig:f}=g0(c),d=x(()=>Oi.globalComponentSize()),h=x(()=>r.value[s.value]);return sl(()=>{Wp.cssCdn(),Wp.jsCdn()}),ht(()=>{Ge(()=>{Ed.on("openSetingsDrawer",()=>{l.value.openDrawer()}),ni.get("themeConfig")&&(c.setThemeConfig({themeConfig:ni.get("themeConfig")}),document.documentElement.style.cssText=ni.get("themeConfigStyle")),kd.get("isTagsViewCurrenFull")&&u.setCurrenFullscreen(kd.get("isTagsViewCurrenFull"))})}),zs(()=>{Ed.off("openSetingsDrawer",()=>{})}),ke(()=>i.path,()=>{Oi.useTitle()},{deep:!0}),(v,m)=>{const g=tt("router-view"),b=tt("el-config-provider");return N(),fe(b,{size:a(d),locale:a(h)},{default:se(()=>[lt(Z(g,null,null,512),[[xt,a(f).lockScreenTime>1]]),a(f).isLockScreen?(N(),fe(a(t),{key:0})):de("",!0),lt(Z(a(o),{ref_key:"setingsRef",ref:l},null,512),[[xt,a(f).lockScreenTime>1]]),a(f).isLockScreen?de("",!0):(N(),fe(a(n),{key:1}))]),_:1},8,["size","locale"])}}});function F3(e){e.directive("auth",{mounted(t,o){oi().userInfos.authBtnList.some(r=>r===o.value)||t.parentNode.removeChild(t)}}),e.directive("auths",{mounted(t,o){let n=!1;oi().userInfos.authBtnList.map(s=>{o.value.map(l=>{s===l&&(n=!0)})}),n||t.parentNode.removeChild(t)}}),e.directive("auth-all",{mounted(t,o){const n=oi();E0(o.value,n.userInfos.authBtnList)||t.parentNode.removeChild(t)}})}function H3(e){e.directive("waves",{mounted(t,o){t.classList.add("waves-effect"),o.value&&t.classList.add(`waves-${o.value}`);function n(s){let l="";for(let i in s)s.hasOwnProperty(i)&&(l+=`${i}:${s[i]};`);return l}function r(s){let l=document.createElement("div");l.classList.add("waves-ripple"),t.appendChild(l);let i={left:`${s.layerX}px`,top:`${s.layerY}px`,opacity:1,transform:`scale(${t.clientWidth/100*10})`,"transition-duration":"750ms","transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)"};l.setAttribute("style",n(i)),setTimeout(()=>{l.setAttribute("style",n({opacity:0,transform:i.transform,left:i.left,top:i.top})),setTimeout(()=>{l&&t.removeChild(l)},750)},450)}t.addEventListener("mousedown",r,!1)},unmounted(t){t.addEventListener("mousedown",()=>{})}})}function W3(e){e.directive("drag",{mounted(t,o){if(!o.value)return!1;const n=document.querySelector(o.value[0]),r=document.querySelector(o.value[1]);r.onmouseover=()=>r.style.cursor="move";function s(i,u){const c=u==="pc"?i.clientX-r.offsetLeft:i.touches[0].clientX-r.offsetLeft,f=u==="pc"?i.clientY-r.offsetTop:i.touches[0].clientY-r.offsetTop,d=document.body.clientWidth,h=document.documentElement.clientHeight,v=n.offsetWidth,m=n.offsetHeight,g=n.offsetLeft,b=d-n.offsetLeft-v,C=n.offsetTop,k=h-n.offsetTop-m;let w=getComputedStyle(n).left,E=getComputedStyle(n).top;return w.includes("%")?(w=+document.body.clientWidth*(+w.replace(/\%/g,"")/100),E=+document.body.clientHeight*(+E.replace(/\%/g,"")/100)):(w=+w.replace(/\px/g,""),E=+E.replace(/\px/g,"")),{disX:c,disY:f,minDragDomLeft:g,maxDragDomLeft:b,minDragDomTop:C,maxDragDomTop:k,styL:w,styT:E}}function l(i,u,c){let{disX:f,disY:d,minDragDomLeft:h,maxDragDomLeft:v,minDragDomTop:m,maxDragDomTop:g,styL:b,styT:C}=c,k=u==="pc"?i.clientX-f:i.touches[0].clientX-f,w=u==="pc"?i.clientY-d:i.touches[0].clientY-d;-k>h?k=-h:k>v&&(k=v),-w>m?w=-m:w>g&&(w=g),n.style.cssText+=`;left:${k+b}px;top:${w+C}px;`}r.onmousedown=i=>{const u=s(i,"pc");document.onmousemove=c=>{l(c,"pc",u)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},r.ontouchstart=i=>{const u=s(i,"app");document.ontouchmove=c=>{l(c,"app",u)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}function K3(e){F3(e),H3(e),W3(e)}var ly={exports:{}};(function(e){e.exports=function(t){var o={};function n(r){if(o[r])return o[r].exports;var s=o[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=o,n.d=function(r,s,l){n.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:l})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,s){if(s&1&&(r=n(r)),s&8||s&4&&typeof r=="object"&&r&&r.__esModule)return r;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:r}),s&2&&typeof r!="string")for(var i in r)n.d(l,i,function(u){return r[u]}.bind(null,i));return l},n.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(s,"a",s),s},n.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},n.p="",n(n.s="fb15")}({"01f9":function(t,o,n){var r=n("2d00"),s=n("5ca1"),l=n("2aba"),i=n("32e9"),u=n("84f2"),c=n("41a0"),f=n("7f20"),d=n("38fd"),h=n("2b4c")("iterator"),v=!([].keys&&"next"in[].keys()),m="@@iterator",g="keys",b="values",C=function(){return this};t.exports=function(k,w,E,T,$,A,R){c(E,w,T);var M=function(Q){if(!v&&Q in z)return z[Q];switch(Q){case g:return function(){return new E(this,Q)};case b:return function(){return new E(this,Q)}}return function(){return new E(this,Q)}},I=w+" Iterator",_=$==b,L=!1,z=k.prototype,H=z[h]||z[m]||$&&z[$],W=H||M($),j=$?_?M("entries"):W:void 0,D=w=="Array"&&z.entries||H,V,B,X;if(D&&(X=d(D.call(new k)),X!==Object.prototype&&X.next&&(f(X,I,!0),!r&&typeof X[h]!="function"&&i(X,h,C))),_&&H&&H.name!==b&&(L=!0,W=function(){return H.call(this)}),(!r||R)&&(v||L||!z[h])&&i(z,h,W),u[w]=W,u[I]=C,$)if(V={values:_?W:M(b),keys:A?W:M(g),entries:j},R)for(B in V)B in z||l(z,B,V[B]);else s(s.P+s.F*(v||L),w,V);return V}},"02f4":function(t,o,n){var r=n("4588"),s=n("be13");t.exports=function(l){return function(i,u){var c=String(s(i)),f=r(u),d=c.length,h,v;return f<0||f>=d?l?"":void 0:(h=c.charCodeAt(f),h<55296||h>56319||f+1===d||(v=c.charCodeAt(f+1))<56320||v>57343?l?c.charAt(f):h:l?c.slice(f,f+2):(h-55296<<10)+(v-56320)+65536)}}},"0390":function(t,o,n){var r=n("02f4")(!0);t.exports=function(s,l,i){return l+(i?r(s,l).length:1)}},"083e":function(t,o,n){n("c541")},"0bfb":function(t,o,n){var r=n("cb7c");t.exports=function(){var s=r(this),l="";return s.global&&(l+="g"),s.ignoreCase&&(l+="i"),s.multiline&&(l+="m"),s.unicode&&(l+="u"),s.sticky&&(l+="y"),l}},"0d58":function(t,o,n){var r=n("ce10"),s=n("e11e");t.exports=Object.keys||function(i){return r(i,s)}},"11e9":function(t,o,n){var r=n("52a7"),s=n("4630"),l=n("6821"),i=n("6a99"),u=n("69a8"),c=n("c69a"),f=Object.getOwnPropertyDescriptor;o.f=n("9e1e")?f:function(h,v){if(h=l(h),v=i(v,!0),c)try{return f(h,v)}catch{}if(u(h,v))return s(!r.f.call(h,v),h[v])}},1495:function(t,o,n){var r=n("86cc"),s=n("cb7c"),l=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(u,c){s(u);for(var f=l(c),d=f.length,h=0,v;d>h;)r.f(u,v=f[h++],c[v]);return u}},"18d2":function(t,o,n){var r=n("18e9");t.exports=function(s){s=s||{};var l=s.reporter,i=s.batchProcessor,u=s.stateHandler.getState;if(!l)throw new Error("Missing required dependency: reporter.");function c(m,g){function b(){g(m)}if(r.isIE(8))u(m).object={proxy:b},m.attachEvent("onresize",b);else{var C=h(m);if(!C)throw new Error("Element is not detectable by this strategy.");C.contentDocument.defaultView.addEventListener("resize",b)}}function f(m){var g=s.important?" !important; ":"; ";return(m.join(g)+g).trim()}function d(m,g,b){b||(b=g,g=m,m=null),m=m||{},m.debug;function C(k,w){var E=f(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),T=!1,$=window.getComputedStyle(k),A=k.offsetWidth,R=k.offsetHeight;u(k).startSize={width:A,height:R};function M(){function I(){if($.position==="static"){k.style.setProperty("position","relative",m.important?"important":"");var z=function(H,W,j,D){function V(X){return X.replace(/[^-\d\.]/g,"")}var B=j[D];B!=="auto"&&V(B)!=="0"&&(H.warn("An element that is positioned static has style."+D+"="+B+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+D+" will be set to 0. Element: ",W),W.style.setProperty(D,"0",m.important?"important":""))};z(l,k,$,"top"),z(l,k,$,"right"),z(l,k,$,"bottom"),z(l,k,$,"left")}}function _(){T||I();function z(W,j){if(!W.contentDocument){var D=u(W);D.checkForObjectDocumentTimeoutId&&window.clearTimeout(D.checkForObjectDocumentTimeoutId),D.checkForObjectDocumentTimeoutId=setTimeout(function(){D.checkForObjectDocumentTimeoutId=0,z(W,j)},100);return}j(W.contentDocument)}var H=this;z(H,function(j){w(k)})}$.position!==""&&(I(),T=!0);var L=document.createElement("object");L.style.cssText=E,L.tabIndex=-1,L.type="text/html",L.setAttribute("aria-hidden","true"),L.onload=_,r.isIE()||(L.data="about:blank"),u(k)&&(k.appendChild(L),u(k).object=L,r.isIE()&&(L.data="about:blank"))}i?i.add(M):M()}r.isIE(8)?b(g):C(g,b)}function h(m){return u(m).object}function v(m){if(!!u(m)){var g=h(m);!g||(r.isIE(8)?m.detachEvent("onresize",g.proxy):m.removeChild(g),u(m).checkForObjectDocumentTimeoutId&&window.clearTimeout(u(m).checkForObjectDocumentTimeoutId),delete u(m).object)}}return{makeDetectable:d,addListener:c,uninstall:v}}},"18e9":function(t,o,n){var r=t.exports={};r.isIE=function(s){function l(){var u=navigator.userAgent.toLowerCase();return u.indexOf("msie")!==-1||u.indexOf("trident")!==-1||u.indexOf(" edge/")!==-1}if(!l())return!1;if(!s)return!0;var i=function(){var u,c=3,f=document.createElement("div"),d=f.getElementsByTagName("i");do f.innerHTML="";while(d[0]);return c>4?c:u}();return s===i},r.isLegacyOpera=function(){return!!window.opera}},"214f":function(t,o,n){n("b0c5");var r=n("2aba"),s=n("32e9"),l=n("79e5"),i=n("be13"),u=n("2b4c"),c=n("520a"),f=u("species"),d=!l(function(){var v=/./;return v.exec=function(){var m=[];return m.groups={a:"7"},m},"".replace(v,"$")!=="7"}),h=function(){var v=/(?:)/,m=v.exec;v.exec=function(){return m.apply(this,arguments)};var g="ab".split(v);return g.length===2&&g[0]==="a"&&g[1]==="b"}();t.exports=function(v,m,g){var b=u(v),C=!l(function(){var A={};return A[b]=function(){return 7},""[v](A)!=7}),k=C?!l(function(){var A=!1,R=/a/;return R.exec=function(){return A=!0,null},v==="split"&&(R.constructor={},R.constructor[f]=function(){return R}),R[b](""),!A}):void 0;if(!C||!k||v==="replace"&&!d||v==="split"&&!h){var w=/./[b],E=g(i,b,""[v],function(R,M,I,_,L){return M.exec===c?C&&!L?{done:!0,value:w.call(M,I,_)}:{done:!0,value:R.call(I,M,_)}:{done:!1}}),T=E[0],$=E[1];r(String.prototype,v,T),s(RegExp.prototype,b,m==2?function(A,R){return $.call(A,this,R)}:function(A){return $.call(A,this)})}}},"230e":function(t,o,n){var r=n("d3f4"),s=n("7726").document,l=r(s)&&r(s.createElement);t.exports=function(i){return l?s.createElement(i):{}}},"23c6":function(t,o,n){var r=n("2d95"),s=n("2b4c")("toStringTag"),l=r(function(){return arguments}())=="Arguments",i=function(u,c){try{return u[c]}catch{}};t.exports=function(u){var c,f,d;return u===void 0?"Undefined":u===null?"Null":typeof(f=i(c=Object(u),s))=="string"?f:l?r(c):(d=r(c))=="Object"&&typeof c.callee=="function"?"Arguments":d}},"24fb":function(t,o,n){t.exports=function(l){var i=[];return i.toString=function(){return this.map(function(c){var f=r(c,l);return c[2]?"@media ".concat(c[2]," {").concat(f,"}"):f}).join("")},i.i=function(u,c,f){typeof u=="string"&&(u=[[null,u,""]]);var d={};if(f)for(var h=0;h",g;for(d.style.display="none",n("fab2").appendChild(d),d.src="javascript:",g=d.contentWindow.document,g.open(),g.write(v+"script"+m+"document.F=Object"+v+"/script"+m),g.close(),f=g.F;h--;)delete f[c][l[h]];return f()};t.exports=Object.create||function(h,v){var m;return h!==null?(u[c]=r(h),m=new u,u[c]=null,m[i]=h):m=f(),v===void 0?m:s(m,v)}},"2b4c":function(t,o,n){var r=n("5537")("wks"),s=n("ca5a"),l=n("7726").Symbol,i=typeof l=="function",u=t.exports=function(c){return r[c]||(r[c]=i&&l[c]||(i?l:s)("Symbol."+c))};u.store=r},"2cef":function(t,o,n){t.exports=function(){var r=1;function s(){return r++}return{generate:s}}},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var n={}.toString;t.exports=function(r){return n.call(r).slice(8,-1)}},"2f21":function(t,o,n){var r=n("79e5");t.exports=function(s,l){return!!s&&r(function(){l?s.call(null,function(){},1):s.call(null)})}},"32e9":function(t,o,n){var r=n("86cc"),s=n("4630");t.exports=n("9e1e")?function(l,i,u){return r.f(l,i,s(1,u))}:function(l,i,u){return l[i]=u,l}},"38fd":function(t,o,n){var r=n("69a8"),s=n("4bf8"),l=n("613b")("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(u){return u=s(u),r(u,l)?u[l]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?i:null}},"41a0":function(t,o,n){var r=n("2aeb"),s=n("4630"),l=n("7f20"),i={};n("32e9")(i,n("2b4c")("iterator"),function(){return this}),t.exports=function(u,c,f){u.prototype=r(i,{next:s(1,f)}),l(u,c+" Iterator")}},"456d":function(t,o,n){var r=n("4bf8"),s=n("0d58");n("5eda")("keys",function(){return function(i){return s(r(i))}})},4588:function(t,o){var n=Math.ceil,r=Math.floor;t.exports=function(s){return isNaN(s=+s)?0:(s>0?r:n)(s)}},4630:function(t,o){t.exports=function(n,r){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:r}}},4917:function(t,o,n){var r=n("cb7c"),s=n("9def"),l=n("0390"),i=n("5f1b");n("214f")("match",1,function(u,c,f,d){return[function(v){var m=u(this),g=v==null?void 0:v[c];return g!==void 0?g.call(v,m):new RegExp(v)[c](String(m))},function(h){var v=d(f,h,this);if(v.done)return v.value;var m=r(h),g=String(this);if(!m.global)return i(m,g);var b=m.unicode;m.lastIndex=0;for(var C=[],k=0,w;(w=i(m,g))!==null;){var E=String(w[0]);C[k]=E,E===""&&(m.lastIndex=l(g,s(m.lastIndex),b)),k++}return k===0?null:C}]})},"493e":function(t,o,n){var r=n("24fb");o=r(!1),o.push([t.i,'.vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item,.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""]),t.exports=o},"499e":function(t,o,n){n.r(o),n.d(o,"default",function(){return g});function r($,A){for(var R=[],M={},I=0;IR.parts.length&&(M.parts.length=R.parts.length)}else{for(var _=[],I=0;I1&&l.call(C[0],b,function(){for(k=1;kb;)for(var w=c(arguments[b++]),E=C?s(w).concat(C(w)):s(w),T=E.length,$=0,A;T>$;)A=E[$++],(!r||k.call(w,A))&&(m[A]=w[A]);return m}:f},7726:function(t,o){var n=t.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=n)},"77f1":function(t,o,n){var r=n("4588"),s=Math.max,l=Math.min;t.exports=function(i,u){return i=r(i),i<0?s(i+u,0):l(i,u)}},"79e5":function(t,o){t.exports=function(n){try{return!!n()}catch{return!0}}},"7f20":function(t,o,n){var r=n("86cc").f,s=n("69a8"),l=n("2b4c")("toStringTag");t.exports=function(i,u,c){i&&!s(i=c?i:i.prototype,l)&&r(i,l,{configurable:!0,value:u})}},8378:function(t,o){var n=t.exports={version:"2.6.12"};typeof __e=="number"&&(__e=n)},"848e":function(t,o,n){var r=n("24fb");o=r(!1),o.push([t.i,".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}",""]),t.exports=o},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,n){var r=n("cb7c"),s=n("c69a"),l=n("6a99"),i=Object.defineProperty;o.f=n("9e1e")?Object.defineProperty:function(c,f,d){if(r(c),f=l(f,!0),r(d),s)try{return i(c,f,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(c[f]=d.value),c}},8875:function(t,o,n){var r,s,l;(function(i,u){s=[],r=u,l=typeof r=="function"?r.apply(o,s):r,l!==void 0&&(t.exports=l)})(typeof self<"u"?self:this,function(){function i(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==i&&document.currentScript)return document.currentScript;try{throw new Error}catch(E){var c=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,f=/@([^@]*):(\d+):(\d+)\s*$/ig,d=c.exec(E.stack)||f.exec(E.stack),h=d&&d[1]||!1,v=d&&d[2]||!1,m=document.location.href.replace(document.location.hash,""),g,b,C,k=document.getElementsByTagName("script");h===m&&(g=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*"},IS=function(t){t.write(yP("")),t.close();var e=t.parentWindow.Object;return t=null,e},H0=function(){try{Fh=new ActiveXObject("htmlfile")}catch{}var t,e;H0=typeof document<"u"?document.domain&&Fh?IS(Fh):((e=pP("iframe")).style.display="none",lH.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(yP("document.F=Object")),t.close(),t.F):IS(Fh);for(var n=xg.length;n--;)delete H0.prototype[xg[n]];return H0()};_p[vP]=!0;var oi=Object.create||function(t,e){var n;return t!==null?(Wy.prototype=ar(t),n=new Wy,Wy.prototype=null,n[vP]=t):n=H0(),e===void 0?n:sH(n,e)},S4=function(t,e,n){var r=oc(e);r in t?ja.f(t,r,Yr(0,n)):t[r]=n},cH=kt.Array,fH=Math.max,mP=function(t,e,n){for(var r=Tp(t),o=C4(e,r),i=C4(n===void 0?r:n,r),a=cH(fH(i-o,0)),u=0;oi;i++)if((u=v(t[i]))&&Td(MS,u))return u;return new V0(!1)}r=function(m,h){var b=arguments.length<2?LS(m):h;if(u5(b))return ar(zn(b,m));throw xH(w4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=zn(s,r)).done;){try{u=v(l.value)}catch(m){RS(r,"throw",m)}if(typeof u=="object"&&u&&Td(MS,u))return u}return new V0(!1)},kH=kt.String,_d=function(t){if(Pp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kH(t)},BH=function(t,e){return t===void 0?arguments.length<2?"":e:_d(t)},FH=!Gn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Yr(1,7)),t.stack!==7)}),TH=Bn("toStringTag"),Ag=kt.Error,_H=[].push,Pd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Td(Gy,this);Sg?n=Sg(new Ag(void 0),o?Cg(this):Gy):(n=o?this:oi(Gy),_n(n,TH,"Error")),_n(n,"message",BH(e,"")),FH&&_n(n,"stack",yH(n.stack,1)),mH(n,r);var i=[];return OH(t,_H,{that:i}),_n(n,"errors",i),n};Sg?Sg(Pd,Ag):function(t,e){for(var n=uH(e),r=ja.f,o=P1.f,i=0;i=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),ti.Arguments=ti.Array;var YH=ge("".charAt),WS=ge("".charCodeAt),XH=ge("".slice),GS=function(t){return function(e,n){var r,o,i=_d(i5(e)),a=l5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=WS(i,a))<55296||r>56319||a+1===u||(o=WS(i,a+1))<56320||o>57343?t?YH(i,a):r:t?XH(i,a,a+2):o-56320+(r-55296<<10)+65536}},ZH={codeAt:GS(!1),charAt:GS(!0)}.charAt,JH=ic.set,QH=ic.getterFor("String Iterator");xP(String,"String",function(t){JH(this,{type:"String Iterator",string:_d(t),index:0})},function(){var t,e=QH(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=ZH(n,r),e.index+=t.length,{value:t,done:!1})});var tV=Qn.AggregateError,qS=Bn("toStringTag");for(var Yy in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var KS=kt[Yy],Xy=KS&&KS.prototype;Xy&&Pp(Xy)!==qS&&_n(Xy,qS,Yy),ti[Yy]=ti.Array}var mi,U0,eV=tV,_h=function(t){return t&&t.Math==Math&&t},Et=_h(typeof globalThis=="object"&&globalThis)||_h(typeof window=="object"&&window)||_h(typeof self=="object"&&self)||_h(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),cn=function(t){try{return!!t()}catch{return!0}},Ao=!cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bc=Function.prototype.call,un=Bc.bind?Bc.bind(Bc):function(){return Bc.apply(Bc,arguments)},YS={}.propertyIsEnumerable,XS=Object.getOwnPropertyDescriptor,nV=XS&&!YS.call({1:2},1)?function(t){var e=XS(this,t);return!!e&&e.enumerable}:YS,rV={f:nV},ea=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},AP=Function.prototype,k4=AP.bind,B4=AP.call,oV=k4&&k4.bind(B4),ie=k4?function(t){return t&&oV(B4,t)}:function(t){return t&&function(){return B4.apply(t,arguments)}},iV=ie({}.toString),aV=ie("".slice),Cu=function(t){return aV(iV(t),8,-1)},Zy=Et.Object,uV=ie("".split),OP=cn(function(){return!Zy("z").propertyIsEnumerable(0)})?function(t){return Cu(t)=="String"?uV(t,""):Zy(t)}:Zy,sV=Et.TypeError,N1=function(t){if(t==null)throw sV("Can't call method on "+t);return t},ac=function(t){return OP(N1(t))},Ge=function(t){return typeof t=="function"},Vr=function(t){return typeof t=="object"?t!==null:Ge(t)},lV=function(t){return Ge(t)?t:void 0},jp=function(t,e){return arguments.length<2?lV(Et[t]):Et[t]&&Et[t][e]},Fg=ie({}.isPrototypeOf),Jy=jp("navigator","userAgent")||"",ZS=Et.process,JS=Et.Deno,QS=ZS&&ZS.versions||JS&&JS.version,tx=QS&&QS.v8;tx&&(U0=(mi=tx.split("."))[0]>0&&mi[0]<4?1:+(mi[0]+mi[1])),!U0&&Jy&&(!(mi=Jy.match(/Edge\/(\d+)/))||mi[1]>=74)&&(mi=Jy.match(/Chrome\/(\d+)/))&&(U0=+mi[1]);var ex=U0,F4=!!Object.getOwnPropertySymbols&&!cn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ex&&ex<41}),p5=F4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cV=Et.Object,T4=p5?function(t){return typeof t=="symbol"}:function(t){var e=jp("Symbol");return Ge(e)&&Fg(e.prototype,cV(t))},fV=Et.String,_4=function(t){try{return fV(t)}catch{return"Object"}},dV=Et.TypeError,h5=function(t){if(Ge(t))return t;throw dV(_4(t)+" is not a function")},jd=function(t,e){var n=t[e];return n==null?void 0:h5(n)},pV=Et.TypeError,hV=Object.defineProperty,g5=function(t,e){try{hV(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},na=Et["__core-js_shared__"]||g5("__core-js_shared__",{}),v5=as(function(t){(t.exports=function(e,n){return na[e]||(na[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gV=Et.Object,y5=function(t){return gV(N1(t))},vV=ie({}.hasOwnProperty),Vn=Object.hasOwn||function(t,e){return vV(y5(t),e)},yV=0,mV=Math.random(),bV=ie(1 .toString),kP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+bV(++yV+mV,36)},Fc=v5("wks"),Su=Et.Symbol,nx=Su&&Su.for,wV=p5?Su:Su&&Su.withoutSetter||kP,Nn=function(t){if(!Vn(Fc,t)||!F4&&typeof Fc[t]!="string"){var e="Symbol."+t;F4&&Vn(Su,t)?Fc[t]=Su[t]:Fc[t]=p5&&nx?nx(e):wV(e)}return Fc[t]},EV=Et.TypeError,DV=Nn("toPrimitive"),CV=function(t,e){if(!Vr(t)||T4(t))return t;var n,r=jd(t,DV);if(r){if(e===void 0&&(e="default"),n=un(r,t,e),!Vr(n)||T4(n))return n;throw EV("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&Ge(a=o.toString)&&!Vr(u=un(a,o))||Ge(a=o.valueOf)&&!Vr(u=un(a,o))||i!=="string"&&Ge(a=o.toString)&&!Vr(u=un(a,o)))return u;throw pV("Can't convert object to primitive value")}(t,e)},m5=function(t){var e=CV(t,"string");return T4(e)?e:e+""},P4=Et.document,SV=Vr(P4)&&Vr(P4.createElement),b5=function(t){return SV?P4.createElement(t):{}},BP=!Ao&&!cn(function(){return Object.defineProperty(b5("div"),"a",{get:function(){return 7}}).a!=7}),rx=Object.getOwnPropertyDescriptor,xV=Ao?rx:function(t,e){if(t=ac(t),e=m5(e),BP)try{return rx(t,e)}catch{}if(Vn(t,e))return ea(!un(rV.f,t,e),t[e])},w5={f:xV},AV=Et.String,OV=Et.TypeError,ur=function(t){if(Vr(t))return t;throw OV(AV(t)+" is not an object")},kV=Et.TypeError,ox=Object.defineProperty,BV=Ao?ox:function(t,e,n){if(ur(t),e=m5(e),ur(n),BP)try{return ox(t,e,n)}catch{}if("get"in n||"set"in n)throw kV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},uc={f:BV},jn=Ao?function(t,e,n){return uc.f(t,e,ea(1,n))}:function(t,e,n){return t[e]=n,t},FV=ie(Function.toString);Ge(na.inspectSource)||(na.inspectSource=function(t){return FV(t)});var Tg,id,_g,E5=na.inspectSource,ix=Et.WeakMap,TV=Ge(ix)&&/native code/.test(E5(ix)),ax=v5("keys"),D5=function(t){return ax[t]||(ax[t]=kP(t))},C5={},j4=Et.TypeError,_V=Et.WeakMap;if(TV||na.state){var qa=na.state||(na.state=new _V),PV=ie(qa.get),ux=ie(qa.has),jV=ie(qa.set);Tg=function(t,e){if(ux(qa,t))throw new j4("Object already initialized");return e.facade=t,jV(qa,t,e),e},id=function(t){return PV(qa,t)||{}},_g=function(t){return ux(qa,t)}}else{var Ss=D5("state");C5[Ss]=!0,Tg=function(t,e){if(Vn(t,Ss))throw new j4("Object already initialized");return e.facade=t,jn(t,Ss,e),e},id=function(t){return Vn(t,Ss)?t[Ss]:{}},_g=function(t){return Vn(t,Ss)}}var Wu={set:Tg,get:id,has:_g,enforce:function(t){return _g(t)?id(t):Tg(t,{})},getterFor:function(t){return function(e){var n;if(!Vr(e)||(n=id(e)).type!==t)throw j4("Incompatible receiver, "+t+" required");return n}}},FP=Function.prototype,NV=Ao&&Object.getOwnPropertyDescriptor,Qy=Vn(FP,"name"),S5={EXISTS:Qy,PROPER:Qy&&function(){}.name==="something",CONFIGURABLE:Qy&&(!Ao||Ao&&NV(FP,"name").configurable)},ra=as(function(t){var e=S5.CONFIGURABLE,n=Wu.get,r=Wu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ge(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vn(u,"name")||e&&u.name!==d)&&jn(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:jn(i,a,u)):f?i[a]=u:g5(a,u)})(Function.prototype,"toString",function(){return Ge(this)&&n(this).source||E5(this)})}),IV=Math.ceil,LV=Math.floor,x5=function(t){var e=+t;return e!=e||e===0?0:(e>0?LV:IV)(e)},RV=Math.max,MV=Math.min,N4=function(t,e){var n=x5(t);return n<0?RV(n+e,0):MV(n,e)},zV=Math.min,TP=function(t){return t>0?zV(x5(t),9007199254740991):0},I1=function(t){return TP(t.length)},sx=function(t){return function(e,n,r){var o,i=ac(e),a=I1(i),u=N4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},$V={includes:sx(!0),indexOf:sx(!1)}.indexOf,lx=ie([].push),_P=function(t,e){var n,r=ac(t),o=0,i=[];for(n in r)!Vn(C5,n)&&Vn(r,n)&&lx(i,n);for(;e.length>o;)Vn(r,n=e[o++])&&(~$V(i,n)||lx(i,n));return i},Pg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],HV=Pg.concat("length","prototype"),VV=Object.getOwnPropertyNames||function(t){return _P(t,HV)},UV={f:VV},WV={f:Object.getOwnPropertySymbols},GV=ie([].concat),qV=jp("Reflect","ownKeys")||function(t){var e=UV.f(ur(t)),n=WV.f;return n?GV(e,n(t)):e},PP=function(t,e){for(var n=qV(e),r=uc.f,o=w5.f,i=0;ia;)uc.f(t,n=o[a++],r[n]);return t},fU=jp("document","documentElement"),NP=D5("IE_PROTO"),tm=function(){},IP=function(t){return""},cx=function(t){t.write(IP("")),t.close();var e=t.parentWindow.Object;return t=null,e},W0=function(){try{Ph=new ActiveXObject("htmlfile")}catch{}var t,e;W0=typeof document<"u"?document.domain&&Ph?cx(Ph):((e=b5("iframe")).style.display="none",fU.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(IP("document.F=Object")),t.close(),t.F):cx(Ph);for(var n=Pg.length;n--;)delete W0.prototype[Pg[n]];return W0()};C5[NP]=!0;var fx,em,Lp=Object.create||function(t,e){var n;return t!==null?(tm.prototype=ur(t),n=new tm,tm.prototype=null,n[NP]=t):n=W0(),e===void 0?n:cU(n,e)},dU=Et.RegExp,pU=cn(function(){var t=dU(".","s");return!(t.dotAll&&t.exec(` +`)&&t.flags==="s")}),hU=Et.RegExp,gU=cn(function(){var t=hU("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),vU=Wu.get,yU=v5("native-string-replace",String.prototype.replace),jg=RegExp.prototype.exec,I4=jg,mU=ie("".charAt),bU=ie("".indexOf),wU=ie("".replace),nm=ie("".slice),rm=(em=/b*/g,un(jg,fx=/a/,"a"),un(jg,em,"a"),fx.lastIndex!==0||em.lastIndex!==0),dx=sU.BROKEN_CARET,om=/()??/.exec("")[1]!==void 0;(rm||om||dx||pU||gU)&&(I4=function(t){var e,n,r,o,i,a,u,s=this,l=vU(s),c=xu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=un(I4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=dx&&s.sticky,y=un(iU,s),g=s.source,v=0,m=c;if(d&&(y=wU(y,"y",""),bU(y,"g")===-1&&(y+="g"),m=nm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&mU(c,s.lastIndex-1)!==` +`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),om&&(n=new RegExp("^"+g+"$(?!\\s)",y)),rm&&(r=s.lastIndex),o=un(jg,d?n:s,m),d?o?(o.input=nm(o.input,v),o[0]=nm(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:rm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),om&&o&&o.length>1&&un(yU,o[0],n,function(){for(i=1;i=u?t?"":void 0:(r=px(i,a))<55296||r>56319||a+1===u||(o=px(i,a+1))<56320||o>57343?t?DU(i,a):r:t?CU(i,a,a+2):o-56320+(r-55296<<10)+65536}},LP={codeAt:hx(!1),charAt:hx(!0)},SU=LP.charAt,xU=function(t,e,n){return e+(n?SU(t,e).length:1)},AU=Et.TypeError,gx=function(t,e){var n=t.exec;if(Ge(n)){var r=un(n,t,e);return r!==null&&ur(r),r}if(Cu(t)==="RegExp")return un(Ng,t,e);throw AU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Nn(t),i=!cn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!cn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[EU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ie(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=ie(l),g=c.exec;return g===Ng||g===im.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});ra(String.prototype,t,s[0]),ra(im,o,s[1])}r&&jn(im[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=N1(this),i=r==null?void 0:jd(r,t);return i?un(i,r,o):new RegExp(r)[t](xu(o))},function(r){var o=ur(this),i=xu(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return gx(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=gx(o,i))!==null;){var f=xu(s[0]);l[c]=f,f===""&&(o.lastIndex=xU(i,TP(o.lastIndex),u)),c++}return c===0?null:l}]}),Ip({global:!0},{globalThis:Et});var OU=!cn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),vx=D5("IE_PROTO"),L4=Et.Object,kU=L4.prototype,Nd=OU?L4.getPrototypeOf:function(t){var e=y5(t);if(Vn(e,vx))return e[vx];var n=e.constructor;return Ge(n)&&e instanceof n?n.prototype:e instanceof L4?kU:null},BU=Et.String,FU=Et.TypeError,Ol=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return ur(r),function(i){if(typeof i=="object"||Ge(i))return i;throw FU("Can't set "+BU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),TU=Et.Array,_U=Math.max,PU=ie("".replace),jU=ie("".split),NU=ie([].join),R4=String(Error("zxcasd").stack),RP=/\n\s*at [^:]*:[^\n]*/,IU=RP.test(R4),LU=/@[^\n]*\n/.test(R4)&&!/zxcasd/.test(R4),RU=function(t,e){if(typeof t!="string")return t;if(IU)for(;e--;)t=PU(t,RP,"");else if(LU)return NU(function(n,r,o){for(var i,a,u,s,l=I1(n),c=N4(r,l),f=N4(o===void 0?l:o,l),p=TU(_U(f-c,0)),d=0;ci;i++)if((u=v(t[i]))&&Fg(wx,u))return u;return new G0(!1)}r=function(m,h){var b=arguments.length<2?mx(m):h;if(h5(b))return ur(un(b,m));throw VU(_4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=un(s,r)).done;){try{u=v(l.value)}catch(m){bx(r,"throw",m)}if(typeof u=="object"&&u&&Fg(wx,u))return u}return new G0(!1)},GU=function(t,e){return t===void 0?arguments.length<2?"":e:xu(t)},qU=!cn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ea(1,7)),t.stack!==7)}),KU=Nn("toStringTag"),Ig=Et.Error,YU=[].push,Id=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Fg(am,this);Ol?n=Ol(new Ig(void 0),o?Nd(this):am):(n=o?this:Lp(am),jn(n,KU,"Error")),jn(n,"message",GU(e,"")),qU&&jn(n,"stack",RU(n.stack,1)),MU(n,r);var i=[];return WU(t,YU,{that:i}),jn(n,"errors",i),n};Ol?Ol(Id,Ig):PP(Id,Ig);var am=Id.prototype=Lp(Ig.prototype,{constructor:ea(1,Id),message:ea(1,""),name:ea(1,"AggregateError")});Ip({global:!0},{AggregateError:Id});var M4=Nn("unscopables"),z4=Array.prototype;z4[M4]==null&&uc.f(z4,M4,{configurable:!0,value:Lp(null)});var Au,Ex,Dx,um=function(t){z4[M4][t]=!0},$4=Nn("iterator"),zP=!1;[].keys&&("next"in(Dx=[].keys())?(Ex=Nd(Nd(Dx)))!==Object.prototype&&(Au=Ex):zP=!0);var XU=Au==null||cn(function(){var t={};return Au[$4].call(t)!==t});XU&&(Au={}),Ge(Au[$4])||ra(Au,$4,function(){return this});var B5={IteratorPrototype:Au,BUGGY_SAFARI_ITERATORS:zP},ZU=uc.f,Cx=Nn("toStringTag"),Sx=function(t,e,n){t&&!Vn(t=n?t:t.prototype,Cx)&&ZU(t,Cx,{configurable:!0,value:e})},JU=B5.IteratorPrototype,QU=function(){return this},tW=S5.PROPER,eW=S5.CONFIGURABLE,xx=B5.IteratorPrototype,jh=B5.BUGGY_SAFARI_ITERATORS,Tc=Nn("iterator"),nW=function(){return this},$P=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=Lp(JU,{next:ea(+!w,b)}),Sx(m,D,!1),kl[D]=QU})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!jh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Tc]||d["@@iterator"]||o&&d[o],g=!jh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Nd(v.call(new t)))!==Object.prototype&&u.next&&(Nd(u)!==xx&&(Ol?Ol(u,xx):Ge(u[Tc])||ra(u,Tc,nW)),Sx(u,f,!0)),tW&&o=="values"&&y&&y.name!=="values"&&(eW?jn(d,"name","values"):(p=!0,g=function(){return un(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(jh||p||!(l in d))&&ra(d,l,s[l]);else Ip({target:e,proto:!0,forced:jh||p},s);return d[Tc]!==g&&ra(d,Tc,g,{name:o}),kl[e]=g,s},rW=Wu.set,oW=Wu.getterFor("Array Iterator"),Kf=$P(Array,"Array",function(t,e){rW(this,{type:"Array Iterator",target:ac(t),index:0,kind:e})},function(){var t=oW(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");kl.Arguments=kl.Array,um("keys"),um("values"),um("entries");var iW=LP.charAt,aW=Wu.set,uW=Wu.getterFor("String Iterator");$P(String,"String",function(t){aW(this,{type:"String Iterator",string:xu(t),index:0})},function(){var t,e=uW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=iW(n,r),e.index+=t.length,{value:t,done:!1})});var sm,Lg={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lm=b5("span").classList,Ax=lm&&lm.constructor&&lm.constructor.prototype,HP=Ax===Object.prototype?void 0:Ax,cm=Nn("iterator"),Ox=Nn("toStringTag"),fm=Kf.values,VP=function(t,e){if(t){if(t[cm]!==fm)try{jn(t,cm,fm)}catch{t[cm]=fm}if(t[Ox]||jn(t,Ox,e),Lg[e]){for(var n in Kf)if(t[n]!==Kf[n])try{jn(t,n,Kf[n])}catch{t[n]=Kf[n]}}}};for(var dm in Lg)VP(Et[dm]&&Et[dm].prototype,dm);VP(HP,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器 + Sorry, wangEditor V5+ versions do not support IE browser.`),kx(),Bx()):global&&((sm=global.navigator)===null||sm===void 0?void 0:sm.userAgent.match("QQBrowser"))&&(kx(),Bx());function kx(){typeof globalThis>"u"&&(window.globalThis=window)}function Bx(){eV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var Fx,Rg=Array.isArray||function(t){return Eu(t)=="Array"},UP=function(){},sW=[],WP=rc("Reflect","construct"),F5=/^\s*(?:class|function)\b/,lW=ge(F5.exec),cW=!F5.exec(UP),_c=function(t){if(!sn(t))return!1;try{return WP(UP,sW,t),!0}catch{return!1}},fW=!WP||Gn(function(){var t;return _c(_c.call)||!_c(Object)||!_c(function(){t=!0})||t})?function(t){if(!sn(t))return!1;switch(Pp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cW||!!lW(F5,EP(t))}:_c,dW=Bn("species"),Tx=kt.Array,GP=function(t,e){return new(function(n){var r;return Rg(n)&&(r=n.constructor,(fW(r)&&(r===Tx||Rg(r.prototype))||tr(r)&&(r=r[dW])===null)&&(r=void 0)),r===void 0?Tx:r}(t))(e===0?0:e)},pW=Bn("species"),qP=Bn("isConcatSpreadable"),_x=kt.TypeError,hW=wg>=51||!Gn(function(){var t=[];return t[qP]=!1,t.concat()[0]!==t}),gW=(Fx="concat",wg>=51||!Gn(function(){var t=[];return(t.constructor={})[pW]=function(){return{foo:1}},t[Fx](Boolean).foo!==1})),vW=function(t){if(!tr(t))return!1;var e=t[qP];return e!==void 0?!!e:Rg(t)};qo({target:"Array",proto:!0,forced:!hW||!gW},{concat:function(t){var e,n,r,o,i,a=Bp(this),u=GP(a,0),s=0;for(e=-1,r=arguments.length;e9007199254740991)throw _x("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw _x("Maximum allowed index exceeded");S4(u,s++,i)}return u.length=s,u}});var Px=c5.f,jx=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],KP={f:function(t){return jx&&Eu(t)=="Window"?function(e){try{return Px(e)}catch{return mP(jx)}}(t):Px(Po(t))}},yW=ge([].slice),T5={f:Bn},mW=ja.f,je=function(t){var e=Qn.Symbol||(Qn.Symbol={});Vt(e,t)||mW(e,t,{value:T5.f(t)})},Nx=ge([].push),bi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Bp(s),g=dP(y),v=s5(l,c),m=Tp(g),h=0,b=f||GP,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:Nx(w,p)}else switch(t){case 4:return!1;case 7:Nx(w,p)}return i?-1:r||o?o:w}},R1={forEach:bi(0),map:bi(1),filter:bi(2),some:bi(3),every:bi(4),find:bi(5),findIndex:bi(6),filterReject:bi(7)}.forEach,Rn=j1("hidden"),Ix=Bn("toPrimitive"),bW=ic.set,Lx=ic.getterFor("Symbol"),Gr=Object.prototype,Ui=kt.Symbol,Yi=Ui&&Ui.prototype,Rx=kt.TypeError,pm=kt.QObject,Pc=rc("JSON","stringify"),YP=P1.f,Wi=ja.f,XP=KP.f,wW=o5.f,ZP=ge([].push),ii=us("symbols"),Rp=us("op-symbols"),hm=us("string-to-symbol-registry"),gm=us("symbol-to-string-registry"),EW=us("wks"),vm=!pm||!pm.prototype||!pm.prototype.findChild,H4=Hn&&Gn(function(){return oi(Wi({},"a",{get:function(){return Wi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=YP(Gr,e);r&&delete Gr[e],Wi(t,e,n),r&&t!==Gr&&Wi(Gr,e,r)}:Wi,ym=function(t,e){var n=ii[t]=oi(Yi);return bW(n,{type:"Symbol",tag:t,description:e}),Hn||(n.description=e),n},Mg=function(t,e,n){t===Gr&&Mg(Rp,e,n),ar(t);var r=oc(e);return ar(n),Vt(ii,r)?(n.enumerable?(Vt(t,Rn)&&t[Rn][r]&&(t[Rn][r]=!1),n=oi(n,{enumerable:Yr(0,!1)})):(Vt(t,Rn)||Wi(t,Rn,Yr(1,{})),t[Rn][r]=!0),H4(t,r,n)):Wi(t,r,n)},Mx=function(t,e){ar(t);var n=Po(e),r=f5(n).concat(V4(n));return R1(r,function(o){Hn&&!zn(JP,n,o)||Mg(t,o,n[o])}),t},JP=function(t){var e=oc(t),n=zn(wW,this,e);return!(this===Gr&&Vt(ii,e)&&!Vt(Rp,e))&&(!(n||!Vt(this,e)||!Vt(ii,e)||Vt(this,Rn)&&this[Rn][e])||n)},zx=function(t,e){var n=Po(t),r=oc(e);if(n!==Gr||!Vt(ii,r)||Vt(Rp,r)){var o=YP(n,r);return!o||!Vt(ii,r)||Vt(n,Rn)&&n[Rn][r]||(o.enumerable=!0),o}},$x=function(t){var e=XP(Po(t)),n=[];return R1(e,function(r){Vt(ii,r)||Vt(_p,r)||ZP(n,r)}),n},V4=function(t){var e=t===Gr,n=XP(e?Rp:Po(t)),r=[];return R1(n,function(o){!Vt(ii,o)||e&&!Vt(Gr,o)||ZP(r,ii[o])}),r};if(po||(Yi=(Ui=function(){if(Td(Yi,this))throw Rx("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?_d(arguments[0]):void 0,e=Dg(t),n=function(r){this===Gr&&zn(n,Rp,r),Vt(this,Rn)&&Vt(this[Rn],e)&&(this[Rn][e]=!1),H4(this,e,Yr(1,r))};return Hn&&vm&&H4(Gr,e,{configurable:!0,set:n}),ym(e,t)}).prototype,Al(Yi,"toString",function(){return Lx(this).tag}),Al(Ui,"withoutSetter",function(t){return ym(Dg(t),t)}),o5.f=JP,ja.f=Mg,P1.f=zx,c5.f=KP.f=$x,$0.f=V4,T5.f=function(t){return ym(Bn(t),t)},Hn&&Wi(Yi,"description",{configurable:!0,get:function(){return Lx(this).description}})),qo({global:!0,wrap:!0,forced:!po,sham:!po},{Symbol:Ui}),R1(f5(EW),function(t){je(t)}),qo({target:"Symbol",stat:!0,forced:!po},{for:function(t){var e=_d(t);if(Vt(hm,e))return hm[e];var n=Ui(e);return hm[e]=n,gm[n]=e,n},keyFor:function(t){if(!pl(t))throw Rx(t+" is not a symbol");if(Vt(gm,t))return gm[t]},useSetter:function(){vm=!0},useSimple:function(){vm=!1}}),qo({target:"Object",stat:!0,forced:!po,sham:!Hn},{create:function(t,e){return e===void 0?oi(t):Mx(oi(t),e)},defineProperty:Mg,defineProperties:Mx,getOwnPropertyDescriptor:zx}),qo({target:"Object",stat:!0,forced:!po},{getOwnPropertyNames:$x,getOwnPropertySymbols:V4}),qo({target:"Object",stat:!0,forced:Gn(function(){$0.f(1)})},{getOwnPropertySymbols:function(t){return $0.f(Bp(t))}}),Pc){var DW=!po||Gn(function(){var t=Ui();return Pc([t])!="[null]"||Pc({a:t})!="{}"||Pc(Object(t))!="{}"});qo({target:"JSON",stat:!0,forced:DW},{stringify:function(t,e,n){var r=yW(arguments),o=e;if((tr(e)||t!==void 0)&&!pl(t))return Rg(e)||(e=function(i,a){if(sn(o)&&(a=zn(o,this,i,a)),!pl(a))return a}),r[1]=e,cP(Pc,null,r)}})}if(!Yi[Ix]){var CW=Yi.valueOf;Al(Yi,Ix,function(t){return zn(CW,this)})}Bg(Ui,"Symbol"),_p[Rn]=!0,je("asyncIterator"),je("hasInstance"),je("isConcatSpreadable"),je("iterator"),je("match"),je("matchAll"),je("replace"),je("search"),je("species"),je("split"),je("toPrimitive"),je("toStringTag"),je("unscopables"),Bg(kt.JSON,"JSON",!0);var SW=Qn.Symbol;je("asyncDispose"),je("dispose"),je("matcher"),je("metadata"),je("observable"),je("patternMatch"),je("replaceAll");var Nh=SW,xW=T5.f("iterator"),AW=as(function(t){function e(n){return typeof Nh=="function"&&typeof xW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof Nh=="function"&&r.constructor===Nh&&r!==Nh.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),OW=f$(AW),QP=w5.f,kW=cn(function(){QP(1)});if(Ip({target:"Object",stat:!0,forced:!Ao||kW,sham:!Ao},{getOwnPropertyDescriptor:function(t,e){return QP(ac(t),e)}}),(typeof global>"u"?"undefined":OW(global))==="object"){var BW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!BW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function Hx(t){return Object.prototype.toString.call(t)==="[object Object]"}function xn(t){var e,n;return Hx(t)!==!1&&((e=t.constructor)===void 0||Hx(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Ur(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:_5(t)?2:P5(t)?3:0}function U4(t,e){return Bl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tj(t,e,n){var r=Bl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function _5(t){return PW&&t instanceof Map}function P5(t){return jW&&t instanceof Set}function iu(t){return t.o||t.t}function j5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=IW(t);delete e[sr];for(var n=R5(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=FW),Object.freeze(t),e&&Ld(t,function(n,r){return N5(r,!0)},!0)),t}function FW(){Ur(2)}function I5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ei(t){var e=LW[t];return e||Ur(18,t),e}function Vx(){return Rd}function mm(t,e){e&&(ei("Patches"),t.u=[],t.s=[],t.v=e)}function zg(t){W4(t),t.p.forEach(TW),t.p=null}function W4(t){t===Rd&&(Rd=t.l)}function Ux(t){return Rd={p:[],l:Rd,h:t,m:!0,_:0}}function TW(t){var e=t[sr];e.i===0||e.i===1?e.j():e.O=!0}function bm(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ei("ES5").S(e,t,r),r?(n[sr].P&&(zg(e),Ur(4)),qu(t)&&(t=$g(e,t),e.l||Hg(e,t)),e.u&&ei("Patches").M(n[sr],t,e.u,e.s)):t=$g(e,n,[]),zg(e),e.u&&e.v(e.u,e.s),t!==ej?t:void 0}function $g(t,e,n){if(I5(e))return e;var r=e[sr];if(!r)return Ld(e,function(i,a){return Wx(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Hg(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=j5(r.k):r.o;Ld(r.i===3?new Set(o):o,function(i,a){return Wx(t,r,o,i,a,n)}),Hg(t,o,!1),n&&t.u&&ei("Patches").R(r,n,t.u,t.s)}return r.o}function Wx(t,e,n,r,o,i){if(Gu(o)){var a=$g(t,o,i&&e&&e.i!==3&&!U4(e.D,r)?i.concat(r):void 0);if(tj(n,r,a),!Gu(a))return;t.m=!1}if(qu(o)&&!I5(o)){if(!t.h.F&&t._<1)return;$g(t,o),e&&e.A.l||Hg(t,o)}}function Hg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&N5(e,n)}function wm(t,e){var n=t[sr];return(n?iu(n):t)[e]}function Gx(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function G4(t){t.P||(t.P=!0,t.l&&G4(t.l))}function Em(t){t.o||(t.o=j5(t.t))}function q4(t,e,n){var r=_5(e)?ei("MapSet").N(e,n):P5(e)?ei("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:Vx(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=q0;a&&(s=[u],l=K0);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):ei("ES5").J(e,n);return(n?n.A:Vx()).p.push(r),r}function _W(t){return Gu(t)||Ur(22,t),function e(n){if(!qu(n))return n;var r,o=n[sr],i=Bl(n);if(o){if(!o.P&&(o.i<4||!ei("ES5").K(o)))return o.t;o.I=!0,r=qx(n,i),o.I=!1}else r=qx(n,i);return Ld(r,function(a,u){o&&function(s,l){return Bl(s)===2?s.get(l):s[l]}(o.t,a)===u||tj(r,a,e(u))}),i===3?new Set(r):r}(t)}function qx(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return j5(t)}var Kx,Rd,L5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",PW=typeof Map<"u",jW=typeof Set<"u",Yx=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ej=L5?Symbol.for("immer-nothing"):((Kx={})["immer-nothing"]=!0,Kx),Xx=L5?Symbol.for("immer-draftable"):"__$immer_draftable",sr=L5?Symbol.for("immer-state"):"__$immer_state",NW=""+Object.prototype.constructor,R5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,IW=Object.getOwnPropertyDescriptors||function(t){var e={};return R5(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},LW={},q0={get:function(t,e){if(e===sr)return t;var n=iu(t);if(!U4(n,e))return function(o,i,a){var u,s=Gx(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!qu(r)?r:r===wm(t.t,e)?(Em(t),t.o[e]=q4(t.A.h,r,t)):r},has:function(t,e){return e in iu(t)},ownKeys:function(t){return Reflect.ownKeys(iu(t))},set:function(t,e,n){var r=Gx(iu(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=wm(iu(t),e),i=o==null?void 0:o[sr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||U4(t.t,e)))return!0;Em(t),G4(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return wm(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Em(t),G4(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=iu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Ur(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ur(12)}},K0={};Ld(q0,function(t,e){K0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),K0.deleteProperty=function(t,e){return q0.deleteProperty.call(this,t[0],e)},K0.set=function(t,e,n){return q0.set.call(this,t[0],e,n,t[0])};var RW=function(){function t(n){var r=this;this.g=Yx,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var y=this;d===void 0&&(d=u);for(var g=arguments.length,v=Array(g>1?g-1:0),m=1;m1?l-1:0),f=1;f=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ei("Patches").$;return Gu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),Zn=new RW,M1=Zn.produce;Zn.produceWithPatches.bind(Zn),Zn.setAutoFreeze.bind(Zn),Zn.setUseProxies.bind(Zn),Zn.applyPatches.bind(Zn);var Zx=Zn.createDraft.bind(Zn),Jx=Zn.finishDraft.bind(Zn);function jo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vg=new WeakMap,jc=new WeakMap,Qx=new WeakMap,tA=new WeakMap,eA=new WeakMap,nA=new WeakMap;function rA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ih(t){for(var e=1;e{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))gG.transform(n,e);for(var r of E.pointRefs(t))vG.transform(r,e);for(var o of E.rangeRefs(t))mG.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=Vg.get(t)||[],l=zW(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);Vg.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),jc.get(t)||(jc.set(t,!0),Promise.resolve().then(()=>{jc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.setNodes(t,{[e]:n},{match:ot.isText,split:!0});else{var o=Ih(Ih({},E.marks(t)||{}),{},{[e]:n});t.marks=o,jc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=Ih({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!ot.isText(n))if(ct.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ct.isElement(n)&&(t.isInline(n)||n.children.length===0||ot.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a{var{selection:n}=t;if(n)if(L.isExpanded(n))N.unsetNodes(t,e,{match:ot.isText,split:!0});else{var r=Ih({},E.marks(t)||{});delete r[e],t.marks=r,jc.get(t)||t.onChange()}}};return t},zW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:n,path:r}=t,o=j.levels(r),i=ot.isText(n)?[]:Array.from(Q.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var p=j.transform(f,t);l.push(p)}for(var d of j.ancestors(s)){var y=j.transform(d,t);c.push(y)}var g=c[c.length-1],v=s[s.length-1],m=g.concat(v);return[...l,...c,m];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:b}=t;return[...j.levels(b),j.next(b)];default:return[]}};function ai(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var St,K4=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?WW(t):t,o=St.None,i=St.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=rG(s,l);if([o,i]=n?[i,c]:[c,o],ul(o,St.ZWJ)&&ul(i,St.ExtPict)&&!uG(n?t.substring(0,a):t.substring(0,t.length-a))||ul(o,St.RI)&&ul(i,St.RI)&&!(u=u!==null?!u:!!n||lG(t.substring(0,t.length-a)))||o!==St.None&&i!==St.None&&iG(o,i))break;a+=s.length}return a||1},$W=/\s/,HW=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,VW=/['\u2018\u2019]/,Y4=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},UW=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if($W.test(e))return!1;if(VW.test(e)){var o=K4(n,r),[i,a]=Y4(n,o,r);if(t(i,a,r))return!0}return!HW.test(e)},WW=function*(t){for(var e=t.length-1,n=0;nt>=55296&&t<=56319,qW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(St||(St={}));var KW=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,YW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,XW=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,ZW=/^[\u1100-\u115F\uA960-\uA97C]$/,JW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,QW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,tG=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,eG=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,nG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,rG=(t,e)=>{var n=St.Any;return t.search(KW)!==-1&&(n|=St.Extend),e===8205&&(n|=St.ZWJ),e>=127462&&e<=127487&&(n|=St.RI),t.search(YW)!==-1&&(n|=St.Prepend),t.search(XW)!==-1&&(n|=St.SpacingMark),t.search(ZW)!==-1&&(n|=St.L),t.search(JW)!==-1&&(n|=St.V),t.search(QW)!==-1&&(n|=St.T),t.search(tG)!==-1&&(n|=St.LV),t.search(eG)!==-1&&(n|=St.LVT),t.search(nG)!==-1&&(n|=St.ExtPict),n};function ul(t,e){return(t&e)!=0}var oG=[[St.L,St.L|St.V|St.LV|St.LVT],[St.LV|St.V,St.V|St.T],[St.LVT|St.T,St.T],[St.Any,St.Extend|St.ZWJ],[St.Any,St.SpacingMark],[St.Prepend,St.Any],[St.ZWJ,St.ExtPict],[St.RI,St.RI]];function iG(t,e){return oG.findIndex(n=>ul(t,n[0])&&ul(e,n[1]))===-1}var aG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,uG=t=>t.search(aG)!==-1,sG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,lG=t=>{var e=t.match(sG);return e!==null&&e[0].length/2%2==1},oA=t=>xn(t)&&Q.isNodeList(t.children)&&!E.isEditor(t),ct={isAncestor:t=>xn(t)&&Q.isNodeList(t.children),isElement:oA,isElementList:t=>Array.isArray(t)&&t.every(e=>ct.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return oA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},cG=["text"],fG=["text"];function iA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function xs(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!ot.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,xs(xs({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,xs(xs({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>ot.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>ot.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ct.isElement(e)&&!t.isInline(e),isEditor(t){if(!xn(t))return!1;var e=aA.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||xn(t.marks))&&(t.selection===null||L.isRange(t.selection))&&Q.isNodeList(t.children)&&Xi.isOperationList(t.operations);return aA.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return Bt.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&ot.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ct.isElement(e)&&t.isInline(e),isNormalizing(t){var e=Qx.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return Bt.equals(e,r)},isVoid:(t,e)=>ct.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(L.isExpanded(n)){var[r]=E.nodes(t,{match:ot.isText});if(r){var[o]=r;return ai(o,cG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:ot.isText}),l=E.above(t,{match:d=>E.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;j.isAncestor(p,f)&&(u=c)}}return ai(u,fG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(dG.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),y=[];for(var[g,v]of d){var m=p&&j.compare(v,p[1])===0;if(r!=="highest"||!m){if(u(g,v))if(r==="lowest"&&m)p=[g,v];else{var h=r==="lowest"?p:[g,v];h&&(o?y.push(h):yield h),p=[g,v]}else if(o&&!m&&ot.isText(g))return}}r==="lowest"&&p&&(o?y.push(p):yield p),o&&(yield*y)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>Vg.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});Vg.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.has(t,i)){var a=E.node(t,i),[u,s]=a;ct.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(` + Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state. + `));var f=r(t).pop();if(Q.has(t,f)){var p=E.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=j.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):j.common(e.anchor.path,e.focus.path)),Bt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=tA.get(t);return e||(e=new Set,tA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!ot.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=eA.get(t);return e||(e=new Set,eA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,y=0;for(var[g,v]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ct.isElement(g)){if(!i&&t.isVoid(g)){yield E.start(t,v);continue}if(t.isInline(g))continue;if(E.hasInlines(t,g)){var m=j.isAncestor(v,s.path)?s:E.end(t,v),h=j.isAncestor(v,u.path)?u:E.start(t,v);f=E.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(ot.isText(g)){var b=j.equals(v,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,y=l.offset):(d=g.text.length,y=o?d:0),(b||c||r==="offset")&&(yield{path:v,offset:y},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=Y4(f,p,o)[1]}if(y=o?y-p:y+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:y}}}}}function w(D,S,C){return S==="character"?K4(D,C):S==="word"?function(O){for(var T=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=K4(O,T),[K,U]=Y4(O,M,T);if(UW(K,U,T))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(D,C):S==="line"||S==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>L.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=nA.get(t);return e||(e=new Set,nA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){Qx.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:ot.isText,voids:r})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=E.above(t,{at:i,match:p=>E.isBlock(t,p)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:ot.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,xs(xs({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},dG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},pG=["children"],hG=["text"],uA=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(ot.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[Q.ancestor(t,r),r];yield o}},child(t,e){if(ot.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ct.isElement(n)&&(yield[n,r])},extractProps:t=>ct.isAncestor(t)?ai(t,pG):ai(t,hG),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(ot.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=M1({children:t.children},r=>{var[o,i]=L.edges(e),a=Q.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!L.includes(e,d)}});for(var[,u]of a){if(!L.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;rot.isText(t)||ct.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=uA.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return uA.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=Q.get(t,e);if(!ot.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=Q.get(t,r);yield[o,r]}},matches:(t,e)=>ct.isElement(t)&&ct.isElementProps(e)&&ct.matches(t,e)||ot.isText(t)&&ot.isTextProps(e)&&ot.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ot.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=Q.get(t,u)):(u=j.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var n=j.parent(e),r=Q.get(t,n);if(ot.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>ot.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ot.isText(n)&&(yield[n,r])}};function sA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ze(t){for(var e=1;eXi.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!xn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&xn(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&xn(t.properties)&&xn(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||xn(t.properties)&&xn(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&xn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Xi.isOperation(e)),isSelectionOperation:t=>Xi.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Xi.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return ze(ze({},t),{},{type:"remove_node"});case"insert_text":return ze(ze({},t),{},{type:"remove_text"});case"merge_node":return ze(ze({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return ze(ze({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return ze(ze({},t),{},{path:r,newPath:o});case"remove_node":return ze(ze({},t),{},{type:"insert_node"});case"remove_text":return ze(ze({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return ze(ze({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return ze(ze({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return ze(ze({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;re[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&it.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.lengthj.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return M1(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(j.equals(f,p))return;if(j.isAncestor(f,r)||j.equals(f,r)){var d=p.slice();return j.endsBefore(f,p)&&f.lengthe.offset?1:0:n},isAfter:(t,e)=>Bt.compare(t,e)===1,isBefore:(t,e)=>Bt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>xn(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return M1(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;r.path=j.transform(i,e,n);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Bt.equals(t.anchor,e.anchor)&&Bt.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[n,r]=L.edges(t),[o,i]=L.edges(e);return Bt.isBefore(n,o)&&Bt.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Bt.isPoint(e)?(s=Bt.compare(e,a)>=0,l=Bt.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=ai(t,yG),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Bt.isBefore(r,i)?i:r,s=Bt.isBefore(o,a)?o:a;return Bt.isBefore(s,u)?null:function(l){for(var c=1;c!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>xn(t)&&Bt.isPoint(t.anchor)&&Bt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return M1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Bt.transform(r.anchor,e,{affinity:o}),l=Bt.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},mG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},nj=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(xn(r)&&xn(o)){if(!nj(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ai(i,bG)}return nj(r?o(t):t,r?o(e):e)},isText:t=>xn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>ot.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Ho({},t)];for(var r of e){var o=ai(r,wG),[i,a]=L.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offsetf){var v=i.offset-f;d=Ho(Ho({},p),{},{text:p.text.slice(0,v)}),p=Ho(Ho({},p),{},{text:p.text.slice(v)})}Object.assign(p,o),d&&u.push(d),u.push(p),y&&u.push(y)}}n=u}return n}};function pA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Nc(t){for(var e=1;e{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=Bt.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:y}=i;if(y.length===0)break;var g=Q.leaf(r,p),v=g.text.slice(0,d),m=g.text.slice(d);if(g.text=v+y+m,o)for(var[h,b]of L.points(o))o[b]=Bt.transform(h,i);break;case"merge_node":var{path:w}=i,D=Q.get(r,w),S=j.previous(w),C=Q.get(r,S),O=Q.parent(r,w),T=w[w.length-1];if(ot.isText(D)&&ot.isText(C))C.text+=D.text;else{if(ot.isText(D)||ot.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(C));C.children.push(...D.children)}if(O.children.splice(T,1),o)for(var[R,H]of L.points(o))o[H]=Bt.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(j.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=Q.get(r,M),W=Q.parent(r,M),q=M[M.length-1];W.children.splice(q,1);var nt=j.transform(M,i),lt=Q.get(r,j.parent(nt)),st=nt[nt.length-1];if(lt.children.splice(st,0,U),o)for(var[at,k]of L.points(o))o[k]=Bt.transform(at,i);break;case"remove_node":var{path:x}=i,P=x[x.length-1];if(Q.parent(r,x).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=Bt.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var it=void 0,gt=void 0;for(var[vt,Dt]of Q.texts(r)){if(j.compare(Dt,x)!==-1){gt=[vt,Dt];break}it=[vt,Dt]}var G=!1;it&>&&(G=j.equals(gt[1],x)?!j.hasPrevious(gt[1]):j.common(it[1],x).length2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=E.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=E.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Bt.isPoint(a)){u==null&&(u=ot.isText(l)?S=>ot.isText(S):t.isInline(l)?S=>ot.isText(S)||E.isInline(t,S):S=>E.isBlock(t,S));var[p]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,y=E.pathRef(t,d),g=E.isEnd(t,a,d);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var v=y.unref();a=g?j.next(v):v}var m=j.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:m})){for(var b of e){var w=m.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var D=E.end(t,a);D&&N.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?As(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(t,j.parent(l)),[f,p]=c,d=l[l.length-1],{length:y}=f.children;if(y===1){var g=j.next(p);N.moveNodes(t,{at:l,to:g,voids:o}),N.removeNodes(t,{at:p,voids:o})}else if(d===0)N.moveNodes(t,{at:l,to:p,voids:o});else if(d===y-1){var v=j.next(p);N.moveNodes(t,{at:l,to:v,voids:o})}else{var m=j.next(l),h=j.next(p);N.splitNodes(t,{at:m,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=E.parent(t,r);n=T=>u.children.includes(T)}else n=T=>E.isBlock(t,T);if(!o&&L.isRange(r)&&(r=E.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=E.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[y,g]=f;if(d.length!==0&&g.length!==0){var v,m,h=j.next(g),b=j.common(d,g),w=j.isSibling(d,g),D=Array.from(E.levels(t,{at:d}),T=>{var[R]=T;return R}).slice(b.length).slice(0,-1),S=E.above(t,{at:d,mode:"highest",match:T=>D.includes(T)&&rj(t,T)}),C=S&&E.pathRef(t,S[1]);if(ot.isText(p)&&ot.isText(y)){var O=ai(p,DG);m=y.text.length,v=O}else{if(!ct.isElement(p)||!ct.isElement(y))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(y)));O=ai(p,CG),m=y.children.length,v=O}w||N.moveNodes(t,{at:d,to:h,voids:i}),C&&N.removeNodes(t,{at:C.current,voids:i}),ct.isElement(y)&&E.isEmpty(t,y)||ot.isText(y)&&y.text===""&&g[g.length-1]!==0?N.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:v}),C&&C.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?As(t,r):d=>E.isBlock(t,d));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,y]=d;return E.pathRef(t,y)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&j.isSibling(p,f)&&j.isAfter(p,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?As(t,i):p=>E.isBlock(t,p)),!n&&L.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return E.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?As(t,o):D=>E.isBlock(t,D)),!i&&L.isRange(o)&&(o=E.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),p=a==="lowest"?"lowest":"highest",d=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var y=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!y}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[g,v]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(v.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(m[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:v,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>E.isBlock(t,U)),L.isRange(i)&&(i=xG(t,i)),j.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[p]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=E.void(t,{at:i,mode:"highest"});if(!r&&d){var[y,g]=d;if(ct.isElement(y)&&t.isInline(y)){var v=E.after(t,g);if(!v){var m=j.next(g);N.insertNodes(t,{text:""},{at:m,voids:r}),v=E.point(t,m)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=p,D=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[C,O]of E.levels(t,{at:D,reverse:!0,voids:r})){var T=!1;if(O.length2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;N.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?As(t,i):p=>E.isBlock(t,p)),j.isPath(i)&&(i=E.range(t,i));var u=L.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return E.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[y]=E.node(t,d),g=E.range(t,d);r&&u&&(g=L.intersection(u.current,g)),N.liftNodes(t,{at:g,match:v=>ct.isAncestor(y)&&y.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?As(t,u):t.isInline(e)?v=>E.isInline(t,v)||ot.isText(v):v=>E.isBlock(t,v)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?v=>E.isBlock(t,v):v=>E.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=L.isRange(u)?L.intersection(u,E.range(t,p)):u;if(d){var y=Array.from(E.nodes(t,{at:d,match:a,mode:r,voids:i}));if(y.length>0){var g=function(){var[v]=y,m=y[y.length-1],[,h]=v,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),D=E.range(t,h,b),S=E.node(t,w),[C]=S,O=w.length+1,T=j.next(b.slice(0,O)),R=gA(gA({},e),{},{children:[]});N.insertNodes(t,R,{at:T,voids:i}),N.moveNodes(t,{at:D,match:H=>ct.isAncestor(C)&&C.children.includes(H),to:T.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},rj=(t,e)=>{if(ct.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&rj(t,n.children[0])}return!E.isEditor(e)},xG=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=E.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},As=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function vA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function yA(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);N.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?E.before(t,s,l):E.after(t,s,l);p&&(c.focus=p)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)N.setSelection(t,e);else{if(!L.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:yA(yA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Bt.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Bt.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},OG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Bt.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),p=E.end(t,[]);Bt.equals(f,p)||(a=E.unhangRange(t,a,{voids:i}))}var[d,y]=L.edges(a),g=E.above(t,{match:gt=>E.isBlock(t,gt),at:d,voids:i}),v=E.above(t,{match:gt=>E.isBlock(t,gt),at:y,voids:i}),m=g&&v&&!j.equals(g[1],v[1]),h=j.equals(d.path,y.path),b=i?null:E.void(t,{at:d,mode:"highest"}),w=i?null:E.void(t,{at:y,mode:"highest"});if(b){var D=E.before(t,d);D&&g&&j.isAncestor(g[1],D.path)&&(d=D)}if(w){var S=E.after(t,y);S&&v&&j.isAncestor(v[1],S.path)&&(y=S)}var C,O=[];for(var T of E.nodes(t,{at:a,voids:i})){var[R,H]=T;C&&j.compare(H,C)===0||(!i&&E.isVoid(t,R)||!j.isCommon(H,d.path)&&!j.isCommon(H,y.path))&&(O.push(T),C=H)}var M=Array.from(O,gt=>{var[,vt]=gt;return E.pathRef(t,vt)}),K=E.pointRef(t,d),U=E.pointRef(t,y);if(!h&&!b){var W=K.current,[q]=E.leaf(t,W),{path:nt}=W,{offset:lt}=d,st=q.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:nt,offset:lt,text:st})}for(var at of M){var k=at.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var x=U.current,[P]=E.leaf(t,x),{path:$}=x,Y=h?d.offset:0,V=P.text.slice(Y,y.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var it=n?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&it&&N.select(t,it)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(L.isRange(i))if(r||(i=E.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:x=>E.isInline(t,x),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:x=>E.isBlock(t,x),at:i,voids:o}),[,f]=c,p=E.isStart(t,i,f),d=E.isEnd(t,i,f),y=p&&d,g=!p||p&&d,v=!d,[,m]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=x=>{var[P,$]=x;return $.length!==0&&(!!y||!(g&&j.isAncestor($,m)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(v&&j.isAncestor($,h)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var D of Q.nodes({children:e},{pass:w}))w(D)&&b.push(D);var S=[],C=[],O=[],T=!0,R=!1;for(var[H]of b)ct.isElement(H)&&!t.isInline(H)?(T=!1,R=!0,C.push(H)):T?S.push(H):O.push(H);var[M]=E.nodes(t,{at:i,match:x=>ot.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),[,K]=M,U=E.isStart(t,i,K),W=E.isEnd(t,i,K),q=E.pathRef(t,d?j.next(f):f),nt=E.pathRef(t,W?j.next(K):K),lt=E.pathRef(t,f);N.splitNodes(t,{at:i,match:x=>R?E.isBlock(t,x):ot.isText(x)||E.isInline(t,x),mode:R?"lowest":"highest",voids:o});var st=E.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,S,{at:st.current,match:x=>ot.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),y&&C.length&&N.delete(t,{at:lt.unref(),voids:o}),N.insertNodes(t,C,{at:q.current,match:x=>E.isBlock(t,x),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:nt.current,match:x=>ot.isText(x)||E.isInline(t,x),mode:"highest",voids:o}),!n.at){var at;at=O.length>0?j.previous(nt.current):C.length>0?j.previous(q.current):j.previous(st.current);var k=E.end(t,at);N.select(t,k)}st.unref(),q.unref(),nt.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=E.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function mA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Lh(t){for(var e=1;e-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}(t.length)&&!lj(t)}function lj(t){var e=cj(t)?Mp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function cj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function fj(t){return!!t&&typeof t=="object"}function tq(t){return t?LG(t,function(e){return M5(e)?XG(e):JG(e)}(t)):[]}var SA=function(t){if(!t)return[];if(M5(t))return function(n){return typeof n=="string"||!sj(n)&&fj(n)&&Mp.call(n)=="[object String]"}(t)?zG(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o0&&z5(t[n],e[n])})}var dj={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function $p(){var t=typeof document<"u"?document:{};return z5(t,dj),t}var eq={document:dj,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function cs(){var t=typeof window<"u"?window:{};return z5(t,eq),t}function iE(t){return iE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iE(t)}function Wg(t,e){return Wg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Wg(t,e)}function nq(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function aE(t,e,n){return aE=nq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Wg(u,i.prototype),u},aE.apply(null,arguments)}function uE(t){var e=typeof Map=="function"?new Map:void 0;return uE=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return aE(n,arguments,iE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Wg(r,n)},uE(t)}var Zi=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(uE(Array));function $1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,$1(n)):e.push(n)}),e}function pj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=cs(),r=$p(),o=[];if(!e&&t instanceof Zi)return t;if(!t)return new Zi(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("0}).length>0}function Fr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Oo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r=0;else i.value=t}return this}function ko(){for(var t=arguments.length,e=new Array(t),n=0;n=0;d-=1){var y=p[d];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1))}}return this}function qg(){var t=cs();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Kg(){var t=cs();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function OA(){if(this.length>0){var t=cs(),e=$p(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function jl(){for(var t=0;t=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof Zi)for(n=0;n-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?gj.call(e):"";return n=="[object Function]"||n==oq}(t)}function hq(t){return $5(t)?lq(t):dq(t)}function gq(t){return t}var H5=function(t,e){return(vj(t)?aq:cq)(t,typeof e=="function"?e:gq)};let yj=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var vq=/^\s+|\s+$/g,yq=/^[-+]0x[0-9a-f]+$/i,mq=/^0b[01]+$/i,bq=/^0o[0-7]+$/i,wq=parseInt,Eq=typeof se=="object"&&se&&se.Object===Object&&se,Dq=typeof self=="object"&&self&&self.Object===Object&&self,Cq=Eq||Dq||Function("return this")(),Sq=Object.prototype.toString,xq=Math.max,Aq=Math.min,Sm=function(){return Cq.Date.now()};function Oq(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=Sm();if(g(b))return m(b);u=setTimeout(v,function(w){var D=e-(w-s);return f?Aq(D,i-(w-l)):D}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Sm(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=PA(e)||0,tv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?xq(PA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(Sm())},h}function tv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function PA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Sq.call(r)=="[object Symbol]"}(t))return NaN;if(tv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=tv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(vq,"");var n=mq.test(t);return n||bq.test(t)?wq(t.slice(2),n?2:8):yq.test(t)?NaN:+t}var Ku=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return tv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Oq(t,e,{leading:r,maxWait:e,trailing:o})};const kq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function Md(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const lE=Array.isArray;function Y0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function xm(t){return t===void 0}function Xn(t){return t!==void 0}const jA=Md("",{},[],void 0,void 0);function Ic(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function Bq(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const Fq=["create","update","remove","destroy","pre","post"];function Tq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:kq;for(const f of Fq)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),y=d?"."+d.split(" ").join("."):"";return Md(r.tagName(f).toLowerCase()+p+y,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,y;let g,v=f.data;if(v!==void 0){const b=(d=v.hook)===null||d===void 0?void 0:d.init;Xn(b)&&(b(f),v=f.data)}const m=f.children,h=f.sel;if(h==="!")xm(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,S=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(D,S)):h,O=f.elm=Xn(v)&&Xn(g=v.ns)?r.createElementNS(g,C,v):r.createElement(C,v);for(D0&&O.setAttribute("class",h.slice(S+1).replace(/\./g," ")),g=0;gnt?(U=T[at+1]==null?null:T[at+1].elm,u(C,U,T,q,at,R)):l(C,O,W,nt))}(w,D,S,d):Xn(S)?(Xn(f.text)&&r.setTextContent(w,""),u(w,null,S,0,S.length-1,d)):Xn(D)?l(w,D,0,D.length-1):Xn(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(Xn(D)&&l(w,D,0,D.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,y,g;const v=[];for(d=0;d=r?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u1;b&&(h=h.slice(0,-1));var w=Fj(h),D=Bm[w];if(h.length>1&&!D&&!kj[h]&&!W5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=fK(h)),D&&(l[D]=!b||null)}}catch(S){y=!0,g=S}finally{try{!d&&m.return&&m.return()}finally{if(y)throw g}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function fK(t){return t=Fj(t),W5[t]||t.toUpperCase().charCodeAt(0)}function Fj(t){return t=t.toLowerCase(),t=kj[t]||t}var dK=Bj,Fm=function(t,e){return Bj(t,{byKey:!0},e)},pK=/^\s+|\s+$/g,hK=/^[-+]0x[0-9a-f]+$/i,gK=/^0b[01]+$/i,vK=/^0o[0-7]+$/i,yK=parseInt,mK=typeof se=="object"&&se&&se.Object===Object&&se,bK=typeof self=="object"&&self&&self.Object===Object&&self,wK=mK||bK||Function("return this")(),EK=Object.prototype.toString,DK=Math.max,CK=Math.min,Tm=function(){return wK.Date.now()};function fE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function XA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&EK.call(r)=="[object Symbol]"}(t))return NaN;if(fE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=fE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(pK,"");var n=gK.test(t);return n||vK.test(t)?yK(t.slice(2),n?2:8):hK.test(t)?NaN:+t}var Os,Tj=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function y(b){return l=b,u=setTimeout(v,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function v(){var b=Tm();if(g(b))return m(b);u=setTimeout(v,function(w){var D=e-(w-s);return f?CK(D,i-(w-l)):D}(b))}function m(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Tm(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=XA(e)||0,fE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?DK(XA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(Tm())},h},_j=as(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[S]=q[C]=q[O]=q[l]=q[c]=q[f]=q[d]=q[y]=q[g]=q[v]=q[T]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var nt=typeof se=="object"&&se&&se.Object===Object&&se,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=nt||lt||Function("return this")(),at=e&&!e.nodeType&&e,k=at&&t&&!t.nodeType&&t,x=k&&k.exports===at;function P(F,z){return F.set(z[0],z[1]),F}function $(F,z){return F.add(z),F}function Y(F,z,J,ut){var Mt=-1,pe=F?F.length:0;for(ut&&pe&&(J=F[++Mt]);++Mt-1},gr.prototype.set=function(F,z){var J=this.__data__,ut=Yn(J,F);return ut<0?J.push([F,z]):J[ut][1]=z,this},Ro.prototype.clear=function(){this.__data__={hash:new Rr,map:new(bn||gr),string:new Rr}},Ro.prototype.delete=function(F){return zo(this,F).delete(F)},Ro.prototype.get=function(F){return zo(this,F).get(F)},Ro.prototype.has=function(F){return zo(this,F).has(F)},Ro.prototype.set=function(F,z){return zo(this,F).set(F,z),this},Mr.prototype.clear=function(){this.__data__=new gr},Mr.prototype.delete=function(F){return this.__data__.delete(F)},Mr.prototype.get=function(F){return this.__data__.get(F)},Mr.prototype.has=function(F){return this.__data__.has(F)},Mr.prototype.set=function(F,z){var J=this.__data__;if(J instanceof gr){var ut=J.__data__;if(!bn||ut.length<199)return ut.push([F,z]),this;J=this.__data__=new Ro(ut)}return J.set(F,z),this};var xc=Ha?gt(Ha,Object):function(){return[]},uo=function(F){return $t.call(F)};function Eh(F,z){return!!(z=z??r)&&(typeof F=="number"||W.test(F))&&F>-1&&F%1==0&&F-1&&z%1==0&&z<=r}(F.length)&&!ht(F)}var Z=Lr||function(){return!1};function ht(F){var z=ee(F)?$t.call(F):"";return z==u||z==s}function ee(F){var z=typeof F;return!!F&&(z=="object"||z=="function")}function Pt(F){return I(F)?pi(F):function(z){if(!hi(z))return io(z);var J=[];for(var ut in Object(z))Be.call(z,ut)&&ut!="constructor"&&J.push(ut);return J}(F)}t.exports=function(F){return Sc(F,!0,!0)}});function ZA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var SK=0;function xK(t){return"__private_"+SK+++"_"+t}function AK(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),ae===1?0:1},Array.isArray(t)?t.forEach(ZA(this,Os)[Os],this):ZA(this,Os)[Os](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return JA(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return JA(n,e)}});function OK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var jj=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],y=Object.keys(e),g=0,v=y.length;gcrypto.getRandomValues(new Uint8Array(t)),t7=(t,e,n)=>{let r=(2<{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var FK={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>t7(t,e,QA),customRandom:t7,urlAlphabet:BK,random:QA},_m=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function Nj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Nj.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e=2}return e?n(e.split(";")[0]):n},PK=0;function jK(t){return"__private_"+PK+++"_"+t}var Pm=jK("publish");class Ij{constructor(){Object.defineProperty(this,Pm,{value:NK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,Pm)[Pm](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function NK(){for(var t=arguments.length,e=new Array(t),n=0;n{r(...e)})}Ij.VERSION="2.0.3";var e7=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},n7={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function r7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var IK=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function jm(t){return t<10?`0${t}`:t.toString()}var Mh=function(){const t=new Date;return`${jm(t.getHours())}:${jm(t.getMinutes())}:${jm(t.getSeconds())}`},Lj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class HK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var pn=Xe("plugins"),Lc=Xe("storeUnsubscribe"),Vo=Xe("emitter"),fu=Xe("preProcessors"),du=Xe("uploaders"),Yo=Xe("postProcessors"),ad=Xe("checkRestrictions"),Nm=Xe("checkMinNumberOfFiles"),zd=Xe("checkRequiredMetaFieldsOnFile"),Im=Xe("checkRequiredMetaFields"),Je=Xe("showOrLogErrorAndThrow"),Rc=Xe("assertNewUploadAllowed"),Mc=Xe("checkAndCreateFileStateObject"),zc=Xe("startIfAutoProceed"),Lm=Xe("addListeners"),Hr=Xe("updateOnlineStatus"),Uo=Xe("createUpload"),Rm=Xe("getUpload"),vu=Xe("removeUpload"),Wo=Xe("runUpload");Mj=Symbol.for("uppy test: getPlugins"),zj=Symbol.for("uppy test: createUpload");class $j{constructor(e){Object.defineProperty(this,Wo,{value:eY}),Object.defineProperty(this,vu,{value:tY}),Object.defineProperty(this,Rm,{value:QK}),Object.defineProperty(this,Uo,{value:JK}),Object.defineProperty(this,Lm,{value:ZK}),Object.defineProperty(this,zc,{value:XK}),Object.defineProperty(this,Mc,{value:YK}),Object.defineProperty(this,Rc,{value:KK}),Object.defineProperty(this,Je,{value:qK}),Object.defineProperty(this,Im,{value:GK}),Object.defineProperty(this,zd,{value:WK}),Object.defineProperty(this,Nm,{value:UK}),Object.defineProperty(this,ad,{value:VK}),Object.defineProperty(this,pn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Lc,{writable:!0,value:void 0}),Object.defineProperty(this,Vo,{writable:!0,value:jj()}),Object.defineProperty(this,fu,{writable:!0,value:new Set}),Object.defineProperty(this,du,{writable:!0,value:new Set}),Object.defineProperty(this,Yo,{writable:!0,value:new Set}),Object.defineProperty(this,Hr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=LK;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new Ij,logger:zK,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=$K),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ku(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:IK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ft(this,Lc)[Lc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ft(this,Lm)[Lm]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...n}}})}i18nInit(){const e=new Pj([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...e},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ft(this,fu)[fu].add(e)}removePreProcessor(e){return ft(this,fu)[fu].delete(e)}addPostProcessor(e){ft(this,Yo)[Yo].add(e)}removePostProcessor(e){return ft(this,Yo)[Yo].delete(e)}addUploader(e){ft(this,du)[du].add(e)}removeUploader(e){return ft(this,du)[du].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(y=>{let{progress:g}=y;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(y=>!y.progress.uploadStarted),u=o.filter(y=>y.progress.uploadStarted||y.progress.preprocess||y.progress.postprocess),s=o.filter(y=>y.progress.uploadStarted),l=o.filter(y=>y.isPaused),c=o.filter(y=>y.progress.uploadComplete),f=o.filter(y=>y.error),p=i.filter(y=>!y.isPaused),d=o.filter(y=>y.progress.preprocess||y.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(y=>y.isGhost)}}validateRestrictions(e,n){try{return ft(this,ad)[ad](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){ft(this,Rc)[Rc](e);const{files:n}=this.getState();let r=ft(this,Mc)[Mc](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ft(this,zc)[zc](),r.id}addFiles(e){ft(this,Rc)[Rc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name} + id: ${r[i].id} + type: ${r[i].type}`)}),r.length>0&&ft(this,zc)[zc](),o.length>0){let i=`Multiple errors occurred while adding files: +`;if(o.forEach(a=>{i+=` + * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ft(this,Uo)[Uo](n,{forceAllowNewUpload:!0});return ft(this,Wo)[Wo](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=ft(this,Uo)[Uo]([e],{forceAllowNewUpload:!0});return ft(this,Wo)[Wo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'. +Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in ft(this,pn)[pn]?ft(this,pn)[pn][r.type].push(r):ft(this,pn)[pn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(ft(this,pn)[pn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[Mj](e){return ft(this,pn)[pn][e]}iteratePlugins(e){Object.values(ft(this,pn)[pn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=ft(this,pn)[pn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ft(this,Lc)[Lc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ft(this,Hr)[Hr]),window.removeEventListener("offline",ft(this,Hr)[Hr]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ft(this,Wo)[Wo](e):(ft(this,vu)[vu](e),Promise.reject(new Error("Nonexistent upload")))}[zj](){return ft(this,Uo)[Uo](...arguments)}addResultData(e,n){if(!ft(this,Rm)[Rm](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=ft(this,pn)[pn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{ft(this,Nm)[Nm](n),ft(this,Im)[Im](n)}).catch(o=>{ft(this,Je)[Je](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ft(this,Uo)[Uo](a);return ft(this,Wo)[Wo](u)}).catch(o=>{ft(this,Je)[Je](o,{showInformer:!1})}))}}function VK(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new yo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&_K(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new yo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new yo(this.i18n("exceedsSize",{size:_m(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new yo(this.i18n("exceedsSize",{size:_m(n),file:t.name}));if(r&&t.size!=null&&t.size{const r=this.getFile(n);return ft(this,zd)[zd](r)});if(e.length)throw new HK(e,`${this.i18n("missingRequiredMetaField")}`)}function qK(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function KK(t){const{allowNewUpload:e}=this.getState();e===!1&&ft(this,Je)[Je](new yo(this.i18n("noMoreFilesAllowed")),{file:t})}function YK(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=e7(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in n7?n7[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=e7(r).extension,i=Boolean(e.isRemote),a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${r7(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${r7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new yo(this.i18n("noDuplicates",{fileName:r}));ft(this,Je)[Je](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?ft(this,Je)[Je](new yo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);ft(this,ad)[ad](l,f)}catch(f){ft(this,Je)[Je](f,{file:l})}return l}function XK(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function ZK(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),ft(this,Je)[Je](o,{throwErr:!1})}else ft(this,Je)[Je](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:ft(this,Yo)[Yo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&ft(this,zd)[zd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ft(this,Hr)[Hr]),window.addEventListener("offline",ft(this,Hr)[Hr]),setTimeout(ft(this,Hr)[Hr],3e3))}function JK(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=MK();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function QK(t){const{currentUploads:e}=this.getState();return e[t]}function tY(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function eY(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...ft(this,fu)[fu],...ft(this,du)[du],...ft(this,Yo)[Yo]];try{for(let a=r;a{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),ft(this,vu)[vu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}$j.VERSION="2.1.3";var Hj=$j,nY=as(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(k,x){for(var P in x)k[P]=x[P];return k}function y(k){var x=k.parentNode;x&&x.removeChild(k)}function g(k,x,P){var $,Y,V,it={};for(V in x)V=="key"?$=x[V]:V=="ref"?Y=x[V]:it[V]=x[V];if(arguments.length>2&&(it.children=arguments.length>3?n.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)it[V]===void 0&&(it[V]=k.defaultProps[V]);return v(k,it,$,Y,null)}function v(k,x,P,$,Y){var V={type:k,props:x,key:P,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y??++o};return Y==null&&r.vnode!=null&&r.vnode(V),V}function m(k){return k.children}function h(k,x){this.props=k,this.context=x}function b(k,x){if(x==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var P;x0?v(dt.type,dt.props,dt.key,null,dt.__v):dt)!=null){if(dt.__=P,dt.__b=P.__b+1,(At=te[G])===null||At&&dt.key==At.key&&dt.type===At.type)te[G]=void 0;else for(It=0;It2&&(it.children=arguments.length>3?n.call(arguments,2):P),v(k.type,it,$||k.key,Y||k.ref,null)},e.createContext=function(k,x){var P={__c:x="__cC"+l++,__:k,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,V;return this.getChildContext||(Y=[],(V={})[x]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(it){this.props.value!==it.value&&Y.some(D)},this.sub=function(it){Y.push(it);var gt=it.componentWillUnmount;it.componentWillUnmount=function(){Y.splice(Y.indexOf(it),1),gt&>.call(it)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function k(x,P){at(x,P,k)},e.isValidElement=i,e.options=r,e.render=at,e.toChildArray=function k(x,P){return P=P||[],x==null||typeof x=="boolean"||(Array.isArray(x)?x.some(function($){k($,P)}):P.push(x)),P}}),rY=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},G5=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new Pj([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function o7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var oY=0;function iY(t){return"__private_"+oY+++"_"+t}const{render:i7}=nY;var $c=iY("updateUI");class q5 extends G5{constructor(){super(...arguments),Object.defineProperty(this,$c,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=rY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return o7(this,$c)[$c]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(i7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),i7(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof q5)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the "},I7=function(t){t.write(sN("")),t.close();var e=t.parentWindow.Object;return t=null,e},J0=function(){try{Vh=new ActiveXObject("htmlfile")}catch{}var t,e;J0=typeof document<"u"?document.domain&&Vh?I7(Vh):((e=Hd("iframe")).style.display="none",wE.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(sN("document.F=Object")),t.close(),t.F):I7(Vh);for(var n=av.length;n--;)delete J0.prototype[av[n]];return J0()};q1[uN]=!0;var Z1=Object.create||function(t,e){var n;return t!==null?(Qm.prototype=Le(t),n=new Qm,Qm.prototype=null,n[uN]=t):n=J0(),e===void 0?n:qX(n,e)},EE=Se("unscopables"),DE=Array.prototype;DE[EE]==null&&ro.f(DE,EE,{configurable:!0,value:Z1(null)});var ld=function(t){DE[EE][t]=!0},KX=rN.includes;De({target:"Array",proto:!0},{includes:function(t){return KX(this,t,arguments.length>1?arguments[1]:void 0)}}),ld("includes");var YX=Se("match"),oD=function(t){var e;return ce(t)&&((e=t[YX])!==void 0?!!e:Zr(t)=="RegExp")},XX=X.TypeError,iD=function(t){if(oD(t))throw XX("The method doesn't accept regular expressions");return t},ZX=Se("match"),aD=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[ZX]=!1,"/./"[t](e)}catch{}}return!1},JX=pt("".indexOf);De({target:"String",proto:!0,forced:!aD("includes")},{includes:function(t){return!!~JX(ue(_r(this)),ue(iD(t)),arguments.length>1?arguments[1]:void 0)}});var QX=/"/g,tZ=pt("".replace);De({target:"String",proto:!0,forced:Zt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ue(_r(this)),r=""+n+"";var e,n,r}});var CE=function(t,e,n){var r,o;Le(t);try{if(!(r=Xu(t,"return"))){if(e==="throw")throw n;return n}r=Ut(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Le(r),n},eZ=function(t,e,n,r){try{return r?e(Le(n)[0],n[1]):e(n)}catch(o){CE(t,"throw",o)}},Hl={},nZ=Se("iterator"),rZ=Array.prototype,lN=function(t){return t!==void 0&&(Hl.Array===t||rZ[nZ]===t)},Wd=function(t,e,n){var r=tD(e);r in t?ro.f(t,r,W1(0,n)):t[r]=n},oZ=Se("iterator"),uD=function(t){if(t!=null)return Xu(t,oZ)||Xu(t,"@@iterator")||Hl[K1(t)]},iZ=X.TypeError,cN=function(t,e){var n=arguments.length<2?uD(t):e;if(Sa(n))return Le(Ut(n,t));throw iZ(U1(t)+" is not iterable")},L7=X.Array,fN=Se("iterator"),dN=!1;try{var aZ=0,R7={next:function(){return{done:!!aZ++}},return:function(){dN=!0}};R7[fN]=function(){return this},Array.from(R7,function(){throw 2})}catch{}var sD=function(t,e){if(!e&&!dN)return!1;var n=!1;try{var r={};r[fN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},uZ=!sD(function(t){Array.from(t)});De({target:"Array",stat:!0,forced:uZ},{from:function(t){var e=Na(t),n=X1(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Zu(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=uD(e),d=0;if(!p||this==L7&&lN(p))for(a=ps(e),u=n?new this(a):L7(a);a>d;d++)f=i?o(e[d],d):e[d],Wd(u,d,f);else for(c=(l=cN(e,p)).next,u=n?new this:[];!(s=Ut(c,l)).done;d++)f=i?eZ(l,o,[s.value,d],!0):s.value,Wd(u,d,f);return u.length=d,u}});var ku,M7,z7,sZ=pt("".charAt),$7=pt("".charCodeAt),lZ=pt("".slice),H7=function(t){return function(e,n){var r,o,i=ue(_r(e)),a=Vp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=$7(i,a))<55296||r>56319||a+1===u||(o=$7(i,a+1))<56320||o>57343?t?sZ(i,a):r:t?lZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},pN={codeAt:H7(!1),charAt:H7(!0)},cZ=!Zt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),V7=eD("IE_PROTO"),SE=X.Object,fZ=SE.prototype,uv=cZ?SE.getPrototypeOf:function(t){var e=Na(t);if(Ie(e,V7))return e[V7];var n=e.constructor;return re(n)&&e instanceof n?n.prototype:e instanceof SE?fZ:null},xE=Se("iterator"),hN=!1;[].keys&&("next"in(z7=[].keys())?(M7=uv(uv(z7)))!==Object.prototype&&(ku=M7):hN=!0);var dZ=ku==null||Zt(function(){var t={};return ku[xE].call(t)!==t});dZ&&(ku={}),re(ku[xE])||Un(ku,xE,function(){return this});var lD={IteratorPrototype:ku,BUGGY_SAFARI_ITERATORS:hN},pZ=ro.f,U7=Se("toStringTag"),sv=function(t,e,n){t&&!Ie(t=n?t:t.prototype,U7)&&pZ(t,U7,{configurable:!0,value:e})},hZ=lD.IteratorPrototype,gZ=function(){return this},vZ=X.String,yZ=X.TypeError,Vl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Le(r),function(i){if(typeof i=="object"||re(i))return i;throw yZ("Can't set "+vZ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),mZ=sc.PROPER,bZ=sc.CONFIGURABLE,W7=lD.IteratorPrototype,Uh=lD.BUGGY_SAFARI_ITERATORS,Kc=Se("iterator"),wZ=function(){return this},cD=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=Z1(hZ,{next:W1(1,b)}),sv(m,D,!1),Hl[D]=gZ})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Uh&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Kc]||d["@@iterator"]||o&&d[o],g=!Uh&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=uv(v.call(new t)))!==Object.prototype&&u.next&&(uv(u)!==W7&&(Vl?Vl(u,W7):re(u[Kc])||Un(u,Kc,wZ)),sv(u,f,!0)),mZ&&o=="values"&&y&&y.name!=="values"&&(bZ?Xr(d,"name","values"):(p=!0,g=function(){return Ut(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Uh||p||!(l in d))&&Un(d,l,s[l]);else De({target:e,proto:!0,forced:Uh||p},s);return d[Kc]!==g&&Un(d,Kc,g,{name:o}),Hl[e]=g,s},EZ=pN.charAt,DZ=kn.set,CZ=kn.getterFor("String Iterator");cD(String,"String",function(t){DZ(this,{type:"String Iterator",string:ue(t),index:0})},function(){var t,e=CZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=EZ(n,r),e.index+=t.length,{value:t,done:!1})});var tb,SZ=Up.f,G7=pt("".endsWith),xZ=pt("".slice),AZ=Math.min,gN=aD("endsWith"),OZ=!(gN||(tb=SZ(String.prototype,"endsWith"),!tb||tb.writable));De({target:"String",proto:!0,forced:!OZ&&!gN},{endsWith:function(t){var e=ue(_r(this));iD(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:AZ(lc(n),r),i=ue(t);return G7?G7(e,i,o):xZ(e,o-i.length,o)===i}});var kZ=pt([].join),BZ=Y1!=Object,FZ=tN("join",",");De({target:"Array",proto:!0,forced:BZ||!FZ},{join:function(t){return kZ(Ia(this),t===void 0?",":t)}});var TZ=Se("species"),J1=function(t){return $d>=51||!Zt(function(){var e=[];return(e.constructor={})[TZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},_Z=cc.map,PZ=J1("map");De({target:"Array",proto:!0,forced:!PZ},{map:function(t){return _Z(this,t,arguments.length>1?arguments[1]:void 0)}});var fD=X.RegExp,AE=Zt(function(){var t=fD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),jZ=AE||Zt(function(){return!fD("a","y").sticky}),Q1={BROKEN_CARET:AE||Zt(function(){var t=fD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:jZ,UNSUPPORTED_Y:AE},NZ=X.RegExp,dD=Zt(function(){var t=NZ(".","s");return!(t.dotAll&&t.exec(` +`)&&t.flags==="s")}),IZ=X.RegExp,pD=Zt(function(){var t=IZ("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),LZ=kn.get,RZ=X5("native-string-replace",String.prototype.replace),lv=RegExp.prototype.exec,OE=lv,MZ=pt("".charAt),zZ=pt("".indexOf),$Z=pt("".replace),eb=pt("".slice),nb=function(){var t=/a/,e=/b*/g;return Ut(lv,t,"a"),Ut(lv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),q7=Q1.BROKEN_CARET,rb=/()??/.exec("")[1]!==void 0;(nb||rb||q7||dD||pD)&&(OE=function(t){var e,n,r,o,i,a,u,s=this,l=LZ(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ut(OE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=q7&&s.sticky,y=Ut(rD,s),g=s.source,v=0,m=c;if(d&&(y=$Z(y,"y",""),zZ(y,"g")===-1&&(y+="g"),m=eb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&MZ(c,s.lastIndex-1)!==` +`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),rb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),nb&&(r=s.lastIndex),o=Ut(lv,d?n:s,m),d?o?(o.input=eb(o.input,v),o[0]=eb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:nb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),rb&&o&&o.length>1&&Ut(RZ,o[0],n,function(){for(i=1;i]*>)/g,KZ=/\$([$&'`]|\d{1,2})/g,YZ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=KZ;return o!==void 0&&(o=Na(o),s=qZ),GZ(i,s,function(l,c){var f;switch(ib(c,0)){case"$":return"$";case"&":return t;case"`":return ab(e,0,n);case"'":return ab(e,a);case"<":f=o[ab(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=WZ(p/10);return d===0?l:d<=u?r[d-1]===void 0?ib(c,1):r[d-1]+ib(c,1):l}f=r[p-1]}return f===void 0?"":f})},XZ=X.TypeError,qd=function(t,e){var n=t.exec;if(re(n)){var r=Ut(n,t,e);return r!==null&&Le(r),r}if(Zr(t)==="RegExp")return Ut(Gd,t,e);throw XZ("RegExp#exec called on incompatible receiver")},kE=Se("replace"),ZZ=Math.max,JZ=Math.min,QZ=pt([].concat),ub=pt([].push),X7=pt("".indexOf),Z7=pt("".slice),tJ="a".replace(/./,"$0")==="$0",J7=!!/./[kE]&&/./[kE]("a","$0")==="";vD("replace",function(t,e,n){var r=J7?"$":"$0";return[function(o,i){var a=_r(this),u=o==null?void 0:Xu(o,kE);return u?Ut(u,o,a,i):Ut(e,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o);if(typeof i=="string"&&X7(i,r)===-1&&X7(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=re(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=qd(a,u);if(d===null||(ub(p,d),!c))break;ue(d[0])===""&&(a.lastIndex=yD(u,lc(a.lastIndex),f))}for(var y,g="",v=0,m=0;m=v&&(g+=Z7(u,v,b)+O,v=b+h.length)}return g+Z7(u,v)}]},!!Zt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!tJ||J7);var BE=function(t,e){return BE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},BE(t,e)};function fc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}BE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Er=function(){return Er=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function FE(t,e){for(var n=0,r=e.length,o=t.length;n=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Hl.Arguments=Hl.Array,ld("keys"),ld("values"),ld("entries");var Ul=function(t,e,n){for(var r in e)Un(t,r,e[r],n);return t},oJ=X.Array,iJ=Math.max,TE=function(t,e,n){for(var r=ps(t),o=$l(e,r),i=$l(n===void 0?r:n,r),a=oJ(iJ(i-o,0)),u=0;oi;i++)if((u=v(t[i]))&&Yu(r9,u))return u;return new Q0(!1)}r=cN(t,o)}for(s=r.next;!(l=Ut(s,r)).done;){try{u=v(l.value)}catch(m){CE(r,"throw",m)}if(typeof u=="object"&&u&&Yu(r9,u))return u}return new Q0(!1)},lJ=X.TypeError,ey=function(t,e){if(Yu(e,t))return t;throw lJ("Incorrect invocation")},vN=function(t,e,n){var r,o;return Vl&&re(r=e.constructor)&&r!==n&&ce(o=r.prototype)&&o!==n.prototype&&Vl(t,o),t},yN=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=pt(u[v]);Un(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!ce(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!ce(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!ce(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(Ud(t,!re(a)||!(o||u.forEach&&!Zt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),ty.enable();else if(Ud(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Zt(function(){f.has(1)}),y=sD(function(v){new a(v)}),g=!o&&Zt(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){ey(v,u);var h=vN(new a,v,s);return m!=null&&Kd(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,De({global:!0,forced:s!=a},l),sv(s,t),o||n.setStrong(s,t,r),s},Gh=ty.getWeakData,cJ=kn.set,fJ=kn.getterFor,dJ=cc.find,pJ=cc.findIndex,hJ=pt([].splice),gJ=0,qh=function(t){return t.frozen||(t.frozen=new mN)},mN=function(){this.entries=[]},sb=function(t,e){return dJ(t.entries,function(n){return n[0]===e})};mN.prototype={get:function(t){var e=sb(this,t);if(e)return e[1]},has:function(t){return!!sb(this,t)},set:function(t,e){var n=sb(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=pJ(this.entries,function(n){return n[0]===t});return~e&&hJ(this.entries,e,1),!!~e}};var Yc,bN={getConstructor:function(t,e,n,r){var o=t(function(s,l){ey(s,i),cJ(s,{type:e,id:gJ++,frozen:void 0}),l!=null&&Kd(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=fJ(e),u=function(s,l,c){var f=a(s),p=Gh(Le(l),!0);return p===!0?qh(f).set(l,c):p[f.id]=c,s};return Ul(i,{delete:function(s){var l=a(this);if(!ce(s))return!1;var c=Gh(s);return c===!0?qh(l).delete(s):c&&Ie(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ce(s))return!1;var c=Gh(s);return c===!0?qh(l).has(s):c&&Ie(c,l.id)}}),Ul(i,n?{get:function(s){var l=a(this);if(ce(s)){var c=Gh(s);return c===!0?qh(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Kh=kn.enforce,vJ=!X.ActiveXObject&&"ActiveXObject"in X,wN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},yJ=yN("WeakMap",wN,bN);if(Kj&&vJ){Yc=bN.getConstructor(wN,"WeakMap",!0),ty.enable();var Xc=yJ.prototype,o9=pt(Xc.delete),Yh=pt(Xc.has),i9=pt(Xc.get),a9=pt(Xc.set);Ul(Xc,{delete:function(t){if(ce(t)&&!yu(t)){var e=Kh(this);return e.frozen||(e.frozen=new Yc),o9(this,t)||e.frozen.delete(t)}return o9(this,t)},has:function(t){if(ce(t)&&!yu(t)){var e=Kh(this);return e.frozen||(e.frozen=new Yc),Yh(this,t)||e.frozen.has(t)}return Yh(this,t)},get:function(t){if(ce(t)&&!yu(t)){var e=Kh(this);return e.frozen||(e.frozen=new Yc),Yh(this,t)?i9(this,t):e.frozen.get(t)}return i9(this,t)},set:function(t,e){if(ce(t)&&!yu(t)){var n=Kh(this);n.frozen||(n.frozen=new Yc),Yh(this,t)?a9(this,t,e):n.frozen.set(t,e)}else a9(this,t,e);return this}})}var lb=Se("iterator"),u9=Se("toStringTag"),cb=Zf.values,EN=function(t,e){if(t){if(t[lb]!==cb)try{Xr(t,lb,cb)}catch{t[lb]=cb}if(t[u9]||Xr(t,u9,e),ov[e]){for(var n in Zf)if(t[n]!==Zf[n])try{Xr(t,n,Zf[n])}catch{t[n]=Zf[n]}}}};for(var fb in ov)EN(X[fb]&&X[fb].prototype,fb);EN(Xj,"DOMTokenList");var _E=new WeakMap,PE=new WeakMap,mD=new WeakMap,ny=new WeakMap,jE=new WeakMap,cv=new WeakMap,bD=new WeakMap,NE=new WeakMap,tg=new WeakMap,s9=new WeakMap,l9=new WeakMap,c9=new WeakMap,f9=new WeakMap,Yd=new WeakMap,Wl=new WeakMap,wD=new WeakMap,fv=new WeakMap,IE=new WeakMap,dv=new WeakMap,eg=new WeakMap,DN=new WeakMap,Bu=new WeakMap,db=new WeakMap,d9=new WeakMap,pb=new WeakMap,mJ=cc.find,p9=!0;"find"in[]&&Array(1).find(function(){p9=!1}),De({target:"Array",proto:!0,forced:p9},{find:function(t){return mJ(this,t,arguments.length>1?arguments[1]:void 0)}}),ld("find"),De({global:!0},{globalThis:X});const bJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Xg&&(B.fn.css=Xg),Tr&&(B.fn.append=Tr),Fl&&(B.fn.addClass=Fl),Tl&&(B.fn.removeClass=Tl),_l&&(B.fn.hasClass=_l),ko&&(B.fn.on=ko),Ca&&(B.fn.focus=Ca),Fr&&(B.fn.attr=Fr),Gg&&(B.fn.removeAttr=Gg),jl&&(B.fn.hide=jl),Yg&&(B.fn.show=Yg),OA&&(B.fn.offset=OA),qg&&(B.fn.width=qg),Kg&&(B.fn.height=Kg),Nl&&(B.fn.parent=Nl),Qg&&(B.fn.parents=Qg),BA&&(B.fn.is=BA),Pl&&(B.fn.dataset=Pl),Oo&&(B.fn.val=Oo),Jg&&(B.fn.text=Jg),Da&&(B.fn.html=Da),Ll&&(B.fn.children=Ll),Rl&&(B.fn.remove=Rl),Il&&(B.fn.find=Il),Zg&&(B.fn.each=Zg),Ml&&(B.fn.empty=Ml);var mo,Sn,ED=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},$r=function(t){return Ju(t)&&t.nodeType===1},Ju=function(t){var e=ED(t);return!!e&&t instanceof e.Node},h9=function(t){var e=t&&t.anchorNode&&ED(t.anchorNode);return!!e&&t instanceof e.Selection},CN=function(t){return Ju(t)&&t.nodeType===3},LE=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},SN=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(Ju(r=i)&&r.nodeType===8||$r(i)&&i.childNodes.length===0||$r(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},wJ=function(t,e,n){return Ht(SN(t,e,n),1)[0]},EJ=function t(e){var n,r,o="";if(CN(e)&&e.nodeValue)return e.nodeValue;if($r(e)){try{for(var i=Dr(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=` +`)}return o};function xN(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||xN(o,e)}}function g9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==mo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Sn=mo||(mo={}))[Sn.ELEMENT_NODE=1]="ELEMENT_NODE",Sn[Sn.TEXT_NODE=3]="TEXT_NODE",Sn[Sn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Sn[Sn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Sn[Sn.COMMENT_NODE=8]="COMMENT_NODE",Sn[Sn.DOCUMENT_NODE=9]="DOCUMENT_NODE",Sn[Sn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Sn[Sn.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var RE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),cd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Zc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),DJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),CJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ME=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Jc=!CJ&&!DJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=DN.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=eg.get(e);return n||(n=new Q7,eg.set(e,n)),n},setNewKey:function(t){var e=new Q7;eg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Wl.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Yd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return Wl.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=wD.get(t);else{var r=A.findKey(t,e);n=IE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=$r(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Ht(o?a:i,2),l=s[0],c=s[1],f=Ht(o?i:a,2),p=f[0],d=f[1],y=!!($r(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!($r(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Ht(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Dr(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,y=f.getAttribute("data-slate-length"),g=s+(y==null?d:parseInt(y,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=$r(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?fv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||L.isExpanded(e))return!1;var n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=Ht(n,1)[0].children;return r.length===1&&r[0].text===""}},SJ=1,AN={},Xd={},xJ=cc.filter,AJ=J1("filter");De({target:"Array",proto:!0,forced:!AJ},{filter:function(t){return xJ(this,t,arguments.length>1?arguments[1]:void 0)}});var zE=` +\v\f\r                 \u2028\u2029\uFEFF`,v9=pt("".replace),pv="["+zE+"]",OJ=RegExp("^"+pv+pv+"*"),kJ=RegExp(pv+pv+"*$"),hb=function(t){return function(e){var n=ue(_r(e));return 1&t&&(n=v9(n,OJ,"")),2&t&&(n=v9(n,kJ,"")),n}},BJ={start:hb(1),end:hb(2),trim:hb(3)},FJ=sc.PROPER,TJ=BJ.trim;De({target:"String",proto:!0,forced:function(t){return Zt(function(){return!!zE[t]()||"​…᠎"[t]()!=="​…᠎"||FJ&&zE[t].name!==t})}("trim")},{trim:function(){return TJ(this)}});var $E=[],ON={};function _J(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+""}var Zd,Fs,y9,gb,hv=X.Promise,m9=Se("species"),DD=function(t){var e=ds(t),n=ro.f;an&&e&&!e[m9]&&n(e,m9,{configurable:!0,get:function(){return this}})},PJ=X.TypeError,jJ=Se("species"),kN=function(t,e){var n,r=Le(t).constructor;return r===void 0||(n=Le(r)[jJ])==null?e:function(o){if(X1(o))return o;throw PJ(U1(o)+" is not a constructor")}(n)},BN=pt([].slice),FN=/(?:ipad|iphone|ipod).*applewebkit/i.test(hl),ia=Zr(X.process)=="process",HE=X.setImmediate,VE=X.clearImmediate,NJ=X.process,vb=X.Dispatch,IJ=X.Function,b9=X.MessageChannel,LJ=X.String,yb=0,fd={};try{Zd=X.location}catch{}var CD=function(t){if(Ie(fd,t)){var e=fd[t];delete fd[t],e()}},mb=function(t){return function(){CD(t)}},w9=function(t){CD(t.data)},E9=function(t){X.postMessage(LJ(t),Zd.protocol+"//"+Zd.host)};HE&&VE||(HE=function(t){var e=BN(arguments,1);return fd[++yb]=function(){gD(re(t)?t:IJ(t),void 0,e)},Fs(yb),yb},VE=function(t){delete fd[t]},ia?Fs=function(t){NJ.nextTick(mb(t))}:vb&&vb.now?Fs=function(t){vb.now(mb(t))}:b9&&!FN?(gb=(y9=new b9).port2,y9.port1.onmessage=w9,Fs=Zu(gb.postMessage,gb)):X.addEventListener&&re(X.postMessage)&&!X.importScripts&&Zd&&Zd.protocol!=="file:"&&!Zt(E9)?(Fs=E9,X.addEventListener("message",w9,!1)):Fs="onreadystatechange"in Hd("script")?function(t){wE.appendChild(Hd("script")).onreadystatechange=function(){wE.removeChild(this),CD(t)}}:function(t){setTimeout(mb(t),0)});var Qc,pu,dd,nl,bb,wb,Eb,D9,TN={set:HE,clear:VE},RJ=/ipad|iphone|ipod/i.test(hl)&&X.Pebble!==void 0,MJ=/web0s(?!.*chrome)/i.test(hl),zJ=Up.f,Db=TN.set,C9=X.MutationObserver||X.WebKitMutationObserver,S9=X.document,x9=X.process,Xh=X.Promise,A9=zJ(X,"queueMicrotask"),_N=A9&&A9.value;_N||(Qc=function(){var t,e;for(ia&&(t=x9.domain)&&t.exit();pu;){e=pu.fn,pu=pu.next;try{e()}catch(n){throw pu?nl():dd=void 0,n}}dd=void 0,t&&t.enter()},FN||ia||MJ||!C9||!S9?!RJ&&Xh&&Xh.resolve?((Eb=Xh.resolve(void 0)).constructor=Xh,D9=Zu(Eb.then,Eb),nl=function(){D9(Qc)}):ia?nl=function(){x9.nextTick(Qc)}:(Db=Zu(Db,X),nl=function(){Db(Qc)}):(bb=!0,wb=S9.createTextNode(""),new C9(Qc).observe(wb,{characterData:!0}),nl=function(){wb.data=bb=!bb}));var Cb,O9,PN,k9,jN=_N||function(t){var e={fn:t,next:void 0};dd&&(dd.next=e),pu||(pu=e,nl()),dd=e},$J=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Sa(e),this.reject=Sa(n)},SD={f:function(t){return new $J(t)}},UE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},HJ=typeof window=="object",NN=TN.set,VJ=Se("species"),go="Promise",B9=kn.getterFor(go),UJ=kn.set,WJ=kn.getterFor(go),uu=hv&&hv.prototype,bo=hv,tf=uu,IN=X.TypeError,WE=X.document,xD=X.process,vl=SD.f,GJ=vl,qJ=!!(WE&&WE.createEvent&&X.dispatchEvent),LN=re(X.PromiseRejectionEvent),RN=!1,pd=Ud(go,function(){var t=G1(bo),e=t!==String(bo);if(!e&&$d===66)return!0;if($d>=51&&/native code/.test(t))return!1;var n=new bo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[VJ]=r,!(RN=n.then(function(){})instanceof r)||!e&&HJ&&!LN}),KJ=pd||!sD(function(t){bo.all(t).catch(function(){})}),MN=function(t){var e;return!(!ce(t)||!re(e=t.then))&&e},AD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;jN(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&XJ(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(IN("Promise-chain cycle")):(u=MN(a))?Ut(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&YJ(t)})}},zN=function(t,e,n){var r,o;qJ?((r=WE.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),X.dispatchEvent(r)):r={promise:e,reason:n},!LN&&(o=X["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},YJ=function(t){Ut(NN,X,function(){var e,n=t.facade,r=t.value;if(F9(t)&&(e=UE(function(){ia?xD.emit("unhandledRejection",r,n):zN("unhandledrejection",n,r)}),t.rejection=ia||F9(t)?2:1,e.error))throw e.value})},F9=function(t){return t.rejection!==1&&!t.parent},XJ=function(t){Ut(NN,X,function(){var e=t.facade;ia?xD.emit("rejectionHandled",e):zN("rejectionhandled",e,t.value)})},ll=function(t,e,n){return function(r){t(e,r,n)}},yl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,AD(t,!0))},GE=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw IN("Promise can't be resolved itself");var r=MN(e);r?jN(function(){var o={done:!1};try{Ut(r,e,ll(GE,o,t),ll(yl,o,t))}catch(i){yl(o,i,t)}}):(t.value=e,t.state=1,AD(t,!1))}catch(o){yl({done:!1},o,t)}}};if(pd&&(tf=(bo=function(t){ey(this,tf),Sa(t),Ut(Cb,this);var e=B9(this);try{t(ll(GE,e),ll(yl,e))}catch(n){yl(e,n)}}).prototype,(Cb=function(t){UJ(this,{type:go,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ul(tf,{then:function(t,e){var n=WJ(this),r=n.reactions,o=vl(kN(this,bo));return o.ok=!re(t)||t,o.fail=re(e)&&e,o.domain=ia?xD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&AD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),O9=function(){var t=new Cb,e=B9(t);this.promise=t,this.resolve=ll(GE,e),this.reject=ll(yl,e)},SD.f=vl=function(t){return t===bo||t===PN?new O9(t):GJ(t)},re(hv)&&uu!==Object.prototype)){k9=uu.then,RN||(Un(uu,"then",function(t,e){var n=this;return new bo(function(r,o){Ut(k9,n,r,o)}).then(t,e)},{unsafe:!0}),Un(uu,"catch",tf.catch,{unsafe:!0}));try{delete uu.constructor}catch{}Vl&&Vl(uu,tf)}De({global:!0,wrap:!0,forced:pd},{Promise:bo}),sv(bo,go,!1),DD(go),PN=ds(go),De({target:go,stat:!0,forced:pd},{reject:function(t){var e=vl(this);return Ut(e.reject,void 0,t),e.promise}}),De({target:go,stat:!0,forced:pd},{resolve:function(t){return function(e,n){if(Le(e),ce(n)&&n.constructor===e)return n;var r=SD.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),De({target:go,stat:!0,forced:KJ},{all:function(t){var e=this,n=vl(e),r=n.resolve,o=n.reject,i=UE(function(){var a=Sa(e.resolve),u=[],s=0,l=1;Kd(t,function(c){var f=s++,p=!1;l++,Ut(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=vl(e),r=n.reject,o=UE(function(){var i=Sa(e.resolve);Kd(t,function(a){Ut(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ts=Q1.UNSUPPORTED_Y,ZJ=Math.min,$N=[].push,JJ=pt(/./.exec),_s=pt($N),ef=pt("".slice);function Pr(t){Promise.resolve().then(t)}function HN(t,e){return ct.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(m){return HN(m,r)}).join(""));var c=function(m){return ON[m]||_J}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||$E.forEach(function(m){return p=m(n,p)}),typeof f=="string")return p;var d=f.prefix,y=d===void 0?"":d,g=f.suffix,v=g===void 0?"":g;return y&&(p=y+p),v&&(p+=v),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g,"  ").replace(//g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"
")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="
"}return $E.forEach(function(s){return i=s(n,i)}),i}(t,e)}function VN(t){return"w-e-element-"+t}vD("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ue(_r(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!oD(o))return Ut(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Ut(Gd,y,a))&&!((l=y.lastIndex)>d&&(_s(f,ef(a,d,s.index)),s.length>1&&s.index=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&JJ(y,"")||_s(f,""):_s(f,ef(a,d)),f.length>u?TE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ut(e,this,o,i)}:e,[function(o,i){var a=_r(this),u=o==null?void 0:Xu(o,t);return u?Ut(u,o,a,i):Ut(r,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=kN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ts?"g":"y"),p=new l(Ts?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return qd(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g=n},_9=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return T9(r,o)&&T9(o,r)},UN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],WN=[],OD=[],gv={},QJ=ro.f,tQ=Vd.f,eQ=kn.enforce,nQ=Se("match"),Jo=X.RegExp,rl=Jo.prototype,rQ=X.SyntaxError,oQ=pt(rD),iQ=pt(rl.exec),Zh=pt("".charAt),P9=pt("".replace),j9=pt("".indexOf),aQ=pt("".slice),uQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Fu=/a/g,Sb=/a/g,sQ=new Jo(Fu)!==Fu,GN=Q1.MISSED_STICKY,lQ=Q1.UNSUPPORTED_Y,cQ=an&&(!sQ||GN||dD||pD||Zt(function(){return Sb[nQ]=!1,Jo(Fu)!=Fu||Jo(Sb)==Sb||Jo(Fu,"i")!="/a/i"}));if(Ud("RegExp",cQ)){for(var Ai=function(t,e){var n,r,o,i,a,u,s=Yu(rl,this),l=oD(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Ai)return t;if((l||Yu(rl,t))&&(t=t.source,c&&(e="flags"in p?p.flags:oQ(p))),t=t===void 0?"":ue(t),e=e===void 0?"":ue(e),p=t,dD&&"dotAll"in Fu&&(r=!!e&&j9(e,"s")>-1)&&(e=P9(e,/s/g,"")),n=e,GN&&"sticky"in Fu&&(o=!!e&&j9(e,"y")>-1)&&lQ&&(e=P9(e,/y/g,"")),pD&&(i=function(d){for(var y,g=d.length,v=0,m="",h=[],b={},w=!1,D=!1,S=0,C="";v<=g;v++){if((y=Zh(d,v))==="\\")y+=Zh(d,++v);else if(y==="]")w=!1;else if(!w)switch(!0){case y==="[":w=!0;break;case y==="(":iQ(uQ,aQ(d,v+1))&&(v+=2,D=!0),m+=y,S++;continue;case(y===">"&&D):if(C===""||Ie(b,C))throw new rQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,S],D=!1,C="";continue}D?C+=y:m+=y}return[m,h]}(t),t=i[0],f=i[1]),a=vN(Jo(t,e),s?this:rl,Ai),(r||o||f.length)&&(u=eQ(a),r&&(u.dotAll=!0,u.raw=Ai(function(d){for(var y,g=d.length,v=0,m="",h=!1;v<=g;v++)(y=Zh(d,v))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),m+=y):m+="[\\s\\S]":m+=y+Zh(d,++v);return m}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{Xr(a,"source",p===""?"(?:)":p)}catch{}return a},fQ=function(t){t in Ai||QJ(Ai,t,{configurable:!0,get:function(){return Jo[t]},set:function(e){Jo[t]=e}})},N9=tQ(Jo),I9=0;N9.length>I9;)fQ(N9[I9++]);rl.constructor=Ai,Ai.prototype=rl,Un(X,"RegExp",Ai)}DD("RegExp");var dQ=new RegExp(String.fromCharCode(160),"g");function qN(t){return t.replace(dQ," ")}function L9(t,e){var n=t.length;if(n){var r=t[n-1];if(ot.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function pQ(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function xb(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==mo.ELEMENT_NODE){if(l.nodeType===mo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(` +`)>=0)return;c&&(c=qN(c),L9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(L9(u,` +`)||u.push({text:` +`}));var f=kD(B(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in gv)if(i[0].matches(a))return gv[a];return pQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),OD.forEach(function(a){i=a(t[0],i,e)}))}),o}function Ab(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/
/g,` +`));var n=t[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=qN(n)};return OD.forEach(function(o){r=o(t[0],r,e)}),r}function kD(t,e){WN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=g9(t);return n==="span"?t.attr("data-w-e-type")?xb(t,e):Ab(t,e):n==="code"?g9(t.parent())==="pre"?xb(t,e):Ab(t,e):UN.includes(n)?Ab(t,e):xb(t,e)}function KN(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function R9(t,e){e===void 0&&(e="");var n=[];e===""&&(e="


"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"

"+o+"

"}).join(""));var r=B("
"+e+"
");return Array.from(r.children()).forEach(function(o){var i=kD(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var hQ=ro.f,M9=ty.fastKey,z9=kn.set,Ob=kn.getterFor,gQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){ey(l,i),z9(l,{type:e,index:Z1(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&Kd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=Ob(e),u=function(l,c,f){var p,d,y=a(l),g=s(l,c);return g?g.value=f:(y.last=g={index:d=M9(c,!0),key:c,value:f,previous:p=y.last,next:void 0,removed:!1},y.first||(y.first=g),p&&(p.next=g),an?y.size++:l.size++,d!=="F"&&(y.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=M9(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Ul(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,an?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,y=p.previous;delete f.index[p.index],p.removed=!0,y&&(y.next=d),d&&(d.previous=y),f.first==p&&(f.first=d),f.last==p&&(f.last=y),an?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=Zu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Ul(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),an&&hQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Ob(e),i=Ob(r);cD(t,e,function(a,u){z9(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),DD(e)}};yN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},gQ);var $9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function H9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var vQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Ht(L.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(p=D)}),l){var d=Ht(l,1)[0],y=c.cloneRange(),g=A.toDOMNode(e,d);y.setEndAfter(g),f=y.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var S=D.getAttribute("data-slate-zero-width")==="n";D.textContent=S?` +`:""}),CN(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",EJ(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Dr(f),y=d.next();!y.done;y=d.next()){var g=y.value;p&&N.splitNodes(e,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},Jf=function(t){return t!=null},yQ={object:!0,function:!0,undefined:!0},mQ=/^\s*class[\s{/}]/,bQ=Function.prototype.toString,V9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!Jf(r)&&hasOwnProperty.call(yQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!mQ.test(bQ.call(t))},BD=function(t){return t!=null},wQ=Object.keys,EQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return wQ(BD(t)?Object(t):t)},DQ=function(t){if(!BD(t))throw new TypeError("Cannot use null or undefined");return t},CQ=Math.max,U9=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=CQ(arguments.length,2);for(t=Object(DQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r-1},Jh=Hp(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],Jf(n)?(o=nf.call(n,"c"),i=nf.call(n,"e"),a=nf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?U9(W9(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],Jf(r)?V9(r)?Jf(o)?V9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Jf(n)?(i=nf.call(n,"c"),a=nf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?U9(W9(u),s):s}}),Bb=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},kQ=Hp(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var h;return Bb(m),y.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[v]?typeof h[v]=="object"?h[v].push(m):h[v]=[h[v],m]:h[v]=m,this},r=function(v,m){var h,b;return Bb(m),b=this,n.call(this,v,h=function(){o.call(b,v,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(v,m){var h,b,w,D;if(Bb(m),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(b=h[v])=="object")for(D=0;w=b[D];++D)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[v]=b[D?0:1]:b.splice(D,1));else b!==m&&b.__eeOnceListener__!==m||delete h[v];return this},i=function(v){var m,h,b,w,D;if(y.call(this,"__ee__")&&(w=this.__ee__[v]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),m=1;ma/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var y=u-f;c.bottom=y+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function _D(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ct.isElement(e)&&t.isVoid(e),i=ct.isElement(e)&&t.isInline(e),a=dv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(C){var O=[];O.push(C);for(var T=0;O.length>0;){var R=O.pop();if(R==null||++T>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(bJ.includes(M)||M==="iframe"||M==="video")return R;var K=R.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)O.push(K[W])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var y=FD(t);if(y==null)return r;var g,v=y.top,m=y.left,h=y.width,b=y.height,w={},D=s-v,S=l-m;if(n==="bar")return w.left=S+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?S>(h-f)/2?w.right=h-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((g=D)<0&&(g=0),w.top=g+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((g=D+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function qE(t,e){Pr(function(){var n=FD(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,y=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=e.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=y+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),e.css("left",D+"px")}if(g.indexOf("right")>=0&&c<0){var S=e.css("right"),C=parseInt(S.toString())-Math.abs(c);e.css("right",C+"px")}}})}var TQ=J1("slice"),_Q=Se("species"),Fb=X.Array,PQ=Math.max;De({target:"Array",proto:!0,forced:!TQ},{slice:function(t,e){var n,r,o,i=Ia(this),a=ps(i),u=$l(t,a),s=$l(e===void 0?a:e,a);if(iv(i)&&(n=i.constructor,(X1(n)&&(n===Fb||iv(n.prototype))||ce(n)&&(n=n[_Q])===null)&&(n=void 0),n===Fb||n===void 0))return BN(i,u,s);for(r=new(n===void 0?Fb:n)(PQ(s-u,0)),o=0;u1?arguments[1]:void 0,e.length)),r=ue(t);return q9?q9(e,r,n):NQ(e,n,n+r.length)===r}});var Ps=Object.assign,K9=Object.defineProperty,RQ=pt([].concat),Y9=!Ps||Zt(function(){if(an&&Ps({b:1},Ps(K9({},"a",{enumerable:!0,get:function(){K9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Ps({},t)[n]!=7||gl(Ps({},e)).join("")!=r})?function(t,e){for(var n=Na(t),r=arguments.length,o=1,i=iN.f,a=nN.f;r>o;)for(var u,s=Y1(arguments[o++]),l=i?RQ(gl(s),i(s)):gl(s),c=l.length,f=0;c>f;)u=l[f++],an&&!Ut(a,s,u)||(n[u]=s[u]);return n}:Ps;De({target:"Object",stat:!0,forced:Object.assign!==Y9},{assign:Y9});var MQ=["props","attrs","style","dataset","on","hook"];function XN(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!MQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=lK(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&XN(i)})}var KE=[],ZN={};function zQ(t,e,n){return bt(n.isInline(t)?"span":"div",null,e)}function X9(t,e){return e===void 0&&(e=!1),bt("span",{"data-slate-string":!0},e?t+` +`:t)}function Tb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),bt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?bt("br",null):null)}function YE(t,e,n,r){return Yd.set(t,e),Wl.set(t,n),ct.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=VN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,y=d===void 0?[]:d,g=function(D){return ZN[D]||zQ}(p);a=l?null:y.map(function(D,S){return YE(D,S,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Ht(Q.texts(o),1),b=Ht(h[0],1)[0],w=bt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},YE(b,0,o,i));v=bt(m,{style:{position:"relative"}},v,w),Yd.set(b,0),Wl.set(b,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(D,S){var C=S;return KE.forEach(function(O){C=O(D,S)}),C}(o,v)),Pr(function(){var D=LE(c);D!=null&&(IE.set(u,D),dv.set(o,D),fv.set(D,o))}),v}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=ot.decorations(o,c),p=f.map(function(g,v){var m=function(h,b,w,D,S){b===void 0&&(b=!1);var C=h.text,O=A.findPath(S,w),T=j.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(D)?Tb(Q.string(D).length):C!==""||D.children[D.children.length-1]!==w||S.isInline(D)||E.string(S,T)!==""?C===""?Tb():b&&C.slice(-1)===` +`?X9(C,!0):X9(C):Tb(0,!0)}(g,v===f.length-1,o,i,a);return m=function(h,b){var w=b;return KE.forEach(function(D){w=D(h,w)}),w}(g,m),bt("span",{"data-slate-leaf":!0},m)}),d=function(g){return"w-e-text-"+g}(u.id),y=bt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Pr(function(){var g=LE(d);g!=null&&(IE.set(u,g),dv.set(o,g),fv.set(g,o))}),y}(t,n,r)}function $Q(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,v){return v===void 0&&(v=!1),zl("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var m=YE(g,v,e,e);return XN(m),m});var c=l9.get(t);if(c==null&&(c=!0),c){var f=function(g,v){return B(`
`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=Tq([Pq,Lq,Mq,jq,Iq,_q]))(n,s),l9.set(t,!1),c9.set(t,d)}else{var p=f9.get(t),d=c9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=LE(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var y=ED(n);y&&DN.set(e,y)}wD.set(e,n),dv.set(e,n),fv.set(n,e),f9.set(t,s)}}function Z9(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function J9(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function _b(t,e){if(t.clientHeighte||i>t&&a=e&&u>=n?i-t-r:a>e&&un?a-e+o:0}function Q9(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Dt){return Dt!==a};if(!Z9(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;Z9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&_b(f)&&!_b(document.documentElement)||f!=null&&_b(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),m=v.height,h=v.width,b=v.top,w=v.right,D=v.bottom,S=v.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+m/2,O=i==="center"?S+h/2:i==="end"?w:S,T=[],R=0;R=0&&S>=0&&D<=d&&w<=p&&b>=W&&D<=nt&&S>=lt&&w<=q)return T;var st=getComputedStyle(H),at=parseInt(st.borderLeftWidth,10),k=parseInt(st.borderTopWidth,10),x=parseInt(st.borderRightWidth,10),P=parseInt(st.borderBottomWidth,10),$=0,Y=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-at-x:0,it="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?C:o==="end"?C-d:o==="nearest"?t0(g,g+d,d,k,P,g+C,g+C+m,m):C-d/2,Y=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:t0(y,y+p,p,at,x,y+O,y+O+h,h),$=Math.max(0,$+g),Y=Math.max(0,Y+y);else{$=o==="start"?C-W-k:o==="end"?C-nt+P+it:o==="nearest"?t0(W,nt,K,k,P+it,C,C+m,m):C-(W+K/2)+it/2,Y=i==="start"?O-lt-at:i==="center"?O-(lt+U/2)+V/2:i==="end"?O-q+x+V:t0(lt,q,U,at,x+V,O,O+h,h);var gt=H.scrollLeft,vt=H.scrollTop;C+=vt-($=Math.max(0,Math.min(vt+$,H.scrollHeight-K+it))),O+=gt-(Y=Math.max(0,Math.min(gt+Y,H.scrollWidth-U+V)))}T.push({el:H,top:$,left:Y})}return T}function tO(t){return t===Object(t)&&Object.keys(t).length!==0}function mr(t,e){return Ju(e)&&A.hasDOMNode(t,e,{editable:!0})}function eO(t,e){if(t.getConfig().readOnly)return!1;var n=ol(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function ol(t,e){return Ju(e)&&A.hasDOMNode(t,e)}function JN(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=wD.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,y=void 0;(y=d[p])&&y.matches("table")&&(c=!1),(y=d[p-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,r);if(g){L.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(tO(b)&&typeof b.behavior=="function")return b.behavior(w?[]:Q9(h,b));if(!w){var D=function(S){return S===!1?{block:"end",inline:"nearest"}:tO(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;S.forEach(function(T){var R=T.el,H=T.top,M=T.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:C}):(R.scrollTop=H,R.scrollLeft=M)})})(Q9(h,D),D.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&cd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Pb=new WeakMap,nO=new WeakMap,HQ={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},VQ={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},UQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},me=function(t){var e=HQ[t],n=VQ[t],r=UQ[t],o=e&&Fm(e),i=n&&Fm(n),a=r&&Fm(r);return function(u){return!(!o||!o(u))||!!(RE&&i&&i(u))||!(RE||!a||!a(u))}},we={isBold:me("bold"),isCompose:me("compose"),isMoveBackward:me("moveBackward"),isMoveForward:me("moveForward"),isDeleteBackward:me("deleteBackward"),isDeleteForward:me("deleteForward"),isDeleteLineBackward:me("deleteLineBackward"),isDeleteLineForward:me("deleteLineForward"),isDeleteWordBackward:me("deleteWordBackward"),isDeleteWordForward:me("deleteWordForward"),isExtendBackward:me("extendBackward"),isExtendForward:me("extendForward"),isExtendLineBackward:me("extendLineBackward"),isExtendLineForward:me("extendLineForward"),isItalic:me("italic"),isMoveLineBackward:me("moveLineBackward"),isMoveLineForward:me("moveLineForward"),isMoveWordBackward:me("moveWordBackward"),isMoveWordForward:me("moveWordForward"),isRedo:me("redo"),isSplitBlock:me("splitBlock"),isTransposeCharacter:me("transposeCharacter"),isUndo:me("undo"),isTab:me("tab"),isSelectAll:me("selectAll")};function He(t){t.preventDefault()}var WQ={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(Jc&&!o&&mr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ht(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!pb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&mr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||$r(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Ju(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ct.isElement(s)&&!n.isVoid(s))return}if(Zc){var l=a.getSelection();l==null||l.removeAllRanges()}Bu.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,cd&&t.target!==r?r.focus():Bu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&ol(n,t.target)&&Ju(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&Q.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=E.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(mr(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){JN(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Pb.set(n,i),nO.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(mr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(ME||cd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Ht(E.node(n,[i.path[0]]),1)[0],u=0;u0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Zc||setTimeout(function(){var f=n.selection;if(f!=null){var p=nO.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=Pb.get(n)||"")}})}}}},compositionupdate:function(t,e,n){mr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&mr(n,r.target)){if(function(a,u){var s=ny.get(a),l=s&&s.getMenus(),c=cv.get(a),f=c&&c.getMenus(),p=Er(Er({},l),f);for(var d in p){var y=p[d],g=y.hotkey;if(g&&dK(g,u)&&!y.isDisabled(a)){var v=y.getValue(a);y.exec(a,v)}}}(n,r),we.isTab(r))return He(r),void n.handleTab();if(we.isRedo(r))return He(r),void(typeof n.redo=="function"&&n.redo());if(we.isUndo(r))return He(r),void(typeof n.undo=="function"&&n.undo());if(we.isMoveLineBackward(r))return He(r),void N.move(n,{unit:"line",reverse:!0});if(we.isMoveLineForward(r))return He(r),void N.move(n,{unit:"line"});if(we.isExtendLineBackward(r))return He(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(we.isExtendLineForward(r))return He(r),void N.move(n,{unit:"line",edge:"focus"});if(we.isMoveBackward(r))return He(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(we.isMoveForward(r))return He(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(we.isMoveWordBackward(r))return He(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(we.isMoveWordForward(r))return He(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(we.isSelectAll(r))return He(r),void n.selectAll();if(Jc){if((ME||Zc)&&o&&(we.isDeleteBackward(r)||we.isDeleteForward(r))&&L.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(ct.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(we.isBold(r)||we.isItalic(r)||we.isTransposeCharacter(r))return void He(r);if(we.isSplitBlock(r))return He(r),void E.insertBreak(n);if(we.isDeleteBackward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(we.isDeleteForward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(we.isDeleteLineBackward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(we.isDeleteLineForward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(we.isDeleteWordBackward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(we.isDeleteWordForward(r))return He(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!Jc&&!n.getConfig().readOnly&&mr(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(mr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&mr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(n);else{var a=Q.parent(n,o.anchor.path);E.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){pb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&mr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void pb.set(n,!1);if(!Jc||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(ol(n,t.target)){var r=A.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(ol(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&ol(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&ol(n,r.target)&&o!=null&&!(Jc&&Zc&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},GQ=1,qQ=function(){function t(e){var n=this;this.id=GQ++,this.$textArea=null,this.$progressBar=B('
'),this.$maxLengthInfo=B('
'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ku(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=A.findDocumentOrShadowRoot(s),d=p.activeElement,y=A.toDOMNode(s,s),g=p.getSelection();if(d===y?(u.latestElement=d,Bu.set(s,!0)):Bu.delete(s),!g)return N.deselect(s);var v=g.anchorNode,m=g.focusNode,h=mr(s,v)||eO(s,v),b=mr(s,m)||eO(s,m);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=B(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=B('
');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=B('
');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Pr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=PE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(H5(WQ,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Ku(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;$Q(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=B('
'+a+"
");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Pr(function(){JN(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function PD(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&PD(e)}function jD(){return B('')}function QN(){return B('
')}function tI(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=RE?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+` +`+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}vD("match",function(t,e,n){return[function(r){var o=_r(this),i=r==null?void 0:Xu(r,t);return i?Ut(i,r,o):new RegExp(r)[t](ue(o))},function(r){var o=Le(this),i=ue(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return qd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=qd(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=yD(i,lc(o.lastIndex),u)),c++}return c===0?null:l}]});var ND=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('
'),this.$button=B(''),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=B(f);PD(d),p.append(d)}else p.text(u);tI(p,f,u,l,r),r&&f&&p.append(B(''+u+"")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Pr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),er(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=er(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=er(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=er(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),KQ=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return fc(e,t),e.prototype.onButtonClick=function(){},e}(ND),ID=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=NE.get(e);n==null&&(n=new Set,NE.set(e,n)),n.add(this),tg.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=tg.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=tg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),YQ=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=B('
'),r}return fc(e,t),e.prototype.genSelfElem=function(){return null},e}(ID),XQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=jD();i.$button.append(a)}return i}return fc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=er(this);if(this.dropPanel==null){var o=new YQ(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(ND),ZQ=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=B('
'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return fc(e,t),e.prototype.genSelfElem=function(){var n=this,r=B(''),o=tg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(ID);function nr(t,e,n){var r=B('');r.append(""+t+"");var o=B('');return r.append(o),[r[0],o[0]]}function dc(t,e){var n=B('
'),r=B('");return n.append(r),[n[0],r[0]]}var JQ=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=B("body"),i.modal=null,i.menu=r,i}return fc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=er(this),r=this.menu.getModalPositionNode(n);return ct.isElement(r)?_D(n,r,"modal"):TD(n)},e.prototype.handleModal=function(){var n=er(this),r=this.menu;if(this.modal==null){var o=new ZQ(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=er(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||qE(o,n.$elem),setTimeout(function(){o.blur()})}},e}(ND),QQ=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=B('
'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return fc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=B("
    ");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('
  • ');if(l&&c.css(l),s){var f=B('');c.append(f),c.addClass("selected")}c.append(B(''+u+"")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(ID),ttt=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('
    '),this.$button=B(''),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),tI(p,l,a,f,r),this.$elem.append(p),this.menu=n,Pr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),er(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=er(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new QQ(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=er(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=er(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f'),this.$container=B('
    '),this.$button=B('');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=B(r);PD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=jD();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),oO=new WeakMap;function er(t){var e=bD.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function eI(t,e,n){n===void 0&&(n=!1);var r=oO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new XQ(t,e,n):a?new JQ(t,e,n):new KQ(t,e,n)}if(o==="select"&&(r=new ttt(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return oO.set(e,r),r}function ett(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!ot.isText(e)}var ntt=function(){function t(){var e=this;this.$elem=B('
    '),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Tj(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ct.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Pr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Pr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=QN();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=Xd[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=eI(e,o);this.hoverbarItems.push(a),bD.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ct.isElement(e)){var o=_D(n,e,"bar");return r.css(o),void qE(n,r)}if(ot.isText(e))return o=TD(n),r.css(o),void qE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(g,v){return A.checkNodeType(v,u)},d=Ht(E.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),y=d[0];if(y!=null)return r=y[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=jE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=ett),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function nI(t,e,n,r){if(Yd.set(t,e),Wl.set(t,n),ct.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return nI(u,s,t,r)}),E.isVoid(r,t)){var i=Ht(Q.texts(t),1),a=Ht(i[0],1)[0];Yd.set(a,0),Wl.set(a,t)}}}function rtt(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var S=D[D.length-1];sl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of S)h.apply(C)})}),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var S=D[D.length-1];sl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=S.map(Xi.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:D,history:S}=h,{undos:C}=S,O=C[C.length-1],T=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,T),H=sl.isSaving(h),M=sl.isMerging(h);if(H==null&&(H=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!j.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!j.equals(U.path,W.path)))(w,T)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(U=>U.type!=="set_selection")(w)&&(S.redos=[])}b(w)},h})(function(m){var h=m,b=h.insertText,w=h.insertNode,D=h.insertFragment,S=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O0&&w.removeAllRanges(),b&&N.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=db.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return TD(h)},h.getNodePosition=function(b){return _D(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ht(L.edges(b),2),D=w[0],S=w[1],C=Ht(E.edges(h,[]),2),O=C[0],T=C[1];return!(!Bt.equals(D,O)||!Bt.equals(S,T))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,D=h.apply,S=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,T,R,H,M,K,U,W,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var nt=Dr(E.levels(h,{at:C.path})),lt=nt.next();!lt.done;lt=nt.next()){var st=Ht(lt.value,2),at=st[0],k=st[1],x=A.findKey(h,at);q.push([k,x])}}catch(It){O={error:It}}finally{try{lt&&!lt.done&&(T=nt.return)&&T.call(nt)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=Dr(E.levels(h,{at:j.parent(C.path)})),$=P.next();!$.done;$=P.next()){var Y=Ht($.value,2);at=Y[0],k=Y[1],x=A.findKey(h,at),q.push([k,x])}}catch(It){R={error:It}}finally{try{$&&!$.done&&(H=P.return)&&H.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=Dr(E.levels(h,{at:j.common(j.parent(C.path),j.parent(C.newPath))})),it=V.next();!it.done;it=V.next()){var gt=Ht(it.value,2);at=gt[0],k=gt[1],x=A.findKey(h,at),q.push([k,x])}}catch(It){M={error:It}}finally{try{it&&!it.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}D(C);try{for(var vt=Dr(q),Dt=vt.next();!Dt.done;Dt=vt.next()){var G=Ht(Dt.value,2);k=G[0],x=G[1],at=Ht(E.node(h,k),1)[0],eg.set(at,x)}}catch(It){U={error:It}}finally{try{Dt&&!Dt.done&&(W=vt.return)&&W.call(vt)}finally{if(U)throw U.error}}},h.deleteBackward=function(C){if(C!=="line")return S(C);if(m.selection&&L.isCollapsed(m.selection)){var O=E.above(m,{match:function(M){return E.isBlock(m,M)},at:m.selection});if(O){var T=Ht(O,2)[1],R=E.range(m,T,m.selection.anchor),H=function(M,K){var U=E.range(M,L.end(K)),W=Array.from(E.positions(M,{at:K})),q=0,nt=W.length,lt=Math.floor(nt/2);if(_9(M,E.range(M,W[q]),U))return E.range(M,W[q],U);if(W.length<2)return E.range(M,W[W.length-1],U);for(;lt!==W.length&<!==q;)_9(M,E.range(M,W[lt]),U)?nt=lt:q=lt,lt=Math.floor((q+nt)/2);return E.range(M,W[nt],U)}(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&db.set(h,C),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return HN(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Q.string(O)}).join(` +`)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(m,C)},h.getElemsByType=function(C,O){var T,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=Dr(M),U=K.next();!U.done;U=K.next()){var W=Ht(U.value,1)[0];if(ct.isElement(W)&&(O?W.type.indexOf(C)>=0:W.type===C)){var q=VN(A.findKey(h,W).id);H.push(Er(Er({},W),{id:q}))}}}catch(nt){T={error:nt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(T)throw T.error}}return H},h.getElemsByTypePrefix=function(C){return h.getElemsByType(C,!0)},h.isEmpty=function(){var C=h.children,O=C===void 0?[]:C;if(O.length>1)return!1;var T=O[0];if(T==null)return!0;if(ct.isElement(T)&&T.type==="paragraph"){var R=T.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||ot.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var T=document.createElement("div");T.innerHTML=C;var R=Array.from(T.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===mo.TEXT_NODE||W===mo.ELEMENT_NODE&&!$9.has(q.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),T.setAttribute("hidden","true"),document.body.appendChild(T);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,nt=U.textContent,lt=nt===void 0?"":nt;if(W!==mo.TEXT_NODE)if(q!=="BR"){var st=U,at=!1;if(UN.includes(q.toLowerCase()))at=!0;else for(var k in gv)if(st.matches(k)){at=!0;break}if(at){var x=kD(B(st),h);return Array.isArray(x)?(x.forEach(function($){return H9(h,$)}),K++):(H9(h,x),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(st).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(` +`);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),T.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),T=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=R9(h,C);if(N.insertFragment(h,H),T||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch{h.select(E.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in Xd)b.push(w);return b},h.getConfig=function(){var b=s9.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h}(function(m){var h=vQ(MW());return h.id="wangEditor-"+SJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Bu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=db.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Bu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Bu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),_E.delete(h),PE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),ny.delete(h),mD.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),cv.delete(h),jE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=` +You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=B("#"+b);if(D.length!==0){var S=D[0];if(!A.hasDOMNode(h,S))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=` + 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var C=A.getTextarea(h),O=C.$textAreaContainer,T=C.$scroll,R=D.offset().top,H=O.offset().top;T[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=NE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent +不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var S=D.css("z-index");D.attr("data-z-index",S.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(m,h){return KN(m,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var h=_j(AN),b={},w=m.MENU_CONF,D=w===void 0?{}:w;return H5(h,function(S,C){b[C]=Er(Er({},S),D[C]||{})}),delete m.MENU_CONF,Er({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`: +`+S)}},m)}(o);s9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=R9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var d=new qQ(n);_E.set(l,d),PE.set(d,l),d.changeViewState(),Pr(function(){var m=d.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常 +Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var y=void 0;Object.keys(p).length>0&&(y=new ntt,jE.set(y,l),cv.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return nI(m,h,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),v&&l.on("destroyed",function(){return v(l)}),Pr(function(){return l.emit("created")}),l}var ott=J1("splice"),itt=X.TypeError,att=Math.max,utt=Math.min;De({target:"Array",proto:!0,forced:!ott},{splice:function(t,e){var n,r,o,i,a,u,s=Na(this),l=ps(s),c=$l(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=utt(att(Vp(e),0),l-c)),l+n-r>9007199254740991)throw itt("Maximum allowed length exceeded");for(o=Qj(s,r),i=0;il-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Tj(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=B(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Pr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=_j(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,g){f.splice(s.index+g,0,y)}));var p=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),d=p.length;p.forEach(function(y,g){if(y==="|"){if(g===0||g+1===d||n==="|")return;var v=QN();return r.append(v),void(n=y)}if(typeof y=="string")return e.registerSingleItem(y,e),void(n=y);e.registerGroup(y),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new rO(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof rO,i=this.menus,a=i[e];if(a==null){var u=Xd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`' +重复注册了菜单栏 menu '`+e+"'");var s=eI(e,a,o);this.toolbarItems.push(s),bD.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=mD.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),ltt=sc.EXISTS,ctt=ro.f,rI=Function.prototype,ftt=pt(rI.toString),oI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,dtt=pt(oI.exec);function iI(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,y=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,S=D===void 0?function(K,U){}:D,C=t.onError,O=C===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:C,T=t.onProgress,R=T===void 0?function(K){}:T;if(!n)throw new Error(`Cannot get upload server address +没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName +没有配置 fieldName`);var H=n;p&&(H=function(K,U){var W=Ht(K.split("#"),2),q=W[0],nt=W[1],lt=[];H5(U,function(at,k){lt.push(k+"="+at)});var st=lt.join("&");return q=q.indexOf("?")>0?q+"&"+st:q+"?"+st,nt?q+"#"+nt:q}(H,c));var M=new Yf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(MY,{endpoint:H,headers:y,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{S(K,q)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function aa(t){return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aa(t)}function ptt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ve(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};si(this,t),this.init(e,n)}return li(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||htt,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r1?n-1:0),o=1;o-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function uO(t,e,n){var r=LD(t,e,Object);r.obj[r.k]=n}function yv(t,e){var n=LD(t,e),r=n.obj,o=n.k;if(r)return r[o]}function sO(t,e,n){var r=yv(t,n);return r!==void 0?r:yv(e,n)}function aI(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):aI(t[r],e[r],n):t[r]=e[r]);return t}function js(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var vtt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ytt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return vtt[e]}):t}var oy=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function uI(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;ii+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?uI(s,l,n):void 0}o=o[r[i]]}return o}}var mtt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return si(this,e),r=Jd(this,Gl(e).call(this)),oy&&xa.call(Qu(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return ry(e,xa),li(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=yv(this.data,s);return l||!u||typeof o!="string"?l:uI(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),uO(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=yv(this.data,s)||{};i?aI(l,o,a):l=Ve({},l,o),uO(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ve({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),sI={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},lO={},cO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return si(this,e),r=Jd(this,Gl(e).call(this)),oy&&xa.call(Qu(r)),gtt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Qu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Qo.create("translator"),r}return ry(e,xa),li(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(aa(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var y=this.resolve(n,r),g=y&&y.res,v=y&&y.usedKey||s,m=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(D&&g&&S&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,Ve({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},T=C?m:v;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var H="".concat(T).concat(a).concat(R);O[R]=this.translate(H,Ve({},r,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=g[R])}g=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var M=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=e.hasDefaultValue(r),q=U?this.pluralResolver.getSuffix(f,r.count):"",nt=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(g)&&W&&(M=!0,g=nt),this.isValidLookup(g)||(K=!0,g=s);var lt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&K?void 0:g,at=W&&nt!==g&&this.options.updateMissing;if(K||M||at){if(this.logger.log(at?"updateKey":"missingKey",f,c,s,at?nt:g),a){var k=this.resolve(s,Ve({},r,{keySeparator:!1}));k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var x=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var $=0;$1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var y=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(m){s.isValidLookup(r)||(u=m,!lO["".concat(v[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(lO["".concat(v[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=p,S=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,p,h,m,l):(y&&(b=s.pluralResolver.getSuffix(h,l.count)),y&&g&&S.push(D+b),g&&S.push(D+="".concat(s.options.contextSeparator).concat(l.context)),y&&S.push(D+=b));w=S.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,m,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function jb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var btt=function(){function t(e){si(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qo.create("languageUtils")}return li(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=jb(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=jb(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=jb(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),wtt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ett={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};function Dtt(){var t={};return wtt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Ett[e.fc]}})}),t}var Ctt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,t),this.languageUtils=e,this.options=n,this.logger=Qo.create("pluralResolver"),this.rules=Dtt()}return li(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),Stt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};si(this,t),this.logger=Qo.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return li(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:ytt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?js(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?js(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?js(n.nestingPrefix):n.nestingPrefixEscaped||js("$t("),this.nestingSuffix=n.nestingSuffix?js(n.nestingSuffix):n.nestingSuffixEscaped||js(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=sO(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,Ve({},o,n,{interpolationkey:g})):v}var m=g.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(sO(n,l,h),b,r,Ve({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return y.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(e,i,o);a=typeof v=="string"?v:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=aO(a));var m=g.safeValue(a);if(e=e.replace(i[0],m),d?(g.regex.lastIndex+=m.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ve({},a);function s(p,d){var y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;var g=p.split(new RegExp("".concat(y,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),d&&(u=Ve({},d,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(y).concat(v)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=aO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,Ve({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),xtt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return si(this,e),i=Jd(this,Gl(e).call(this)),oy&&xa.call(Qu(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Qo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return ry(e,xa),li(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var y="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,p=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var y=LD(c,f,Object),g=y.obj,v=y.k;g[v]=g[v]||[],g[v].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,Ve({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function Att(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(aa(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),aa(t[2])==="object"||aa(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function fO(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function e0(){}var Ott=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(si(this,e),n=Jd(this,Gl(e).call(this)),oy&&xa.call(Qu(n)),n.options=fO(r),n.services={},n.logger=Qo,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Jd(n,Qu(n));setTimeout(function(){n.init(r,o)},0)}return n}return ry(e,xa),li(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Ve({},Att(),this.options,fO(r)),this.format=this.options.interpolation.format,o||(o=e0),!this.options.isClone){this.modules.logger?Qo.init(i(this.modules.logger),this.options):Qo.init(null,this.options);var a=new btt(this.options);this.store=new mtt(this.options.resources,this.options);var u=this.services;u.logger=Qo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Ctt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Stt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new xtt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v1?y-1:0),v=1;v0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments),n}});var f=rf(),p=function(){var d=function(y,g){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(g),o(y,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e0,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=rf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=e0),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&sI.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=rf();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(aa(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=rf();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=rf();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e0,i=Ve({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ve({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new cO(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;fh;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:hO(w,p)}else switch(t){case 4:return!1;case 7:hO(w,p)}return i?-1:r||o?o:w}},Ntt={forEach:Oi(0),map:Oi(1),filter:Oi(2),some:Oi(3),every:Oi(4),find:Oi(5),findIndex:Oi(6),filterReject:Oi(7)}.forEach,Itt=function(t,e){var n=[][t];return!!n&&cn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),Nb=Itt?[].forEach:function(t){return Ntt(this,t,arguments.length>1?arguments[1]:void 0)},fI=function(t){if(t&&t.forEach!==Nb)try{jn(t,"forEach",Nb)}catch{t.forEach=Nb}};for(var Ib in Lg)Lg[Ib]&&fI(Et[Ib]&&Et[Ib].prototype);fI(HP),qn("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),qn("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Ltt={type:"paragraph",renderElem:function(t,e,n){return bt("p",null,e)}},bv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iy(t){var e={exports:{}};return t(e,e.exports),e.exports}var ki,ng,n0=function(t){return t&&t.Math==Math&&t},xt=n0(typeof globalThis=="object"&&globalThis)||n0(typeof window=="object"&&window)||n0(typeof self=="object"&&self)||n0(typeof bv=="object"&&bv)||function(){return this}()||Function("return this")(),Ce=function(t){try{return!!t()}catch{return!0}},eo=!Ce(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),af=Function.prototype.call,Te=af.bind?af.bind(af):function(){return af.apply(af,arguments)},gO={}.propertyIsEnumerable,vO=Object.getOwnPropertyDescriptor,Rtt=vO&&!gO.call({1:2},1)?function(t){var e=vO(this,t);return!!e&&e.enumerable}:gO,dI={f:Rtt},MD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},pI=Function.prototype,ZE=pI.bind,JE=pI.call,Mtt=ZE&&ZE.bind(JE),yt=ZE?function(t){return t&&Mtt(JE,t)}:function(t){return t&&function(){return JE.apply(t,arguments)}},ztt=yt({}.toString),$tt=yt("".slice),ua=function(t){return $tt(ztt(t),8,-1)},Lb=xt.Object,Htt=yt("".split),ay=Ce(function(){return!Lb("z").propertyIsEnumerable(0)})?function(t){return ua(t)=="String"?Htt(t,""):Lb(t)}:Lb,Vtt=xt.TypeError,jr=function(t){if(t==null)throw Vtt("Can't call method on "+t);return t},pc=function(t){return ay(jr(t))},hn=function(t){return typeof t=="function"},Cr=function(t){return typeof t=="object"?t!==null:hn(t)},Utt=function(t){return hn(t)?t:void 0},Gp=function(t,e){return arguments.length<2?Utt(xt[t]):xt[t]&&xt[t][e]},hI=yt({}.isPrototypeOf),Rb=Gp("navigator","userAgent")||"",yO=xt.process,mO=xt.Deno,bO=yO&&yO.versions||mO&&mO.version,wO=bO&&bO.v8;wO&&(ng=(ki=wO.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!ng&&Rb&&(!(ki=Rb.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=Rb.match(/Chrome\/(\d+)/))&&(ng=+ki[1]);var QE=ng,t6=!!Object.getOwnPropertySymbols&&!Ce(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&QE&&QE<41}),zD=t6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Wtt=xt.Object,Mb=zD?function(t){return typeof t=="symbol"}:function(t){var e=Gp("Symbol");return hn(e)&&hI(e.prototype,Wtt(t))},Gtt=xt.String,gI=function(t){try{return Gtt(t)}catch{return"Object"}},qtt=xt.TypeError,vI=function(t){if(hn(t))return t;throw qtt(gI(t)+" is not a function")},uy=function(t,e){var n=t[e];return n==null?void 0:vI(n)},Ktt=xt.TypeError,Ytt=Object.defineProperty,$D=function(t,e){try{Ytt(xt,t,{value:e,configurable:!0,writable:!0})}catch{xt[t]=e}return e},sa=xt["__core-js_shared__"]||$D("__core-js_shared__",{}),HD=iy(function(t){(t.exports=function(e,n){return sa[e]||(sa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Xtt=xt.Object,qp=function(t){return Xtt(jr(t))},Ztt=yt({}.hasOwnProperty),Ar=Object.hasOwn||function(t,e){return Ztt(qp(t),e)},Jtt=0,Qtt=Math.random(),tet=yt(1 .toString),yI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+tet(++Jtt+Qtt,36)},uf=HD("wks"),Tu=xt.Symbol,EO=Tu&&Tu.for,eet=zD?Tu:Tu&&Tu.withoutSetter||yI,dr=function(t){if(!Ar(uf,t)||!t6&&typeof uf[t]!="string"){var e="Symbol."+t;t6&&Ar(Tu,t)?uf[t]=Tu[t]:uf[t]=zD&&EO?EO(e):eet(e)}return uf[t]},net=xt.TypeError,ret=dr("toPrimitive"),VD=function(t){var e=function(n,r){if(!Cr(n)||Mb(n))return n;var o,i=uy(n,ret);if(i){if(r===void 0&&(r="default"),o=Te(i,n,r),!Cr(o)||Mb(o))return o;throw net("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&hn(s=a.toString)&&!Cr(l=Te(s,a))||hn(s=a.valueOf)&&!Cr(l=Te(s,a))||u!=="string"&&hn(s=a.toString)&&!Cr(l=Te(s,a)))return l;throw Ktt("Can't convert object to primitive value")}(n,r)}(t,"string");return Mb(e)?e:e+""},e6=xt.document,oet=Cr(e6)&&Cr(e6.createElement),UD=function(t){return oet?e6.createElement(t):{}},mI=!eo&&!Ce(function(){return Object.defineProperty(UD("div"),"a",{get:function(){return 7}}).a!=7}),DO=Object.getOwnPropertyDescriptor,WD={f:eo?DO:function(t,e){if(t=pc(t),e=VD(e),mI)try{return DO(t,e)}catch{}if(Ar(t,e))return MD(!Te(dI.f,t,e),t[e])}},iet=xt.String,aet=xt.TypeError,rr=function(t){if(Cr(t))return t;throw aet(iet(t)+" is not an object")},uet=xt.TypeError,CO=Object.defineProperty,hc={f:eo?CO:function(t,e,n){if(rr(t),e=VD(e),rr(n),mI)try{return CO(t,e,n)}catch{}if("get"in n||"set"in n)throw uet("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ql=eo?function(t,e,n){return hc.f(t,e,MD(1,n))}:function(t,e,n){return t[e]=n,t},set=yt(Function.toString);hn(sa.inspectSource)||(sa.inspectSource=function(t){return set(t)});var wv,hd,Ev,GD=sa.inspectSource,SO=xt.WeakMap,cet=hn(SO)&&/native code/.test(GD(SO)),xO=HD("keys"),bI=function(t){return xO[t]||(xO[t]=yI(t))},qD={},n6=xt.TypeError,fet=xt.WeakMap;if(cet||sa.state){var Za=sa.state||(sa.state=new fet),det=yt(Za.get),AO=yt(Za.has),pet=yt(Za.set);wv=function(t,e){if(AO(Za,t))throw new n6("Object already initialized");return e.facade=t,pet(Za,t,e),e},hd=function(t){return det(Za,t)||{}},Ev=function(t){return AO(Za,t)}}else{var Ns=bI("state");qD[Ns]=!0,wv=function(t,e){if(Ar(t,Ns))throw new n6("Object already initialized");return e.facade=t,ql(t,Ns,e),e},hd=function(t){return Ar(t,Ns)?t[Ns]:{}},Ev=function(t){return Ar(t,Ns)}}var r6={set:wv,get:hd,has:Ev,enforce:function(t){return Ev(t)?hd(t):wv(t,{})},getterFor:function(t){return function(e){var n;if(!Cr(e)||(n=hd(e)).type!==t)throw n6("Incompatible receiver, "+t+" required");return n}}},wI=Function.prototype,het=eo&&Object.getOwnPropertyDescriptor,zb=Ar(wI,"name"),sy={EXISTS:zb,PROPER:zb&&function(){}.name==="something",CONFIGURABLE:zb&&(!eo||eo&&het(wI,"name").configurable)},Qd=iy(function(t){var e=sy.CONFIGURABLE,n=r6.get,r=r6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;hn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ar(u,"name")||e&&u.name!==d)&&ql(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==xt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ql(i,a,u)):f?i[a]=u:$D(a,u)})(Function.prototype,"toString",function(){return hn(this)&&n(this).source||GD(this)})}),get=Math.ceil,vet=Math.floor,gc=function(t){var e=+t;return e!=e||e===0?0:(e>0?vet:get)(e)},yet=Math.max,met=Math.min,tp=function(t,e){var n=gc(t);return n<0?yet(n+e,0):met(n,e)},bet=Math.min,Kp=function(t){return t>0?bet(gc(t),9007199254740991):0},ly=function(t){return Kp(t.length)},OO=function(t){return function(e,n,r){var o,i=pc(e),a=ly(i),u=tp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},EI={includes:OO(!0),indexOf:OO(!1)},wet=EI.indexOf,kO=yt([].push),DI=function(t,e){var n,r=pc(t),o=0,i=[];for(n in r)!Ar(qD,n)&&Ar(r,n)&&kO(i,n);for(;e.length>o;)Ar(r,n=e[o++])&&(~wet(i,n)||kO(i,n));return i},Dv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Eet=Dv.concat("length","prototype"),Det={f:Object.getOwnPropertyNames||function(t){return DI(t,Eet)}},CI={f:Object.getOwnPropertySymbols},Cet=yt([].concat),xet=Gp("Reflect","ownKeys")||function(t){var e=Det.f(rr(t)),n=CI.f;return n?Cet(e,n(t)):e},Aet=function(t,e){for(var n=xet(e),r=hc.f,o=WD.f,i=0;ih;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:TO(w,p)}else switch(t){case 4:return!1;case 7:TO(w,p)}return i?-1:r||o?o:w}},cy={forEach:Bi(0),map:Bi(1),filter:Bi(2),some:Bi(3),every:Bi(4),find:Bi(5),findIndex:Bi(6),filterReject:Bi(7)},Het=dr("species"),JD=function(t){return QE>=51||!Ce(function(){var e=[];return(e.constructor={})[Het]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Vet=cy.filter;tn({target:"Array",proto:!0,forced:!JD("filter")},{filter:function(t){return Vet(this,t,arguments.length>1?arguments[1]:void 0)}});var Uet=KD?{}.toString:function(){return"[object "+YD(this)+"]"};KD||Qd(Object.prototype,"toString",Uet,{unsafe:!0});var r0,Wet=xt.String,Ee=function(t){if(YD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Wet(t)},OI=function(){var t=rr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},QD=xt.RegExp,o6=Ce(function(){var t=QD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Get=o6||Ce(function(){return!QD("a","y").sticky}),kI={BROKEN_CARET:o6||Ce(function(){var t=QD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Get,UNSUPPORTED_Y:o6},ml=Object.keys||function(t){return DI(t,Dv)},qet=eo?Object.defineProperties:function(t,e){rr(t);for(var n,r=pc(e),o=ml(e),i=o.length,a=0;i>a;)hc.f(t,n=o[a++],r[n]);return t},Ket=Gp("document","documentElement"),BI=bI("IE_PROTO"),$b=function(){},FI=function(t){return""},_O=function(t){t.write(FI("")),t.close();var e=t.parentWindow.Object;return t=null,e},rg=function(){try{r0=new ActiveXObject("htmlfile")}catch{}var t,e;rg=typeof document<"u"?document.domain&&r0?_O(r0):((e=UD("iframe")).style.display="none",Ket.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(FI("document.F=Object")),t.close(),t.F):_O(r0);for(var n=Dv.length;n--;)delete rg.prototype[Dv[n]];return rg()};qD[BI]=!0;var PO,Hb,TI=Object.create||function(t,e){var n;return t!==null?($b.prototype=rr(t),n=new $b,$b.prototype=null,n[BI]=t):n=rg(),e===void 0?n:qet(n,e)},Yet=xt.RegExp,Xet=Ce(function(){var t=Yet(".","s");return!(t.dotAll&&t.exec(` +`)&&t.flags==="s")}),Zet=xt.RegExp,Jet=Ce(function(){var t=Zet("(?
    b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),Qet=r6.get,tnt=HD("native-string-replace",String.prototype.replace),Sv=RegExp.prototype.exec,i6=Sv,ent=yt("".charAt),nnt=yt("".indexOf),rnt=yt("".replace),Vb=yt("".slice),Ub=(Hb=/b*/g,Te(Sv,PO=/a/,"a"),Te(Sv,Hb,"a"),PO.lastIndex!==0||Hb.lastIndex!==0),jO=kI.BROKEN_CARET,Wb=/()??/.exec("")[1]!==void 0;(Ub||Wb||jO||Xet||Jet)&&(i6=function(t){var e,n,r,o,i,a,u,s=this,l=Qet(s),c=Ee(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Te(i6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=jO&&s.sticky,y=Te(OI,s),g=s.source,v=0,m=c;if(d&&(y=rnt(y,"y",""),nnt(y,"g")===-1&&(y+="g"),m=Vb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&ent(c,s.lastIndex-1)!==` +`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Wb&&(n=new RegExp("^"+g+"$(?!\\s)",y)),Ub&&(r=s.lastIndex),o=Te(Sv,d?n:s,m),d?o?(o.input=Vb(o.input,v),o[0]=Vb(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ub&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Wb&&o&&o.length>1&&Te(tnt,o[0],n,function(){for(i=1;i=u?t?"":void 0:(r=LO(i,a))<55296||r>56319||a+1===u||(o=LO(i,a+1))<56320||o>57343?t?ant(i,a):r:t?unt(i,a,a+2):o-56320+(r-55296<<10)+65536}},lnt=snt(!0),nC=function(t,e,n){return e+(n?lnt(t,e).length:1)},cnt=Math.floor,qb=yt("".charAt),fnt=yt("".replace),Kb=yt("".slice),dnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pnt=/\$([$&'`]|\d{1,2})/g,hnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=pnt;return o!==void 0&&(o=qp(o),s=dnt),fnt(i,s,function(l,c){var f;switch(qb(c,0)){case"$":return"$";case"&":return t;case"`":return Kb(e,0,n);case"'":return Kb(e,a);case"<":f=o[Kb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=cnt(p/10);return d===0?l:d<=u?r[d-1]===void 0?qb(c,1):r[d-1]+qb(c,1):l}f=r[p-1]}return f===void 0?"":f})},gnt=xt.TypeError,np=function(t,e){var n=t.exec;if(hn(n)){var r=Te(n,t,e);return r!==null&&rr(r),r}if(ua(t)==="RegExp")return Te(ep,t,e);throw gnt("RegExp#exec called on incompatible receiver")},a6=dr("replace"),vnt=Math.max,ynt=Math.min,mnt=yt([].concat),Yb=yt([].push),RO=yt("".indexOf),MO=yt("".slice),bnt="a".replace(/./,"$0")==="$0",zO=!!/./[a6]&&/./[a6]("a","$0")==="";eC("replace",function(t,e,n){var r=zO?"$":"$0";return[function(o,i){var a=jr(this),u=o==null?void 0:uy(o,a6);return u?Te(u,o,a,i):Te(e,Ee(a),o,i)},function(o,i){var a=rr(this),u=Ee(o);if(typeof i=="string"&&RO(i,r)===-1&&RO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=hn(i);l||(i=Ee(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=np(a,u);if(d===null||(Yb(p,d),!c))break;Ee(d[0])===""&&(a.lastIndex=nC(u,Kp(a.lastIndex),f))}for(var y,g="",v=0,m=0;m=v&&(g+=MO(u,v,b)+O,v=b+h.length)}return g+MO(u,v)}]},!!Ce(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!bnt||zO);var u6=dr("unscopables"),s6=Array.prototype;s6[u6]==null&&hc.f(s6,u6,{configurable:!0,value:TI(null)});var PI=function(t){s6[u6][t]=!0},wnt=cy.find,$O=!0;"find"in[]&&Array(1).find(function(){$O=!1}),tn({target:"Array",proto:!0,forced:$O},{find:function(t){return wnt(this,t,arguments.length>1?arguments[1]:void 0)}}),PI("find");var Ent=dr("match"),jI=function(t){var e;return Cr(t)&&((e=t[Ent])!==void 0?!!e:ua(t)=="RegExp")},Dnt=xt.TypeError,Cnt=dr("species"),NI=function(t,e,n){var r=VD(e);r in t?hc.f(t,r,MD(0,n)):t[r]=n},Snt=xt.Array,xnt=Math.max,HO=function(t,e,n){for(var r=ly(t),o=tp(e,r),i=tp(n===void 0?r:n,r),a=Snt(xnt(i-o,0)),u=0;o1||"".split(/.?/).length?function(o,i){var a=Ee(jr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!jI(o))return Te(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Te(ep,y,a))&&!((l=y.lastIndex)>d&&(Ls(f,lf(a,d,s.index)),s.length>1&&s.index=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&Ont(y,"")||Ls(f,""):Ls(f,lf(a,d)),f.length>u?HO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Te(e,this,o,i)}:e,[function(o,i){var a=jr(this),u=o==null?void 0:uy(o,t);return u?Te(u,o,a,i):Te(r,Ee(a),o,i)},function(o,i){var a=rr(this),u=Ee(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,C=rr(w).constructor;return C===void 0||(S=rr(C)[Cnt])==null?D:function(O){if(ZD(O))return O;throw Dnt(gI(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Is?"g":"y"),p=new l(Is?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return np(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g"+t+"").children().filter(function(e){return e.tagName!=="BR"}).length===0}function vc(t){return t.length===0?"":t[0].outerHTML}function yc(t){return t.length?t[0].tagName.toLowerCase():""}function Jr(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function UO(t){var e=Yt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ct.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ot.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var jnt={renderElems:[Ltt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"


    ":"

    "+e+"

    "}}],parseElemsHtml:[Pnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){UO(r)||e(o)},r.deleteForward=function(o){UO(r)||n(o)},r}},Nnt=/"/g,Int=yt("".replace),Qf=function(t,e,n,r){var o=Ee(jr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Int(Ee(r),Nnt,""")+'"'),i+">"+o+""},td=function(t){return Ce(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function Zb(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n=""+n+""),r.code&&(n=""+n+""),i&&(n=""+n+""),a&&(n=""+n+""),r.through&&(n=""+n+""),r.sub&&(n=""+n+""),r.sup&&(n=""+n+""),n}function Ja(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tn({target:"String",proto:!0,forced:td("bold")},{bold:function(){return Qf(this,"b","","")}}),tn({target:"String",proto:!0,forced:td("italics")},{italics:function(){return Qf(this,"i","","")}}),tn({target:"String",proto:!0,forced:td("sub")},{sub:function(){return Qf(this,"sub","","")}}),tn({target:"String",proto:!0,forced:td("sup")},{sup:function(){return Qf(this,"sup","","")}});var WO={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Jb=UD("span").classList,GO=Jb&&Jb.constructor&&Jb.constructor.prototype,Lnt=GO===Object.prototype?void 0:GO,RI=function(t,e){var n=[][t];return!!n&&Ce(function(){n.call(null,e||function(){throw 1},1)})},Rnt=cy.forEach,Qb=RI("forEach")?[].forEach:function(t){return Rnt(this,t,arguments.length>1?arguments[1]:void 0)},MI=function(t){if(t&&t.forEach!==Qb)try{ql(t,"forEach",Qb)}catch{t.forEach=Qb}};for(var t2 in WO)WO[t2]&&MI(xt[t2]&&xt[t2].prototype);function zI(t,e){return t.selection==null||!!Yt(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function Mnt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}MI(Lnt),tn({target:"Object",stat:!0,forced:Ce(function(){ml(1)})},{keys:function(t){return ml(qp(t))}});var hs=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!Yt(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return zI(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),znt='',$nt='',Hnt='',Vnt='',Unt='',$I='',HI='',Wnt='',Gnt='',qnt='',Knt='',Ynt='',Xnt='',Znt='',Jnt='',Qnt='',trt='',ert='',nrt='',rrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=znt,n.hotkey="mod+b",n}return be(e,t),e}(hs),ort=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=Unt,n.hotkey="mod+e",n}return be(e,t),e}(hs),irt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=Hnt,n.hotkey="mod+i",n}return be(e,t),e}(hs),art=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=Vnt,n.hotkey="mod+shift+x",n}return be(e,t),e}(hs),urt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=$nt,n.hotkey="mod+u",n}return be(e,t),e}(hs),srt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=nrt,n.hotkey="",n}return be(e,t),e}(hs),lrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=ert,n.hotkey="",n}return be(e,t),e}(hs),crt=function(){function t(){this.title=tt("textStyle.clear"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return zI(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return ot.isText(s)},universal:!0});try{for(var a=LI(i),u=a.next();!u.done;u=a.next())Mnt(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),frt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=bt("strong",null,c)),a&&(c=bt("code",null,c)),o&&(c=bt("em",null,c)),i&&(c=bt("u",null,c)),u&&(c=bt("s",null,c)),s&&(c=bt("sub",null,c)),l&&(c=bt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new rrt}},{key:"underline",factory:function(){return new urt}},{key:"italic",factory:function(){return new irt}},{key:"through",factory:function(){return new art}},{key:"code",factory:function(){return new ort}},{key:"sub",factory:function(){return new srt}},{key:"sup",factory:function(){return new lrt}},{key:"clearStyle",factory:function(){return new crt}}],styleToHtml:function(t,e){if(!ot.isText(t))return e;if(rC(e))return Zb(t,e);var n=B(e);if(yc(n)==="br")return Zb(t,"
    ");var r=n.html();return r=Zb(t,r),n.html(r),vc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e;return Ja(r,"b,strong")&&(o.bold=!0),Ja(r,"i,em")&&(o.italic=!0),Ja(r,"u")&&(o.underline=!0),Ja(r,"s,strike")&&(o.through=!0),Ja(r,"sub")&&(o.sub=!0),Ja(r,"sup")&&(o.sup=!0),Ja(r,"code")&&(o.code=!0),o}};function Xp(t){return function(e,n,r){return bt("h"+t,null,n)}}var drt={type:"header1",renderElem:Xp(1)},prt={type:"header2",renderElem:Xp(2)},hrt={type:"header3",renderElem:Xp(3)},grt={type:"header4",renderElem:Xp(4)},vrt={type:"header5",renderElem:Xp(5)},yrt=sy.PROPER,f6=RegExp.prototype,VI=f6.toString,mrt=yt(OI),brt=Ce(function(){return VI.call({source:"a",flags:"b"})!="/a/b"}),wrt=yrt&&VI.name!="toString";(brt||wrt)&&Qd(RegExp.prototype,"toString",function(){var t=rr(this),e=Ee(t.source),n=t.flags;return"/"+e+"/"+Ee(n===void 0&&hI(f6,t)&&!("flags"in f6)?mrt(t):n)},{unsafe:!0});var e2,Ert=xt.TypeError,UI=function(t){if(jI(t))throw Ert("The method doesn't accept regular expressions");return t},Drt=dr("match"),WI=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Drt]=!1,"/./"[t](e)}catch{}}return!1},Crt=WD.f,qO=yt("".startsWith),Srt=yt("".slice),xrt=Math.min,KO=WI("startsWith");function GI(t){var e=Yt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Yt(n,1)[0];return A.getNodeType(r)}function qI(t){return t.selection==null||!Yt(E.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function KI(t,e){e&&N.setNodes(t,{type:e})}tn({target:"String",proto:!0,forced:!(!KO&&(e2=Crt(String.prototype,"startsWith"),e2&&!e2.writable)||KO)},{startsWith:function(t){var e=Ee(jr(this));UI(t);var n=Kp(xrt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ee(t);return qO?qO(e,r,n):Srt(e,n,n+r.length)===r}});var Art=function(){function t(){this.title=tt("header.title"),this.iconSvg='',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:tt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return GI(e)},t.prototype.isDisabled=function(e){return qI(e)},t.prototype.exec=function(e,n){KI(e,n.toString())},t}(),Zp=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return GI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return qI(e)},t.prototype.exec=function(e,n){var r=this.type;KI(e,n===r?"paragraph":r)},t}(),Ort=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return be(e,t),e}(Zp),krt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return be(e,t),e}(Zp),Brt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return be(e,t),e}(Zp),Frt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return be(e,t),e}(Zp),Trt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return be(e,t),e}(Zp),_rt={key:"headerSelect",factory:function(){return new Art}},Prt={key:"header1",factory:function(){return new Ort}},jrt={key:"header2",factory:function(){return new krt}},Nrt={key:"header3",factory:function(){return new Brt}},Irt={key:"header4",factory:function(){return new Frt}},Lrt={key:"header5",factory:function(){return new Trt}};function cf(t){return function(e,n){return""+n+""}}function ff(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!ot.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Rrt={renderElems:[drt,prt,hrt,grt,vrt],elemsToHtml:[{type:"header1",elemToHtml:cf(1)},{type:"header2",elemToHtml:cf(2)},{type:"header3",elemToHtml:cf(3)},{type:"header4",elemToHtml:cf(4)},{type:"header5",elemToHtml:cf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:ff(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:ff(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:ff(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:ff(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:ff(5)}],menus:[_rt,Prt,jrt,Nrt,Irt,Lrt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Yt(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Rs=Object.assign,YO=Object.defineProperty,Mrt=yt([].concat),XO=!Rs||Ce(function(){if(eo&&Rs({b:1},Rs(YO({},"a",{enumerable:!0,get:function(){YO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Rs({},t)[n]!=7||ml(Rs({},e)).join("")!=r})?function(t,e){for(var n=qp(t),r=arguments.length,o=1,i=CI.f,a=dI.f;r>o;)for(var u,s=ay(arguments[o++]),l=i?Mrt(ml(s),i(s)):ml(s),c=l.length,f=0;c>f;)u=l[f++],eo&&!Te(a,s,u)||(n[u]=s[u]);return n}:Rs;function ts(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}tn({target:"Object",stat:!0,forced:Object.assign!==XO},{assign:XO});var zrt={selector:"font",preParseHtml:function(t){var e=B(t);if(yc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},YI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=B('
      ');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?E.removeMark(e,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=B('
      ');c.css("background-color",l);var f=B('
    • ');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=tt("color.default")),n==="bgColor"&&(u=tt("color.clear"));var s=B(` +
    • + + `+u+` +
    • + `);return o.prepend(s),o[0]},t}(),$rt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=Wnt,n.mark="color",n}return be(e,t),e}(YI),Hrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=Gnt,n.mark="bgColor",n}return be(e,t),e}(YI),ZO=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Vrt={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&ts(i,{color:r}),o&&ts(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((rC(e)||yc(n=B(e))!=="span")&&(n=B(""+e+"")),o&&n.css("color",o),i&&n.css("background-color",i),vc(n)):e},preParseHtml:[zrt],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=Jr(r,"color");i&&(o.color=i);var a=Jr(r,"background-color");return a||(a=Jr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new $rt},config:{colors:ZO}},{key:"bgColor",factory:function(){return new Hrt},config:{colors:ZO}}]},Urt=/^(?:\w+:)?\/\/(\S+)$/,Wrt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Grt=/^[^\s\.]+\.\S{2,}$/,qrt=EI.includes;function fy(t){return t===void 0&&(t="r"),t+"-"+yj()}function oC(t){return t.replace(//g,">")}function XI(t,e,n,r){return La(this,void 0,void 0,function(){var o,i;return Ra(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function ZI(t,e,n){return La(this,void 0,void 0,function(){var r;return Ra(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function iC(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function n2(t,e){return{type:"link",url:oC(t),children:e?[{text:e}]:[]}}function JI(t,e,n){return La(this,void 0,void 0,function(){var r,o,i;return Ra(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),iC(t)?[2]:[4,XI("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,ZI("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=n2(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=n2(r,e),N.insertNodes(t,i)):(i=n2(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}tn({target:"Array",proto:!0},{includes:function(t){return qrt(this,t,arguments.length>1?arguments[1]:void 0)}}),PI("includes");var Krt={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return bt("a",{href:o,target:i===void 0?"_blank":i},e)}},Yrt={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function r2(){return fy("w-e-insert-link")}var Xrt=function(){function t(){this.title=tt("link.insert"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=r2(),this.urlInputId=r2(),this.buttonId=r2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return iC(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Yt(nr(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=Yt(nr(tt("link.url"),i),2),f=c[0],p=B(c[1]),d=Yt(dc(a,tt("common.ok")),1)[0];if(this.$content==null){var y=B("
      ");y.on("click","#"+a,function(m){m.preventDefault();var h=y.find("#"+o).val(),b=y.find("#"+i).val();JI(e,h,b),e.hidePanelOrModal()}),this.$content=y}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||L.isCollapsed(n))l.val("");else{var v=E.string(e,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function JO(){return fy("w-e-update-link")}var Zrt=function(){function t(){this.title=tt("link.edit"),this.iconSvg=$I,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=JO(),this.buttonId=JO()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Yt(nr(tt("link.url"),n),2),i=o[0],a=B(o[1]),u=Yt(dc(r,tt("common.ok")),1)[0];if(this.$content==null){var s=B("
      ");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?Q.string(p):"",y=s.find("#"+n).val();(function(g,v,m){La(this,void 0,void 0,function(){var h,b;return Ra(this,function(w){switch(w.label){case 0:return m?[4,XI("editLink",g,v,m)]:[2];case 1:return w.sent()?[4,ZI("editLink",g,m)]:[2];case 2:return h=w.sent(),b={url:oC(h)},N.setNodes(g,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,d,y),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),Jrt=function(){function t(){this.title=tt("link.unLink"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),Qrt=function(){function t(){this.title=tt("link.view"),this.iconSvg=HI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),QO={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},tot={renderElems:[Krt],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'
      '+e+""}}],parseElemsHtml:[Yrt],menus:[{key:"insertLink",factory:function(){return new Xrt},config:QO},{key:"editLink",factory:function(){return new Zrt},config:QO},{key:"unLink",factory:function(){return new Jrt}},{key:"viewLink",factory:function(){return new Qrt}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(Urt);if(!c)return!1;var f=c[1];return!(!f||!Wrt.test(f)&&!Grt.test(f))}(a)){if(!iC(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);JI(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},eot=yt(1 .valueOf),not=xt.RangeError,rot=xt.RangeError,QI=xt.String,tL=Math.floor,d6=yt(function(t){var e=Ee(jr(this)),n="",r=gc(t);if(r<0||r==1/0)throw not("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),tk=yt("".slice),df=yt(1 .toFixed),cl=function(t,e,n){return e===0?n:e%2==1?cl(t,e-1,n*t):cl(t*t,e/2,n)},Ms=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=tL(o/1e7)},o2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=tL(r/e),r=r%e*1e7},ek=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=QI(t[e]);n=n===""?r:n+d6("0",7-r.length)+r}return n};function nk(t,e){return"w-e-image-container-"+A.findKey(t,e).id}tn({target:"Number",proto:!0,forced:Ce(function(){return df(8e-5,3)!=="0.000"||df(.9,0)!=="1"||df(1.255,2)!=="1.25"||df(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ce(function(){df({})})},{toFixed:function(t){var e,n,r,o,i=eot(this),a=gc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw rot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return QI(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*cl(2,69,1))-69)<0?i*cl(2,-e,1):i/cl(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Ms(u,0,n),r=a;r>=7;)Ms(u,1e7,0),r-=7;for(Ms(u,cl(10,r,1),0),r=e-1;r>=23;)o2(u,1<<23),r-=23;o2(u,1<0?s+((o=l.length)<=a?"0."+d6("0",a-o)+l:tk(l,0,o-a)+"."+tk(l,o-a)):s+l}});var oot={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,y=d===void 0?"":d,g=A.isNodeSelected(n,t),v={};p&&(v.width="100%"),y&&(v.height="100%");var m=bt("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,D,S){var C=B("body"),O=nk(b,w),T=S.width,R=S.height,H=0,M=0,K=0,U=!1,W=null;function q(at){W=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),H=at;var k=W.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),K=k.height(),C.on("mousemove",nt),C.on("mouseup",lt);var x=A.getHoverbar(b);x&&x.hideAndClean()}var nt=Ku(function(at){at.preventDefault();var k=at.clientX,x=M+(U?H-k:k-H),P=K*(x/M);W!=null&&(x<=15||P<=15||(W.css("width",x+"px"),W.css("height",P+"px")))},100);function lt(at){if(C.off("mousemove",nt),W!=null){var k=W.width().toFixed(2),x=W.height().toFixed(2),P={style:Aa(Aa({},w.style),{width:k+"px",height:x+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),C.off("mouseup",lt)}}var st={};return T&&(st.width=T),R&&(st.height=R),bt("div",{id:O,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(at){var k=B(at.target);k.hasClass("w-e-image-dragger")&&(at.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(U=!0),q(at.clientX))}}},D,bt("div",{className:"w-e-image-dragger left-top"}),bt("div",{className:"w-e-image-dragger right-top"}),bt("div",{className:"w-e-image-dragger left-bottom"}),bt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,m,{width:p,height:y}):function(b,w,D,S){var C=S.width,O=S.height,T={};return C&&(T.width=C),O&&(T.height=O),bt("div",{id:nk(b,w),style:T,className:"w-e-image-container"},D)}(n,t,m,{width:p,height:y})}},iot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Jr(r,"width"),height:Jr(r,"height")},children:[{text:""}]}}};function eL(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),La(this,void 0,void 0,function(){var i,a;return Ra(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function nL(t,e,n){return La(this,void 0,void 0,function(){var r;return Ra(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function _u(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),La(this,void 0,void 0,function(){var o,i,a;return Ra(this,function(u){switch(u.label){case 0:return[4,eL("insertImage",t,e,n,r)];case 1:return u.sent()?[4,nL("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:oC(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),dy(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function dy(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Yt(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function o0(){return fy("w-e-insert-image")}var aot=function(){function t(){this.title=tt("image.netImage"),this.iconSvg='',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=o0(),this.altInputId=o0(),this.hrefInputId=o0(),this.buttonId=o0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return dy(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Yt(nr(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=Yt(nr(tt("image.desc"),i),2),p=f[0],d=B(f[1]),y=Yt(nr(tt("image.link"),a),2),g=y[0],v=B(y[1]),m=Yt(dc(u,tt("common.ok")),1)[0];if(this.$content==null){var h=B("
      ");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),S=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(e,D,S,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(m),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||_u(e,n,r,o))},t}(),uot=function(){function t(){this.title=tt("image.delete"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function i0(){return fy("w-e-edit-image")}var sot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=$I,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=i0(),this.altInputId=i0(),this.hrefInputId=i0(),this.buttonId=i0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Yt(nr(tt("image.src"),o),2),c=l[0],f=B(l[1]),p=Yt(nr(tt("image.desc"),i),2),d=p[0],y=B(p[1]),g=Yt(nr(tt("image.link"),a),2),v=g[0],m=B(g[1]),h=Yt(dc(u,tt("common.ok")),1)[0];if(this.$content==null){var b=B("
      ");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();n.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(v),w.append(h);var D=s,S=D.src,C=D.alt,O=C===void 0?"":C,T=D.href,R=T===void 0?"":T;return f.val(S),y.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),La(this,void 0,void 0,function(){var f,p,d,y,g,v;return Ra(this,function(m){switch(m.label){case 0:return[4,eL("editImage",a,u,s,l)];case 1:return m.sent()?[4,nL("editImage",a,u)]:[2];case 2:return f=m.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,y={src:f,alt:s,href:l,style:Aa(Aa({},d===void 0?{}:d),c)},N.setNodes(a,y,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(e,n,r,o,i))},t}(),lot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=HI,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),aC=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Aa(Aa({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),cot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return be(e,t),e}(aC),fot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return be(e,t),e}(aC),dot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return be(e,t),e}(aC),rk={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},pot={renderElems:[oot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,y="";return f&&(y+="width: "+f+";"),d&&(y+="height: "+d+";"),''+i+''}}],parseElemsHtml:[iot],menus:[{key:"insertImage",factory:function(){return new aot},config:rk},{key:"deleteImage",factory:function(){return new uot}},{key:"editImage",factory:function(){return new sot},config:rk},{key:"viewImageLink",factory:function(){return new lot}},{key:"imageWidth30",factory:function(){return new cot}},{key:"imageWidth50",factory:function(){return new fot}},{key:"imageWidth100",factory:function(){return new dot}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},hot={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=bt("div",{style:{margin:"5px 0"}},bt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},bt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),bt("span",null,e));return o}},got=function(){function t(){this.title=tt("todo.todo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),vot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!ot.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},yot={renderElems:[hot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'
      "+e+"
      "}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=B(t).find("li"),n=B('
      '),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[vot],menus:[{key:"todo",factory:function(){return new got}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},mot={type:"blockquote",renderElem:function(t,e,n){return bt("blockquote",null,e)}},bot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},wot=function(){function t(){this.title=tt("blockQuote.title"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Yt(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),Eot={key:"blockquote",factory:function(){return new wot}},Dot=yt([].slice),Cot=JD("slice"),Sot=dr("species"),i2=xt.Array,xot=Math.max;tn({target:"Array",proto:!0,forced:!Cot},{slice:function(t,e){var n,r,o,i=pc(this),a=ly(i),u=tp(t,a),s=tp(e===void 0?a:e,a);if(Cv(i)&&(n=i.constructor,(ZD(n)&&(n===i2||Cv(n.prototype))||Cr(n)&&(n=n[Sot])===null)&&(n=void 0),n===i2||n===void 0))return Dot(i,u,s);for(r=new(n===void 0?i2:n)(xot(s-u,0)),o=0;u"+e+""}}],parseElemsHtml:[bot],menus:[Eot],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=Yt(E.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=E.end(t,u);if(Bt.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===` +`)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(` +`)},r}},Oot=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=B('
        ');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("
      • "+i+"
      • ");r.append(a)}),r[0]},t}(),kot={menus:[{key:"emotion",factory:function(){return new Oot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Bot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Fot={selector:"font",preParseHtml:function(t){var e=B(t);if(yc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Bot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Tot=yt("".indexOf);tn({target:"String",proto:!0,forced:!WI("includes")},{includes:function(t){return!!~Tot(Ee(jr(this)),Ee(UI(t)),arguments.length>1?arguments[1]:void 0)}});var Fi,og,a0=function(t){return t&&t.Math==Math&&t},Ft=a0(typeof globalThis=="object"&&globalThis)||a0(typeof window=="object"&&window)||a0(typeof self=="object"&&self)||a0(typeof bv=="object"&&bv)||function(){return this}()||Function("return this")(),uC=Function.prototype,ok=uC.apply,_ot=uC.bind,ik=uC.call,rL=typeof Reflect=="object"&&Reflect.apply||(_ot?ik.bind(ok):function(){return ik.apply(ok,arguments)}),oL=Function.prototype,p6=oL.bind,h6=oL.call,Pot=p6&&p6.bind(h6),_e=p6?function(t){return t&&Pot(h6,t)}:function(t){return t&&function(){return h6.apply(t,arguments)}},gn=function(t){return typeof t=="function"},lr=function(t){try{return!!t()}catch{return!0}},Wn=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pf=Function.prototype.call,qr=pf.bind?pf.bind(pf):function(){return pf.apply(pf,arguments)},ak={}.propertyIsEnumerable,uk=Object.getOwnPropertyDescriptor,jot=uk&&!ak.call({1:2},1)?function(t){var e=uk(this,t);return!!e&&e.enumerable}:ak,sC={f:jot},es=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Not=_e({}.toString),Iot=_e("".slice),Pu=function(t){return Iot(Not(t),8,-1)},a2=Ft.Object,Lot=_e("".split),iL=lr(function(){return!a2("z").propertyIsEnumerable(0)})?function(t){return Pu(t)=="String"?Lot(t,""):a2(t)}:a2,Rot=Ft.TypeError,lC=function(t){if(t==null)throw Rot("Can't call method on "+t);return t},No=function(t){return iL(lC(t))},Sr=function(t){return typeof t=="object"?t!==null:gn(t)},br={},sk=function(t){return gn(t)?t:void 0},Jp=function(t,e){return arguments.length<2?sk(br[t])||sk(Ft[t]):br[t]&&br[t][e]||Ft[t]&&Ft[t][e]},aL=_e({}.isPrototypeOf),u2=Jp("navigator","userAgent")||"",lk=Ft.process,ck=Ft.Deno,fk=lk&&lk.versions||ck&&ck.version,dk=fk&&fk.v8;dk&&(og=(Fi=dk.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!og&&u2&&(!(Fi=u2.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=u2.match(/Chrome\/(\d+)/))&&(og=+Fi[1]);var Av=og,ho=!!Object.getOwnPropertySymbols&&!lr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Av&&Av<41}),cC=ho&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mot=Ft.Object,bl=cC?function(t){return typeof t=="symbol"}:function(t){var e=Jp("Symbol");return gn(e)&&aL(e.prototype,Mot(t))},zot=Ft.String,$ot=Ft.TypeError,uL=function(t){if(gn(t))return t;throw $ot(function(e){try{return zot(e)}catch{return"Object"}}(t)+" is not a function")},Hot=Ft.TypeError,Vot=Object.defineProperty,la=Ft["__core-js_shared__"]||function(t,e){try{Vot(Ft,t,{value:e,configurable:!0,writable:!0})}catch{Ft[t]=e}return e}("__core-js_shared__",{}),gs=iy(function(t){(t.exports=function(e,n){return la[e]||(la[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Uot=Ft.Object,Qp=function(t){return Uot(lC(t))},Wot=_e({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return Wot(Qp(t),e)},Got=0,qot=Math.random(),Kot=_e(1 .toString),Ov=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Kot(++Got+qot,36)},hf=gs("wks"),ju=Ft.Symbol,pk=ju&&ju.for,Yot=cC?ju:ju&&ju.withoutSetter||Ov,pr=function(t){if(!Kt(hf,t)||!ho&&typeof hf[t]!="string"){var e="Symbol."+t;ho&&Kt(ju,t)?hf[t]=ju[t]:hf[t]=cC&&pk?pk(e):Yot(e)}return hf[t]},Xot=Ft.TypeError,Zot=pr("toPrimitive"),mc=function(t){var e=function(n,r){if(!Sr(n)||bl(n))return n;var o,i,a=(o=n[Zot])==null?void 0:uL(o);if(a){if(r===void 0&&(r="default"),i=qr(a,n,r),!Sr(i)||bl(i))return i;throw Xot("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&gn(l=u.toString)&&!Sr(c=qr(l,u))||gn(l=u.valueOf)&&!Sr(c=qr(l,u))||s!=="string"&&gn(l=u.toString)&&!Sr(c=qr(l,u)))return c;throw Hot("Can't convert object to primitive value")}(n,r)}(t,"string");return bl(e)?e:e+""},g6=Ft.document,Jot=Sr(g6)&&Sr(g6.createElement),sL=function(t){return Jot?g6.createElement(t):{}},lL=!Wn&&!lr(function(){return Object.defineProperty(sL("div"),"a",{get:function(){return 7}}).a!=7}),hk=Object.getOwnPropertyDescriptor,fC={f:Wn?hk:function(t,e){if(t=No(t),e=mc(e),lL)try{return hk(t,e)}catch{}if(Kt(t,e))return es(!qr(sC.f,t,e),t[e])}},Qot=/#|\.prototype\./,th=function(t,e){var n=eit[tit(t)];return n==rit||n!=nit&&(gn(e)?lr(e):!!e)},tit=th.normalize=function(t){return String(t).replace(Qot,".").toLowerCase()},eit=th.data={},nit=th.NATIVE="N",rit=th.POLYFILL="P",oit=th,gk=_e(_e.bind),cL=function(t,e){return uL(t),e===void 0?t:gk?gk(t,e):function(){return t.apply(e,arguments)}},iit=Ft.String,ait=Ft.TypeError,ns=function(t){if(Sr(t))return t;throw ait(iit(t)+" is not an object")},uit=Ft.TypeError,vk=Object.defineProperty,vs={f:Wn?vk:function(t,e,n){if(ns(t),e=mc(e),ns(n),lL)try{return vk(t,e,n)}catch{}if("get"in n||"set"in n)throw uit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},vo=Wn?function(t,e,n){return vs.f(t,e,es(1,n))}:function(t,e,n){return t[e]=n,t},sit=fC.f,lit=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return rL(t,this,arguments)};return e.prototype=t.prototype,e},Vi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?Ft:p?Ft[c]:(Ft[c]||{}).prototype,g=f?br:br[c]||vo(br,c,{})[c],v=g.prototype;for(o in e)n=!oit(f?o:c+(p?".":"#")+o,t.forced)&&y&&Kt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=sit(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?cL(i,Ft):t.wrap&&n?lit(i):d&&gn(i)?_e(i):i,(t.sham||i&&i.sham||a&&a.sham)&&vo(s,"sham",!0),vo(g,o,s),d&&(Kt(br,r=c+"Prototype")||vo(br,r,{}),vo(br[r],o,i),t.real&&v&&!v[o]&&vo(v,o,i)))},kv=Array.isArray||function(t){return Pu(t)=="Array"},cit=Math.ceil,fit=Math.floor,dC=function(t){var e=+t;return e!=e||e===0?0:(e>0?fit:cit)(e)},dit=Math.min,py=function(t){return(e=t.length)>0?dit(dC(e),9007199254740991):0;var e},v6=function(t,e,n){var r=mc(e);r in t?vs.f(t,r,es(0,n)):t[r]=n},fL={};fL[pr("toStringTag")]="z";var pC=String(fL)==="[object z]",pit=pr("toStringTag"),hit=Ft.Object,git=Pu(function(){return arguments}())=="Arguments",hy=pC?Pu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=hit(t),pit))=="string"?n:git?Pu(e):(r=Pu(e))=="Object"&&gn(e.callee)?"Arguments":r},vit=_e(Function.toString);gn(la.inspectSource)||(la.inspectSource=function(t){return vit(t)});var dL=la.inspectSource,pL=function(){},yit=[],hL=Jp("Reflect","construct"),hC=/^\s*(?:class|function)\b/,mit=_e(hC.exec),bit=!hC.exec(pL),gf=function(t){if(!gn(t))return!1;try{return hL(pL,yit,t),!0}catch{return!1}},wit=!hL||lr(function(){var t;return gf(gf.call)||!gf(Object)||!gf(function(){t=!0})||t})?function(t){if(!gn(t))return!1;switch(hy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bit||!!mit(hC,dL(t))}:gf,Eit=pr("species"),yk=Ft.Array,gL=function(t,e){return new(function(n){var r;return kv(n)&&(r=n.constructor,(wit(r)&&(r===yk||kv(r.prototype))||Sr(r)&&(r=r[Eit])===null)&&(r=void 0)),r===void 0?yk:r}(t))(e===0?0:e)},Dit=pr("species"),vL=pr("isConcatSpreadable"),mk=Ft.TypeError,Cit=Av>=51||!lr(function(){var t=[];return t[vL]=!1,t.concat()[0]!==t}),Sit=Av>=51||!lr(function(){var t=[];return(t.constructor={})[Dit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),xit=function(t){if(!Sr(t))return!1;var e=t[vL];return e!==void 0?!!e:kv(t)};Vi({target:"Array",proto:!0,forced:!Cit||!Sit},{concat:function(t){var e,n,r,o,i,a=Qp(this),u=gL(a,0),s=0;for(e=-1,r=arguments.length;e9007199254740991)throw mk("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw mk("Maximum allowed index exceeded");v6(u,s++,i)}return u.length=s,u}});var u0,Ait=Ft.String,Bv=function(t){if(hy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ait(t)},Oit=Math.max,kit=Math.min,y6=function(t,e){var n=dC(t);return n<0?Oit(n+e,0):kit(n,e)},bk=function(t){return function(e,n,r){var o,i=No(e),a=py(i),u=y6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Bit={includes:bk(!0),indexOf:bk(!1)},eh={},Fit=Bit.indexOf,wk=_e([].push),yL=function(t,e){var n,r=No(t),o=0,i=[];for(n in r)!Kt(eh,n)&&Kt(r,n)&&wk(i,n);for(;e.length>o;)Kt(r,n=e[o++])&&(~Fit(i,n)||wk(i,n));return i},Fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gC=Object.keys||function(t){return yL(t,Fv)},Tit=Wn?Object.defineProperties:function(t,e){ns(t);for(var n,r=No(e),o=gC(e),i=o.length,a=0;i>a;)vs.f(t,n=o[a++],r[n]);return t},_it=Jp("document","documentElement"),Ek=gs("keys"),gy=function(t){return Ek[t]||(Ek[t]=Ov(t))},mL=gy("IE_PROTO"),s2=function(){},bL=function(t){return""},Dk=function(t){t.write(bL("")),t.close();var e=t.parentWindow.Object;return t=null,e},ig=function(){try{u0=new ActiveXObject("htmlfile")}catch{}var t,e;ig=typeof document<"u"?document.domain&&u0?Dk(u0):((e=sL("iframe")).style.display="none",_it.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(bL("document.F=Object")),t.close(),t.F):Dk(u0);for(var n=Fv.length;n--;)delete ig.prototype[Fv[n]];return ig()};eh[mL]=!0;var Tv,gd,_v,rs=Object.create||function(t,e){var n;return t!==null?(s2.prototype=ns(t),n=new s2,s2.prototype=null,n[mL]=t):n=ig(),e===void 0?n:Tit(n,e)},Pit=Fv.concat("length","prototype"),wL={f:Object.getOwnPropertyNames||function(t){return yL(t,Pit)}},jit=Ft.Array,Nit=Math.max,Ck=wL.f,Sk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],EL={f:function(t){return Sk&&Pu(t)=="Window"?function(e){try{return Ck(e)}catch{return function(r,o,i){for(var a=py(r),u=y6(void 0,a),s=y6(a,a),l=jit(Nit(s-u,0)),c=0;uh;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:kk(w,p)}else switch(t){case 4:return!1;case 7:kk(w,p)}return i?-1:r||o?o:w}},vy=[Ti(0),Ti(1),Ti(2),Ti(3),Ti(4),Ti(5),Ti(6),Ti(7)][0],Mn=gy("hidden"),Bk=pr("toPrimitive"),Uit=bc.set,Fk=bc.getterFor("Symbol"),Kr=Object.prototype,Gi=Ft.Symbol,Ji=Gi&&Gi.prototype,Tk=Ft.TypeError,c2=Ft.QObject,vf=Jp("JSON","stringify"),DL=fC.f,qi=vs.f,CL=EL.f,Wit=sC.f,SL=_e([].push),ui=gs("symbols"),nh=gs("op-symbols"),f2=gs("string-to-symbol-registry"),d2=gs("symbol-to-string-registry"),Git=gs("wks"),p2=!c2||!c2.prototype||!c2.prototype.findChild,b6=Wn&&lr(function(){return rs(qi({},"a",{get:function(){return qi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=DL(Kr,e);r&&delete Kr[e],qi(t,e,n),r&&t!==Kr&&qi(Kr,e,r)}:qi,h2=function(t,e){var n=ui[t]=rs(Ji);return Uit(n,{type:"Symbol",tag:t,description:e}),Wn||(n.description=e),n},jv=function(t,e,n){t===Kr&&jv(nh,e,n),ns(t);var r=mc(e);return ns(n),Kt(ui,r)?(n.enumerable?(Kt(t,Mn)&&t[Mn][r]&&(t[Mn][r]=!1),n=rs(n,{enumerable:es(0,!1)})):(Kt(t,Mn)||qi(t,Mn,es(1,{})),t[Mn][r]=!0),b6(t,r,n)):qi(t,r,n)},_k=function(t,e){ns(t);var n=No(e),r=gC(n).concat(w6(n));return vy(r,function(o){Wn&&!qr(xL,n,o)||jv(t,o,n[o])}),t},xL=function(t){var e=mc(t),n=qr(Wit,this,e);return!(this===Kr&&Kt(ui,e)&&!Kt(nh,e))&&(!(n||!Kt(this,e)||!Kt(ui,e)||Kt(this,Mn)&&this[Mn][e])||n)},Pk=function(t,e){var n=No(t),r=mc(e);if(n!==Kr||!Kt(ui,r)||Kt(nh,r)){var o=DL(n,r);return!o||!Kt(ui,r)||Kt(n,Mn)&&n[Mn][r]||(o.enumerable=!0),o}},jk=function(t){var e=CL(No(t)),n=[];return vy(e,function(r){Kt(ui,r)||Kt(eh,r)||SL(n,r)}),n},w6=function(t){var e=t===Kr,n=CL(e?nh:No(t)),r=[];return vy(n,function(o){!Kt(ui,o)||e&&!Kt(Kr,o)||SL(r,ui[o])}),r};if(ho||(Ji=(Gi=function(){if(aL(Ji,this))throw Tk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Bv(arguments[0]):void 0,e=Ov(t),n=function(r){this===Kr&&qr(n,nh,r),Kt(this,Mn)&&Kt(this[Mn],e)&&(this[Mn][e]=!1),b6(this,e,es(1,r))};return Wn&&p2&&b6(Kr,e,{configurable:!0,set:n}),h2(e,t)}).prototype,Kl(Ji,"toString",function(){return Fk(this).tag}),Kl(Gi,"withoutSetter",function(t){return h2(Ov(t),t)}),sC.f=xL,vs.f=jv,fC.f=Pk,wL.f=EL.f=jk,l2.f=w6,vC.f=function(t){return h2(pr(t),t)},Wn&&qi(Ji,"description",{configurable:!0,get:function(){return Fk(this).description}})),Vi({global:!0,wrap:!0,forced:!ho,sham:!ho},{Symbol:Gi}),vy(gC(Git),function(t){Ne(t)}),Vi({target:"Symbol",stat:!0,forced:!ho},{for:function(t){var e=Bv(t);if(Kt(f2,e))return f2[e];var n=Gi(e);return f2[e]=n,d2[n]=e,n},keyFor:function(t){if(!bl(t))throw Tk(t+" is not a symbol");if(Kt(d2,t))return d2[t]},useSetter:function(){p2=!0},useSimple:function(){p2=!1}}),Vi({target:"Object",stat:!0,forced:!ho,sham:!Wn},{create:function(t,e){return e===void 0?rs(t):_k(rs(t),e)},defineProperty:jv,defineProperties:_k,getOwnPropertyDescriptor:Pk}),Vi({target:"Object",stat:!0,forced:!ho},{getOwnPropertyNames:jk,getOwnPropertySymbols:w6}),Vi({target:"Object",stat:!0,forced:lr(function(){l2.f(1)})},{getOwnPropertySymbols:function(t){return l2.f(Qp(t))}}),vf){var qit=!ho||lr(function(){var t=Gi();return vf([t])!="[null]"||vf({a:t})!="{}"||vf(Object(t))!="{}"});Vi({target:"JSON",stat:!0,forced:qit},{stringify:function(t,e,n){var r=Iit(arguments),o=e;if((Sr(e)||t!==void 0)&&!bl(t))return kv(e)||(e=function(i,a){if(gn(o)&&(a=qr(o,this,i,a)),!bl(a))return a}),r[1]=e,rL(vf,null,r)}})}if(!Ji[Bk]){var Kit=Ji.valueOf;Kl(Ji,Bk,function(t){return qr(Kit,this)})}Pv(Gi,"Symbol"),eh[Mn]=!0,Ne("asyncIterator"),Ne("hasInstance"),Ne("isConcatSpreadable"),Ne("iterator"),Ne("match"),Ne("matchAll"),Ne("replace"),Ne("search"),Ne("species"),Ne("split"),Ne("toPrimitive"),Ne("toStringTag"),Ne("unscopables"),Pv(Ft.JSON,"JSON",!0);var Qi,Nk,Ik,Yit=br.Symbol,Nu={},AL=Function.prototype,Xit=Wn&&Object.getOwnPropertyDescriptor,g2=Kt(AL,"name"),Zit={EXISTS:g2,PROPER:g2&&function(){}.name==="something",CONFIGURABLE:g2&&(!Wn||Wn&&Xit(AL,"name").configurable)},Jit=!lr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Lk=gy("IE_PROTO"),E6=Ft.Object,Qit=E6.prototype,D6=Jit?E6.getPrototypeOf:function(t){var e=Qp(t);if(Kt(e,Lk))return e[Lk];var n=e.constructor;return gn(n)&&e instanceof n?n.prototype:e instanceof E6?Qit:null},C6=pr("iterator"),OL=!1;[].keys&&("next"in(Ik=[].keys())?(Nk=D6(D6(Ik)))!==Object.prototype&&(Qi=Nk):OL=!0);var tat=Qi==null||lr(function(){var t={};return Qi[C6].call(t)!==t});Qi=tat?{}:rs(Qi),gn(Qi[C6])||Kl(Qi,C6,function(){return this});var kL={IteratorPrototype:Qi,BUGGY_SAFARI_ITERATORS:OL},eat=kL.IteratorPrototype,nat=function(){return this};Ft.String,Ft.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var rat=Zit.PROPER,s0=kL.BUGGY_SAFARI_ITERATORS,v2=pr("iterator"),oat=function(){return this},BL=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=rs(eat,{next:es(1,b)}),Pv(m,D,!1,!0),Nu[D]=nat})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!s0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[v2]||d["@@iterator"]||o&&d[o],g=!s0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=D6(v.call(new t)))!==Object.prototype&&u.next&&(Pv(u,f,!0,!0),Nu[f]=oat),rat&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return qr(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(s0||p||!(l in d))&&Kl(d,l,s[l]);else Vi({target:e,proto:!0,forced:s0||p},s);return a&&d[v2]!==g&&Kl(d,v2,g,{name:o}),Nu[e]=g,s},iat=bc.set,aat=bc.getterFor("Array Iterator");BL(Array,"Array",function(t,e){iat(this,{type:"Array Iterator",target:No(t),index:0,kind:e})},function(){var t=aat(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Nu.Arguments=Nu.Array;var Rk=pr("toStringTag");for(var y2 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Mk=Ft[y2],m2=Mk&&Mk.prototype;m2&&hy(m2)!==Rk&&vo(m2,Rk,y2),Nu[y2]=Nu.Array}var uat=Yit;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var l0=uat,sat=_e("".charAt),zk=_e("".charCodeAt),lat=_e("".slice),cat=function(t){return function(e,n){var r,o,i=Bv(lC(e)),a=dC(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=zk(i,a))<55296||r>56319||a+1===u||(o=zk(i,a+1))<56320||o>57343?t?sat(i,a):r:t?lat(i,a,a+2):o-56320+(r-55296<<10)+65536}},fat=cat(!0),dat=bc.set,pat=bc.getterFor("String Iterator");BL(String,"String",function(t){dat(this,{type:"String Iterator",string:Bv(t),index:0})},function(){var t,e=pat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=fat(n,r),e.index+=t.length,{value:t,done:!1})});var hat=vC.f("iterator"),gat=iy(function(t){function e(n){return typeof l0=="function"&&typeof hat=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof l0=="function"&&r.constructor===l0&&r!==l0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),FL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(gat),vat=sy.EXISTS,yat=hc.f,TL=Function.prototype,mat=yt(TL.toString),_L=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bat=yt(_L.exec);eo&&!vat&&yat(TL,"name",{configurable:!0,get:function(){try{return bat(_L,mat(this))[1]}catch{return""}}});var PL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),wat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=qnt,n.mark="fontSize",n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(FL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(PL),Eat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=Knt,n.mark="fontFamily",n.selectPanelWidth=150,n}return be(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(FL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(PL),Dat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&ts(i,{fontSize:r}),o&&ts(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((rC(e)||yc(n=B(e))!=="span")&&(n=B(""+e+"")),o&&n.css("font-size",o),i&&n.css("font-family",i),vc(n)):e},preParseHtml:[Fot],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Jr(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Jr(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new wat},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Eat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Cat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=Jr(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},jL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Yt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Yt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Sat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=Ynt,n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ct.isElement(o)}})},e}(jL),xat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=Xnt,n}return be(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ct.isElement(o)},mode:"highest"})},e}(jL),Aat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.indent,r=e;return n&&ts(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),vc(r)},preParseHtml:[Cat],parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=Jr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new xat}},{key:"delIndent",factory:function(){return new Sat}}]},yy=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),Oat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=Znt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(yy),kat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=Jnt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(yy),Bat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=Qnt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(yy),Fat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=trt,n}return be(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(yy),Tat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign,r=e;return n&&ts(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),vc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=Jr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Oat}},{key:"justifyRight",factory:function(){return new kat}},{key:"justifyCenter",factory:function(){return new Bat}},{key:"justifyJustify",factory:function(){return new Fat}}]},_at=function(){function t(){this.title=tt("lineHeight.title"),this.iconSvg='',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ct.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Pat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight,r=e;return n&&ts(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),vc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Jr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new _at},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},jat=function(){function t(){this.title=tt("undo.redo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),Nat=function(){function t(){this.title=tt("undo.undo"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),Iat={menus:[{key:"redo",factory:function(){return new jat}},{key:"undo",factory:function(){return new Nat}}]},Lat={type:"divider",renderElem:function(t,e,n){return zl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[zl("hr")])}},Rat=function(){function t(){this.title=tt("divider.title"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Mat={renderElems:[Lat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"
        "}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Rat}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Yt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},zat=cy.map;tn({target:"Array",proto:!0,forced:!JD("map")},{map:function(t){return zat(this,t,arguments.length>1?arguments[1]:void 0)}});var $at=yt([].join),Hat=ay!=Object,Vat=RI("join",",");tn({target:"Array",proto:!0,forced:Hat||!Vat},{join:function(t){return $at(pc(this),t===void 0?",":t)}});var Uat=function(){function t(){this.title=tt("codeBlock.title"),this.iconSvg='',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=Q.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(` +`).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=LI(a),s=u.next();!s.done;s=u.next()){var l=Yt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(` +`)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),Wat={key:"codeBlock",factory:function(){return new Uat}};tn({target:"String",proto:!0,forced:td("anchor")},{anchor:function(t){return Qf(this,"a","name",t)}}),eC("match",function(t,e,n){return[function(r){var o=jr(this),i=r==null?void 0:uy(r,t);return i?Te(i,r,o):new RegExp(r)[t](Ee(o))},function(r){var o=rr(this),i=Ee(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return np(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=np(o,i))!==null;){var f=Ee(s[0]);l[c]=f,f===""&&(o.lastIndex=nC(i,Kp(o.lastIndex),u)),c++}return c===0?null:l}]});var Gat={type:"pre",renderElem:function(t,e,n){return bt("pre",null,e)}},qat={type:"code",renderElem:function(t,e,n){return bt("code",null,e)}},Kat={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},Yat={menus:[Wat],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=Q.string(l),d=f.anchor.offset,y=p.slice(0,d).split(` +`),g=y.length;return g===0?"":y[g-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(` +`+s)}}o.insertText(` +`)}else e()},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[Gat,qat],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return""+e+""}},{type:"pre",elemToHtml:function(t,e){return"
        "+e+"
        "}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=B(t);if(yc(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},Kat]},Xat=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),Zat={menus:[{key:"fullScreen",factory:function(){return new Xat}}]},Jat=function(){function t(){this.title=tt("common.enter"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),Qat=[frt,Vrt,Dat,Aat,Tat,Pat,pot,Mat,kot,tot,Yat,Aot,Rrt,jnt,yot,Iat,Zat,{menus:[{key:"enter",factory:function(){return new Jat}}]}];qn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var $k=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yC(t){var e={exports:{}};return t(e,e.exports),e.exports}var _i,ag,c0=function(t){return t&&t.Math==Math&&t},wt=c0(typeof globalThis=="object"&&globalThis)||c0(typeof window=="object"&&window)||c0(typeof self=="object"&&self)||c0(typeof $k=="object"&&$k)||function(){return this}()||Function("return this")(),NL=Function.prototype,S6=NL.bind,x6=NL.call,tut=S6&&S6.bind(x6),jt=S6?function(t){return t&&tut(x6,t)}:function(t){return t&&function(){return x6.apply(t,arguments)}},Oe=function(t){try{return!!t()}catch{return!0}},eut=jt({}.toString),nut=jt("".slice),ni=function(t){return nut(eut(t),8,-1)},b2=wt.Object,rut=jt("".split),IL=Oe(function(){return!b2("z").propertyIsEnumerable(0)})?function(t){return ni(t)=="String"?rut(t,""):b2(t)}:b2,out=wt.TypeError,my=function(t){if(t==null)throw out("Can't call method on "+t);return t},wc=function(t){return IL(my(t))},iut=Object.defineProperty,mC=function(t,e){try{iut(wt,t,{value:e,configurable:!0,writable:!0})}catch{wt[t]=e}return e},ca=wt["__core-js_shared__"]||mC("__core-js_shared__",{}),bC=yC(function(t){(t.exports=function(e,n){return ca[e]||(ca[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),aut=wt.Object,rh=function(t){return aut(my(t))},uut=jt({}.hasOwnProperty),nn=Object.hasOwn||function(t,e){return uut(rh(t),e)},sut=0,lut=Math.random(),cut=jt(1 .toString),wC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+cut(++sut+lut,36)},ke=function(t){return typeof t=="function"},fut=function(t){return ke(t)?t:void 0},oh=function(t,e){return arguments.length<2?fut(wt[t]):wt[t]&&wt[t][e]},w2=oh("navigator","userAgent")||"",Hk=wt.process,Vk=wt.Deno,Uk=Hk&&Hk.versions||Vk&&Vk.version,Wk=Uk&&Uk.v8;Wk&&(ag=(_i=Wk.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!ag&&w2&&(!(_i=w2.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=w2.match(/Chrome\/(\d+)/))&&(ag=+_i[1]);var f0,A6=ag,O6=!!Object.getOwnPropertySymbols&&!Oe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&A6&&A6<41}),EC=O6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yf=bC("wks"),Iu=wt.Symbol,Gk=Iu&&Iu.for,dut=EC?Iu:Iu&&Iu.withoutSetter||wC,yn=function(t){if(!nn(yf,t)||!O6&&typeof yf[t]!="string"){var e="Symbol."+t;O6&&nn(Iu,t)?yf[t]=Iu[t]:yf[t]=EC&&Gk?Gk(e):dut(e)}return yf[t]},Ae=function(t){return typeof t=="object"?t!==null:ke(t)},put=wt.String,hut=wt.TypeError,Kn=function(t){if(Ae(t))return t;throw hut(put(t)+" is not an object")},Oa=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),k6=wt.document,gut=Ae(k6)&&Ae(k6.createElement),DC=function(t){return gut?k6.createElement(t):{}},LL=!Oa&&!Oe(function(){return Object.defineProperty(DC("div"),"a",{get:function(){return 7}}).a!=7}),mf=Function.prototype.call,en=mf.bind?mf.bind(mf):function(){return mf.apply(mf,arguments)},Nv=jt({}.isPrototypeOf),vut=wt.Object,E2=EC?function(t){return typeof t=="symbol"}:function(t){var e=oh("Symbol");return ke(e)&&Nv(e.prototype,vut(t))},yut=wt.String,B6=function(t){try{return yut(t)}catch{return"Object"}},mut=wt.TypeError,CC=function(t){if(ke(t))return t;throw mut(B6(t)+" is not a function")},rp=function(t,e){var n=t[e];return n==null?void 0:CC(n)},but=wt.TypeError,wut=wt.TypeError,Eut=yn("toPrimitive"),SC=function(t){var e=function(n,r){if(!Ae(n)||E2(n))return n;var o,i=rp(n,Eut);if(i){if(r===void 0&&(r="default"),o=en(i,n,r),!Ae(o)||E2(o))return o;throw wut("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ke(s=a.toString)&&!Ae(l=en(s,a))||ke(s=a.valueOf)&&!Ae(l=en(s,a))||u!=="string"&&ke(s=a.toString)&&!Ae(l=en(s,a)))return l;throw but("Can't convert object to primitive value")}(n,r)}(t,"string");return E2(e)?e:e+""},Dut=wt.TypeError,qk=Object.defineProperty,ys={f:Oa?qk:function(t,e,n){if(Kn(t),e=SC(e),Kn(n),LL)try{return qk(t,e,n)}catch{}if("get"in n||"set"in n)throw Dut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Cut=Math.ceil,Sut=Math.floor,ih=function(t){var e=+t;return e!=e||e===0?0:(e>0?Sut:Cut)(e)},xut=Math.max,Aut=Math.min,F6=function(t,e){var n=ih(t);return n<0?xut(n+e,0):Aut(n,e)},Out=Math.min,RL=function(t){return t>0?Out(ih(t),9007199254740991):0},Ec=function(t){return RL(t.length)},Kk=function(t){return function(e,n,r){var o,i=wc(e),a=Ec(i),u=F6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ML={includes:Kk(!0),indexOf:Kk(!1)},by={},kut=ML.indexOf,Yk=jt([].push),zL=function(t,e){var n,r=wc(t),o=0,i=[];for(n in r)!nn(by,n)&&nn(r,n)&&Yk(i,n);for(;e.length>o;)nn(r,n=e[o++])&&(~kut(i,n)||Yk(i,n));return i},Iv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],But=Object.keys||function(t){return zL(t,Iv)},Fut=Oa?Object.defineProperties:function(t,e){Kn(t);for(var n,r=wc(e),o=But(e),i=o.length,a=0;i>a;)ys.f(t,n=o[a++],r[n]);return t},Tut=oh("document","documentElement"),Xk=bC("keys"),xC=function(t){return Xk[t]||(Xk[t]=wC(t))},$L=xC("IE_PROTO"),D2=function(){},HL=function(t){return""},Zk=function(t){t.write(HL("")),t.close();var e=t.parentWindow.Object;return t=null,e},ug=function(){try{f0=new ActiveXObject("htmlfile")}catch{}var t,e;ug=typeof document<"u"?document.domain&&f0?Zk(f0):((e=DC("iframe")).style.display="none",Tut.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(HL("document.F=Object")),t.close(),t.F):Zk(f0);for(var n=Iv.length;n--;)delete ug.prototype[Iv[n]];return ug()};by[$L]=!0;var AC=Object.create||function(t,e){var n;return t!==null?(D2.prototype=Kn(t),n=new D2,D2.prototype=null,n[$L]=t):n=ug(),e===void 0?n:Fut(n,e)},T6=yn("unscopables"),_6=Array.prototype;_6[T6]==null&&ys.f(_6,T6,{configurable:!0,value:AC(null)});var vd=function(t){_6[T6][t]=!0},Yl={},_ut=jt(Function.toString);ke(ca.inspectSource)||(ca.inspectSource=function(t){return _ut(t)});var Lv,yd,Rv,OC=ca.inspectSource,Jk=wt.WeakMap,VL=ke(Jk)&&/native code/.test(OC(Jk)),wy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},fa=Oa?function(t,e,n){return ys.f(t,e,wy(1,n))}:function(t,e,n){return t[e]=n,t},P6=wt.TypeError,Put=wt.WeakMap;if(VL||ca.state){var tu=ca.state||(ca.state=new Put),jut=jt(tu.get),Qk=jt(tu.has),Nut=jt(tu.set);Lv=function(t,e){if(Qk(tu,t))throw new P6("Object already initialized");return e.facade=t,Nut(tu,t,e),e},yd=function(t){return jut(tu,t)||{}},Rv=function(t){return Qk(tu,t)}}else{var $s=xC("state");by[$s]=!0,Lv=function(t,e){if(nn(t,$s))throw new P6("Object already initialized");return e.facade=t,fa(t,$s,e),e},yd=function(t){return nn(t,$s)?t[$s]:{}},Rv=function(t){return nn(t,$s)}}var Lu,tB,eB,Bo={set:Lv,get:yd,has:Rv,enforce:function(t){return Rv(t)?yd(t):Lv(t,{})},getterFor:function(t){return function(e){var n;if(!Ae(e)||(n=yd(e)).type!==t)throw P6("Incompatible receiver, "+t+" required");return n}}},nB={}.propertyIsEnumerable,rB=Object.getOwnPropertyDescriptor,Iut={f:rB&&!nB.call({1:2},1)?function(t){var e=rB(this,t);return!!e&&e.enumerable}:nB},oB=Object.getOwnPropertyDescriptor,UL={f:Oa?oB:function(t,e){if(t=wc(t),e=SC(e),LL)try{return oB(t,e)}catch{}if(nn(t,e))return wy(!en(Iut.f,t,e),t[e])}},WL=Function.prototype,Lut=Oa&&Object.getOwnPropertyDescriptor,C2=nn(WL,"name"),kC={EXISTS:C2,PROPER:C2&&function(){}.name==="something",CONFIGURABLE:C2&&(!Oa||Oa&&Lut(WL,"name").configurable)},Co=yC(function(t){var e=kC.CONFIGURABLE,n=Bo.get,r=Bo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ke(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nn(u,"name")||e&&u.name!==d)&&fa(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==wt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:fa(i,a,u)):f?i[a]=u:mC(a,u)})(Function.prototype,"toString",function(){return ke(this)&&n(this).source||OC(this)})}),Rut=Iv.concat("length","prototype"),Mv={f:Object.getOwnPropertyNames||function(t){return zL(t,Rut)}},Mut={f:Object.getOwnPropertySymbols},zut=jt([].concat),$ut=oh("Reflect","ownKeys")||function(t){var e=Mv.f(Kn(t)),n=Mut.f;return n?zut(e,n(t)):e},Hut=function(t,e){for(var n=$ut(e),r=ys.f,o=UL.f,i=0;i=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Yl.Arguments=Yl.Array,vd("keys"),vd("values"),vd("entries");var KL={};KL[yn("toStringTag")]="z";var FC=String(KL)==="[object z]",sst=yn("toStringTag"),lst=wt.Object,cst=ni(function(){return arguments}())=="Arguments",Ey=FC?ni:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=lst(t),sst))=="string"?n:cst?ni(e):(r=ni(e))=="Object"&&ke(e.callee)?"Arguments":r},fst=FC?{}.toString:function(){return"[object "+Ey(this)+"]"};FC||Co(Object.prototype,"toString",fst,{unsafe:!0});var dst=wt.String,Ko=function(t){if(Ey(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return dst(t)},pst=jt("".charAt),sB=jt("".charCodeAt),hst=jt("".slice),lB=function(t){return function(e,n){var r,o,i=Ko(my(e)),a=ih(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=sB(i,a))<55296||r>56319||a+1===u||(o=sB(i,a+1))<56320||o>57343?t?pst(i,a):r:t?hst(i,a,a+2):o-56320+(r-55296<<10)+65536}},YL={codeAt:lB(!1),charAt:lB(!0)},gst=YL.charAt,vst=Bo.set,yst=Bo.getterFor("String Iterator");qL(String,"String",function(t){vst(this,{type:"String Iterator",string:Ko(t),index:0})},function(){var t,e=yst(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=gst(n,r),e.index+=t.length,{value:t,done:!1})});var R6=function(t,e,n){for(var r in e)Co(t,r,e[r],n);return t},mst=wt.Array,bst=Math.max,cB=Mv.f,fB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wst={f:function(t){return fB&&ni(t)=="Window"?function(e){try{return cB(e)}catch{return function(r,o,i){for(var a,u,s,l,c=Ec(r),f=F6(void 0,c),p=F6(c,c),d=mst(bst(p-f,0)),y=0;fi;i++)if((u=m(t[i]))&&Nv(vB,u))return u;return new sg(!1)}r=function(h,b){var w=arguments.length<2?hB(h):b;if(CC(w))return Kn(en(w,h));throw xst(B6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=en(s,r)).done;){try{u=m(l.value)}catch(h){gB(r,"throw",h)}if(typeof u=="object"&&u&&Nv(vB,u))return u}return new sg(!1)},Ost=wt.TypeError,ZL=function(t,e){if(Nv(e,t))return t;throw Ost("Incorrect invocation")},JL=yn("iterator"),QL=!1;try{var kst=0,yB={next:function(){return{done:!!kst++}},return:function(){QL=!0}};yB[JL]=function(){return this},Array.from(yB,function(){throw 2})}catch{}var M6=Array.isArray||function(t){return ni(t)=="Array"},tR=function(){},Bst=[],eR=oh("Reflect","construct"),PC=/^\s*(?:class|function)\b/,Fst=jt(PC.exec),Tst=!PC.exec(tR),wf=function(t){if(!ke(t))return!1;try{return eR(tR,Bst,t),!0}catch{return!1}},_st=!eR||Oe(function(){var t;return wf(wf.call)||!wf(Object)||!wf(function(){t=!0})||t})?function(t){if(!ke(t))return!1;switch(Ey(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Tst||!!Fst(PC,OC(t))}:wf,Pst=yn("species"),mB=wt.Array,nR=function(t,e){return new(function(n){var r;return M6(n)&&(r=n.constructor,(_st(r)&&(r===mB||M6(r.prototype))||Ae(r)&&(r=r[Pst])===null)&&(r=void 0)),r===void 0?mB:r}(t))(e===0?0:e)},bB=jt([].push),Pi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=rh(s),g=IL(y),v=_C(l,c),m=Ec(g),h=0,b=f||nR,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:bB(w,p)}else switch(t){case 4:return!1;case 7:bB(w,p)}return i?-1:r||o?o:w}},jC={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)},h0=TC.getWeakData,jst=Bo.set,Nst=Bo.getterFor,Ist=jC.find,Lst=jC.findIndex,Rst=jt([].splice),Mst=0,g0=function(t){return t.frozen||(t.frozen=new rR)},rR=function(){this.entries=[]},S2=function(t,e){return Ist(t.entries,function(n){return n[0]===e})};rR.prototype={get:function(t){var e=S2(this,t);if(e)return e[1]},has:function(t){return!!S2(this,t)},set:function(t,e){var n=S2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Lst(this.entries,function(n){return n[0]===t});return~e&&Rst(this.entries,e,1),!!~e}};var Ef,oR={getConstructor:function(t,e,n,r){var o=t(function(s,l){ZL(s,i),jst(s,{type:e,id:Mst++,frozen:void 0}),l!=null&&XL(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Nst(e),u=function(s,l,c){var f=a(s),p=h0(Kn(l),!0);return p===!0?g0(f).set(l,c):p[f.id]=c,s};return R6(i,{delete:function(s){var l=a(this);if(!Ae(s))return!1;var c=h0(s);return c===!0?g0(l).delete(s):c&&nn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ae(s))return!1;var c=h0(s);return c===!0?g0(l).has(s):c&&nn(c,l.id)}}),R6(i,n?{get:function(s){var l=a(this);if(Ae(s)){var c=h0(s);return c===!0?g0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},v0=Bo.enforce,zst=!wt.ActiveXObject&&"ActiveXObject"in wt,iR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$st=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=wt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=jt(u[v]);Co(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!Ae(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!Ae(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!Ae(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(j6(t,!ke(a)||!(o||u.forEach&&!Oe(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),TC.enable();else if(j6(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Oe(function(){f.has(1)}),y=function(v,m){if(!QL)return!1;var h=!1;try{var b={};b[JL]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),g=!o&&Oe(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){ZL(v,u);var h=function(b,w,D){var S,C;return $v&&ke(S=w.constructor)&&S!==D&&Ae(C=S.prototype)&&C!==D.prototype&&$v(b,C),b}(new a,v,s);return m!=null&&XL(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,ka({global:!0,forced:s!=a},l),L6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",iR,oR);if(VL&&zst){Ef=oR.getConstructor(iR,"WeakMap",!0),TC.enable();var Df=$st.prototype,wB=jt(Df.delete),y0=jt(Df.has),EB=jt(Df.get),DB=jt(Df.set);R6(Df,{delete:function(t){if(Ae(t)&&!mu(t)){var e=v0(this);return e.frozen||(e.frozen=new Ef),wB(this,t)||e.frozen.delete(t)}return wB(this,t)},has:function(t){if(Ae(t)&&!mu(t)){var e=v0(this);return e.frozen||(e.frozen=new Ef),y0(this,t)||e.frozen.has(t)}return y0(this,t)},get:function(t){if(Ae(t)&&!mu(t)){var e=v0(this);return e.frozen||(e.frozen=new Ef),y0(this,t)?EB(this,t):e.frozen.get(t)}return EB(this,t)},set:function(t,e){if(Ae(t)&&!mu(t)){var n=v0(this);n.frozen||(n.frozen=new Ef),y0(this,t)?DB(this,t,e):n.frozen.set(t,e)}else DB(this,t,e);return this}})}var aR={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},x2=DC("span").classList,CB=x2&&x2.constructor&&x2.constructor.prototype,Hst=CB===Object.prototype?void 0:CB,A2=yn("iterator"),SB=yn("toStringTag"),O2=ed.values,uR=function(t,e){if(t){if(t[A2]!==O2)try{fa(t,A2,O2)}catch{t[A2]=O2}if(t[SB]||fa(t,SB,e),aR[e]){for(var n in ed)if(t[n]!==ed[n])try{fa(t,n,ed[n])}catch{t[n]=ed[n]}}}};for(var k2 in aR)uR(wt[k2]&&wt[k2].prototype,k2);uR(Hst,"DOMTokenList");var z6=new WeakMap,Vst={type:"list-item",renderElem:function(t,e,n){z6.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,y=d.type,g=d.level,v=g===void 0?0:g,m=d.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=p,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var S=j.previous(D),C=E.node(f,S);if(C==null)break;var O=C[0],T=O.level,R=T===void 0?0:T,H=O.type,M=O.ordered;if(H!==y||R=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function md(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function AB(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Ust=ML.includes;ka({target:"Array",proto:!0},{includes:function(t){return Ust(this,t,arguments.length>1?arguments[1]:void 0)}}),vd("includes");var OB,B2,Wst=function(){var t=Kn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},NC=wt.RegExp,H6=Oe(function(){var t=NC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Gst=H6||Oe(function(){return!NC("a","y").sticky}),qst={BROKEN_CARET:H6||Oe(function(){var t=NC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Gst,UNSUPPORTED_Y:H6},Kst=wt.RegExp,Yst=Oe(function(){var t=Kst(".","s");return!(t.dotAll&&t.exec(` +`)&&t.flags==="s")}),Xst=wt.RegExp,Zst=Oe(function(){var t=Xst("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),Jst=Bo.get,Qst=bC("native-string-replace",String.prototype.replace),Hv=RegExp.prototype.exec,V6=Hv,tlt=jt("".charAt),elt=jt("".indexOf),nlt=jt("".replace),F2=jt("".slice),T2=(B2=/b*/g,en(Hv,OB=/a/,"a"),en(Hv,B2,"a"),OB.lastIndex!==0||B2.lastIndex!==0),kB=qst.BROKEN_CARET,_2=/()??/.exec("")[1]!==void 0;(T2||_2||kB||Yst||Zst)&&(V6=function(t){var e,n,r,o,i,a,u,s=this,l=Jst(s),c=Ko(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=en(V6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=kB&&s.sticky,y=en(Wst,s),g=s.source,v=0,m=c;if(d&&(y=nlt(y,"y",""),elt(y,"g")===-1&&(y+="g"),m=F2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tlt(c,s.lastIndex-1)!==` +`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),_2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),T2&&(r=s.lastIndex),o=en(Hv,d?n:s,m),d?o?(o.input=F2(o.input,v),o[0]=F2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:T2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_2&&o&&o.length>1&&en(Qst,o[0],n,function(){for(i=1;iv?0:T===v?C===y?0:1:0}(t);if(a>0)for(var u=0;u",BB.push(i);var s=function(l){var c=z6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=A.findPath(c,l);if(m[0]===c.children.length-1)return v+1;var h=j.next(m),b=E.node(c,h);if(!b)return 0;var w=md(b,1)[0];if(A.getNodeType(w)!==p)return v+1;var D=w,S=D.ordered,C=S!==void 0&&S,O=D.level,T=O===void 0?0:O;return Tv?0:T===v?C===y?0:1:0}(t);if(s>0)for(u=0;u";return{html:"
      • "+e+"
      • ",prefix:n,suffix:r}}},clt=yn("species"),flt=jC.filter,dlt=A6>=51||!Oe(function(){var t=[];return(t.constructor={})[clt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});ka({target:"Array",proto:!0,forced:!dlt},{filter:function(t){return flt(this,t,arguments.length>1?arguments[1]:void 0)}});var IC=Function.prototype,FB=IC.apply,plt=IC.bind,TB=IC.call,hlt=typeof Reflect=="object"&&Reflect.apply||(plt?TB.bind(FB):function(){return TB.apply(FB,arguments)}),_B=(yn("species"),RegExp.prototype),glt=YL.charAt,vlt=function(t,e,n){return e+(n?glt(t,e).length:1)},ylt=Math.floor,P2=jt("".charAt),mlt=jt("".replace),j2=jt("".slice),blt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wlt=/\$([$&'`]|\d{1,2})/g,Elt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=wlt;return o!==void 0&&(o=rh(o),s=blt),mlt(i,s,function(l,c){var f;switch(P2(c,0)){case"$":return"$";case"&":return t;case"`":return j2(e,0,n);case"'":return j2(e,a);case"<":f=o[j2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=ylt(p/10);return d===0?l:d<=u?r[d-1]===void 0?P2(c,1):r[d-1]+P2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Dlt=wt.TypeError,Clt=function(t,e){var n=t.exec;if(ke(n)){var r=en(n,t,e);return r!==null&&Kn(r),r}if(ni(t)==="RegExp")return en(Vv,t,e);throw Dlt("RegExp#exec called on incompatible receiver")},U6=yn("replace"),Slt=Math.max,xlt=Math.min,Alt=jt([].concat),N2=jt([].push),PB=jt("".indexOf),jB=jt("".slice),Olt="a".replace(/./,"$0")==="$0",NB=!!/./[U6]&&/./[U6]("a","$0")==="";(function(t,e,n,r){var o=yn(t),i=!Oe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Oe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=jt(/./[o]),s=function(l,c,f){var p=NB?"$":"$0";return[function(d,y){var g=my(this),v=d==null?void 0:rp(d,U6);return v?en(v,d,g,y):en(c,Ko(g),d,y)},function(d,y){var g=Kn(this),v=Ko(d);if(typeof y=="string"&&PB(y,p)===-1&&PB(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=ke(y);h||(y=Ko(y));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var S=Clt(g,v);if(S===null||(N2(D,S),!b))break;Ko(S[0])===""&&(g.lastIndex=vlt(v,RL(g.lastIndex),w))}for(var C,O="",T=0,R=0;R=T&&(O+=jB(v,T,M)+nt,T=M+H.length)}return O+jB(v,T)}]}(0,""[t],function(l,c,f,p,d){var y=jt(l),g=c.exec;return g===Vv||g===_B.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Co(String.prototype,t,s[0]),Co(_B,o,s[1])}})("replace",0,!!Oe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$
        ")!=="7"})||!Olt||NB);var klt=wt.TypeError,cR=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&_C(a,u);f0&&M6(s))l=Ec(s),c=cR(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw klt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Blt=cR;function I2(t){return t.length?t[0].tagName.toLowerCase():""}ka({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=rh(this),n=Ec(e),r=nR(e,0);return r.length=Blt(r,e,e,n,0,t===void 0?1:ih(t)),r}}),vd("flat"),ka({global:!0},{globalThis:wt}),Tr&&(B.fn.append=Tr),Fr&&(B.fn.attr=Fr),Nl&&(B.fn.parent=Nl);var Flt={renderElems:[Vst],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void N.setNodes(o,{level:p+1})}}if(L.isExpanded(l)){var d=0,y=!1;try{for(var g=xB(AB(o)),v=g.next();!v.done;v=g.next()){var m=md(v.value,1)[0];A.getNodeType(m)==="list-item"?d++:y=!0}}catch(C){i={error:C}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(y||d<=1)return void n();try{for(var h=xB(AB(o)),b=h.next();!b.done;b=h.next()){var w=md(b.value,2),D=(m=w[0],w[1]),S=m.level;p=S===void 0?0:S,N.setNodes(o,{level:p+1},{at:D})}}catch(C){u={error:C}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=md(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[ult,slt],elemsToHtml:[llt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(a){return!!ot.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return I2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=I2(s);l==="ul"||l==="ol";)l=I2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},fR=as(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[p]=C[y]=C[g]=C[v]=C[h]=!1;var O=typeof se=="object"&&se&&se.Object===Object&&se,T=typeof self=="object"&&self&&self.Object===Object&&self,R=O||T||Function("return this")(),H=e&&!e.nodeType&&e,M=H&&t&&!t.nodeType&&t,K=M&&M.exports===H,U=K&&O.process,W=function(){try{return U&&U.binding&&U.binding("util")}catch{}}(),q=W&&W.isTypedArray;function nt(_,I){for(var Z=-1,ht=_==null?0:_.length;++Zz))return!1;var ut=Pt.get(_);if(ut&&Pt.get(I))return ut==I;var Mt=-1,pe=!0,ne=2&Z?new rn:void 0;for(Pt.set(_,I),Pt.set(I,_);++Mt-1},En.prototype.set=function(_,I){var Z=this.__data__,ht=di(Z,_);return ht<0?(++this.size,Z.push([_,I])):Z[ht][1]=I,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new wn,map:new(ye||En),string:new wn}},Fn.prototype.delete=function(_){var I=Mr(this,_).delete(_);return this.size-=I?1:0,I},Fn.prototype.get=function(_){return Mr(this,_).get(_)},Fn.prototype.has=function(_){return Mr(this,_).has(_)},Fn.prototype.set=function(_,I){var Z=Mr(this,_),ht=Z.size;return Z.set(_,I),this.size+=Z.size==ht?0:1,this},rn.prototype.add=rn.prototype.push=function(_){return this.__data__.set(_,n),this},rn.prototype.has=function(_){return this.__data__.has(_)},hr.prototype.clear=function(){this.__data__=new En,this.size=0},hr.prototype.delete=function(_){var I=this.__data__,Z=I.delete(_);return this.size=I.size,Z},hr.prototype.get=function(_){return this.__data__.get(_)},hr.prototype.has=function(_){return this.__data__.has(_)},hr.prototype.set=function(_,I){var Z=this.__data__;if(Z instanceof En){var ht=Z.__data__;if(!ye||ht.length<199)return ht.push([_,I]),this.size=++Z.size,this;Z=this.__data__=new Fn(ht)}return Z.set(_,I),this.size=Z.size,this};var bh=Ot?function(_){return _==null?[]:(_=Object(_),function(I,Z){for(var ht=-1,ee=I==null?0:I.length,Pt=0,F=[];++ht-1&&_%1==0&&_-1&&_%1==0&&_<=r}function Eh(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function hi(_){return _!=null&&typeof _=="object"}var so=q?function(_){return function(I){return _(I)}}(q):function(_){return hi(_)&&uo(_.length)&&!!C[Lo(_)]};function Dh(_){return(I=_)!=null&&uo(I.length)&&!xc(I)?Cc(_):Rr(_);var I}t.exports=function(_,I){return Va(_,I)}});qn("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),qn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var IB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dR(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,lg,m0=function(t){return t&&t.Math==Math&&t},_t=m0(typeof globalThis=="object"&&globalThis)||m0(typeof window=="object"&&window)||m0(typeof self=="object"&&self)||m0(typeof IB=="object"&&IB)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch{return!0}},Ba=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Cf=Function.prototype.call,We=Cf.bind?Cf.bind(Cf):function(){return Cf.apply(Cf,arguments)},LB={}.propertyIsEnumerable,RB=Object.getOwnPropertyDescriptor,Tlt={f:RB&&!LB.call({1:2},1)?function(t){var e=RB(this,t);return!!e&&e.enumerable}:LB},LC=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},pR=Function.prototype,W6=pR.bind,G6=pR.call,_lt=W6&&W6.bind(G6),Rt=W6?function(t){return t&&_lt(G6,t)}:function(t){return t&&function(){return G6.apply(t,arguments)}},Plt=Rt({}.toString),jlt=Rt("".slice),da=function(t){return jlt(Plt(t),8,-1)},L2=_t.Object,Nlt=Rt("".split),hR=Ye(function(){return!L2("z").propertyIsEnumerable(0)})?function(t){return da(t)=="String"?Nlt(t,""):L2(t)}:L2,Ilt=_t.TypeError,Fa=function(t){if(t==null)throw Ilt("Can't call method on "+t);return t},uh=function(t){return hR(Fa(t))},vn=function(t){return typeof t=="function"},xr=function(t){return typeof t=="object"?t!==null:vn(t)},Llt=function(t){return vn(t)?t:void 0},sh=function(t,e){return arguments.length<2?Llt(_t[t]):_t[t]&&_t[t][e]},gR=Rt({}.isPrototypeOf),R2=sh("navigator","userAgent")||"",MB=_t.process,zB=_t.Deno,$B=MB&&MB.versions||zB&&zB.version,HB=$B&&$B.v8;HB&&(lg=(ji=HB.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!lg&&R2&&(!(ji=R2.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=R2.match(/Chrome\/(\d+)/))&&(lg=+ji[1]);var q6=lg,K6=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q6&&q6<41}),RC=K6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Rlt=_t.Object,M2=RC?function(t){return typeof t=="symbol"}:function(t){var e=sh("Symbol");return vn(e)&&gR(e.prototype,Rlt(t))},Mlt=_t.String,vR=function(t){try{return Mlt(t)}catch{return"Object"}},zlt=_t.TypeError,yR=function(t){if(vn(t))return t;throw zlt(vR(t)+" is not a function")},MC=function(t,e){var n=t[e];return n==null?void 0:yR(n)},$lt=_t.TypeError,Hlt=Object.defineProperty,zC=function(t,e){try{Hlt(_t,t,{value:e,configurable:!0,writable:!0})}catch{_t[t]=e}return e},pa=_t["__core-js_shared__"]||zC("__core-js_shared__",{}),$C=dR(function(t){(t.exports=function(e,n){return pa[e]||(pa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Vlt=_t.Object,HC=function(t){return Vlt(Fa(t))},Ult=Rt({}.hasOwnProperty),Or=Object.hasOwn||function(t,e){return Ult(HC(t),e)},Wlt=0,Glt=Math.random(),qlt=Rt(1 .toString),mR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+qlt(++Wlt+Glt,36)},Sf=$C("wks"),Ru=_t.Symbol,VB=Ru&&Ru.for,Klt=RC?Ru:Ru&&Ru.withoutSetter||mR,Nr=function(t){if(!Or(Sf,t)||!K6&&typeof Sf[t]!="string"){var e="Symbol."+t;K6&&Or(Ru,t)?Sf[t]=Ru[t]:Sf[t]=RC&&VB?VB(e):Klt(e)}return Sf[t]},Ylt=_t.TypeError,Xlt=Nr("toPrimitive"),VC=function(t){var e=function(n,r){if(!xr(n)||M2(n))return n;var o,i=MC(n,Xlt);if(i){if(r===void 0&&(r="default"),o=We(i,n,r),!xr(o)||M2(o))return o;throw Ylt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&vn(s=a.toString)&&!xr(l=We(s,a))||vn(s=a.valueOf)&&!xr(l=We(s,a))||u!=="string"&&vn(s=a.toString)&&!xr(l=We(s,a)))return l;throw $lt("Can't convert object to primitive value")}(n,r)}(t,"string");return M2(e)?e:e+""},Y6=_t.document,Zlt=xr(Y6)&&xr(Y6.createElement),UC=function(t){return Zlt?Y6.createElement(t):{}},bR=!Ba&&!Ye(function(){return Object.defineProperty(UC("div"),"a",{get:function(){return 7}}).a!=7}),UB=Object.getOwnPropertyDescriptor,wR={f:Ba?UB:function(t,e){if(t=uh(t),e=VC(e),bR)try{return UB(t,e)}catch{}if(Or(t,e))return LC(!We(Tlt.f,t,e),t[e])}},Jlt=_t.String,Qlt=_t.TypeError,kr=function(t){if(xr(t))return t;throw Qlt(Jlt(t)+" is not an object")},tct=_t.TypeError,WB=Object.defineProperty,lh={f:Ba?WB:function(t,e,n){if(kr(t),e=VC(e),kr(n),bR)try{return WB(t,e,n)}catch{}if("get"in n||"set"in n)throw tct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Xl=Ba?function(t,e,n){return lh.f(t,e,LC(1,n))}:function(t,e,n){return t[e]=n,t},ect=Rt(Function.toString);vn(pa.inspectSource)||(pa.inspectSource=function(t){return ect(t)});var Uv,bd,Wv,WC=pa.inspectSource,GB=_t.WeakMap,nct=vn(GB)&&/native code/.test(WC(GB)),qB=$C("keys"),ER=function(t){return qB[t]||(qB[t]=mR(t))},GC={},X6=_t.TypeError,rct=_t.WeakMap;if(nct||pa.state){var eu=pa.state||(pa.state=new rct),oct=Rt(eu.get),KB=Rt(eu.has),ict=Rt(eu.set);Uv=function(t,e){if(KB(eu,t))throw new X6("Object already initialized");return e.facade=t,ict(eu,t,e),e},bd=function(t){return oct(eu,t)||{}},Wv=function(t){return KB(eu,t)}}else{var Hs=ER("state");GC[Hs]=!0,Uv=function(t,e){if(Or(t,Hs))throw new X6("Object already initialized");return e.facade=t,Xl(t,Hs,e),e},bd=function(t){return Or(t,Hs)?t[Hs]:{}},Wv=function(t){return Or(t,Hs)}}var Z6={set:Uv,get:bd,has:Wv,enforce:function(t){return Wv(t)?bd(t):Uv(t,{})},getterFor:function(t){return function(e){var n;if(!xr(e)||(n=bd(e)).type!==t)throw X6("Incompatible receiver, "+t+" required");return n}}},DR=Function.prototype,act=Ba&&Object.getOwnPropertyDescriptor,z2=Or(DR,"name"),qC={EXISTS:z2,PROPER:z2&&function(){}.name==="something",CONFIGURABLE:z2&&(!Ba||Ba&&act(DR,"name").configurable)},op=dR(function(t){var e=qC.CONFIGURABLE,n=Z6.get,r=Z6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;vn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Or(u,"name")||e&&u.name!==d)&&Xl(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==_t?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Xl(i,a,u)):f?i[a]=u:zC(a,u)})(Function.prototype,"toString",function(){return vn(this)&&n(this).source||WC(this)})}),uct=Math.ceil,sct=Math.floor,Dy=function(t){var e=+t;return e!=e||e===0?0:(e>0?sct:uct)(e)},lct=Math.max,cct=Math.min,ip=function(t,e){var n=Dy(t);return n<0?lct(n+e,0):cct(n,e)},fct=Math.min,KC=function(t){return t>0?fct(Dy(t),9007199254740991):0},Cy=function(t){return KC(t.length)},dct=function(t){return function(e,n,r){var o,i=uh(e),a=Cy(i),u=ip(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},pct=dct(!1),YB=Rt([].push),CR=function(t,e){var n,r=uh(t),o=0,i=[];for(n in r)!Or(GC,n)&&Or(r,n)&&YB(i,n);for(;e.length>o;)Or(r,n=e[o++])&&(~pct(i,n)||YB(i,n));return i},Gv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hct=Gv.concat("length","prototype"),gct={f:Object.getOwnPropertyNames||function(t){return CR(t,hct)}},vct={f:Object.getOwnPropertySymbols},yct=Rt([].concat),mct=sh("Reflect","ownKeys")||function(t){var e=gct.f(kr(t)),n=vct.f;return n?yct(e,n(t)):e},bct=function(t,e){for(var n=mct(e),r=lh.f,o=wR.f,i=0;i3})},{anchor:function(t){return e=t,n=An(Fa(this)),r=""+n+"";var e,n,r}});var b0,xR=function(){var t=kr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ZC=_t.RegExp,J6=Ye(function(){var t=ZC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Pct=J6||Ye(function(){return!ZC("a","y").sticky}),AR={BROKEN_CARET:J6||Ye(function(){var t=ZC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Pct,UNSUPPORTED_Y:J6},jct=Object.keys||function(t){return CR(t,Gv)},Nct=Ba?Object.defineProperties:function(t,e){kr(t);for(var n,r=uh(e),o=jct(e),i=o.length,a=0;i>a;)lh.f(t,n=o[a++],r[n]);return t},Ict=sh("document","documentElement"),OR=ER("IE_PROTO"),$2=function(){},kR=function(t){return""},XB=function(t){t.write(kR("")),t.close();var e=t.parentWindow.Object;return t=null,e},cg=function(){try{b0=new ActiveXObject("htmlfile")}catch{}var t,e;cg=typeof document<"u"?document.domain&&b0?XB(b0):((e=UC("iframe")).style.display="none",Ict.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(kR("document.F=Object")),t.close(),t.F):XB(b0);for(var n=Gv.length;n--;)delete cg.prototype[Gv[n]];return cg()};GC[OR]=!0;var ZB,H2,BR=Object.create||function(t,e){var n;return t!==null?($2.prototype=kr(t),n=new $2,$2.prototype=null,n[OR]=t):n=cg(),e===void 0?n:Nct(n,e)},Lct=_t.RegExp,Rct=Ye(function(){var t=Lct(".","s");return!(t.dotAll&&t.exec(` +`)&&t.flags==="s")}),Mct=_t.RegExp,zct=Ye(function(){var t=Mct("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),$ct=Z6.get,Hct=$C("native-string-replace",String.prototype.replace),qv=RegExp.prototype.exec,Q6=qv,Vct=Rt("".charAt),Uct=Rt("".indexOf),Wct=Rt("".replace),V2=Rt("".slice),U2=(H2=/b*/g,We(qv,ZB=/a/,"a"),We(qv,H2,"a"),ZB.lastIndex!==0||H2.lastIndex!==0),JB=AR.BROKEN_CARET,W2=/()??/.exec("")[1]!==void 0;(U2||W2||JB||Rct||zct)&&(Q6=function(t){var e,n,r,o,i,a,u,s=this,l=$ct(s),c=An(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=We(Q6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=JB&&s.sticky,y=We(xR,s),g=s.source,v=0,m=c;if(d&&(y=Wct(y,"y",""),Uct(y,"g")===-1&&(y+="g"),m=V2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Vct(c,s.lastIndex-1)!==` +`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),W2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),U2&&(r=s.lastIndex),o=We(qv,d?n:s,m),d?o?(o.input=V2(o.input,v),o[0]=V2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:U2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),W2&&o&&o.length>1&&We(Hct,o[0],n,function(){for(i=1;i=51||!Ye(function(){var e=[];return(e.constructor={})[Yct]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Xct=Rt([].slice),Zct=t8("slice"),Jct=Nr("species"),G2=_t.Array,Qct=Math.max;function no(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function QB(t){var e=t.selection;if(e==null)return!1;var n=no(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=no(n,2)[1],o=E.start(t,r);if(Bt.equals(e.anchor,o))return!0}return!1}function tF(t,e){var n,r,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}Ta({target:"Array",proto:!0,forced:!Zct},{slice:function(t,e){var n,r,o,i=uh(this),a=Cy(i),u=ip(t,a),s=ip(e===void 0?a:e,a);if(Kv(i)&&(n=i.constructor,(QC(n)&&(n===G2||Kv(n.prototype))||xr(n)&&(n=n[Jct])===null)&&(n=void 0),n===G2||n===void 0))return Xct(i,u,s);for(r=new(n===void 0?G2:n)(Qct(s-u,0)),o=0;uh;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:rF(w,p)}else switch(t){case 4:return!1;case 7:rF(w,p)}return i?-1:r||o?o:w}},Sy={forEach:Ni(0),map:Ni(1),filter:Ni(2),some:Ni(3),every:Ni(4),find:Ni(5),findIndex:Ni(6),filterReject:Ni(7)},nft=Sy.map;Ta({target:"Array",proto:!0,forced:!t8("map")},{map:function(t){return nft(this,t,arguments.length>1?arguments[1]:void 0)}});var rft=YC?{}.toString:function(){return"[object "+XC(this)+"]"};function xy(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function PR(t){return xy(t).every(function(e){return!!e.isHeader})}YC||op(Object.prototype,"toString",rft,{unsafe:!0});var oft=qC.PROPER,t3=RegExp.prototype,jR=t3.toString,ift=Rt(xR),aft=Ye(function(){return jR.call({source:"a",flags:"b"})!="/a/b"}),uft=oft&&jR.name!="toString";(aft||uft)&&op(RegExp.prototype,"toString",function(){var t=kr(this),e=An(t.source),n=t.flags;return"/"+e+"/"+An(n===void 0&&gR(t3,t)&&!("flags"in t3)?ift(t):n)},{unsafe:!0});var e3=Nr("unscopables"),n3=Array.prototype;n3[e3]==null&&lh.f(n3,e3,{configurable:!0,value:BR(null)});var sft=Sy.find,oF=!0;"find"in[]&&Array(1).find(function(){oF=!1}),Ta({target:"Array",proto:!0,forced:oF},{find:function(t){return sft(this,t,arguments.length>1?arguments[1]:void 0)}}),n3[e3].find=!0;var e8=Function.prototype,iF=e8.apply,lft=e8.bind,aF=e8.call,NR=typeof Reflect=="object"&&Reflect.apply||(lft?aF.bind(iF):function(){return aF.apply(iF,arguments)}),cft=Nr("species"),q2=RegExp.prototype,IR=function(t,e,n,r){var o=Nr(t),i=!Ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ye(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[cft]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Rt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=Rt(l),g=c.exec;return g===ap||g===q2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});op(String.prototype,t,s[0]),op(q2,o,s[1])}r&&Xl(q2[o],"sham",!0)},fft=Nr("match"),dft=_t.TypeError,pft=Nr("species"),hft=Rt("".charAt),uF=Rt("".charCodeAt),gft=Rt("".slice),vft=function(t){return function(e,n){var r,o,i=An(Fa(e)),a=Dy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=uF(i,a))<55296||r>56319||a+1===u||(o=uF(i,a+1))<56320||o>57343?t?hft(i,a):r:t?gft(i,a,a+2):o-56320+(r-55296<<10)+65536}},yft=vft(!0),LR=function(t,e,n){return e+(n?yft(t,e).length:1)},mft=_t.Array,bft=Math.max,sF=function(t,e,n){for(var r=Cy(t),o=ip(e,r),i=ip(n===void 0?r:n,r),a=mft(bft(i-o,0)),u=0;o1||"".split(/.?/).length?function(o,i){var a,u,s=An(Fa(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!xr(a=o)||!((u=a[fft])!==void 0?u:da(a)=="RegExp"))return We(e,s,o,l);for(var c,f,p,d=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,v=new RegExp(o.source,y+"g");(c=We(ap,v,s))&&!((f=v.lastIndex)>g&&(Us(d,Af(s,g,c.index)),c.length>1&&c.index=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&Dft(v,"")||Us(d,""):Us(d,Af(s,g)),d.length>l?sF(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:We(e,this,o,i)}:e,[function(o,i){var a=Fa(this),u=o==null?void 0:MC(o,t);return u?We(u,o,a,i):We(r,An(a),o,i)},function(o,i){var a=kr(this),u=An(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var S,C=kr(w).constructor;return C===void 0||(S=kr(C)[pft])==null?D:function(O){if(QC(O))return O;throw dft(vR(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Vs?"g":"y"),p=new l(Vs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return r3(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g=0,v=Bt.compare(f,y)<=0&&Bt.compare(f,d)>=0;return!!(g&&v&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=bt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},bt("table",{width:i,contentEditable:r},bt("colgroup",null,xy(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},Bft={type:"table-row",renderElem:function(t,e,n){return bt("tr",null,e)}},Fft={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var y=A.getParentNode(p,d);if(y==null)return!1;var g=A.getParentNode(p,y);return g!=null&&xy(g).some(function(v){return v===d})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ku(function(p){var d=this.elm;if(d!=null){var y=d.getBoundingClientRect(),g=y.left,v=y.width,m=y.top,h=y.height,b=p.clientX,w=p.clientY;up||(b>g+v-5&&bm&&w1?arguments[1]:void 0)}});var Pft=Math.floor,Y2=Rt("".charAt),jft=Rt("".replace),X2=Rt("".slice),Nft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ift=/\$([$&'`]|\d{1,2})/g,Lft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Ift;return o!==void 0&&(o=HC(o),s=Nft),jft(i,s,function(l,c){var f;switch(Y2(c,0)){case"$":return"$";case"&":return t;case"`":return X2(e,0,n);case"'":return X2(e,a);case"<":f=o[X2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Pft(p/10);return d===0?l:d<=u?r[d-1]===void 0?Y2(c,1):r[d-1]+Y2(c,1):l}f=r[p-1]}return f===void 0?"":f})},i3=Nr("replace"),Rft=Math.max,Mft=Math.min,zft=Rt([].concat),Z2=Rt([].push),cF=Rt("".indexOf),fF=Rt("".slice),$ft="a".replace(/./,"$0")==="$0",dF=!!/./[i3]&&/./[i3]("a","$0")==="";IR("replace",function(t,e,n){var r=dF?"$":"$0";return[function(o,i){var a=Fa(this),u=o==null?void 0:MC(o,i3);return u?We(u,o,a,i):We(e,An(a),o,i)},function(o,i){var a=kr(this),u=An(o);if(typeof i=="string"&&cF(i,r)===-1&&cF(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=vn(i);l||(i=An(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=r3(a,u);if(d===null||(Z2(p,d),!c))break;An(d[0])===""&&(a.lastIndex=LR(u,KC(a.lastIndex),f))}for(var y,g="",v=0,m=0;m=v&&(g+=fF(u,v,b)+O,v=b+h.length)}return g+fF(u,v)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$")!=="7"})||!$ft||dF);var Hft={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(u){return!!ot.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:MR(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Vft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Uft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=B('
        '),o=B("0 × 0"),i=B("
        "),a=0;a<10;a++){for(var u=B(""),s=0;s<10;s++){var l=B("");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;o[0].innerHTML=d+1+" × "+(y+1),i.children().each(function(g){B(g).children().each(function(v){var m=B(v),h=m.dataset(),b=h.x,w=h.y;b<=d&&w<=y?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,y=p.y;n.insertTable(e,y+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),qft=function(){function t(){this.title=tt("tableModule.insertRow"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),pF={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},J2=UC("span").classList,hF=J2&&J2.constructor&&J2.constructor.prototype,Yft=hF===Object.prototype?void 0:hF,Xft=Sy.forEach,Zft=function(t,e){var n=[].forEach;return!!n&&Ye(function(){n.call(null,function(){throw 1},1)})}(),Q2=Zft?[].forEach:function(t){return Xft(this,t,arguments.length>1?arguments[1]:void 0)},UR=function(t){if(t&&t.forEach!==Q2)try{Xl(t,"forEach",Q2)}catch{t.forEach=Q2}};for(var tw in pF)pF[tw]&&UR(_t[tw]&&_t[tw].prototype);UR(Yft);var Jft=function(){function t(){this.title=tt("tableModule.insertCol"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ct.isElement(l)&&(l.children||[]).forEach(function(f){var p=A.findPath(e,f);if(p.length===a.length&&fR(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&PR(s)&&(d.isHeader=!0),N.insertNodes(e,d,{at:p})}})})}}},t}(),Qft=function(){function t(){this.title=tt("tableModule.deleteCol"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=no(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=no(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ct.isElement(c)&&(c.children||[]).forEach(function(f){var p=A.findPath(e,f);p.length===a.length&&fR(p.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:p})})})}}},t}(),tdt=function(){function t(){this.title=tt("tableModule.header"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&PR(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&xy(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),edt=function(){function t(){this.title=tt("tableModule.widthAuto"),this.iconSvg='',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),ndt={renderElems:[kft,Bft,Fft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return''+e+"
        "}},{type:"table-row",elemToHtml:function(t,e){return""+e+""}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+""}}],preParseHtml:[Tft],parseElemsHtml:[Hft,Vft,Uft],menus:[{key:"insertTable",factory:function(){return new Wft}},{key:"deleteTable",factory:function(){return new Gft}},{key:"insertTableRow",factory:function(){return new qft}},{key:"deleteTableRow",factory:function(){return new Kft}},{key:"insertTableCol",factory:function(){return new Jft}},{key:"deleteTableCol",factory:function(){return new Qft}},{key:"tableHeader",factory:function(){return new tdt}},{key:"tableFullWidth",factory:function(){return new edt}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(` +`)},s.deleteBackward=function(l){if(!QB(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=tF(s,f),d=tF(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var y=A.genEmptyParagraph();N.insertNodes(s,y,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){QB(s)||r(l)},s.normalizeNode=function(l){var c=no(l,2),f=c[0],p=c[1];if(A.getNodeType(f)!=="table")return o([f,p]);if(A.isLastNode(s,f)){var d=A.genEmptyParagraph();N.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===` +`||/]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(j.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Q.string(c).length!==0){var d=A.findPath(s,c),y={anchor:E.start(s,d),focus:E.end(s,d)};s.select(y)}else u();else u()}else u()}else u()},s}};qn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party