From 478fd60fb0aff48698ac14782c8dcfda7c682cee Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 13 Jul 2024 14:42:37 +0800 Subject: [PATCH] 1 --- src/api.js | 4 +- .../{Bill-3vIMWlbv.js => Bill-zne2XV8t.js} | 2 +- ...ses-_NXm-IAa.js => Businesses-Iam6zJOf.js} | 2 +- .../{api-bQkc2cji.js => api-JoJiEZDD.js} | 2 +- ...dity-lkdEesBe.js => commodity-yuswbrUH.js} | 2 +- ...inance-DhelbR3x.js => finance-qam1zv4e.js} | 2 +- .../{home-zIHBFROr.js => home-NxFLaemn.js} | 2 +- .../{index-eScbHr-2.js => index-5L8dO1EA.js} | 6 +-- .../{index-7n080XYI.js => index-7FieOz9M.js} | 2 +- .../{login-30raI85w.js => login-zv3um6sN.js} | 2 +- .../{order-Wz9SA96I.js => order-3r3dGV_U.js} | 2 +- ...gin-OQHIP9eQ.js => storeLogin-DQZxzTUs.js} | 2 +- ...ail-8UffmR39.js => townDetail-NRwv5Hf-.js} | 50 +++++++++---------- ...l-kb8bXYp3.css => townDetail-ixelsG0P.css} | 2 +- yusi/index.html | 2 +- 15 files changed, 42 insertions(+), 42 deletions(-) rename yusi/assets/{Bill-3vIMWlbv.js => Bill-zne2XV8t.js} (97%) rename yusi/assets/{Businesses-_NXm-IAa.js => Businesses-Iam6zJOf.js} (98%) rename yusi/assets/{api-bQkc2cji.js => api-JoJiEZDD.js} (97%) rename yusi/assets/{commodity-lkdEesBe.js => commodity-yuswbrUH.js} (98%) rename yusi/assets/{finance-DhelbR3x.js => finance-qam1zv4e.js} (98%) rename yusi/assets/{home-zIHBFROr.js => home-NxFLaemn.js} (92%) rename yusi/assets/{index-eScbHr-2.js => index-5L8dO1EA.js} (98%) rename yusi/assets/{index-7n080XYI.js => index-7FieOz9M.js} (84%) rename yusi/assets/{login-30raI85w.js => login-zv3um6sN.js} (99%) rename yusi/assets/{order-Wz9SA96I.js => order-3r3dGV_U.js} (99%) rename yusi/assets/{storeLogin-OQHIP9eQ.js => storeLogin-DQZxzTUs.js} (99%) rename yusi/assets/{townDetail-8UffmR39.js => townDetail-NRwv5Hf-.js} (75%) rename yusi/assets/{townDetail-kb8bXYp3.css => townDetail-ixelsG0P.css} (95%) diff --git a/src/api.js b/src/api.js index 36521ba..2b1c18f 100644 --- a/src/api.js +++ b/src/api.js @@ -8,8 +8,8 @@ let expire = localStorage.getItem("TRADE_USER") ? JSON.parse(localStorage.getIte // 创建axios 实例 const instacne = axios.create({ - baseURL: "http://192.168.1.22:8545", - // baseURL: "https://multi-store.lihaink.cn", + // baseURL: "http://192.168.1.22:8545", + baseURL: "https://multi-store.lihaink.cn", // baseURL: "https://shop.lihaink.cn/", timeout: 30000, }); diff --git a/yusi/assets/Bill-3vIMWlbv.js b/yusi/assets/Bill-zne2XV8t.js similarity index 97% rename from yusi/assets/Bill-3vIMWlbv.js rename to yusi/assets/Bill-zne2XV8t.js index 8cec88e..83eac6c 100644 --- a/yusi/assets/Bill-3vIMWlbv.js +++ b/yusi/assets/Bill-zne2XV8t.js @@ -1 +1 @@ -import{b as i,f as o,d as t,t as s}from"./index-eScbHr-2.js";const a="/yusi/assets/bg-sv6D9nMu.png",e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAGMklEQVRogdWaSW9cRRDH//PmjT0exwkBYsIFAcE3kOBA2GQIu5AixAUBMtuX4FPwBbihHKxIiAtCCiIg9ohAJLYDFwd8QIQtgSSOx+PZjAr9K/pT9Dzbs8RDS6XRvJn3un6vqrqru7q0sFTHkFoO4CYANwO4HsAsgBkAFQCTANYBtACsAPgNwK8AfgCwDKDTjwqLc7V/fc8H5LD7bwVwEMAtALoAmlS6TcXt2gaAEoAMQBnADQAOAHiQ1w3qJIDveV/fyvTTqgDmARyigmsAzgJoCEyHsiEwJcKUabEJPms/gOcI/gGAE3zWSGFMmXsBHGbHlwDUCbNGkCbf7mYwOWFMpijmNw8BeATA2wA+571Dh7kWwEsA9gG4SBCHaQSrOEw3AZMJjFqnSphVALsAPAngbgBHAJwbJswdAJ6lwr8LzCot0pAAV6t0w5tVGAWaJMwUX46/oD0AXgFwFMC3w4Axkz8O4DzlQsIqDqKxoi6mMOpqHjsK5C/Hn7sXwPOMq3cHgXmKMWJm/oswahXvMAZ9N7hYhMmChdzd/HnrwdImDxP2rX5gHhOQPwlzgcOtu1cKxC3S5XMiDAiiFmrJ4OGSir372O/x7cBYjDxKkGiVVXGvlnTaDa7lECkYt1BbYHJ+L4q7EvX6A8DXW4HZx2A/LxAaKz4UxxiJbpUaUlUp/+zSUt2Em0YQd02bk37mYHS5ZaEzu+FlKqsQGif14F7thEU2mxvifztiFXtug/2sst+L1MN1Mv1eWFiql/Sh0TLmk9cwd3KIFYFYK5jhtzy5JaBKwQq9hnMdymcZ0ydSlpnizO4AK8Eaa5tYY5BWZKW1YCW3lMnhhaV6NQUzzwcphE6KGiPdIYJEK/lI2JE+G9RDgS5Rj/kIU2EGqxCapsRgHzZICqgTgNbx31gyObSwVM8V5jZ+roZ0Is7so7BIEZBaqBmAXDIuQy7DHBSANZmBixLHUbYI0w5A66KryV0OU+FCqRdIUXoyaiBI3ykLOcyBhaV6Jecyt1NgDY2TK928T9UjZSWDvTGnVRRCk7tRB/xWrbMRYNqiq0MdyJhaR4j2DrlWEdSG6NQOUPa532CuC8Qd8dFxAIognTAw+OdsxqVqTO7GxSKxRTBNTnf7aKYAcS4ZJzdLies+kTFpK0rbx7XF5UYl40ig64v/U1O9WxlHg5IsZTNZCarsZEvpk4X9hGbGNKYsF7MANE4tboioXMq4xs9Fxg2sF0A56H3WLp6Rvatc/lQeIwuldkNzWXmanLEfT8uer+9f+R/95p2KHe23HEAqoq+NyKdN2R/54yRFrZTLQ3bSzcqJLd2K6GzXlzMmasuyeV0NlirvUOykdj8ropvqu7w4V2v54uwLpjVeWohAVzqGiioGE7LJ7mWQU5CV5necRaf5Y403TBbAjAooziVxc31KdJzmPd8ojE2cn/LHCFRNuNyogFIB7yBVsUhNdP3MXExhrH1EC+wSqYnb6cAwCqAiizjEtOg2w/986A9QGFtLv2OpNGWGMi3+GYftYQFFi3gfWiKcFgjX8djiXO1yuTxuz5qr3cOKVbPHpgZE+Xgd28y8NVFMjVoOohB7KOd0axaJjXNT6nU+wG64irJbrFQLc1I/g0PKpfIwd3jcKoTrY9ePLM7V9CUmSxq2af4mgGfCii6+wQY/W6EkUbSoi/WZkrwIda2qWERB9vLzaCxn9IIBx+29rGc6SJbw6dTWbT+Vs6Jgd2tcTXkPwFcppYvKgMf5Vg6GbLUSJrFYQesklt8KEzPgPORYBqPBriAne5UAN4MB3c1Wog9IxxPScT2ci4k7POpuveIkDzO7xYODaJy8P2i1GTwpYXH0tED4G9SSRzMAxV2eaJU8WKUqQa+xYt/f8JRlUBhrXwL4CcCLrFjpaYp6qOE0E7VJb7FkPhHixGd2H8Gsyv0aT0Bt2rZz3OQXAK+yuPMEO40FqehuvSyTh6FYg97EfjvGeW8kZ2dA5T6myS2O7ucbrCcOOLQLLJMK+hoV/4Sy7YNw/R7RqjP1saC8HcCdrCa0etR0FCam9BWeNzvF8zH/JI39tEEPz1nHpoSJKWYVBRPbv7bzBDYK+VDuw7eV7sxlbVAxCBN7AYM1AH8DPEPdvBM7sdwAAAAASUVORK5CYII=",c={style:{position:"relative","margin-right":"21px","margin-top":"20px"}},n=t("img",{src:a,style:{width:"100%",position:"absolute",height:"50px"},alt:""},null,-1),g=t("img",{src:e,style:{position:"absolute"},alt:""},null,-1),r=["src"],d={style:{position:"relative",padding:"0 10px",top:"5px","margin-left":"45px"}},l={style:{"font-size":"16px","font-family":"FZCYJ",color:"#A9EDFC"}},x={style:{"font-size":"12px",color:"#8395A4","margin-top":"5px"}},E={__name:"Bill",props:{data:Object},setup(A){return(p,w)=>(i(),o("div",c,[n,g,t("img",{src:`/static/a/${A.data.icon}.png`,style:{position:"absolute",top:"50%",transform:"translate(15px,-30%)"},alt:""},null,8,r),t("div",d,[t("div",l,s(A.data.num),1),t("div",x,s(A.data.text),1)])]))}};export{E as _}; +import{b as i,f as o,d as t,t as s}from"./index-5L8dO1EA.js";const a="/yusi/assets/bg-sv6D9nMu.png",e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAGMklEQVRogdWaSW9cRRDH//PmjT0exwkBYsIFAcE3kOBA2GQIu5AixAUBMtuX4FPwBbihHKxIiAtCCiIg9ohAJLYDFwd8QIQtgSSOx+PZjAr9K/pT9Dzbs8RDS6XRvJn3un6vqrqru7q0sFTHkFoO4CYANwO4HsAsgBkAFQCTANYBtACsAPgNwK8AfgCwDKDTjwqLc7V/fc8H5LD7bwVwEMAtALoAmlS6TcXt2gaAEoAMQBnADQAOAHiQ1w3qJIDveV/fyvTTqgDmARyigmsAzgJoCEyHsiEwJcKUabEJPms/gOcI/gGAE3zWSGFMmXsBHGbHlwDUCbNGkCbf7mYwOWFMpijmNw8BeATA2wA+571Dh7kWwEsA9gG4SBCHaQSrOEw3AZMJjFqnSphVALsAPAngbgBHAJwbJswdAJ6lwr8LzCot0pAAV6t0w5tVGAWaJMwUX46/oD0AXgFwFMC3w4Axkz8O4DzlQsIqDqKxoi6mMOpqHjsK5C/Hn7sXwPOMq3cHgXmKMWJm/oswahXvMAZ9N7hYhMmChdzd/HnrwdImDxP2rX5gHhOQPwlzgcOtu1cKxC3S5XMiDAiiFmrJ4OGSir372O/x7cBYjDxKkGiVVXGvlnTaDa7lECkYt1BbYHJ+L4q7EvX6A8DXW4HZx2A/LxAaKz4UxxiJbpUaUlUp/+zSUt2Em0YQd02bk37mYHS5ZaEzu+FlKqsQGif14F7thEU2mxvifztiFXtug/2sst+L1MN1Mv1eWFiql/Sh0TLmk9cwd3KIFYFYK5jhtzy5JaBKwQq9hnMdymcZ0ydSlpnizO4AK8Eaa5tYY5BWZKW1YCW3lMnhhaV6NQUzzwcphE6KGiPdIYJEK/lI2JE+G9RDgS5Rj/kIU2EGqxCapsRgHzZICqgTgNbx31gyObSwVM8V5jZ+roZ0Is7so7BIEZBaqBmAXDIuQy7DHBSANZmBixLHUbYI0w5A66KryV0OU+FCqRdIUXoyaiBI3ykLOcyBhaV6Jecyt1NgDY2TK928T9UjZSWDvTGnVRRCk7tRB/xWrbMRYNqiq0MdyJhaR4j2DrlWEdSG6NQOUPa532CuC8Qd8dFxAIognTAw+OdsxqVqTO7GxSKxRTBNTnf7aKYAcS4ZJzdLies+kTFpK0rbx7XF5UYl40ig64v/U1O9WxlHg5IsZTNZCarsZEvpk4X9hGbGNKYsF7MANE4tboioXMq4xs9Fxg2sF0A56H3WLp6Rvatc/lQeIwuldkNzWXmanLEfT8uer+9f+R/95p2KHe23HEAqoq+NyKdN2R/54yRFrZTLQ3bSzcqJLd2K6GzXlzMmasuyeV0NlirvUOykdj8ropvqu7w4V2v54uwLpjVeWohAVzqGiioGE7LJ7mWQU5CV5necRaf5Y403TBbAjAooziVxc31KdJzmPd8ojE2cn/LHCFRNuNyogFIB7yBVsUhNdP3MXExhrH1EC+wSqYnb6cAwCqAiizjEtOg2w/986A9QGFtLv2OpNGWGMi3+GYftYQFFi3gfWiKcFgjX8djiXO1yuTxuz5qr3cOKVbPHpgZE+Xgd28y8NVFMjVoOohB7KOd0axaJjXNT6nU+wG64irJbrFQLc1I/g0PKpfIwd3jcKoTrY9ePLM7V9CUmSxq2af4mgGfCii6+wQY/W6EkUbSoi/WZkrwIda2qWERB9vLzaCxn9IIBx+29rGc6SJbw6dTWbT+Vs6Jgd2tcTXkPwFcppYvKgMf5Vg6GbLUSJrFYQesklt8KEzPgPORYBqPBriAne5UAN4MB3c1Wog9IxxPScT2ci4k7POpuveIkDzO7xYODaJy8P2i1GTwpYXH0tED4G9SSRzMAxV2eaJU8WKUqQa+xYt/f8JRlUBhrXwL4CcCLrFjpaYp6qOE0E7VJb7FkPhHixGd2H8Gsyv0aT0Bt2rZz3OQXAK+yuPMEO40FqehuvSyTh6FYg97EfjvGeW8kZ2dA5T6myS2O7ucbrCcOOLQLLJMK+hoV/4Sy7YNw/R7RqjP1saC8HcCdrCa0etR0FCam9BWeNzvF8zH/JI39tEEPz1nHpoSJKWYVBRPbv7bzBDYK+VDuw7eV7sxlbVAxCBN7AYM1AH8DPEPdvBM7sdwAAAAASUVORK5CYII=",c={style:{position:"relative","margin-right":"21px","margin-top":"20px"}},n=t("img",{src:a,style:{width:"100%",position:"absolute",height:"50px"},alt:""},null,-1),g=t("img",{src:e,style:{position:"absolute"},alt:""},null,-1),r=["src"],d={style:{position:"relative",padding:"0 10px",top:"5px","margin-left":"45px"}},l={style:{"font-size":"16px","font-family":"FZCYJ",color:"#A9EDFC"}},x={style:{"font-size":"12px",color:"#8395A4","margin-top":"5px"}},E={__name:"Bill",props:{data:Object},setup(A){return(p,w)=>(i(),o("div",c,[n,g,t("img",{src:`/static/a/${A.data.icon}.png`,style:{position:"absolute",top:"50%",transform:"translate(15px,-30%)"},alt:""},null,8,r),t("div",d,[t("div",l,s(A.data.num),1),t("div",x,s(A.data.text),1)])]))}};export{E as _}; diff --git a/yusi/assets/Businesses-_NXm-IAa.js b/yusi/assets/Businesses-Iam6zJOf.js similarity index 98% rename from yusi/assets/Businesses-_NXm-IAa.js rename to yusi/assets/Businesses-Iam6zJOf.js index 41d214c..4e3fd6d 100644 --- a/yusi/assets/Businesses-_NXm-IAa.js +++ b/yusi/assets/Businesses-Iam6zJOf.js @@ -1 +1 @@ -import{_ as m}from"./TABBG-WY6uizpD.js";import{_ as f,i as v,a as B,u as $,r as D,o as E,j as b,b as g,f as h,k as _,w as C,d as a,z as k,e as w,h as I,n as N,x as S,y as V,B as G}from"./index-eScbHr-2.js";import{m as L,h as R}from"./api-bQkc2cji.js";import"./axios-QLjAsgXu.js";const j=n=>(S("data-v-bc6a521c"),n=n(),V(),n),z={key:0,class:"center"},A={key:1,class:"box"},T={class:"img-cls"},M=j(()=>a("img",{src:m,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),O={class:"content"},q={class:"btns"},F={key:0,class:"table"},H={__name:"Businesses",setup(n){const y=v(!1),o=B();$();let d=v(0),u={};const s=t=>{i.data.splice(0,i.data.length),d.value=t,L({...o.area,status:d.value,limit:50}).then(e=>{u=e.data.list,p(e.data.list)})},x=t=>{t.columnIndex==10&&R({mer_id:u[t.rowIndex].mer_id,...o.area}).then(e=>{o.storeLogin(e.data),G.push("/storeLogin"),console.log(o.userInfo)})},p=t=>{t.forEach((e,l)=>{var c,r;l%2==0?i.data.push([`
${l+1}
`,`
${e.mer_name}
`,`
${e.real_name}
`,`
${e.mer_address}
`,`
${e.mark||"--"}
`,`
${e.is_best?"推荐":"不推荐"}
`,`
${e.create_time}
`,`
${e.margin}
`,`
${((c=e.merchantCategory)==null?void 0:c.category_name)||"--"}
`,`
${e.status?"开启":"关闭"}
`,"
登录
"]):i.data.push([`
${l+1}
`,`
${e.mer_name}
`,`
${e.real_name}
`,`
${e.mer_address}
`,`
${e.mark||"--"}
`,`
${e.is_best?"推荐":"不推荐"}
`,`
${e.create_time}
`,`
${e.margin}
`,`
${((r=e.merchantCategory)==null?void 0:r.category_name)||"--"}
`,`
${e.status?"开启":"关闭"}
`,"
登录
"])})},i=D({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,header:["
ID
","
商户名称
","
商户姓名
","
商户属地
","
备注
","
推荐
","
创建时间
","
押金
","
商户分类
","
开启/关闭
","
操作
"],data:[]});return E(()=>{s(1)}),(t,e)=>{const l=b("dv-loading"),c=b("dv-scroll-board");return y.value?(g(),h("div",z,[_(l,null,{default:C(()=>[N("正在登陆商户...")]),_:1})])):(g(),h("div",A,[a("div",T,[M,a("div",O,[a("div",q,[a("div",{class:k(["btn",w(d)?"act-btn":""]),onClick:e[0]||(e[0]=r=>s(1))},"正常开启的商户",2),a("div",{class:k(["btn",w(d)?"":"act-btn"]),onClick:e[1]||(e[1]=r=>s(0))},"已关闭的商户",2)]),i.data.length?(g(),h("div",F,[_(c,{config:i,onClick:x,style:{width:"95vw",height:"100%"}},null,8,["config"])])):I("",!0)])])]))}}},U=f(H,[["__scopeId","data-v-bc6a521c"]]);export{U as default}; +import{_ as m}from"./TABBG-WY6uizpD.js";import{_ as f,i as v,a as B,u as $,r as D,o as E,j as b,b as g,f as h,k as _,w as C,d as a,z as k,e as w,h as I,n as N,x as S,y as V,B as G}from"./index-5L8dO1EA.js";import{m as L,h as R}from"./api-JoJiEZDD.js";import"./axios-QLjAsgXu.js";const j=n=>(S("data-v-bc6a521c"),n=n(),V(),n),z={key:0,class:"center"},A={key:1,class:"box"},T={class:"img-cls"},M=j(()=>a("img",{src:m,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),O={class:"content"},q={class:"btns"},F={key:0,class:"table"},H={__name:"Businesses",setup(n){const y=v(!1),o=B();$();let d=v(0),u={};const s=t=>{i.data.splice(0,i.data.length),d.value=t,L({...o.area,status:d.value,limit:50}).then(e=>{u=e.data.list,p(e.data.list)})},x=t=>{t.columnIndex==10&&R({mer_id:u[t.rowIndex].mer_id,...o.area}).then(e=>{o.storeLogin(e.data),G.push("/storeLogin"),console.log(o.userInfo)})},p=t=>{t.forEach((e,l)=>{var c,r;l%2==0?i.data.push([`
${l+1}
`,`
${e.mer_name}
`,`
${e.real_name}
`,`
${e.mer_address}
`,`
${e.mark||"--"}
`,`
${e.is_best?"推荐":"不推荐"}
`,`
${e.create_time}
`,`
${e.margin}
`,`
${((c=e.merchantCategory)==null?void 0:c.category_name)||"--"}
`,`
${e.status?"开启":"关闭"}
`,"
登录
"]):i.data.push([`
${l+1}
`,`
${e.mer_name}
`,`
${e.real_name}
`,`
${e.mer_address}
`,`
${e.mark||"--"}
`,`
${e.is_best?"推荐":"不推荐"}
`,`
${e.create_time}
`,`
${e.margin}
`,`
${((r=e.merchantCategory)==null?void 0:r.category_name)||"--"}
`,`
${e.status?"开启":"关闭"}
`,"
登录
"])})},i=D({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,header:["
ID
","
商户名称
","
商户姓名
","
商户属地
","
备注
","
推荐
","
创建时间
","
押金
","
商户分类
","
开启/关闭
","
操作
"],data:[]});return E(()=>{s(1)}),(t,e)=>{const l=b("dv-loading"),c=b("dv-scroll-board");return y.value?(g(),h("div",z,[_(l,null,{default:C(()=>[N("正在登陆商户...")]),_:1})])):(g(),h("div",A,[a("div",T,[M,a("div",O,[a("div",q,[a("div",{class:k(["btn",w(d)?"act-btn":""]),onClick:e[0]||(e[0]=r=>s(1))},"正常开启的商户",2),a("div",{class:k(["btn",w(d)?"":"act-btn"]),onClick:e[1]||(e[1]=r=>s(0))},"已关闭的商户",2)]),i.data.length?(g(),h("div",F,[_(c,{config:i,onClick:x,style:{width:"95vw",height:"100%"}},null,8,["config"])])):I("",!0)])])]))}}},U=f(H,[["__scopeId","data-v-bc6a521c"]]);export{U as default}; diff --git a/yusi/assets/api-bQkc2cji.js b/yusi/assets/api-JoJiEZDD.js similarity index 97% rename from yusi/assets/api-bQkc2cji.js rename to yusi/assets/api-JoJiEZDD.js index 70c3e7b..01002a9 100644 --- a/yusi/assets/api-bQkc2cji.js +++ b/yusi/assets/api-JoJiEZDD.js @@ -1 +1 @@ -import{a as i}from"./axios-QLjAsgXu.js";import"./index-eScbHr-2.js";localStorage.getItem("TRADE_USER")&&JSON.parse(localStorage.getItem("TRADE_USER")).expire;const e=i.create({baseURL:"https://multi-store.lihaink.cn",timeout:3e4});e.interceptors.request.use(t=>t,t=>Promise.reject(t));e.interceptors.response.use(t=>t.data.code!=1?Promise.reject(t.data.msg):t.data,t=>Promise.reject(t));function n(t){return e.get("/statistics/user",{params:t})}function u(t){return e.get("/statistics/sales_ranking",{params:t})}function c(t){return e.get("/statistics/product_count",{params:t})}function o(t){return e.get("/statistics/index",{params:t})}function s(t){return e.get("/statistics/user_trade_count",{params:t})}function _(t){return e.get("/api/dataview/product_category_list",{params:t})}function d(t){return e.get("/api/dataview/product_list",{params:t})}function p(t){return e.get("/api/dataview/merchant_list",{params:t})}function l(t){return e.get("/api/dataview/order_list",{params:t})}function g(t){return e.get("/api/dataview/order_list_count_title",{params:t})}function f(t){return e.get("/api/dataview/refund_order_list",{params:t})}function A(t){return e.get("/api/dataview/take_order_list",{params:t})}function m(t){return e.get("/api/dataview/take_order_count_title",{params:t})}function w(t){return e.get("/api/dataview/financial_record_title",{params:t})}function v(t){return e.get("/api/dataview/financial_record",{params:t})}function h(t){return e.get("/api/dataview/product_status_filter",{params:t})}function k(t){return e.get("/api/dataview/financial_record_detail/1",{params:t})}function P(t){return e.get("/api/dataview/financial_record_detail/2",{params:t})}function R(t){return e.get("/api/dataview/bill_list",{params:t})}function S(t){return e.get("/api/dataview/withdraw_list",{params:t})}function x(t){return e.get("/statistics/street_currday_order_count",{params:t})}function y(t){return e.post("/api/dataview/login",t)}function C(t){return e.post("/api/dataview/mechant_login",t)}function U(t){return e.get("/api/dataview/merchant_count_main",{params:t})}function b(t){return e.get("/statistics/order_user_num_count",{params:t})}function j(t){return e.get("/api/dataview/merchant_product_ranking",{params:t})}function E(t){return e.get("/api/dataview/merchant_product_visit",{params:t})}function L(t){return e.get("/api/dataview/merchant_product_cart",{params:t})}function T(t){return e.get("/api/dataview/merchant",{params:t})}export{P as A,C as B,y as C,s as a,c as b,o as c,n as d,_ as e,d as f,u as g,T as h,U as i,j,E as k,L as l,p as m,l as n,b as o,h as p,g as q,f as r,x as s,A as t,m as u,w as v,v as w,S as x,R as y,k as z}; +import{a as i}from"./axios-QLjAsgXu.js";import"./index-5L8dO1EA.js";localStorage.getItem("TRADE_USER")&&JSON.parse(localStorage.getItem("TRADE_USER")).expire;const e=i.create({baseURL:"https://multi-store.lihaink.cn",timeout:3e4});e.interceptors.request.use(t=>t,t=>Promise.reject(t));e.interceptors.response.use(t=>t.data.code!=1?Promise.reject(t.data.msg):t.data,t=>Promise.reject(t));function n(t){return e.get("/statistics/user",{params:t})}function u(t){return e.get("/statistics/sales_ranking",{params:t})}function c(t){return e.get("/statistics/product_count",{params:t})}function o(t){return e.get("/statistics/index",{params:t})}function s(t){return e.get("/statistics/user_trade_count",{params:t})}function _(t){return e.get("/api/dataview/product_category_list",{params:t})}function d(t){return e.get("/api/dataview/product_list",{params:t})}function p(t){return e.get("/api/dataview/merchant_list",{params:t})}function l(t){return e.get("/api/dataview/order_list",{params:t})}function g(t){return e.get("/api/dataview/order_list_count_title",{params:t})}function f(t){return e.get("/api/dataview/refund_order_list",{params:t})}function A(t){return e.get("/api/dataview/take_order_list",{params:t})}function m(t){return e.get("/api/dataview/take_order_count_title",{params:t})}function w(t){return e.get("/api/dataview/financial_record_title",{params:t})}function v(t){return e.get("/api/dataview/financial_record",{params:t})}function h(t){return e.get("/api/dataview/product_status_filter",{params:t})}function k(t){return e.get("/api/dataview/financial_record_detail/1",{params:t})}function P(t){return e.get("/api/dataview/financial_record_detail/2",{params:t})}function R(t){return e.get("/api/dataview/bill_list",{params:t})}function S(t){return e.get("/api/dataview/withdraw_list",{params:t})}function x(t){return e.get("/statistics/street_currday_order_count",{params:t})}function y(t){return e.post("/api/dataview/login",t)}function C(t){return e.post("/api/dataview/mechant_login",t)}function U(t){return e.get("/api/dataview/merchant_count_main",{params:t})}function b(t){return e.get("/statistics/order_user_num_count",{params:t})}function j(t){return e.get("/api/dataview/merchant_product_ranking",{params:t})}function E(t){return e.get("/api/dataview/merchant_product_visit",{params:t})}function L(t){return e.get("/api/dataview/merchant_product_cart",{params:t})}function T(t){return e.get("/api/dataview/merchant",{params:t})}export{P as A,C as B,y as C,s as a,c as b,o as c,n as d,_ as e,d as f,u as g,T as h,U as i,j,E as k,L as l,p as m,l as n,b as o,h as p,g as q,f as r,x as s,A as t,m as u,w as v,v as w,S as x,R as y,k as z}; diff --git a/yusi/assets/commodity-lkdEesBe.js b/yusi/assets/commodity-yuswbrUH.js similarity index 98% rename from yusi/assets/commodity-lkdEesBe.js rename to yusi/assets/commodity-yuswbrUH.js index 836bd13..23a252b 100644 --- a/yusi/assets/commodity-lkdEesBe.js +++ b/yusi/assets/commodity-yuswbrUH.js @@ -1,4 +1,4 @@ -import{_ as j}from"./TABBG-WY6uizpD.js";import{e as N,p as V,f as z}from"./api-bQkc2cji.js";import{_ as G,a as S,i as v,r as b,o as L,j as R,b as d,f as r,d as c,z as y,F as A,g as F,e as C,h as x,k as D,t as P,x as M,y as O}from"./index-eScbHr-2.js";import"./axios-QLjAsgXu.js";const T=g=>(M("data-v-893c7b72"),g=g(),O(),g),q={class:"box"},H={class:"img-cls"},J=T(()=>c("img",{src:j,style:{width:"100%",height:"100%",position:"absolute","z-index":"-10000"},alt:""},null,-1)),K={class:"content"},Q={class:"btns"},U={key:0,style:{display:"flex",color:"white","justify-content":"flex-end","margin-right":"5vw",cursor:"pointer"}},W=["onClick"],X={key:1,class:"table"},Y={key:2,class:"table"},Z={__name:"commodity",setup(g){const s=S();N({...s.area}).then(i=>{_(u,i.data)});let h=v(1);const p=i=>{o.data.splice(0,o.data.length),h.value=i,z({...s.area,limit:50,type:h.value}).then(t=>{_(o,t.data.list,!0)})};let w=b([]);V({...s.area}).then(i=>{i.data.forEach(t=>{w.push(t)})}),v(2);const I=i=>{if(i.ceil)if(i.columnIndex==1){let t=document.getElementById(`zmj${i.rowIndex}`),l=document.getElementById(`lj${i.rowIndex}`);t.style.display="none",l.style.display="block"}else{let t=document.getElementsByClassName("zmj"),l=document.getElementsByClassName("lj");for(let e=0;e{let t="";for(let l=0;l');return t},n=v(!0),_=(i,t,l)=>{l?t.forEach((e,a)=>{var m,f,$,B,E;a%2==0?i.data.push([`
${a+1}
`,`
+import{_ as j}from"./TABBG-WY6uizpD.js";import{e as N,p as V,f as z}from"./api-JoJiEZDD.js";import{_ as G,a as S,i as v,r as b,o as L,j as R,b as d,f as r,d as c,z as y,F as A,g as F,e as C,h as x,k as D,t as P,x as M,y as O}from"./index-5L8dO1EA.js";import"./axios-QLjAsgXu.js";const T=g=>(M("data-v-893c7b72"),g=g(),O(),g),q={class:"box"},H={class:"img-cls"},J=T(()=>c("img",{src:j,style:{width:"100%",height:"100%",position:"absolute","z-index":"-10000"},alt:""},null,-1)),K={class:"content"},Q={class:"btns"},U={key:0,style:{display:"flex",color:"white","justify-content":"flex-end","margin-right":"5vw",cursor:"pointer"}},W=["onClick"],X={key:1,class:"table"},Y={key:2,class:"table"},Z={__name:"commodity",setup(g){const s=S();N({...s.area}).then(i=>{_(u,i.data)});let h=v(1);const p=i=>{o.data.splice(0,o.data.length),h.value=i,z({...s.area,limit:50,type:h.value}).then(t=>{_(o,t.data.list,!0)})};let w=b([]);V({...s.area}).then(i=>{i.data.forEach(t=>{w.push(t)})}),v(2);const I=i=>{if(i.ceil)if(i.columnIndex==1){let t=document.getElementById(`zmj${i.rowIndex}`),l=document.getElementById(`lj${i.rowIndex}`);t.style.display="none",l.style.display="block"}else{let t=document.getElementsByClassName("zmj"),l=document.getElementsByClassName("lj");for(let e=0;e{let t="";for(let l=0;l');return t},n=v(!0),_=(i,t,l)=>{l?t.forEach((e,a)=>{var m,f,$,B,E;a%2==0?i.data.push([`
${a+1}
`,`
`,`
${e.store_name}
`,`
${((m=e.merchant)==null?void 0:m.mer_name)||"--"}
`,`
${(f=e.merchant)!=null&&f.is_trader?"自营":"非自营"}
`,`
${e.price}
`,`
${(($=e.storeCategory)==null?void 0:$.cate_name)||"--"}
`,`
${e.attrValue[0].sales}
`,`
${e.attrValue[0].stock}
`,`
${k(e.star)} diff --git a/yusi/assets/finance-DhelbR3x.js b/yusi/assets/finance-qam1zv4e.js similarity index 98% rename from yusi/assets/finance-DhelbR3x.js rename to yusi/assets/finance-qam1zv4e.js index cd03eaf..53f509a 100644 --- a/yusi/assets/finance-DhelbR3x.js +++ b/yusi/assets/finance-qam1zv4e.js @@ -1,4 +1,4 @@ -import{_ as V,a as Y,i as B,r as p,o as z,j as L,b as s,f as r,d as t,z as y,h as b,F,g as N,c as k,k as P,w as H,T as X,n as a,t as c,x as J,y as M}from"./index-eScbHr-2.js";import{_ as O}from"./TABBG-WY6uizpD.js";import{_ as U}from"./Bill-3vIMWlbv.js";import{v as W,w as S,x as q,y as K,z as Q,A as ee}from"./api-bQkc2cji.js";import"./axios-QLjAsgXu.js";const te="/yusi/assets/TC-V-mBZomo.png",C=w=>(J("data-v-c57eba8c"),w=w(),M(),w),ie={class:"box"},le={class:"img-cls"},ae=C(()=>t("img",{src:O,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),ne={class:"content"},ce={class:"btns"},oe={style:{display:"flex"}},se={style:{"margin-right":"0vw"}},de={key:0,style:{display:"flex",color:"white","justify-content":"flex-end","margin-right":"5vw",cursor:"pointer"}},re={key:0,class:"bill"},he={key:1,class:"table"},ue={key:0,class:"pop"},ge=C(()=>t("img",{src:te,alt:"",style:{width:"35vw",height:"40vh",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},null,-1)),ve={class:"pop-content"},pe={class:"pop-content-head"},be={class:"gradient-text"},_e={style:{"font-size":"10px"}},xe={class:"pop-li"},ye={style:{margin:"0 .5vw"}},we={class:"price"},fe={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},ke={style:{margin:"0 .5vw"}},me={class:"price",style:{color:"white"}},$e={class:"pop-li",style:{"margin-top":"3vh"}},Be={style:{margin:"0 2vw"}},Ce={class:"price"},De={class:"pop-li",style:{"margin-top":"3vh"}},Ee={style:{margin:"0 2vw"}},Ie={class:"price"},Ge={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},Te={style:{margin:"0 .5vw"}},Ae={class:"price",style:{color:"white"}},Fe={style:{margin:"0 .5vw"}},Ne={class:"price",style:{color:"white"}},Se={style:{margin:"0 1vw"}},je={class:"price",style:{color:"white"}},Re={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},Ze={style:{margin:"0 .5vw"}},Ve={class:"price",style:{color:"white"}},Ye={style:{margin:"0 .5vw"}},ze={class:"price",style:{color:"white"}},Le=C(()=>t("div",{style:{opacity:"0"}},[a(" 返回手续费 "),t("span",{style:{margin:"0 1vw"}},[t("span",{class:"price",style:{color:"white"}},"16.6"),a("元")]),t("span",null,"2笔")],-1)),Pe={class:"pop-li",style:{"margin-top":"3vh"}},He={class:"price"},Xe={__name:"finance",setup(w){const h=Y(),_=B(1),D=i=>{_.value=i,x(2,i)},E=p([{icon:"DD",text:"订单总金额收入",num:1245},{icon:"CZ",text:"退款支出金额",num:1245},{icon:"YJ",text:"佣金支出金额",num:1245},{icon:"PT",text:"平台手续费",num:1245},{icon:"CZ",text:"充值金额",num:1245},{icon:"CZXF",text:"充值消费金额",num:1245},{icon:"CS",text:"产生交易的商户数",num:1245},{icon:"YH",text:"优惠券",num:1245},{icon:"CS",text:"入口商户金额",num:1245},{icon:"YC",text:"云仓库佣金",num:1245},{icon:"XZ",text:"小组服务佣金",num:1245},{icon:"CY",text:"村佣金",num:1245},{icon:"ZY",text:"镇佣金",num:1245},{icon:"PT",text:"平台剩余手续费",num:1245}]);W({...h.area}).then(i=>{i.data.stat.forEach((e,l)=>{E[l].num=e.count})});const x=(i,e)=>{i==0&&(v.data.splice(0,v.data.length),q({...h.area,limit:50}).then(l=>{f(l.data.list)})),i==1&&(u.data.splice(0,u.data.length),K({...h.area,limit:50}).then(l=>{f(l.data.list)})),i==2&&(g.data.splice(0,g.data.length),S({...h.area,limit:50,type:e}).then(l=>{m=l.data.list,f(l.data.list)})),o.value=i,A()},j=i=>{i.columnIndex==10},I=i=>{if(i==0)return"银行卡";if(i==1)return"支付宝";if(i==2)return"微信";if(i==3)return"零钱"},G=i=>{if(i==-1)return"未通过";if(i==0)return"审核中";if(i==1)return"已提现"},f=i=>{i.reverse().forEach((e,l)=>{o.value==0&&(l%2==0?v.data.push([`
${l+1}
`,`
+import{_ as V,a as Y,i as B,r as p,o as z,j as L,b as s,f as r,d as t,z as y,h as b,F,g as N,c as k,k as P,w as H,T as X,n as a,t as c,x as J,y as M}from"./index-5L8dO1EA.js";import{_ as O}from"./TABBG-WY6uizpD.js";import{_ as U}from"./Bill-zne2XV8t.js";import{v as W,w as S,x as q,y as K,z as Q,A as ee}from"./api-JoJiEZDD.js";import"./axios-QLjAsgXu.js";const te="/yusi/assets/TC-V-mBZomo.png",C=w=>(J("data-v-c57eba8c"),w=w(),M(),w),ie={class:"box"},le={class:"img-cls"},ae=C(()=>t("img",{src:O,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),ne={class:"content"},ce={class:"btns"},oe={style:{display:"flex"}},se={style:{"margin-right":"0vw"}},de={key:0,style:{display:"flex",color:"white","justify-content":"flex-end","margin-right":"5vw",cursor:"pointer"}},re={key:0,class:"bill"},he={key:1,class:"table"},ue={key:0,class:"pop"},ge=C(()=>t("img",{src:te,alt:"",style:{width:"35vw",height:"40vh",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},null,-1)),ve={class:"pop-content"},pe={class:"pop-content-head"},be={class:"gradient-text"},_e={style:{"font-size":"10px"}},xe={class:"pop-li"},ye={style:{margin:"0 .5vw"}},we={class:"price"},fe={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},ke={style:{margin:"0 .5vw"}},me={class:"price",style:{color:"white"}},$e={class:"pop-li",style:{"margin-top":"3vh"}},Be={style:{margin:"0 2vw"}},Ce={class:"price"},De={class:"pop-li",style:{"margin-top":"3vh"}},Ee={style:{margin:"0 2vw"}},Ie={class:"price"},Ge={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},Te={style:{margin:"0 .5vw"}},Ae={class:"price",style:{color:"white"}},Fe={style:{margin:"0 .5vw"}},Ne={class:"price",style:{color:"white"}},Se={style:{margin:"0 1vw"}},je={class:"price",style:{color:"white"}},Re={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},Ze={style:{margin:"0 .5vw"}},Ve={class:"price",style:{color:"white"}},Ye={style:{margin:"0 .5vw"}},ze={class:"price",style:{color:"white"}},Le=C(()=>t("div",{style:{opacity:"0"}},[a(" 返回手续费 "),t("span",{style:{margin:"0 1vw"}},[t("span",{class:"price",style:{color:"white"}},"16.6"),a("元")]),t("span",null,"2笔")],-1)),Pe={class:"pop-li",style:{"margin-top":"3vh"}},He={class:"price"},Xe={__name:"finance",setup(w){const h=Y(),_=B(1),D=i=>{_.value=i,x(2,i)},E=p([{icon:"DD",text:"订单总金额收入",num:1245},{icon:"CZ",text:"退款支出金额",num:1245},{icon:"YJ",text:"佣金支出金额",num:1245},{icon:"PT",text:"平台手续费",num:1245},{icon:"CZ",text:"充值金额",num:1245},{icon:"CZXF",text:"充值消费金额",num:1245},{icon:"CS",text:"产生交易的商户数",num:1245},{icon:"YH",text:"优惠券",num:1245},{icon:"CS",text:"入口商户金额",num:1245},{icon:"YC",text:"云仓库佣金",num:1245},{icon:"XZ",text:"小组服务佣金",num:1245},{icon:"CY",text:"村佣金",num:1245},{icon:"ZY",text:"镇佣金",num:1245},{icon:"PT",text:"平台剩余手续费",num:1245}]);W({...h.area}).then(i=>{i.data.stat.forEach((e,l)=>{E[l].num=e.count})});const x=(i,e)=>{i==0&&(v.data.splice(0,v.data.length),q({...h.area,limit:50}).then(l=>{f(l.data.list)})),i==1&&(u.data.splice(0,u.data.length),K({...h.area,limit:50}).then(l=>{f(l.data.list)})),i==2&&(g.data.splice(0,g.data.length),S({...h.area,limit:50,type:e}).then(l=>{m=l.data.list,f(l.data.list)})),o.value=i,A()},j=i=>{i.columnIndex==10},I=i=>{if(i==0)return"银行卡";if(i==1)return"支付宝";if(i==2)return"微信";if(i==3)return"零钱"},G=i=>{if(i==-1)return"未通过";if(i==0)return"审核中";if(i==1)return"已提现"},f=i=>{i.reverse().forEach((e,l)=>{o.value==0&&(l%2==0?v.data.push([`
${l+1}
`,`
`,`
${e.real_name}
`,`
${e.uid}
`,`
${e.real_name}
`,`
${e.extract_price}
`,`
${I(e.extract_type)}
`,"
--
",`
${e.bank_code}
`,`
${G(e.status)}
`,`
${e.fail_msg||"--"}
`,`
${e.create_time||"--"}
`]):v.data.push([`
${e.uid}
`,`
diff --git a/yusi/assets/home-zIHBFROr.js b/yusi/assets/home-NxFLaemn.js similarity index 92% rename from yusi/assets/home-zIHBFROr.js rename to yusi/assets/home-NxFLaemn.js index c88c01d..c0b7d7b 100644 --- a/yusi/assets/home-zIHBFROr.js +++ b/yusi/assets/home-NxFLaemn.js @@ -1 +1 @@ -import{_ as N,a as y,u as x,r as Y,o as b,b as h,c as T,w as O,d as s,F as R,e as v,t as C,f,g as K,h as L,T as P,i as p,j as V,k as _,l as j,m as X,n as J,p as G}from"./index-eScbHr-2.js";import{a as H}from"./axios-QLjAsgXu.js";import{m as w}from"./mitt-Efd5K_Pa.js";const W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABh0lEQVQ4jXXTPUjXYRAH8E9SWhSEDZZBkKBB0tTQKkU1uTRE0CK4NEjQkEggtAYG0RKBS0Ou9oLYEBUVtISDEYIgDbUKvfpCgsbF/eLp4e/Bw+/33N1z97277+2YfDSjhdzFJbSnaRVTGKtdd1b3bnzCCu7gDdpwDtdwGf34uV2Az3iF85X+NcbxEUs42BjaCqf7GbB5fAGLWMDp1J1AV1lKGeAKrub/RUzjBd7hJQbSdgs36hL25/dJfidxDyOF/QF68BCjmXyzQbBVIfqNPQW63dhogfofgh8F9NsYwmyOcRcGcSp9hvEtstfRJvKEPMNZ9OJIPn6fthjnzeZRTaSv+FA0rJalvPfWJTRyNOE9T/KUMo/D2NeqB418D1TZ1BjdmdQHgfrQUUMqe3AST3MHOpM8wf9oZiCLzDHWx3n/D8EhzOEt9mYZf+eMXwXs8I99iV4EN1ZCEdm+JOui8yHBgbUMvF7oYkvjBMVjb45HgOsZOTYslqbsy3IiOVDogmSR8BhG/gAPOE6l4o28nAAAAABJRU5ErkJggg==",Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAABhUlEQVQ4jZ3Uz4tOURzH8ZdnkLHyIxozxUZkYcEKYzVlMSYr8g9YkKIkv5KNhcSGjA2ysWPpR9PIWLES0ROWlGymkIRs6FvfW9c09znP83zqdO495/t933PP98eC9ux3Be3FctwqGXYDe4tNYVsyXFgywCcs68JOa561cLyAPfn+N0elYzjVDWwXvuJMh9NsxEV8wNom2Dim0cYI7jTADmEn1uEj1syFhfMjvMJmfG4AVXqG1fn8ci5sJuetBUhdsxnlIVyvYFuwAQd7AFV6j/s4jKUBO5obN/qAhc7mPB6w7XnkftVOv22tDPXzDqDhHE2KHPwV0Y0K+F3I8Id4Uzj1AP4E7DV2dDA8XQAtwWK8i9+8h0VYVXBq0v5cfxBdYxA/M2kn+oB9yXtb2crLu4zdGOsRdC573T61CjiZEX3SA/AEzmMST+uw0CheJPAKVjRAooSmcAk3caTamK/TXq1VRZTLY/zIXIseV33kAG7XHZva9nocz3us96zI9ru4hm//eeAfZkVOJyyU+TAAAAAASUVORK5CYII=",Q={key:0,class:"address"},q=["onClick"],$={__name:"areaList",props:{choseArea:Boolean},emits:["offAreaList"],setup(D,{emit:E}){let o=y();const i=x(),l=E,t=D;let n=Y([]);const r=(a,d)=>{o.changeArea({areaCode:o.area.areaCode,streetCode:a}),t.choseArea=!1,l("offAreaList",d),i.replace("/townDetail?code="+a)},u=()=>{o.changeArea({areaCode:o.area.areaCode,streetCode:null}),t.choseArea=!1,l("offAreaList","泸县"),i.replace("/")};return b(()=>{H.get(`https://crmeb-test.shop.lihaink.cn/api/city/get_street?area_code=${o.area.areaCode}`).then(function(a){a.data.data.forEach(d=>{n.push(d)})}).catch(function(a){}).finally(function(){})}),(a,d)=>(h(),T(P,null,{default:O(()=>[t.choseArea?(h(),f("div",Q,[s("div",{class:"address-li",onClick:u},"泸县 "),(h(!0),f(R,null,K(v(n),(A,k)=>(h(),f("div",{class:"address-li",onClick:S=>r(A.code,A.name)},C(A.name),9,q))),256))])):L("",!0)]),_:1}))}},ee=N($,[["__scopeId","data-v-2ec5cbb8"]]);var te={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const ue={__name:"datePickerOne",setup(D){const E=y(),o=t=>{var n=t,r=n.getFullYear(),u=(n.getMonth()+1).toString().padStart(2,"0"),a=n.getDate().toString().padStart(2,"0"),d=r+"-"+u+"-"+a;return d},i=p(new Date),l=t=>{E.setDate(o(t)),w.emit("changeOneTime",t)};return(t,n)=>{const r=V("el-date-picker"),u=V("el-config-provider");return h(),T(u,{locale:v(te)},{default:O(()=>[_(r,{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=a=>i.value=a),onChange:l,style:{"background-color":"#001E31",width:"10vw"}},null,8,["modelValue"])]),_:1},8,["locale"])}}},ae={class:"headers"},oe=s("div",{class:"logo"},null,-1),se={class:"tab"},ne={style:{"font-size":"18px","font-weight":"bold",color:"#eee"}},re={class:"right"},ce=s("img",{style:{width:"1VW",height:"1VW","margin-right":"0.5vw"},src:W,alt:""},null,-1),ie=G('
15:33:26
2023-11-28
',5),le=s("img",{style:{width:"1VW",height:"1VW","margin-right":"0.5vw"},src:Z,alt:""},null,-1),de=[le],he=s("div",{class:"right-line"},[s("span"),s("span")],-1),Ee={__name:"Header",setup(D){const E=y();let o=p(""),i=JSON.parse(localStorage.getItem("TRADE_USER")),l=p(i.role);const t=x(),n=j(),r=Y([!1,!0,!0,!0,!0]),u=(e,c)=>{if(r.forEach((g,m)=>{r[m]=!0}),r[e]=!r[e],c){if(E.area.streetCode&&c=="/"){t.push("/townDetail?code=510524102");return}t.replace(c)}},a=p("");w.on("header-title",e=>{a.value=e,w.off("header-title")}),p("/"),X(()=>n.path,(e,c)=>{e=="/index"&&(u(0),o.value="泸县"),e=="/townDetail"&&u(0),e=="/commodity"&&u(1),(e=="/Businesses"||e=="/storeLogin")&&u(2),e=="/order"&&u(3),e=="/finance"&&u(4),e=="/finance"&&u(4)},{deep:!0,immediate:!0});const d=()=>{l.value==2&&(A.value=!0)},A=p(!1),k=e=>{A.value=!1,o.value=e},S=()=>{localStorage.removeItem("TRADE_USER"),t.replace("/login")},z=()=>{var e=new Date,c=e.getHours(),g=e.getMinutes(),m=e.getSeconds(),M=e.getFullYear(),B=e.getMonth(),F=e.getDate();c=(c<10?"0":"")+c,g=(g<10?"0":"")+g,m=(m<10?"0":"")+m;var U=c+":"+g+":"+m,I=M+"-"+(B>=10?B+1:"0"+(B+1))+"-"+(F>=10?F:"0"+F);document.getElementById("time").innerHTML=U,document.getElementById("days").innerHTML=I};return b(()=>{setInterval(z,1e3)}),(e,c)=>(h(),f("div",ae,[oe,s("div",se,[s("span",ne,C(a.value),1)]),s("div",re,[_(ue),s("div",{class:"rigth-li",onClick:d},[ce,J(" "+C(v(o)),1)]),_(ee,{choseArea:A.value,onOffAreaList:k,style:{left:"12vw"}},null,8,["choseArea"]),ie,s("div",{class:"rigth-li",onClick:S},de),he])]))}},ge={__name:"home",setup(D){const E=j();return(o,i)=>{const l=V("router-view");return h(),f(R,null,[_(Ee),(h(),T(l,{key:v(E).path}))],64)}}};export{ge as default}; +import{_ as N,a as y,u as x,r as Y,o as b,b as h,c as T,w as O,d as s,F as R,e as v,t as C,f,g as K,h as L,T as P,i as p,j as V,k as _,l as j,m as X,n as J,p as G}from"./index-5L8dO1EA.js";import{a as W}from"./axios-QLjAsgXu.js";import{m as w}from"./mitt-Efd5K_Pa.js";const Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABh0lEQVQ4jXXTPUjXYRAH8E9SWhSEDZZBkKBB0tTQKkU1uTRE0CK4NEjQkEggtAYG0RKBS0Ou9oLYEBUVtISDEYIgDbUKvfpCgsbF/eLp4e/Bw+/33N1z97277+2YfDSjhdzFJbSnaRVTGKtdd1b3bnzCCu7gDdpwDtdwGf34uV2Az3iF85X+NcbxEUs42BjaCqf7GbB5fAGLWMDp1J1AV1lKGeAKrub/RUzjBd7hJQbSdgs36hL25/dJfidxDyOF/QF68BCjmXyzQbBVIfqNPQW63dhogfofgh8F9NsYwmyOcRcGcSp9hvEtstfRJvKEPMNZ9OJIPn6fthjnzeZRTaSv+FA0rJalvPfWJTRyNOE9T/KUMo/D2NeqB418D1TZ1BjdmdQHgfrQUUMqe3AST3MHOpM8wf9oZiCLzDHWx3n/D8EhzOEt9mYZf+eMXwXs8I99iV4EN1ZCEdm+JOui8yHBgbUMvF7oYkvjBMVjb45HgOsZOTYslqbsy3IiOVDogmSR8BhG/gAPOE6l4o28nAAAAABJRU5ErkJggg==",H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAABhUlEQVQ4jZ3Uz4tOURzH8ZdnkLHyIxozxUZkYcEKYzVlMSYr8g9YkKIkv5KNhcSGjA2ysWPpR9PIWLES0ROWlGymkIRs6FvfW9c09znP83zqdO495/t933PP98eC9ux3Be3FctwqGXYDe4tNYVsyXFgywCcs68JOa561cLyAPfn+N0elYzjVDWwXvuJMh9NsxEV8wNom2Dim0cYI7jTADmEn1uEj1syFhfMjvMJmfG4AVXqG1fn8ci5sJuetBUhdsxnlIVyvYFuwAQd7AFV6j/s4jKUBO5obN/qAhc7mPB6w7XnkftVOv22tDPXzDqDhHE2KHPwV0Y0K+F3I8Id4Uzj1AP4E7DV2dDA8XQAtwWK8i9+8h0VYVXBq0v5cfxBdYxA/M2kn+oB9yXtb2crLu4zdGOsRdC573T61CjiZEX3SA/AEzmMST+uw0CheJPAKVjRAooSmcAk3caTamK/TXq1VRZTLY/zIXIseV33kAG7XHZva9nocz3us96zI9ru4hm//eeAfZkVOJyyU+TAAAAAASUVORK5CYII=",Q={key:0,class:"address"},q=["onClick"],$={__name:"areaList",props:{choseArea:Boolean},emits:["offAreaList"],setup(D,{emit:E}){let o=y();const i=x(),l=E,t=D;let n=Y([]);const r=(a,d)=>{o.changeArea({areaCode:o.area.areaCode,streetCode:a}),t.choseArea=!1,l("offAreaList",d),i.replace("/townDetail?code="+a)},u=()=>{o.changeArea({areaCode:o.area.areaCode,streetCode:null}),t.choseArea=!1,l("offAreaList","泸县"),i.replace("/")};return b(()=>{W.get(`https://crmeb-test.shop.lihaink.cn/api/city/get_street?area_code=${o.area.areaCode}`).then(function(a){a.data.data.forEach(d=>{n.push(d)})}).catch(function(a){}).finally(function(){})}),(a,d)=>(h(),T(P,null,{default:O(()=>[t.choseArea?(h(),f("div",Q,[s("div",{class:"address-li",onClick:u},"泸县 "),(h(!0),f(R,null,K(v(n),(A,k)=>(h(),f("div",{class:"address-li",onClick:S=>r(A.code,A.name)},C(A.name),9,q))),256))])):L("",!0)]),_:1}))}},ee=N($,[["__scopeId","data-v-2ec5cbb8"]]);var te={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const ue={__name:"datePickerOne",setup(D){const E=y(),o=t=>{var n=t,r=n.getFullYear(),u=(n.getMonth()+1).toString().padStart(2,"0"),a=n.getDate().toString().padStart(2,"0"),d=r+"-"+u+"-"+a;return d},i=p(new Date),l=t=>{E.setDate(o(t)),w.emit("changeOneTime",t)};return(t,n)=>{const r=V("el-date-picker"),u=V("el-config-provider");return h(),T(u,{locale:v(te)},{default:O(()=>[_(r,{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=a=>i.value=a),onChange:l,style:{"background-color":"#001E31",width:"10vw"}},null,8,["modelValue"])]),_:1},8,["locale"])}}},ae={class:"headers"},oe=s("div",{class:"logo"},null,-1),se={class:"tab"},ne={style:{"font-size":"18px","font-weight":"bold",color:"#eee"}},re={class:"right"},ce=s("img",{style:{width:"1VW",height:"1VW","margin-right":"0.5vw"},src:Z,alt:""},null,-1),ie=G('
15:33:26
2023-11-28
',5),le=s("img",{style:{width:"1VW",height:"1VW","margin-right":"0.5vw"},src:H,alt:""},null,-1),de=[le],he=s("div",{class:"right-line"},[s("span"),s("span")],-1),Ee={__name:"header",setup(D){const E=y();let o=p(""),i=JSON.parse(localStorage.getItem("TRADE_USER")),l=p(i.role);const t=x(),n=j(),r=Y([!1,!0,!0,!0,!0]),u=(e,c)=>{if(r.forEach((g,m)=>{r[m]=!0}),r[e]=!r[e],c){if(E.area.streetCode&&c=="/"){t.push("/townDetail?code=510524102");return}t.replace(c)}},a=p("");w.on("header-title",e=>{a.value=e,w.off("header-title")}),p("/"),X(()=>n.path,(e,c)=>{e=="/index"&&(u(0),o.value="泸县"),e=="/townDetail"&&u(0),e=="/commodity"&&u(1),(e=="/Businesses"||e=="/storeLogin")&&u(2),e=="/order"&&u(3),e=="/finance"&&u(4),e=="/finance"&&u(4)},{deep:!0,immediate:!0});const d=()=>{l.value==2&&(A.value=!0)},A=p(!1),k=e=>{A.value=!1,o.value=e},S=()=>{localStorage.removeItem("TRADE_USER"),t.replace("/login")},z=()=>{var e=new Date,c=e.getHours(),g=e.getMinutes(),m=e.getSeconds(),M=e.getFullYear(),B=e.getMonth(),F=e.getDate();c=(c<10?"0":"")+c,g=(g<10?"0":"")+g,m=(m<10?"0":"")+m;var U=c+":"+g+":"+m,I=M+"-"+(B>=10?B+1:"0"+(B+1))+"-"+(F>=10?F:"0"+F);document.getElementById("time").innerHTML=U,document.getElementById("days").innerHTML=I};return b(()=>{setInterval(z,1e3)}),(e,c)=>(h(),f("div",ae,[oe,s("div",se,[s("span",ne,C(a.value),1)]),s("div",re,[_(ue),s("div",{class:"rigth-li",onClick:d},[ce,J(" "+C(v(o)),1)]),_(ee,{choseArea:A.value,onOffAreaList:k,style:{left:"12vw"}},null,8,["choseArea"]),ie,s("div",{class:"rigth-li",onClick:S},de),he])]))}},ge={__name:"home",setup(D){const E=j();return(o,i)=>{const l=V("router-view");return h(),f(R,null,[_(Ee),(h(),T(l,{key:v(E).path}))],64)}}};export{ge as default}; diff --git a/yusi/assets/index-eScbHr-2.js b/yusi/assets/index-5L8dO1EA.js similarity index 98% rename from yusi/assets/index-eScbHr-2.js rename to yusi/assets/index-5L8dO1EA.js index 32d50cb..5cbe04f 100644 --- a/yusi/assets/index-eScbHr-2.js +++ b/yusi/assets/index-5L8dO1EA.js @@ -134,7 +134,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,C=(c+y)/2+o/2;return{...f,d:b,x:p,y,textY:C}})}}},xM=["width","height"],AM=["d","fill"],OM=["fill","x","y"],MM=["xlink:href","width","height","x","y"],RM=["fill","x","y"];function LM(e,t,n,r,o,a){return P(),K("div",{class:"dv-conical-column-chart",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[(P(!0),K(Be,null,nt(o.column,(l,s)=>(P(),K("g",{key:s},[B("path",{d:l.d,fill:o.mergedConfig.columnColor},null,8,AM),B("text",{style:Fe(`fontSize:${o.mergedConfig.fontSize}px`),fill:o.mergedConfig.textColor,x:l.x,y:e.height-4},Me(l.name),13,OM),o.mergedConfig.img.length?(P(),K("image",{key:0,"xlink:href":o.mergedConfig.img[s%o.mergedConfig.img.length],width:o.mergedConfig.imgSideLength,height:o.mergedConfig.imgSideLength,x:l.x-o.mergedConfig.imgSideLength/2,y:l.y-o.mergedConfig.imgSideLength},null,8,MM)):be("",!0),o.mergedConfig.showValue?(P(),K("text",{key:1,style:Fe(`fontSize:${o.mergedConfig.fontSize}px`),fill:o.mergedConfig.textColor,x:l.x,y:l.textY},Me(l.value),13,RM)):be("",!0)]))),128))],8,xM))],512)}const E0=Tt(TM,[["render",LM]]);function NM(e){e.component(E0.name,E0)}const IM={name:"DvDecoration1",mixins:[Nt],props:{color:{type:Array,default:()=>[]}},data(){return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:2.5,halfPointSideLength:2.5/2,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{calcPointsPosition:e,calcRectsPosition:t,calcScale:n}=this;e(),t(),n()},calcPointsPosition(){const{svgWH:e,rowNum:t,rowPoints:n}=this,[r,o]=e,a=r/(n+1),l=o/(t+1);let s=new Array(t).fill(0).map((i,c)=>new Array(n).fill(0).map((f,d)=>[a*(d+1),l*(c+1)]));this.points=s.reduce((i,c)=>[...i,...c],[])},calcRectsPosition(){const{points:e,rowPoints:t}=this,n=e[t*2-1],r=e[t*2-3];this.rects=[n,r]},calcScale(){const{width:e,height:t,svgWH:n}=this,[r,o]=n;this.svgScale=[e/r,t/o]},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},DM=["width","height"],BM=["fill","x","y","width","height"],FM=["values","begin"],VM=["fill","x","y","width","height"],zM=["values"],HM=["values"],WM=["values"],KM=["values"],jM=["fill","x","y","height"],GM=B("animate",{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"},null,-1),qM=["values"];function UM(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-1",ref:o.ref},[(P(),K("svg",{width:`${o.svgWH[0]}px`,height:`${o.svgWH[1]}px`,style:Fe(`transform:scale(${o.svgScale[0]},${o.svgScale[1]});`)},[(P(!0),K(Be,null,nt(o.points,(l,s)=>(P(),K(Be,null,[Math.random()>.6?(P(),K("rect",{key:s,fill:o.mergedColor[0],x:l[0]-o.halfPointSideLength,y:l[1]-o.halfPointSideLength,width:o.pointSideLength,height:o.pointSideLength},[Math.random()>.6?(P(),K("animate",{key:0,attributeName:"fill",values:`${o.mergedColor[0]};transparent`,dur:"1s",begin:Math.random()*2,repeatCount:"indefinite"},null,8,FM)):be("",!0)],8,BM)):be("",!0)],64))),256)),o.rects[0]?(P(),K("rect",{key:0,fill:o.mergedColor[1],x:o.rects[0][0]-o.pointSideLength,y:o.rects[0][1]-o.pointSideLength,width:o.pointSideLength*2,height:o.pointSideLength*2},[B("animate",{attributeName:"width",values:`0;${o.pointSideLength*2}`,dur:"2s",repeatCount:"indefinite"},null,8,zM),B("animate",{attributeName:"height",values:`0;${o.pointSideLength*2}`,dur:"2s",repeatCount:"indefinite"},null,8,HM),B("animate",{attributeName:"x",values:`${o.rects[0][0]};${o.rects[0][0]-o.pointSideLength}`,dur:"2s",repeatCount:"indefinite"},null,8,WM),B("animate",{attributeName:"y",values:`${o.rects[0][1]};${o.rects[0][1]-o.pointSideLength}`,dur:"2s",repeatCount:"indefinite"},null,8,KM)],8,VM)):be("",!0),o.rects[1]?(P(),K("rect",{key:1,fill:o.mergedColor[1],x:o.rects[1][0]-40,y:o.rects[1][1]-o.pointSideLength,width:40,height:o.pointSideLength*2},[GM,B("animate",{attributeName:"x",values:`${o.rects[1][0]};${o.rects[1][0]-40};${o.rects[1][0]}`,dur:"2s",repeatCount:"indefinite"},null,8,qM)],8,jM)):be("",!0)],12,DM))],512)}const P0=Tt(IM,[["render",UM]]);function YM(e){e.component(P0.name,P0)}const XM={name:"DvDecoration10",mixins:[Nt],props:{color:{type:Array,default:()=>[]}},data(){const e=mr();return{ref:"decoration-10",animationId1:`d10ani1${e}`,animationId2:`d10ani2${e}`,animationId3:`d10ani3${e}`,animationId4:`d10ani4${e}`,animationId5:`d10ani5${e}`,animationId6:`d10ani6${e}`,animationId7:`d10ani7${e}`,defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},QM=["width","height"],ZM=["stroke","points"],JM=["stroke","points","stroke-dasharray"],e4=["id","values","begin"],t4=["values","begin"],n4=["stroke","points","stroke-dasharray"],r4=["id","values","begin"],o4=["values","begin"],a4=["stroke","points","stroke-dasharray"],l4=["id","values","begin"],s4=["values","begin"],i4=["cy","fill"],u4=["id","values","begin"],c4=["cx","cy","fill"],d4=["id","values","begin"],f4=["values","begin"],h4=["cx","cy","fill"],p4=["id","values","begin"],v4=["values","begin"],g4=["cx","cy","fill"],m4=["id","values","begin"],y4=["values","begin"];function b4(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-10",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("polyline",{stroke:o.mergedColor[1],"stroke-width":"2",points:`0, ${e.height/2} ${e.width}, ${e.height/2}`},null,8,ZM),B("polyline",{stroke:o.mergedColor[0],"stroke-width":"2",points:`5, ${e.height/2} ${e.width*.2-3}, ${e.height/2}`,"stroke-dasharray":`0, ${e.width*.2}`,fill:"freeze"},[B("animate",{id:o.animationId2,attributeName:"stroke-dasharray",values:`0, ${e.width*.2};${e.width*.2}, 0;`,dur:"3s",begin:`${o.animationId1}.end`,fill:"freeze"},null,8,e4),B("animate",{attributeName:"stroke-dasharray",values:`${e.width*.2}, 0;0, ${e.width*.2}`,dur:"0.01s",begin:`${o.animationId7}.end`,fill:"freeze"},null,8,t4)],8,JM),B("polyline",{stroke:o.mergedColor[0],"stroke-width":"2",points:`${e.width*.2+3}, ${e.height/2} ${e.width*.8-3}, ${e.height/2}`,"stroke-dasharray":`0, ${e.width*.6}`},[B("animate",{id:o.animationId4,attributeName:"stroke-dasharray",values:`0, ${e.width*.6};${e.width*.6}, 0`,dur:"3s",begin:`${o.animationId3}.end + 1s`,fill:"freeze"},null,8,r4),B("animate",{attributeName:"stroke-dasharray",values:`${e.width*.6}, 0;0, ${e.width*.6}`,dur:"0.01s",begin:`${o.animationId7}.end`,fill:"freeze"},null,8,o4)],8,n4),B("polyline",{stroke:o.mergedColor[0],"stroke-width":"2",points:`${e.width*.8+3}, ${e.height/2} ${e.width-5}, ${e.height/2}`,"stroke-dasharray":`0, ${e.width*.2}`},[B("animate",{id:o.animationId6,attributeName:"stroke-dasharray",values:`0, ${e.width*.2};${e.width*.2}, 0`,dur:"3s",begin:`${o.animationId5}.end + 1s`,fill:"freeze"},null,8,l4),B("animate",{attributeName:"stroke-dasharray",values:`${e.width*.2}, 0;0, ${e.width*.3}`,dur:"0.01s",begin:`${o.animationId7}.end`,fill:"freeze"},null,8,s4)],8,a4),B("circle",{cx:"2",cy:e.height/2,r:"2",fill:o.mergedColor[1]},[B("animate",{id:o.animationId1,attributeName:"fill",values:`${o.mergedColor[1]};${o.mergedColor[0]}`,begin:`0s;${o.animationId7}.end`,dur:"0.3s",fill:"freeze"},null,8,u4)],8,i4),B("circle",{cx:e.width*.2,cy:e.height/2,r:"2",fill:o.mergedColor[1]},[B("animate",{id:o.animationId3,attributeName:"fill",values:`${o.mergedColor[1]};${o.mergedColor[0]}`,begin:`${o.animationId2}.end`,dur:"0.3s",fill:"freeze"},null,8,d4),B("animate",{attributeName:"fill",values:`${o.mergedColor[1]};${o.mergedColor[1]}`,dur:"0.01s",begin:`${o.animationId7}.end`,fill:"freeze"},null,8,f4)],8,c4),B("circle",{cx:e.width*.8,cy:e.height/2,r:"2",fill:o.mergedColor[1]},[B("animate",{id:o.animationId5,attributeName:"fill",values:`${o.mergedColor[1]};${o.mergedColor[0]}`,begin:`${o.animationId4}.end`,dur:"0.3s",fill:"freeze"},null,8,p4),B("animate",{attributeName:"fill",values:`${o.mergedColor[1]};${o.mergedColor[1]}`,dur:"0.01s",begin:`${o.animationId7}.end`,fill:"freeze"},null,8,v4)],8,h4),B("circle",{cx:e.width-2,cy:e.height/2,r:"2",fill:o.mergedColor[1]},[B("animate",{id:o.animationId7,attributeName:"fill",values:`${o.mergedColor[1]};${o.mergedColor[0]}`,begin:`${o.animationId6}.end`,dur:"0.3s",fill:"freeze"},null,8,m4),B("animate",{attributeName:"fill",values:`${o.mergedColor[1]};${o.mergedColor[1]}`,dur:"0.01s",begin:`${o.animationId7}.end`,fill:"freeze"},null,8,y4)],8,g4)],8,QM))],512)}const T0=Tt(XM,[["render",b4]]);function w4(e){e.component(T0.name,T0)}const C4={name:"DvDecoration11",mixins:[Nt],props:{color:{type:Array,default:()=>[]}},data(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])},fade:ur.fade},mounted(){const{mergeColor:e}=this;e()}},S4=["width","height"],k4=["fill","stroke"],_4=["fill","stroke","points"],$4=["fill","stroke","points"],E4=["fill","stroke","points"],P4=["fill","stroke","points"],T4=["stroke","points"],x4=["stroke","points"],A4={class:"decoration-content"};function O4(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-11",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("polygon",{fill:a.fade(o.mergedColor[1]||o.defaultColor[1],10),stroke:o.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"},null,8,k4),B("polygon",{fill:a.fade(o.mergedColor[1]||o.defaultColor[1],10),stroke:o.mergedColor[1],points:`20 ${e.height-10}, 25 ${e.height-4}, 55 ${e.height-4} 60 ${e.height-10}`},null,8,_4),B("polygon",{fill:a.fade(o.mergedColor[1]||o.defaultColor[1],10),stroke:o.mergedColor[1],points:`${e.width-20} 10, ${e.width-25} 4, ${e.width-55} 4 ${e.width-60} 10`},null,8,$4),B("polygon",{fill:a.fade(o.mergedColor[1]||o.defaultColor[1],10),stroke:o.mergedColor[1],points:`${e.width-20} ${e.height-10}, ${e.width-25} ${e.height-4}, ${e.width-55} ${e.height-4} ${e.width-60} ${e.height-10}`},null,8,E4),B("polygon",{fill:a.fade(o.mergedColor[0]||o.defaultColor[0],20),stroke:o.mergedColor[0],points:` 20 10, 5 ${e.height/2} 20 ${e.height-10} ${e.width-20} ${e.height-10} ${e.width-5} ${e.height/2} ${e.width-20} 10 - `},null,8,P4),B("polyline",{fill:"transparent",stroke:a.fade(o.mergedColor[0]||o.defaultColor[0],70),points:`25 18, 15 ${e.height/2} 25 ${e.height-18}`},null,8,T4),B("polyline",{fill:"transparent",stroke:a.fade(o.mergedColor[0]||o.defaultColor[0],70),points:`${e.width-25} 18, ${e.width-15} ${e.height/2} ${e.width-25} ${e.height-18}`},null,8,x4)],8,S4)),B("div",A4,[_e(e.$slots,"default")])],512)}const x0=Tt(C4,[["render",O4]]);function M4(e){e.component(x0.name,x0)}const R4={name:"DvDecoration12",mixins:[Nt],props:{color:{type:Array,default:()=>[]},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data(){const e=mr();return{ref:"decoration-12",gId:`decoration-12-g-${e}`,gradientId:`decoration-12-gradient-${e}`,defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color(){const{mergeColor:e}=this;e()}},computed:{x(){const{width:e}=this;return e/2},y(){const{height:e}=this;return e/2}},methods:{init(){const{mergeColor:e,calcPathD:t,calcPathColor:n,calcCircleR:r,calcSplitLinePoints:o,calcArcD:a}=this;e(),t(),n(),r(),o(),a()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])},calcPathD(){const{x:e,y:t,width:n,segment:r,sectorAngle:o}=this,a=-Math.PI/2,l=o/r,s=n/4;let i=Ct.getCircleRadianPoint(e,t,s,a);this.pathD=new Array(r).fill("").map((c,f)=>{const d=Ct.getCircleRadianPoint(e,t,s,a-(f+1)*l).map(p=>p.toFixed(5)),h=`M${i.join(",")} A${s}, ${s} 0 0 0 ${d.join(",")}`;return i=d,h})},calcPathColor(){const{mergedColor:[e],segment:t}=this,n=100/(t-1);this.pathColor=new Array(t).fill(e).map((r,o)=>ur.fade(e,100-o*n))},calcCircleR(){const{segment:e,ringNum:t,width:n,ringWidth:r}=this,o=(n/2-r/2)/t;this.circleR=new Array(t).fill(0).map((a,l)=>o*(l+1))},calcSplitLinePoints(){const{x:e,y:t,width:n}=this,r=Math.PI/6,o=n/2;this.splitLinePoints=new Array(6).fill("").map((a,l)=>{const s=r*(l+1),i=s+Math.PI,c=Ct.getCircleRadianPoint(e,t,o,s),f=Ct.getCircleRadianPoint(e,t,o,i);return`${c.join(",")} ${f.join(",")}`})},calcArcD(){const{x:e,y:t,width:n}=this,r=Math.PI/6,o=n/2-1;this.arcD=new Array(4).fill("").map((a,l)=>{const s=r*(3*l+1),i=s+r,c=Ct.getCircleRadianPoint(e,t,o,s),f=Ct.getCircleRadianPoint(e,t,o,i);return`M${c.join(",")} A${e}, ${t} 0 0 1 ${f.join(",")}`})},afterAutoResizeMixinInit(){const{init:e}=this;e()},fade:ur.fade}},L4=["width","height"],N4=["id"],I4=["stroke","stroke-width","d"],D4=["id"],B4=B("stop",{offset:"0%","stop-color":"transparent","stop-opacity":"1"},null,-1),F4=["stop-color"],V4=["r","cx","cy","stroke"],z4=["cx","cy","fill"],H4=["values","dur"],W4=["dur"],K4=["cx","cy","fill"],j4={key:0},G4=["points","stroke"],q4=["d","stroke"],U4=["xlink:href"],Y4=["values","dur"],X4={class:"decoration-content"};function Q4(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-12",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("defs",null,[B("g",{id:o.gId},[(P(!0),K(Be,null,nt(o.pathD,(l,s)=>(P(),K("path",{stroke:o.pathColor[s],"stroke-width":e.width/2,fill:"transparent",key:l,d:l},null,8,I4))),128))],8,N4),B("radialGradient",{id:o.gradientId,cx:"50%",cy:"50%",r:"50%"},[B4,B("stop",{offset:"100%","stop-color":a.fade(o.mergedColor[1]||o.defaultColor[1],30),"stop-opacity":"1"},null,8,F4)],8,D4)]),(P(!0),K(Be,null,nt(o.circleR,l=>(P(),K("circle",{key:l,r:l,cx:a.x,cy:a.y,stroke:o.mergedColor[1],"stroke-width":.5,fill:"transparent"},null,8,V4))),128)),B("circle",{r:"1",cx:a.x,cy:a.y,stroke:"transparent",fill:`url(#${o.gradientId})`},[B("animate",{attributeName:"r",values:`1;${e.width/2}`,dur:`${n.haloDur}s`,repeatCount:"indefinite"},null,8,H4),B("animate",{attributeName:"opacity",values:"1;0",dur:`${n.haloDur}s`,repeatCount:"indefinite"},null,8,W4)],8,z4),B("circle",{r:"2",cx:a.x,cy:a.y,fill:o.mergedColor[1]},null,8,K4),o.showSplitLine?(P(),K("g",j4,[(P(!0),K(Be,null,nt(o.splitLinePoints,l=>(P(),K("polyline",{key:l,points:l,stroke:o.mergedColor[1],"stroke-width":.5,opacity:"0.5"},null,8,G4))),128))])):be("",!0),(P(!0),K(Be,null,nt(o.arcD,l=>(P(),K("path",{key:l,d:l,stroke:o.mergedColor[1],"stroke-width":"2",fill:"transparent"},null,8,q4))),128)),B("use",{"xlink:href":`#${o.gId}`},[B("animateTransform",{attributeName:"transform",type:"rotate",values:`0, ${a.x} ${a.y};360, ${a.x} ${a.y}`,dur:`${n.scanDur}s`,repeatCount:"indefinite"},null,8,Y4)],8,U4)],8,L4)),B("div",X4,[_e(e.$slots,"default")])],512)}const A0=Tt(R4,[["render",Q4]]);function Z4(e){e.component(A0.name,A0)}const J4={name:"DvDecoration2",mixins:[Nt],props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()},reverse(){const{calcSVGData:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{reverse:e,width:t,height:n}=this;e?(this.w=1,this.h=n,this.x=t/2,this.y=0):(this.w=t,this.h=1,this.x=0,this.y=n/2)},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},e8=["width","height"],t8=["x","y","width","height","fill"],n8=["attributeName","to","dur"],r8=["x","y","fill"],o8=["attributeName","to","dur"];function a8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-2",ref:o.ref},[(P(),K("svg",{width:`${e.width}px`,height:`${e.height}px`},[B("rect",{x:o.x,y:o.y,width:o.w,height:o.h,fill:o.mergedColor[0]},[B("animate",{attributeName:n.reverse?"height":"width",from:"0",to:n.reverse?e.height:e.width,dur:`${n.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null,8,n8)],8,t8),B("rect",{x:o.x,y:o.y,width:"1",height:"1",fill:o.mergedColor[1]},[B("animate",{attributeName:n.reverse?"y":"x",from:"0",to:n.reverse?e.height:e.width,dur:`${n.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null,8,o8)],8,r8)],8,e8))],512)}const O0=Tt(J4,[["render",a8]]);function l8(e){e.component(O0.name,O0)}const s8={name:"DvDecoration3",mixins:[Nt],props:{color:{type:Array,default:()=>[]}},data(){return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:7,halfPointSideLength:7/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{calcPointsPosition:e,calcScale:t}=this;e(),t()},calcPointsPosition(){const{svgWH:e,rowNum:t,rowPoints:n}=this,[r,o]=e,a=r/(n+1),l=o/(t+1);let s=new Array(t).fill(0).map((i,c)=>new Array(n).fill(0).map((f,d)=>[a*(d+1),l*(c+1)]));this.points=s.reduce((i,c)=>[...i,...c],[])},calcScale(){const{width:e,height:t,svgWH:n}=this,[r,o]=n;this.svgScale=[e/r,t/o]},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},i8=["width","height"],u8=["fill","x","y","width","height"],c8=["values","dur","begin"];function d8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-3",ref:o.ref},[(P(),K("svg",{width:`${o.svgWH[0]}px`,height:`${o.svgWH[1]}px`,style:Fe(`transform:scale(${o.svgScale[0]},${o.svgScale[1]});`)},[(P(!0),K(Be,null,nt(o.points,(l,s)=>(P(),K("rect",{key:s,fill:o.mergedColor[0],x:l[0]-o.halfPointSideLength,y:l[1]-o.halfPointSideLength,width:o.pointSideLength,height:o.pointSideLength},[Math.random()>.6?(P(),K("animate",{key:0,attributeName:"fill",values:`${o.mergedColor.join(";")}`,dur:Math.random()+1+"s",begin:Math.random()*2,repeatCount:"indefinite"},null,8,c8)):be("",!0)],8,u8))),128))],12,i8))],512)}const M0=Tt(s8,[["render",d8]]);function f8(e){e.component(M0.name,M0)}const h8={name:"DvDecoration4",mixins:[Nt],props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},p8=["width","height"],v8=["stroke","points"],g8=["stroke","points"];function m8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-4",ref:o.ref},[B("div",{class:V(`container ${n.reverse?"reverse":"normal"}`),style:Fe(n.reverse?`width:${e.width}px;height:5px;animation-duration:${n.dur}s`:`width:5px;height:${e.height}px;animation-duration:${n.dur}s`)},[(P(),K("svg",{width:n.reverse?e.width:5,height:n.reverse?5:e.height},[B("polyline",{stroke:o.mergedColor[0],points:n.reverse?`0, 2.5 ${e.width}, 2.5`:`2.5, 0 2.5, ${e.height}`},null,8,v8),B("polyline",{class:"bold-line",stroke:o.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:n.reverse?`0, 2.5 ${e.width}, 2.5`:`2.5, 0 2.5, ${e.height}`},null,8,g8)],8,p8))],6)],512)}const R0=Tt(h8,[["render",m8]]);function y8(e){e.component(R0.name,R0)}const b8={name:"DvDecoration5",mixins:[Nt],props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:1.2}},data(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{width:e,height:t}=this;let n=[[0,t*.2],[e*.18,t*.2],[e*.2,t*.4],[e*.25,t*.4],[e*.27,t*.6],[e*.72,t*.6],[e*.75,t*.4],[e*.8,t*.4],[e*.82,t*.2],[e,t*.2]],r=[[e*.3,t*.8],[e*.7,t*.8]];const o=Rm(n),a=Rm(r);n=n.map(l=>l.join(",")).join(" "),r=r.map(l=>l.join(",")).join(" "),this.line1Points=n,this.line2Points=r,this.line1Length=o,this.line2Length=a},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},w8=["width","height"],C8=["stroke","points"],S8=["from","to","dur"],k8=["stroke","points"],_8=["from","to","dur"];function $8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-5",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("polyline",{fill:"transparent",stroke:o.mergedColor[0],"stroke-width":"3",points:o.line1Points},[B("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${o.line1Length/2}, 0, ${o.line1Length/2}`,to:`0, 0, ${o.line1Length}, 0`,dur:`${n.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null,8,S8)],8,C8),B("polyline",{fill:"transparent",stroke:o.mergedColor[1],"stroke-width":"2",points:o.line2Points},[B("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${o.line2Length/2}, 0, ${o.line2Length/2}`,to:`0, 0, ${o.line2Length}, 0`,dur:`${n.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null,8,_8)],8,k8)],8,w8))],512)}const L0=Tt(b8,[["render",$8]]);function E8(e){e.component(L0.name,L0)}const P8={name:"DvDecoration6",mixins:[Nt],props:{color:{type:Array,default:()=>[]}},data(){return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:7,halfRectWidth:7/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{calcPointsPosition:e,calcScale:t}=this;e(),t()},calcPointsPosition(){const{svgWH:e,rowNum:t,rowPoints:n}=this,[r,o]=e,a=r/(n+1),l=o/(t+1);let s=new Array(t).fill(0).map((c,f)=>new Array(n).fill(0).map((d,h)=>[a*(h+1),l*(f+1)]));this.points=s.reduce((c,f)=>[...c,...f],[]);const i=this.heights=new Array(t*n).fill(0).map(c=>Math.random()>.8?js(.7*o,o):js(.2*o,.5*o));this.minHeights=new Array(t*n).fill(0).map((c,f)=>i[f]*Math.random()),this.randoms=new Array(t*n).fill(0).map(c=>Math.random()+1.5)},calcScale(){const{width:e,height:t,svgWH:n}=this,[r,o]=n;this.svgScale=[e/r,t/o]},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},T8=["width","height"],x8=["fill","x","y","width","height"],A8=["values","dur"],O8=["values","dur"];function M8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-6",ref:o.ref},[(P(),K("svg",{width:`${o.svgWH[0]}px`,height:`${o.svgWH[1]}px`,style:Fe(`transform:scale(${o.svgScale[0]},${o.svgScale[1]});`)},[(P(!0),K(Be,null,nt(o.points,(l,s)=>(P(),K("rect",{key:s,fill:o.mergedColor[Math.random()>.5?0:1],x:l[0]-o.halfRectWidth,y:l[1]-o.heights[s]/2,width:o.rectWidth,height:o.heights[s]},[B("animate",{attributeName:"y",values:`${l[1]-o.minHeights[s]/2};${l[1]-o.heights[s]/2};${l[1]-o.minHeights[s]/2}`,dur:`${o.randoms[s]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,A8),B("animate",{attributeName:"height",values:`${o.minHeights[s]};${o.heights[s]};${o.minHeights[s]}`,dur:`${o.randoms[s]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,O8)],8,x8))),128))],12,T8))],512)}const N0=Tt(P8,[["render",M8]]);function R8(e){e.component(N0.name,N0)}const L8={name:"DvDecoration7",props:{color:{type:Array,default:()=>[]}},data(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},N8={class:"dv-decoration-7"},I8={width:"21px",height:"20px"},D8=["stroke"],B8=["stroke"],F8={width:"21px",height:"20px"},V8=["stroke"],z8=["stroke"];function H8(e,t,n,r,o,a){return P(),K("div",N8,[(P(),K("svg",I8,[B("polyline",{"stroke-width":"4",fill:"transparent",stroke:o.mergedColor[0],points:"10, 0 19, 10 10, 20"},null,8,D8),B("polyline",{"stroke-width":"2",fill:"transparent",stroke:o.mergedColor[1],points:"2, 0 11, 10 2, 20"},null,8,B8)])),_e(e.$slots,"default"),(P(),K("svg",F8,[B("polyline",{"stroke-width":"4",fill:"transparent",stroke:o.mergedColor[0],points:"11, 0 2, 10 11, 20"},null,8,V8),B("polyline",{"stroke-width":"2",fill:"transparent",stroke:o.mergedColor[1],points:"19, 0 10, 10 19, 20"},null,8,z8)]))])}const I0=Tt(L8,[["render",H8]]);function W8(e){e.component(I0.name,I0)}const K8={name:"DvDecoration8",mixins:[Nt],props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1}},data(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{xPos(e){const{reverse:t,width:n}=this;return t?n-e:e},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},j8=["width","height"],G8=["stroke","points"],q8=["stroke","points"],U8=["stroke","points"];function Y8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-8",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("polyline",{stroke:o.mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${a.xPos(0)}, 0 ${a.xPos(30)}, ${e.height/2}`},null,8,G8),B("polyline",{stroke:o.mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${a.xPos(20)}, 0 ${a.xPos(50)}, ${e.height/2} ${a.xPos(e.width)}, ${e.height/2}`},null,8,q8),B("polyline",{stroke:o.mergedColor[1],fill:"transparent","stroke-width":"3",points:`${a.xPos(0)}, ${e.height-3}, ${a.xPos(200)}, ${e.height-3}`},null,8,U8)],8,j8))],512)}const D0=Tt(K8,[["render",Y8]]);function X8(e){e.component(D0.name,D0)}const Q8={name:"DvDecoration9",mixins:[Nt],props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:3}},data(){return{ref:"decoration-9",polygonId:`decoration-9-polygon-${mr()}`,svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcScale:e}=this;e()},calcScale(){const{width:e,height:t,svgWH:n}=this,[r,o]=n;this.svgScale=[e/r,t/o]},onResize(){const{calcScale:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])},fade:ur.fade},mounted(){const{mergeColor:e}=this;e()}},Z8=["width","height"],J8=["id"],eR=["stroke"],tR=["dur"],nR=["stroke"],rR=["dur"],oR=["stroke"],aR=["xlink:href","stroke","fill"],lR=["dur","begin"],sR=["stroke"];function iR(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-9",ref:o.ref},[(P(),K("svg",{width:`${o.svgWH[0]}px`,height:`${o.svgWH[1]}px`,style:Fe(`transform:scale(${o.svgScale[0]},${o.svgScale[1]});`)},[B("defs",null,[B("polygon",{id:o.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"},null,8,J8)]),B("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:o.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"},[B("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${n.dur}s`,repeatCount:"indefinite"},null,8,tR)],8,eR),B("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:o.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"},[B("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:`${n.dur}s`,repeatCount:"indefinite"},null,8,rR)],8,nR),B("circle",{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:a.fade(o.mergedColor[1]||o.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,oR),(P(!0),K(Be,null,nt(new Array(20).fill(0),(l,s)=>(P(),K("use",{key:s,"xlink:href":`#${o.polygonId}`,stroke:o.mergedColor[1],fill:Math.random()>.4?"transparent":o.mergedColor[0]},[B("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${n.dur}s`,begin:`${s*n.dur/20}s`,repeatCount:"indefinite"},null,8,lR)],8,aR))),128)),B("circle",{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:a.fade(o.mergedColor[1]||o.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,sR)],12,Z8)),_e(e.$slots,"default")],512)}const B0=Tt(Q8,[["render",iR]]);function uR(e){e.component(B0.name,B0)}function cR(e){e.component(Gf.name,Gf)}const dR={name:"DvFlylineChart",mixins:[Nt],props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},data(){const e=mr();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:`flyline-mask-id-${e}`,maskCircleId:`mask-circle-id-${e}`,gradientId:`gradient-id-${e}`,gradient2Id:`gradient2-id-${e}`,defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config(){const{calcData:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcData:e}=this;e()},onResize(){const{calcData:e}=this;e()},async calcData(){const{mergeConfig:e,createFlylinePaths:t,calcLineLengths:n}=this;e(),t(),await n();const{calcTimes:r,calcTexts:o}=this;r(),o()},mergeConfig(){let{config:e,defaultConfig:t}=this;const n=Et(Ct.deepClone(t,!0),e||{}),{points:r}=n;n.points=r.map(o=>o instanceof Array?{position:o,text:""}:o),this.mergedConfig=n},createFlylinePaths(){const{getPath:e,mergedConfig:t,width:n,height:r}=this;let{centerPoint:o,points:a,relative:l}=t;a=a.map(({position:s})=>s),l&&(o=[n*o[0],r*o[1]],a=a.map(([s,i])=>[n*s,r*i])),this.paths=a.map(s=>e(o,s))},getPath(e,t){const{getControlPoint:n}=this,r=n(e,t);return[t,r,e]},getControlPoint([e,t],[n,r]){const{getKLinePointByx:o,mergedConfig:a}=this,{curvature:l,k:s}=a,[i,c]=[(e+n)/2,(t+r)/2],d=ac([e,t],[n,r])/l,h=d/2;let[p,g]=[i,c];do p+=h,g=o(s,[i,c],p)[1];while(ac([i,c],[p,g])n[`path${o}`][0].getTotalLength())},calcTimes(){const{duration:e,points:t}=this.mergedConfig;this.times=t.map(n=>js(...e)/10)},calcTexts(){const{points:e}=this.mergedConfig;this.texts=e.map(({text:t})=>t)},consoleClickPos({offsetX:e,offsetY:t}){const{width:n,height:r,dev:o}=this;if(!o)return;const a=(e/n).toFixed(2),l=(t/r).toFixed(2);console.warn(`dv-flyline-chart DEV: + `},null,8,P4),B("polyline",{fill:"transparent",stroke:a.fade(o.mergedColor[0]||o.defaultColor[0],70),points:`25 18, 15 ${e.height/2} 25 ${e.height-18}`},null,8,T4),B("polyline",{fill:"transparent",stroke:a.fade(o.mergedColor[0]||o.defaultColor[0],70),points:`${e.width-25} 18, ${e.width-15} ${e.height/2} ${e.width-25} ${e.height-18}`},null,8,x4)],8,S4)),B("div",A4,[_e(e.$slots,"default")])],512)}const x0=Tt(C4,[["render",O4]]);function M4(e){e.component(x0.name,x0)}const R4={name:"DvDecoration12",mixins:[Nt],props:{color:{type:Array,default:()=>[]},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data(){const e=mr();return{ref:"decoration-12",gId:`decoration-12-g-${e}`,gradientId:`decoration-12-gradient-${e}`,defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color(){const{mergeColor:e}=this;e()}},computed:{x(){const{width:e}=this;return e/2},y(){const{height:e}=this;return e/2}},methods:{init(){const{mergeColor:e,calcPathD:t,calcPathColor:n,calcCircleR:r,calcSplitLinePoints:o,calcArcD:a}=this;e(),t(),n(),r(),o(),a()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])},calcPathD(){const{x:e,y:t,width:n,segment:r,sectorAngle:o}=this,a=-Math.PI/2,l=o/r,s=n/4;let i=Ct.getCircleRadianPoint(e,t,s,a);this.pathD=new Array(r).fill("").map((c,f)=>{const d=Ct.getCircleRadianPoint(e,t,s,a-(f+1)*l).map(p=>p.toFixed(5)),h=`M${i.join(",")} A${s}, ${s} 0 0 0 ${d.join(",")}`;return i=d,h})},calcPathColor(){const{mergedColor:[e],segment:t}=this,n=100/(t-1);this.pathColor=new Array(t).fill(e).map((r,o)=>ur.fade(e,100-o*n))},calcCircleR(){const{segment:e,ringNum:t,width:n,ringWidth:r}=this,o=(n/2-r/2)/t;this.circleR=new Array(t).fill(0).map((a,l)=>o*(l+1))},calcSplitLinePoints(){const{x:e,y:t,width:n}=this,r=Math.PI/6,o=n/2;this.splitLinePoints=new Array(6).fill("").map((a,l)=>{const s=r*(l+1),i=s+Math.PI,c=Ct.getCircleRadianPoint(e,t,o,s),f=Ct.getCircleRadianPoint(e,t,o,i);return`${c.join(",")} ${f.join(",")}`})},calcArcD(){const{x:e,y:t,width:n}=this,r=Math.PI/6,o=n/2-1;this.arcD=new Array(4).fill("").map((a,l)=>{const s=r*(3*l+1),i=s+r,c=Ct.getCircleRadianPoint(e,t,o,s),f=Ct.getCircleRadianPoint(e,t,o,i);return`M${c.join(",")} A${e}, ${t} 0 0 1 ${f.join(",")}`})},afterAutoResizeMixinInit(){const{init:e}=this;e()},fade:ur.fade}},L4=["width","height"],N4=["id"],I4=["stroke","stroke-width","d"],D4=["id"],B4=B("stop",{offset:"0%","stop-color":"transparent","stop-opacity":"1"},null,-1),F4=["stop-color"],V4=["r","cx","cy","stroke"],z4=["cx","cy","fill"],H4=["values","dur"],W4=["dur"],K4=["cx","cy","fill"],j4={key:0},G4=["points","stroke"],q4=["d","stroke"],U4=["xlink:href"],Y4=["values","dur"],X4={class:"decoration-content"};function Q4(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-12",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("defs",null,[B("g",{id:o.gId},[(P(!0),K(Be,null,nt(o.pathD,(l,s)=>(P(),K("path",{stroke:o.pathColor[s],"stroke-width":e.width/2,fill:"transparent",key:l,d:l},null,8,I4))),128))],8,N4),B("radialGradient",{id:o.gradientId,cx:"50%",cy:"50%",r:"50%"},[B4,B("stop",{offset:"100%","stop-color":a.fade(o.mergedColor[1]||o.defaultColor[1],30),"stop-opacity":"1"},null,8,F4)],8,D4)]),(P(!0),K(Be,null,nt(o.circleR,l=>(P(),K("circle",{key:l,r:l,cx:a.x,cy:a.y,stroke:o.mergedColor[1],"stroke-width":.5,fill:"transparent"},null,8,V4))),128)),B("circle",{r:"1",cx:a.x,cy:a.y,stroke:"transparent",fill:`url(#${o.gradientId})`},[B("animate",{attributeName:"r",values:`1;${e.width/2}`,dur:`${n.haloDur}s`,repeatCount:"indefinite"},null,8,H4),B("animate",{attributeName:"opacity",values:"1;0",dur:`${n.haloDur}s`,repeatCount:"indefinite"},null,8,W4)],8,z4),B("circle",{r:"2",cx:a.x,cy:a.y,fill:o.mergedColor[1]},null,8,K4),o.showSplitLine?(P(),K("g",j4,[(P(!0),K(Be,null,nt(o.splitLinePoints,l=>(P(),K("polyline",{key:l,points:l,stroke:o.mergedColor[1],"stroke-width":.5,opacity:"0.5"},null,8,G4))),128))])):be("",!0),(P(!0),K(Be,null,nt(o.arcD,l=>(P(),K("path",{key:l,d:l,stroke:o.mergedColor[1],"stroke-width":"2",fill:"transparent"},null,8,q4))),128)),B("use",{"xlink:href":`#${o.gId}`},[B("animateTransform",{attributeName:"transform",type:"rotate",values:`0, ${a.x} ${a.y};360, ${a.x} ${a.y}`,dur:`${n.scanDur}s`,repeatCount:"indefinite"},null,8,Y4)],8,U4)],8,L4)),B("div",X4,[_e(e.$slots,"default")])],512)}const A0=Tt(R4,[["render",Q4]]);function Z4(e){e.component(A0.name,A0)}const J4={name:"DvDecoration2",mixins:[Nt],props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()},reverse(){const{calcSVGData:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{reverse:e,width:t,height:n}=this;e?(this.w=1,this.h=n,this.x=t/2,this.y=0):(this.w=t,this.h=1,this.x=0,this.y=n/2)},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},e8=["width","height"],t8=["x","y","width","height","fill"],n8=["attributeName","to","dur"],r8=["x","y","fill"],o8=["attributeName","to","dur"];function a8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-2",ref:o.ref},[(P(),K("svg",{width:`${e.width}px`,height:`${e.height}px`},[B("rect",{x:o.x,y:o.y,width:o.w,height:o.h,fill:o.mergedColor[0]},[B("animate",{attributeName:n.reverse?"height":"width",from:"0",to:n.reverse?e.height:e.width,dur:`${n.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null,8,n8)],8,t8),B("rect",{x:o.x,y:o.y,width:"1",height:"1",fill:o.mergedColor[1]},[B("animate",{attributeName:n.reverse?"y":"x",from:"0",to:n.reverse?e.height:e.width,dur:`${n.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null,8,o8)],8,r8)],8,e8))],512)}const O0=Tt(J4,[["render",a8]]);function l8(e){e.component(O0.name,O0)}const s8={name:"DvDecoration3",mixins:[Nt],props:{color:{type:Array,default:()=>[]}},data(){return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:7,halfPointSideLength:7/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{calcPointsPosition:e,calcScale:t}=this;e(),t()},calcPointsPosition(){const{svgWH:e,rowNum:t,rowPoints:n}=this,[r,o]=e,a=r/(n+1),l=o/(t+1);let s=new Array(t).fill(0).map((i,c)=>new Array(n).fill(0).map((f,d)=>[a*(d+1),l*(c+1)]));this.points=s.reduce((i,c)=>[...i,...c],[])},calcScale(){const{width:e,height:t,svgWH:n}=this,[r,o]=n;this.svgScale=[e/r,t/o]},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},i8=["width","height"],u8=["fill","x","y","width","height"],c8=["values","dur","begin"];function d8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-3",ref:o.ref},[(P(),K("svg",{width:`${o.svgWH[0]}px`,height:`${o.svgWH[1]}px`,style:Fe(`transform:scale(${o.svgScale[0]},${o.svgScale[1]});`)},[(P(!0),K(Be,null,nt(o.points,(l,s)=>(P(),K("rect",{fill:o.mergedColor[0],x:l[0]-o.halfPointSideLength,y:l[1]-o.halfPointSideLength,width:o.pointSideLength,height:o.pointSideLength},[Math.random()>.6?(P(),K("animate",{key:0,attributeName:"fill",values:`${o.mergedColor.join(";")}`,dur:Math.random()+1+"s",begin:Math.random()*2,repeatCount:"indefinite"},null,8,c8)):be("",!0)],8,u8))),256))],12,i8))],512)}const M0=Tt(s8,[["render",d8]]);function f8(e){e.component(M0.name,M0)}const h8={name:"DvDecoration4",mixins:[Nt],props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},p8=["width","height"],v8=["stroke","points"],g8=["stroke","points"];function m8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-4",ref:o.ref},[B("div",{class:V(`container ${n.reverse?"reverse":"normal"}`),style:Fe(n.reverse?`width:${e.width}px;height:5px;animation-duration:${n.dur}s`:`width:5px;height:${e.height}px;animation-duration:${n.dur}s`)},[(P(),K("svg",{width:n.reverse?e.width:5,height:n.reverse?5:e.height},[B("polyline",{stroke:o.mergedColor[0],points:n.reverse?`0, 2.5 ${e.width}, 2.5`:`2.5, 0 2.5, ${e.height}`},null,8,v8),B("polyline",{class:"bold-line",stroke:o.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:n.reverse?`0, 2.5 ${e.width}, 2.5`:`2.5, 0 2.5, ${e.height}`},null,8,g8)],8,p8))],6)],512)}const R0=Tt(h8,[["render",m8]]);function y8(e){e.component(R0.name,R0)}const b8={name:"DvDecoration5",mixins:[Nt],props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:1.2}},data(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{width:e,height:t}=this;let n=[[0,t*.2],[e*.18,t*.2],[e*.2,t*.4],[e*.25,t*.4],[e*.27,t*.6],[e*.72,t*.6],[e*.75,t*.4],[e*.8,t*.4],[e*.82,t*.2],[e,t*.2]],r=[[e*.3,t*.8],[e*.7,t*.8]];const o=Rm(n),a=Rm(r);n=n.map(l=>l.join(",")).join(" "),r=r.map(l=>l.join(",")).join(" "),this.line1Points=n,this.line2Points=r,this.line1Length=o,this.line2Length=a},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},w8=["width","height"],C8=["stroke","points"],S8=["from","to","dur"],k8=["stroke","points"],_8=["from","to","dur"];function $8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-5",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("polyline",{fill:"transparent",stroke:o.mergedColor[0],"stroke-width":"3",points:o.line1Points},[B("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${o.line1Length/2}, 0, ${o.line1Length/2}`,to:`0, 0, ${o.line1Length}, 0`,dur:`${n.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null,8,S8)],8,C8),B("polyline",{fill:"transparent",stroke:o.mergedColor[1],"stroke-width":"2",points:o.line2Points},[B("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${o.line2Length/2}, 0, ${o.line2Length/2}`,to:`0, 0, ${o.line2Length}, 0`,dur:`${n.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null,8,_8)],8,k8)],8,w8))],512)}const L0=Tt(b8,[["render",$8]]);function E8(e){e.component(L0.name,L0)}const P8={name:"DvDecoration6",mixins:[Nt],props:{color:{type:Array,default:()=>[]}},data(){return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:7,halfRectWidth:7/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcSVGData:e}=this;e()},calcSVGData(){const{calcPointsPosition:e,calcScale:t}=this;e(),t()},calcPointsPosition(){const{svgWH:e,rowNum:t,rowPoints:n}=this,[r,o]=e,a=r/(n+1),l=o/(t+1);let s=new Array(t).fill(0).map((c,f)=>new Array(n).fill(0).map((d,h)=>[a*(h+1),l*(f+1)]));this.points=s.reduce((c,f)=>[...c,...f],[]);const i=this.heights=new Array(t*n).fill(0).map(c=>Math.random()>.8?js(.7*o,o):js(.2*o,.5*o));this.minHeights=new Array(t*n).fill(0).map((c,f)=>i[f]*Math.random()),this.randoms=new Array(t*n).fill(0).map(c=>Math.random()+1.5)},calcScale(){const{width:e,height:t,svgWH:n}=this,[r,o]=n;this.svgScale=[e/r,t/o]},onResize(){const{calcSVGData:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},T8=["width","height"],x8=["fill","x","y","width","height"],A8=["values","dur"],O8=["values","dur"];function M8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-6",ref:o.ref},[(P(),K("svg",{width:`${o.svgWH[0]}px`,height:`${o.svgWH[1]}px`,style:Fe(`transform:scale(${o.svgScale[0]},${o.svgScale[1]});`)},[(P(!0),K(Be,null,nt(o.points,(l,s)=>(P(),K("rect",{fill:o.mergedColor[Math.random()>.5?0:1],x:l[0]-o.halfRectWidth,y:l[1]-o.heights[s]/2,width:o.rectWidth,height:o.heights[s]},[B("animate",{attributeName:"y",values:`${l[1]-o.minHeights[s]/2};${l[1]-o.heights[s]/2};${l[1]-o.minHeights[s]/2}`,dur:`${o.randoms[s]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,A8),B("animate",{attributeName:"height",values:`${o.minHeights[s]};${o.heights[s]};${o.minHeights[s]}`,dur:`${o.randoms[s]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,O8)],8,x8))),256))],12,T8))],512)}const N0=Tt(P8,[["render",M8]]);function R8(e){e.component(N0.name,N0)}const L8={name:"DvDecoration7",props:{color:{type:Array,default:()=>[]}},data(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},N8={class:"dv-decoration-7"},I8={width:"21px",height:"20px"},D8=["stroke"],B8=["stroke"],F8={width:"21px",height:"20px"},V8=["stroke"],z8=["stroke"];function H8(e,t,n,r,o,a){return P(),K("div",N8,[(P(),K("svg",I8,[B("polyline",{"stroke-width":"4",fill:"transparent",stroke:o.mergedColor[0],points:"10, 0 19, 10 10, 20"},null,8,D8),B("polyline",{"stroke-width":"2",fill:"transparent",stroke:o.mergedColor[1],points:"2, 0 11, 10 2, 20"},null,8,B8)])),_e(e.$slots,"default"),(P(),K("svg",F8,[B("polyline",{"stroke-width":"4",fill:"transparent",stroke:o.mergedColor[0],points:"11, 0 2, 10 11, 20"},null,8,V8),B("polyline",{"stroke-width":"2",fill:"transparent",stroke:o.mergedColor[1],points:"19, 0 10, 10 19, 20"},null,8,z8)]))])}const I0=Tt(L8,[["render",H8]]);function W8(e){e.component(I0.name,I0)}const K8={name:"DvDecoration8",mixins:[Nt],props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1}},data(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{xPos(e){const{reverse:t,width:n}=this;return t?n-e:e},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])}},mounted(){const{mergeColor:e}=this;e()}},j8=["width","height"],G8=["stroke","points"],q8=["stroke","points"],U8=["stroke","points"];function Y8(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-8",ref:o.ref},[(P(),K("svg",{width:e.width,height:e.height},[B("polyline",{stroke:o.mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${a.xPos(0)}, 0 ${a.xPos(30)}, ${e.height/2}`},null,8,G8),B("polyline",{stroke:o.mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${a.xPos(20)}, 0 ${a.xPos(50)}, ${e.height/2} ${a.xPos(e.width)}, ${e.height/2}`},null,8,q8),B("polyline",{stroke:o.mergedColor[1],fill:"transparent","stroke-width":"3",points:`${a.xPos(0)}, ${e.height-3}, ${a.xPos(200)}, ${e.height-3}`},null,8,U8)],8,j8))],512)}const D0=Tt(K8,[["render",Y8]]);function X8(e){e.component(D0.name,D0)}const Q8={name:"DvDecoration9",mixins:[Nt],props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:3}},data(){return{ref:"decoration-9",polygonId:`decoration-9-polygon-${mr()}`,svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color(){const{mergeColor:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcScale:e}=this;e()},calcScale(){const{width:e,height:t,svgWH:n}=this,[r,o]=n;this.svgScale=[e/r,t/o]},onResize(){const{calcScale:e}=this;e()},mergeColor(){const{color:e,defaultColor:t}=this;this.mergedColor=Et(Ct.deepClone(t,!0),e||[])},fade:ur.fade},mounted(){const{mergeColor:e}=this;e()}},Z8=["width","height"],J8=["id"],eR=["stroke"],tR=["dur"],nR=["stroke"],rR=["dur"],oR=["stroke"],aR=["xlink:href","stroke","fill"],lR=["dur","begin"],sR=["stroke"];function iR(e,t,n,r,o,a){return P(),K("div",{class:"dv-decoration-9",ref:o.ref},[(P(),K("svg",{width:`${o.svgWH[0]}px`,height:`${o.svgWH[1]}px`,style:Fe(`transform:scale(${o.svgScale[0]},${o.svgScale[1]});`)},[B("defs",null,[B("polygon",{id:o.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"},null,8,J8)]),B("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:o.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"},[B("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${n.dur}s`,repeatCount:"indefinite"},null,8,tR)],8,eR),B("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:o.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"},[B("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:`${n.dur}s`,repeatCount:"indefinite"},null,8,rR)],8,nR),B("circle",{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:a.fade(o.mergedColor[1]||o.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,oR),(P(!0),K(Be,null,nt(new Array(20).fill(0),(l,s)=>(P(),K("use",{key:s,"xlink:href":`#${o.polygonId}`,stroke:o.mergedColor[1],fill:Math.random()>.4?"transparent":o.mergedColor[0]},[B("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${n.dur}s`,begin:`${s*n.dur/20}s`,repeatCount:"indefinite"},null,8,lR)],8,aR))),128)),B("circle",{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:a.fade(o.mergedColor[1]||o.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,sR)],12,Z8)),_e(e.$slots,"default")],512)}const B0=Tt(Q8,[["render",iR]]);function uR(e){e.component(B0.name,B0)}function cR(e){e.component(Gf.name,Gf)}const dR={name:"DvFlylineChart",mixins:[Nt],props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},data(){const e=mr();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:`flyline-mask-id-${e}`,maskCircleId:`mask-circle-id-${e}`,gradientId:`gradient-id-${e}`,gradient2Id:`gradient2-id-${e}`,defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config(){const{calcData:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcData:e}=this;e()},onResize(){const{calcData:e}=this;e()},async calcData(){const{mergeConfig:e,createFlylinePaths:t,calcLineLengths:n}=this;e(),t(),await n();const{calcTimes:r,calcTexts:o}=this;r(),o()},mergeConfig(){let{config:e,defaultConfig:t}=this;const n=Et(Ct.deepClone(t,!0),e||{}),{points:r}=n;n.points=r.map(o=>o instanceof Array?{position:o,text:""}:o),this.mergedConfig=n},createFlylinePaths(){const{getPath:e,mergedConfig:t,width:n,height:r}=this;let{centerPoint:o,points:a,relative:l}=t;a=a.map(({position:s})=>s),l&&(o=[n*o[0],r*o[1]],a=a.map(([s,i])=>[n*s,r*i])),this.paths=a.map(s=>e(o,s))},getPath(e,t){const{getControlPoint:n}=this,r=n(e,t);return[t,r,e]},getControlPoint([e,t],[n,r]){const{getKLinePointByx:o,mergedConfig:a}=this,{curvature:l,k:s}=a,[i,c]=[(e+n)/2,(t+r)/2],d=ac([e,t],[n,r])/l,h=d/2;let[p,g]=[i,c];do p+=h,g=o(s,[i,c],p)[1];while(ac([i,c],[p,g])n[`path${o}`][0].getTotalLength())},calcTimes(){const{duration:e,points:t}=this.mergedConfig;this.times=t.map(n=>js(...e)/10)},calcTexts(){const{points:e}=this.mergedConfig;this.texts=e.map(({text:t})=>t)},consoleClickPos({offsetX:e,offsetY:t}){const{width:n,height:r,dev:o}=this;if(!o)return;const a=(e/n).toFixed(2),l=(t/r).toFixed(2);console.warn(`dv-flyline-chart DEV: Click Position is [${e}, ${t}] Relative Position is [${a}, ${l}]`)}}},fR=["width","height"],hR=["id"],pR=B("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),vR=B("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1),gR=[pR,vR],mR=["id"],yR=B("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),bR=B("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1),wR=[yR,bR],CR=["id","cx","cy"],SR=["values","dur"],kR=["dur"],_R=["xlink:href","width","height","x","y"],$R=["id"],ER=["xlink:href","fill"],PR=["xlink:href","fill","mask"],TR=["id","d"],xR=["xlink:href","stroke-width","stroke"],AR=["xlink:href","stroke-width","stroke","mask"],OR=["from","to","dur"],MR=["id"],RR=["r","fill"],LR=["dur","path"],NR=["xlink:href","width","height","x","y"],IR=["fill","x","y"];function DR(e,t,n,r,o,a){return P(),K("div",{class:"dv-flyline-chart",ref:"dv-flyline-chart",style:Fe(`background-image: url(${o.mergedConfig?o.mergedConfig.bgImgUrl:""})`),onClick:t[0]||(t[0]=(...l)=>a.consoleClickPos&&a.consoleClickPos(...l))},[o.mergedConfig?(P(),K("svg",{key:0,width:e.width,height:e.height},[B("defs",null,[B("radialGradient",{id:o.gradientId,cx:"50%",cy:"50%",r:"50%"},gR,8,hR),B("radialGradient",{id:o.gradient2Id,cx:"50%",cy:"50%",r:"50%"},wR,8,mR),o.paths[0]?(P(),K("circle",{key:0,id:`circle${o.paths[0].toString()}`,cx:o.paths[0][2][0],cy:o.paths[0][2][1]},[B("animate",{attributeName:"r",values:`1;${o.mergedConfig.halo.radius}`,dur:o.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"},null,8,SR),B("animate",{attributeName:"opacity",values:"1;0",dur:o.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"},null,8,kR)],8,CR)):be("",!0)]),o.paths[0]?(P(),K("image",{key:0,"xlink:href":o.mergedConfig.centerPointImg.url,width:o.mergedConfig.centerPointImg.width,height:o.mergedConfig.centerPointImg.height,x:o.paths[0][2][0]-o.mergedConfig.centerPointImg.width/2,y:o.paths[0][2][1]-o.mergedConfig.centerPointImg.height/2},null,8,_R)):be("",!0),B("mask",{id:`maskhalo${o.paths[0].toString()}`},[o.paths[0]?(P(),K("use",{key:0,"xlink:href":`#circle${o.paths[0].toString()}`,fill:`url(#${o.gradient2Id})`},null,8,ER)):be("",!0)],8,$R),o.paths[0]&&o.mergedConfig.halo.show?(P(),K("use",{key:1,"xlink:href":`#circle${o.paths[0].toString()}`,fill:o.mergedConfig.halo.color,mask:`url(#maskhalo${o.paths[0].toString()})`},null,8,PR)):be("",!0),(P(!0),K(Be,null,nt(o.paths,(l,s)=>(P(),K("g",{key:s},[B("defs",null,[B("path",{id:`path${l.toString()}`,ref_for:!0,ref:`path${s}`,d:`M${l[0].toString()} Q${l[1].toString()} ${l[2].toString()}`,fill:"transparent"},null,8,TR)]),B("use",{"xlink:href":`#path${l.toString()}`,"stroke-width":o.mergedConfig.lineWidth,stroke:o.mergedConfig.orbitColor},null,8,xR),o.lengths[s]?(P(),K("use",{key:0,"xlink:href":`#path${l.toString()}`,"stroke-width":o.mergedConfig.lineWidth,stroke:o.mergedConfig.flylineColor,mask:`url(#mask${o.unique}${l.toString()})`},[B("animate",{attributeName:"stroke-dasharray",from:`0, ${o.lengths[s]}`,to:`${o.lengths[s]}, 0`,dur:o.times[s]||0,repeatCount:"indefinite"},null,8,OR)],8,AR)):be("",!0),B("mask",{id:`mask${o.unique}${l.toString()}`},[B("circle",{cx:"0",cy:"0",r:o.mergedConfig.flylineRadius,fill:`url(#${o.gradientId})`},[B("animateMotion",{dur:o.times[s]||0,path:`M${l[0].toString()} Q${l[1].toString()} ${l[2].toString()}`,rotate:"auto",repeatCount:"indefinite"},null,8,LR)],8,RR)],8,MR),B("image",{"xlink:href":o.mergedConfig.pointsImg.url,width:o.mergedConfig.pointsImg.width,height:o.mergedConfig.pointsImg.height,x:l[0][0]-o.mergedConfig.pointsImg.width/2,y:l[0][1]-o.mergedConfig.pointsImg.height/2},null,8,NR),B("text",{style:Fe(`fontSize:${o.mergedConfig.text.fontSize}px;`),fill:o.mergedConfig.text.color,x:l[0][0]+o.mergedConfig.text.offset[0],y:l[0][1]+o.mergedConfig.text.offset[1]},Me(o.texts[s]),13,IR)]))),128))],8,fR)):be("",!0)],4)}const F0=Tt(dR,[["render",DR]]);function BR(e){e.component(F0.name,F0)}const FR={name:"DvFlylineChartEnhanced",mixins:[Nt],props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},data(){const e=mr();return{ref:"dv-flyline-chart-enhanced",unique:Math.random(),flylineGradientId:`flyline-gradient-id-${e}`,haloGradientId:`halo-gradient-id-${e}`,defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null}},watch:{config(){const{calcData:e}=this;e()}},methods:{afterAutoResizeMixinInit(){const{calcData:e}=this;e()},onResize(){const{calcData:e}=this;e()},async calcData(){const{mergeConfig:e,calcflylinePoints:t,calcLinePaths:n}=this;e(),t(),n();const{calcLineLengths:r}=this;await r()},mergeConfig(){let{config:e,defaultConfig:t}=this;const n=Et(Ct.deepClone(t,!0),e||{}),{points:r,lines:o,halo:a,text:l,icon:s,line:i}=n;n.points=r.map(c=>(c.halo=Et(Ct.deepClone(a,!0),c.halo||{}),c.text=Et(Ct.deepClone(l,!0),c.text||{}),c.icon=Et(Ct.deepClone(s,!0),c.icon||{}),c)),n.lines=o.map(c=>Et(Ct.deepClone(i,!0),c)),this.mergedConfig=n},calcflylinePoints(){const{mergedConfig:e,width:t,height:n}=this,{relative:r,points:o}=e;this.flylinePoints=o.map((a,l)=>{const{coordinate:[s,i],halo:c,icon:f,text:d}=a;r&&(a.coordinate=[s*t,i*n]),a.halo.time=js(...c.duration)/10;const{width:h,height:p}=f;a.icon.x=a.coordinate[0]-h/2,a.icon.y=a.coordinate[1]-p/2;const[g,v]=d.offset;return a.text.x=a.coordinate[0]+g,a.text.y=a.coordinate[1]+v,a.key=`${a.coordinate.toString()}${l}`,a})},calcLinePaths(){const{getPath:e,mergedConfig:t}=this,{points:n,lines:r}=t;this.flylines=r.map(o=>{const{source:a,target:l,duration:s}=o,i=n.find(({name:g})=>g===a).coordinate,c=n.find(({name:g})=>g===l).coordinate,f=e(i,c).map(g=>g.map(v=>parseFloat(v.toFixed(10)))),d=`M${f[0].toString()} Q${f[1].toString()} ${f[2].toString()}`,h=`path${f.toString()}`,p=js(...s)/10;return{...o,path:f,key:h,d,time:p}})},getPath(e,t){const{getControlPoint:n}=this,r=n(e,t);return[e,r,t]},getControlPoint([e,t],[n,r]){const{getKLinePointByx:o,mergedConfig:a}=this,{curvature:l,k:s}=a,[i,c]=[(e+n)/2,(t+r)/2],d=ac([e,t],[n,r])/l,h=d/2;let[p,g]=[i,c];do p+=h,g=o(s,[i,c],p)[1];while(ac([i,c],[p,g])n[r][0].getTotalLength())},consoleClickPos({offsetX:e,offsetY:t}){const{width:n,height:r,dev:o}=this;if(!o)return;const a=(e/n).toFixed(2),l=(t/r).toFixed(2);console.warn(`dv-flyline-chart-enhanced DEV: Click Position is [${e}, ${t}] @@ -153,7 +153,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Ya=typeof window<"u";function lN(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Bt=Object.assign;function tf(e,t){const n={};for(const r in t){const o=t[r];n[r]=xr(o)?o.map(e):e(o)}return n}const Cs=()=>{},xr=Array.isArray,sN=/\/$/,iN=e=>e.replace(sN,"");function nf(e,t,n="/"){let r,o={},a="",l="";const s=t.indexOf("#");let i=t.indexOf("?");return s=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,s>-1?s:t.length),o=e(a)),s>-1&&(r=r||t.slice(0,s),l=t.slice(s,t.length)),r=fN(r??t,n),{fullPath:r+(a&&"?")+a+l,path:r,query:o,hash:l}}function uN(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function U0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function cN(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&bl(t.matched[r],n.matched[o])&&mC(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function bl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mC(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!dN(e[n],t[n]))return!1;return!0}function dN(e,t){return xr(e)?Y0(e,t):xr(t)?Y0(t,e):e===t}function Y0(e,t){return xr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function fN(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,l,s;for(l=0;l1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(l-(l===r.length?1:0)).join("/")}var Gs;(function(e){e.pop="pop",e.push="push"})(Gs||(Gs={}));var Ss;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ss||(Ss={}));function hN(e){if(!e)if(Ya){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),iN(e)}const pN=/^[^#]+#/;function vN(e,t){return e.replace(pN,"#")+t}function gN(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const zc=()=>({left:window.pageXOffset,top:window.pageYOffset});function mN(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=gN(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function X0(e,t){return(history.state?history.state.position-t:-1)+e}const qf=new Map;function yN(e,t){qf.set(e,t)}function bN(e){const t=qf.get(e);return qf.delete(e),t}let wN=()=>location.protocol+"//"+location.host;function yC(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let s=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(s);return i[0]!=="/"&&(i="/"+i),U0(i,"")}return U0(n,e)+r+o}function CN(e,t,n,r){let o=[],a=[],l=null;const s=({state:h})=>{const p=yC(e,location),g=n.value,v=t.value;let y=0;if(h){if(n.value=p,t.value=h,l&&l===g){l=null;return}y=v?h.position-v.position:0}else r(p);o.forEach(m=>{m(n.value,g,{delta:y,type:Gs.pop,direction:y?y>0?Ss.forward:Ss.back:Ss.unknown})})};function i(){l=n.value}function c(h){o.push(h);const p=()=>{const g=o.indexOf(h);g>-1&&o.splice(g,1)};return a.push(p),p}function f(){const{history:h}=window;h.state&&h.replaceState(Bt({},h.state,{scroll:zc()}),"")}function d(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:i,listen:c,destroy:d}}function Q0(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?zc():null}}function SN(e){const{history:t,location:n}=window,r={value:yC(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,c,f){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+i:wN()+e+i;try{t[f?"replaceState":"pushState"](c,"",h),o.value=c}catch(p){console.error(p),n[f?"replace":"assign"](h)}}function l(i,c){const f=Bt({},t.state,Q0(o.value.back,i,o.value.forward,!0),c,{position:o.value.position});a(i,f,!0),r.value=i}function s(i,c){const f=Bt({},o.value,t.state,{forward:i,scroll:zc()});a(f.current,f,!0);const d=Bt({},Q0(r.value,i,null),{position:f.position+1},c);a(i,d,!1),r.value=i}return{location:r,state:o,push:s,replace:l}}function kN(e){e=hN(e);const t=SN(e),n=CN(e,t.state,t.location,t.replace);function r(a,l=!0){l||n.pauseListeners(),history.go(a)}const o=Bt({location:"",base:e,go:r,createHref:vN.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function _N(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),kN(e)}function $N(e){return typeof e=="string"||e&&typeof e=="object"}function bC(e){return typeof e=="string"||typeof e=="symbol"}const ko={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},wC=Symbol("");var Z0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Z0||(Z0={}));function wl(e,t){return Bt(new Error,{type:e,[wC]:!0},t)}function Jr(e,t){return e instanceof Error&&wC in e&&(t==null||!!(e.type&t))}const J0="[^/]+?",EN={sensitive:!1,strict:!1,start:!0,end:!0},PN=/[.+*?^${}()[\]/\\]/g;function TN(e,t){const n=Bt({},EN,t),r=[];let o=n.start?"^":"";const a=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function AN(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ON={type:0,value:""},MN=/[a-zA-Z0-9_]/;function RN(e){if(!e)return[[]];if(e==="/")return[[ON]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let a;function l(){a&&o.push(a),a=[]}let s=0,i,c="",f="";function d(){c&&(n===0?a.push({type:0,value:c}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:f,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=i}for(;s{l(b)}:Cs}function l(f){if(bC(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function s(){return n}function i(f){let d=0;for(;d=0&&(f.record.path!==n[d].record.path||!CC(f,n[d]));)d++;n.splice(d,0,f),f.record.name&&!ny(f)&&r.set(f.record.name,f)}function c(f,d){let h,p={},g,v;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw wl(1,{location:f});v=h.record.name,p=Bt(ty(d.params,h.keys.filter(b=>!b.optional).map(b=>b.name)),f.params&&ty(f.params,h.keys.map(b=>b.name))),g=h.stringify(p)}else if("path"in f)g=f.path,h=n.find(b=>b.re.test(g)),h&&(p=h.parse(g),v=h.record.name);else{if(h=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!h)throw wl(1,{location:f,currentLocation:d});v=h.record.name,p=Bt({},d.params,f.params),g=h.stringify(p)}const y=[];let m=h;for(;m;)y.unshift(m.record),m=m.parent;return{name:v,path:g,params:p,matched:y,meta:BN(y)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:c,removeRoute:l,getRoutes:s,getRecordMatcher:o}}function ty(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function IN(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:DN(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function DN(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ny(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function BN(e){return e.reduce((t,n)=>Bt(t,n.meta),{})}function ry(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function CC(e,t){return t.children.some(n=>n===e||CC(e,n))}const SC=/#/g,FN=/&/g,VN=/\//g,zN=/=/g,HN=/\?/g,kC=/\+/g,WN=/%5B/g,KN=/%5D/g,_C=/%5E/g,jN=/%60/g,$C=/%7B/g,GN=/%7C/g,EC=/%7D/g,qN=/%20/g;function Dp(e){return encodeURI(""+e).replace(GN,"|").replace(WN,"[").replace(KN,"]")}function UN(e){return Dp(e).replace($C,"{").replace(EC,"}").replace(_C,"^")}function Uf(e){return Dp(e).replace(kC,"%2B").replace(qN,"+").replace(SC,"%23").replace(FN,"%26").replace(jN,"`").replace($C,"{").replace(EC,"}").replace(_C,"^")}function YN(e){return Uf(e).replace(zN,"%3D")}function XN(e){return Dp(e).replace(SC,"%23").replace(HN,"%3F")}function QN(e){return e==null?"":XN(e).replace(VN,"%2F")}function lc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ZN(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oa&&Uf(a)):[r&&Uf(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function JN(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=xr(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const eI=Symbol(""),ay=Symbol(""),Hc=Symbol(""),Bp=Symbol(""),Yf=Symbol("");function os(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Mo(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,s)=>{const i=d=>{d===!1?s(wl(4,{from:n,to:t})):d instanceof Error?s(d):$N(d)?s(wl(2,{from:t,to:d})):(a&&r.enterCallbacks[o]===a&&typeof d=="function"&&a.push(d),l())},c=e.call(r&&r.instances[o],t,n,i);let f=Promise.resolve(c);e.length<3&&(f=f.then(i)),f.catch(d=>s(d))})}function rf(e,t,n,r){const o=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(tI(s)){const c=(s.__vccOpts||s)[t];c&&o.push(Mo(c,n,r,a,l))}else{let i=s();o.push(()=>i.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${a.path}"`));const f=lN(c)?c.default:c;a.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Mo(h,n,r,a,l)()}))}}return o}function tI(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ly(e){const t=We(Hc),n=We(Bp),r=O(()=>t.resolve(u(e.to))),o=O(()=>{const{matched:i}=r.value,{length:c}=i,f=i[c-1],d=n.matched;if(!f||!d.length)return-1;const h=d.findIndex(bl.bind(null,f));if(h>-1)return h;const p=sy(i[c-2]);return c>1&&sy(f)===p&&d[d.length-1].path!==p?d.findIndex(bl.bind(null,i[c-2])):h}),a=O(()=>o.value>-1&&aI(n.params,r.value.params)),l=O(()=>o.value>-1&&o.value===n.matched.length-1&&mC(n.params,r.value.params));function s(i={}){return oI(i)?t[u(e.replace)?"replace":"push"](u(e.to)).catch(Cs):Promise.resolve()}return{route:r,href:O(()=>r.value.href),isActive:a,isExactActive:l,navigate:s}}const nI=ue({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ly,setup(e,{slots:t}){const n=$t(ly(e)),{options:r}=We(Hc),o=O(()=>({[iy(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[iy(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Ue("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),rI=nI;function oI(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function aI(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!xr(o)||o.length!==r.length||r.some((a,l)=>a!==o[l]))return!1}return!0}function sy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const iy=(e,t,n)=>e??t??n,lI=ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=We(Yf),o=O(()=>e.route||r.value),a=We(ay,0),l=O(()=>{let c=u(a);const{matched:f}=o.value;let d;for(;(d=f[c])&&!d.components;)c++;return c}),s=O(()=>o.value.matched[l.value]);ht(ay,O(()=>l.value+1)),ht(eI,s),ht(Yf,o);const i=X();return Te(()=>[i.value,s.value,e.name],([c,f,d],[h,p,g])=>{f&&(f.instances[d]=c,p&&p!==f&&c&&c===h&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),c&&f&&(!p||!bl(f,p)||!h)&&(f.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,f=e.name,d=s.value,h=d&&d.components[f];if(!h)return uy(n.default,{Component:h,route:c});const p=d.props[f],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Ue(h,Bt({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[f]=null)},ref:i}));return uy(n.default,{Component:y,route:c})||y}}});function uy(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const sI=lI;function iI(e){const t=NN(e.routes,e),n=e.parseQuery||ZN,r=e.stringifyQuery||oy,o=e.history,a=os(),l=os(),s=os(),i=Mt(ko);let c=ko;Ya&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=tf.bind(null,U=>""+U),d=tf.bind(null,QN),h=tf.bind(null,lc);function p(U,ne){let ie,ce;return bC(U)?(ie=t.getRecordMatcher(U),ce=ne):ce=U,t.addRoute(ce,ie)}function g(U){const ne=t.getRecordMatcher(U);ne&&t.removeRoute(ne)}function v(){return t.getRoutes().map(U=>U.record)}function y(U){return!!t.getRecordMatcher(U)}function m(U,ne){if(ne=Bt({},ne||i.value),typeof U=="string"){const Y=nf(n,U,ne.path),re=t.resolve({path:Y.path},ne),se=o.createHref(Y.fullPath);return Bt(Y,re,{params:h(re.params),hash:lc(Y.hash),redirectedFrom:void 0,href:se})}let ie;if("path"in U)ie=Bt({},U,{path:nf(n,U.path,ne.path).path});else{const Y=Bt({},U.params);for(const re in Y)Y[re]==null&&delete Y[re];ie=Bt({},U,{params:d(Y)}),ne.params=d(ne.params)}const ce=t.resolve(ie,ne),te=U.hash||"";ce.params=f(h(ce.params));const D=uN(r,Bt({},U,{hash:UN(te),path:ce.path})),W=o.createHref(D);return Bt({fullPath:D,hash:te,query:r===oy?JN(U.query):U.query||{}},ce,{redirectedFrom:void 0,href:W})}function b(U){return typeof U=="string"?nf(n,U,i.value.path):Bt({},U)}function C(U,ne){if(c!==U)return wl(8,{from:ne,to:U})}function w(U){return T(U)}function _(U){return w(Bt(b(U),{replace:!0}))}function $(U){const ne=U.matched[U.matched.length-1];if(ne&&ne.redirect){const{redirect:ie}=ne;let ce=typeof ie=="function"?ie(U):ie;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=b(ce):{path:ce},ce.params={}),Bt({query:U.query,hash:U.hash,params:"path"in ce?{}:U.params},ce)}}function T(U,ne){const ie=c=m(U),ce=i.value,te=U.state,D=U.force,W=U.replace===!0,Y=$(ie);if(Y)return T(Bt(b(Y),{state:typeof Y=="object"?Bt({},te,Y.state):te,force:D,replace:W}),ne||ie);const re=ie;re.redirectedFrom=ne;let se;return!D&&cN(r,ce,ie)&&(se=wl(16,{to:re,from:ce}),z(ce,ce,!0,!1)),(se?Promise.resolve(se):x(re,ce)).catch(q=>Jr(q)?Jr(q,2)?q:R(q):I(q,re,ce)).then(q=>{if(q){if(Jr(q,2))return T(Bt({replace:W},b(q.to),{state:typeof q.to=="object"?Bt({},te,q.to.state):te,force:D}),ne||re)}else q=L(re,ce,!0,W,te);return N(re,ce,q),q})}function E(U,ne){const ie=C(U,ne);return ie?Promise.reject(ie):Promise.resolve()}function M(U){const ne=oe.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(U):U()}function x(U,ne){let ie;const[ce,te,D]=uI(U,ne);ie=rf(ce.reverse(),"beforeRouteLeave",U,ne);for(const Y of ce)Y.leaveGuards.forEach(re=>{ie.push(Mo(re,U,ne))});const W=E.bind(null,U,ne);return ie.push(W),fe(ie).then(()=>{ie=[];for(const Y of a.list())ie.push(Mo(Y,U,ne));return ie.push(W),fe(ie)}).then(()=>{ie=rf(te,"beforeRouteUpdate",U,ne);for(const Y of te)Y.updateGuards.forEach(re=>{ie.push(Mo(re,U,ne))});return ie.push(W),fe(ie)}).then(()=>{ie=[];for(const Y of D)if(Y.beforeEnter)if(xr(Y.beforeEnter))for(const re of Y.beforeEnter)ie.push(Mo(re,U,ne));else ie.push(Mo(Y.beforeEnter,U,ne));return ie.push(W),fe(ie)}).then(()=>(U.matched.forEach(Y=>Y.enterCallbacks={}),ie=rf(D,"beforeRouteEnter",U,ne),ie.push(W),fe(ie))).then(()=>{ie=[];for(const Y of l.list())ie.push(Mo(Y,U,ne));return ie.push(W),fe(ie)}).catch(Y=>Jr(Y,8)?Y:Promise.reject(Y))}function N(U,ne,ie){s.list().forEach(ce=>M(()=>ce(U,ne,ie)))}function L(U,ne,ie,ce,te){const D=C(U,ne);if(D)return D;const W=ne===ko,Y=Ya?history.state:{};ie&&(ce||W?o.replace(U.fullPath,Bt({scroll:W&&Y&&Y.scroll},te)):o.push(U.fullPath,te)),i.value=U,z(U,ne,ie,W),R()}let A;function F(){A||(A=o.listen((U,ne,ie)=>{if(!ve.listening)return;const ce=m(U),te=$(ce);if(te){T(Bt(te,{replace:!0}),ce).catch(Cs);return}c=ce;const D=i.value;Ya&&yN(X0(D.fullPath,ie.delta),zc()),x(ce,D).catch(W=>Jr(W,12)?W:Jr(W,2)?(T(W.to,ce).then(Y=>{Jr(Y,20)&&!ie.delta&&ie.type===Gs.pop&&o.go(-1,!1)}).catch(Cs),Promise.reject()):(ie.delta&&o.go(-ie.delta,!1),I(W,ce,D))).then(W=>{W=W||L(ce,D,!1),W&&(ie.delta&&!Jr(W,8)?o.go(-ie.delta,!1):ie.type===Gs.pop&&Jr(W,20)&&o.go(-1,!1)),N(ce,D,W)}).catch(Cs)}))}let j=os(),H=os(),S;function I(U,ne,ie){R(U);const ce=H.list();return ce.length?ce.forEach(te=>te(U,ne,ie)):console.error(U),Promise.reject(U)}function k(){return S&&i.value!==ko?Promise.resolve():new Promise((U,ne)=>{j.add([U,ne])})}function R(U){return S||(S=!U,F(),j.list().forEach(([ne,ie])=>U?ie(U):ne()),j.reset()),U}function z(U,ne,ie,ce){const{scrollBehavior:te}=e;if(!Ya||!te)return Promise.resolve();const D=!ie&&bN(X0(U.fullPath,0))||(ce||!ie)&&history.state&&history.state.scroll||null;return Ge().then(()=>te(U,ne,D)).then(W=>W&&mN(W)).catch(W=>I(W,U,ne))}const Z=U=>o.go(U);let J;const oe=new Set,ve={currentRoute:i,listening:!0,addRoute:p,removeRoute:g,hasRoute:y,getRoutes:v,resolve:m,options:e,push:w,replace:_,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:a.add,beforeResolve:l.add,afterEach:s.add,onError:H.add,isReady:k,install(U){const ne=this;U.component("RouterLink",rI),U.component("RouterView",sI),U.config.globalProperties.$router=ne,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>u(i)}),Ya&&!J&&i.value===ko&&(J=!0,w(o.location).catch(te=>{}));const ie={};for(const te in ko)Object.defineProperty(ie,te,{get:()=>i.value[te],enumerable:!0});U.provide(Hc,ne),U.provide(Bp,gp(ie)),U.provide(Yf,i);const ce=U.unmount;oe.add(U),U.unmount=function(){oe.delete(U),oe.size<1&&(c=ko,A&&A(),A=null,i.value=ko,J=!1,S=!1),ce()}}};function fe(U){return U.reduce((ne,ie)=>ne.then(()=>M(ie)),Promise.resolve())}return ve}function uI(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let l=0;lbl(c,s))?r.push(s):n.push(s));const i=e.matched[l];i&&(t.matched.find(c=>bl(c,i))||o.push(i))}return[n,r,o]}function Uce(){return We(Hc)}function Yce(){return We(Bp)}const cI=[{path:"/",name:"home",component:()=>Zr(()=>import("./home-zIHBFROr.js"),__vite__mapDeps([0,1,2,3])),redirect:e=>({name:"townDetail",params:{code:510521102}}),children:[{path:"/index",name:"index",component:()=>Zr(()=>import("./index-7n080XYI.js"),__vite__mapDeps([4,5]))},{path:"/townDetail",name:"townDetail",component:()=>Zr(()=>import("./townDetail-8UffmR39.js"),__vite__mapDeps([6,7,1,8,2,9]))},{path:"/commodity",name:"commodity",component:()=>Zr(()=>import("./commodity-lkdEesBe.js"),__vite__mapDeps([10,11,7,1,12]))},{path:"/Businesses",name:"commBusinessesodity",component:()=>Zr(()=>import("./Businesses-_NXm-IAa.js"),__vite__mapDeps([13,11,7,1,14]))},{path:"/storeLogin",name:"storeLogin",component:()=>Zr(()=>import("./storeLogin-OQHIP9eQ.js"),__vite__mapDeps([15,8,7,1,16]))},{path:"/order",name:"order",component:()=>Zr(()=>import("./order-Wz9SA96I.js"),__vite__mapDeps([17,11,18,7,1,19]))},{path:"/finance",name:"finance",component:()=>Zr(()=>import("./finance-DhelbR3x.js"),__vite__mapDeps([20,11,18,7,1,21]))}]},{path:"/login",name:"login",component:()=>Zr(()=>import("./login-30raI85w.js"),__vite__mapDeps([22,7,1,23]))}],PC=iI({mode:"hash",history:_N(),routes:cI});PC.beforeEach(async(e,t,n)=>{n()});const dI='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',fI=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,cy=e=>Array.from(e.querySelectorAll(dI)).filter(t=>hI(t)&&fI(t)),hI=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},$u=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},TC=e=>!e.getAttribute("aria-owns"),xC=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),a=Array.prototype.indexOf.call(o,e);return o[a+t]||null},Eu=e=>{e&&(e.focus(),!TC(e)&&e.click())},Gt=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e==null?void 0:e(o);if(n===!1||!a)return t==null?void 0:t(o)},dy=e=>t=>t.pointerType==="mouse"?e(t):void 0;var pI=Object.defineProperty,vI=Object.defineProperties,gI=Object.getOwnPropertyDescriptors,fy=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,yI=Object.prototype.propertyIsEnumerable,hy=(e,t,n)=>t in e?pI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bI=(e,t)=>{for(var n in t||(t={}))mI.call(t,n)&&hy(e,n,t[n]);if(fy)for(var n of fy(t))yI.call(t,n)&&hy(e,n,t[n]);return e},wI=(e,t)=>vI(e,gI(t));function py(e,t){var n;const r=Mt();return Zn(()=>{r.value=e()},wI(bI({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Fl(r)}var vy;const yt=typeof window<"u",CI=e=>typeof e<"u",SI=e=>typeof e=="function",kI=e=>typeof e=="string",Cl=()=>{},AC=yt&&((vy=window==null?void 0:window.navigator)==null?void 0:vy.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ho(e){return typeof e=="function"?e():u(e)}function OC(e,t){function n(...r){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(a)})}return n}function _I(e,t={}){let n,r,o=Cl;const a=s=>{clearTimeout(s),o(),o=Cl};return s=>{const i=Ho(e),c=Ho(t.maxWait);return n&&a(n),i<=0||c!==void 0&&c<=0?(r&&(a(r),r=null),Promise.resolve(s())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,f(s())},c)),n=setTimeout(()=>{r&&a(r),r=null,f(s())},i)})}}function $I(e,t=!0,n=!0,r=!1){let o=0,a,l=!0,s=Cl,i;const c=()=>{a&&(clearTimeout(a),a=void 0,s(),s=Cl)};return d=>{const h=Ho(e),p=Date.now()-o,g=()=>i=d();return c(),h<=0?(o=Date.now(),g()):(p>h&&(n||!l)?(o=Date.now(),g()):t&&(i=new Promise((v,y)=>{s=r?y:v,a=setTimeout(()=>{o=Date.now(),l=!0,v(g()),c()},Math.max(0,h-p))})),!n&&!a&&(a=setTimeout(()=>l=!0,h)),l=!1,i)}}function EI(e){return e}function wi(e){return cp()?(dp(e),!0):!1}function PI(e,t=200,n={}){return OC(_I(t,n),e)}function TI(e,t=200,n={}){const r=X(e.value),o=PI(()=>{r.value=e.value},t,n);return Te(e,()=>o()),r}function MC(e,t=200,n=!1,r=!0,o=!1){return OC($I(t,n,r,o),e)}function Fp(e,t=!0){lt()?at(e):t?e():Ge(e)}function Aa(e,t,n={}){const{immediate:r=!0}=n,o=X(!1);let a=null;function l(){a&&(clearTimeout(a),a=null)}function s(){o.value=!1,l()}function i(...c){l(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...c)},Ho(t))}return r&&(o.value=!0,yt&&i()),wi(s),{isPending:Fl(o),start:i,stop:s}}function zn(e){var t;const n=Ho(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ia=yt?window:void 0,xI=yt?window.document:void 0;function Ft(...e){let t,n,r,o;if(kI(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Ia):[t,n,r,o]=e,!t)return Cl;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],l=()=>{a.forEach(f=>f()),a.length=0},s=(f,d,h,p)=>(f.addEventListener(d,h,p),()=>f.removeEventListener(d,h,p)),i=Te(()=>[zn(t),Ho(o)],([f,d])=>{l(),f&&a.push(...n.flatMap(h=>r.map(p=>s(f,h,p,d))))},{immediate:!0,flush:"post"}),c=()=>{i(),l()};return wi(c),c}let gy=!1;function Vp(e,t,n={}){const{window:r=Ia,ignore:o=[],capture:a=!0,detectIframe:l=!1}=n;if(!r)return;AC&&!gy&&(gy=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Cl)));let s=!0;const i=h=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(g=>g===h.target||h.composedPath().includes(g));{const g=zn(p);return g&&(h.target===g||h.composedPath().includes(g))}}),f=[Ft(r,"click",h=>{const p=zn(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(s=!i(h)),!s){s=!0;return}t(h)}},{passive:!0,capture:a}),Ft(r,"pointerdown",h=>{const p=zn(e);p&&(s=!h.composedPath().includes(p)&&!i(h))},{passive:!0}),l&&Ft(r,"blur",h=>{var p;const g=zn(e);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&t(h)})].filter(Boolean);return()=>f.forEach(h=>h())}function RC(e,t=!1){const n=X(),r=()=>n.value=!!e();return r(),Fp(r,t),n}function AI(e){return JSON.parse(JSON.stringify(e))}const my=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yy="__vueuse_ssr_handlers__";my[yy]=my[yy]||{};function OI(e,t,{window:n=Ia,initialValue:r=""}={}){const o=X(r),a=O(()=>{var l;return zn(t)||((l=n==null?void 0:n.document)==null?void 0:l.documentElement)});return Te([a,()=>Ho(e)],([l,s])=>{var i;if(l&&n){const c=(i=n.getComputedStyle(l).getPropertyValue(s))==null?void 0:i.trim();o.value=c||r}},{immediate:!0}),Te(o,l=>{var s;(s=a.value)!=null&&s.style&&a.value.style.setProperty(Ho(e),l)}),o}function MI({document:e=xI}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Ft(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var by=Object.getOwnPropertySymbols,RI=Object.prototype.hasOwnProperty,LI=Object.prototype.propertyIsEnumerable,NI=(e,t)=>{var n={};for(var r in e)RI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&by)for(var r of by(e))t.indexOf(r)<0&&LI.call(e,r)&&(n[r]=e[r]);return n};function $n(e,t,n={}){const r=n,{window:o=Ia}=r,a=NI(r,["window"]);let l;const s=RC(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},c=Te(()=>zn(e),d=>{i(),s.value&&o&&d&&(l=new ResizeObserver(t),l.observe(d,a))},{immediate:!0,flush:"post"}),f=()=>{i(),c()};return wi(f),{isSupported:s,stop:f}}function wy(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:a=!0}=t,l=X(0),s=X(0),i=X(0),c=X(0),f=X(0),d=X(0),h=X(0),p=X(0);function g(){const v=zn(e);if(!v){n&&(l.value=0,s.value=0,i.value=0,c.value=0,f.value=0,d.value=0,h.value=0,p.value=0);return}const y=v.getBoundingClientRect();l.value=y.height,s.value=y.bottom,i.value=y.left,c.value=y.right,f.value=y.top,d.value=y.width,h.value=y.x,p.value=y.y}return $n(e,g),Te(()=>zn(e),v=>!v&&g()),o&&Ft("scroll",g,{capture:!0,passive:!0}),r&&Ft("resize",g,{passive:!0}),Fp(()=>{a&&g()}),{height:l,bottom:s,left:i,right:c,top:f,width:d,x:h,y:p,update:g}}var Cy=Object.getOwnPropertySymbols,II=Object.prototype.hasOwnProperty,DI=Object.prototype.propertyIsEnumerable,BI=(e,t)=>{var n={};for(var r in e)II.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Cy)for(var r of Cy(e))t.indexOf(r)<0&&DI.call(e,r)&&(n[r]=e[r]);return n};function FI(e,t,n={}){const r=n,{window:o=Ia}=r,a=BI(r,["window"]);let l;const s=RC(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},c=Te(()=>zn(e),d=>{i(),s.value&&o&&d&&(l=new MutationObserver(t),l.observe(d,a))},{immediate:!0}),f=()=>{i(),c()};return wi(f),{isSupported:s,stop:f}}var Sy;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Sy||(Sy={}));var VI=Object.defineProperty,ky=Object.getOwnPropertySymbols,zI=Object.prototype.hasOwnProperty,HI=Object.prototype.propertyIsEnumerable,_y=(e,t,n)=>t in e?VI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WI=(e,t)=>{for(var n in t||(t={}))zI.call(t,n)&&_y(e,n,t[n]);if(ky)for(var n of ky(t))HI.call(t,n)&&_y(e,n,t[n]);return e};const KI={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};WI({linear:EI},KI);function jI(e,t,n,r={}){var o,a,l;const{clone:s=!1,passive:i=!1,eventName:c,deep:f=!1,defaultValue:d}=r,h=lt(),p=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((l=(a=h==null?void 0:h.proxy)==null?void 0:a.$emit)==null?void 0:l.bind(h==null?void 0:h.proxy));let g=c;t||(t="modelValue"),g=c||g||`update:${t.toString()}`;const v=m=>s?SI(s)?s(m):AI(m):m,y=()=>CI(e[t])?v(e[t]):d;if(i){const m=y(),b=X(m);return Te(()=>e[t],C=>b.value=v(C)),Te(b,C=>{(C!==e[t]||f)&&p(g,C)},{deep:f}),b}else return O({get(){return y()},set(m){p(g,m)}})}function GI({window:e=Ia}={}){if(!e)return X(!1);const t=X(e.document.hasFocus());return Ft(e,"blur",()=>{t.value=!1}),Ft(e,"focus",()=>{t.value=!0}),t}function qI(e={}){const{window:t=Ia,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:a=!0}=e,l=X(n),s=X(r),i=()=>{t&&(a?(l.value=t.innerWidth,s.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return i(),Fp(i),Ft("resize",i,{passive:!0}),o&&Ft("orientationchange",i,{passive:!0}),{width:l,height:s}}const LC=()=>yt&&/firefox/i.test(window.navigator.userAgent),UI=(e,t)=>{if(!yt||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topr.top&&n.right>r.left&&n.left{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},YI=(e,t)=>Math.abs($y(e)-$y(t)),zp=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};var XI=typeof global=="object"&&global&&global.Object===Object&&global;const NC=XI;var QI=typeof self=="object"&&self&&self.Object===Object&&self,ZI=NC||QI||Function("return this")();const Mr=ZI;var JI=Mr.Symbol;const cr=JI;var IC=Object.prototype,e5=IC.hasOwnProperty,t5=IC.toString,as=cr?cr.toStringTag:void 0;function n5(e){var t=e5.call(e,as),n=e[as];try{e[as]=void 0;var r=!0}catch{}var o=t5.call(e);return r&&(t?e[as]=n:delete e[as]),o}var r5=Object.prototype,o5=r5.toString;function a5(e){return o5.call(e)}var l5="[object Null]",s5="[object Undefined]",Ey=cr?cr.toStringTag:void 0;function Da(e){return e==null?e===void 0?s5:l5:Ey&&Ey in Object(e)?n5(e):a5(e)}function Wr(e){return e!=null&&typeof e=="object"}var i5="[object Symbol]";function Wc(e){return typeof e=="symbol"||Wr(e)&&Da(e)==i5}function DC(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=K5)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function U5(e){return function(){return e}}var Y5=function(){try{var e=Fa(Object,"defineProperty");return e({},"",{}),e}catch{}}();const sc=Y5;var X5=sc?function(e,t){return sc(e,"toString",{configurable:!0,enumerable:!1,value:U5(t),writable:!0})}:Hp;const Q5=X5;var Z5=q5(Q5);const VC=Z5;function J5(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}var o6=9007199254740991,a6=/^(?:0|[1-9]\d*)$/;function Kc(e,t){var n=typeof e;return t=t??o6,!!t&&(n=="number"||n!="symbol"&&a6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=i6}function zl(e){return e!=null&&Gp(e.length)&&!Wp(e)}function u6(e,t,n){if(!Rn(n))return!1;var r=typeof t;return(r=="number"?zl(n)&&Kc(t,n.length):r=="string"&&t in n)?Ci(n[t],e):!1}function c6(e){return WC(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,l&&u6(n[0],n[1],l)&&(a=o<3?void 0:a,o=1),t=Object(t);++r-1}function ED(e,t){var n=this.__data__,r=jc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Ei(s,t-1,n,r,o):Zp(o,s):r||(o[o.length]=s)}return o}function YC(e){var t=e==null?0:e.length;return t?Ei(e,1):[]}function KD(e){return VC(HC(e,void 0,YC),e+"")}var jD=UC(Object.getPrototypeOf,Object);const Jp=jD;var GD="[object Object]",qD=Function.prototype,UD=Object.prototype,XC=qD.toString,YD=UD.hasOwnProperty,XD=XC.call(Object);function QD(e){if(!Wr(e)||Da(e)!=GD)return!1;var t=Jp(e);if(t===null)return!0;var n=YD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&XC.call(n)==XD}function Ma(){if(!arguments.length)return[];var e=arguments[0];return Mn(e)?e:[e]}function ZD(){this.__data__=new yo,this.size=0}function JD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function eB(e){return this.__data__.get(e)}function tB(e){return this.__data__.has(e)}var nB=200;function rB(e,t){var n=this.__data__;if(n instanceof yo){var r=n.__data__;if(!Xs||r.lengths))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=n&zF?new Zs:void 0;for(a.set(e,t),a.set(t,e);++d=t||T<0||d&&E>=a}function m(){var $=sf();if(y($))return b($);s=setTimeout(m,v($))}function b($){return s=void 0,h&&r?p($):(r=o=void 0,l)}function C(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function w(){return s===void 0?l:b(sf())}function _(){var $=sf(),T=y($);if(r=arguments,o=this,i=$,T){if(s===void 0)return g(i);if(d)return clearTimeout(s),s=setTimeout(m,t),p(i)}return s===void 0&&(s=setTimeout(m,t)),l}return _.cancel=C,_.flush=w,_}function th(e,t,n){(n!==void 0&&!Ci(e[t],n)||n===void 0&&!(t in e))&&Kp(e,t,n)}function p2(e){return Wr(e)&&zl(e)}function nh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function RV(e){return Si(e,_i(e))}function LV(e,t,n,r,o,a,l){var s=nh(e,n),i=nh(t,n),c=l.get(i);if(c){th(e,n,c);return}var f=a?a(s,i,n+"",e,t,l):void 0,d=f===void 0;if(d){var h=Mn(i),p=!h&&Us(i),g=!h&&!p&&Yp(i);f=i,h||p||g?Mn(s)?f=s:p2(s)?f=FC(s):p?(d=!1,f=ZC(i,!0)):g?(d=!1,f=n2(i,!0)):f=[]:QD(i)||qs(i)?(f=s,qs(s)?f=RV(s):(!Rn(s)||Wp(s))&&(f=r2(i))):d=!1}d&&(l.set(i,f),o(f,i,r,a,l),l.delete(i)),th(e,n,f)}function v2(e,t,n,r,o){e!==t&&h2(t,function(a,l){if(o||(o=new Pr),Rn(a))LV(e,t,l,n,v2,r,o);else{var s=r?r(nh(e,l),a,l+"",e,t,o):void 0;s===void 0&&(s=a),th(e,l,s)}},_i)}function NV(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=JV){var c=t?null:ZV(e);if(c)return nv(c);l=!1,o=s2,i=new Zs}else i=t?[]:s;e:for(;++re===void 0,nn=e=>typeof e=="boolean",Xe=e=>typeof e=="number",rr=e=>!e&&e!==0||Ke(e)&&e.length===0||ct(e)&&!Object.keys(e).length,dr=e=>typeof Element>"u"?!1:e instanceof Element,nz=e=>en(e),rz=e=>tt(e)?!Number.isNaN(Number(e)):!1,b2=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Br=e=>mi(e),Js=e=>Object.keys(e),oz=e=>Object.entries(e),Pu=(e,t,n)=>({get value(){return zt(e,t,n)},set value(r){UV(e,t,r)}});class az extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function rn(e,t){throw new az(`[${e}] ${t}`)}const w2=(e="")=>e.split(" ").filter(t=>!!t.trim()),Tr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Fr=(e,t)=>{!e||!t.trim()||e.classList.add(...w2(t))},Wn=(e,t)=>{!e||!t.trim()||e.classList.remove(...w2(t))},Ro=(e,t)=>{var n;if(!yt||!e||!t)return"";let r=ir(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[r]:""}catch{return e.style[r]}};function Xt(e,t="px"){if(!e)return"";if(Xe(e)||rz(e))return`${e}${t}`;if(tt(e))return e}const lz=(e,t)=>{if(!yt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Ro(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},rv=(e,t)=>{if(!yt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(lz(n,t))return n;n=n.parentNode}return n};let ru;const C2=e=>{var t;if(!yt)return 0;if(ru!==void 0)return ru;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const a=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),ru=r-a,ru};function S2(e,t){if(!yt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce((i,c)=>i+c.offsetTop,0),a=o+t.offsetHeight,l=e.scrollTop,s=l+e.clientHeight;os&&(e.scrollTop=a-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var sz=ue({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Yo=sz,iz=ue({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Wo=iz,uz=ue({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),An=uz,cz=ue({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Xc=cz,dz=ue({name:"Back",__name:"back",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),B("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),fz=dz,hz=ue({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),pz=hz,vz=ue({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),k2=vz,gz=ue({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),mz=gz,yz=ue({name:"Check",__name:"check",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Pi=yz,bz=ue({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),wz=bz,Cz=ue({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),B("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),ov=Cz,Sz=ue({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),av=Sz,kz=ue({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),B("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Xo=kz,_z=ue({name:"Clock",__name:"clock",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),B("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),B("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),_2=_z,$z=ue({name:"Close",__name:"close",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ar=$z,Ez=ue({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),kl=Ez,Pz=ue({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),_l=Pz,Tz=ue({name:"Delete",__name:"delete",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),xz=Tz,Az=ue({name:"Document",__name:"document",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Oz=Az,Mz=ue({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Rz=Mz,Lz=ue({name:"Hide",__name:"hide",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),B("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Nz=Lz,Iz=ue({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),lv=Iz,Dz=ue({name:"Loading",__name:"loading",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Qo=Dz,Bz=ue({name:"Minus",__name:"minus",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Fz=Bz,Vz=ue({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),rb=Vz,zz=ue({name:"More",__name:"more",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Hz=zz,Wz=ue({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Kz=Wz,jz=ue({name:"Plus",__name:"plus",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),$2=jz,Gz=ue({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),qz=Gz,Uz=ue({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),Yz=Uz,Xz=ue({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Qz=Xz,Zz=ue({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Jz=Zz,eH=ue({name:"Search",__name:"search",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),tH=eH,nH=ue({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),rH=nH,oH=ue({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),aH=oH,lH=ue({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),ou=lH,sH=ue({name:"Star",__name:"star",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),iH=sH,uH=ue({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),E2=uH,cH=ue({name:"View",__name:"view",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),dH=cH,fH=ue({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Qc=fH,hH=ue({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),P2=hH,pH=ue({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),vH=pH;const T2="__epPropKey",we=e=>e,gH=e=>ct(e)&&!!e[T2],Rr=(e,t)=>{if(!ct(e)||gH(e))return e;const{values:n,required:r,default:o,type:a,validator:l}=e,i={type:a,required:!!r,validator:n||l?c=>{let f=!1,d=[];if(n&&(d=Array.from(n),gt(e,"default")&&d.push(o),f||(f=d.includes(c))),l&&(f||(f=l(c))),!f&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");pE(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[T2]:!0};return gt(e,"default")&&(i.default=o),i},Le=e=>cc(Object.entries(e).map(([t,n])=>[t,Rr(n,t)])),Rt=we([String,Object,Function]),x2={Close:Ar},sv={Close:Ar,SuccessFilled:E2,InfoFilled:lv,WarningFilled:Qc,CircleCloseFilled:av},Ko={success:E2,warning:Qc,error:av,info:lv},iv={validating:Qo,success:ov,error:Xo},it=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},A2=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),mH=(e,t)=>(e.install=n=>{n.directive(t,e)},e),qt=e=>(e.install=At,e),Zc=(...e)=>t=>{e.forEach(n=>{Ze(n)?n(t):n.value=t})},qe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},yH=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],cf=["sun","mon","tue","wed","thu","fri","sat"],ut="update:modelValue",It="change",On="input",ob=Symbol("INSTALLED_KEY"),Xr=["","default","small","large"],bH={large:40,default:32,small:24},wH=e=>bH[e||"default"],uv=e=>["",...Xr].includes(e);var nr=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(nr||{});function rh(e){return Vt(e)&&e.type===Be}function CH(e){return Vt(e)&&e.type===xn}function SH(e){return Vt(e)&&!rh(e)&&!CH(e)}const kH=e=>{if(!Vt(e))return{};const t=e.props||{},n=(Vt(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{gt(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[ir(o)]=t[o]}),r},_H=e=>{if(!Ke(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},_a=e=>{const t=Ke(e)?e:[e],n=[];return t.forEach(r=>{var o;Ke(r)?n.push(..._a(r)):Vt(r)&&Ke(r.children)?n.push(..._a(r.children)):(n.push(r),Vt(r)&&((o=r.component)!=null&&o.subTree)&&n.push(..._a(r.component.subTree)))}),n},ab=e=>[...new Set(e)],uo=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Jc=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),$l=e=>yt?window.requestAnimationFrame(e):setTimeout(e,16),ed=e=>yt?window.cancelAnimationFrame(e):clearTimeout(e),td=()=>Math.floor(Math.random()*1e4),Ht=e=>e,$H=["class","style"],EH=/^on[A-Z]/,cv=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=O(()=>((n==null?void 0:n.value)||[]).concat($H)),o=lt();return O(o?()=>{var a;return cc(Object.entries((a=o.proxy)==null?void 0:a.$attrs).filter(([l])=>!r.value.includes(l)&&!(t&&EH.test(l))))}:()=>({}))},Kr=({from:e,replacement:t,scope:n,version:r,ref:o,type:a="API"},l)=>{Te(()=>u(l),s=>{},{immediate:!0})},O2=(e,t,n)=>{let r={offsetX:0,offsetY:0};const o=s=>{const i=s.clientX,c=s.clientY,{offsetX:f,offsetY:d}=r,h=e.value.getBoundingClientRect(),p=h.left,g=h.top,v=h.width,y=h.height,m=document.documentElement.clientWidth,b=document.documentElement.clientHeight,C=-p+f,w=-g+d,_=m-p-v+f,$=b-g-y+d,T=M=>{const x=Math.min(Math.max(f+M.clientX-i,C),_),N=Math.min(Math.max(d+M.clientY-c,w),$);r={offsetX:x,offsetY:N},e.value&&(e.value.style.transform=`translate(${Xt(x)}, ${Xt(N)})`)},E=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",E)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};at(()=>{Zn(()=>{n.value?a():l()})}),Dt(()=>{l()})};var PH={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const TH=e=>(t,n)=>xH(t,n,u(e)),xH=(e,t,n)=>zt(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var a;return`${(a=t==null?void 0:t[o])!=null?a:`{${o}}`}`}),AH=e=>{const t=O(()=>u(e).name),n=xt(e)?e:X(e);return{lang:t,locale:n,t:TH(e)}},M2=Symbol("localeContextKey"),bt=e=>{const t=e||We(M2,X());return AH(O(()=>t.value||PH))},$s="el",OH="is-",la=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},R2=Symbol("namespaceContextKey"),dv=e=>{const t=e||(lt()?We(R2,X($s)):X($s));return O(()=>u(t)||$s)},Ae=(e,t)=>{const n=dv(t);return{namespace:n,b:(v="")=>la(n.value,e,v,"",""),e:v=>v?la(n.value,e,"",v,""):"",m:v=>v?la(n.value,e,"","",v):"",be:(v,y)=>v&&y?la(n.value,e,v,y,""):"",em:(v,y)=>v&&y?la(n.value,e,"",v,y):"",bm:(v,y)=>v&&y?la(n.value,e,v,"",y):"",bem:(v,y,m)=>v&&y&&m?la(n.value,e,v,y,m):"",is:(v,...y)=>{const m=y.length>=1?y[0]:!0;return v&&m?`${OH}${v}`:""},cssVar:v=>{const y={};for(const m in v)v[m]&&(y[`--${n.value}-${m}`]=v[m]);return y},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const y={};for(const m in v)v[m]&&(y[`--${n.value}-${e}-${m}`]=v[m]);return y},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},L2=(e,t={})=>{xt(e)||rn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ae("popup"),r=vw(()=>n.bm("parent","hidden"));if(!yt||Tr(document.body,r.value))return;let o=0,a=!1,l="0";const s=()=>{setTimeout(()=>{Wn(document==null?void 0:document.body,r.value),a&&document&&(document.body.style.width=l)},200)};Te(e,i=>{if(!i){s();return}a=!Tr(document.body,r.value),a&&(l=document.body.style.width),o=C2(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||f==="scroll")&&a&&(document.body.style.width=`calc(100% - ${o}px)`),Fr(document.body,r.value)}),dp(()=>s())},MH=Rr({type:we(Boolean),default:null}),RH=Rr({type:we(Function)}),N2=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:MH,[n]:RH};return{useModelToggle:({indicator:l,toggleReason:s,shouldHideWhenRouteChanges:i,shouldProceed:c,onShow:f,onHide:d})=>{const h=lt(),{emit:p}=h,g=h.props,v=O(()=>Ze(g[n])),y=O(()=>g[e]===null),m=T=>{l.value!==!0&&(l.value=!0,s&&(s.value=T),Ze(f)&&f(T))},b=T=>{l.value!==!1&&(l.value=!1,s&&(s.value=T),Ze(d)&&d(T))},C=T=>{if(g.disabled===!0||Ze(c)&&!c())return;const E=v.value&&yt;E&&p(t,!0),(y.value||!E)&&m(T)},w=T=>{if(g.disabled===!0||!yt)return;const E=v.value&&yt;E&&p(t,!1),(y.value||!E)&&b(T)},_=T=>{nn(T)&&(g.disabled&&T?v.value&&p(t,!1):l.value!==T&&(T?m():b()))},$=()=>{l.value?w():C()};return Te(()=>g[e],_),i&&h.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...h.proxy.$route}),()=>{i.value&&l.value&&w()}),at(()=>{_(g[e])}),{hide:w,show:C,toggle:$,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:r}};N2("modelValue");const I2=e=>{const t=lt();return O(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var Kn="top",fr="bottom",hr="right",jn="left",fv="auto",Ti=[Kn,fr,hr,jn],El="start",ei="end",LH="clippingParents",D2="viewport",ls="popper",NH="reference",lb=Ti.reduce(function(e,t){return e.concat([t+"-"+El,t+"-"+ei])},[]),Va=[].concat(Ti,[fv]).reduce(function(e,t){return e.concat([t,t+"-"+El,t+"-"+ei])},[]),IH="beforeRead",DH="read",BH="afterRead",FH="beforeMain",VH="main",zH="afterMain",HH="beforeWrite",WH="write",KH="afterWrite",jH=[IH,DH,BH,FH,VH,zH,HH,WH,KH];function jr(e){return e?(e.nodeName||"").toLowerCase():null}function Lr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pl(e){var t=Lr(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Lr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hv(e){if(typeof ShadowRoot>"u")return!1;var t=Lr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function GH(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!sr(a)||!jr(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(l){var s=o[l];s===!1?a.removeAttribute(l):a.setAttribute(l,s===!0?"":s)}))})}function qH(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=l.reduce(function(i,c){return i[c]="",i},{});!sr(o)||!jr(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(i){o.removeAttribute(i)}))})}}var B2={name:"applyStyles",enabled:!0,phase:"write",fn:GH,effect:qH,requires:["computeStyles"]};function zr(e){return e.split("-")[0]}var $a=Math.max,dc=Math.min,Tl=Math.round;function xl(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(sr(e)&&t){var a=e.offsetHeight,l=e.offsetWidth;l>0&&(r=Tl(n.width)/l||1),a>0&&(o=Tl(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function pv(e){var t=xl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fo(e){return Lr(e).getComputedStyle(e)}function UH(e){return["table","td","th"].indexOf(jr(e))>=0}function Zo(e){return((Pl(e)?e.ownerDocument:e.document)||window.document).documentElement}function nd(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(hv(e)?e.host:null)||Zo(e)}function sb(e){return!sr(e)||fo(e).position==="fixed"?null:e.offsetParent}function YH(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&sr(e)){var r=fo(e);if(r.position==="fixed")return null}var o=nd(e);for(hv(o)&&(o=o.host);sr(o)&&["html","body"].indexOf(jr(o))<0;){var a=fo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function xi(e){for(var t=Lr(e),n=sb(e);n&&UH(n)&&fo(n).position==="static";)n=sb(n);return n&&(jr(n)==="html"||jr(n)==="body"&&fo(n).position==="static")?t:n||YH(e)||t}function vv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Es(e,t,n){return $a(e,dc(t,n))}function XH(e,t,n){var r=Es(e,t,n);return r>n?n:r}function V2(){return{top:0,right:0,bottom:0,left:0}}function z2(e){return Object.assign({},V2(),e)}function H2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var QH=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,z2(typeof e!="number"?e:H2(e,Ti))};function ZH(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,s=zr(n.placement),i=vv(s),c=[jn,hr].indexOf(s)>=0,f=c?"height":"width";if(!(!a||!l)){var d=QH(o.padding,n),h=pv(a),p=i==="y"?Kn:jn,g=i==="y"?fr:hr,v=n.rects.reference[f]+n.rects.reference[i]-l[i]-n.rects.popper[f],y=l[i]-n.rects.reference[i],m=xi(a),b=m?i==="y"?m.clientHeight||0:m.clientWidth||0:0,C=v/2-y/2,w=d[p],_=b-h[f]-d[g],$=b/2-h[f]/2+C,T=Es(w,$,_),E=i;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-$,t)}}function JH(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!F2(t.elements.popper,o)||(t.elements.arrow=o))}var e9={name:"arrow",enabled:!0,phase:"main",fn:ZH,effect:JH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Al(e){return e.split("-")[1]}var t9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function n9(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Tl(t*o)/o||0,y:Tl(n*o)/o||0}}function ib(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,s=e.position,i=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,h=l.x,p=h===void 0?0:h,g=l.y,v=g===void 0?0:g,y=typeof f=="function"?f({x:p,y:v}):{x:p,y:v};p=y.x,v=y.y;var m=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),C=jn,w=Kn,_=window;if(c){var $=xi(n),T="clientHeight",E="clientWidth";if($===Lr(n)&&($=Zo(n),fo($).position!=="static"&&s==="absolute"&&(T="scrollHeight",E="scrollWidth")),$=$,o===Kn||(o===jn||o===hr)&&a===ei){w=fr;var M=d&&$===_&&_.visualViewport?_.visualViewport.height:$[T];v-=M-r.height,v*=i?1:-1}if(o===jn||(o===Kn||o===fr)&&a===ei){C=hr;var x=d&&$===_&&_.visualViewport?_.visualViewport.width:$[E];p-=x-r.width,p*=i?1:-1}}var N=Object.assign({position:s},c&&t9),L=f===!0?n9({x:p,y:v}):{x:p,y:v};if(p=L.x,v=L.y,i){var A;return Object.assign({},N,(A={},A[w]=b?"0":"",A[C]=m?"0":"",A.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",A))}return Object.assign({},N,(t={},t[w]=b?v+"px":"",t[C]=m?p+"px":"",t.transform="",t))}function r9(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,l=a===void 0?!0:a,s=n.roundOffsets,i=s===void 0?!0:s,c={placement:zr(t.placement),variation:Al(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ib(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ib(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var W2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r9,data:{}},au={passive:!0};function o9(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,l=r.resize,s=l===void 0?!0:l,i=Lr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",n.update,au)}),s&&i.addEventListener("resize",n.update,au),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",n.update,au)}),s&&i.removeEventListener("resize",n.update,au)}}var K2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o9,data:{}},a9={left:"right",right:"left",bottom:"top",top:"bottom"};function Tu(e){return e.replace(/left|right|bottom|top/g,function(t){return a9[t]})}var l9={start:"end",end:"start"};function ub(e){return e.replace(/start|end/g,function(t){return l9[t]})}function gv(e){var t=Lr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function mv(e){return xl(Zo(e)).left+gv(e).scrollLeft}function s9(e){var t=Lr(e),n=Zo(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:l+mv(e),y:s}}function i9(e){var t,n=Zo(e),r=gv(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=$a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=$a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+mv(e),i=-r.scrollTop;return fo(o||n).direction==="rtl"&&(s+=$a(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:s,y:i}}function yv(e){var t=fo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function j2(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:sr(e)&&yv(e)?e:j2(nd(e))}function Ps(e,t){var n;t===void 0&&(t=[]);var r=j2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Lr(r),l=o?[a].concat(a.visualViewport||[],yv(r)?r:[]):r,s=t.concat(l);return o?s:s.concat(Ps(nd(l)))}function oh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function u9(e){var t=xl(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 cb(e,t){return t===D2?oh(s9(e)):Pl(t)?u9(t):oh(i9(Zo(e)))}function c9(e){var t=Ps(nd(e)),n=["absolute","fixed"].indexOf(fo(e).position)>=0,r=n&&sr(e)?xi(e):e;return Pl(r)?t.filter(function(o){return Pl(o)&&F2(o,r)&&jr(o)!=="body"}):[]}function d9(e,t,n){var r=t==="clippingParents"?c9(e):[].concat(t),o=[].concat(r,[n]),a=o[0],l=o.reduce(function(s,i){var c=cb(e,i);return s.top=$a(c.top,s.top),s.right=dc(c.right,s.right),s.bottom=dc(c.bottom,s.bottom),s.left=$a(c.left,s.left),s},cb(e,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function G2(e){var t=e.reference,n=e.element,r=e.placement,o=r?zr(r):null,a=r?Al(r):null,l=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,i;switch(o){case Kn:i={x:l,y:t.y-n.height};break;case fr:i={x:l,y:t.y+t.height};break;case hr:i={x:t.x+t.width,y:s};break;case jn:i={x:t.x-n.width,y:s};break;default:i={x:t.x,y:t.y}}var c=o?vv(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case El:i[c]=i[c]-(t[f]/2-n[f]/2);break;case ei:i[c]=i[c]+(t[f]/2-n[f]/2);break}}return i}function ti(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,l=a===void 0?LH:a,s=n.rootBoundary,i=s===void 0?D2:s,c=n.elementContext,f=c===void 0?ls:c,d=n.altBoundary,h=d===void 0?!1:d,p=n.padding,g=p===void 0?0:p,v=z2(typeof g!="number"?g:H2(g,Ti)),y=f===ls?NH:ls,m=e.rects.popper,b=e.elements[h?y:f],C=d9(Pl(b)?b:b.contextElement||Zo(e.elements.popper),l,i),w=xl(e.elements.reference),_=G2({reference:w,element:m,strategy:"absolute",placement:o}),$=oh(Object.assign({},m,_)),T=f===ls?$:w,E={top:C.top-T.top+v.top,bottom:T.bottom-C.bottom+v.bottom,left:C.left-T.left+v.left,right:T.right-C.right+v.right},M=e.modifiersData.offset;if(f===ls&&M){var x=M[o];Object.keys(E).forEach(function(N){var L=[hr,fr].indexOf(N)>=0?1:-1,A=[Kn,fr].indexOf(N)>=0?"y":"x";E[N]+=x[A]*L})}return E}function f9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,l=n.padding,s=n.flipVariations,i=n.allowedAutoPlacements,c=i===void 0?Va:i,f=Al(r),d=f?s?lb:lb.filter(function(g){return Al(g)===f}):Ti,h=d.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=d);var p=h.reduce(function(g,v){return g[v]=ti(e,{placement:v,boundary:o,rootBoundary:a,padding:l})[zr(v)],g},{});return Object.keys(p).sort(function(g,v){return p[g]-p[v]})}function h9(e){if(zr(e)===fv)return[];var t=Tu(e);return[ub(e),t,ub(t)]}function p9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!0:l,i=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,v=n.allowedAutoPlacements,y=t.options.placement,m=zr(y),b=m===y,C=i||(b||!g?[Tu(y)]:h9(y)),w=[y].concat(C).reduce(function(oe,ve){return oe.concat(zr(ve)===fv?f9(t,{placement:ve,boundary:f,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:v}):ve)},[]),_=t.rects.reference,$=t.rects.popper,T=new Map,E=!0,M=w[0],x=0;x=0,j=F?"width":"height",H=ti(t,{placement:N,boundary:f,rootBoundary:d,altBoundary:h,padding:c}),S=F?A?hr:jn:A?fr:Kn;_[j]>$[j]&&(S=Tu(S));var I=Tu(S),k=[];if(a&&k.push(H[L]<=0),s&&k.push(H[S]<=0,H[I]<=0),k.every(function(oe){return oe})){M=N,E=!1;break}T.set(N,k)}if(E)for(var R=g?3:1,z=function(oe){var ve=w.find(function(fe){var U=T.get(fe);if(U)return U.slice(0,oe).every(function(ne){return ne})});if(ve)return M=ve,"break"},Z=R;Z>0;Z--){var J=z(Z);if(J==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var v9={name:"flip",enabled:!0,phase:"main",fn:p9,requiresIfExists:["offset"],data:{_skip:!1}};function db(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fb(e){return[Kn,hr,fr,jn].some(function(t){return e[t]>=0})}function g9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=ti(t,{elementContext:"reference"}),s=ti(t,{altBoundary:!0}),i=db(l,r),c=db(s,o,a),f=fb(i),d=fb(c);t.modifiersData[n]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var m9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:g9};function y9(e,t,n){var r=zr(e),o=[jn,Kn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=a[0],s=a[1];return l=l||0,s=(s||0)*o,[jn,hr].indexOf(r)>=0?{x:s,y:l}:{x:l,y:s}}function b9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,l=Va.reduce(function(f,d){return f[d]=y9(d,t.rects,a),f},{}),s=l[t.placement],i=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=l}var w9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:b9};function C9(e){var t=e.state,n=e.name;t.modifiersData[n]=G2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var q2={name:"popperOffsets",enabled:!0,phase:"read",fn:C9,data:{}};function S9(e){return e==="x"?"y":"x"}function k9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!1:l,i=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,g=n.tetherOffset,v=g===void 0?0:g,y=ti(t,{boundary:i,rootBoundary:c,padding:d,altBoundary:f}),m=zr(t.placement),b=Al(t.placement),C=!b,w=vv(m),_=S9(w),$=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,x=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if($){if(a){var A,F=w==="y"?Kn:jn,j=w==="y"?fr:hr,H=w==="y"?"height":"width",S=$[w],I=S+y[F],k=S-y[j],R=p?-E[H]/2:0,z=b===El?T[H]:E[H],Z=b===El?-E[H]:-T[H],J=t.elements.arrow,oe=p&&J?pv(J):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V2(),fe=ve[F],U=ve[j],ne=Es(0,T[H],oe[H]),ie=C?T[H]/2-R-ne-fe-x.mainAxis:z-ne-fe-x.mainAxis,ce=C?-T[H]/2+R+ne+U+x.mainAxis:Z+ne+U+x.mainAxis,te=t.elements.arrow&&xi(t.elements.arrow),D=te?w==="y"?te.clientTop||0:te.clientLeft||0:0,W=(A=N==null?void 0:N[w])!=null?A:0,Y=S+ie-W-D,re=S+ce-W,se=Es(p?dc(I,Y):I,S,p?$a(k,re):k);$[w]=se,L[w]=se-S}if(s){var q,ae=w==="x"?Kn:jn,G=w==="x"?fr:hr,Q=$[_],ee=_==="y"?"height":"width",le=Q+y[ae],he=Q-y[G],ye=[Kn,jn].indexOf(m)!==-1,ge=(q=N==null?void 0:N[_])!=null?q:0,Ee=ye?le:Q-T[ee]-E[ee]-ge+x.altAxis,Oe=ye?Q+T[ee]+E[ee]-ge-x.altAxis:he,Ie=p&&ye?XH(Ee,Q,Oe):Es(p?Ee:le,Q,p?Oe:he);$[_]=Ie,L[_]=Ie-Q}t.modifiersData[r]=L}}var _9={name:"preventOverflow",enabled:!0,phase:"main",fn:k9,requiresIfExists:["offset"]};function $9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function E9(e){return e===Lr(e)||!sr(e)?gv(e):$9(e)}function P9(e){var t=e.getBoundingClientRect(),n=Tl(t.width)/e.offsetWidth||1,r=Tl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function T9(e,t,n){n===void 0&&(n=!1);var r=sr(t),o=sr(t)&&P9(t),a=Zo(t),l=xl(e,o),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(r||!r&&!n)&&((jr(t)!=="body"||yv(a))&&(s=E9(t)),sr(t)?(i=xl(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=mv(a))),{x:l.left+s.scrollLeft-i.x,y:l.top+s.scrollTop-i.y,width:l.width,height:l.height}}function x9(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(s){if(!n.has(s)){var i=t.get(s);i&&o(i)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function A9(e){var t=x9(e);return jH.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function O9(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function M9(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:i})=>{const c=I9(i);Object.assign(l.value,c)},requires:["computeStyles"]},o=O(()=>{const{onFirstUpdate:i,placement:c,strategy:f,modifiers:d}=u(n);return{onFirstUpdate:i,placement:c||"bottom",strategy:f||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),a=Mt(),l=X({styles:{popper:{position:u(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return Te(o,i=>{const c=u(a);c&&c.setOptions(i)},{deep:!0}),Te([e,t],([i,c])=>{s(),!(!i||!c)&&(a.value=U2(i,c,u(o)))}),Dt(()=>{s()}),{state:O(()=>{var i;return{...((i=u(a))==null?void 0:i.state)||{}}}),styles:O(()=>u(l).styles),attributes:O(()=>u(l).attributes),update:()=>{var i;return(i=u(a))==null?void 0:i.update()},forceUpdate:()=>{var i;return(i=u(a))==null?void 0:i.forceUpdate()},instanceRef:O(()=>u(a))}};function I9(e){const t=Object.keys(e.elements),n=cc(t.map(o=>[o,e.styles[o]||{}])),r=cc(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const wv=e=>{if(!e)return{onClick:At,onMousedown:At,onMouseup:At};let t=!1,n=!1;return{onClick:l=>{t&&n&&e(l),t=n=!1},onMousedown:l=>{t=l.target===l.currentTarget},onMouseup:l=>{n=l.target===l.currentTarget}}},D9=(e,t=0)=>{if(t===0)return e;const n=X(!1);let r=0;const o=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return at(o),Te(()=>e.value,a=>{a?o():n.value=a}),n};function vb(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return wi(()=>n()),{registerTimeout:t,cancelTimeout:n}}const gb={prefix:Math.floor(Math.random()*1e4),current:0},B9=Symbol("elIdInjection"),Y2=()=>lt()?We(B9,gb):gb,qn=e=>{const t=Y2(),n=dv();return O(()=>u(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Xa=[];const mb=e=>{const t=e;t.key===qe.esc&&Xa.forEach(n=>n(t))},F9=e=>{at(()=>{Xa.length===0&&document.addEventListener("keydown",mb),yt&&Xa.push(e)}),Dt(()=>{Xa=Xa.filter(t=>t!==e),Xa.length===0&&yt&&document.removeEventListener("keydown",mb)})};let yb;const X2=()=>{const e=dv(),t=Y2(),n=O(()=>`${e.value}-popper-container-${t.prefix}`),r=O(()=>`#${n.value}`);return{id:n,selector:r}},V9=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},z9=()=>{const{id:e,selector:t}=X2();return Lc(()=>{yt&&!yb&&!document.body.querySelector(t.value)&&(yb=V9(e.value))}),{id:e,selector:t}},H9=Le({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Q2=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:a}=vb(),{registerTimeout:l,cancelTimeout:s}=vb();return{onOpen:f=>{a(()=>{r(f);const d=u(n);Xe(d)&&d>0&&l(()=>{o(f)},d)},u(e))},onClose:f=>{s(),a(()=>{o(f)},u(t))}}},Z2=Symbol("elForwardRef"),W9=e=>{ht(Z2,{setForwardRef:n=>{e.value=n}})},K9=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),bb=X(0),J2=2e3,eS=Symbol("zIndexContextKey"),Hl=e=>{const t=e||(lt()?We(eS,void 0):void 0),n=O(()=>{const a=u(t);return Xe(a)?a:J2}),r=O(()=>n.value+bb.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(bb.value++,r.value)}},ni=Math.min,il=Math.max,fc=Math.round,jo=e=>({x:e,y:e});function j9(e,t,n){return il(e,ni(t,n))}function tS(e,t){return typeof e=="function"?e(t):e}function Cv(e){return e.split("-")[0]}function Sv(e){return e.split("-")[1]}function G9(e){return e==="x"?"y":"x"}function nS(e){return e==="y"?"height":"width"}function kv(e){return["top","bottom"].includes(Cv(e))?"y":"x"}function rS(e){return G9(kv(e))}function q9(e){return{top:0,right:0,bottom:0,left:0,...e}}function U9(e){return typeof e!="number"?q9(e):{top:e,right:e,bottom:e,left:e}}function oS(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function wb(e,t,n){let{reference:r,floating:o}=e;const a=kv(t),l=rS(t),s=nS(l),i=Cv(t),c=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let p;switch(i){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Sv(t)){case"start":p[l]-=h*(n&&c?-1:1);break;case"end":p[l]+=h*(n&&c?-1:1);break}return p}const Y9=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=a.filter(Boolean),i=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=wb(c,r,i),h=r,p={},g=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:l,elements:s,middlewareData:i}=t,{element:c,padding:f=0}=tS(e,t)||{};if(c==null)return{};const d=U9(f),h={x:n,y:r},p=rS(o),g=nS(p),v=await l.getDimensions(c),y=p==="y",m=y?"top":"left",b=y?"bottom":"right",C=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[p]-h[p]-a.floating[g],_=h[p]-a.reference[p],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let T=$?$[C]:0;(!T||!await(l.isElement==null?void 0:l.isElement($)))&&(T=s.floating[C]||a.floating[g]);const E=w/2-_/2,M=T/2-v[g]/2-1,x=ni(d[m],M),N=ni(d[b],M),L=x,A=T-v[g]-N,F=T/2-v[g]/2+E,j=j9(L,F,A),H=!i.arrow&&Sv(o)!=null&&F!=j&&a.reference[g]/2-(F"u"?!1:e instanceof ShadowRoot||e instanceof Jn(e).ShadowRoot}function Ai(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function J9(e){return["table","td","th"].includes(Go(e))}function _v(e){const t=$v(),n=pr(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function eW(e){let t=Ol(e);for(;Gr(t)&&!rd(t);){if(_v(t))return t;t=Ol(t)}return null}function $v(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rd(e){return["html","body","#document"].includes(Go(e))}function pr(e){return Jn(e).getComputedStyle(e)}function od(e){return ho(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ol(e){if(Go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cb(e)&&e.host||Jo(e);return Cb(t)?t.host:t}function lS(e){const t=Ol(e);return rd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gr(t)&&Ai(t)?t:lS(t)}function ah(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=lS(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),l=Jn(o);return a?t.concat(l,l.visualViewport||[],Ai(o)?o:[],l.frameElement&&n?ah(l.frameElement):[]):t.concat(o,ah(o,[],n))}function sS(e){const t=pr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gr(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=fc(n)!==a||fc(r)!==l;return s&&(n=a,r=l),{width:n,height:r,$:s}}function iS(e){return ho(e)?e:e.contextElement}function ul(e){const t=iS(e);if(!Gr(t))return jo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=sS(t);let l=(a?fc(n.width):n.width)/r,s=(a?fc(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const tW=jo(0);function uS(e){const t=Jn(e);return!$v()||!t.visualViewport?tW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Jn(e)?!1:t}function ri(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=iS(e);let l=jo(1);t&&(r?ho(r)&&(l=ul(r)):l=ul(e));const s=nW(a,n,r)?uS(a):jo(0);let i=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,f=o.width/l.x,d=o.height/l.y;if(a){const h=Jn(a),p=r&&ho(r)?Jn(r):r;let g=h.frameElement;for(;g&&r&&p!==h;){const v=ul(g),y=g.getBoundingClientRect(),m=pr(g),b=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*v.x,C=y.top+(g.clientTop+parseFloat(m.paddingTop))*v.y;i*=v.x,c*=v.y,f*=v.x,d*=v.y,i+=b,c+=C,g=Jn(g).frameElement}}return oS({width:f,height:d,x:i,y:c})}function rW(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Gr(n),a=Jo(n);if(n===a)return t;let l={scrollLeft:0,scrollTop:0},s=jo(1);const i=jo(0);if((o||!o&&r!=="fixed")&&((Go(n)!=="body"||Ai(a))&&(l=od(n)),Gr(n))){const c=ri(n);s=ul(n),i.x=c.x+n.clientLeft,i.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+i.x,y:t.y*s.y-l.scrollTop*s.y+i.y}}function oW(e){return Array.from(e.getClientRects())}function cS(e){return ri(Jo(e)).left+od(e).scrollLeft}function aW(e){const t=Jo(e),n=od(e),r=e.ownerDocument.body,o=il(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=il(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+cS(e);const s=-n.scrollTop;return pr(r).direction==="rtl"&&(l+=il(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:l,y:s}}function lW(e,t){const n=Jn(e),r=Jo(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,s=0,i=0;if(o){a=o.width,l=o.height;const c=$v();(!c||c&&t==="fixed")&&(s=o.offsetLeft,i=o.offsetTop)}return{width:a,height:l,x:s,y:i}}function sW(e,t){const n=ri(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Gr(e)?ul(e):jo(1),l=e.clientWidth*a.x,s=e.clientHeight*a.y,i=o*a.x,c=r*a.y;return{width:l,height:s,x:i,y:c}}function Sb(e,t,n){let r;if(t==="viewport")r=lW(e,n);else if(t==="document")r=aW(Jo(e));else if(ho(t))r=sW(t,n);else{const o=uS(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return oS(r)}function dS(e,t){const n=Ol(e);return n===t||!ho(n)||rd(n)?!1:pr(n).position==="fixed"||dS(n,t)}function iW(e,t){const n=t.get(e);if(n)return n;let r=ah(e,[],!1).filter(s=>ho(s)&&Go(s)!=="body"),o=null;const a=pr(e).position==="fixed";let l=a?Ol(e):e;for(;ho(l)&&!rd(l);){const s=pr(l),i=_v(l);!i&&s.position==="fixed"&&(o=null),(a?!i&&!o:!i&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ai(l)&&!i&&dS(e,l))?r=r.filter(f=>f!==l):o=s,l=Ol(l)}return t.set(e,r),r}function uW(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?iW(t,this._c):[].concat(n),r],s=l[0],i=l.reduce((c,f)=>{const d=Sb(t,f,o);return c.top=il(d.top,c.top),c.right=ni(d.right,c.right),c.bottom=ni(d.bottom,c.bottom),c.left=il(d.left,c.left),c},Sb(t,s,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}}function cW(e){return sS(e)}function dW(e,t,n){const r=Gr(t),o=Jo(t),a=n==="fixed",l=ri(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const i=jo(0);if(r||!r&&!a)if((Go(t)!=="body"||Ai(o))&&(s=od(t)),r){const c=ri(t,!0,a,t);i.x=c.x+t.clientLeft,i.y=c.y+t.clientTop}else o&&(i.x=cS(o));return{x:l.left+s.scrollLeft-i.x,y:l.top+s.scrollTop-i.y,width:l.width,height:l.height}}function kb(e,t){return!Gr(e)||pr(e).position==="fixed"?null:t?t(e):e.offsetParent}function fS(e,t){const n=Jn(e);if(!Gr(e))return n;let r=kb(e,t);for(;r&&J9(r)&&pr(r).position==="static";)r=kb(r,t);return r&&(Go(r)==="html"||Go(r)==="body"&&pr(r).position==="static"&&!_v(r))?n:r||eW(e)||n}const fW=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||fS,a=this.getDimensions;return{reference:dW(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function hW(e){return pr(e).direction==="rtl"}const pW={convertOffsetParentRelativeRectToViewportRelativeRect:rW,getDocumentElement:Jo,getClippingRect:uW,getOffsetParent:fS,getElementRects:fW,getClientRects:oW,getDimensions:cW,getScale:ul,isElement:ho,isRTL:hW},vW=(e,t,n)=>{const r=new Map,o={platform:pW,...n},a={...o.platform,_c:r};return Y9(e,t,{...o,platform:a})};Le({});const gW=e=>{if(!yt)return;if(!e)return e;const t=zn(e);return t||(xt(e)?t:e)},mW=({middleware:e,placement:t,strategy:n})=>{const r=X(),o=X(),a=X(),l=X(),s=X({}),i={x:a,y:l,placement:t,strategy:n,middlewareData:s},c=async()=>{if(!yt)return;const f=gW(r),d=zn(o);if(!f||!d)return;const h=await vW(f,d,{placement:u(t),strategy:u(n),middleware:u(e)});Js(i).forEach(p=>{i[p].value=h[p]})};return at(()=>{Zn(()=>{c()})}),{...i,update:c,referenceRef:r,contentRef:o}},yW=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=u(e);return r?X9({element:r,padding:t}).fn(n):{}}});function bW(e){const t=X();function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:a,value:l}=e.value;if(o==null||a==null)return;const s=l.slice(0,Math.max(0,o)),i=l.slice(Math.max(0,a));t.value={selectionStart:o,selectionEnd:a,value:l,beforeTxt:s,afterTxt:i}}function r(){if(e.value==null||t.value==null)return;const{value:o}=e.value,{beforeTxt:a,afterTxt:l,selectionStart:s}=t.value;if(a==null||l==null||s==null)return;let i=o.length;if(o.endsWith(l))i=o.length-l.length;else if(o.startsWith(a))i=a.length;else{const c=a[s-1],f=o.indexOf(c,s-1);f!==-1&&(i=f+1)}e.value.setSelectionRange(i,i)}return[n,r]}const wW=(e,t,n)=>_a(e.subTree).filter(a=>{var l;return Vt(a)&&((l=a.type)==null?void 0:l.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),Ev=(e,t)=>{const n={},r=Mt([]);return{children:r,addChild:l=>{n[l.uid]=l,r.value=wW(e,t,n)},removeChild:l=>{delete n[l],r.value=r.value.filter(s=>s.uid!==l)}}},gn=Rr({type:String,values:Xr,required:!1}),hS=Symbol("size"),CW=()=>{const e=We(hS,{});return O(()=>u(e.size)||"")};function pS(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const o=lt(),{emit:a}=o,l=Mt(),s=X(!1),i=d=>{s.value||(s.value=!0,a("focus",d),t==null||t())},c=d=>{var h;Ze(n)&&n(d)||d.relatedTarget&&((h=l.value)!=null&&h.contains(d.relatedTarget))||(s.value=!1,a("blur",d),r==null||r())},f=()=>{var d;(d=e.value)==null||d.focus()};return Te(l,d=>{d&&d.setAttribute("tabindex","-1")}),Ft(l,"click",f),{wrapperRef:l,isFocused:s,handleFocus:i,handleBlur:c}}const vS=Symbol(),hc=X();function ad(e,t=void 0){const n=lt()?We(vS,hc):hc;return e?O(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function ld(e,t){const n=ad(),r=Ae(e,O(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||$s})),o=bt(O(()=>{var s;return(s=n.value)==null?void 0:s.locale})),a=Hl(O(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||J2})),l=O(()=>{var s;return u(t)||((s=n.value)==null?void 0:s.size)||""});return Pv(O(()=>u(n)||{})),{ns:r,locale:o,zIndex:a,size:l}}const Pv=(e,t,n=!1)=>{var r;const o=!!lt(),a=o?ad():void 0,l=(r=t==null?void 0:t.provide)!=null?r:o?ht:void 0;if(!l)return;const s=O(()=>{const i=u(e);return a!=null&&a.value?SW(a.value,i):i});return l(vS,s),l(M2,O(()=>s.value.locale)),l(R2,O(()=>s.value.namespace)),l(eS,O(()=>s.value.zIndex)),l(hS,{size:O(()=>s.value.size||"")}),(n||!hc.value)&&(hc.value=s.value),s},SW=(e,t)=>{var n;const r=[...new Set([...Js(e),...Js(t)])],o={};for(const a of r)o[a]=(n=t[a])!=null?n:e[a];return o},kW=Le({a11y:{type:Boolean,default:!0},locale:{type:we(Object)},size:gn,button:{type:we(Object)},experimentalFeatures:{type:we(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:we(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),lh={},_W=ue({name:"ElConfigProvider",props:kW,setup(e,{slots:t}){Te(()=>e.message,r=>{Object.assign(lh,r??{})},{immediate:!0,deep:!0});const n=Pv(e);return()=>_e(t,"default",{config:n==null?void 0:n.value})}}),$W=it(_W),EW="2.4.4",PW=(e=[])=>({version:EW,install:(n,r)=>{n[ob]||(n[ob]=!0,e.forEach(o=>n.use(o)),r&&Pv(r,n,!0))}}),TW=Le({zIndex:{type:we([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),xW={scroll:({scrollTop:e,fixed:t})=>Xe(e)&&nn(t),[It]:e=>nn(e)};var Ne=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const gS="ElAffix",AW=ue({name:gS}),OW=ue({...AW,props:TW,emits:xW,setup(e,{expose:t,emit:n}){const r=e,o=Ae("affix"),a=Mt(),l=Mt(),s=Mt(),{height:i}=qI(),{height:c,width:f,top:d,bottom:h,update:p}=wy(l,{windowScroll:!1}),g=wy(a),v=X(!1),y=X(0),m=X(0),b=O(()=>({height:v.value?`${c.value}px`:"",width:v.value?`${f.value}px`:""})),C=O(()=>{if(!v.value)return{};const $=r.offset?Xt(r.offset):0;return{height:`${c.value}px`,width:`${f.value}px`,top:r.position==="top"?$:"",bottom:r.position==="bottom"?$:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(s.value)if(y.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const $=g.bottom.value-r.offset-c.value;v.value=r.offset>d.value&&g.bottom.value>0,m.value=$<0?$:0}else v.value=r.offset>d.value;else if(r.target){const $=i.value-g.top.value-r.offset-c.value;v.value=i.value-r.offsetg.top.value,m.value=$<0?-$:0}else v.value=i.value-r.offset{p(),n("scroll",{scrollTop:y.value,fixed:v.value})};return Te(v,$=>n("change",$)),at(()=>{var $;r.target?(a.value=($=document.querySelector(r.target))!=null?$:void 0,a.value||rn(gS,`Target is not existed: ${r.target}`)):a.value=document.documentElement,s.value=rv(l.value,!0),p()}),Ft(s,"scroll",_),Zn(w),t({update:w,updateRoot:p}),($,T)=>(P(),K("div",{ref_key:"root",ref:l,class:V(u(o).b()),style:Fe(u(b))},[B("div",{class:V({[u(o).m("fixed")]:v.value}),style:Fe(u(C))},[_e($.$slots,"default")],6)],6))}});var MW=Ne(OW,[["__file","affix.vue"]]);const RW=it(MW),LW=Le({size:{type:we([Number,String])},color:{type:String}}),NW=ue({name:"ElIcon",inheritAttrs:!1}),IW=ue({...NW,props:LW,setup(e){const t=e,n=Ae("icon"),r=O(()=>{const{size:o,color:a}=t;return!o&&!a?{}:{fontSize:tn(o)?void 0:Xt(o),"--color":a}});return(o,a)=>(P(),K("i",ft({class:u(n).b(),style:u(r)},o.$attrs),[_e(o.$slots,"default")],16))}});var DW=Ne(IW,[["__file","icon.vue"]]);const je=it(DW),BW=["light","dark"],FW=Le({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Js(Ko),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:BW,default:"light"}}),VW={close:e=>e instanceof MouseEvent},zW=ue({name:"ElAlert"}),HW=ue({...zW,props:FW,emits:VW,setup(e,{emit:t}){const n=e,{Close:r}=sv,o=mn(),a=Ae("alert"),l=X(!0),s=O(()=>Ko[n.type]),i=O(()=>[a.e("icon"),{[a.is("big")]:!!n.description||!!o.default}]),c=O(()=>({[a.is("bold")]:n.description||o.default})),f=d=>{l.value=!1,t("close",d)};return(d,h)=>(P(),ke(Jt,{name:u(a).b("fade"),persisted:""},{default:me(()=>[rt(B("div",{class:V([u(a).b(),u(a).m(d.type),u(a).is("center",d.center),u(a).is(d.effect)]),role:"alert"},[d.showIcon&&u(s)?(P(),ke(u(je),{key:0,class:V(u(i))},{default:me(()=>[(P(),ke(dt(u(s))))]),_:1},8,["class"])):be("v-if",!0),B("div",{class:V(u(a).e("content"))},[d.title||d.$slots.title?(P(),K("span",{key:0,class:V([u(a).e("title"),u(c)])},[_e(d.$slots,"title",{},()=>[kt(Me(d.title),1)])],2)):be("v-if",!0),d.$slots.default||d.description?(P(),K("p",{key:1,class:V(u(a).e("description"))},[_e(d.$slots,"default",{},()=>[kt(Me(d.description),1)])],2)):be("v-if",!0),d.closable?(P(),K(Be,{key:2},[d.closeText?(P(),K("div",{key:0,class:V([u(a).e("close-btn"),u(a).is("customed")]),onClick:f},Me(d.closeText),3)):(P(),ke(u(je),{key:1,class:V(u(a).e("close-btn")),onClick:f},{default:me(()=>[de(u(r))]),_:1},8,["class"]))],64)):be("v-if",!0)],2)],2),[[St,l.value]])]),_:3},8,["name"]))}});var WW=Ne(HW,[["__file","alert.vue"]]);const KW=it(WW),za=Symbol("formContextKey"),qr=Symbol("formItemContextKey"),on=(e,t={})=>{const n=X(void 0),r=t.prop?n:I2("size"),o=t.global?n:CW(),a=t.form?{size:void 0}:We(za,void 0),l=t.formItem?{size:void 0}:We(qr,void 0);return O(()=>r.value||u(e)||(l==null?void 0:l.size)||(a==null?void 0:a.size)||o.value||"")},Un=e=>{const t=I2("disabled"),n=We(za,void 0);return O(()=>t.value||u(e)||(n==null?void 0:n.disabled)||!1)},Dn=()=>{const e=We(za,void 0),t=We(qr,void 0);return{form:e,formItem:t}},ea=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=X(!1)),r||(r=X(!1));const o=X();let a;const l=O(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return at(()=>{a=Te([Wt(e,"id"),n],([s,i])=>{const c=s??(i?void 0:qn().value);c!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!i&&c&&t.addInputId(c)),o.value=c)},{immediate:!0})}),Uo(()=>{a&&a(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},jW=Le({size:{type:String,values:Xr},disabled:Boolean}),GW=Le({...jW,model:Object,rules:{type:we(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),qW={validate:(e,t,n)=>(Ke(e)||tt(e))&&nn(t)&&tt(n)};function UW(){const e=X([]),t=O(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function n(a){const l=e.value.indexOf(a);return l===-1&&t.value,l}function r(a,l){if(a&&l){const s=n(l);e.value.splice(s,1,a)}else a&&e.value.push(a)}function o(a){const l=n(a);l>-1&&e.value.splice(l,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const lu=(e,t)=>{const n=Ma(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},YW="ElForm",XW=ue({name:YW}),QW=ue({...XW,props:GW,emits:qW,setup(e,{expose:t,emit:n}){const r=e,o=[],a=on(),l=Ae("form"),s=O(()=>{const{labelPosition:b,inline:C}=r;return[l.b(),l.m(a.value||"default"),{[l.m(`label-${b}`)]:b,[l.m("inline")]:C}]}),i=b=>{o.push(b)},c=b=>{b.prop&&o.splice(o.indexOf(b),1)},f=(b=[])=>{r.model&&lu(o,b).forEach(C=>C.resetField())},d=(b=[])=>{lu(o,b).forEach(C=>C.clearValidate())},h=O(()=>!!r.model),p=b=>{if(o.length===0)return[];const C=lu(o,b);return C.length?C:[]},g=async b=>y(void 0,b),v=async(b=[])=>{if(!h.value)return!1;const C=p(b);if(C.length===0)return!0;let w={};for(const _ of C)try{await _.validate("")}catch($){w={...w,...$}}return Object.keys(w).length===0?!0:Promise.reject(w)},y=async(b=[],C)=>{const w=!Ze(C);try{const _=await v(b);return _===!0&&(C==null||C(_)),_}catch(_){if(_ instanceof Error)throw _;const $=_;return r.scrollToError&&m(Object.keys($)[0]),C==null||C(!1,$),w&&Promise.reject($)}},m=b=>{var C;const w=lu(o,b)[0];w&&((C=w.$el)==null||C.scrollIntoView(r.scrollIntoViewOptions))};return Te(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(b=>void 0)},{deep:!0}),ht(za,$t({...ln(r),emit:n,resetFields:f,clearValidate:d,validateField:y,addField:i,removeField:c,...UW()})),t({validate:g,validateField:y,resetFields:f,clearValidate:d,scrollToField:m}),(b,C)=>(P(),K("form",{class:V(u(s))},[_e(b.$slots,"default")],2))}});var ZW=Ne(QW,[["__file","form.vue"]]);function va(){return va=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 xu(e,t,n){return e7()?xu=Reflect.construct.bind():xu=function(o,a,l){var s=[null];s.push.apply(s,a);var i=Function.bind.apply(o,s),c=new i;return l&&oi(c,l.prototype),c},xu.apply(null,arguments)}function t7(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ih(e){var t=typeof Map=="function"?new Map:void 0;return ih=function(r){if(r===null||!t7(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return xu(r,arguments,sh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),oi(o,r)},ih(e)}var n7=/%[sdj%]/g,r7=function(){};function uh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Qn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return l}return e}function o7(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function cn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||o7(t)&&typeof e=="string"&&!e)}function a7(e,t,n){var r=[],o=0,a=e.length;function l(s){r.push.apply(r,s||[]),o++,o===a&&n(r)}e.forEach(function(s){t(s,l)})}function _b(e,t,n){var r=0,o=e.length;function a(l){if(l&&l.length){n(l);return}var s=r;r=r+1,s{},xr=Array.isArray,sN=/\/$/,iN=e=>e.replace(sN,"");function nf(e,t,n="/"){let r,o={},a="",l="";const s=t.indexOf("#");let i=t.indexOf("?");return s=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,s>-1?s:t.length),o=e(a)),s>-1&&(r=r||t.slice(0,s),l=t.slice(s,t.length)),r=fN(r??t,n),{fullPath:r+(a&&"?")+a+l,path:r,query:o,hash:l}}function uN(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function U0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function cN(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&bl(t.matched[r],n.matched[o])&&mC(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function bl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mC(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!dN(e[n],t[n]))return!1;return!0}function dN(e,t){return xr(e)?Y0(e,t):xr(t)?Y0(t,e):e===t}function Y0(e,t){return xr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function fN(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,l,s;for(l=0;l1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(l-(l===r.length?1:0)).join("/")}var Gs;(function(e){e.pop="pop",e.push="push"})(Gs||(Gs={}));var Ss;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ss||(Ss={}));function hN(e){if(!e)if(Ya){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),iN(e)}const pN=/^[^#]+#/;function vN(e,t){return e.replace(pN,"#")+t}function gN(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const zc=()=>({left:window.pageXOffset,top:window.pageYOffset});function mN(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=gN(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function X0(e,t){return(history.state?history.state.position-t:-1)+e}const qf=new Map;function yN(e,t){qf.set(e,t)}function bN(e){const t=qf.get(e);return qf.delete(e),t}let wN=()=>location.protocol+"//"+location.host;function yC(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let s=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(s);return i[0]!=="/"&&(i="/"+i),U0(i,"")}return U0(n,e)+r+o}function CN(e,t,n,r){let o=[],a=[],l=null;const s=({state:h})=>{const p=yC(e,location),g=n.value,v=t.value;let y=0;if(h){if(n.value=p,t.value=h,l&&l===g){l=null;return}y=v?h.position-v.position:0}else r(p);o.forEach(m=>{m(n.value,g,{delta:y,type:Gs.pop,direction:y?y>0?Ss.forward:Ss.back:Ss.unknown})})};function i(){l=n.value}function c(h){o.push(h);const p=()=>{const g=o.indexOf(h);g>-1&&o.splice(g,1)};return a.push(p),p}function f(){const{history:h}=window;h.state&&h.replaceState(Bt({},h.state,{scroll:zc()}),"")}function d(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:i,listen:c,destroy:d}}function Q0(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?zc():null}}function SN(e){const{history:t,location:n}=window,r={value:yC(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,c,f){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+i:wN()+e+i;try{t[f?"replaceState":"pushState"](c,"",h),o.value=c}catch(p){console.error(p),n[f?"replace":"assign"](h)}}function l(i,c){const f=Bt({},t.state,Q0(o.value.back,i,o.value.forward,!0),c,{position:o.value.position});a(i,f,!0),r.value=i}function s(i,c){const f=Bt({},o.value,t.state,{forward:i,scroll:zc()});a(f.current,f,!0);const d=Bt({},Q0(r.value,i,null),{position:f.position+1},c);a(i,d,!1),r.value=i}return{location:r,state:o,push:s,replace:l}}function kN(e){e=hN(e);const t=SN(e),n=CN(e,t.state,t.location,t.replace);function r(a,l=!0){l||n.pauseListeners(),history.go(a)}const o=Bt({location:"",base:e,go:r,createHref:vN.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function _N(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),kN(e)}function $N(e){return typeof e=="string"||e&&typeof e=="object"}function bC(e){return typeof e=="string"||typeof e=="symbol"}const ko={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},wC=Symbol("");var Z0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Z0||(Z0={}));function wl(e,t){return Bt(new Error,{type:e,[wC]:!0},t)}function Jr(e,t){return e instanceof Error&&wC in e&&(t==null||!!(e.type&t))}const J0="[^/]+?",EN={sensitive:!1,strict:!1,start:!0,end:!0},PN=/[.+*?^${}()[\]/\\]/g;function TN(e,t){const n=Bt({},EN,t),r=[];let o=n.start?"^":"";const a=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function AN(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ON={type:0,value:""},MN=/[a-zA-Z0-9_]/;function RN(e){if(!e)return[[]];if(e==="/")return[[ON]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let a;function l(){a&&o.push(a),a=[]}let s=0,i,c="",f="";function d(){c&&(n===0?a.push({type:0,value:c}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:f,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=i}for(;s{l(b)}:Cs}function l(f){if(bC(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function s(){return n}function i(f){let d=0;for(;d=0&&(f.record.path!==n[d].record.path||!CC(f,n[d]));)d++;n.splice(d,0,f),f.record.name&&!ny(f)&&r.set(f.record.name,f)}function c(f,d){let h,p={},g,v;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw wl(1,{location:f});v=h.record.name,p=Bt(ty(d.params,h.keys.filter(b=>!b.optional).map(b=>b.name)),f.params&&ty(f.params,h.keys.map(b=>b.name))),g=h.stringify(p)}else if("path"in f)g=f.path,h=n.find(b=>b.re.test(g)),h&&(p=h.parse(g),v=h.record.name);else{if(h=d.name?r.get(d.name):n.find(b=>b.re.test(d.path)),!h)throw wl(1,{location:f,currentLocation:d});v=h.record.name,p=Bt({},d.params,f.params),g=h.stringify(p)}const y=[];let m=h;for(;m;)y.unshift(m.record),m=m.parent;return{name:v,path:g,params:p,matched:y,meta:BN(y)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:c,removeRoute:l,getRoutes:s,getRecordMatcher:o}}function ty(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function IN(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:DN(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function DN(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ny(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function BN(e){return e.reduce((t,n)=>Bt(t,n.meta),{})}function ry(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function CC(e,t){return t.children.some(n=>n===e||CC(e,n))}const SC=/#/g,FN=/&/g,VN=/\//g,zN=/=/g,HN=/\?/g,kC=/\+/g,WN=/%5B/g,KN=/%5D/g,_C=/%5E/g,jN=/%60/g,$C=/%7B/g,GN=/%7C/g,EC=/%7D/g,qN=/%20/g;function Dp(e){return encodeURI(""+e).replace(GN,"|").replace(WN,"[").replace(KN,"]")}function UN(e){return Dp(e).replace($C,"{").replace(EC,"}").replace(_C,"^")}function Uf(e){return Dp(e).replace(kC,"%2B").replace(qN,"+").replace(SC,"%23").replace(FN,"%26").replace(jN,"`").replace($C,"{").replace(EC,"}").replace(_C,"^")}function YN(e){return Uf(e).replace(zN,"%3D")}function XN(e){return Dp(e).replace(SC,"%23").replace(HN,"%3F")}function QN(e){return e==null?"":XN(e).replace(VN,"%2F")}function lc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ZN(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oa&&Uf(a)):[r&&Uf(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function JN(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=xr(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const eI=Symbol(""),ay=Symbol(""),Hc=Symbol(""),Bp=Symbol(""),Yf=Symbol("");function os(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Mo(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,s)=>{const i=d=>{d===!1?s(wl(4,{from:n,to:t})):d instanceof Error?s(d):$N(d)?s(wl(2,{from:t,to:d})):(a&&r.enterCallbacks[o]===a&&typeof d=="function"&&a.push(d),l())},c=e.call(r&&r.instances[o],t,n,i);let f=Promise.resolve(c);e.length<3&&(f=f.then(i)),f.catch(d=>s(d))})}function rf(e,t,n,r){const o=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(tI(s)){const c=(s.__vccOpts||s)[t];c&&o.push(Mo(c,n,r,a,l))}else{let i=s();o.push(()=>i.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${a.path}"`));const f=lN(c)?c.default:c;a.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Mo(h,n,r,a,l)()}))}}return o}function tI(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ly(e){const t=We(Hc),n=We(Bp),r=O(()=>t.resolve(u(e.to))),o=O(()=>{const{matched:i}=r.value,{length:c}=i,f=i[c-1],d=n.matched;if(!f||!d.length)return-1;const h=d.findIndex(bl.bind(null,f));if(h>-1)return h;const p=sy(i[c-2]);return c>1&&sy(f)===p&&d[d.length-1].path!==p?d.findIndex(bl.bind(null,i[c-2])):h}),a=O(()=>o.value>-1&&aI(n.params,r.value.params)),l=O(()=>o.value>-1&&o.value===n.matched.length-1&&mC(n.params,r.value.params));function s(i={}){return oI(i)?t[u(e.replace)?"replace":"push"](u(e.to)).catch(Cs):Promise.resolve()}return{route:r,href:O(()=>r.value.href),isActive:a,isExactActive:l,navigate:s}}const nI=ue({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ly,setup(e,{slots:t}){const n=$t(ly(e)),{options:r}=We(Hc),o=O(()=>({[iy(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[iy(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Ue("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),rI=nI;function oI(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function aI(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!xr(o)||o.length!==r.length||r.some((a,l)=>a!==o[l]))return!1}return!0}function sy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const iy=(e,t,n)=>e??t??n,lI=ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=We(Yf),o=O(()=>e.route||r.value),a=We(ay,0),l=O(()=>{let c=u(a);const{matched:f}=o.value;let d;for(;(d=f[c])&&!d.components;)c++;return c}),s=O(()=>o.value.matched[l.value]);ht(ay,O(()=>l.value+1)),ht(eI,s),ht(Yf,o);const i=X();return Te(()=>[i.value,s.value,e.name],([c,f,d],[h,p,g])=>{f&&(f.instances[d]=c,p&&p!==f&&c&&c===h&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),c&&f&&(!p||!bl(f,p)||!h)&&(f.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,f=e.name,d=s.value,h=d&&d.components[f];if(!h)return uy(n.default,{Component:h,route:c});const p=d.props[f],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Ue(h,Bt({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[f]=null)},ref:i}));return uy(n.default,{Component:y,route:c})||y}}});function uy(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const sI=lI;function iI(e){const t=NN(e.routes,e),n=e.parseQuery||ZN,r=e.stringifyQuery||oy,o=e.history,a=os(),l=os(),s=os(),i=Mt(ko);let c=ko;Ya&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=tf.bind(null,U=>""+U),d=tf.bind(null,QN),h=tf.bind(null,lc);function p(U,ne){let ie,ce;return bC(U)?(ie=t.getRecordMatcher(U),ce=ne):ce=U,t.addRoute(ce,ie)}function g(U){const ne=t.getRecordMatcher(U);ne&&t.removeRoute(ne)}function v(){return t.getRoutes().map(U=>U.record)}function y(U){return!!t.getRecordMatcher(U)}function m(U,ne){if(ne=Bt({},ne||i.value),typeof U=="string"){const Y=nf(n,U,ne.path),re=t.resolve({path:Y.path},ne),se=o.createHref(Y.fullPath);return Bt(Y,re,{params:h(re.params),hash:lc(Y.hash),redirectedFrom:void 0,href:se})}let ie;if("path"in U)ie=Bt({},U,{path:nf(n,U.path,ne.path).path});else{const Y=Bt({},U.params);for(const re in Y)Y[re]==null&&delete Y[re];ie=Bt({},U,{params:d(Y)}),ne.params=d(ne.params)}const ce=t.resolve(ie,ne),te=U.hash||"";ce.params=f(h(ce.params));const D=uN(r,Bt({},U,{hash:UN(te),path:ce.path})),W=o.createHref(D);return Bt({fullPath:D,hash:te,query:r===oy?JN(U.query):U.query||{}},ce,{redirectedFrom:void 0,href:W})}function b(U){return typeof U=="string"?nf(n,U,i.value.path):Bt({},U)}function C(U,ne){if(c!==U)return wl(8,{from:ne,to:U})}function w(U){return T(U)}function _(U){return w(Bt(b(U),{replace:!0}))}function $(U){const ne=U.matched[U.matched.length-1];if(ne&&ne.redirect){const{redirect:ie}=ne;let ce=typeof ie=="function"?ie(U):ie;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=b(ce):{path:ce},ce.params={}),Bt({query:U.query,hash:U.hash,params:"path"in ce?{}:U.params},ce)}}function T(U,ne){const ie=c=m(U),ce=i.value,te=U.state,D=U.force,W=U.replace===!0,Y=$(ie);if(Y)return T(Bt(b(Y),{state:typeof Y=="object"?Bt({},te,Y.state):te,force:D,replace:W}),ne||ie);const re=ie;re.redirectedFrom=ne;let se;return!D&&cN(r,ce,ie)&&(se=wl(16,{to:re,from:ce}),z(ce,ce,!0,!1)),(se?Promise.resolve(se):x(re,ce)).catch(q=>Jr(q)?Jr(q,2)?q:R(q):I(q,re,ce)).then(q=>{if(q){if(Jr(q,2))return T(Bt({replace:W},b(q.to),{state:typeof q.to=="object"?Bt({},te,q.to.state):te,force:D}),ne||re)}else q=L(re,ce,!0,W,te);return N(re,ce,q),q})}function E(U,ne){const ie=C(U,ne);return ie?Promise.reject(ie):Promise.resolve()}function M(U){const ne=oe.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(U):U()}function x(U,ne){let ie;const[ce,te,D]=uI(U,ne);ie=rf(ce.reverse(),"beforeRouteLeave",U,ne);for(const Y of ce)Y.leaveGuards.forEach(re=>{ie.push(Mo(re,U,ne))});const W=E.bind(null,U,ne);return ie.push(W),fe(ie).then(()=>{ie=[];for(const Y of a.list())ie.push(Mo(Y,U,ne));return ie.push(W),fe(ie)}).then(()=>{ie=rf(te,"beforeRouteUpdate",U,ne);for(const Y of te)Y.updateGuards.forEach(re=>{ie.push(Mo(re,U,ne))});return ie.push(W),fe(ie)}).then(()=>{ie=[];for(const Y of D)if(Y.beforeEnter)if(xr(Y.beforeEnter))for(const re of Y.beforeEnter)ie.push(Mo(re,U,ne));else ie.push(Mo(Y.beforeEnter,U,ne));return ie.push(W),fe(ie)}).then(()=>(U.matched.forEach(Y=>Y.enterCallbacks={}),ie=rf(D,"beforeRouteEnter",U,ne),ie.push(W),fe(ie))).then(()=>{ie=[];for(const Y of l.list())ie.push(Mo(Y,U,ne));return ie.push(W),fe(ie)}).catch(Y=>Jr(Y,8)?Y:Promise.reject(Y))}function N(U,ne,ie){s.list().forEach(ce=>M(()=>ce(U,ne,ie)))}function L(U,ne,ie,ce,te){const D=C(U,ne);if(D)return D;const W=ne===ko,Y=Ya?history.state:{};ie&&(ce||W?o.replace(U.fullPath,Bt({scroll:W&&Y&&Y.scroll},te)):o.push(U.fullPath,te)),i.value=U,z(U,ne,ie,W),R()}let A;function F(){A||(A=o.listen((U,ne,ie)=>{if(!ve.listening)return;const ce=m(U),te=$(ce);if(te){T(Bt(te,{replace:!0}),ce).catch(Cs);return}c=ce;const D=i.value;Ya&&yN(X0(D.fullPath,ie.delta),zc()),x(ce,D).catch(W=>Jr(W,12)?W:Jr(W,2)?(T(W.to,ce).then(Y=>{Jr(Y,20)&&!ie.delta&&ie.type===Gs.pop&&o.go(-1,!1)}).catch(Cs),Promise.reject()):(ie.delta&&o.go(-ie.delta,!1),I(W,ce,D))).then(W=>{W=W||L(ce,D,!1),W&&(ie.delta&&!Jr(W,8)?o.go(-ie.delta,!1):ie.type===Gs.pop&&Jr(W,20)&&o.go(-1,!1)),N(ce,D,W)}).catch(Cs)}))}let j=os(),H=os(),S;function I(U,ne,ie){R(U);const ce=H.list();return ce.length?ce.forEach(te=>te(U,ne,ie)):console.error(U),Promise.reject(U)}function k(){return S&&i.value!==ko?Promise.resolve():new Promise((U,ne)=>{j.add([U,ne])})}function R(U){return S||(S=!U,F(),j.list().forEach(([ne,ie])=>U?ie(U):ne()),j.reset()),U}function z(U,ne,ie,ce){const{scrollBehavior:te}=e;if(!Ya||!te)return Promise.resolve();const D=!ie&&bN(X0(U.fullPath,0))||(ce||!ie)&&history.state&&history.state.scroll||null;return Ge().then(()=>te(U,ne,D)).then(W=>W&&mN(W)).catch(W=>I(W,U,ne))}const Z=U=>o.go(U);let J;const oe=new Set,ve={currentRoute:i,listening:!0,addRoute:p,removeRoute:g,hasRoute:y,getRoutes:v,resolve:m,options:e,push:w,replace:_,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:a.add,beforeResolve:l.add,afterEach:s.add,onError:H.add,isReady:k,install(U){const ne=this;U.component("RouterLink",rI),U.component("RouterView",sI),U.config.globalProperties.$router=ne,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>u(i)}),Ya&&!J&&i.value===ko&&(J=!0,w(o.location).catch(te=>{}));const ie={};for(const te in ko)Object.defineProperty(ie,te,{get:()=>i.value[te],enumerable:!0});U.provide(Hc,ne),U.provide(Bp,gp(ie)),U.provide(Yf,i);const ce=U.unmount;oe.add(U),U.unmount=function(){oe.delete(U),oe.size<1&&(c=ko,A&&A(),A=null,i.value=ko,J=!1,S=!1),ce()}}};function fe(U){return U.reduce((ne,ie)=>ne.then(()=>M(ie)),Promise.resolve())}return ve}function uI(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let l=0;lbl(c,s))?r.push(s):n.push(s));const i=e.matched[l];i&&(t.matched.find(c=>bl(c,i))||o.push(i))}return[n,r,o]}function Uce(){return We(Hc)}function Yce(){return We(Bp)}const cI=[{path:"/",name:"home",component:()=>Zr(()=>import("./home-NxFLaemn.js"),__vite__mapDeps([0,1,2,3])),redirect:e=>({name:"townDetail",params:{code:510521102}}),children:[{path:"/index",name:"index",component:()=>Zr(()=>import("./index-7FieOz9M.js"),__vite__mapDeps([4,5]))},{path:"/townDetail",name:"townDetail",component:()=>Zr(()=>import("./townDetail-NRwv5Hf-.js"),__vite__mapDeps([6,7,1,8,2,9]))},{path:"/commodity",name:"commodity",component:()=>Zr(()=>import("./commodity-yuswbrUH.js"),__vite__mapDeps([10,11,7,1,12]))},{path:"/Businesses",name:"commBusinessesodity",component:()=>Zr(()=>import("./Businesses-Iam6zJOf.js"),__vite__mapDeps([13,11,7,1,14]))},{path:"/storeLogin",name:"storeLogin",component:()=>Zr(()=>import("./storeLogin-DQZxzTUs.js"),__vite__mapDeps([15,8,7,1,16]))},{path:"/order",name:"order",component:()=>Zr(()=>import("./order-3r3dGV_U.js"),__vite__mapDeps([17,11,18,7,1,19]))},{path:"/finance",name:"finance",component:()=>Zr(()=>import("./finance-qam1zv4e.js"),__vite__mapDeps([20,11,18,7,1,21]))}]},{path:"/login",name:"login",component:()=>Zr(()=>import("./login-zv3um6sN.js"),__vite__mapDeps([22,7,1,23]))}],PC=iI({mode:"hash",history:_N(),routes:cI});PC.beforeEach(async(e,t,n)=>{n()});const dI='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',fI=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,cy=e=>Array.from(e.querySelectorAll(dI)).filter(t=>hI(t)&&fI(t)),hI=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},$u=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},TC=e=>!e.getAttribute("aria-owns"),xC=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),a=Array.prototype.indexOf.call(o,e);return o[a+t]||null},Eu=e=>{e&&(e.focus(),!TC(e)&&e.click())},Gt=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e==null?void 0:e(o);if(n===!1||!a)return t==null?void 0:t(o)},dy=e=>t=>t.pointerType==="mouse"?e(t):void 0;var pI=Object.defineProperty,vI=Object.defineProperties,gI=Object.getOwnPropertyDescriptors,fy=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,yI=Object.prototype.propertyIsEnumerable,hy=(e,t,n)=>t in e?pI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bI=(e,t)=>{for(var n in t||(t={}))mI.call(t,n)&&hy(e,n,t[n]);if(fy)for(var n of fy(t))yI.call(t,n)&&hy(e,n,t[n]);return e},wI=(e,t)=>vI(e,gI(t));function py(e,t){var n;const r=Mt();return Zn(()=>{r.value=e()},wI(bI({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Fl(r)}var vy;const yt=typeof window<"u",CI=e=>typeof e<"u",SI=e=>typeof e=="function",kI=e=>typeof e=="string",Cl=()=>{},AC=yt&&((vy=window==null?void 0:window.navigator)==null?void 0:vy.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ho(e){return typeof e=="function"?e():u(e)}function OC(e,t){function n(...r){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(a)})}return n}function _I(e,t={}){let n,r,o=Cl;const a=s=>{clearTimeout(s),o(),o=Cl};return s=>{const i=Ho(e),c=Ho(t.maxWait);return n&&a(n),i<=0||c!==void 0&&c<=0?(r&&(a(r),r=null),Promise.resolve(s())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,f(s())},c)),n=setTimeout(()=>{r&&a(r),r=null,f(s())},i)})}}function $I(e,t=!0,n=!0,r=!1){let o=0,a,l=!0,s=Cl,i;const c=()=>{a&&(clearTimeout(a),a=void 0,s(),s=Cl)};return d=>{const h=Ho(e),p=Date.now()-o,g=()=>i=d();return c(),h<=0?(o=Date.now(),g()):(p>h&&(n||!l)?(o=Date.now(),g()):t&&(i=new Promise((v,y)=>{s=r?y:v,a=setTimeout(()=>{o=Date.now(),l=!0,v(g()),c()},Math.max(0,h-p))})),!n&&!a&&(a=setTimeout(()=>l=!0,h)),l=!1,i)}}function EI(e){return e}function wi(e){return cp()?(dp(e),!0):!1}function PI(e,t=200,n={}){return OC(_I(t,n),e)}function TI(e,t=200,n={}){const r=X(e.value),o=PI(()=>{r.value=e.value},t,n);return Te(e,()=>o()),r}function MC(e,t=200,n=!1,r=!0,o=!1){return OC($I(t,n,r,o),e)}function Fp(e,t=!0){lt()?at(e):t?e():Ge(e)}function Aa(e,t,n={}){const{immediate:r=!0}=n,o=X(!1);let a=null;function l(){a&&(clearTimeout(a),a=null)}function s(){o.value=!1,l()}function i(...c){l(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...c)},Ho(t))}return r&&(o.value=!0,yt&&i()),wi(s),{isPending:Fl(o),start:i,stop:s}}function zn(e){var t;const n=Ho(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ia=yt?window:void 0,xI=yt?window.document:void 0;function Ft(...e){let t,n,r,o;if(kI(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Ia):[t,n,r,o]=e,!t)return Cl;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],l=()=>{a.forEach(f=>f()),a.length=0},s=(f,d,h,p)=>(f.addEventListener(d,h,p),()=>f.removeEventListener(d,h,p)),i=Te(()=>[zn(t),Ho(o)],([f,d])=>{l(),f&&a.push(...n.flatMap(h=>r.map(p=>s(f,h,p,d))))},{immediate:!0,flush:"post"}),c=()=>{i(),l()};return wi(c),c}let gy=!1;function Vp(e,t,n={}){const{window:r=Ia,ignore:o=[],capture:a=!0,detectIframe:l=!1}=n;if(!r)return;AC&&!gy&&(gy=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Cl)));let s=!0;const i=h=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(g=>g===h.target||h.composedPath().includes(g));{const g=zn(p);return g&&(h.target===g||h.composedPath().includes(g))}}),f=[Ft(r,"click",h=>{const p=zn(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(s=!i(h)),!s){s=!0;return}t(h)}},{passive:!0,capture:a}),Ft(r,"pointerdown",h=>{const p=zn(e);p&&(s=!h.composedPath().includes(p)&&!i(h))},{passive:!0}),l&&Ft(r,"blur",h=>{var p;const g=zn(e);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&t(h)})].filter(Boolean);return()=>f.forEach(h=>h())}function RC(e,t=!1){const n=X(),r=()=>n.value=!!e();return r(),Fp(r,t),n}function AI(e){return JSON.parse(JSON.stringify(e))}const my=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yy="__vueuse_ssr_handlers__";my[yy]=my[yy]||{};function OI(e,t,{window:n=Ia,initialValue:r=""}={}){const o=X(r),a=O(()=>{var l;return zn(t)||((l=n==null?void 0:n.document)==null?void 0:l.documentElement)});return Te([a,()=>Ho(e)],([l,s])=>{var i;if(l&&n){const c=(i=n.getComputedStyle(l).getPropertyValue(s))==null?void 0:i.trim();o.value=c||r}},{immediate:!0}),Te(o,l=>{var s;(s=a.value)!=null&&s.style&&a.value.style.setProperty(Ho(e),l)}),o}function MI({document:e=xI}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Ft(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var by=Object.getOwnPropertySymbols,RI=Object.prototype.hasOwnProperty,LI=Object.prototype.propertyIsEnumerable,NI=(e,t)=>{var n={};for(var r in e)RI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&by)for(var r of by(e))t.indexOf(r)<0&&LI.call(e,r)&&(n[r]=e[r]);return n};function $n(e,t,n={}){const r=n,{window:o=Ia}=r,a=NI(r,["window"]);let l;const s=RC(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},c=Te(()=>zn(e),d=>{i(),s.value&&o&&d&&(l=new ResizeObserver(t),l.observe(d,a))},{immediate:!0,flush:"post"}),f=()=>{i(),c()};return wi(f),{isSupported:s,stop:f}}function wy(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:a=!0}=t,l=X(0),s=X(0),i=X(0),c=X(0),f=X(0),d=X(0),h=X(0),p=X(0);function g(){const v=zn(e);if(!v){n&&(l.value=0,s.value=0,i.value=0,c.value=0,f.value=0,d.value=0,h.value=0,p.value=0);return}const y=v.getBoundingClientRect();l.value=y.height,s.value=y.bottom,i.value=y.left,c.value=y.right,f.value=y.top,d.value=y.width,h.value=y.x,p.value=y.y}return $n(e,g),Te(()=>zn(e),v=>!v&&g()),o&&Ft("scroll",g,{capture:!0,passive:!0}),r&&Ft("resize",g,{passive:!0}),Fp(()=>{a&&g()}),{height:l,bottom:s,left:i,right:c,top:f,width:d,x:h,y:p,update:g}}var Cy=Object.getOwnPropertySymbols,II=Object.prototype.hasOwnProperty,DI=Object.prototype.propertyIsEnumerable,BI=(e,t)=>{var n={};for(var r in e)II.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Cy)for(var r of Cy(e))t.indexOf(r)<0&&DI.call(e,r)&&(n[r]=e[r]);return n};function FI(e,t,n={}){const r=n,{window:o=Ia}=r,a=BI(r,["window"]);let l;const s=RC(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},c=Te(()=>zn(e),d=>{i(),s.value&&o&&d&&(l=new MutationObserver(t),l.observe(d,a))},{immediate:!0}),f=()=>{i(),c()};return wi(f),{isSupported:s,stop:f}}var Sy;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Sy||(Sy={}));var VI=Object.defineProperty,ky=Object.getOwnPropertySymbols,zI=Object.prototype.hasOwnProperty,HI=Object.prototype.propertyIsEnumerable,_y=(e,t,n)=>t in e?VI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WI=(e,t)=>{for(var n in t||(t={}))zI.call(t,n)&&_y(e,n,t[n]);if(ky)for(var n of ky(t))HI.call(t,n)&&_y(e,n,t[n]);return e};const KI={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};WI({linear:EI},KI);function jI(e,t,n,r={}){var o,a,l;const{clone:s=!1,passive:i=!1,eventName:c,deep:f=!1,defaultValue:d}=r,h=lt(),p=n||(h==null?void 0:h.emit)||((o=h==null?void 0:h.$emit)==null?void 0:o.bind(h))||((l=(a=h==null?void 0:h.proxy)==null?void 0:a.$emit)==null?void 0:l.bind(h==null?void 0:h.proxy));let g=c;t||(t="modelValue"),g=c||g||`update:${t.toString()}`;const v=m=>s?SI(s)?s(m):AI(m):m,y=()=>CI(e[t])?v(e[t]):d;if(i){const m=y(),b=X(m);return Te(()=>e[t],C=>b.value=v(C)),Te(b,C=>{(C!==e[t]||f)&&p(g,C)},{deep:f}),b}else return O({get(){return y()},set(m){p(g,m)}})}function GI({window:e=Ia}={}){if(!e)return X(!1);const t=X(e.document.hasFocus());return Ft(e,"blur",()=>{t.value=!1}),Ft(e,"focus",()=>{t.value=!0}),t}function qI(e={}){const{window:t=Ia,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:a=!0}=e,l=X(n),s=X(r),i=()=>{t&&(a?(l.value=t.innerWidth,s.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return i(),Fp(i),Ft("resize",i,{passive:!0}),o&&Ft("orientationchange",i,{passive:!0}),{width:l,height:s}}const LC=()=>yt&&/firefox/i.test(window.navigator.userAgent),UI=(e,t)=>{if(!yt||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topr.top&&n.right>r.left&&n.left{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},YI=(e,t)=>Math.abs($y(e)-$y(t)),zp=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};var XI=typeof global=="object"&&global&&global.Object===Object&&global;const NC=XI;var QI=typeof self=="object"&&self&&self.Object===Object&&self,ZI=NC||QI||Function("return this")();const Mr=ZI;var JI=Mr.Symbol;const cr=JI;var IC=Object.prototype,e5=IC.hasOwnProperty,t5=IC.toString,as=cr?cr.toStringTag:void 0;function n5(e){var t=e5.call(e,as),n=e[as];try{e[as]=void 0;var r=!0}catch{}var o=t5.call(e);return r&&(t?e[as]=n:delete e[as]),o}var r5=Object.prototype,o5=r5.toString;function a5(e){return o5.call(e)}var l5="[object Null]",s5="[object Undefined]",Ey=cr?cr.toStringTag:void 0;function Da(e){return e==null?e===void 0?s5:l5:Ey&&Ey in Object(e)?n5(e):a5(e)}function Wr(e){return e!=null&&typeof e=="object"}var i5="[object Symbol]";function Wc(e){return typeof e=="symbol"||Wr(e)&&Da(e)==i5}function DC(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=K5)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function U5(e){return function(){return e}}var Y5=function(){try{var e=Fa(Object,"defineProperty");return e({},"",{}),e}catch{}}();const sc=Y5;var X5=sc?function(e,t){return sc(e,"toString",{configurable:!0,enumerable:!1,value:U5(t),writable:!0})}:Hp;const Q5=X5;var Z5=q5(Q5);const VC=Z5;function J5(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}var o6=9007199254740991,a6=/^(?:0|[1-9]\d*)$/;function Kc(e,t){var n=typeof e;return t=t??o6,!!t&&(n=="number"||n!="symbol"&&a6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=i6}function zl(e){return e!=null&&Gp(e.length)&&!Wp(e)}function u6(e,t,n){if(!Rn(n))return!1;var r=typeof t;return(r=="number"?zl(n)&&Kc(t,n.length):r=="string"&&t in n)?Ci(n[t],e):!1}function c6(e){return WC(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,l&&u6(n[0],n[1],l)&&(a=o<3?void 0:a,o=1),t=Object(t);++r-1}function ED(e,t){var n=this.__data__,r=jc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Ei(s,t-1,n,r,o):Zp(o,s):r||(o[o.length]=s)}return o}function YC(e){var t=e==null?0:e.length;return t?Ei(e,1):[]}function KD(e){return VC(HC(e,void 0,YC),e+"")}var jD=UC(Object.getPrototypeOf,Object);const Jp=jD;var GD="[object Object]",qD=Function.prototype,UD=Object.prototype,XC=qD.toString,YD=UD.hasOwnProperty,XD=XC.call(Object);function QD(e){if(!Wr(e)||Da(e)!=GD)return!1;var t=Jp(e);if(t===null)return!0;var n=YD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&XC.call(n)==XD}function Ma(){if(!arguments.length)return[];var e=arguments[0];return Mn(e)?e:[e]}function ZD(){this.__data__=new yo,this.size=0}function JD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function eB(e){return this.__data__.get(e)}function tB(e){return this.__data__.has(e)}var nB=200;function rB(e,t){var n=this.__data__;if(n instanceof yo){var r=n.__data__;if(!Xs||r.lengths))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=n&zF?new Zs:void 0;for(a.set(e,t),a.set(t,e);++d=t||T<0||d&&E>=a}function m(){var $=sf();if(y($))return b($);s=setTimeout(m,v($))}function b($){return s=void 0,h&&r?p($):(r=o=void 0,l)}function C(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function w(){return s===void 0?l:b(sf())}function _(){var $=sf(),T=y($);if(r=arguments,o=this,i=$,T){if(s===void 0)return g(i);if(d)return clearTimeout(s),s=setTimeout(m,t),p(i)}return s===void 0&&(s=setTimeout(m,t)),l}return _.cancel=C,_.flush=w,_}function th(e,t,n){(n!==void 0&&!Ci(e[t],n)||n===void 0&&!(t in e))&&Kp(e,t,n)}function p2(e){return Wr(e)&&zl(e)}function nh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function RV(e){return Si(e,_i(e))}function LV(e,t,n,r,o,a,l){var s=nh(e,n),i=nh(t,n),c=l.get(i);if(c){th(e,n,c);return}var f=a?a(s,i,n+"",e,t,l):void 0,d=f===void 0;if(d){var h=Mn(i),p=!h&&Us(i),g=!h&&!p&&Yp(i);f=i,h||p||g?Mn(s)?f=s:p2(s)?f=FC(s):p?(d=!1,f=ZC(i,!0)):g?(d=!1,f=n2(i,!0)):f=[]:QD(i)||qs(i)?(f=s,qs(s)?f=RV(s):(!Rn(s)||Wp(s))&&(f=r2(i))):d=!1}d&&(l.set(i,f),o(f,i,r,a,l),l.delete(i)),th(e,n,f)}function v2(e,t,n,r,o){e!==t&&h2(t,function(a,l){if(o||(o=new Pr),Rn(a))LV(e,t,l,n,v2,r,o);else{var s=r?r(nh(e,l),a,l+"",e,t,o):void 0;s===void 0&&(s=a),th(e,l,s)}},_i)}function NV(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=JV){var c=t?null:ZV(e);if(c)return nv(c);l=!1,o=s2,i=new Zs}else i=t?[]:s;e:for(;++re===void 0,nn=e=>typeof e=="boolean",Xe=e=>typeof e=="number",rr=e=>!e&&e!==0||Ke(e)&&e.length===0||ct(e)&&!Object.keys(e).length,dr=e=>typeof Element>"u"?!1:e instanceof Element,nz=e=>en(e),rz=e=>tt(e)?!Number.isNaN(Number(e)):!1,b2=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Br=e=>mi(e),Js=e=>Object.keys(e),oz=e=>Object.entries(e),Pu=(e,t,n)=>({get value(){return zt(e,t,n)},set value(r){UV(e,t,r)}});class az extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function rn(e,t){throw new az(`[${e}] ${t}`)}const w2=(e="")=>e.split(" ").filter(t=>!!t.trim()),Tr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Fr=(e,t)=>{!e||!t.trim()||e.classList.add(...w2(t))},Wn=(e,t)=>{!e||!t.trim()||e.classList.remove(...w2(t))},Ro=(e,t)=>{var n;if(!yt||!e||!t)return"";let r=ir(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[r]:""}catch{return e.style[r]}};function Xt(e,t="px"){if(!e)return"";if(Xe(e)||rz(e))return`${e}${t}`;if(tt(e))return e}const lz=(e,t)=>{if(!yt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Ro(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},rv=(e,t)=>{if(!yt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(lz(n,t))return n;n=n.parentNode}return n};let ru;const C2=e=>{var t;if(!yt)return 0;if(ru!==void 0)return ru;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const a=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),ru=r-a,ru};function S2(e,t){if(!yt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce((i,c)=>i+c.offsetTop,0),a=o+t.offsetHeight,l=e.scrollTop,s=l+e.clientHeight;os&&(e.scrollTop=a-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var sz=ue({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Yo=sz,iz=ue({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Wo=iz,uz=ue({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),An=uz,cz=ue({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Xc=cz,dz=ue({name:"Back",__name:"back",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),B("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),fz=dz,hz=ue({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),pz=hz,vz=ue({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),k2=vz,gz=ue({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),mz=gz,yz=ue({name:"Check",__name:"check",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Pi=yz,bz=ue({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),wz=bz,Cz=ue({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),B("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),ov=Cz,Sz=ue({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),av=Sz,kz=ue({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),B("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Xo=kz,_z=ue({name:"Clock",__name:"clock",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),B("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),B("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),_2=_z,$z=ue({name:"Close",__name:"close",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ar=$z,Ez=ue({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),kl=Ez,Pz=ue({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),_l=Pz,Tz=ue({name:"Delete",__name:"delete",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),xz=Tz,Az=ue({name:"Document",__name:"document",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Oz=Az,Mz=ue({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Rz=Mz,Lz=ue({name:"Hide",__name:"hide",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),B("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Nz=Lz,Iz=ue({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),lv=Iz,Dz=ue({name:"Loading",__name:"loading",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Qo=Dz,Bz=ue({name:"Minus",__name:"minus",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Fz=Bz,Vz=ue({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),rb=Vz,zz=ue({name:"More",__name:"more",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Hz=zz,Wz=ue({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Kz=Wz,jz=ue({name:"Plus",__name:"plus",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),$2=jz,Gz=ue({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),qz=Gz,Uz=ue({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),Yz=Uz,Xz=ue({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Qz=Xz,Zz=ue({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Jz=Zz,eH=ue({name:"Search",__name:"search",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),tH=eH,nH=ue({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),rH=nH,oH=ue({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),aH=oH,lH=ue({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),ou=lH,sH=ue({name:"Star",__name:"star",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),iH=sH,uH=ue({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),E2=uH,cH=ue({name:"View",__name:"view",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),dH=cH,fH=ue({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Qc=fH,hH=ue({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),P2=hH,pH=ue({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(P(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[B("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),vH=pH;const T2="__epPropKey",we=e=>e,gH=e=>ct(e)&&!!e[T2],Rr=(e,t)=>{if(!ct(e)||gH(e))return e;const{values:n,required:r,default:o,type:a,validator:l}=e,i={type:a,required:!!r,validator:n||l?c=>{let f=!1,d=[];if(n&&(d=Array.from(n),gt(e,"default")&&d.push(o),f||(f=d.includes(c))),l&&(f||(f=l(c))),!f&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");pE(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[T2]:!0};return gt(e,"default")&&(i.default=o),i},Le=e=>cc(Object.entries(e).map(([t,n])=>[t,Rr(n,t)])),Rt=we([String,Object,Function]),x2={Close:Ar},sv={Close:Ar,SuccessFilled:E2,InfoFilled:lv,WarningFilled:Qc,CircleCloseFilled:av},Ko={success:E2,warning:Qc,error:av,info:lv},iv={validating:Qo,success:ov,error:Xo},it=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},A2=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),mH=(e,t)=>(e.install=n=>{n.directive(t,e)},e),qt=e=>(e.install=At,e),Zc=(...e)=>t=>{e.forEach(n=>{Ze(n)?n(t):n.value=t})},qe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},yH=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],cf=["sun","mon","tue","wed","thu","fri","sat"],ut="update:modelValue",It="change",On="input",ob=Symbol("INSTALLED_KEY"),Xr=["","default","small","large"],bH={large:40,default:32,small:24},wH=e=>bH[e||"default"],uv=e=>["",...Xr].includes(e);var nr=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(nr||{});function rh(e){return Vt(e)&&e.type===Be}function CH(e){return Vt(e)&&e.type===xn}function SH(e){return Vt(e)&&!rh(e)&&!CH(e)}const kH=e=>{if(!Vt(e))return{};const t=e.props||{},n=(Vt(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{gt(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[ir(o)]=t[o]}),r},_H=e=>{if(!Ke(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},_a=e=>{const t=Ke(e)?e:[e],n=[];return t.forEach(r=>{var o;Ke(r)?n.push(..._a(r)):Vt(r)&&Ke(r.children)?n.push(..._a(r.children)):(n.push(r),Vt(r)&&((o=r.component)!=null&&o.subTree)&&n.push(..._a(r.component.subTree)))}),n},ab=e=>[...new Set(e)],uo=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Jc=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),$l=e=>yt?window.requestAnimationFrame(e):setTimeout(e,16),ed=e=>yt?window.cancelAnimationFrame(e):clearTimeout(e),td=()=>Math.floor(Math.random()*1e4),Ht=e=>e,$H=["class","style"],EH=/^on[A-Z]/,cv=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=O(()=>((n==null?void 0:n.value)||[]).concat($H)),o=lt();return O(o?()=>{var a;return cc(Object.entries((a=o.proxy)==null?void 0:a.$attrs).filter(([l])=>!r.value.includes(l)&&!(t&&EH.test(l))))}:()=>({}))},Kr=({from:e,replacement:t,scope:n,version:r,ref:o,type:a="API"},l)=>{Te(()=>u(l),s=>{},{immediate:!0})},O2=(e,t,n)=>{let r={offsetX:0,offsetY:0};const o=s=>{const i=s.clientX,c=s.clientY,{offsetX:f,offsetY:d}=r,h=e.value.getBoundingClientRect(),p=h.left,g=h.top,v=h.width,y=h.height,m=document.documentElement.clientWidth,b=document.documentElement.clientHeight,C=-p+f,w=-g+d,_=m-p-v+f,$=b-g-y+d,T=M=>{const x=Math.min(Math.max(f+M.clientX-i,C),_),N=Math.min(Math.max(d+M.clientY-c,w),$);r={offsetX:x,offsetY:N},e.value&&(e.value.style.transform=`translate(${Xt(x)}, ${Xt(N)})`)},E=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",E)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};at(()=>{Zn(()=>{n.value?a():l()})}),Dt(()=>{l()})};var PH={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const TH=e=>(t,n)=>xH(t,n,u(e)),xH=(e,t,n)=>zt(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var a;return`${(a=t==null?void 0:t[o])!=null?a:`{${o}}`}`}),AH=e=>{const t=O(()=>u(e).name),n=xt(e)?e:X(e);return{lang:t,locale:n,t:TH(e)}},M2=Symbol("localeContextKey"),bt=e=>{const t=e||We(M2,X());return AH(O(()=>t.value||PH))},$s="el",OH="is-",la=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},R2=Symbol("namespaceContextKey"),dv=e=>{const t=e||(lt()?We(R2,X($s)):X($s));return O(()=>u(t)||$s)},Ae=(e,t)=>{const n=dv(t);return{namespace:n,b:(v="")=>la(n.value,e,v,"",""),e:v=>v?la(n.value,e,"",v,""):"",m:v=>v?la(n.value,e,"","",v):"",be:(v,y)=>v&&y?la(n.value,e,v,y,""):"",em:(v,y)=>v&&y?la(n.value,e,"",v,y):"",bm:(v,y)=>v&&y?la(n.value,e,v,"",y):"",bem:(v,y,m)=>v&&y&&m?la(n.value,e,v,y,m):"",is:(v,...y)=>{const m=y.length>=1?y[0]:!0;return v&&m?`${OH}${v}`:""},cssVar:v=>{const y={};for(const m in v)v[m]&&(y[`--${n.value}-${m}`]=v[m]);return y},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const y={};for(const m in v)v[m]&&(y[`--${n.value}-${e}-${m}`]=v[m]);return y},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},L2=(e,t={})=>{xt(e)||rn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ae("popup"),r=vw(()=>n.bm("parent","hidden"));if(!yt||Tr(document.body,r.value))return;let o=0,a=!1,l="0";const s=()=>{setTimeout(()=>{Wn(document==null?void 0:document.body,r.value),a&&document&&(document.body.style.width=l)},200)};Te(e,i=>{if(!i){s();return}a=!Tr(document.body,r.value),a&&(l=document.body.style.width),o=C2(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||f==="scroll")&&a&&(document.body.style.width=`calc(100% - ${o}px)`),Fr(document.body,r.value)}),dp(()=>s())},MH=Rr({type:we(Boolean),default:null}),RH=Rr({type:we(Function)}),N2=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:MH,[n]:RH};return{useModelToggle:({indicator:l,toggleReason:s,shouldHideWhenRouteChanges:i,shouldProceed:c,onShow:f,onHide:d})=>{const h=lt(),{emit:p}=h,g=h.props,v=O(()=>Ze(g[n])),y=O(()=>g[e]===null),m=T=>{l.value!==!0&&(l.value=!0,s&&(s.value=T),Ze(f)&&f(T))},b=T=>{l.value!==!1&&(l.value=!1,s&&(s.value=T),Ze(d)&&d(T))},C=T=>{if(g.disabled===!0||Ze(c)&&!c())return;const E=v.value&&yt;E&&p(t,!0),(y.value||!E)&&m(T)},w=T=>{if(g.disabled===!0||!yt)return;const E=v.value&&yt;E&&p(t,!1),(y.value||!E)&&b(T)},_=T=>{nn(T)&&(g.disabled&&T?v.value&&p(t,!1):l.value!==T&&(T?m():b()))},$=()=>{l.value?w():C()};return Te(()=>g[e],_),i&&h.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...h.proxy.$route}),()=>{i.value&&l.value&&w()}),at(()=>{_(g[e])}),{hide:w,show:C,toggle:$,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:r}};N2("modelValue");const I2=e=>{const t=lt();return O(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var Kn="top",fr="bottom",hr="right",jn="left",fv="auto",Ti=[Kn,fr,hr,jn],El="start",ei="end",LH="clippingParents",D2="viewport",ls="popper",NH="reference",lb=Ti.reduce(function(e,t){return e.concat([t+"-"+El,t+"-"+ei])},[]),Va=[].concat(Ti,[fv]).reduce(function(e,t){return e.concat([t,t+"-"+El,t+"-"+ei])},[]),IH="beforeRead",DH="read",BH="afterRead",FH="beforeMain",VH="main",zH="afterMain",HH="beforeWrite",WH="write",KH="afterWrite",jH=[IH,DH,BH,FH,VH,zH,HH,WH,KH];function jr(e){return e?(e.nodeName||"").toLowerCase():null}function Lr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pl(e){var t=Lr(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Lr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hv(e){if(typeof ShadowRoot>"u")return!1;var t=Lr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function GH(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!sr(a)||!jr(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(l){var s=o[l];s===!1?a.removeAttribute(l):a.setAttribute(l,s===!0?"":s)}))})}function qH(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=l.reduce(function(i,c){return i[c]="",i},{});!sr(o)||!jr(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(i){o.removeAttribute(i)}))})}}var B2={name:"applyStyles",enabled:!0,phase:"write",fn:GH,effect:qH,requires:["computeStyles"]};function zr(e){return e.split("-")[0]}var $a=Math.max,dc=Math.min,Tl=Math.round;function xl(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(sr(e)&&t){var a=e.offsetHeight,l=e.offsetWidth;l>0&&(r=Tl(n.width)/l||1),a>0&&(o=Tl(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function pv(e){var t=xl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fo(e){return Lr(e).getComputedStyle(e)}function UH(e){return["table","td","th"].indexOf(jr(e))>=0}function Zo(e){return((Pl(e)?e.ownerDocument:e.document)||window.document).documentElement}function nd(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(hv(e)?e.host:null)||Zo(e)}function sb(e){return!sr(e)||fo(e).position==="fixed"?null:e.offsetParent}function YH(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&sr(e)){var r=fo(e);if(r.position==="fixed")return null}var o=nd(e);for(hv(o)&&(o=o.host);sr(o)&&["html","body"].indexOf(jr(o))<0;){var a=fo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function xi(e){for(var t=Lr(e),n=sb(e);n&&UH(n)&&fo(n).position==="static";)n=sb(n);return n&&(jr(n)==="html"||jr(n)==="body"&&fo(n).position==="static")?t:n||YH(e)||t}function vv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Es(e,t,n){return $a(e,dc(t,n))}function XH(e,t,n){var r=Es(e,t,n);return r>n?n:r}function V2(){return{top:0,right:0,bottom:0,left:0}}function z2(e){return Object.assign({},V2(),e)}function H2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var QH=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,z2(typeof e!="number"?e:H2(e,Ti))};function ZH(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,s=zr(n.placement),i=vv(s),c=[jn,hr].indexOf(s)>=0,f=c?"height":"width";if(!(!a||!l)){var d=QH(o.padding,n),h=pv(a),p=i==="y"?Kn:jn,g=i==="y"?fr:hr,v=n.rects.reference[f]+n.rects.reference[i]-l[i]-n.rects.popper[f],y=l[i]-n.rects.reference[i],m=xi(a),b=m?i==="y"?m.clientHeight||0:m.clientWidth||0:0,C=v/2-y/2,w=d[p],_=b-h[f]-d[g],$=b/2-h[f]/2+C,T=Es(w,$,_),E=i;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-$,t)}}function JH(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!F2(t.elements.popper,o)||(t.elements.arrow=o))}var e9={name:"arrow",enabled:!0,phase:"main",fn:ZH,effect:JH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Al(e){return e.split("-")[1]}var t9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function n9(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Tl(t*o)/o||0,y:Tl(n*o)/o||0}}function ib(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,s=e.position,i=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,h=l.x,p=h===void 0?0:h,g=l.y,v=g===void 0?0:g,y=typeof f=="function"?f({x:p,y:v}):{x:p,y:v};p=y.x,v=y.y;var m=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),C=jn,w=Kn,_=window;if(c){var $=xi(n),T="clientHeight",E="clientWidth";if($===Lr(n)&&($=Zo(n),fo($).position!=="static"&&s==="absolute"&&(T="scrollHeight",E="scrollWidth")),$=$,o===Kn||(o===jn||o===hr)&&a===ei){w=fr;var M=d&&$===_&&_.visualViewport?_.visualViewport.height:$[T];v-=M-r.height,v*=i?1:-1}if(o===jn||(o===Kn||o===fr)&&a===ei){C=hr;var x=d&&$===_&&_.visualViewport?_.visualViewport.width:$[E];p-=x-r.width,p*=i?1:-1}}var N=Object.assign({position:s},c&&t9),L=f===!0?n9({x:p,y:v}):{x:p,y:v};if(p=L.x,v=L.y,i){var A;return Object.assign({},N,(A={},A[w]=b?"0":"",A[C]=m?"0":"",A.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",A))}return Object.assign({},N,(t={},t[w]=b?v+"px":"",t[C]=m?p+"px":"",t.transform="",t))}function r9(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,l=a===void 0?!0:a,s=n.roundOffsets,i=s===void 0?!0:s,c={placement:zr(t.placement),variation:Al(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ib(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ib(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var W2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r9,data:{}},au={passive:!0};function o9(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,l=r.resize,s=l===void 0?!0:l,i=Lr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",n.update,au)}),s&&i.addEventListener("resize",n.update,au),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",n.update,au)}),s&&i.removeEventListener("resize",n.update,au)}}var K2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o9,data:{}},a9={left:"right",right:"left",bottom:"top",top:"bottom"};function Tu(e){return e.replace(/left|right|bottom|top/g,function(t){return a9[t]})}var l9={start:"end",end:"start"};function ub(e){return e.replace(/start|end/g,function(t){return l9[t]})}function gv(e){var t=Lr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function mv(e){return xl(Zo(e)).left+gv(e).scrollLeft}function s9(e){var t=Lr(e),n=Zo(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:l+mv(e),y:s}}function i9(e){var t,n=Zo(e),r=gv(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=$a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=$a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+mv(e),i=-r.scrollTop;return fo(o||n).direction==="rtl"&&(s+=$a(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:s,y:i}}function yv(e){var t=fo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function j2(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:sr(e)&&yv(e)?e:j2(nd(e))}function Ps(e,t){var n;t===void 0&&(t=[]);var r=j2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Lr(r),l=o?[a].concat(a.visualViewport||[],yv(r)?r:[]):r,s=t.concat(l);return o?s:s.concat(Ps(nd(l)))}function oh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function u9(e){var t=xl(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 cb(e,t){return t===D2?oh(s9(e)):Pl(t)?u9(t):oh(i9(Zo(e)))}function c9(e){var t=Ps(nd(e)),n=["absolute","fixed"].indexOf(fo(e).position)>=0,r=n&&sr(e)?xi(e):e;return Pl(r)?t.filter(function(o){return Pl(o)&&F2(o,r)&&jr(o)!=="body"}):[]}function d9(e,t,n){var r=t==="clippingParents"?c9(e):[].concat(t),o=[].concat(r,[n]),a=o[0],l=o.reduce(function(s,i){var c=cb(e,i);return s.top=$a(c.top,s.top),s.right=dc(c.right,s.right),s.bottom=dc(c.bottom,s.bottom),s.left=$a(c.left,s.left),s},cb(e,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function G2(e){var t=e.reference,n=e.element,r=e.placement,o=r?zr(r):null,a=r?Al(r):null,l=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,i;switch(o){case Kn:i={x:l,y:t.y-n.height};break;case fr:i={x:l,y:t.y+t.height};break;case hr:i={x:t.x+t.width,y:s};break;case jn:i={x:t.x-n.width,y:s};break;default:i={x:t.x,y:t.y}}var c=o?vv(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case El:i[c]=i[c]-(t[f]/2-n[f]/2);break;case ei:i[c]=i[c]+(t[f]/2-n[f]/2);break}}return i}function ti(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,l=a===void 0?LH:a,s=n.rootBoundary,i=s===void 0?D2:s,c=n.elementContext,f=c===void 0?ls:c,d=n.altBoundary,h=d===void 0?!1:d,p=n.padding,g=p===void 0?0:p,v=z2(typeof g!="number"?g:H2(g,Ti)),y=f===ls?NH:ls,m=e.rects.popper,b=e.elements[h?y:f],C=d9(Pl(b)?b:b.contextElement||Zo(e.elements.popper),l,i),w=xl(e.elements.reference),_=G2({reference:w,element:m,strategy:"absolute",placement:o}),$=oh(Object.assign({},m,_)),T=f===ls?$:w,E={top:C.top-T.top+v.top,bottom:T.bottom-C.bottom+v.bottom,left:C.left-T.left+v.left,right:T.right-C.right+v.right},M=e.modifiersData.offset;if(f===ls&&M){var x=M[o];Object.keys(E).forEach(function(N){var L=[hr,fr].indexOf(N)>=0?1:-1,A=[Kn,fr].indexOf(N)>=0?"y":"x";E[N]+=x[A]*L})}return E}function f9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,l=n.padding,s=n.flipVariations,i=n.allowedAutoPlacements,c=i===void 0?Va:i,f=Al(r),d=f?s?lb:lb.filter(function(g){return Al(g)===f}):Ti,h=d.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=d);var p=h.reduce(function(g,v){return g[v]=ti(e,{placement:v,boundary:o,rootBoundary:a,padding:l})[zr(v)],g},{});return Object.keys(p).sort(function(g,v){return p[g]-p[v]})}function h9(e){if(zr(e)===fv)return[];var t=Tu(e);return[ub(e),t,ub(t)]}function p9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!0:l,i=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,v=n.allowedAutoPlacements,y=t.options.placement,m=zr(y),b=m===y,C=i||(b||!g?[Tu(y)]:h9(y)),w=[y].concat(C).reduce(function(oe,ve){return oe.concat(zr(ve)===fv?f9(t,{placement:ve,boundary:f,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:v}):ve)},[]),_=t.rects.reference,$=t.rects.popper,T=new Map,E=!0,M=w[0],x=0;x=0,j=F?"width":"height",H=ti(t,{placement:N,boundary:f,rootBoundary:d,altBoundary:h,padding:c}),S=F?A?hr:jn:A?fr:Kn;_[j]>$[j]&&(S=Tu(S));var I=Tu(S),k=[];if(a&&k.push(H[L]<=0),s&&k.push(H[S]<=0,H[I]<=0),k.every(function(oe){return oe})){M=N,E=!1;break}T.set(N,k)}if(E)for(var R=g?3:1,z=function(oe){var ve=w.find(function(fe){var U=T.get(fe);if(U)return U.slice(0,oe).every(function(ne){return ne})});if(ve)return M=ve,"break"},Z=R;Z>0;Z--){var J=z(Z);if(J==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var v9={name:"flip",enabled:!0,phase:"main",fn:p9,requiresIfExists:["offset"],data:{_skip:!1}};function db(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fb(e){return[Kn,hr,fr,jn].some(function(t){return e[t]>=0})}function g9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=ti(t,{elementContext:"reference"}),s=ti(t,{altBoundary:!0}),i=db(l,r),c=db(s,o,a),f=fb(i),d=fb(c);t.modifiersData[n]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var m9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:g9};function y9(e,t,n){var r=zr(e),o=[jn,Kn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=a[0],s=a[1];return l=l||0,s=(s||0)*o,[jn,hr].indexOf(r)>=0?{x:s,y:l}:{x:l,y:s}}function b9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,l=Va.reduce(function(f,d){return f[d]=y9(d,t.rects,a),f},{}),s=l[t.placement],i=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=l}var w9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:b9};function C9(e){var t=e.state,n=e.name;t.modifiersData[n]=G2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var q2={name:"popperOffsets",enabled:!0,phase:"read",fn:C9,data:{}};function S9(e){return e==="x"?"y":"x"}function k9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!1:l,i=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,g=n.tetherOffset,v=g===void 0?0:g,y=ti(t,{boundary:i,rootBoundary:c,padding:d,altBoundary:f}),m=zr(t.placement),b=Al(t.placement),C=!b,w=vv(m),_=S9(w),$=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,x=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if($){if(a){var A,F=w==="y"?Kn:jn,j=w==="y"?fr:hr,H=w==="y"?"height":"width",S=$[w],I=S+y[F],k=S-y[j],R=p?-E[H]/2:0,z=b===El?T[H]:E[H],Z=b===El?-E[H]:-T[H],J=t.elements.arrow,oe=p&&J?pv(J):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V2(),fe=ve[F],U=ve[j],ne=Es(0,T[H],oe[H]),ie=C?T[H]/2-R-ne-fe-x.mainAxis:z-ne-fe-x.mainAxis,ce=C?-T[H]/2+R+ne+U+x.mainAxis:Z+ne+U+x.mainAxis,te=t.elements.arrow&&xi(t.elements.arrow),D=te?w==="y"?te.clientTop||0:te.clientLeft||0:0,W=(A=N==null?void 0:N[w])!=null?A:0,Y=S+ie-W-D,re=S+ce-W,se=Es(p?dc(I,Y):I,S,p?$a(k,re):k);$[w]=se,L[w]=se-S}if(s){var q,ae=w==="x"?Kn:jn,G=w==="x"?fr:hr,Q=$[_],ee=_==="y"?"height":"width",le=Q+y[ae],he=Q-y[G],ye=[Kn,jn].indexOf(m)!==-1,ge=(q=N==null?void 0:N[_])!=null?q:0,Ee=ye?le:Q-T[ee]-E[ee]-ge+x.altAxis,Oe=ye?Q+T[ee]+E[ee]-ge-x.altAxis:he,Ie=p&&ye?XH(Ee,Q,Oe):Es(p?Ee:le,Q,p?Oe:he);$[_]=Ie,L[_]=Ie-Q}t.modifiersData[r]=L}}var _9={name:"preventOverflow",enabled:!0,phase:"main",fn:k9,requiresIfExists:["offset"]};function $9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function E9(e){return e===Lr(e)||!sr(e)?gv(e):$9(e)}function P9(e){var t=e.getBoundingClientRect(),n=Tl(t.width)/e.offsetWidth||1,r=Tl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function T9(e,t,n){n===void 0&&(n=!1);var r=sr(t),o=sr(t)&&P9(t),a=Zo(t),l=xl(e,o),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(r||!r&&!n)&&((jr(t)!=="body"||yv(a))&&(s=E9(t)),sr(t)?(i=xl(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=mv(a))),{x:l.left+s.scrollLeft-i.x,y:l.top+s.scrollTop-i.y,width:l.width,height:l.height}}function x9(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(s){if(!n.has(s)){var i=t.get(s);i&&o(i)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function A9(e){var t=x9(e);return jH.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function O9(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function M9(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:i})=>{const c=I9(i);Object.assign(l.value,c)},requires:["computeStyles"]},o=O(()=>{const{onFirstUpdate:i,placement:c,strategy:f,modifiers:d}=u(n);return{onFirstUpdate:i,placement:c||"bottom",strategy:f||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),a=Mt(),l=X({styles:{popper:{position:u(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return Te(o,i=>{const c=u(a);c&&c.setOptions(i)},{deep:!0}),Te([e,t],([i,c])=>{s(),!(!i||!c)&&(a.value=U2(i,c,u(o)))}),Dt(()=>{s()}),{state:O(()=>{var i;return{...((i=u(a))==null?void 0:i.state)||{}}}),styles:O(()=>u(l).styles),attributes:O(()=>u(l).attributes),update:()=>{var i;return(i=u(a))==null?void 0:i.update()},forceUpdate:()=>{var i;return(i=u(a))==null?void 0:i.forceUpdate()},instanceRef:O(()=>u(a))}};function I9(e){const t=Object.keys(e.elements),n=cc(t.map(o=>[o,e.styles[o]||{}])),r=cc(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const wv=e=>{if(!e)return{onClick:At,onMousedown:At,onMouseup:At};let t=!1,n=!1;return{onClick:l=>{t&&n&&e(l),t=n=!1},onMousedown:l=>{t=l.target===l.currentTarget},onMouseup:l=>{n=l.target===l.currentTarget}}},D9=(e,t=0)=>{if(t===0)return e;const n=X(!1);let r=0;const o=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return at(o),Te(()=>e.value,a=>{a?o():n.value=a}),n};function vb(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return wi(()=>n()),{registerTimeout:t,cancelTimeout:n}}const gb={prefix:Math.floor(Math.random()*1e4),current:0},B9=Symbol("elIdInjection"),Y2=()=>lt()?We(B9,gb):gb,qn=e=>{const t=Y2(),n=dv();return O(()=>u(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Xa=[];const mb=e=>{const t=e;t.key===qe.esc&&Xa.forEach(n=>n(t))},F9=e=>{at(()=>{Xa.length===0&&document.addEventListener("keydown",mb),yt&&Xa.push(e)}),Dt(()=>{Xa=Xa.filter(t=>t!==e),Xa.length===0&&yt&&document.removeEventListener("keydown",mb)})};let yb;const X2=()=>{const e=dv(),t=Y2(),n=O(()=>`${e.value}-popper-container-${t.prefix}`),r=O(()=>`#${n.value}`);return{id:n,selector:r}},V9=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},z9=()=>{const{id:e,selector:t}=X2();return Lc(()=>{yt&&!yb&&!document.body.querySelector(t.value)&&(yb=V9(e.value))}),{id:e,selector:t}},H9=Le({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Q2=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:a}=vb(),{registerTimeout:l,cancelTimeout:s}=vb();return{onOpen:f=>{a(()=>{r(f);const d=u(n);Xe(d)&&d>0&&l(()=>{o(f)},d)},u(e))},onClose:f=>{s(),a(()=>{o(f)},u(t))}}},Z2=Symbol("elForwardRef"),W9=e=>{ht(Z2,{setForwardRef:n=>{e.value=n}})},K9=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),bb=X(0),J2=2e3,eS=Symbol("zIndexContextKey"),Hl=e=>{const t=e||(lt()?We(eS,void 0):void 0),n=O(()=>{const a=u(t);return Xe(a)?a:J2}),r=O(()=>n.value+bb.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(bb.value++,r.value)}},ni=Math.min,il=Math.max,fc=Math.round,jo=e=>({x:e,y:e});function j9(e,t,n){return il(e,ni(t,n))}function tS(e,t){return typeof e=="function"?e(t):e}function Cv(e){return e.split("-")[0]}function Sv(e){return e.split("-")[1]}function G9(e){return e==="x"?"y":"x"}function nS(e){return e==="y"?"height":"width"}function kv(e){return["top","bottom"].includes(Cv(e))?"y":"x"}function rS(e){return G9(kv(e))}function q9(e){return{top:0,right:0,bottom:0,left:0,...e}}function U9(e){return typeof e!="number"?q9(e):{top:e,right:e,bottom:e,left:e}}function oS(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function wb(e,t,n){let{reference:r,floating:o}=e;const a=kv(t),l=rS(t),s=nS(l),i=Cv(t),c=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let p;switch(i){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Sv(t)){case"start":p[l]-=h*(n&&c?-1:1);break;case"end":p[l]+=h*(n&&c?-1:1);break}return p}const Y9=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=a.filter(Boolean),i=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=wb(c,r,i),h=r,p={},g=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:l,elements:s,middlewareData:i}=t,{element:c,padding:f=0}=tS(e,t)||{};if(c==null)return{};const d=U9(f),h={x:n,y:r},p=rS(o),g=nS(p),v=await l.getDimensions(c),y=p==="y",m=y?"top":"left",b=y?"bottom":"right",C=y?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[p]-h[p]-a.floating[g],_=h[p]-a.reference[p],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let T=$?$[C]:0;(!T||!await(l.isElement==null?void 0:l.isElement($)))&&(T=s.floating[C]||a.floating[g]);const E=w/2-_/2,M=T/2-v[g]/2-1,x=ni(d[m],M),N=ni(d[b],M),L=x,A=T-v[g]-N,F=T/2-v[g]/2+E,j=j9(L,F,A),H=!i.arrow&&Sv(o)!=null&&F!=j&&a.reference[g]/2-(F"u"?!1:e instanceof ShadowRoot||e instanceof Jn(e).ShadowRoot}function Ai(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function J9(e){return["table","td","th"].includes(Go(e))}function _v(e){const t=$v(),n=pr(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function eW(e){let t=Ol(e);for(;Gr(t)&&!rd(t);){if(_v(t))return t;t=Ol(t)}return null}function $v(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rd(e){return["html","body","#document"].includes(Go(e))}function pr(e){return Jn(e).getComputedStyle(e)}function od(e){return ho(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ol(e){if(Go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cb(e)&&e.host||Jo(e);return Cb(t)?t.host:t}function lS(e){const t=Ol(e);return rd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gr(t)&&Ai(t)?t:lS(t)}function ah(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=lS(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),l=Jn(o);return a?t.concat(l,l.visualViewport||[],Ai(o)?o:[],l.frameElement&&n?ah(l.frameElement):[]):t.concat(o,ah(o,[],n))}function sS(e){const t=pr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gr(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=fc(n)!==a||fc(r)!==l;return s&&(n=a,r=l),{width:n,height:r,$:s}}function iS(e){return ho(e)?e:e.contextElement}function ul(e){const t=iS(e);if(!Gr(t))return jo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=sS(t);let l=(a?fc(n.width):n.width)/r,s=(a?fc(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const tW=jo(0);function uS(e){const t=Jn(e);return!$v()||!t.visualViewport?tW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Jn(e)?!1:t}function ri(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=iS(e);let l=jo(1);t&&(r?ho(r)&&(l=ul(r)):l=ul(e));const s=nW(a,n,r)?uS(a):jo(0);let i=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,f=o.width/l.x,d=o.height/l.y;if(a){const h=Jn(a),p=r&&ho(r)?Jn(r):r;let g=h.frameElement;for(;g&&r&&p!==h;){const v=ul(g),y=g.getBoundingClientRect(),m=pr(g),b=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*v.x,C=y.top+(g.clientTop+parseFloat(m.paddingTop))*v.y;i*=v.x,c*=v.y,f*=v.x,d*=v.y,i+=b,c+=C,g=Jn(g).frameElement}}return oS({width:f,height:d,x:i,y:c})}function rW(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Gr(n),a=Jo(n);if(n===a)return t;let l={scrollLeft:0,scrollTop:0},s=jo(1);const i=jo(0);if((o||!o&&r!=="fixed")&&((Go(n)!=="body"||Ai(a))&&(l=od(n)),Gr(n))){const c=ri(n);s=ul(n),i.x=c.x+n.clientLeft,i.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+i.x,y:t.y*s.y-l.scrollTop*s.y+i.y}}function oW(e){return Array.from(e.getClientRects())}function cS(e){return ri(Jo(e)).left+od(e).scrollLeft}function aW(e){const t=Jo(e),n=od(e),r=e.ownerDocument.body,o=il(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=il(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+cS(e);const s=-n.scrollTop;return pr(r).direction==="rtl"&&(l+=il(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:l,y:s}}function lW(e,t){const n=Jn(e),r=Jo(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,s=0,i=0;if(o){a=o.width,l=o.height;const c=$v();(!c||c&&t==="fixed")&&(s=o.offsetLeft,i=o.offsetTop)}return{width:a,height:l,x:s,y:i}}function sW(e,t){const n=ri(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Gr(e)?ul(e):jo(1),l=e.clientWidth*a.x,s=e.clientHeight*a.y,i=o*a.x,c=r*a.y;return{width:l,height:s,x:i,y:c}}function Sb(e,t,n){let r;if(t==="viewport")r=lW(e,n);else if(t==="document")r=aW(Jo(e));else if(ho(t))r=sW(t,n);else{const o=uS(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return oS(r)}function dS(e,t){const n=Ol(e);return n===t||!ho(n)||rd(n)?!1:pr(n).position==="fixed"||dS(n,t)}function iW(e,t){const n=t.get(e);if(n)return n;let r=ah(e,[],!1).filter(s=>ho(s)&&Go(s)!=="body"),o=null;const a=pr(e).position==="fixed";let l=a?Ol(e):e;for(;ho(l)&&!rd(l);){const s=pr(l),i=_v(l);!i&&s.position==="fixed"&&(o=null),(a?!i&&!o:!i&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ai(l)&&!i&&dS(e,l))?r=r.filter(f=>f!==l):o=s,l=Ol(l)}return t.set(e,r),r}function uW(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?iW(t,this._c):[].concat(n),r],s=l[0],i=l.reduce((c,f)=>{const d=Sb(t,f,o);return c.top=il(d.top,c.top),c.right=ni(d.right,c.right),c.bottom=ni(d.bottom,c.bottom),c.left=il(d.left,c.left),c},Sb(t,s,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}}function cW(e){return sS(e)}function dW(e,t,n){const r=Gr(t),o=Jo(t),a=n==="fixed",l=ri(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const i=jo(0);if(r||!r&&!a)if((Go(t)!=="body"||Ai(o))&&(s=od(t)),r){const c=ri(t,!0,a,t);i.x=c.x+t.clientLeft,i.y=c.y+t.clientTop}else o&&(i.x=cS(o));return{x:l.left+s.scrollLeft-i.x,y:l.top+s.scrollTop-i.y,width:l.width,height:l.height}}function kb(e,t){return!Gr(e)||pr(e).position==="fixed"?null:t?t(e):e.offsetParent}function fS(e,t){const n=Jn(e);if(!Gr(e))return n;let r=kb(e,t);for(;r&&J9(r)&&pr(r).position==="static";)r=kb(r,t);return r&&(Go(r)==="html"||Go(r)==="body"&&pr(r).position==="static"&&!_v(r))?n:r||eW(e)||n}const fW=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||fS,a=this.getDimensions;return{reference:dW(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function hW(e){return pr(e).direction==="rtl"}const pW={convertOffsetParentRelativeRectToViewportRelativeRect:rW,getDocumentElement:Jo,getClippingRect:uW,getOffsetParent:fS,getElementRects:fW,getClientRects:oW,getDimensions:cW,getScale:ul,isElement:ho,isRTL:hW},vW=(e,t,n)=>{const r=new Map,o={platform:pW,...n},a={...o.platform,_c:r};return Y9(e,t,{...o,platform:a})};Le({});const gW=e=>{if(!yt)return;if(!e)return e;const t=zn(e);return t||(xt(e)?t:e)},mW=({middleware:e,placement:t,strategy:n})=>{const r=X(),o=X(),a=X(),l=X(),s=X({}),i={x:a,y:l,placement:t,strategy:n,middlewareData:s},c=async()=>{if(!yt)return;const f=gW(r),d=zn(o);if(!f||!d)return;const h=await vW(f,d,{placement:u(t),strategy:u(n),middleware:u(e)});Js(i).forEach(p=>{i[p].value=h[p]})};return at(()=>{Zn(()=>{c()})}),{...i,update:c,referenceRef:r,contentRef:o}},yW=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=u(e);return r?X9({element:r,padding:t}).fn(n):{}}});function bW(e){const t=X();function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:a,value:l}=e.value;if(o==null||a==null)return;const s=l.slice(0,Math.max(0,o)),i=l.slice(Math.max(0,a));t.value={selectionStart:o,selectionEnd:a,value:l,beforeTxt:s,afterTxt:i}}function r(){if(e.value==null||t.value==null)return;const{value:o}=e.value,{beforeTxt:a,afterTxt:l,selectionStart:s}=t.value;if(a==null||l==null||s==null)return;let i=o.length;if(o.endsWith(l))i=o.length-l.length;else if(o.startsWith(a))i=a.length;else{const c=a[s-1],f=o.indexOf(c,s-1);f!==-1&&(i=f+1)}e.value.setSelectionRange(i,i)}return[n,r]}const wW=(e,t,n)=>_a(e.subTree).filter(a=>{var l;return Vt(a)&&((l=a.type)==null?void 0:l.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),Ev=(e,t)=>{const n={},r=Mt([]);return{children:r,addChild:l=>{n[l.uid]=l,r.value=wW(e,t,n)},removeChild:l=>{delete n[l],r.value=r.value.filter(s=>s.uid!==l)}}},gn=Rr({type:String,values:Xr,required:!1}),hS=Symbol("size"),CW=()=>{const e=We(hS,{});return O(()=>u(e.size)||"")};function pS(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const o=lt(),{emit:a}=o,l=Mt(),s=X(!1),i=d=>{s.value||(s.value=!0,a("focus",d),t==null||t())},c=d=>{var h;Ze(n)&&n(d)||d.relatedTarget&&((h=l.value)!=null&&h.contains(d.relatedTarget))||(s.value=!1,a("blur",d),r==null||r())},f=()=>{var d;(d=e.value)==null||d.focus()};return Te(l,d=>{d&&d.setAttribute("tabindex","-1")}),Ft(l,"click",f),{wrapperRef:l,isFocused:s,handleFocus:i,handleBlur:c}}const vS=Symbol(),hc=X();function ad(e,t=void 0){const n=lt()?We(vS,hc):hc;return e?O(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function ld(e,t){const n=ad(),r=Ae(e,O(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||$s})),o=bt(O(()=>{var s;return(s=n.value)==null?void 0:s.locale})),a=Hl(O(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||J2})),l=O(()=>{var s;return u(t)||((s=n.value)==null?void 0:s.size)||""});return Pv(O(()=>u(n)||{})),{ns:r,locale:o,zIndex:a,size:l}}const Pv=(e,t,n=!1)=>{var r;const o=!!lt(),a=o?ad():void 0,l=(r=t==null?void 0:t.provide)!=null?r:o?ht:void 0;if(!l)return;const s=O(()=>{const i=u(e);return a!=null&&a.value?SW(a.value,i):i});return l(vS,s),l(M2,O(()=>s.value.locale)),l(R2,O(()=>s.value.namespace)),l(eS,O(()=>s.value.zIndex)),l(hS,{size:O(()=>s.value.size||"")}),(n||!hc.value)&&(hc.value=s.value),s},SW=(e,t)=>{var n;const r=[...new Set([...Js(e),...Js(t)])],o={};for(const a of r)o[a]=(n=t[a])!=null?n:e[a];return o},kW=Le({a11y:{type:Boolean,default:!0},locale:{type:we(Object)},size:gn,button:{type:we(Object)},experimentalFeatures:{type:we(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:we(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),lh={},_W=ue({name:"ElConfigProvider",props:kW,setup(e,{slots:t}){Te(()=>e.message,r=>{Object.assign(lh,r??{})},{immediate:!0,deep:!0});const n=Pv(e);return()=>_e(t,"default",{config:n==null?void 0:n.value})}}),$W=it(_W),EW="2.4.4",PW=(e=[])=>({version:EW,install:(n,r)=>{n[ob]||(n[ob]=!0,e.forEach(o=>n.use(o)),r&&Pv(r,n,!0))}}),TW=Le({zIndex:{type:we([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),xW={scroll:({scrollTop:e,fixed:t})=>Xe(e)&&nn(t),[It]:e=>nn(e)};var Ne=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const gS="ElAffix",AW=ue({name:gS}),OW=ue({...AW,props:TW,emits:xW,setup(e,{expose:t,emit:n}){const r=e,o=Ae("affix"),a=Mt(),l=Mt(),s=Mt(),{height:i}=qI(),{height:c,width:f,top:d,bottom:h,update:p}=wy(l,{windowScroll:!1}),g=wy(a),v=X(!1),y=X(0),m=X(0),b=O(()=>({height:v.value?`${c.value}px`:"",width:v.value?`${f.value}px`:""})),C=O(()=>{if(!v.value)return{};const $=r.offset?Xt(r.offset):0;return{height:`${c.value}px`,width:`${f.value}px`,top:r.position==="top"?$:"",bottom:r.position==="bottom"?$:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(s.value)if(y.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const $=g.bottom.value-r.offset-c.value;v.value=r.offset>d.value&&g.bottom.value>0,m.value=$<0?$:0}else v.value=r.offset>d.value;else if(r.target){const $=i.value-g.top.value-r.offset-c.value;v.value=i.value-r.offsetg.top.value,m.value=$<0?-$:0}else v.value=i.value-r.offset{p(),n("scroll",{scrollTop:y.value,fixed:v.value})};return Te(v,$=>n("change",$)),at(()=>{var $;r.target?(a.value=($=document.querySelector(r.target))!=null?$:void 0,a.value||rn(gS,`Target is not existed: ${r.target}`)):a.value=document.documentElement,s.value=rv(l.value,!0),p()}),Ft(s,"scroll",_),Zn(w),t({update:w,updateRoot:p}),($,T)=>(P(),K("div",{ref_key:"root",ref:l,class:V(u(o).b()),style:Fe(u(b))},[B("div",{class:V({[u(o).m("fixed")]:v.value}),style:Fe(u(C))},[_e($.$slots,"default")],6)],6))}});var MW=Ne(OW,[["__file","affix.vue"]]);const RW=it(MW),LW=Le({size:{type:we([Number,String])},color:{type:String}}),NW=ue({name:"ElIcon",inheritAttrs:!1}),IW=ue({...NW,props:LW,setup(e){const t=e,n=Ae("icon"),r=O(()=>{const{size:o,color:a}=t;return!o&&!a?{}:{fontSize:tn(o)?void 0:Xt(o),"--color":a}});return(o,a)=>(P(),K("i",ft({class:u(n).b(),style:u(r)},o.$attrs),[_e(o.$slots,"default")],16))}});var DW=Ne(IW,[["__file","icon.vue"]]);const je=it(DW),BW=["light","dark"],FW=Le({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Js(Ko),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:BW,default:"light"}}),VW={close:e=>e instanceof MouseEvent},zW=ue({name:"ElAlert"}),HW=ue({...zW,props:FW,emits:VW,setup(e,{emit:t}){const n=e,{Close:r}=sv,o=mn(),a=Ae("alert"),l=X(!0),s=O(()=>Ko[n.type]),i=O(()=>[a.e("icon"),{[a.is("big")]:!!n.description||!!o.default}]),c=O(()=>({[a.is("bold")]:n.description||o.default})),f=d=>{l.value=!1,t("close",d)};return(d,h)=>(P(),ke(Jt,{name:u(a).b("fade"),persisted:""},{default:me(()=>[rt(B("div",{class:V([u(a).b(),u(a).m(d.type),u(a).is("center",d.center),u(a).is(d.effect)]),role:"alert"},[d.showIcon&&u(s)?(P(),ke(u(je),{key:0,class:V(u(i))},{default:me(()=>[(P(),ke(dt(u(s))))]),_:1},8,["class"])):be("v-if",!0),B("div",{class:V(u(a).e("content"))},[d.title||d.$slots.title?(P(),K("span",{key:0,class:V([u(a).e("title"),u(c)])},[_e(d.$slots,"title",{},()=>[kt(Me(d.title),1)])],2)):be("v-if",!0),d.$slots.default||d.description?(P(),K("p",{key:1,class:V(u(a).e("description"))},[_e(d.$slots,"default",{},()=>[kt(Me(d.description),1)])],2)):be("v-if",!0),d.closable?(P(),K(Be,{key:2},[d.closeText?(P(),K("div",{key:0,class:V([u(a).e("close-btn"),u(a).is("customed")]),onClick:f},Me(d.closeText),3)):(P(),ke(u(je),{key:1,class:V(u(a).e("close-btn")),onClick:f},{default:me(()=>[de(u(r))]),_:1},8,["class"]))],64)):be("v-if",!0)],2)],2),[[St,l.value]])]),_:3},8,["name"]))}});var WW=Ne(HW,[["__file","alert.vue"]]);const KW=it(WW),za=Symbol("formContextKey"),qr=Symbol("formItemContextKey"),on=(e,t={})=>{const n=X(void 0),r=t.prop?n:I2("size"),o=t.global?n:CW(),a=t.form?{size:void 0}:We(za,void 0),l=t.formItem?{size:void 0}:We(qr,void 0);return O(()=>r.value||u(e)||(l==null?void 0:l.size)||(a==null?void 0:a.size)||o.value||"")},Un=e=>{const t=I2("disabled"),n=We(za,void 0);return O(()=>t.value||u(e)||(n==null?void 0:n.disabled)||!1)},Dn=()=>{const e=We(za,void 0),t=We(qr,void 0);return{form:e,formItem:t}},ea=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=X(!1)),r||(r=X(!1));const o=X();let a;const l=O(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return at(()=>{a=Te([Wt(e,"id"),n],([s,i])=>{const c=s??(i?void 0:qn().value);c!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!i&&c&&t.addInputId(c)),o.value=c)},{immediate:!0})}),Uo(()=>{a&&a(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},jW=Le({size:{type:String,values:Xr},disabled:Boolean}),GW=Le({...jW,model:Object,rules:{type:we(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),qW={validate:(e,t,n)=>(Ke(e)||tt(e))&&nn(t)&&tt(n)};function UW(){const e=X([]),t=O(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function n(a){const l=e.value.indexOf(a);return l===-1&&t.value,l}function r(a,l){if(a&&l){const s=n(l);e.value.splice(s,1,a)}else a&&e.value.push(a)}function o(a){const l=n(a);l>-1&&e.value.splice(l,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const lu=(e,t)=>{const n=Ma(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},YW="ElForm",XW=ue({name:YW}),QW=ue({...XW,props:GW,emits:qW,setup(e,{expose:t,emit:n}){const r=e,o=[],a=on(),l=Ae("form"),s=O(()=>{const{labelPosition:b,inline:C}=r;return[l.b(),l.m(a.value||"default"),{[l.m(`label-${b}`)]:b,[l.m("inline")]:C}]}),i=b=>{o.push(b)},c=b=>{b.prop&&o.splice(o.indexOf(b),1)},f=(b=[])=>{r.model&&lu(o,b).forEach(C=>C.resetField())},d=(b=[])=>{lu(o,b).forEach(C=>C.clearValidate())},h=O(()=>!!r.model),p=b=>{if(o.length===0)return[];const C=lu(o,b);return C.length?C:[]},g=async b=>y(void 0,b),v=async(b=[])=>{if(!h.value)return!1;const C=p(b);if(C.length===0)return!0;let w={};for(const _ of C)try{await _.validate("")}catch($){w={...w,...$}}return Object.keys(w).length===0?!0:Promise.reject(w)},y=async(b=[],C)=>{const w=!Ze(C);try{const _=await v(b);return _===!0&&(C==null||C(_)),_}catch(_){if(_ instanceof Error)throw _;const $=_;return r.scrollToError&&m(Object.keys($)[0]),C==null||C(!1,$),w&&Promise.reject($)}},m=b=>{var C;const w=lu(o,b)[0];w&&((C=w.$el)==null||C.scrollIntoView(r.scrollIntoViewOptions))};return Te(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(b=>void 0)},{deep:!0}),ht(za,$t({...ln(r),emit:n,resetFields:f,clearValidate:d,validateField:y,addField:i,removeField:c,...UW()})),t({validate:g,validateField:y,resetFields:f,clearValidate:d,scrollToField:m}),(b,C)=>(P(),K("form",{class:V(u(s))},[_e(b.$slots,"default")],2))}});var ZW=Ne(QW,[["__file","form.vue"]]);function va(){return va=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 xu(e,t,n){return e7()?xu=Reflect.construct.bind():xu=function(o,a,l){var s=[null];s.push.apply(s,a);var i=Function.bind.apply(o,s),c=new i;return l&&oi(c,l.prototype),c},xu.apply(null,arguments)}function t7(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ih(e){var t=typeof Map=="function"?new Map:void 0;return ih=function(r){if(r===null||!t7(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return xu(r,arguments,sh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),oi(o,r)},ih(e)}var n7=/%[sdj%]/g,r7=function(){};function uh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Qn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return l}return e}function o7(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function cn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||o7(t)&&typeof e=="string"&&!e)}function a7(e,t,n){var r=[],o=0,a=e.length;function l(s){r.push.apply(r,s||[]),o++,o===a&&n(r)}e.forEach(function(s){t(s,l)})}function _b(e,t,n){var r=0,o=e.length;function a(l){if(l&&l.length){n(l);return}var s=r;r=r+1,s]/,nae=rae;function rae(e){var t=""+e,n=tae.exec(t);if(!n)return t;var r,o="",a=0,l=0;for(a=n.index;atypeof c=="string"?zt(s,c):c(s,i,e))):(t!=="$key"&&ct(s)&&"$value"in s&&(s=s.$value),[ct(s)?zt(s,t):s])},l=function(s,i){if(r)return r(s.value,i.value);for(let c=0,f=s.key.length;ci.key[c])return 1}return 0};return e.map((s,i)=>({value:s,index:i,key:a?a(s,i):null})).sort((s,i)=>{let c=l(s,i);return c||(c=s.index-i.index),c*+n}).map(s=>s.value)},N_=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},lae=function(e,t){let n=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const o of n)r=r[o];return`${r}`}else if(typeof t=="function")return t.call(null,e)},ba=function(e,t){const n={};return(e||[]).forEach((r,o)=>{n[wn(r,t)]={row:r,index:o}}),n};function sae(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(gt(t,r)){const o=t[r];typeof o<"u"&&(n[r]=o)}return n}function Xv(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function I_(e){return e===""||e!==void 0&&(e=Xv(e),Number.isNaN(e)&&(e=80)),e}function iae(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function uae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function As(e,t,n){let r=!1;const o=e.indexOf(t),a=o!==-1,l=s=>{s==="add"?e.push(t):e.splice(o,1),r=!0,Ke(t.children)&&t.children.forEach(i=>{As(e,i,n??!a)})};return nn(n)?n&&!a?l("add"):!n&&a&&l("remove"):l(a?"remove":"add"),r}function cae(e,t,n="children",r="hasChildren"){const o=l=>!(Array.isArray(l)&&l.length);function a(l,s,i){t(l,s,i),s.forEach(c=>{if(c[r]){t(c,null,i+1);return}const f=c[n];o(f)||a(c,f,i+1)})}e.forEach(l=>{if(l[r]){t(l,null,0);return}const s=l[n];o(s)||a(l,s,0)})}let Cr;function dae(e,t,n,r,o){o=m2({enterable:!0,showArrow:!0},o);const a=e==null?void 0:e.dataset.prefix,l=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const b=o.effect==="light",C=document.createElement("div");return C.className=[`${a}-popper`,b?"is-light":"is-dark",o.popperClass||""].join(" "),n=oae(n),C.innerHTML=n,C.style.zIndex=String(r()),e==null||e.appendChild(C),C}function i(){const b=document.createElement("div");return b.className=`${a}-popper__arrow`,b}function c(b){return{name:"updateState",enabled:!0,phase:"beforeWrite",fn:({state:C})=>{C.styles.popper.display=b},requires:["computeStyles"]}}function f(){o.showAfter&&(h==null||h.setOptions({modifiers:[c("block")]})),h==null||h.update()}const d=(Cr==null?void 0:Cr.trigger)!==t;Cr==null||Cr(),Cr=()=>{try{h&&h.destroy(),v&&(e==null||e.removeChild(v)),t.removeEventListener("mouseenter",p),t.removeEventListener("mouseleave",g),l==null||l.removeEventListener("scroll",Cr),Cr=void 0}catch{}},Cr.trigger=t;let h=null;const{onOpen:p,onClose:g}=Q2({showAfter:o.showAfter,hideAfter:o.hideAfter,open:f,close:Cr}),v=s();o.enterable&&(v.onmouseenter=p,v.onmouseleave=g);const y=[];if(o.offset&&y.push({name:"offset",options:{offset:[0,o.offset]}}),o.showArrow){const b=v.appendChild(i());y.push({name:"arrow",options:{element:b,padding:10}})}o.showAfter&&d&&y.push(c("none"));const m=o.popperOptions||{};return h=U2(t,v,{placement:o.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?y.concat(m.modifiers):y}),t.addEventListener("mouseenter",p),t.addEventListener("mouseleave",g),l==null||l.addEventListener("scroll",Cr),p(),h}function D_(e){return e.children?zV(e.children,D_):[e]}function A1(e,t){return e+t.colSpan}const B_=(e,t,n,r)=>{let o=0,a=e;const l=n.states.columns.value;if(r){const i=D_(r[e]);o=l.slice(0,l.indexOf(i[0])).reduce(A1,0),a=o+i.reduce(A1,0)-1}else o=e;let s;switch(t){case"left":a=l.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a=l.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:a}:{}},Qv=(e,t,n,r,o,a=0)=>{const l=[],{direction:s,start:i,after:c}=B_(t,n,r,o);if(s){const f=s==="left";l.push(`${e}-fixed-column--${s}`),f&&c+a===r.states.fixedLeafColumnsLength.value-1?l.push("is-last-column"):!f&&i-a===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&l.push("is-first-column")}return l};function O1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Zv=(e,t,n,r)=>{const{direction:o,start:a=0,after:l=0}=B_(e,t,n,r);if(!o)return;const s={},i=o==="left",c=n.states.columns.value;return i?s.left=c.slice(0,a).reduce(O1,0):s.right=c.slice(l+1).reverse().reduce(O1,0),s},Rl=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function fae(e){const t=lt(),n=X(!1),r=X([]);return{updateExpandRows:()=>{const i=e.data.value||[],c=e.rowKey.value;if(n.value)r.value=i.slice();else if(c){const f=ba(r.value,c);r.value=i.reduce((d,h)=>{const p=wn(h,c);return f[p]&&d.push(h),d},[])}else r.value=[]},toggleRowExpansion:(i,c)=>{As(r.value,i,c)&&t.emit("expand-change",i,r.value.slice())},setExpandRowKeys:i=>{t.store.assertRowKey();const c=e.data.value||[],f=e.rowKey.value,d=ba(c,f);r.value=i.reduce((h,p)=>{const g=d[p];return g&&h.push(g.row),h},[])},isRowExpanded:i=>{const c=e.rowKey.value;return c?!!ba(r.value,c)[wn(i,c)]:r.value.includes(i)},states:{expandRows:r,defaultExpandAll:n}}}function hae(e){const t=lt(),n=X(null),r=X(null),o=c=>{t.store.assertRowKey(),n.value=c,l(c)},a=()=>{n.value=null},l=c=>{const{data:f,rowKey:d}=e;let h=null;d.value&&(h=(u(f)||[]).find(p=>wn(p,d.value)===c)),r.value=h,t.emit("current-change",r.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:a,setCurrentRowByKey:l,updateCurrentRow:c=>{const f=r.value;if(c&&c!==f){r.value=c,t.emit("current-change",r.value,f);return}!c&&f&&(r.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const c=e.rowKey.value,f=e.data.value||[],d=r.value;if(!f.includes(d)&&d){if(c){const h=wn(d,c);l(h)}else r.value=null;r.value===null&&t.emit("current-change",null,d)}else n.value&&(l(n.value),a())},states:{_currentRowKey:n,currentRow:r}}}function pae(e){const t=X([]),n=X({}),r=X(16),o=X(!1),a=X({}),l=X("hasChildren"),s=X("children"),i=lt(),c=O(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return d(m)}),f=O(()=>{const m=e.rowKey.value,b=Object.keys(a.value),C={};return b.length&&b.forEach(w=>{if(a.value[w].length){const _={children:[]};a.value[w].forEach($=>{const T=wn($,m);_.children.push(T),$[l.value]&&!C[T]&&(C[T]={children:[]})}),C[w]=_}}),C}),d=m=>{const b=e.rowKey.value,C={};return cae(m,(w,_,$)=>{const T=wn(w,b);Array.isArray(_)?C[T]={children:_.map(E=>wn(E,b)),level:$}:o.value&&(C[T]={children:[],lazy:!0,level:$})},s.value,l.value),C},h=(m=!1,b=(C=>(C=i.store)==null?void 0:C.states.defaultExpandAll.value)())=>{var C;const w=c.value,_=f.value,$=Object.keys(w),T={};if($.length){const E=u(n),M=[],x=(L,A)=>{if(m)return t.value?b||t.value.includes(A):!!(b||L!=null&&L.expanded);{const F=b||t.value&&t.value.includes(A);return!!(L!=null&&L.expanded||F)}};$.forEach(L=>{const A=E[L],F={...w[L]};if(F.expanded=x(A,L),F.lazy){const{loaded:j=!1,loading:H=!1}=A||{};F.loaded=!!j,F.loading=!!H,M.push(L)}T[L]=F});const N=Object.keys(_);o.value&&N.length&&M.length&&N.forEach(L=>{const A=E[L],F=_[L].children;if(M.includes(L)){if(T[L].children.length!==0)throw new Error("[ElTable]children must be an empty array.");T[L].children=F}else{const{loaded:j=!1,loading:H=!1}=A||{};T[L]={lazy:!0,loaded:!!j,loading:!!H,expanded:x(A,L),children:F,level:""}}})}n.value=T,(C=i.store)==null||C.updateTableScrollY()};Te(()=>t.value,()=>{h(!0)}),Te(()=>c.value,()=>{h()}),Te(()=>f.value,()=>{h()});const p=m=>{t.value=m,h()},g=(m,b)=>{i.store.assertRowKey();const C=e.rowKey.value,w=wn(m,C),_=w&&n.value[w];if(w&&_&&"expanded"in _){const $=_.expanded;b=typeof b>"u"?!_.expanded:b,n.value[w].expanded=b,$!==b&&i.emit("expand-change",m,b),i.store.updateTableScrollY()}},v=m=>{i.store.assertRowKey();const b=e.rowKey.value,C=wn(m,b),w=n.value[C];o.value&&w&&"loaded"in w&&!w.loaded?y(m,C,w):g(m,void 0)},y=(m,b,C)=>{const{load:w}=i.props;w&&!n.value[b].loaded&&(n.value[b].loading=!0,w(m,C,_=>{if(!Array.isArray(_))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,_.length&&(a.value[b]=_),i.emit("expand-change",m,!0)}))};return{loadData:y,loadOrToggle:v,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:a,lazyColumnIdentifier:l,childrenColumnName:s}}}const vae=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:aae(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},zu=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,zu(n.children)):t.push(n)}),t};function gae(){var e;const t=lt(),{size:n}=ln((e=t.proxy)==null?void 0:e.$props),r=X(null),o=X([]),a=X([]),l=X(!1),s=X([]),i=X([]),c=X([]),f=X([]),d=X([]),h=X([]),p=X([]),g=X([]),v=[],y=X(0),m=X(0),b=X(0),C=X(!1),w=X([]),_=X(!1),$=X(!1),T=X(null),E=X({}),M=X(null),x=X(null),N=X(null),L=X(null),A=X(null);Te(o,()=>t.state&&S(!1),{deep:!0});const F=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},j=De=>{var $e;($e=De.children)==null||$e.forEach(Se=>{Se.fixed=De.fixed,j(Se)})},H=()=>{s.value.forEach(xe=>{j(xe)}),f.value=s.value.filter(xe=>xe.fixed===!0||xe.fixed==="left"),d.value=s.value.filter(xe=>xe.fixed==="right"),f.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,f.value.unshift(s.value[0]));const De=s.value.filter(xe=>!xe.fixed);i.value=[].concat(f.value).concat(De).concat(d.value);const $e=zu(De),Se=zu(f.value),Ce=zu(d.value);y.value=$e.length,m.value=Se.length,b.value=Ce.length,c.value=[].concat(Se).concat($e).concat(Ce),l.value=f.value.length>0||d.value.length>0},S=(De,$e=!1)=>{De&&H(),$e?t.state.doLayout():t.state.debouncedUpdateLayout()},I=De=>w.value.includes(De),k=()=>{C.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},R=()=>{let De;if(r.value){De=[];const $e=ba(w.value,r.value),Se=ba(o.value,r.value);for(const Ce in $e)gt($e,Ce)&&!Se[Ce]&&De.push($e[Ce].row)}else De=w.value.filter($e=>!o.value.includes($e));if(De.length){const $e=w.value.filter(Se=>!De.includes(Se));w.value=$e,t.emit("selection-change",$e.slice())}},z=()=>(w.value||[]).slice(),Z=(De,$e=void 0,Se=!0)=>{if(As(w.value,De,$e)){const xe=(w.value||[]).slice();Se&&t.emit("select",xe,De),t.emit("selection-change",xe)}},J=()=>{var De,$e;const Se=$.value?!C.value:!(C.value||w.value.length);C.value=Se;let Ce=!1,xe=0;const pe=($e=(De=t==null?void 0:t.store)==null?void 0:De.states)==null?void 0:$e.rowKey.value;o.value.forEach((Ve,et)=>{const pt=et+xe;T.value?T.value.call(null,Ve,pt)&&As(w.value,Ve,Se)&&(Ce=!0):As(w.value,Ve,Se)&&(Ce=!0),xe+=fe(wn(Ve,pe))}),Ce&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},oe=()=>{const De=ba(w.value,r.value);o.value.forEach($e=>{const Se=wn($e,r.value),Ce=De[Se];Ce&&(w.value[Ce.index]=$e)})},ve=()=>{var De,$e,Se;if(((De=o.value)==null?void 0:De.length)===0){C.value=!1;return}let Ce;r.value&&(Ce=ba(w.value,r.value));const xe=function(pt){return Ce?!!Ce[wn(pt,r.value)]:w.value.includes(pt)};let pe=!0,Ve=0,et=0;for(let pt=0,Zt=(o.value||[]).length;pt{var $e;if(!t||!t.store)return 0;const{treeData:Se}=t.store.states;let Ce=0;const xe=($e=Se.value[De])==null?void 0:$e.children;return xe&&(Ce+=xe.length,xe.forEach(pe=>{Ce+=fe(pe)})),Ce},U=(De,$e)=>{Array.isArray(De)||(De=[De]);const Se={};return De.forEach(Ce=>{E.value[Ce.id]=$e,Se[Ce.columnKey||Ce.id]=$e}),Se},ne=(De,$e,Se)=>{x.value&&x.value!==De&&(x.value.order=null),x.value=De,N.value=$e,L.value=Se},ie=()=>{let De=u(a);Object.keys(E.value).forEach($e=>{const Se=E.value[$e];if(!Se||Se.length===0)return;const Ce=N_({columns:c.value},$e);Ce&&Ce.filterMethod&&(De=De.filter(xe=>Se.some(pe=>Ce.filterMethod.call(null,pe,xe,Ce))))}),M.value=De},ce=()=>{o.value=vae(M.value,{sortingColumn:x.value,sortProp:N.value,sortOrder:L.value})},te=(De=void 0)=>{De&&De.filter||ie(),ce()},D=De=>{const{tableHeaderRef:$e}=t.refs;if(!$e)return;const Se=Object.assign({},$e.filterPanels),Ce=Object.keys(Se);if(Ce.length)if(typeof De=="string"&&(De=[De]),Array.isArray(De)){const xe=De.map(pe=>lae({columns:c.value},pe));Ce.forEach(pe=>{const Ve=xe.find(et=>et.id===pe);Ve&&(Ve.filteredValue=[])}),t.store.commit("filterChange",{column:xe,values:[],silent:!0,multi:!0})}else Ce.forEach(xe=>{const pe=c.value.find(Ve=>Ve.id===xe);pe&&(pe.filteredValue=[])}),E.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},W=()=>{x.value&&(ne(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Y,toggleRowExpansion:re,updateExpandRows:se,states:q,isRowExpanded:ae}=fae({data:o,rowKey:r}),{updateTreeExpandKeys:G,toggleTreeExpansion:Q,updateTreeData:ee,loadOrToggle:le,states:he}=pae({data:o,rowKey:r}),{updateCurrentRowData:ye,updateCurrentRow:ge,setCurrentRowKey:Ee,states:Oe}=hae({data:o,rowKey:r});return{assertRowKey:F,updateColumns:H,scheduleLayout:S,isSelected:I,clearSelection:k,cleanSelection:R,getSelectionRows:z,toggleRowSelection:Z,_toggleAllSelection:J,toggleAllSelection:null,updateSelectionByRowKey:oe,updateAllSelected:ve,updateFilters:U,updateCurrentRow:ge,updateSort:ne,execFilter:ie,execSort:ce,execQuery:te,clearFilter:D,clearSort:W,toggleRowExpansion:re,setExpandRowKeysAdapter:De=>{Y(De),G(De)},setCurrentRowKey:Ee,toggleRowExpansionAdapter:(De,$e)=>{c.value.some(({type:Ce})=>Ce==="expand")?re(De,$e):Q(De,$e)},isRowExpanded:ae,updateExpandRows:se,updateCurrentRowData:ye,loadOrToggle:le,updateTreeData:ee,states:{tableSize:n,rowKey:r,data:o,_data:a,isComplex:l,_columns:s,originColumns:i,columns:c,fixedColumns:f,rightFixedColumns:d,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:g,updateOrderFns:v,leafColumnsLength:y,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:b,isAllSelected:C,selection:w,reserveSelection:_,selectOnIndeterminate:$,selectable:T,filters:E,filteredData:M,sortingColumn:x,sortProp:N,sortOrder:L,hoverRow:A,...q,...he,...Oe}}}function Hh(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=Hh(n.children,t)),n)})}function Wh(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&Wh(t.children)}),e.sort((t,n)=>t.no-n.no)}function mae(){const e=lt(),t=gae();return{ns:Ae("table"),...t,mutations:{setData(l,s){const i=u(l._data)!==s;l.data.value=s,l._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),u(l.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):i?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(l,s,i,c){const f=u(l._columns);let d=[];i?(i&&!i.children&&(i.children=[]),i.children.push(s),d=Hh(f,i)):(f.push(s),d=f),Wh(d),l._columns.value=d,l.updateOrderFns.push(c),s.type==="selection"&&(l.selectable.value=s.selectable,l.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(l,s){var i;((i=s.getColumnIndex)==null?void 0:i.call(s))!==s.no&&(Wh(l._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(l,s,i,c){const f=u(l._columns)||[];if(i)i.children.splice(i.children.findIndex(h=>h.id===s.id),1),Ge(()=>{var h;((h=i.children)==null?void 0:h.length)===0&&delete i.children}),l._columns.value=Hh(f,i);else{const h=f.indexOf(s);h>-1&&(f.splice(h,1),l._columns.value=f)}const d=l.updateOrderFns.indexOf(c);d>-1&&l.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(l,s){const{prop:i,order:c,init:f}=s;if(i){const d=u(l.columns).find(h=>h.property===i);d&&(d.order=c,e.store.updateSort(d,i,c),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(l,s){const{sortingColumn:i,sortProp:c,sortOrder:f}=l,d=u(i),h=u(c),p=u(f);p===null&&(l.sortingColumn.value=null,l.sortProp.value=null);const g={filter:!0};e.store.execQuery(g),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:d,prop:h,order:p}),e.store.updateTableScrollY()},filterChange(l,s){const{column:i,values:c,silent:f}=s,d=e.store.updateFilters(i,c);e.store.execQuery(),f||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(l,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(l,s){l.hoverRow.value=s},setCurrentRow(l,s){e.store.updateCurrentRow(s)}},commit:function(l,...s){const i=e.store.mutations;if(i[l])i[l].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${l}`)},updateTableScrollY:function(){Ge(()=>e.layout.updateScrollY.apply(e.layout))}}}const Os={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 yae(e,t){if(!e)throw new Error("Table is required.");const n=mae();return n.toggleAllSelection=Ln(n._toggleAllSelection,10),Object.keys(Os).forEach(r=>{F_(V_(t,r),r,n)}),bae(n,t),n}function bae(e,t){Object.keys(Os).forEach(n=>{Te(()=>V_(t,n),r=>{F_(r,n,e)})})}function F_(e,t,n){let r=e,o=Os[t];typeof Os[t]=="object"&&(o=o.key,r=r||Os[t].default),n.states[o].value=r}function V_(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(o=>{r=r[o]}),r}else return e[t]}class wae{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=X(null),this.scrollX=X(!1),this.scrollY=X(!1),this.bodyWidth=X(null),this.fixedWidth=X(null),this.rightFixedWidth=X(null),this.gutterWidth=0;for(const n in t)gt(t,n)&&(xt(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const o=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,o!==r}return!1}setHeight(t,n="height"){if(!yt)return;const r=this.table.vnode.el;if(t=iae(t),this.height.value=Number(t),!r&&(t||t===0))return Ge(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!yt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const o=this.getFlattenColumns(),a=o.filter(i=>typeof i.width!="number");if(o.forEach(i=>{typeof i.width=="number"&&i.realWidth&&(i.realWidth=null)}),a.length>0&&t){if(o.forEach(i=>{r+=Number(i.width||i.minWidth||80)}),r<=n){this.scrollX.value=!1;const i=n-r;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+i;else{const c=a.reduce((h,p)=>h+Number(p.minWidth||80),0),f=i/c;let d=0;a.forEach((h,p)=>{if(p===0)return;const g=Math.floor(Number(h.minWidth||80)*f);d+=g,h.realWidth=Number(h.minWidth||80)+g}),a[0].realWidth=Number(a[0].minWidth||80)+i-d}}else this.scrollX.value=!0,a.forEach(i=>{i.realWidth=Number(i.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(i=>{!i.width&&!i.minWidth?i.realWidth=80:i.realWidth=Number(i.width||i.minWidth),r+=i.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const l=this.store.states.fixedColumns.value;if(l.length>0){let i=0;l.forEach(c=>{i+=Number(c.realWidth||c.width)}),this.fixedWidth.value=i}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let i=0;s.forEach(c=>{i+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=i}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var o,a;switch(t){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(a=r.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Cae}=vr,Sae=ue({name:"ElTableFilterPanel",components:{ElCheckbox:vr,ElCheckboxGroup:Cae,ElScrollbar:wo,ElTooltip:Nn,ElIcon:je,ArrowDown:Yo,ArrowUp:Xc},directives:{ClickOutside:po},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=lt(),{t:n}=bt(),r=Ae("table-filter"),o=t==null?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const a=X(!1),l=X(null),s=O(()=>e.column&&e.column.filters),i=O({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{c.value&&(typeof w<"u"&&w!==null?c.value.splice(0,1,w):c.value.splice(0,1))}}),c=O({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),f=O(()=>e.column?e.column.filterMultiple:!0),d=w=>w.value===i.value,h=()=>{a.value=!1},p=w=>{w.stopPropagation(),a.value=!a.value},g=()=>{a.value=!1},v=()=>{b(c.value),h()},y=()=>{c.value=[],b(c.value),h()},m=w=>{i.value=w,b(typeof w<"u"&&w!==null?c.value:[]),h()},b=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Te(a,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const C=O(()=>{var w,_;return(_=(w=l.value)==null?void 0:w.popperRef)==null?void 0:_.contentRef});return{tooltipVisible:a,multiple:f,filteredValue:c,filterValue:i,filters:s,handleConfirm:v,handleReset:y,handleSelect:m,isActive:d,t:n,ns:r,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:C,tooltip:l}}}),kae={key:0},_ae=["disabled"],$ae=["label","onClick"];function Eae(e,t,n,r,o,a){const l=ot("el-checkbox"),s=ot("el-checkbox-group"),i=ot("el-scrollbar"),c=ot("arrow-up"),f=ot("arrow-down"),d=ot("el-icon"),h=ot("el-tooltip"),p=Is("click-outside");return P(),ke(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:me(()=>[e.multiple?(P(),K("div",kae,[B("div",{class:V(e.ns.e("content"))},[de(i,{"wrap-class":e.ns.e("wrap")},{default:me(()=>[de(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:V(e.ns.e("checkbox-group"))},{default:me(()=>[(P(!0),K(Be,null,nt(e.filters,g=>(P(),ke(l,{key:g.value,label:g.value},{default:me(()=>[kt(Me(g.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),B("div",{class:V(e.ns.e("bottom"))},[B("button",{class:V({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},Me(e.t("el.table.confirmFilter")),11,_ae),B("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},Me(e.t("el.table.resetFilter")),1)],2)])):(P(),K("ul",{key:1,class:V(e.ns.e("list"))},[B("li",{class:V([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=g=>e.handleSelect(null))},Me(e.t("el.table.clearFilter")),3),(P(!0),K(Be,null,nt(e.filters,g=>(P(),K("li",{key:g.value,class:V([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:v=>e.handleSelect(g.value)},Me(g.text),11,$ae))),128))],2))]),default:me(()=>[rt((P(),K("span",{class:V([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...g)=>e.showFilterPanel&&e.showFilterPanel(...g))},[de(d,null,{default:me(()=>[e.column.filterOpened?(P(),ke(c,{key:0})):(P(),ke(f,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Pae=Ne(Sae,[["render",Eae],["__file","filter-panel.vue"]]);function z_(e){const t=lt();Lc(()=>{n.value.addObserver(t)}),at(()=>{r(n.value),o(n.value)}),go(()=>{r(n.value),o(n.value)}),Uo(()=>{n.value.removeObserver(t)});const n=O(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),r=a=>{var l;const s=((l=e.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const i=a.getFlattenColumns(),c={};i.forEach(f=>{c[f.id]=f});for(let f=0,d=s.length;f{var l,s;const i=((l=e.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,d=i.length;f{v.stopPropagation()},a=(v,y)=>{!y.filters&&y.sortable?g(v,y,!1):y.filterable&&!y.sortable&&o(v),r==null||r.emit("header-click",y,v)},l=(v,y)=>{r==null||r.emit("header-contextmenu",y,v)},s=X(null),i=X(!1),c=X({}),f=(v,y)=>{if(yt&&!(y.children&&y.children.length>0)&&s.value&&e.border){i.value=!0;const m=r;t("set-drag-visible",!0);const C=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${y.id}`),_=w.getBoundingClientRect(),$=_.left-C+30;Fr(w,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:_.right-C,startColumnLeft:_.left-C,tableLeft:C};const T=m==null?void 0:m.refs.resizeProxy;T.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const E=x=>{const N=x.clientX-c.value.startMouseLeft,L=c.value.startLeft+N;T.style.left=`${Math.max($,L)}px`},M=()=>{if(i.value){const{startColumnLeft:x,startLeft:N}=c.value,A=Number.parseInt(T.style.left,10)-x;y.width=y.realWidth=A,m==null||m.emit("header-dragend",y.width,N-x,y,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",i.value=!1,s.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Wn(w,"noclick")},0)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",M)}},d=(v,y)=>{if(y.children&&y.children.length>0)return;const m=v.target;if(!dr(m))return;const b=m==null?void 0:m.closest("th");if(!(!y||!y.resizable)&&!i.value&&e.border){const C=b.getBoundingClientRect(),w=document.body.style;C.width>12&&C.right-v.pageX<8?(w.cursor="col-resize",Tr(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=y):i.value||(w.cursor="",Tr(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},h=()=>{yt&&(document.body.style.cursor="")},p=({order:v,sortOrders:y})=>{if(v==="")return y[0];const m=y.indexOf(v||null);return y[m>y.length-2?0:m+1]},g=(v,y,m)=>{var b;v.stopPropagation();const C=y.order===m?null:m||p(y),w=(b=v.target)==null?void 0:b.closest("th");if(w&&Tr(w,"noclick")){Wn(w,"noclick");return}if(!y.sortable)return;const _=e.store.states;let $=_.sortProp.value,T;const E=_.sortingColumn.value;(E!==y||E===y&&E.order===null)&&(E&&(E.order=null),_.sortingColumn.value=y,$=y.property),C?T=y.order=C:T=y.order=null,_.sortProp.value=$,_.sortOrder.value=T,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:l,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:g,handleFilterClick:o}}function xae(e){const t=We(Qr),n=Ae("table");return{getHeaderRowStyle:s=>{const i=t==null?void 0:t.props.headerRowStyle;return typeof i=="function"?i.call(null,{rowIndex:s}):i},getHeaderRowClass:s=>{const i=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?i.push(c):typeof c=="function"&&i.push(c.call(null,{rowIndex:s})),i.join(" ")},getHeaderCellStyle:(s,i,c,f)=>{var d;let h=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof h=="function"&&(h=h.call(null,{rowIndex:s,columnIndex:i,row:c,column:f}));const p=Zv(i,f.fixed,e.store,c);return Rl(p,"left"),Rl(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(s,i,c,f)=>{const d=Qv(n.b(),i,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 p=t==null?void 0:t.props.headerCellClassName;return typeof p=="string"?h.push(p):typeof p=="function"&&h.push(p.call(null,{rowIndex:s,columnIndex:i,row:c,column:f})),h.push(n.e("cell")),h.filter(g=>!!g).join(" ")}}}const H_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,H_(n.children))):t.push(n)}),t},Aae=e=>{let t=1;const n=(a,l)=>{if(l&&(a.level=l.level+1,t{n(i,a),s+=i.colSpan}),a.colSpan=s}else a.colSpan=1};e.forEach(a=>{a.level=1,n(a,void 0)});const r=[];for(let a=0;a{a.children?(a.rowSpan=1,a.children.forEach(l=>l.isSubColumn=!0)):a.rowSpan=t-a.level+1,r[a.level-1].push(a)}),r};function Oae(e){const t=We(Qr),n=O(()=>Aae(e.store.states.originColumns.value));return{isGroup:O(()=>{const a=n.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Mae=ue({name:"ElTableHeader",components:{ElCheckbox:vr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=lt(),r=We(Qr),o=Ae("table"),a=X({}),{onColumnsChange:l,onScrollableChange:s}=z_(r);at(async()=>{await Ge(),await Ge();const{prop:$,order:T}=e.defaultSort;r==null||r.store.commit("sort",{prop:$,order:T,init:!0})});const{handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:p,handleFilterClick:g}=Tae(e,t),{getHeaderRowStyle:v,getHeaderRowClass:y,getHeaderCellStyle:m,getHeaderCellClass:b}=xae(e),{isGroup:C,toggleAllSelection:w,columnRows:_}=Oae(e);return n.state={onColumnsChange:l,onScrollableChange:s},n.filterPanels=a,{ns:o,filterPanels:a,onColumnsChange:l,onScrollableChange:s,columnRows:_,getHeaderRowClass:y,getHeaderRowStyle:v,getHeaderCellClass:b,getHeaderCellStyle:m,handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:h,handleSortClick:p,handleFilterClick:g,isGroup:C,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:a,getHeaderRowStyle:l,handleHeaderClick:s,handleHeaderContextMenu:i,handleMouseDown:c,handleMouseMove:f,handleSortClick:d,handleMouseOut:h,store:p,$parent:g}=this;let v=1;return Ue("thead",{class:{[e.is("group")]:t}},n.map((y,m)=>Ue("tr",{class:a(m),key:m,style:l(m)},y.map((b,C)=>(b.rowSpan>v&&(v=b.rowSpan),Ue("th",{class:o(m,C,y,b),colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:r(m,C,y,b),onClick:w=>s(w,b),onContextmenu:w=>i(w,b),onMousedown:w=>c(w,b),onMousemove:w=>f(w,b),onMouseout:h},[Ue("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:C,store:p,_self:g}):b.label,b.sortable&&Ue("span",{onClick:w=>d(w,b),class:"caret-wrapper"},[Ue("i",{onClick:w=>d(w,b,"ascending"),class:"sort-caret ascending"}),Ue("i",{onClick:w=>d(w,b,"descending"),class:"sort-caret descending"})]),b.filterable&&Ue(Pae,{store:p,placement:b.filterPlacement||"bottom-start",column:b,upDataColumn:(w,_)=>{b[w]=_}})])]))))))}});function Rae(e){const t=We(Qr),n=X(""),r=X(Ue("div")),{nextZIndex:o}=Hl(),a=(g,v,y)=>{var m;const b=t,C=$f(g);let w;const _=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;C&&(w=x1({columns:e.store.states.columns.value},C,_),w&&(b==null||b.emit(`cell-${y}`,v,w,C,g))),b==null||b.emit(`row-${y}`,v,w,g)},l=(g,v)=>{a(g,v,"dblclick")},s=(g,v)=>{e.store.commit("setCurrentRow",v),a(g,v,"click")},i=(g,v)=>{a(g,v,"contextmenu")},c=Ln(g=>{e.store.commit("setHoverRow",g)},30),f=Ln(()=>{e.store.commit("setHoverRow",null)},30),d=g=>{const v=window.getComputedStyle(g,null),y=Number.parseInt(v.paddingLeft,10)||0,m=Number.parseInt(v.paddingRight,10)||0,b=Number.parseInt(v.paddingTop,10)||0,C=Number.parseInt(v.paddingBottom,10)||0;return{left:y,right:m,top:b,bottom:C}};return{handleDoubleClick:l,handleClick:s,handleContextMenu:i,handleMouseEnter:c,handleMouseLeave:f,handleCellMouseEnter:(g,v,y)=>{var m;const b=t,C=$f(g),w=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;if(C){const S=x1({columns:e.store.states.columns.value},C,w),I=b.hoverState={cell:C,column:S,row:v};b==null||b.emit("cell-mouse-enter",I.row,I.column,I.cell,g)}if(!y)return;const _=g.target.querySelector(".cell");if(!(Tr(_,`${w}-tooltip`)&&_.childNodes.length))return;const $=document.createRange();$.setStart(_,0),$.setEnd(_,_.childNodes.length);let T=$.getBoundingClientRect().width,E=$.getBoundingClientRect().height;T-Math.floor(T)<.001&&(T=Math.floor(T)),E-Math.floor(E)<.001&&(E=Math.floor(E));const{top:N,left:L,right:A,bottom:F}=d(_),j=L+A,H=N+F;(T+j>_.offsetWidth||E+H>_.offsetHeight||_.scrollWidth>_.offsetWidth)&&dae(t==null?void 0:t.refs.tableWrapper,C,C.innerText||C.textContent,o,y)},handleCellMouseLeave:g=>{if(!$f(g))return;const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,g)},tooltipContent:n,tooltipTrigger:r}}function Lae(e){const t=We(Qr),n=Ae("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=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&f%2===1&&d.push(n.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 p=t==null?void 0:t.props.cellStyle;let g=p??{};typeof p=="function"&&(g=p.call(null,{rowIndex:c,columnIndex:f,row:d,column:h}));const v=Zv(f,e==null?void 0:e.fixed,e.store);return Rl(v,"left"),Rl(v,"right"),Object.assign({},g,v)},getCellClass:(c,f,d,h,p)=>{const g=Qv(n.b(),f,e==null?void 0:e.fixed,e.store,void 0,p),v=[h.id,h.align,h.className,...g],y=t==null?void 0:t.props.cellClassName;return typeof y=="string"?v.push(y):typeof y=="function"&&v.push(y.call(null,{rowIndex:c,columnIndex:f,row:d,column:h})),v.push(n.e("cell")),v.filter(m=>!!m).join(" ")},getSpan:(c,f,d,h)=>{let p=1,g=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const y=v({row:c,column:f,rowIndex:d,columnIndex:h});Array.isArray(y)?(p=y[0],g=y[1]):typeof y=="object"&&(p=y.rowspan,g=y.colspan)}return{rowspan:p,colspan:g}},getColspanRealWidth:(c,f,d)=>{if(f<1)return c[d].realWidth;const h=c.map(({realWidth:p,width:g})=>p||g).slice(d,d+f);return Number(h.reduce((p,g)=>Number(p)+Number(g),-1))}}}function Nae(e){const t=We(Qr),n=Ae("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:a,handleMouseEnter:l,handleMouseLeave:s,handleCellMouseEnter:i,handleCellMouseLeave:c,tooltipContent:f,tooltipTrigger:d}=Rae(e),{getRowStyle:h,getRowClass:p,getCellStyle:g,getCellClass:v,getSpan:y,getColspanRealWidth:m}=Lae(e),b=O(()=>e.store.states.columns.value.findIndex(({type:T})=>T==="default")),C=(T,E)=>{const M=t.props.rowKey;return M?wn(T,M):E},w=(T,E,M,x=!1)=>{const{tooltipEffect:N,tooltipOptions:L,store:A}=e,{indent:F,columns:j}=A.states,H=p(T,E);let S=!0;return M&&(H.push(n.em("row",`level-${M.level}`)),S=M.display),Ue("tr",{style:[S?null:{display:"none"},h(T,E)],class:H,key:C(T,E),onDblclick:k=>r(k,T),onClick:k=>o(k,T),onContextmenu:k=>a(k,T),onMouseenter:()=>l(E),onMouseleave:s},j.value.map((k,R)=>{const{rowspan:z,colspan:Z}=y(T,k,E,R);if(!z||!Z)return null;const J=Object.assign({},k);J.realWidth=m(j.value,Z,R);const oe={store:e.store,_self:e.context||t,column:J,row:T,$index:E,cellIndex:R,expanded:x};R===b.value&&M&&(oe.treeNode={indent:M.level*F.value,level:M.level},typeof M.expanded=="boolean"&&(oe.treeNode.expanded=M.expanded,"loading"in M&&(oe.treeNode.loading=M.loading),"noLazyChildren"in M&&(oe.treeNode.noLazyChildren=M.noLazyChildren)));const ve=`${E},${R}`,fe=J.columnKey||J.rawColumnKey||"",U=_(R,k,oe),ne=k.showOverflowTooltip&&m2({effect:N},L,k.showOverflowTooltip);return Ue("td",{style:g(E,R,T,k),class:v(E,R,T,k,Z-1),key:`${fe}${ve}`,rowspan:z,colspan:Z,onMouseenter:ie=>i(ie,T,ne),onMouseleave:c},[U])}))},_=(T,E,M)=>E.renderCell(M);return{wrappedRowRender:(T,E)=>{const M=e.store,{isRowExpanded:x,assertRowKey:N}=M,{treeData:L,lazyTreeNodeMap:A,childrenColumnName:F,rowKey:j}=M.states,H=M.states.columns.value;if(H.some(({type:I})=>I==="expand")){const I=x(T),k=w(T,E,void 0,I),R=t.renderExpanded;return I?R?[[k,Ue("tr",{key:`expanded-row__${k.key}`},[Ue("td",{colspan:H.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[R({row:T,$index:E,store:M,expanded:I})])])]]:(console.error("[Element Error]renderExpanded is required."),k):[[k]]}else if(Object.keys(L.value).length){N();const I=wn(T,j.value);let k=L.value[I],R=null;k&&(R={expanded:k.expanded,level:k.level,display:!0},typeof k.lazy=="boolean"&&(typeof k.loaded=="boolean"&&k.loaded&&(R.noLazyChildren=!(k.children&&k.children.length)),R.loading=k.loading));const z=[w(T,E,R)];if(k){let Z=0;const J=(ve,fe)=>{ve&&ve.length&&fe&&ve.forEach(U=>{const ne={display:fe.display&&fe.expanded,level:fe.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ie=wn(U,j.value);if(ie==null)throw new Error("For nested data item, row-key is required.");if(k={...L.value[ie]},k&&(ne.expanded=k.expanded,k.level=k.level||ne.level,k.display=!!(k.expanded&&ne.display),typeof k.lazy=="boolean"&&(typeof k.loaded=="boolean"&&k.loaded&&(ne.noLazyChildren=!(k.children&&k.children.length)),ne.loading=k.loading)),Z++,z.push(w(U,E+Z,ne)),k){const ce=A.value[ie]||U[F.value];J(ce,k)}})};k.display=!0;const oe=A.value[I]||T[F.value];J(oe,k)}return z}else return w(T,E,void 0)},tooltipContent:f,tooltipTrigger:d}}const Iae={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Dae=ue({name:"ElTableBody",props:Iae,setup(e){const t=lt(),n=We(Qr),r=Ae("table"),{wrappedRowRender:o,tooltipContent:a,tooltipTrigger:l}=Nae(e),{onColumnsChange:s,onScrollableChange:i}=z_(n);return Te(e.store.states.hoverRow,(c,f)=>{!e.store.states.isComplex.value||!yt||$l(()=>{const d=t==null?void 0:t.vnode.el,h=Array.from((d==null?void 0:d.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${r.e("row")}`)),p=h[f],g=h[c];p&&Wn(p,"hover-row"),g&&Fr(g,"hover-row")})}),Uo(()=>{var c;(c=Cr)==null||c()}),{ns:r,onColumnsChange:s,onScrollableChange:i,wrappedRowRender:o,tooltipContent:a,tooltipTrigger:l}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ue("tbody",{tabIndex:-1},[n.reduce((r,o)=>r.concat(e(o,r.length)),[])])}});function Bae(){const e=We(Qr),t=e==null?void 0:e.store,n=O(()=>t.states.fixedLeafColumnsLength.value),r=O(()=>t.states.rightFixedColumns.value.length),o=O(()=>t.states.columns.value.length),a=O(()=>t.states.fixedColumns.value.length),l=O(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:a,rightFixedCount:l,columns:t.states.columns}}function Fae(e){const{columns:t}=Bae(),n=Ae("table");return{getCellClasses:(a,l)=>{const s=a[l],i=[n.e("cell"),s.id,s.align,s.labelClassName,...Qv(n.b(),l,s.fixed,e.store)];return s.className&&i.push(s.className),s.children||i.push(n.is("leaf")),i},getCellStyles:(a,l)=>{const s=Zv(l,a.fixed,e.store);return Rl(s,"left"),Rl(s,"right"),s},columns:t}}var Vae=ue({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:n,columns:r}=Fae(e);return{ns:Ae("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o}=this,a=this.store.states.data.value;let l=[];return r?l=r({columns:e,data:a}):e.forEach((s,i)=>{if(i===0){l[i]=o;return}const c=a.map(p=>Number(p[s.property])),f=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const g=`${p}`.split(".")[1];f.push(g?g.length:0)}});const h=Math.max.apply(null,f);d?l[i]="":l[i]=c.reduce((p,g)=>{const v=Number(g);return Number.isNaN(+v)?p:Number.parseFloat((p+g).toFixed(Math.min(h,20)))},0)}),Ue(Ue("tfoot",[Ue("tr",{},[...e.map((s,i)=>Ue("td",{key:i,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,i),style:t(s,i)},[Ue("div",{class:["cell",s.labelClassName]},[l[i]])]))])]))}});function zae(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 Hae(e,t,n,r){const o=X(!1),a=X(null),l=X(!1),s=k=>{l.value=k},i=X({width:null,height:null,headerHeight:null}),c=X(!1),f={display:"inline-block",verticalAlign:"middle"},d=X(),h=X(0),p=X(0),g=X(0),v=X(0),y=X(0);Zn(()=>{t.setHeight(e.height)}),Zn(()=>{t.setMaxHeight(e.maxHeight)}),Te(()=>[e.currentRowKey,n.states.rowKey],([k,R])=>{!u(R)||!u(k)||n.setCurrentRowKey(`${k}`)},{immediate:!0}),Te(()=>e.data,k=>{r.store.commit("setData",k)},{immediate:!0,deep:!0}),Zn(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},b=(k,R)=>{const{pixelX:z,pixelY:Z}=R;Math.abs(z)>=Math.abs(Z)&&(r.refs.bodyWrapper.scrollLeft+=R.pixelX/5)},C=O(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=O(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),_=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};at(async()=>{await Ge(),n.updateColumns(),x(),requestAnimationFrame(_);const k=r.vnode.el,R=r.refs.headerWrapper;e.flexible&&k&&k.parentElement&&(k.parentElement.style.minWidth="0"),i.value={width:d.value=k.offsetWidth,height:k.offsetHeight,headerHeight:e.showHeader&&R?R.offsetHeight:null},n.states.columns.value.forEach(z=>{z.filteredValue&&z.filteredValue.length&&r.store.commit("filterChange",{column:z,values:z.filteredValue,silent:!0})}),r.$ready=!0});const $=(k,R)=>{if(!k)return;const z=Array.from(k.classList).filter(Z=>!Z.startsWith("is-scrolling-"));z.push(t.scrollX.value?R:"is-scrolling-none"),k.className=z.join(" ")},T=k=>{const{tableWrapper:R}=r.refs;$(R,k)},E=k=>{const{tableWrapper:R}=r.refs;return!!(R&&R.classList.contains(k))},M=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const fe="is-scrolling-none";E(fe)||T(fe);return}const k=r.refs.scrollBarRef.wrapRef;if(!k)return;const{scrollLeft:R,offsetWidth:z,scrollWidth:Z}=k,{headerWrapper:J,footerWrapper:oe}=r.refs;J&&(J.scrollLeft=R),oe&&(oe.scrollLeft=R);const ve=Z-z-1;R>=ve?T("is-scrolling-right"):T(R===0?"is-scrolling-left":"is-scrolling-middle")},x=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Ft(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?$n(r.vnode.el,N):Ft(window,"resize",N),$n(r.refs.bodyWrapper,()=>{var k,R;N(),(R=(k=r.refs)==null?void 0:k.scrollBarRef)==null||R.update()}))},N=()=>{var k,R,z,Z;const J=r.vnode.el;if(!r.$ready||!J)return;let oe=!1;const{width:ve,height:fe,headerHeight:U}=i.value,ne=d.value=J.offsetWidth;ve!==ne&&(oe=!0);const ie=J.offsetHeight;(e.height||C.value)&&fe!==ie&&(oe=!0);const ce=e.tableLayout==="fixed"?r.refs.headerWrapper:(k=r.refs.tableHeaderRef)==null?void 0:k.$el;e.showHeader&&(ce==null?void 0:ce.offsetHeight)!==U&&(oe=!0),h.value=((R=r.refs.tableWrapper)==null?void 0:R.scrollHeight)||0,g.value=(ce==null?void 0:ce.scrollHeight)||0,v.value=((z=r.refs.footerWrapper)==null?void 0:z.offsetHeight)||0,y.value=((Z=r.refs.appendWrapper)==null?void 0:Z.offsetHeight)||0,p.value=h.value-g.value-v.value-y.value,oe&&(i.value={width:ne,height:ie,headerHeight:e.showHeader&&(ce==null?void 0:ce.offsetHeight)||0},_())},L=on(),A=O(()=>{const{bodyWidth:k,scrollY:R,gutterWidth:z}=t;return k.value?`${k.value-(R.value?z:0)}px`:""}),F=O(()=>e.maxHeight?"fixed":e.tableLayout),j=O(()=>{if(e.data&&e.data.length)return null;let k="100%";e.height&&p.value&&(k=`${p.value}px`);const R=d.value;return{width:R?`${R}px`:"",height:k}}),H=O(()=>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`}:{}),S=O(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${g.value+v.value}px)`}:{maxHeight:`${e.maxHeight-g.value-v.value}px`}:{});return{isHidden:o,renderExpanded:a,setDragVisible:s,isGroup:c,handleMouseLeave:m,handleHeaderFooterMousewheel:b,tableSize:L,emptyBlockStyle:j,handleFixedMousewheel:(k,R)=>{const z=r.refs.bodyWrapper;if(Math.abs(R.spinY)>0){const Z=z.scrollTop;R.pixelY<0&&Z!==0&&k.preventDefault(),R.pixelY>0&&z.scrollHeight-z.clientHeight>Z&&k.preventDefault(),z.scrollTop+=Math.ceil(R.pixelY/5)}else z.scrollLeft+=Math.ceil(R.pixelX/5)},resizeProxyVisible:l,bodyWidth:A,resizeState:i,doLayout:_,tableBodyStyles:w,tableLayout:F,scrollbarViewStyle:f,tableInnerStyle:H,scrollbarStyle:S}}function Wae(e){const t=X(),n=()=>{const o=e.vnode.el.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},l=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{l.forEach(s=>s())}),t.value.observe(o,a)};at(()=>{n()}),Uo(()=>{var r;(r=t.value)==null||r.disconnect()})}var Kae={data:{type:Array,default:()=>[]},size:gn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function W_(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(o=>o.width===void 0)&&(n=[]);const r=o=>{const a={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?a.style={width:`${o.width}px`}:a.name=o.id,a};return Ue("colgroup",{},n.map(o=>Ue("col",r(o))))}W_.props=["columns","tableLayout"];const jae=()=>{const e=X(),t=(a,l)=>{const s=e.value;s&&s.scrollTo(a,l)},n=(a,l)=>{const s=e.value;s&&Xe(l)&&["Top","Left"].includes(a)&&s[`setScroll${a}`](l)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>n("Top",a),setScrollLeft:a=>n("Left",a)}};let Gae=1;const qae=ue({name:"ElTable",directives:{Mousewheel:AG},components:{TableHeader:Mae,TableBody:Dae,TableFooter:Vae,ElScrollbar:wo,hColgroup:W_},props:Kae,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}=bt(),n=Ae("table"),r=lt();ht(Qr,r);const o=yae(r,e);r.store=o;const a=new wae({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=a;const l=O(()=>(o.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:i,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,sort:v}=zae(o),{isHidden:y,renderExpanded:m,setDragVisible:b,isGroup:C,handleMouseLeave:w,handleHeaderFooterMousewheel:_,tableSize:$,emptyBlockStyle:T,handleFixedMousewheel:E,resizeProxyVisible:M,bodyWidth:x,resizeState:N,doLayout:L,tableBodyStyles:A,tableLayout:F,scrollbarViewStyle:j,tableInnerStyle:H,scrollbarStyle:S}=Hae(e,a,o,r),{scrollBarRef:I,scrollTo:k,setScrollLeft:R,setScrollTop:z}=jae(),Z=Ln(L,50),J=`${n.namespace.value}-table_${Gae++}`;r.tableId=J,r.state={isGroup:C,resizeState:N,doLayout:L,debouncedUpdateLayout:Z};const oe=O(()=>e.sumText||t("el.table.sumText")),ve=O(()=>e.emptyText||t("el.table.emptyText"));return Wae(r),{ns:n,layout:a,store:o,handleHeaderFooterMousewheel:_,handleMouseLeave:w,tableId:J,tableSize:$,isHidden:y,isEmpty:l,renderExpanded:m,resizeProxyVisible:M,resizeState:N,isGroup:C,bodyWidth:x,tableBodyStyles:A,emptyBlockStyle:T,debouncedUpdateLayout:Z,handleFixedMousewheel:E,setCurrentRow:s,getSelectionRows:i,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,doLayout:L,sort:v,t,setDragVisible:b,context:r,computedSumText:oe,computedEmptyText:ve,tableLayout:F,scrollbarViewStyle:j,tableInnerStyle:H,scrollbarStyle:S,scrollBarRef:I,scrollTo:k,setScrollLeft:R,setScrollTop:z}}}),Uae=["data-prefix"],Yae={ref:"hiddenColumns",class:"hidden-columns"};function Xae(e,t,n,r,o,a){const l=ot("hColgroup"),s=ot("table-header"),i=ot("table-body"),c=ot("table-footer"),f=ot("el-scrollbar"),d=Is("mousewheel");return P(),K("div",{ref:"tableWrapper",class:V([{[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:Fe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[B("div",{class:V(e.ns.e("inner-wrapper")),style:Fe(e.tableInnerStyle)},[B("div",Yae,[_e(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?rt((P(),K("div",{key:0,ref:"headerWrapper",class:V(e.ns.e("header-wrapper"))},[B("table",{ref:"tableHeader",class:V(e.ns.e("header")),style:Fe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[de(l,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),de(s,{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]]):be("v-if",!0),B("div",{ref:"bodyWrapper",class:V(e.ns.e("body-wrapper"))},[de(f,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:me(()=>[B("table",{ref:"tableBody",class:V(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Fe({width:e.bodyWidth,tableLayout:e.tableLayout})},[de(l,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(P(),ke(s,{key:0,ref:"tableHeaderRef",class:V(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):be("v-if",!0),de(i,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(P(),ke(c,{key:1,class:V(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):be("v-if",!0)],6),e.isEmpty?(P(),K("div",{key:0,ref:"emptyBlock",style:Fe(e.emptyBlockStyle),class:V(e.ns.e("empty-block"))},[B("span",{class:V(e.ns.e("empty-text"))},[_e(e.$slots,"empty",{},()=>[kt(Me(e.computedEmptyText),1)])],2)],6)):be("v-if",!0),e.$slots.append?(P(),K("div",{key:1,ref:"appendWrapper",class:V(e.ns.e("append-wrapper"))},[_e(e.$slots,"append")],2)):be("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?rt((P(),K("div",{key:1,ref:"footerWrapper",class:V(e.ns.e("footer-wrapper"))},[B("table",{class:V(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Fe(e.tableBodyStyles)},[de(l,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),de(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[St,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):be("v-if",!0),e.border||e.isGroup?(P(),K("div",{key:2,class:V(e.ns.e("border-left-patch"))},null,2)):be("v-if",!0)],6),rt(B("div",{ref:"resizeProxy",class:V(e.ns.e("column-resize-proxy"))},null,2),[[St,e.resizeProxyVisible]])],46,Uae)}var Qae=Ne(qae,[["render",Xae],["__file","table.vue"]]);const Zae={selection:"table-column--selection",expand:"table__expand-column"},Jae={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:""}},ele=e=>Zae[e]||"",tle={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Ue(vr,{disabled:n(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Ue(vr,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Ue("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,o=[r.e("expand-icon")];return n&&o.push(r.em("expand-icon","expanded")),Ue("div",{class:o,onClick:function(l){l.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ue(je,null,{default:()=>[Ue(An)]})]})},sortable:!1,resizable:!1}};function nle({row:e,column:t,$index:n}){var r;const o=t.property,a=o&&Pu(e,o).value;return t&&t.formatter?t.formatter(e,t,a,n):((r=a==null?void 0:a.toString)==null?void 0:r.call(a))||""}function rle({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[Ue("span",{class:o.e("placeholder")})]:null;const a=[],l=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&a.push(Ue("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let i=An;t.loading&&(i=Qo),a.push(Ue("div",{class:s,onClick:l},{default:()=>[Ue(je,{class:{[o.is("loading")]:t.loading}},{default:()=>[Ue(i)]})]}))}else a.push(Ue("span",{class:o.e("placeholder")}));return a}function M1(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function ole(e,t){const n=lt();return{registerComplexWatchers:()=>{const a=["fixed"],l={realWidth:"width",realMinWidth:"minWidth"},s=M1(a,l);Object.keys(s).forEach(i=>{const c=l[i];gt(t,c)&&Te(()=>t[c],f=>{let d=f;c==="width"&&i==="realWidth"&&(d=Xv(f)),c==="minWidth"&&i==="realMinWidth"&&(d=I_(f)),n.columnConfig.value[c]=d,n.columnConfig.value[i]=d;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],l={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=M1(a,l);Object.keys(s).forEach(i=>{const c=l[i];gt(t,c)&&Te(()=>t[c],f=>{n.columnConfig.value[i]=f})})}}}function ale(e,t,n){const r=lt(),o=X(""),a=X(!1),l=X(),s=X(),i=Ae("table");Zn(()=>{l.value=e.align?`is-${e.align}`:null,l.value}),Zn(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:l.value,s.value});const c=O(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),f=O(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:_}=w.states,$=_.value;return $&&Object.keys($).length>0}),d=X(Xv(e.width)),h=X(I_(e.minWidth)),p=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),g=w=>{const _=w.type,$=tle[_]||{};Object.keys($).forEach(E=>{const M=$[E];E!=="className"&&M!==void 0&&(w[E]=M)});const T=ele(_);if(T){const E=`${u(i.namespace)}-${T}`;w.className=w.className?`${w.className} ${E}`:E}return w},v=w=>{Array.isArray(w)?w.forEach($=>_($)):_(w);function _($){var T;((T=$==null?void 0:$.type)==null?void 0:T.name)==="ElTableColumn"&&($.vParent=r)}};return{columnId:o,realAlign:l,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=$=>(r.columnConfig.value.label,_e(t,"header",$,()=>[w.label])));let _=w.renderCell;return w.type==="expand"?(w.renderCell=$=>Ue("div",{class:"cell"},[_($)]),n.value.renderExpanded=$=>t.default?t.default($):t.default):(_=_||nle,w.renderCell=$=>{let T=null;if(t.default){const A=t.default($);T=A.some(F=>F.type!==xn)?A:_($)}else T=_($);const{columns:E}=n.value.store.states,M=E.value.findIndex(A=>A.type==="default"),x=f.value&&$.cellIndex===M,N=rle($,x),L={class:"cell",style:{}};return w.showOverflowTooltip&&(L.class=`${L.class} ${u(i.namespace)}-tooltip`,L.style={width:`${($.column.realWidth||Number($.column.width))-1}px`}),v(T),Ue("div",L,[N,T])}),w},getPropsData:(...w)=>w.reduce((_,$)=>(Array.isArray($)&&$.forEach(T=>{_[T]=e[T]}),_),{}),getColumnElIndex:(w,_)=>Array.prototype.indexOf.call(w,_),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var lle={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},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 sle=1;var K_=ue({name:"ElTableColumn",components:{ElCheckbox:vr},props:lle,setup(e,{slots:t}){const n=lt(),r=X({}),o=O(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:a,registerComplexWatchers:l}=ole(o,e),{columnId:s,isSubColumn:i,realHeaderAlign:c,columnOrTableParent:f,setColumnWidth:d,setColumnForcedProps:h,setColumnRenders:p,getPropsData:g,getColumnElIndex:v,realAlign:y,updateColumnOrder:m}=ale(e,t,o),b=f.value;s.value=`${b.tableId||b.columnId}_column_${sle++}`,Lc(()=>{i.value=o.value!==b;const C=e.type||"default",w=e.sortable===""?!0:e.sortable,_=tn(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,$={...Jae[C],id:s.value,type:C,property:e.prop||e.property,align:y,headerAlign:c,showOverflowTooltip:_,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let N=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);N=sae($,N),N=uae(p,d,h)(N),r.value=N,a(),l()}),at(()=>{var C;const w=f.value,_=i.value?w.vnode.el.children:(C=w.refs.hiddenColumns)==null?void 0:C.children,$=()=>v(_||[],n.vnode.el);r.value.getColumnIndex=$,$()>-1&&o.value.store.commit("insertColumn",r.value,i.value?w.columnConfig.value:null,m)}),Dt(()=>{o.value.store.commit("removeColumn",r.value,i.value?b.columnConfig.value:null,m)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const l of r)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?o.push(l):l.type===Be&&Array.isArray(l.children)&&l.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!tt(s==null?void 0:s.children)&&o.push(s)});return Ue("div",o)}catch{return Ue("div",[])}}});const ile=it(Qae,{TableColumn:K_}),ule=qt(K_);var fi=(e=>(e.ASC="asc",e.DESC="desc",e))(fi||{}),hi=(e=>(e.CENTER="center",e.RIGHT="right",e))(hi||{}),j_=(e=>(e.LEFT="left",e.RIGHT="right",e))(j_||{});const Kh={asc:"desc",desc:"asc"},pi=Symbol("placeholder"),cle=(e,t,n)=>{var r;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const a={...(r=e.style)!=null?r:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(a.maxWidth=e.maxWidth),e.minWidth&&(a.minWidth=e.minWidth)),a};function dle(e,t,n){const r=O(()=>u(t).filter(v=>!v.hidden)),o=O(()=>u(r).filter(v=>v.fixed==="left"||v.fixed===!0)),a=O(()=>u(r).filter(v=>v.fixed==="right")),l=O(()=>u(r).filter(v=>!v.fixed)),s=O(()=>{const v=[];return u(o).forEach(y=>{v.push({...y,placeholderSign:pi})}),u(l).forEach(y=>{v.push(y)}),u(a).forEach(y=>{v.push({...y,placeholderSign:pi})}),v}),i=O(()=>u(o).length||u(a).length),c=O(()=>u(t).reduce((y,m)=>(y[m.key]=cle(m,u(n),e.fixed),y),{})),f=O(()=>u(r).reduce((v,y)=>v+y.width,0)),d=v=>u(t).find(y=>y.key===v),h=v=>u(c)[v],p=(v,y)=>{v.width=y};function g(v){var y;const{key:m}=v.currentTarget.dataset;if(!m)return;const{sortState:b,sortBy:C}=e;let w=fi.ASC;ct(b)?w=Kh[b[m]]:w=Kh[C.order],(y=e.onColumnSort)==null||y.call(e,{column:d(m),key:m,order:w})}return{columns:t,columnsStyles:c,columnsTotalWidth:f,fixedColumnsOnLeft:o,fixedColumnsOnRight:a,hasFixedColumns:i,mainColumns:s,normalColumns:l,visibleColumns:r,getColumn:d,getColumnStyle:h,updateColumnWidth:p,onColumnSorted:g}}const fle=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const a=X({scrollLeft:0,scrollTop:0});function l(p){var g,v,y;const{scrollTop:m}=p;(g=t.value)==null||g.scrollTo(p),(v=n.value)==null||v.scrollToTop(m),(y=r.value)==null||y.scrollToTop(m)}function s(p){a.value=p,l(p)}function i(p){a.value.scrollTop=p,l(u(a))}function c(p){var g,v;a.value.scrollLeft=p,(v=(g=t.value)==null?void 0:g.scrollTo)==null||v.call(g,u(a))}function f(p){var g;s(p),(g=e.onScroll)==null||g.call(e,p)}function d({scrollTop:p}){const{scrollTop:g}=u(a);p!==g&&i(p)}function h(p,g="auto"){var v;(v=t.value)==null||v.scrollToRow(p,g)}return Te(()=>u(a).scrollTop,(p,g)=>{p>g&&o()}),{scrollPos:a,scrollTo:s,scrollToLeft:c,scrollToTop:i,scrollToRow:h,onScroll:f,onVerticalScroll:d}},hle=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const o=lt(),{emit:a}=o,l=Mt(!1),s=Mt(null),i=X(e.defaultExpandedRowKeys||[]),c=X(-1),f=Mt(null),d=X({}),h=X({}),p=Mt({}),g=Mt({}),v=Mt({}),y=O(()=>Xe(e.estimatedRowHeight));function m(E){var M;(M=e.onRowsRendered)==null||M.call(e,E),E.rowCacheEnd>u(c)&&(c.value=E.rowCacheEnd)}function b({hovered:E,rowKey:M}){s.value=E?M:null}function C({expanded:E,rowData:M,rowIndex:x,rowKey:N}){var L,A;const F=[...u(i)],j=F.indexOf(N);E?j===-1&&F.push(N):j>-1&&F.splice(j,1),i.value=F,a("update:expandedRowKeys",F),(L=e.onRowExpand)==null||L.call(e,{expanded:E,rowData:M,rowIndex:x,rowKey:N}),(A=e.onExpandedRowsChange)==null||A.call(e,F)}const w=Ln(()=>{var E,M,x,N;l.value=!0,d.value={...u(d),...u(h)},_(u(f),!1),h.value={},f.value=null,(E=t.value)==null||E.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(x=r.value)==null||x.forceUpdate(),(N=o.proxy)==null||N.$forceUpdate(),l.value=!1},0);function _(E,M=!1){u(y)&&[t,n,r].forEach(x=>{const N=u(x);N&&N.resetAfterRowIndex(E,M)})}function $(E,M,x){const N=u(f);(N===null||N>x)&&(f.value=x),h.value[E]=M}function T({rowKey:E,height:M,rowIndex:x},N){N?N===j_.RIGHT?v.value[E]=M:p.value[E]=M:g.value[E]=M;const L=Math.max(...[p,v,g].map(A=>A.value[E]||0));u(d)[E]!==L&&($(E,L,x),w())}return{hoveringRowKey:s,expandedRowKeys:i,lastRenderedRowIndex:c,isDynamic:y,isResetting:l,rowHeights:d,resetAfterIndex:_,onRowExpanded:C,onRowHovered:b,onRowsRendered:m,onRowHeightChange:T}},ple=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=X({}),a=O(()=>{const s={},{data:i,rowKey:c}=e,f=u(t);if(!f||!f.length)return i;const d=[],h=new Set;f.forEach(g=>h.add(g));let p=i.slice();for(p.forEach(g=>s[g[c]]=0);p.length>0;){const g=p.shift();d.push(g),h.has(g[c])&&Array.isArray(g.children)&&g.children.length>0&&(p=[...g.children,...p],g.children.forEach(v=>s[v[c]]=s[g[c]]+1))}return o.value=s,d}),l=O(()=>{const{data:s,expandColumnKey:i}=e;return i?u(a):s});return Te(l,(s,i)=>{s!==i&&(n.value=-1,r(0,!0))}),{data:l,depthMap:o}},vle=(e,t)=>e+t,Hu=e=>Ke(e)?e.reduce(vle,0):e,La=(e,t,n={})=>Ze(e)?e(t):e??n,No=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Xt(e[t])}),e),G_=e=>Vt(e)?t=>Ue(e,t):e,gle=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const a=O(()=>{const{fixed:C,width:w,vScrollbarSize:_}=e,$=w-_;return C?Math.max(Math.round(u(t)),$):$}),l=O(()=>u(a)+(e.fixed?e.vScrollbarSize:0)),s=O(()=>{const{height:C=0,maxHeight:w=0,footerHeight:_,hScrollbarSize:$}=e;if(w>0){const T=u(g),E=u(i),x=u(p)+T+E+$;return Math.min(x,w-_)}return C-_}),i=O(()=>{const{rowHeight:C,estimatedRowHeight:w}=e,_=u(n);return Xe(w)?_.length*w:_.length*C}),c=O(()=>{const{maxHeight:C}=e,w=u(s);if(Xe(C)&&C>0)return w;const _=u(i)+u(p)+u(g);return Math.min(w,_)}),f=C=>C.width,d=O(()=>Hu(u(r).map(f))),h=O(()=>Hu(u(o).map(f))),p=O(()=>Hu(e.headerHeight)),g=O(()=>{var C;return(((C=e.fixedData)==null?void 0:C.length)||0)*e.rowHeight}),v=O(()=>u(s)-u(p)-u(g)),y=O(()=>{const{style:C={},height:w,width:_}=e;return No({...C,height:w,width:_})}),m=O(()=>No({height:e.footerHeight})),b=O(()=>({top:Xt(u(p)),bottom:Xt(e.footerHeight),width:Xt(e.width)}));return{bodyWidth:a,fixedTableHeight:c,mainTableHeight:s,leftTableWidth:d,rightTableWidth:h,headerWidth:l,rowsHeight:i,windowHeight:v,footerHeight:m,emptyStyle:b,rootStyle:y,headerHeight:p}},mle=e=>{const t=X(),n=X(0),r=X(0);let o;return at(()=>{o=$n(t,([a])=>{const{width:l,height:s}=a.contentRect,{paddingLeft:i,paddingRight:c,paddingTop:f,paddingBottom:d}=getComputedStyle(a.target),h=Number.parseInt(i)||0,p=Number.parseInt(c)||0,g=Number.parseInt(f)||0,v=Number.parseInt(d)||0;n.value=l-h-p,r.value=s-g-v}).stop}),Dt(()=>{o==null||o()}),Te([n,r],([a,l])=>{var s;(s=e.onResize)==null||s.call(e,{width:a,height:l})}),{sizer:t,width:n,height:r}};function yle(e){const t=X(),n=X(),r=X(),{columns:o,columnsStyles:a,columnsTotalWidth:l,fixedColumnsOnLeft:s,fixedColumnsOnRight:i,hasFixedColumns:c,mainColumns:f,onColumnSorted:d}=dle(e,Wt(e,"columns"),Wt(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:g,scrollToRow:v,onScroll:y,onVerticalScroll:m,scrollPos:b}=fle(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:D}),{expandedRowKeys:C,hoveringRowKey:w,lastRenderedRowIndex:_,isDynamic:$,isResetting:T,rowHeights:E,resetAfterIndex:M,onRowExpanded:x,onRowHeightChange:N,onRowHovered:L,onRowsRendered:A}=hle(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:F,depthMap:j}=ple(e,{expandedRowKeys:C,lastRenderedRowIndex:_,resetAfterIndex:M}),{bodyWidth:H,fixedTableHeight:S,mainTableHeight:I,leftTableWidth:k,rightTableWidth:R,headerWidth:z,rowsHeight:Z,windowHeight:J,footerHeight:oe,emptyStyle:ve,rootStyle:fe,headerHeight:U}=gle(e,{columnsTotalWidth:l,data:F,fixedColumnsOnLeft:s,fixedColumnsOnRight:i}),ne=Mt(!1),ie=X(),ce=O(()=>{const W=u(F).length===0;return Ke(e.fixedData)?e.fixedData.length===0&&W:W});function te(W){const{estimatedRowHeight:Y,rowHeight:re,rowKey:se}=e;return Y?u(E)[u(F)[W][se]]||Y:re}function D(){const{onEndReached:W}=e;if(!W)return;const{scrollTop:Y}=u(b),re=u(Z),se=u(J),q=re-(Y+se)+e.hScrollbarSize;u(_)>=0&&re===Y+u(I)-u(U)&&W(q)}return Te(()=>e.expandedRowKeys,W=>C.value=W,{deep:!0}),{columns:o,containerRef:ie,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:$,isResetting:T,isScrolling:ne,hoveringRowKey:w,hasFixedColumns:c,columnsStyles:a,columnsTotalWidth:l,data:F,expandedRowKeys:C,depthMap:j,fixedColumnsOnLeft:s,fixedColumnsOnRight:i,mainColumns:f,bodyWidth:H,emptyStyle:ve,rootStyle:fe,headerWidth:z,footerHeight:oe,mainTableHeight:I,fixedTableHeight:S,leftTableWidth:k,rightTableWidth:R,showEmpty:ce,getRowHeight:te,onColumnSorted:d,onRowHovered:L,onRowExpanded:x,onRowsRendered:A,onRowHeightChange:N,scrollTo:h,scrollToLeft:p,scrollToTop:g,scrollToRow:v,onScroll:y,onVerticalScroll:m}}const Jv=Symbol("tableV2"),q_=String,Ri={type:we(Array),required:!0},eg={type:we(Array)},U_={...eg,required:!0},ble=String,R1={type:we(Array),default:()=>Ht([])},ha={type:Number,required:!0},Y_={type:we([String,Number,Symbol]),default:"id"},L1={type:we(Object)},wa=Le({class:String,columns:Ri,columnsStyles:{type:we(Object),required:!0},depth:Number,expandColumnKey:ble,estimatedRowHeight:{...Ea.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:we(Function)},onRowHover:{type:we(Function)},onRowHeightChange:{type:we(Function)},rowData:{type:we(Object),required:!0},rowEventHandlers:{type:we(Object)},rowIndex:{type:Number,required:!0},rowKey:Y_,style:{type:we(Object)}}),Ef={type:Number,required:!0},tg=Le({class:String,columns:Ri,fixedHeaderData:{type:we(Array)},headerData:{type:we(Array),required:!0},headerHeight:{type:we([Number,Array]),default:50},rowWidth:Ef,rowHeight:{type:Number,default:50},height:Ef,width:Ef}),Wu=Le({columns:Ri,data:U_,fixedData:eg,estimatedRowHeight:wa.estimatedRowHeight,width:ha,height:ha,headerWidth:ha,headerHeight:tg.headerHeight,bodyWidth:ha,rowHeight:ha,cache:y_.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Ea.scrollbarAlwaysOn,scrollbarStartGap:Ea.scrollbarStartGap,scrollbarEndGap:Ea.scrollbarEndGap,class:q_,style:L1,containerStyle:L1,getRowHeight:{type:we(Function),required:!0},rowKey:wa.rowKey,onRowsRendered:{type:we(Function)},onScroll:{type:we(Function)}}),wle=Le({cache:Wu.cache,estimatedRowHeight:wa.estimatedRowHeight,rowKey:Y_,headerClass:{type:we([String,Function])},headerProps:{type:we([Object,Function])},headerCellProps:{type:we([Object,Function])},headerHeight:tg.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:we([String,Function])},rowProps:{type:we([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:we([Object,Function])},columns:Ri,data:U_,dataGetter:{type:we(Function)},fixedData:eg,expandColumnKey:wa.expandColumnKey,expandedRowKeys:R1,defaultExpandedRowKeys:R1,class:q_,fixed:Boolean,style:{type:we(Object)},width:ha,height:ha,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Ea.hScrollbarSize,vScrollbarSize:Ea.vScrollbarSize,scrollbarAlwaysOn:C_.alwaysOn,sortBy:{type:we(Object),default:()=>({})},sortState:{type:we(Object),default:void 0},onColumnSort:{type:we(Function)},onExpandedRowsChange:{type:we(Function)},onEndReached:{type:we(Function)},onRowExpand:wa.onRowExpand,onScroll:Wu.onScroll,onRowsRendered:Wu.onRowsRendered,rowEventHandlers:wa.rowEventHandlers}),ng=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,a=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"",l=_e(t,"default",e,()=>[a]);return de("div",{class:e.class,title:a,style:o},[l])};ng.displayName="ElTableV2Cell";ng.inheritAttrs=!1;const rg=(e,{slots:t})=>_e(t,"default",e,()=>{var n,r;return[de("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});rg.displayName="ElTableV2HeaderCell";rg.inheritAttrs=!1;const Cle=Le({class:String,columns:Ri,columnsStyles:{type:we(Object),required:!0},headerIndex:Number,style:{type:we(Object)}}),Sle=ue({name:"ElTableV2HeaderRow",props:Cle,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:a}=e;let l=n.map((s,i)=>t.cell({columns:n,column:s,columnIndex:i,headerIndex:o,style:r[s.key]}));return t.header&&(l=t.header({cells:l.map(s=>Ke(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),de("div",{class:e.class,style:a,role:"row"},[l])}}}),kle="ElTableV2Header",_le=ue({name:kle,props:tg,setup(e,{slots:t,expose:n}){const r=Ae("table-v2"),o=X(),a=O(()=>No({width:e.width,height:e.height})),l=O(()=>No({width:e.rowWidth,height:e.height})),s=O(()=>Ma(u(e.headerHeight))),i=d=>{const h=u(o);Ge(()=>{h!=null&&h.scroll&&h.scroll({left:d})})},c=()=>{const d=r.e("fixed-header-row"),{columns:h,fixedHeaderData:p,rowHeight:g}=e;return p==null?void 0:p.map((v,y)=>{var m;const b=No({height:g,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:d,columns:h,rowData:v,rowIndex:-(y+1),style:b})})},f=()=>{const d=r.e("dynamic-header-row"),{columns:h}=e;return u(s).map((p,g)=>{var v;const y=No({width:"100%",height:p});return(v=t.dynamic)==null?void 0:v.call(t,{class:d,columns:h,headerIndex:g,style:y})})};return n({scrollToLeft:i}),()=>{if(!(e.height<=0))return de("div",{ref:o,class:e.class,style:u(a),role:"rowgroup"},[de("div",{style:u(l),class:r.e("header")},[f(),c()])])}}}),$le=e=>{const{isScrolling:t}=We(Jv),n=X(!1),r=X(),o=O(()=>Xe(e.estimatedRowHeight)&&e.rowIndex>=0),a=(i=!1)=>{const c=u(r);if(!c)return;const{columns:f,onRowHeightChange:d,rowKey:h,rowIndex:p,style:g}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Ge(()=>{if(i||v!==Number.parseInt(g.height)){const y=f[0],m=(y==null?void 0:y.placeholderSign)===pi;d==null||d({rowKey:h,height:v,rowIndex:p},y&&!m&&y.fixed)}})},l=O(()=>{const{rowData:i,rowIndex:c,rowKey:f,onRowHover:d}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([g,v])=>{Ze(v)&&(p[g]=y=>{v({event:y,rowData:i,rowIndex:c,rowKey:f})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:g,hovered:v})=>{const y=p[g];p[g]=m=>{d({event:m,hovered:v,rowData:i,rowIndex:c,rowKey:f}),y==null||y(m)}}),p}),s=i=>{const{onRowExpand:c,rowData:f,rowIndex:d,rowKey:h}=e;c==null||c({expanded:i,rowData:f,rowIndex:d,rowKey:h})};return at(()=>{u(o)&&a(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:l,onExpand:s}},Ele="ElTableV2TableRow",Ple=ue({name:Ele,props:wa,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:a,measurable:l,measured:s,rowRef:i,onExpand:c}=$le(e);return t({onExpand:c}),()=>{const{columns:f,columnsStyles:d,expandColumnKey:h,depth:p,rowData:g,rowIndex:v,style:y}=e;let m=f.map((b,C)=>{const w=Ke(g.children)&&g.children.length>0&&b.key===h;return n.cell({column:b,columns:f,columnIndex:C,depth:p,style:d[b.key],rowData:g,rowIndex:v,isScrolling:u(a),expandIconProps:w?{rowData:g,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(m=n.row({cells:m.map(b=>Ke(b)&&b.length===1?b[0]:b),style:y,columns:f,depth:p,rowData:g,rowIndex:v,isScrolling:u(a)})),u(l)){const{height:b,...C}=y||{},w=u(s);return de("div",ft({ref:i,class:e.class,style:w?y:C,role:"row"},r,u(o)),[m])}return de("div",ft(r,{ref:i,class:e.class,style:y,role:"row"},u(o)),[m])}}}),Tle=e=>{const{sortOrder:t}=e;return de(je,{size:14,class:e.class},{default:()=>[t===fi.ASC?de(aH,null,null):de(rH,null,null)]})},xle=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:a}=e,l={onClick:n?()=>r(!t):void 0,class:e.class};return de(je,ft(l,{size:a,style:o}),{default:()=>[de(An,null,null)]})},Ale="ElTableV2Grid",Ole=e=>{const t=X(),n=X(),r=O(()=>{const{data:v,rowHeight:y,estimatedRowHeight:m}=e;if(!m)return v.length*y}),o=O(()=>{const{fixedData:v,rowHeight:y}=e;return((v==null?void 0:v.length)||0)*y}),a=O(()=>Hu(e.headerHeight)),l=O(()=>{const{height:v}=e;return Math.max(0,v-u(a)-u(o))}),s=O(()=>u(a)+u(o)>0),i=({data:v,rowIndex:y})=>v[y][e.rowKey];function c({rowCacheStart:v,rowCacheEnd:y,rowVisibleStart:m,rowVisibleEnd:b}){var C;(C=e.onRowsRendered)==null||C.call(e,{rowCacheStart:v,rowCacheEnd:y,rowVisibleStart:m,rowVisibleEnd:b})}function f(v,y){var m;(m=n.value)==null||m.resetAfterRowIndex(v,y)}function d(v,y){const m=u(t),b=u(n);!m||!b||(ct(v)?(m.scrollToLeft(v.scrollLeft),b.scrollTo(v)):(m.scrollToLeft(v),b.scrollTo({scrollLeft:v,scrollTop:y})))}function h(v){var y;(y=u(n))==null||y.scrollTo({scrollTop:v})}function p(v,y){var m;(m=u(n))==null||m.scrollToItem(v,1,y)}function g(){var v,y;(v=u(n))==null||v.$forceUpdate(),(y=u(t))==null||y.$forceUpdate()}return{bodyRef:n,forceUpdate:g,fixedRowHeight:o,gridHeight:l,hasHeader:s,headerHeight:a,headerRef:t,totalHeight:r,itemKey:i,onItemRendered:c,resetAfterRowIndex:f,scrollTo:d,scrollToTop:h,scrollToRow:p}},og=ue({name:Ale,props:Wu,setup(e,{slots:t,expose:n}){const{ns:r}=We(Jv),{bodyRef:o,fixedRowHeight:a,gridHeight:l,hasHeader:s,headerRef:i,headerHeight:c,totalHeight:f,forceUpdate:d,itemKey:h,onItemRendered:p,resetAfterRowIndex:g,scrollTo:v,scrollToTop:y,scrollToRow:m}=Ole(e);n({forceUpdate:d,totalHeight:f,scrollTo:v,scrollToTop:y,scrollToRow:m,resetAfterRowIndex:g});const b=()=>e.bodyWidth;return()=>{const{cache:C,columns:w,data:_,fixedData:$,useIsScrolling:T,scrollbarAlwaysOn:E,scrollbarEndGap:M,scrollbarStartGap:x,style:N,rowHeight:L,bodyWidth:A,estimatedRowHeight:F,headerWidth:j,height:H,width:S,getRowHeight:I,onScroll:k}=e,R=Xe(F),z=R?ire:ore,Z=u(c);return de("div",{role:"table",class:[r.e("table"),e.class],style:N},[de(z,{ref:o,data:_,useIsScrolling:T,itemKey:h,columnCache:0,columnWidth:R?b:A,totalColumn:1,totalRow:_.length,rowCache:C,rowHeight:R?I:L,width:S,height:u(l),class:r.e("body"),role:"rowgroup",scrollbarStartGap:x,scrollbarEndGap:M,scrollbarAlwaysOn:E,onScroll:k,onItemRendered:p,perfMode:!1},{default:J=>{var oe;const ve=_[J.rowIndex];return(oe=t.row)==null?void 0:oe.call(t,{...J,columns:w,rowData:ve})}}),u(s)&&de(_le,{ref:i,class:r.e("header-wrapper"),columns:w,headerData:_,headerHeight:e.headerHeight,fixedHeaderData:$,rowWidth:j,rowHeight:L,width:S,height:Math.min(Z+u(a),H)},{dynamic:t.header,fixed:t.row})])}}});function Mle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Rle=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return de(og,ft({ref:n},r),Mle(t)?t:{default:()=>[t]})};function Lle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Nle=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return de(og,ft({ref:n},r),Lle(t)?t:{default:()=>[t]})};function Ile(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Dle=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return de(og,ft({ref:n},r),Ile(t)?t:{default:()=>[t]})};function Ble(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Fle=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:a,expandedRowKeys:l,estimatedRowHeight:s,hasFixedColumns:i,hoveringRowKey:c,rowData:f,rowIndex:d,style:h,isScrolling:p,rowProps:g,rowClass:v,rowKey:y,rowEventHandlers:m,ns:b,onRowHovered:C,onRowExpanded:w}=e,_=La(v,{columns:n,rowData:f,rowIndex:d},""),$=La(g,{columns:n,rowData:f,rowIndex:d}),T=f[y],E=o[T]||0,M=!!a,x=d<0,N=[b.e("row"),_,{[b.e(`row-depth-${E}`)]:M&&d>=0,[b.is("expanded")]:M&&l.includes(T),[b.is("hovered")]:!p&&T===c,[b.is("fixed")]:!E&&x,[b.is("customized")]:!!t.row}],L=i?C:void 0,A={...$,columns:n,columnsStyles:r,class:N,depth:E,expandColumnKey:a,estimatedRowHeight:x?void 0:s,isScrolling:p,rowIndex:d,rowData:f,rowKey:T,rowEventHandlers:m,style:h};return de(Ple,ft(A,{onRowHover:L,onRowExpand:w}),Ble(t)?t:{default:()=>[t]})},jh=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:a,rowData:l,rowIndex:s,style:i,expandedRowKeys:c,ns:f,cellProps:d,expandColumnKey:h,indentSize:p,iconSize:g,rowKey:v},{slots:y})=>{const m=No(i);if(t.placeholderSign===pi)return de("div",{class:f.em("row-cell","placeholder"),style:m},null);const{cellRenderer:b,dataKey:C,dataGetter:w}=t,_=Ze(w)?w({columns:e,column:t,columnIndex:n,rowData:l,rowIndex:s}):zt(l,C??""),$=La(d,{cellData:_,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:l}),T={class:f.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:_,isScrolling:a,rowData:l,rowIndex:s},E=G_(b),M=E?E(T):_e(y,"default",T,()=>[de(ng,T,null)]),x=[f.e("row-cell"),t.class,t.align===hi.CENTER&&f.is("align-center"),t.align===hi.RIGHT&&f.is("align-right")],N=s>=0&&h&&t.key===h,L=s>=0&&c.includes(l[v]);let A;const F=`margin-inline-start: ${r*p}px;`;return N&&(ct(o)?A=de(xle,ft(o,{class:[f.e("expand-icon"),f.is("expanded",L)],size:g,expanded:L,style:F,expandable:!0}),null):A=de("div",{style:[F,`width: ${g}px; height: ${g}px;`].join(" ")},null)),de("div",ft({class:x,style:m},$,{role:"cell"}),[A,M])};jh.inheritAttrs=!1;function Vle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const zle=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:a,ns:l},{slots:s})=>{const i={columns:e,headerIndex:n},c=[l.e("header-row"),La(o,i,""),{[l.is("customized")]:!!s.header}],f={...La(a,i),columnsStyles:t,class:c,columns:e,headerIndex:n,style:r};return de(Sle,f,Vle(s)?s:{default:()=>[s]})},N1=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:a}=e,l=No(o);if(n.placeholderSign===pi)return de("div",{class:r.em("header-row-cell","placeholder"),style:l},null);const{headerCellRenderer:s,headerClass:i,sortable:c}=n,f={...e,class:r.e("header-cell-text")},d=G_(s),h=d?d(f):_e(t,"default",f,()=>[de(rg,f,null)]),{sortBy:p,sortState:g,headerCellProps:v}=e;let y,m;if(g){const w=g[n.key];y=!!Kh[w],m=y?w:fi.ASC}else y=n.key===p.key,m=y?p.order:fi.ASC;const b=[r.e("header-cell"),La(i,e,""),n.align===hi.CENTER&&r.is("align-center"),n.align===hi.RIGHT&&r.is("align-right"),c&&r.is("sortable")],C={...La(v,e),onClick:n.sortable?a:void 0,class:b,style:l,"data-key":n.key};return de("div",ft(C,{role:"columnheader"}),[h,c&&de(Tle,{class:[r.e("sort-icon"),y&&r.is("sorting")],sortOrder:m},null)])},X_=(e,{slots:t})=>{var n;return de("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};X_.displayName="ElTableV2Footer";const Q_=(e,{slots:t})=>{const n=_e(t,"default",{},()=>[de(r_,null,null)]);return de("div",{class:e.class,style:e.style},[n])};Q_.displayName="ElTableV2Empty";const Z_=(e,{slots:t})=>{var n;return de("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Z_.displayName="ElTableV2Overlay";function us(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vt(e)}const Hle="ElTableV2",Wle=ue({name:Hle,props:wle,setup(e,{slots:t,expose:n}){const r=Ae("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:a,fixedColumnsOnRight:l,mainColumns:s,mainTableHeight:i,fixedTableHeight:c,leftTableWidth:f,rightTableWidth:d,data:h,depthMap:p,expandedRowKeys:g,hasFixedColumns:v,hoveringRowKey:y,mainTableRef:m,leftTableRef:b,rightTableRef:C,isDynamic:w,isResetting:_,isScrolling:$,bodyWidth:T,emptyStyle:E,rootStyle:M,headerWidth:x,footerHeight:N,showEmpty:L,scrollTo:A,scrollToLeft:F,scrollToTop:j,scrollToRow:H,getRowHeight:S,onColumnSorted:I,onRowHeightChange:k,onRowHovered:R,onRowExpanded:z,onRowsRendered:Z,onScroll:J,onVerticalScroll:oe}=yle(e);return n({scrollTo:A,scrollToLeft:F,scrollToTop:j,scrollToRow:H}),ht(Jv,{ns:r,isResetting:_,hoveringRowKey:y,isScrolling:$}),()=>{const{cache:ve,cellProps:fe,estimatedRowHeight:U,expandColumnKey:ne,fixedData:ie,headerHeight:ce,headerClass:te,headerProps:D,headerCellProps:W,sortBy:Y,sortState:re,rowHeight:se,rowClass:q,rowEventHandlers:ae,rowKey:G,rowProps:Q,scrollbarAlwaysOn:ee,indentSize:le,iconSize:he,useIsScrolling:ye,vScrollbarSize:ge,width:Ee}=e,Oe=u(h),Ie={cache:ve,class:r.e("main"),columns:u(s),data:Oe,fixedData:ie,estimatedRowHeight:U,bodyWidth:u(T)+ge,headerHeight:ce,headerWidth:u(x),height:u(i),mainTableRef:m,rowKey:G,rowHeight:se,scrollbarAlwaysOn:ee,scrollbarStartGap:2,scrollbarEndGap:ge,useIsScrolling:ye,width:Ee,getRowHeight:S,onRowsRendered:Z,onScroll:J},ze=u(f),De=u(c),$e={cache:ve,class:r.e("left"),columns:u(a),data:Oe,estimatedRowHeight:U,leftTableRef:b,rowHeight:se,bodyWidth:ze,headerWidth:ze,headerHeight:ce,height:De,rowKey:G,scrollbarAlwaysOn:ee,scrollbarStartGap:2,scrollbarEndGap:ge,useIsScrolling:ye,width:ze,getRowHeight:S,onScroll:oe},Ce=u(d)+ge,xe={cache:ve,class:r.e("right"),columns:u(l),data:Oe,estimatedRowHeight:U,rightTableRef:C,rowHeight:se,bodyWidth:Ce,headerWidth:Ce,headerHeight:ce,height:De,rowKey:G,scrollbarAlwaysOn:ee,scrollbarStartGap:2,scrollbarEndGap:ge,width:Ce,style:`--${u(r.namespace)}-table-scrollbar-size: ${ge}px`,useIsScrolling:ye,getRowHeight:S,onScroll:oe},pe=u(o),Ve={ns:r,depthMap:u(p),columnsStyles:pe,expandColumnKey:ne,expandedRowKeys:u(g),estimatedRowHeight:U,hasFixedColumns:u(v),hoveringRowKey:u(y),rowProps:Q,rowClass:q,rowKey:G,rowEventHandlers:ae,onRowHovered:R,onRowExpanded:z,onRowHeightChange:k},et={cellProps:fe,expandColumnKey:ne,indentSize:le,iconSize:he,rowKey:G,expandedRowKeys:u(g),ns:r},pt={ns:r,headerClass:te,headerProps:D,columnsStyles:pe},Zt={ns:r,sortBy:Y,sortState:re,headerCellProps:W,onColumnSorted:I},Lt={row:Pe=>de(Fle,ft(Pe,Ve),{row:t.row,cell:He=>{let Je;return t.cell?de(jh,ft(He,et,{style:pe[He.column.key]}),us(Je=t.cell(He))?Je:{default:()=>[Je]}):de(jh,ft(He,et,{style:pe[He.column.key]}),null)}}),header:Pe=>de(zle,ft(Pe,pt),{header:t.header,cell:He=>{let Je;return t["header-cell"]?de(N1,ft(He,Zt,{style:pe[He.column.key]}),us(Je=t["header-cell"](He))?Je:{default:()=>[Je]}):de(N1,ft(He,Zt,{style:pe[He.column.key]}),null)}})},er=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:u(w)}],bn={class:r.e("footer"),style:u(N)};return de("div",{class:er,style:u(M)},[de(Rle,Ie,us(Lt)?Lt:{default:()=>[Lt]}),de(Nle,$e,us(Lt)?Lt:{default:()=>[Lt]}),de(Dle,xe,us(Lt)?Lt:{default:()=>[Lt]}),t.footer&&de(X_,bn,{default:t.footer}),u(L)&&de(Q_,{class:r.e("empty"),style:u(E)},{default:t.empty}),t.overlay&&de(Z_,{class:r.e("overlay")},{default:t.overlay})])}}}),Kle=Le({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:we(Function)}}),jle=ue({name:"ElAutoResizer",props:Kle,setup(e,{slots:t}){const n=Ae("auto-resizer"),{height:r,width:o,sizer:a}=mle(e),l={width:"100%",height:"100%"};return()=>{var s;return de("div",{ref:a,class:n.b(),style:l},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:o.value})])}}}),Gle=it(Wle),qle=it(jle),pd=Symbol("tabsRootContextKey"),Ule=Le({tabs:{type:we(Array),default:()=>Ht([])}}),J_="ElTabBar",Yle=ue({name:J_}),Xle=ue({...Yle,props:Ule,setup(e,{expose:t}){const n=e,r=lt(),o=We(pd);o||rn(J_,"");const a=Ae("tabs"),l=X(),s=X(),i=()=>{let f=0,d=0;const h=["top","bottom"].includes(o.props.tabPosition)?"width":"height",p=h==="width"?"x":"y",g=p==="x"?"left":"top";return n.tabs.every(v=>{var y,m;const b=(m=(y=r.parent)==null?void 0:y.refs)==null?void 0:m[`tab-${v.uid}`];if(!b)return!1;if(!v.active)return!0;f=b[`offset${Br(g)}`],d=b[`client${Br(h)}`];const C=window.getComputedStyle(b);return h==="width"&&(n.tabs.length>1&&(d-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight)),f+=Number.parseFloat(C.paddingLeft)),!1}),{[h]:`${d}px`,transform:`translate${Br(p)}(${f}px)`}},c=()=>s.value=i();return Te(()=>n.tabs,async()=>{await Ge(),c()},{immediate:!0}),$n(l,()=>c()),t({ref:l,update:c}),(f,d)=>(P(),K("div",{ref_key:"barRef",ref:l,class:V([u(a).e("active-bar"),u(a).is(u(o).props.tabPosition)]),style:Fe(s.value)},null,6))}});var Qle=Ne(Xle,[["__file","tab-bar.vue"]]);const Zle=Le({panes:{type:we(Array),default:()=>Ht([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Jle={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},I1="ElTabNav",ese=ue({name:I1,props:Zle,emits:Jle,setup(e,{expose:t,emit:n}){const r=lt(),o=We(pd);o||rn(I1,"");const a=Ae("tabs"),l=MI(),s=GI(),i=X(),c=X(),f=X(),d=X(),h=X(!1),p=X(0),g=X(!1),v=X(!0),y=O(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),m=O(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${p.value}px)`})),b=()=>{if(!i.value)return;const M=i.value[`offset${Br(y.value)}`],x=p.value;if(!x)return;const N=x>M?x-M:0;p.value=N},C=()=>{if(!i.value||!c.value)return;const M=c.value[`offset${Br(y.value)}`],x=i.value[`offset${Br(y.value)}`],N=p.value;if(M-N<=x)return;const L=M-N>x*2?N+x:M-x;p.value=L},w=async()=>{const M=c.value;if(!h.value||!f.value||!i.value||!M)return;await Ge();const x=f.value.querySelector(".is-active");if(!x)return;const N=i.value,L=["top","bottom"].includes(o.props.tabPosition),A=x.getBoundingClientRect(),F=N.getBoundingClientRect(),j=L?M.offsetWidth-F.width:M.offsetHeight-F.height,H=p.value;let S=H;L?(A.leftF.right&&(S=H+A.right-F.right)):(A.topF.bottom&&(S=H+(A.bottom-F.bottom))),S=Math.max(S,0),p.value=Math.min(S,j)},_=()=>{var M;if(!c.value||!i.value)return;e.stretch&&((M=d.value)==null||M.update());const x=c.value[`offset${Br(y.value)}`],N=i.value[`offset${Br(y.value)}`],L=p.value;N0&&(p.value=0))},$=M=>{const x=M.code,{up:N,down:L,left:A,right:F}=qe;if(![N,L,A,F].includes(x))return;const j=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),H=j.indexOf(M.target);let S;x===A||x===N?H===0?S=j.length-1:S=H-1:H{v.value&&(g.value=!0)},E=()=>g.value=!1;return Te(l,M=>{M==="hidden"?v.value=!1:M==="visible"&&setTimeout(()=>v.value=!0,50)}),Te(s,M=>{M?setTimeout(()=>v.value=!0,50):v.value=!1}),$n(f,_),at(()=>setTimeout(()=>w(),0)),go(()=>_()),t({scrollToActiveTab:w,removeFocus:E}),Te(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const M=h.value?[de("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:b},[de(je,null,{default:()=>[de(Wo,null,null)]})]),de("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:C},[de(je,null,{default:()=>[de(An,null,null)]})])]:null,x=e.panes.map((N,L)=>{var A,F,j,H;const S=N.uid,I=N.props.disabled,k=(F=(A=N.props.name)!=null?A:N.index)!=null?F:`${L}`,R=!I&&(N.isClosable||e.editable);N.index=`${L}`;const z=R?de(je,{class:"is-icon-close",onClick:oe=>n("tabRemove",N,oe)},{default:()=>[de(Ar,null,null)]}):null,Z=((H=(j=N.slots).label)==null?void 0:H.call(j))||N.props.label,J=!I&&N.active?0:-1;return de("div",{ref:`tab-${S}`,class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",N.active),a.is("disabled",I),a.is("closable",R),a.is("focus",g.value)],id:`tab-${k}`,key:`tab-${S}`,"aria-controls":`pane-${k}`,role:"tab","aria-selected":N.active,tabindex:J,onFocus:()=>T(),onBlur:()=>E(),onClick:oe=>{E(),n("tabClick",N,k,oe)},onKeydown:oe=>{R&&(oe.code===qe.delete||oe.code===qe.backspace)&&n("tabRemove",N,oe)}},[Z,z])});return de("div",{ref:f,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(o.props.tabPosition)]},[M,de("div",{class:a.e("nav-scroll"),ref:i},[de("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:c,style:m.value,role:"tablist",onKeydown:$},[e.type?null:de(Qle,{ref:d,tabs:[...e.panes]},null),x])])])}}}),tse=Le({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:we(Function),default:()=>!0},stretch:Boolean}),Pf=e=>tt(e)||Xe(e),nse={[ut]:e=>Pf(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Pf(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Pf(e),tabAdd:()=>!0},rse=ue({name:"ElTabs",props:tse,emits:nse,setup(e,{emit:t,slots:n,expose:r}){var o,a;const l=Ae("tabs"),{children:s,addChild:i,removeChild:c}=Ev(lt(),"ElTabPane"),f=X(),d=X((a=(o=e.modelValue)!=null?o:e.activeName)!=null?a:"0"),h=async(y,m=!1)=>{var b,C,w;if(!(d.value===y||tn(y)))try{await((b=e.beforeLeave)==null?void 0:b.call(e,y,d.value))!==!1&&(d.value=y,m&&(t(ut,y),t("tabChange",y)),(w=(C=f.value)==null?void 0:C.removeFocus)==null||w.call(C))}catch{}},p=(y,m,b)=>{y.props.disabled||(h(m,!0),t("tabClick",y,b))},g=(y,m)=>{y.props.disabled||tn(y.props.name)||(m.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")};return Kr({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"},O(()=>!!e.activeName)),Te(()=>e.activeName,y=>h(y)),Te(()=>e.modelValue,y=>h(y)),Te(d,async()=>{var y;await Ge(),(y=f.value)==null||y.scrollToActiveTab()}),ht(pd,{props:e,currentName:d,registerPane:i,unregisterPane:c}),r({currentName:d}),()=>{const y=n.addIcon,m=e.editable||e.addable?de("span",{class:l.e("new-tab"),tabindex:"0",onClick:v,onKeydown:w=>{w.code===qe.enter&&v()}},[y?_e(n,"addIcon"):de(je,{class:l.is("icon-plus")},{default:()=>[de($2,null,null)]})]):null,b=de("div",{class:[l.e("header"),l.is(e.tabPosition)]},[m,de(ese,{ref:f,currentName:d.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:p,onTabRemove:g},null)]),C=de("div",{class:l.e("content")},[_e(n,"default")]);return de("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"?[b,C]:[C,b]])}}}),ose=Le({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),ase=["id","aria-hidden","aria-labelledby"],e$="ElTabPane",lse=ue({name:e$}),sse=ue({...lse,props:ose,setup(e){const t=e,n=lt(),r=mn(),o=We(pd);o||rn(e$,"usage: ");const a=Ae("tab-pane"),l=X(),s=O(()=>t.closable||o.props.closable),i=py(()=>{var p;return o.currentName.value===((p=t.name)!=null?p:l.value)}),c=X(i.value),f=O(()=>{var p;return(p=t.name)!=null?p:l.value}),d=py(()=>!t.lazy||c.value||i.value);Te(i,p=>{p&&(c.value=!0)});const h=$t({uid:n.uid,slots:r,props:t,paneName:f,active:i,index:l,isClosable:s});return at(()=>{o.registerPane(h)}),Uo(()=>{o.unregisterPane(h.uid)}),(p,g)=>u(d)?rt((P(),K("div",{key:0,id:`pane-${u(f)}`,class:V(u(a).b()),role:"tabpanel","aria-hidden":!u(i),"aria-labelledby":`tab-${u(f)}`},[_e(p.$slots,"default")],10,ase)),[[St,u(i)]]):be("v-if",!0)}});var t$=Ne(sse,[["__file","tab-pane.vue"]]);const ise=it(rse,{TabPane:t$}),use=qt(t$),cse=Le({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Xr,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),dse=ue({name:"ElText"}),fse=ue({...dse,props:cse,setup(e){const t=e,n=on(),r=Ae("text"),o=O(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated),r.is("line-clamp",!tn(t.lineClamp))]);return(a,l)=>(P(),ke(dt(a.tag),{class:V(u(o)),style:Fe({"-webkit-line-clamp":a.lineClamp})},{default:me(()=>[_e(a.$slots,"default")]),_:3},8,["class","style"]))}});var hse=Ne(fse,[["__file","text.vue"]]);const pse=it(hse),vse=Le({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:gn,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:we([String,Object]),default:()=>_2},clearIcon:{type:we([String,Object]),default:()=>Xo}}),ao=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},Tf=(e,t)=>{const n=ao(e);if(!n)return-1;const r=ao(t);if(!r)return-1;const o=n.minutes+n.hours*60,a=r.minutes+r.hours*60;return o===a?0:o>a?1:-1},D1=e=>`${e}`.padStart(2,"0"),Za=e=>`${D1(e.hours)}:${D1(e.minutes)}`,gse=(e,t)=>{const n=ao(e);if(!n)return"";const r=ao(t);if(!r)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,Za(o)},mse=ue({name:"ElTimeSelect"}),yse=ue({...mse,props:vse,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;st.extend(Mv);const{Option:r}=Ra,o=Ae("input"),a=X(),l=Un(),{lang:s}=bt(),i=O(()=>n.modelValue),c=O(()=>{const m=ao(n.start);return m?Za(m):null}),f=O(()=>{const m=ao(n.end);return m?Za(m):null}),d=O(()=>{const m=ao(n.step);return m?Za(m):null}),h=O(()=>{const m=ao(n.minTime||"");return m?Za(m):null}),p=O(()=>{const m=ao(n.maxTime||"");return m?Za(m):null}),g=O(()=>{const m=[];if(n.start&&n.end&&n.step){let b=c.value,C;for(;b&&f.value&&Tf(b,f.value)<=0;)C=st(b,"HH:mm").locale(s.value).format(n.format),m.push({value:C,disabled:Tf(b,h.value||"-1:-1")<=0||Tf(b,p.value||"100:100")>=0}),b=gse(b,d.value)}return m});return t({blur:()=>{var m,b;(b=(m=a.value)==null?void 0:m.blur)==null||b.call(m)},focus:()=>{var m,b;(b=(m=a.value)==null?void 0:m.focus)==null||b.call(m)}}),(m,b)=>(P(),ke(u(Ra),{ref_key:"select",ref:a,"model-value":u(i),disabled:u(l),clearable:m.clearable,"clear-icon":m.clearIcon,size:m.size,effect:m.effect,placeholder:m.placeholder,"default-first-option":"",filterable:m.editable,"onUpdate:modelValue":b[0]||(b[0]=C=>m.$emit("update:modelValue",C)),onChange:b[1]||(b[1]=C=>m.$emit("change",C)),onBlur:b[2]||(b[2]=C=>m.$emit("blur",C)),onFocus:b[3]||(b[3]=C=>m.$emit("focus",C))},{prefix:me(()=>[m.prefixIcon?(P(),ke(u(je),{key:0,class:V(u(o).e("prefix-icon"))},{default:me(()=>[(P(),ke(dt(m.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)]),default:me(()=>[(P(!0),K(Be,null,nt(u(g),C=>(P(),ke(u(r),{key:C.value,label:C.value,value:C.value,disabled:C.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Ku=Ne(yse,[["__file","time-select.vue"]]);Ku.install=e=>{e.component(Ku.name,Ku)};const bse=Ku,wse=bse,Cse=ue({name:"ElTimeline",setup(e,{slots:t}){const n=Ae("timeline");return ht("timeline",t),()=>Ue("ul",{class:[n.b()]},[_e(t,"default")])}}),Sse=Le({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:Rt},hollow:{type:Boolean,default:!1}}),kse=ue({name:"ElTimelineItem"}),_se=ue({...kse,props:Sse,setup(e){const t=e,n=Ae("timeline-item"),r=O(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(o,a)=>(P(),K("li",{class:V([u(n).b(),{[u(n).e("center")]:o.center}])},[B("div",{class:V(u(n).e("tail"))},null,2),o.$slots.dot?be("v-if",!0):(P(),K("div",{key:0,class:V(u(r)),style:Fe({backgroundColor:o.color})},[o.icon?(P(),ke(u(je),{key:0,class:V(u(n).e("icon"))},{default:me(()=>[(P(),ke(dt(o.icon)))]),_:1},8,["class"])):be("v-if",!0)],6)),o.$slots.dot?(P(),K("div",{key:1,class:V(u(n).e("dot"))},[_e(o.$slots,"dot")],2)):be("v-if",!0),B("div",{class:V(u(n).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(P(),K("div",{key:0,class:V([u(n).e("timestamp"),u(n).is("top")])},Me(o.timestamp),3)):be("v-if",!0),B("div",{class:V(u(n).e("content"))},[_e(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(P(),K("div",{key:1,class:V([u(n).e("timestamp"),u(n).is("bottom")])},Me(o.timestamp),3)):be("v-if",!0)],2)],2))}});var n$=Ne(_se,[["__file","timeline-item.vue"]]);const $se=it(Cse,{TimelineItem:n$}),Ese=qt(n$),r$=Le({nowrap:Boolean});var o$=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(o$||{});const Pse=Object.values(o$),ag=Le({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:we(Object),default:null}}),Tse=Le({side:{type:we(String),values:Pse,required:!0}}),xse=["absolute","fixed"],Ase=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],lg=Le({ariaLabel:String,arrowPadding:{type:we(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:we(String),values:Ase,default:"bottom"},reference:{type:we(Object),default:null},offset:{type:Number,default:8},strategy:{type:we(String),values:xse,default:"absolute"},showArrow:{type:Boolean,default:!1}}),sg=Le({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:we(Function)},"onUpdate:open":{type:we(Function)}}),Ua={type:we(Function)},ig=Le({onBlur:Ua,onClick:Ua,onFocus:Ua,onMouseDown:Ua,onMouseEnter:Ua,onMouseLeave:Ua}),Ose=Le({...sg,...ag,...ig,...lg,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:we(Object),default:null},teleported:Boolean,to:{type:we(String),default:"body"}}),vd=Symbol("tooltipV2"),a$=Symbol("tooltipV2Content"),xf="tooltip_v2.open",Mse=ue({name:"ElTooltipV2Root"}),Rse=ue({...Mse,props:sg,setup(e,{expose:t}){const n=e,r=X(n.defaultOpen),o=X(null),a=O({get:()=>nz(n.open)?r.value:n.open,set:y=>{var m;r.value=y,(m=n["onUpdate:open"])==null||m.call(n,y)}}),l=O(()=>Xe(n.delayDuration)&&n.delayDuration>0),{start:s,stop:i}=Aa(()=>{a.value=!0},O(()=>n.delayDuration),{immediate:!1}),c=Ae("tooltip-v2"),f=qn(),d=()=>{i(),a.value=!0},h=()=>{u(l)?s():d()},p=d,g=()=>{i(),a.value=!1};return Te(a,y=>{var m;y&&(document.dispatchEvent(new CustomEvent(xf)),p()),(m=n.onOpenChange)==null||m.call(n,y)}),at(()=>{document.addEventListener(xf,g)}),Dt(()=>{i(),document.removeEventListener(xf,g)}),ht(vd,{contentId:f,triggerRef:o,ns:c,onClose:g,onDelayOpen:h,onOpen:p}),t({onOpen:p,onClose:g}),(y,m)=>_e(y.$slots,"default",{open:u(a)})}});var Lse=Ne(Rse,[["__file","root.vue"]]);const Nse=ue({name:"ElTooltipV2Arrow"}),Ise=ue({...Nse,props:{...ag,...Tse},setup(e){const t=e,{ns:n}=We(vd),{arrowRef:r}=We(a$),o=O(()=>{const{style:a,width:l,height:s}=t,i=n.namespace.value;return{[`--${i}-tooltip-v2-arrow-width`]:`${l}px`,[`--${i}-tooltip-v2-arrow-height`]:`${s}px`,[`--${i}-tooltip-v2-arrow-border-width`]:`${l/2}px`,[`--${i}-tooltip-v2-arrow-cover-width`]:l/2-1,...a||{}}});return(a,l)=>(P(),K("span",{ref_key:"arrowRef",ref:r,style:Fe(u(o)),class:V(u(n).e("arrow"))},null,6))}});var B1=Ne(Ise,[["__file","arrow.vue"]]);const Dse=Le({style:{type:we([String,Object,Array]),default:()=>({})}}),Bse=ue({name:"ElVisuallyHidden"}),Fse=ue({...Bse,props:Dse,setup(e){const t=e,n=O(()=>[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(r,o)=>(P(),K("span",ft(r.$attrs,{style:u(n)}),[_e(r.$slots,"default")],16))}});var Vse=Ne(Fse,[["__file","visual-hidden.vue"]]);const zse=["data-side"],Hse=ue({name:"ElTooltipV2Content"}),Wse=ue({...Hse,props:{...lg,...r$},setup(e){const t=e,{triggerRef:n,contentId:r}=We(vd),o=X(t.placement),a=X(t.strategy),l=X(null),{referenceRef:s,contentRef:i,middlewareData:c,x:f,y:d,update:h}=mW({placement:o,strategy:a,middleware:O(()=>{const C=[Z9(t.offset)];return t.showArrow&&C.push(yW({arrowRef:l})),C})}),p=Hl().nextZIndex(),g=Ae("tooltip-v2"),v=O(()=>o.value.split("-")[0]),y=O(()=>({position:u(a),top:`${u(d)||0}px`,left:`${u(f)||0}px`,zIndex:p})),m=O(()=>{if(!t.showArrow)return{};const{arrow:C}=u(c);return{[`--${g.namespace.value}-tooltip-v2-arrow-x`]:`${C==null?void 0:C.x}px`||"",[`--${g.namespace.value}-tooltip-v2-arrow-y`]:`${C==null?void 0:C.y}px`||""}}),b=O(()=>[g.e("content"),g.is("dark",t.effect==="dark"),g.is(u(a)),t.contentClass]);return Te(l,()=>h()),Te(()=>t.placement,C=>o.value=C),at(()=>{Te(()=>t.reference||n.value,C=>{s.value=C||void 0},{immediate:!0})}),ht(a$,{arrowRef:l}),(C,w)=>(P(),K("div",{ref_key:"contentRef",ref:i,style:Fe(u(y)),"data-tooltip-v2-root":""},[C.nowrap?be("v-if",!0):(P(),K("div",{key:0,"data-side":u(v),class:V(u(b))},[_e(C.$slots,"default",{contentStyle:u(y),contentClass:u(b)}),de(u(Vse),{id:u(r),role:"tooltip"},{default:me(()=>[C.ariaLabel?(P(),K(Be,{key:0},[kt(Me(C.ariaLabel),1)],64)):_e(C.$slots,"default",{key:1})]),_:3},8,["id"]),_e(C.$slots,"arrow",{style:Fe(u(m)),side:u(v)})],10,zse))],4))}});var F1=Ne(Wse,[["__file","content.vue"]]);const Kse=Le({setRef:{type:we(Function),required:!0},onlyChild:Boolean});var jse=ue({props:Kse,setup(e,{slots:t}){const n=X(),r=Zc(n,o=>{o?e.setRef(o.nextElementSibling):e.setRef(null)});return()=>{var o;const[a]=((o=t.default)==null?void 0:o.call(t))||[],l=e.onlyChild?_H(a.children):a.children;return de(Be,{ref:r},[l])}}});const Gse=ue({name:"ElTooltipV2Trigger"}),qse=ue({...Gse,props:{...r$,...ig},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:a,contentId:l}=We(vd);let s=!1;const i=b=>{a.value=b},c=()=>{s=!1},f=Gt(t.onMouseEnter,o),d=Gt(t.onMouseLeave,n),h=Gt(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",c,{once:!0})}),p=Gt(t.onFocus,()=>{s||r()}),g=Gt(t.onBlur,n),v=Gt(t.onClick,b=>{b.detail===0&&n()}),y={blur:g,click:v,focus:p,mousedown:h,mouseenter:f,mouseleave:d},m=(b,C,w)=>{b&&Object.entries(C).forEach(([_,$])=>{b[w](_,$)})};return Te(a,(b,C)=>{m(b,y,"addEventListener"),m(C,y,"removeEventListener"),b&&b.setAttribute("aria-describedby",l.value)}),Dt(()=>{m(a.value,y,"removeEventListener"),document.removeEventListener("mouseup",c)}),(b,C)=>b.nowrap?(P(),ke(u(jse),{key:0,"set-ref":i,"only-child":""},{default:me(()=>[_e(b.$slots,"default")]),_:3})):(P(),K("button",ft({key:1,ref_key:"triggerRef",ref:a},b.$attrs),[_e(b.$slots,"default")],16))}});var Use=Ne(qse,[["__file","trigger.vue"]]);const Yse=ue({name:"ElTooltipV2"}),Xse=ue({...Yse,props:Ose,setup(e){const n=ln(e),r=$t(lo(n,Object.keys(ag))),o=$t(lo(n,Object.keys(lg))),a=$t(lo(n,Object.keys(sg))),l=$t(lo(n,Object.keys(ig)));return(s,i)=>(P(),ke(Lse,_r(Ic(a)),{default:me(({open:c})=>[de(Use,ft(l,{nowrap:""}),{default:me(()=>[_e(s.$slots,"trigger")]),_:3},16),(P(),ke(yi,{to:s.to,disabled:!s.teleported},[s.fullTransition?(P(),ke(Jt,_r(ft({key:0},s.transitionProps)),{default:me(()=>[s.alwaysOn||c?(P(),ke(F1,_r(ft({key:0},o)),{arrow:me(({style:f,side:d})=>[s.showArrow?(P(),ke(B1,ft({key:0},r,{style:f,side:d}),null,16,["style","side"])):be("v-if",!0)]),default:me(()=>[_e(s.$slots,"default")]),_:3},16)):be("v-if",!0)]),_:2},1040)):(P(),K(Be,{key:1},[s.alwaysOn||c?(P(),ke(F1,_r(ft({key:0},o)),{arrow:me(({style:f,side:d})=>[s.showArrow?(P(),ke(B1,ft({key:0},r,{style:f,side:d}),null,16,["style","side"])):be("v-if",!0)]),default:me(()=>[_e(s.$slots,"default")]),_:3},16)):be("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var Qse=Ne(Xse,[["__file","tooltip.vue"]]);const Zse=it(Qse),l$="left-check-change",s$="right-check-change",Ja=Le({data:{type:we(Array),default:()=>[]},titles:{type:we(Array),default:()=>[]},buttonTexts:{type:we(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:we(Function)},leftDefaultChecked:{type:we(Array),default:()=>[]},rightDefaultChecked:{type:we(Array),default:()=>[]},renderContent:{type:we(Function)},modelValue:{type:we(Array),default:()=>[]},format:{type:we(Object),default:()=>({})},filterable:Boolean,props:{type:we(Object),default:()=>Ht({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Gh=(e,t)=>[e,t].every(Ke)||Ke(e)&&en(t),Jse={[It]:(e,t,n)=>[e,n].every(Ke)&&["left","right"].includes(t),[ut]:e=>Ke(e),[l$]:Gh,[s$]:Gh},qh="checked-change",eie=Le({data:Ja.data,optionRender:{type:we(Function)},placeholder:String,title:String,filterable:Boolean,format:Ja.format,filterMethod:Ja.filterMethod,defaultChecked:Ja.leftDefaultChecked,props:Ja.props}),tie={[qh]:Gh},Li=e=>{const t={label:"label",key:"key",disabled:"disabled"};return O(()=>({...t,...e.props}))},nie=(e,t,n)=>{const r=Li(e),o=O(()=>e.data.filter(f=>Ze(e.filterMethod)?e.filterMethod(t.query,f):String(f[r.value.label]||f[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),a=O(()=>o.value.filter(f=>!f[r.value.disabled])),l=O(()=>{const f=t.checked.length,d=e.data.length,{noChecked:h,hasChecked:p}=e.format;return h&&p?f>0?p.replace(/\${checked}/g,f.toString()).replace(/\${total}/g,d.toString()):h.replace(/\${total}/g,d.toString()):`${f}/${d}`}),s=O(()=>{const f=t.checked.length;return f>0&&f{const f=a.value.map(d=>d[r.value.key]);t.allChecked=f.length>0&&f.every(d=>t.checked.includes(d))},c=f=>{t.checked=f?a.value.map(d=>d[r.value.key]):[]};return Te(()=>t.checked,(f,d)=>{if(i(),t.checkChangeByUser){const h=f.concat(d).filter(p=>!f.includes(p)||!d.includes(p));n(qh,f,h)}else n(qh,f),t.checkChangeByUser=!0}),Te(a,()=>{i()}),Te(()=>e.data,()=>{const f=[],d=o.value.map(h=>h[r.value.key]);t.checked.forEach(h=>{d.includes(h)&&f.push(h)}),t.checkChangeByUser=!1,t.checked=f}),Te(()=>e.defaultChecked,(f,d)=>{if(d&&f.length===d.length&&f.every(g=>d.includes(g)))return;const h=[],p=a.value.map(g=>g[r.value.key]);f.forEach(g=>{p.includes(g)&&h.push(g)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:o,checkableData:a,checkedSummary:l,isIndeterminate:s,updateAllChecked:i,handleAllCheckedChange:c}},rie=(e,t)=>({onSourceCheckedChange:(o,a)=>{e.leftChecked=o,a&&t(l$,o,a)},onTargetCheckedChange:(o,a)=>{e.rightChecked=o,a&&t(s$,o,a)}}),oie=e=>{const t=Li(e),n=O(()=>e.data.reduce((a,l)=>(a[l[t.value.key]]=l)&&a,{})),r=O(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),o=O(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,l)=>{const s=n.value[l];return s&&a.push(s),a},[]));return{sourceData:r,targetData:o}},aie=(e,t,n)=>{const r=Li(e),o=(s,i,c)=>{n(ut,s),n(It,s,i,c)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(i=>{const c=s.indexOf(i);c>-1&&s.splice(c,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const i=e.data.filter(c=>{const f=c[r.value.key];return t.leftChecked.includes(f)&&!e.modelValue.includes(f)}).map(c=>c[r.value.key]);s=e.targetOrder==="unshift"?i.concat(s):s.concat(i),e.targetOrder==="original"&&(s=e.data.filter(c=>s.includes(c[r.value.key])).map(c=>c[r.value.key])),o(s,"right",t.leftChecked)}}},lie=ue({name:"ElTransferPanel"}),sie=ue({...lie,props:eie,emits:tie,setup(e,{expose:t,emit:n}){const r=e,o=mn(),a=({option:C})=>C,{t:l}=bt(),s=Ae("transfer"),i=$t({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=Li(r),{filteredData:f,checkedSummary:d,isIndeterminate:h,handleAllCheckedChange:p}=nie(r,i,n),g=O(()=>!rr(i.query)&&rr(f.value)),v=O(()=>!rr(o.default()[0].children)),{checked:y,allChecked:m,query:b}=ln(i);return t({query:b}),(C,w)=>(P(),K("div",{class:V(u(s).b("panel"))},[B("p",{class:V(u(s).be("panel","header"))},[de(u(vr),{modelValue:u(m),"onUpdate:modelValue":w[0]||(w[0]=_=>xt(m)?m.value=_:null),indeterminate:u(h),"validate-event":!1,onChange:u(p)},{default:me(()=>[kt(Me(C.title)+" ",1),B("span",null,Me(u(d)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),B("div",{class:V([u(s).be("panel","body"),u(s).is("with-footer",u(v))])},[C.filterable?(P(),ke(u(_n),{key:0,modelValue:u(b),"onUpdate:modelValue":w[1]||(w[1]=_=>xt(b)?b.value=_:null),class:V(u(s).be("panel","filter")),size:"default",placeholder:C.placeholder,"prefix-icon":u(tH),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):be("v-if",!0),rt(de(u(hk),{modelValue:u(y),"onUpdate:modelValue":w[2]||(w[2]=_=>xt(y)?y.value=_:null),"validate-event":!1,class:V([u(s).is("filterable",C.filterable),u(s).be("panel","list")])},{default:me(()=>[(P(!0),K(Be,null,nt(u(f),_=>(P(),ke(u(vr),{key:_[u(c).key],class:V(u(s).be("panel","item")),label:_[u(c).key],disabled:_[u(c).disabled],"validate-event":!1},{default:me(()=>{var $;return[de(a,{option:($=C.optionRender)==null?void 0:$.call(C,_)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[St,!u(g)&&!u(rr)(C.data)]]),rt(B("p",{class:V(u(s).be("panel","empty"))},Me(u(g)?u(l)("el.transfer.noMatch"):u(l)("el.transfer.noData")),3),[[St,u(g)||u(rr)(C.data)]])],2),u(v)?(P(),K("p",{key:0,class:V(u(s).be("panel","footer"))},[_e(C.$slots,"default")],2)):be("v-if",!0)],2))}});var V1=Ne(sie,[["__file","transfer-panel.vue"]]);const iie={key:0},uie={key:0},cie=ue({name:"ElTransfer"}),die=ue({...cie,props:Ja,emits:Jse,setup(e,{expose:t,emit:n}){const r=e,o=mn(),{t:a}=bt(),l=Ae("transfer"),{formItem:s}=Dn(),i=$t({leftChecked:[],rightChecked:[]}),c=Li(r),{sourceData:f,targetData:d}=oie(r),{onSourceCheckedChange:h,onTargetCheckedChange:p}=rie(i,n),{addToLeft:g,addToRight:v}=aie(r,i,n),y=X(),m=X(),b=E=>{switch(E){case"left":y.value.query="";break;case"right":m.value.query="";break}},C=O(()=>r.buttonTexts.length===2),w=O(()=>r.titles[0]||a("el.transfer.titles.0")),_=O(()=>r.titles[1]||a("el.transfer.titles.1")),$=O(()=>r.filterPlaceholder||a("el.transfer.filterPlaceholder"));Te(()=>r.modelValue,()=>{var E;r.validateEvent&&((E=s==null?void 0:s.validate)==null||E.call(s,"change").catch(M=>void 0))});const T=O(()=>E=>r.renderContent?r.renderContent(Ue,E):o.default?o.default({option:E}):Ue("span",E[c.value.label]||E[c.value.key]));return t({clearQuery:b,leftPanel:y,rightPanel:m}),(E,M)=>(P(),K("div",{class:V(u(l).b())},[de(V1,{ref_key:"leftPanel",ref:y,data:u(f),"option-render":u(T),placeholder:u($),title:u(w),filterable:E.filterable,format:E.format,"filter-method":E.filterMethod,"default-checked":E.leftDefaultChecked,props:r.props,onCheckedChange:u(h)},{default:me(()=>[_e(E.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),B("div",{class:V(u(l).e("buttons"))},[de(u(Sn),{type:"primary",class:V([u(l).e("button"),u(l).is("with-texts",u(C))]),disabled:u(rr)(i.rightChecked),onClick:u(g)},{default:me(()=>[de(u(je),null,{default:me(()=>[de(u(Wo))]),_:1}),u(tn)(E.buttonTexts[0])?be("v-if",!0):(P(),K("span",iie,Me(E.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),de(u(Sn),{type:"primary",class:V([u(l).e("button"),u(l).is("with-texts",u(C))]),disabled:u(rr)(i.leftChecked),onClick:u(v)},{default:me(()=>[u(tn)(E.buttonTexts[1])?be("v-if",!0):(P(),K("span",uie,Me(E.buttonTexts[1]),1)),de(u(je),null,{default:me(()=>[de(u(An))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),de(V1,{ref_key:"rightPanel",ref:m,data:u(d),"option-render":u(T),placeholder:u($),filterable:E.filterable,format:E.format,"filter-method":E.filterMethod,title:u(_),"default-checked":E.rightDefaultChecked,props:r.props,onCheckedChange:u(p)},{default:me(()=>[_e(E.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var fie=Ne(die,[["__file","transfer.vue"]]);const hie=it(fie),fl="$treeNodeId",z1=function(e,t){!t||t[fl]||Object.defineProperty(t,fl,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},ug=function(e,t){return e?t[e]:t[fl]},Uh=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},Yh=e=>{let t=!0,n=!0,r=!0;for(let o=0,a=e.length;o"u"){const a=r[t];return a===void 0?"":a}};let pie=0,Xh=class Gu{constructor(t){this.id=pie++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)gt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const a=mu(this,"isLeaf");typeof a=="boolean"&&(this.isLeafByUser=a)}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)||z1(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,o=t.key;o&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&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)||z1(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=mu(this,"children")||[];for(let r=0,o=n.length;r-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Gu)){if(!r){const o=this.getChildren(!0);o.includes(t.data)||(typeof n>"u"||n<0?o.push(t.data):o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=$t(new Gu(t)),t instanceof Gu&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r{if(n){let o=this.parent;for(;o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(o=>{o.canFocus=!0})};this.shouldLoadData()?this.loadData(o=>{Array.isArray(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||ju(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),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,n,r,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:l,allWithoutDisable:s}=Yh(this.childNodes);!this.isLeaf&&!l&&s&&(this.checked=!1,t=!1);const i=()=>{if(n){const c=this.childNodes;for(let h=0,p=c.length;h{i(),ju(this)},{checked:t!==!1});return}else i()}const a=this.parent;!a||a.level===0||r||ju(a)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(a=>a.data),r={},o=[];t.forEach((a,l)=>{const s=a[fl];!!s&&n.findIndex(c=>c[fl]===s)>=0?r[s]={index:l,data:a}:o.push({index:l,data:a})}),this.store.lazy||n.forEach(a=>{r[a[fl]]||this.removeChildByData(a)}),o.forEach(({index:a,data:l})=>{this.insertChild({data:l},a)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)};this.store.load(this,r)}else t&&t.call(this)}};class vie{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)gt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Xh({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,o=function(a){const l=a.root?a.root.childNodes:a.childNodes;if(l.forEach(s=>{s.visible=n.call(s,t,s.data,s),o(s)}),!a.visible&&l.length){let s=!0;s=!l.some(i=>i.visible),a.root?a.root.visible=s===!1:a.visible=s===!1}t&&a.visible&&!a.isLeaf&&!r&&a.expand()};o(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Xh)return t;const n=ct(t)?ug(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const o=n[r];o&&o.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 n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],o=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(a=>{a.indeterminate&&t.push(a.data),n(a)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)gt(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const o=r.childNodes;for(let a=o.length-1;a>=0;a--){const l=o[a];this.remove(l.data)}for(let a=0,l=n.length;ai.level-s.level),a=Object.create(null),l=Object.keys(r);o.forEach(s=>s.setChecked(!1,!1));for(let s=0,i=o.length;s0;)a[h.data[t]]=!0,h=h.parent;if(c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const p=function(g){g.childNodes.forEach(y=>{y.isLeaf||y.setChecked(!1,!1),p(y)})};p(c)}}}setCheckedNodes(t,n=!1){const r=this.key,o={};t.forEach(a=>{o[(a||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,o={};t.forEach(a=>{o[a]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const o=this.getNode(t);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],o=this.nodesMap[r];this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const gie=ue({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ae("tree"),n=We("NodeInstance"),r=We("RootTree");return()=>{const o=e.node,{data:a,store:l}=o;return e.renderContent?e.renderContent(Ue,{_self:n,node:o,data:a,store:l}):_e(r.ctx.slots,"default",{node:o,data:a},()=>[Ue("span",{class:t.be("node","label")},[o.label])])}}});var mie=Ne(gie,[["__file","tree-node-content.vue"]]);function i$(e){const t=We("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),ht("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const u$=Symbol("dragEvents");function yie({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const a=Ae("tree"),l=X({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return ht(u$,{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,p=l.value.dropNode;p&&p.node.id!==h.node.id&&Wn(p.$el,a.is("drop-inner"));const g=l.value.draggingNode;if(!g||!h)return;let v=!0,y=!0,m=!0,b=!0;typeof e.allowDrop=="function"&&(v=e.allowDrop(g.node,h.node,"prev"),b=y=e.allowDrop(g.node,h.node,"inner"),m=e.allowDrop(g.node,h.node,"next")),f.dataTransfer.dropEffect=y||v||m?"move":"none",(v||y||m)&&(p==null?void 0:p.node.id)!==h.node.id&&(p&&t.emit("node-drag-leave",g.node,p.node,f),t.emit("node-drag-enter",g.node,h.node,f)),(v||y||m)&&(l.value.dropNode=h),h.node.nextSibling===g.node&&(m=!1),h.node.previousSibling===g.node&&(v=!1),h.node.contains(g.node,!1)&&(y=!1),(g.node===h.node||g.node.contains(h.node))&&(v=!1,y=!1,m=!1);const C=h.$el.querySelector(`.${a.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let _;const $=v?y?.25:m?.45:1:-1,T=m?y?.75:v?.55:0:1;let E=-9999;const M=f.clientY-C.top;MC.height*T?_="after":y?_="inner":_="none";const x=h.$el.querySelector(`.${a.be("node","expand-icon")}`).getBoundingClientRect(),N=r.value;_==="before"?E=x.top-w.top:_==="after"&&(E=x.bottom-w.top),N.style.top=`${E}px`,N.style.left=`${x.right-w.left}px`,_==="inner"?Fr(h.$el,a.is("drop-inner")):Wn(h.$el,a.is("drop-inner")),l.value.showDropIndicator=_==="before"||_==="after",l.value.allowDrop=l.value.showDropIndicator||b,l.value.dropType=_,t.emit("node-drag-over",g.node,h.node,f)},treeNodeDragEnd:f=>{const{draggingNode:d,dropType:h,dropNode:p}=l.value;if(f.preventDefault(),f.dataTransfer.dropEffect="move",d&&p){const g={data:d.node.data};h!=="none"&&d.node.remove(),h==="before"?p.node.parent.insertBefore(g,p.node):h==="after"?p.node.parent.insertAfter(g,p.node):h==="inner"&&p.node.insertChild(g),h!=="none"&&o.value.registerNode(g),Wn(p.$el,a.is("drop-inner")),t.emit("node-drag-end",d.node,p.node,h,f),h!=="none"&&t.emit("node-drop",d.node,p.node,h,f)}d&&!p&&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 bie=ue({name:"ElTreeNode",components:{ElCollapseTransition:cd,ElCheckbox:vr,NodeContent:mie,ElIcon:je,Loading:Qo},props:{node:{type:Xh,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Ae("tree"),{broadcastExpanded:r}=i$(e),o=We("RootTree"),a=X(!1),l=X(!1),s=X(null),i=X(null),c=X(null),f=We(u$),d=lt();ht("NodeInstance",d),e.node.expanded&&(a.value=!0,l.value=!0);const h=o.props.props.children||"children";Te(()=>{const M=e.node.data[h];return M&&[...M]},()=>{e.node.updateChildren()}),Te(()=>e.node.indeterminate,M=>{v(e.node.checked,M)}),Te(()=>e.node.checked,M=>{v(M,e.node.indeterminate)}),Te(()=>e.node.expanded,M=>{Ge(()=>a.value=M),M&&(l.value=!0)});const p=M=>ug(o.props.nodeKey,M.data),g=M=>{const x=e.props.class;if(!x)return{};let N;if(Ze(x)){const{data:L}=M;N=x(L,M)}else N=x;return tt(N)?{[N]:!0}:N},v=(M,x)=>{(s.value!==M||i.value!==x)&&o.ctx.emit("check-change",e.node.data,M,x),s.value=M,i.value=x},y=M=>{Uh(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(e.node)),o.currentNode.value=e.node,o.props.expandOnClickNode&&b(),o.props.checkOnClickNode&&!e.node.disabled&&C(null,{target:{checked:!e.node.checked}}),o.ctx.emit("node-click",e.node.data,e.node,d,M)},m=M=>{o.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),o.ctx.emit("node-contextmenu",M,e.node.data,e.node,d)},b=()=>{e.node.isLeaf||(a.value?(o.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)))},C=(M,x)=>{e.node.setChecked(x.target.checked,!o.props.checkStrictly),Ge(()=>{const N=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:N.getCheckedNodes(),checkedKeys:N.getCheckedKeys(),halfCheckedNodes:N.getHalfCheckedNodes(),halfCheckedKeys:N.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:a,childNodeRendered:l,oldChecked:s,oldIndeterminate:i,getNodeKey:p,getNodeClass:g,handleSelectChange:v,handleClick:y,handleContextMenu:m,handleExpandIconClick:b,handleCheckChange:C,handleChildNodeExpand:(M,x,N)=>{r(x),o.ctx.emit("node-expand",M,x,N)},handleDragStart:M=>{o.props.draggable&&f.treeNodeDragStart({event:M,treeNode:e})},handleDragOver:M=>{M.preventDefault(),o.props.draggable&&f.treeNodeDragOver({event:M,treeNode:{$el:c.value,node:e.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{o.props.draggable&&f.treeNodeDragEnd(M)},CaretRight:k2}}}),wie=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Cie=["aria-expanded"];function Sie(e,t,n,r,o,a){const l=ot("el-icon"),s=ot("el-checkbox"),i=ot("loading"),c=ot("node-content"),f=ot("el-tree-node"),d=ot("el-collapse-transition");return rt((P(),K("div",{ref:"node$",class:V([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]=Ye((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[2]||(t[2]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[3]||(t[3]=Ye((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[4]||(t[4]=Ye((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[5]||(t[5]=Ye((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[6]||(t[6]=Ye((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[B("div",{class:V(e.ns.be("node","content")),style:Fe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(P(),ke(l,{key:0,class:V([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ye(e.handleExpandIconClick,["stop"])},{default:me(()=>[(P(),ke(dt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):be("v-if",!0),e.showCheckbox?(P(),ke(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Ye(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):be("v-if",!0),e.node.loading?(P(),ke(l,{key:2,class:V([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:me(()=>[de(i)]),_:1},8,["class"])):be("v-if",!0),de(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),de(d,null,{default:me(()=>[!e.renderAfterExpand||e.childNodeRendered?rt((P(),K("div",{key:0,class:V(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(P(!0),K(Be,null,nt(e.node.childNodes,h=>(P(),ke(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,Cie)),[[St,e.expanded]]):be("v-if",!0)]),_:1})],42,wie)),[[St,e.node.visible]])}var kie=Ne(bie,[["render",Sie],["__file","tree-node.vue"]]);function _ie({el$:e},t){const n=Ae("tree"),r=Mt([]),o=Mt([]);at(()=>{l()}),go(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Te(o,s=>{s.forEach(i=>{i.setAttribute("tabindex","-1")})}),Ft(e,"keydown",s=>{const i=s.target;if(!i.className.includes(n.b("node")))return;const c=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const f=r.value.indexOf(i);let d;if([qe.up,qe.down].includes(c)){if(s.preventDefault(),c===qe.up){d=f===-1?0:f!==0?f-1:r.value.length-1;const p=d;for(;!t.value.getNode(r.value[d].dataset.key).canFocus;){if(d--,d===p){d=-1;break}d<0&&(d=r.value.length-1)}}else{d=f===-1?0:f=r.value.length&&(d=0)}}d!==-1&&r.value[d].focus()}[qe.left,qe.right].includes(c)&&(s.preventDefault(),i.click());const h=i.querySelector('[type="checkbox"]');[qe.enter,qe.space].includes(c)&&h&&(s.preventDefault(),h.click())});const l=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const i=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(i.length){i[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const $ie=ue({name:"ElTree",components:{ElTreeNode:kie},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:Rt}},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:n}=bt(),r=Ae("tree"),o=X(new vie({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}));o.value.initialize();const a=X(o.value.root),l=X(null),s=X(null),i=X(null),{broadcastExpanded:c}=i$(e),{dragState:f}=yie({props:e,ctx:t,el$:s,dropIndicator$:i,store:o});_ie({el$:s},o);const d=O(()=>{const{childNodes:S}=a.value;return!S||S.length===0||S.every(({visible:I})=>!I)});Te(()=>e.currentNodeKey,S=>{o.value.setCurrentNodeKey(S)}),Te(()=>e.defaultCheckedKeys,S=>{o.value.setDefaultCheckedKey(S)}),Te(()=>e.defaultExpandedKeys,S=>{o.value.setDefaultExpandedKeys(S)}),Te(()=>e.data,S=>{o.value.setData(S)},{deep:!0}),Te(()=>e.checkStrictly,S=>{o.value.checkStrictly=S});const h=S=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(S)},p=S=>ug(e.nodeKey,S.data),g=S=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const I=o.value.getNode(S);if(!I)return[];const k=[I.data];let R=I.parent;for(;R&&R!==a.value;)k.push(R.data),R=R.parent;return k.reverse()},v=(S,I)=>o.value.getCheckedNodes(S,I),y=S=>o.value.getCheckedKeys(S),m=()=>{const S=o.value.getCurrentNode();return S?S.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const S=m();return S?S[e.nodeKey]:null},C=(S,I)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(S,I)},w=(S,I)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(S,I)},_=(S,I,k)=>{o.value.setChecked(S,I,k)},$=()=>o.value.getHalfCheckedNodes(),T=()=>o.value.getHalfCheckedKeys(),E=(S,I=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Uh(o,t.emit,()=>o.value.setUserCurrentNode(S,I))},M=(S,I=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Uh(o,t.emit,()=>o.value.setCurrentNodeKey(S,I))},x=S=>o.value.getNode(S),N=S=>{o.value.remove(S)},L=(S,I)=>{o.value.append(S,I)},A=(S,I)=>{o.value.insertBefore(S,I)},F=(S,I)=>{o.value.insertAfter(S,I)},j=(S,I,k)=>{c(I),t.emit("node-expand",S,I,k)},H=(S,I)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(S,I)};return ht("RootTree",{ctx:t,props:e,store:o,root:a,currentNode:l,instance:lt()}),ht(qr,void 0),{ns:r,store:o,root:a,currentNode:l,dragState:f,el$:s,dropIndicator$:i,isEmpty:d,filter:h,getNodeKey:p,getNodePath:g,getCheckedNodes:v,getCheckedKeys:y,getCurrentNode:m,getCurrentKey:b,setCheckedNodes:C,setCheckedKeys:w,setChecked:_,getHalfCheckedNodes:$,getHalfCheckedKeys:T,setCurrentNode:E,setCurrentKey:M,t:n,getNode:x,remove:N,append:L,insertBefore:A,insertAfter:F,handleNodeExpand:j,updateKeyChildren:H}}});function Eie(e,t,n,r,o,a){const l=ot("el-tree-node");return P(),K("div",{ref:"el$",class:V([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"},[(P(!0),K(Be,null,nt(e.root.childNodes,s=>(P(),ke(l,{key:e.getNodeKey(s),node:s,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?(P(),K("div",{key:0,class:V(e.ns.e("empty-block"))},[_e(e.$slots,"empty",{},()=>{var s;return[B("span",{class:V(e.ns.e("empty-text"))},Me((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):be("v-if",!0),rt(B("div",{ref:"dropIndicator$",class:V(e.ns.e("drop-indicator"))},null,2),[[St,e.dragState.showDropIndicator]])],2)}var qu=Ne($ie,[["render",Eie],["__file","tree.vue"]]);qu.install=e=>{e.component(qu.name,qu)};const _c=qu,Pie=_c,Tie=(e,{attrs:t,emit:n},{tree:r,key:o})=>{const a=Ae("tree-select"),l={...lo(ln(e),Object.keys(Ra.props)),...t,"onUpdate:modelValue":s=>n(ut,s),valueKey:o,popperClass:O(()=>{const s=[a.e("popper")];return e.popperClass&&s.push(e.popperClass),s.join(" ")}),filterMethod:(s="")=>{e.filterMethod&&e.filterMethod(s),Ge(()=>{var i;(i=r.value)==null||i.filter(s)})},onVisibleChange:s=>{var i;(i=t.onVisibleChange)==null||i.call(t,s),e.filterable&&s&&l.filterMethod()}};return l},xie=ue({extends:gc,setup(e,t){const n=gc.setup(e,t);delete n.selectOptionClick;const r=lt().proxy;return Ge(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Qh(e){return e||e===0}function cg(e){return Array.isArray(e)&&e.length}function cs(e){return Array.isArray(e)?e:Qh(e)?[e]:[]}function Uu(e,t,n,r,o){for(let a=0;a{Te(()=>e.modelValue,()=>{e.showCheckbox&&Ge(()=>{const h=a.value;h&&!Hn(h.getCheckedKeys(),cs(e.modelValue))&&h.setCheckedKeys(cs(e.modelValue))})},{immediate:!0,deep:!0});const s=O(()=>({value:l.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),i=(h,p)=>{var g;const v=s.value[h];return Ze(v)?v(p,(g=a.value)==null?void 0:g.getNode(i("value",p))):p[v]},c=cs(e.modelValue).map(h=>Uu(e.data||[],p=>i("value",p)===h,p=>i("children",p),(p,g,v,y)=>y&&i("value",y))).filter(h=>Qh(h)),f=O(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return c$(e.data.concat(e.cacheData),p=>{const g=i("value",p);h.push({value:g,currentLabel:i("label",p),isDisabled:i("disabled",p)})},p=>i("children",p)),h}),d=O(()=>f.value.reduce((h,p)=>({...h,[p.value]:p}),{}));return{...lo(ln(e),Object.keys(_c.props)),...t,nodeKey:l,expandOnClickNode:O(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:O(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:p,data:g,store:v})=>h(xie,{value:i("value",g),label:i("label",g),disabled:i("disabled",g)},e.renderContent?()=>e.renderContent(h,{node:p,data:g,store:v}):n.default?()=>n.default({node:p,data:g,store:v}):void 0),filterNodeMethod:(h,p,g)=>{var v;return e.filterNodeMethod?e.filterNodeMethod(h,p,g):h?(v=i("label",p))==null?void 0:v.includes(h):!0},onNodeClick:(h,p,g)=>{var v,y,m;if((v=t.onNodeClick)==null||v.call(t,h,p,g),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!i("disabled",h)){const b=(y=o.value)==null?void 0:y.options.get(i("value",h));(m=o.value)==null||m.handleOptionSelect(b)}}else e.expandOnClickNode&&g.proxy.handleExpandIconClick()},onCheck:(h,p)=>{if(!e.showCheckbox)return;const g=i("value",h),v=p.checkedKeys,y=e.multiple?cs(e.modelValue).filter(b=>b in d.value&&!a.value.getNode(b)&&!v.includes(b)):[],m=v.concat(y);if(e.checkStrictly)r(ut,e.multiple?m:m.includes(g)?g:void 0);else if(e.multiple)r(ut,a.value.getCheckedKeys(!0));else{const b=Uu([h],_=>!cg(i("children",_))&&!i("disabled",_),_=>i("children",_)),C=b?i("value",b):void 0,w=Qh(e.modelValue)&&!!Uu([h],_=>i("value",_)===e.modelValue,_=>i("children",_));r(ut,C===e.modelValue||w?void 0:C)}Ge(()=>{var b;const C=cs(e.modelValue);a.value.setCheckedKeys(C),(b=t.onCheck)==null||b.call(t,h,{checkedKeys:a.value.getCheckedKeys(),checkedNodes:a.value.getCheckedNodes(),halfCheckedKeys:a.value.getHalfCheckedKeys(),halfCheckedNodes:a.value.getHalfCheckedNodes()})})},cacheOptions:f}};var Oie=ue({props:{data:{type:Array,default:()=>[]}},setup(e){const t=We(Mi);return Te(()=>e.data,()=>{var n;e.data.forEach(o=>{t.cachedOptions.has(o.value)||t.cachedOptions.set(o.value,o)});const r=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Mie=ue({name:"ElTreeSelect",inheritAttrs:!1,props:{...Ra.props,..._c.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=X(),a=X(),l=O(()=>e.nodeKey||e.valueKey||"value"),s=Tie(e,t,{select:o,tree:a,key:l}),{cacheOptions:i,...c}=Aie(e,t,{select:o,tree:a,key:l}),f=$t({});return r(f),at(()=>{Object.assign(f,{...lo(a.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...lo(o.value,["focus","blur"])})}),()=>Ue(Ra,$t({...s,ref:d=>o.value=d}),{...n,default:()=>[Ue(Oie,{data:i.value}),Ue(_c,$t({...c,ref:d=>a.value=d}))]})}});var Yu=Ne(Mie,[["__file","tree-select.vue"]]);Yu.install=e=>{e.component(Yu.name,Yu)};const Rie=Yu,Lie=Rie,dg=Symbol(),Nie={key:-1,level:-1,data:{}};var ps=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(ps||{}),Zh=(e=>(e.ADD="add",e.DELETE="delete",e))(Zh||{});const d$={type:Number,default:26},Iie=Le({data:{type:we(Array),default:()=>Ht([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:we(Object),default:()=>Ht({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:we(Array),default:()=>Ht([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:we(Array),default:()=>Ht([])},indent:{type:Number,default:16},itemSize:d$,icon:{type:Rt},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:we([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:we(Function)},perfMode:{type:Boolean,default:!0}}),Die=Le({node:{type:we(Object),default:()=>Ht(Nie)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:d$}),Bie=Le({node:{type:we(Object),required:!0}}),f$="node-click",h$="node-expand",p$="node-collapse",v$="current-change",g$="check",m$="check-change",y$="node-contextmenu",Fie={[f$]:(e,t,n)=>e&&t&&n,[h$]:(e,t)=>e&&t,[p$]:(e,t)=>e&&t,[v$]:(e,t)=>e&&t,[g$]:(e,t)=>e&&t,[m$]:(e,t)=>e&&typeof t=="boolean",[y$]:(e,t,n)=>e&&t&&n},Vie={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function zie(e,t){const n=X(new Set),r=X(new Set),{emit:o}=lt();Te([()=>t.value,()=>e.defaultCheckedKeys],()=>Ge(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const a=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:C,maxLevel:w}=t.value,_=n.value,$=new Set;for(let T=w-1;T>=1;--T){const E=C.get(T);E&&E.forEach(M=>{const x=M.children;if(x){let N=!0,L=!1;for(const A of x){const F=A.key;if(_.has(F))L=!0;else if($.has(F)){N=!1,L=!0;break}else N=!1}N?_.add(M.key):L?($.add(M.key),_.delete(M.key)):(_.delete(M.key),$.delete(M.key))}})}r.value=$},l=C=>n.value.has(C.key),s=C=>r.value.has(C.key),i=(C,w,_=!0)=>{const $=n.value,T=(E,M)=>{$[M?Zh.ADD:Zh.DELETE](E.key);const x=E.children;!e.checkStrictly&&x&&x.forEach(N=>{N.disabled||T(N,M)})};T(C,w),a(),_&&c(C,w)},c=(C,w)=>{const{checkedNodes:_,checkedKeys:$}=g(),{halfCheckedNodes:T,halfCheckedKeys:E}=v();o(g$,C.data,{checkedKeys:$,checkedNodes:_,halfCheckedKeys:E,halfCheckedNodes:T}),o(m$,C.data,w)};function f(C=!1){return g(C).checkedKeys}function d(C=!1){return g(C).checkedNodes}function h(){return v().halfCheckedKeys}function p(){return v().halfCheckedNodes}function g(C=!1){const w=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:$}=t.value;n.value.forEach(T=>{const E=$.get(T);E&&(!C||C&&E.isLeaf)&&(_.push(T),w.push(E.data))})}return{checkedKeys:_,checkedNodes:w}}function v(){const C=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:_}=t.value;r.value.forEach($=>{const T=_.get($);T&&(w.push($),C.push(T.data))})}return{halfCheckedNodes:C,halfCheckedKeys:w}}function y(C){n.value.clear(),r.value.clear(),b(C)}function m(C,w){if(t!=null&&t.value&&e.showCheckbox){const _=t.value.treeNodeMap.get(C);_&&i(_,w,!1)}}function b(C){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&C)for(const _ of C){const $=w.get(_);$&&!l($)&&i($,!0,!1)}}}return{updateCheckedKeys:a,toggleCheckbox:i,isChecked:l,isIndeterminate:s,getCheckedKeys:f,getCheckedNodes:d,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:m,setCheckedKeys:y}}function Hie(e,t){const n=X(new Set([])),r=X(new Set([])),o=O(()=>Ze(e.filterMethod));function a(s){var i;if(!o.value)return;const c=new Set,f=r.value,d=n.value,h=[],p=((i=t.value)==null?void 0:i.treeNodes)||[],g=e.filterMethod;d.clear();function v(y){y.forEach(m=>{h.push(m),g!=null&&g(s,m.data)?h.forEach(C=>{c.add(C.key)}):m.isLeaf&&d.add(m.key);const b=m.children;if(b&&v(b),!m.isLeaf){if(!c.has(m.key))d.add(m.key);else if(b){let C=!0;for(const w of b)if(!d.has(w.key)){C=!1;break}C?f.add(m.key):f.delete(m.key)}}h.pop()})}return v(p),c}function l(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:a,isForceHiddenExpandIcon:l}}function Wie(e,t){const n=X(new Set(e.defaultExpandedKeys)),r=X(),o=Mt();Te(()=>e.currentNodeKey,ne=>{r.value=ne},{immediate:!0}),Te(()=>e.data,ne=>{fe(ne)},{immediate:!0});const{isIndeterminate:a,isChecked:l,toggleCheckbox:s,getCheckedKeys:i,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:h,setCheckedKeys:p}=zie(e,o),{doFilter:g,hiddenNodeKeySet:v,isForceHiddenExpandIcon:y}=Hie(e,o),m=O(()=>{var ne;return((ne=e.props)==null?void 0:ne.value)||ps.KEY}),b=O(()=>{var ne;return((ne=e.props)==null?void 0:ne.children)||ps.CHILDREN}),C=O(()=>{var ne;return((ne=e.props)==null?void 0:ne.disabled)||ps.DISABLED}),w=O(()=>{var ne;return((ne=e.props)==null?void 0:ne.label)||ps.LABEL}),_=O(()=>{const ne=n.value,ie=v.value,ce=[],te=o.value&&o.value.treeNodes||[];function D(){const W=[];for(let Y=te.length-1;Y>=0;--Y)W.push(te[Y]);for(;W.length;){const Y=W.pop();if(Y&&(ie.has(Y.key)||ce.push(Y),ne.has(Y.key))){const re=Y.children;if(re){const se=re.length;for(let q=se-1;q>=0;--q)W.push(re[q])}}}}return D(),ce}),$=O(()=>_.value.length>0);function T(ne){const ie=new Map,ce=new Map;let te=1;function D(Y,re=1,se=void 0){var q;const ae=[];for(const G of Y){const Q=x(G),ee={level:re,key:Q,data:G};ee.label=L(G),ee.parent=se;const le=M(G);ee.disabled=N(G),ee.isLeaf=!le||le.length===0,le&&le.length&&(ee.children=D(le,re+1,ee)),ae.push(ee),ie.set(Q,ee),ce.has(re)||ce.set(re,[]),(q=ce.get(re))==null||q.push(ee)}return re>te&&(te=re),ae}const W=D(ne);return{treeNodeMap:ie,levelTreeNodeMap:ce,maxLevel:te,treeNodes:W}}function E(ne){const ie=g(ne);ie&&(n.value=ie)}function M(ne){return ne[b.value]}function x(ne){return ne?ne[m.value]:""}function N(ne){return ne[C.value]}function L(ne){return ne[w.value]}function A(ne){n.value.has(ne.key)?k(ne):I(ne)}function F(ne){n.value=new Set(ne)}function j(ne,ie){t(f$,ne.data,ne,ie),H(ne),e.expandOnClickNode&&A(ne),e.showCheckbox&&e.checkOnClickNode&&!ne.disabled&&s(ne,!l(ne),!0)}function H(ne){Z(ne)||(r.value=ne.key,t(v$,ne.data,ne))}function S(ne,ie){s(ne,ie)}function I(ne){const ie=n.value;if(o.value&&e.accordion){const{treeNodeMap:ce}=o.value;ie.forEach(te=>{const D=ce.get(te);ne&&ne.level===(D==null?void 0:D.level)&&ie.delete(te)})}ie.add(ne.key),t(h$,ne.data,ne)}function k(ne){n.value.delete(ne.key),t(p$,ne.data,ne)}function R(ne){return n.value.has(ne.key)}function z(ne){return!!ne.disabled}function Z(ne){const ie=r.value;return ie!==void 0&&ie===ne.key}function J(){var ne,ie;if(r.value)return(ie=(ne=o.value)==null?void 0:ne.treeNodeMap.get(r.value))==null?void 0:ie.data}function oe(){return r.value}function ve(ne){r.value=ne}function fe(ne){Ge(()=>o.value=T(ne))}function U(ne){var ie;const ce=ct(ne)?x(ne):ne;return(ie=o.value)==null?void 0:ie.treeNodeMap.get(ce)}return{tree:o,flattenTree:_,isNotEmpty:$,getKey:x,getChildren:M,toggleExpand:A,toggleCheckbox:s,isExpanded:R,isChecked:l,isIndeterminate:a,isDisabled:z,isCurrent:Z,isForceHiddenExpandIcon:y,handleNodeClick:j,handleNodeCheck:S,getCurrentNode:J,getCurrentKey:oe,setCurrentKey:ve,getCheckedKeys:i,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:h,setCheckedKeys:p,filter:E,setData:fe,getNode:U,expandNode:I,collapseNode:k,setExpandedKeys:F}}var Kie=ue({name:"ElTreeNodeContent",props:Bie,setup(e){const t=We(dg),n=Ae("tree");return()=>{const r=e.node,{data:o}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:o}):Ue("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const jie=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Gie=ue({name:"ElTreeNode"}),qie=ue({...Gie,props:Die,emits:Vie,setup(e,{emit:t}){const n=e,r=We(dg),o=Ae("tree"),a=O(()=>{var d;return(d=r==null?void 0:r.props.indent)!=null?d:16}),l=O(()=>{var d;return(d=r==null?void 0:r.props.icon)!=null?d:k2}),s=d=>{t("click",n.node,d)},i=()=>{t("toggle",n.node)},c=d=>{t("check",n.node,d)},f=d=>{var h,p,g,v;(g=(p=(h=r==null?void 0:r.instance)==null?void 0:h.vnode)==null?void 0:p.props)!=null&&g.onNodeContextmenu&&(d.stopPropagation(),d.preventDefault()),r==null||r.ctx.emit(y$,d,(v=n.node)==null?void 0:v.data,n.node)};return(d,h)=>{var p,g,v;return P(),K("div",{ref:"node$",class:V([u(o).b("node"),u(o).is("expanded",d.expanded),u(o).is("current",d.current),u(o).is("focusable",!d.disabled),u(o).is("checked",!d.disabled&&d.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":d.expanded,"aria-disabled":d.disabled,"aria-checked":d.checked,"data-key":(p=d.node)==null?void 0:p.key,onClick:Ye(s,["stop"]),onContextmenu:f},[B("div",{class:V(u(o).be("node","content")),style:Fe({paddingLeft:`${(d.node.level-1)*u(a)}px`,height:d.itemSize+"px"})},[u(l)?(P(),ke(u(je),{key:0,class:V([u(o).is("leaf",!!((g=d.node)!=null&&g.isLeaf)),u(o).is("hidden",d.hiddenExpandIcon),{expanded:!((v=d.node)!=null&&v.isLeaf)&&d.expanded},u(o).be("node","expand-icon")]),onClick:Ye(i,["stop"])},{default:me(()=>[(P(),ke(dt(u(l))))]),_:1},8,["class","onClick"])):be("v-if",!0),d.showCheckbox?(P(),ke(u(vr),{key:1,"model-value":d.checked,indeterminate:d.indeterminate,disabled:d.disabled,onChange:c,onClick:h[0]||(h[0]=Ye(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):be("v-if",!0),de(u(Kie),{node:d.node},null,8,["node"])],6)],42,jie)}}});var Uie=Ne(qie,[["__file","tree-node.vue"]]);const Yie=ue({name:"ElTreeV2"}),Xie=ue({...Yie,props:Iie,emits:Fie,setup(e,{expose:t,emit:n}){const r=e,o=mn(),a=O(()=>r.itemSize);ht(dg,{ctx:{emit:n,slots:o},props:r,instance:lt()}),ht(qr,void 0);const{t:l}=bt(),s=Ae("tree"),{flattenTree:i,isNotEmpty:c,toggleExpand:f,isExpanded:d,isIndeterminate:h,isChecked:p,isDisabled:g,isCurrent:v,isForceHiddenExpandIcon:y,handleNodeClick:m,handleNodeCheck:b,toggleCheckbox:C,getCurrentNode:w,getCurrentKey:_,setCurrentKey:$,getCheckedKeys:T,getCheckedNodes:E,getHalfCheckedKeys:M,getHalfCheckedNodes:x,setChecked:N,setCheckedKeys:L,filter:A,setData:F,getNode:j,expandNode:H,collapseNode:S,setExpandedKeys:I}=Wie(r,n);return t({toggleCheckbox:C,getCurrentNode:w,getCurrentKey:_,setCurrentKey:$,getCheckedKeys:T,getCheckedNodes:E,getHalfCheckedKeys:M,getHalfCheckedNodes:x,setChecked:N,setCheckedKeys:L,filter:A,setData:F,getNode:j,expandNode:H,collapseNode:S,setExpandedKeys:I}),(k,R)=>{var z;return P(),K("div",{class:V([u(s).b(),{[u(s).m("highlight-current")]:k.highlightCurrent}]),role:"tree"},[u(c)?(P(),ke(u(k_),{key:0,"class-name":u(s).b("virtual-list"),data:u(i),total:u(i).length,height:k.height,"item-size":u(a),"perf-mode":k.perfMode},{default:me(({data:Z,index:J,style:oe})=>[(P(),ke(Uie,{key:Z[J].key,style:Fe(oe),node:Z[J],expanded:u(d)(Z[J]),"show-checkbox":k.showCheckbox,checked:u(p)(Z[J]),indeterminate:u(h)(Z[J]),"item-size":u(a),disabled:u(g)(Z[J]),current:u(v)(Z[J]),"hidden-expand-icon":u(y)(Z[J]),onClick:u(m),onToggle:u(f),onCheck:u(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(P(),K("div",{key:1,class:V(u(s).e("empty-block"))},[B("span",{class:V(u(s).e("empty-text"))},Me((z=k.emptyText)!=null?z:u(l)("el.tree.emptyText")),3)],2))],2)}}});var Qie=Ne(Xie,[["__file","tree.vue"]]);const Zie=it(Qie),b$=Symbol("uploadContextKey"),Jie="ElUpload";class eue extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function H1(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new eue(r,n.status,t.method,e)}function tue(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const nue=e=>{typeof XMLHttpRequest>"u"&&rn(Jie,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",a=>{const l=a;l.percent=a.total>0?a.loaded/a.total*100:0,e.onProgress(l)});const r=new FormData;if(e.data)for(const[a,l]of Object.entries(e.data))Ke(l)&&l.length?r.append(a,...l):r.append(a,l);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(H1(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(H1(n,e,t));e.onSuccess(tue(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((a,l)=>t.setRequestHeader(l,a));else for(const[a,l]of Object.entries(o))en(l)||t.setRequestHeader(a,String(l));return t.send(r),t},w$=["text","picture","picture-card"];let rue=1;const Jh=()=>Date.now()+rue++,C$=Le({action:{type:String,default:"#"},headers:{type:we(Object)},method:{type:String,default:"post"},data:{type:we([Object,Function,Promise]),default:()=>Ht({})},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:""},fileList:{type:we(Array),default:()=>Ht([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:w$,default:"text"},httpRequest:{type:we(Function),default:nue},disabled:Boolean,limit:Number}),oue=Le({...C$,beforeUpload:{type:we(Function),default:At},beforeRemove:{type:we(Function)},onRemove:{type:we(Function),default:At},onChange:{type:we(Function),default:At},onPreview:{type:we(Function),default:At},onSuccess:{type:we(Function),default:At},onProgress:{type:we(Function),default:At},onError:{type:we(Function),default:At},onExceed:{type:we(Function),default:At}}),aue=Le({files:{type:we(Array),default:()=>Ht([])},disabled:{type:Boolean,default:!1},handlePreview:{type:we(Function),default:At},listType:{type:String,values:w$,default:"text"}}),lue={remove:e=>!!e},sue=["onKeydown"],iue=["src"],uue=["onClick"],cue=["title"],due=["onClick"],fue=["onClick"],hue=ue({name:"ElUploadList"}),pue=ue({...hue,props:aue,emits:lue,setup(e,{emit:t}){const n=e,{t:r}=bt(),o=Ae("upload"),a=Ae("icon"),l=Ae("list"),s=Un(),i=X(!1),c=O(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)]),f=d=>{t("remove",d)};return(d,h)=>(P(),ke(Qw,{tag:"ul",class:V(u(c)),name:u(l).b()},{default:me(()=>[(P(!0),K(Be,null,nt(d.files,p=>(P(),K("li",{key:p.uid||p.name,class:V([u(o).be("list","item"),u(o).is(p.status),{focusing:i.value}]),tabindex:"0",onKeydown:wt(g=>!u(s)&&f(p),["delete"]),onFocus:h[0]||(h[0]=g=>i.value=!0),onBlur:h[1]||(h[1]=g=>i.value=!1),onClick:h[2]||(h[2]=g=>i.value=!1)},[_e(d.$slots,"default",{file:p},()=>[d.listType==="picture"||p.status!=="uploading"&&d.listType==="picture-card"?(P(),K("img",{key:0,class:V(u(o).be("list","item-thumbnail")),src:p.url,alt:""},null,10,iue)):be("v-if",!0),p.status==="uploading"||d.listType!=="picture-card"?(P(),K("div",{key:1,class:V(u(o).be("list","item-info"))},[B("a",{class:V(u(o).be("list","item-name")),onClick:Ye(g=>d.handlePreview(p),["prevent"])},[de(u(je),{class:V(u(a).m("document"))},{default:me(()=>[de(u(Oz))]),_:1},8,["class"]),B("span",{class:V(u(o).be("list","item-file-name")),title:p.name},Me(p.name),11,cue)],10,uue),p.status==="uploading"?(P(),ke(u(p_),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Fe(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):be("v-if",!0)],2)):be("v-if",!0),B("label",{class:V(u(o).be("list","item-status-label"))},[d.listType==="text"?(P(),ke(u(je),{key:0,class:V([u(a).m("upload-success"),u(a).m("circle-check")])},{default:me(()=>[de(u(ov))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(P(),ke(u(je),{key:1,class:V([u(a).m("upload-success"),u(a).m("check")])},{default:me(()=>[de(u(Pi))]),_:1},8,["class"])):be("v-if",!0)],2),u(s)?be("v-if",!0):(P(),ke(u(je),{key:2,class:V(u(a).m("close")),onClick:g=>f(p)},{default:me(()=>[de(u(Ar))]),_:2},1032,["class","onClick"])),be(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),be(" This is a bug which needs to be fixed "),be(" TODO: Fix the incorrect navigation interaction "),u(s)?be("v-if",!0):(P(),K("i",{key:3,class:V(u(a).m("close-tip"))},Me(u(r)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(P(),K("span",{key:4,class:V(u(o).be("list","item-actions"))},[B("span",{class:V(u(o).be("list","item-preview")),onClick:g=>d.handlePreview(p)},[de(u(je),{class:V(u(a).m("zoom-in"))},{default:me(()=>[de(u(P2))]),_:1},8,["class"])],10,due),u(s)?be("v-if",!0):(P(),K("span",{key:0,class:V(u(o).be("list","item-delete")),onClick:g=>f(p)},[de(u(je),{class:V(u(a).m("delete"))},{default:me(()=>[de(u(xz))]),_:1},8,["class"])],10,fue))],2)):be("v-if",!0)])],42,sue))),128)),_e(d.$slots,"append")]),_:3},8,["class","name"]))}});var W1=Ne(pue,[["__file","upload-list.vue"]]);const vue=Le({disabled:{type:Boolean,default:!1}}),gue={file:e=>Ke(e)},mue=["onDrop","onDragover"],S$="ElUploadDrag",yue=ue({name:S$}),bue=ue({...yue,props:vue,emits:gue,setup(e,{emit:t}){const n=We(b$);n||rn(S$,"usage: ");const r=Ae("upload"),o=X(!1),a=Un(),l=i=>{if(a.value)return;o.value=!1,i.stopPropagation();const c=Array.from(i.dataTransfer.files),f=n.accept.value;if(!f){t("file",c);return}const d=c.filter(h=>{const{type:p,name:g}=h,v=g.includes(".")?`.${g.split(".").pop()}`:"",y=p.replace(/\/.*$/,"");return f.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?v===m:/\/\*$/.test(m)?y===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?p===m:!1)});t("file",d)},s=()=>{a.value||(o.value=!0)};return(i,c)=>(P(),K("div",{class:V([u(r).b("dragger"),u(r).is("dragover",o.value)]),onDrop:Ye(l,["prevent"]),onDragover:Ye(s,["prevent"]),onDragleave:c[0]||(c[0]=Ye(f=>o.value=!1,["prevent"]))},[_e(i.$slots,"default")],42,mue))}});var wue=Ne(bue,[["__file","upload-dragger.vue"]]);const Cue=Le({...C$,beforeUpload:{type:we(Function),default:At},onRemove:{type:we(Function),default:At},onStart:{type:we(Function),default:At},onSuccess:{type:we(Function),default:At},onProgress:{type:we(Function),default:At},onError:{type:we(Function),default:At},onExceed:{type:we(Function),default:At}}),Sue=["onKeydown"],kue=["name","multiple","accept"],_ue=ue({name:"ElUploadContent",inheritAttrs:!1}),$ue=ue({..._ue,props:Cue,setup(e,{expose:t}){const n=e,r=Ae("upload"),o=Un(),a=Mt({}),l=Mt(),s=v=>{if(v.length===0)return;const{autoUpload:y,limit:m,fileList:b,multiple:C,onStart:w,onExceed:_}=n;if(m&&b.length+v.length>m){_(v,b);return}C||(v=v.slice(0,1));for(const $ of v){const T=$;T.uid=Jh(),w(T),y&&i(T)}},i=async v=>{if(l.value.value="",!n.beforeUpload)return f(v);let y,m={};try{const C=n.data,w=n.beforeUpload(v);m=Xu(n.data)?uc(n.data):n.data,y=await w,Xu(n.data)&&Hn(C,m)&&(m=uc(n.data))}catch{y=!1}if(y===!1){n.onRemove(v);return}let b=v;y instanceof Blob&&(y instanceof File?b=y:b=new File([y],v.name,{type:v.type})),f(Object.assign(b,{uid:v.uid}),m)},c=async(v,y)=>Ze(v)?v(y):v,f=async(v,y)=>{const{headers:m,data:b,method:C,withCredentials:w,name:_,action:$,onProgress:T,onSuccess:E,onError:M,httpRequest:x}=n;try{y=await c(y??b,v)}catch{n.onRemove(v);return}const{uid:N}=v,L={headers:m||{},withCredentials:w,file:v,data:y,method:C,filename:_,action:$,onProgress:F=>{T(F,v)},onSuccess:F=>{E(F,v),delete a.value[N]},onError:F=>{M(F,v),delete a.value[N]}},A=x(L);a.value[N]=A,A instanceof Promise&&A.then(L.onSuccess,L.onError)},d=v=>{const y=v.target.files;y&&s(Array.from(y))},h=()=>{o.value||(l.value.value="",l.value.click())},p=()=>{h()};return t({abort:v=>{oz(a.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,b])=>{b instanceof XMLHttpRequest&&b.abort(),delete a.value[m]})},upload:i}),(v,y)=>(P(),K("div",{class:V([u(r).b(),u(r).m(v.listType),u(r).is("drag",v.drag)]),tabindex:"0",onClick:h,onKeydown:wt(Ye(p,["self"]),["enter","space"])},[v.drag?(P(),ke(wue,{key:0,disabled:u(o),onFile:s},{default:me(()=>[_e(v.$slots,"default")]),_:3},8,["disabled"])):_e(v.$slots,"default",{key:1}),B("input",{ref_key:"inputRef",ref:l,class:V(u(r).e("input")),name:v.name,multiple:v.multiple,accept:v.accept,type:"file",onChange:d,onClick:y[0]||(y[0]=Ye(()=>{},["stop"]))},null,42,kue)],42,Sue))}});var K1=Ne($ue,[["__file","upload-content.vue"]]);const j1="ElUpload",G1=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Eue=(e,t)=>{const n=jI(e,"fileList",void 0,{passive:!0}),r=h=>n.value.find(p=>p.uid===h.uid);function o(h){var p;(p=t.value)==null||p.abort(h)}function a(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}const l=(h,p)=>{const g=r(p);g&&(console.error(h),g.status="fail",n.value.splice(n.value.indexOf(g),1),e.onError(h,g,n.value),e.onChange(g,n.value))},s=(h,p)=>{const g=r(p);g&&(e.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},i=(h,p)=>{const g=r(p);g&&(g.status="success",g.response=h,e.onSuccess(h,g,n.value),e.onChange(g,n.value))},c=h=>{en(h.uid)&&(h.uid=Jh());const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(g){g.message,e.onError(g,p,n.value)}n.value=[...n.value,p],e.onChange(p,n.value)},f=async h=>{const p=h instanceof File?r(h):h;p||rn(j1,"file to be removed not found");const g=v=>{o(v);const y=n.value;y.splice(y.indexOf(v),1),e.onRemove(v,y),G1(v)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&g(p):g(p)};function d(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=t.value)==null?void 0:p.upload(h))})}return Te(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:g,url:v}=p;if(!v&&g)try{p.url=URL.createObjectURL(g)}catch(y){e.onError(y,p,n.value)}return p}))}),Te(n,h=>{for(const p of h)p.uid||(p.uid=Jh()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:a,handleError:l,handleProgress:s,handleStart:c,handleSuccess:i,handleRemove:f,submit:d,revokeFileObjectURL:G1}},Pue=ue({name:"ElUpload"}),Tue=ue({...Pue,props:oue,setup(e,{expose:t}){const n=e,r=Un(),o=Mt(),{abort:a,submit:l,clearFiles:s,uploadFiles:i,handleStart:c,handleError:f,handleRemove:d,handleSuccess:h,handleProgress:p,revokeFileObjectURL:g}=Eue(n,o),v=O(()=>n.listType==="picture-card"),y=O(()=>({...n,fileList:i.value,onStart:c,onProgress:p,onSuccess:h,onError:f,onRemove:d}));return Dt(()=>{i.value.forEach(g)}),ht(b$,{accept:Wt(n,"accept")}),t({abort:a,submit:l,clearFiles:s,handleStart:c,handleRemove:d}),(m,b)=>(P(),K("div",null,[u(v)&&m.showFileList?(P(),ke(W1,{key:0,disabled:u(r),"list-type":m.listType,files:u(i),"handle-preview":m.onPreview,onRemove:u(d)},Hr({append:me(()=>[de(K1,ft({ref_key:"uploadRef",ref:o},u(y)),{default:me(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):be("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:me(({file:C})=>[_e(m.$slots,"file",{file:C})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0),!u(v)||u(v)&&!m.showFileList?(P(),ke(K1,ft({key:1,ref_key:"uploadRef",ref:o},u(y)),{default:me(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):be("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)):be("v-if",!0),m.$slots.trigger?_e(m.$slots,"default",{key:2}):be("v-if",!0),_e(m.$slots,"tip"),!u(v)&&m.showFileList?(P(),ke(W1,{key:3,disabled:u(r),"list-type":m.listType,files:u(i),"handle-preview":m.onPreview,onRemove:u(d)},Hr({_:2},[m.$slots.file?{name:"default",fn:me(({file:C})=>[_e(m.$slots,"file",{file:C})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0)]))}});var xue=Ne(Tue,[["__file","upload.vue"]]);const Aue=it(xue),Oue=Le({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:we([String,Array]),default:"Element Plus"},font:{type:we(Object)},gap:{type:we(Array),default:()=>[100,100]},offset:{type:we(Array)}});function Mue(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Rue(e){return Object.keys(e).map(t=>`${Mue(t)}: ${e[t]};`).join(" ")}function Lue(){return window.devicePixelRatio||1}const Nue=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},k$=3;function Af(e,t,n=1){const r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,l=t*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${l}px`),o.save(),[o,r,a,l]}function Iue(){function e(t,n,r,o,a,l,s,i){const[c,f,d,h]=Af(o,a,r);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,d,h);else{const{color:z,fontSize:Z,fontStyle:J,fontWeight:oe,fontFamily:ve,textAlign:fe,textBaseline:U}=l,ne=Number(Z)*r;c.font=`${J} normal ${oe} ${ne}px/${a}px ${ve}`,c.fillStyle=z,c.textAlign=fe,c.textBaseline=U;const ie=Array.isArray(t)?t:[t];ie==null||ie.forEach((ce,te)=>{c.fillText(ce??"",d/2,te*(ne+k$*r))})}const p=Math.PI/180*Number(n),g=Math.max(o,a),[v,y,m]=Af(g,g,r);v.translate(m/2,m/2),v.rotate(p),d>0&&h>0&&v.drawImage(f,-d/2,-h/2);function b(z,Z){const J=z*Math.cos(p)-Z*Math.sin(p),oe=z*Math.sin(p)+Z*Math.cos(p);return[J,oe]}let C=0,w=0,_=0,$=0;const T=d/2,E=h/2;[[0-T,0-E],[0+T,0-E],[0+T,0+E],[0-T,0+E]].forEach(([z,Z])=>{const[J,oe]=b(z,Z);C=Math.min(C,J),w=Math.max(w,J),_=Math.min(_,oe),$=Math.max($,oe)});const x=C+m/2,N=_+m/2,L=w-C,A=$-_,F=s*r,j=i*r,H=(L+F)*2,S=A+j,[I,k]=Af(H,S);function R(z=0,Z=0){I.drawImage(y,x,N,L,A,z,Z,L,A)}return R(),R(L+F,-A/2-j/2),R(L+F,+A/2+j/2),[k.toDataURL(),H/r,S/r]}return e}const Due=ue({name:"ElWatermark"}),Bue=ue({...Due,props:Oue,setup(e){const t=e,n={position:"relative"},r=O(()=>{var x,N;return(N=(x=t.font)==null?void 0:x.color)!=null?N:"rgba(0,0,0,.15)"}),o=O(()=>{var x,N;return(N=(x=t.font)==null?void 0:x.fontSize)!=null?N:16}),a=O(()=>{var x,N;return(N=(x=t.font)==null?void 0:x.fontWeight)!=null?N:"normal"}),l=O(()=>{var x,N;return(N=(x=t.font)==null?void 0:x.fontStyle)!=null?N:"normal"}),s=O(()=>{var x,N;return(N=(x=t.font)==null?void 0:x.fontFamily)!=null?N:"sans-serif"}),i=O(()=>{var x,N;return(N=(x=t.font)==null?void 0:x.textAlign)!=null?N:"center"}),c=O(()=>{var x,N;return(N=(x=t.font)==null?void 0:x.textBaseline)!=null?N:"top"}),f=O(()=>t.gap[0]),d=O(()=>t.gap[1]),h=O(()=>f.value/2),p=O(()=>d.value/2),g=O(()=>{var x,N;return(N=(x=t.offset)==null?void 0:x[0])!=null?N:h.value}),v=O(()=>{var x,N;return(N=(x=t.offset)==null?void 0:x[1])!=null?N:p.value}),y=()=>{const x={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let N=g.value-h.value,L=v.value-p.value;return N>0&&(x.left=`${N}px`,x.width=`calc(100% - ${N}px)`,N=0),L>0&&(x.top=`${L}px`,x.height=`calc(100% - ${L}px)`,L=0),x.backgroundPosition=`${N}px ${L}px`,x},m=Mt(null),b=Mt(),C=X(!1),w=()=>{b.value&&(b.value.remove(),b.value=void 0)},_=(x,N)=>{var L;m.value&&b.value&&(C.value=!0,b.value.setAttribute("style",Rue({...y(),backgroundImage:`url('${x}')`,backgroundSize:`${Math.floor(N)}px`})),(L=m.value)==null||L.append(b.value),setTimeout(()=>{C.value=!1}))},$=x=>{let N=120,L=64;const A=t.image,F=t.content,j=t.width,H=t.height;if(!A&&x.measureText){x.font=`${Number(o.value)}px ${s.value}`;const S=Array.isArray(F)?F:[F],I=S.map(k=>{const R=x.measureText(k);return[R.width,R.fontBoundingBoxAscent!==void 0?R.fontBoundingBoxAscent+R.fontBoundingBoxDescent:R.actualBoundingBoxAscent+R.actualBoundingBoxDescent]});N=Math.ceil(Math.max(...I.map(k=>k[0]))),L=Math.ceil(Math.max(...I.map(k=>k[1])))*S.length+(S.length-1)*k$}return[j??N,H??L]},T=Iue(),E=()=>{const N=document.createElement("canvas").getContext("2d"),L=t.image,A=t.content,F=t.rotate;if(N){b.value||(b.value=document.createElement("div"));const j=Lue(),[H,S]=$(N),I=k=>{const[R,z]=T(k||"",F,j,H,S,{color:r.value,fontSize:o.value,fontStyle:l.value,fontWeight:a.value,fontFamily:s.value,textAlign:i.value,textBaseline:c.value},f.value,d.value);_(R,z)};if(L){const k=new Image;k.onload=()=>{I(k)},k.onerror=()=>{I(A)},k.crossOrigin="anonymous",k.referrerPolicy="no-referrer",k.src=L}else I(A)}};return at(()=>{E()}),Te(()=>t,()=>{E()},{deep:!0,flush:"post"}),Dt(()=>{w()}),FI(m,x=>{C.value||x.forEach(N=>{Nue(N,b.value)&&(w(),E())})},{attributes:!0,subtree:!0,childList:!0}),(x,N)=>(P(),K("div",{ref_key:"containerRef",ref:m,style:Fe([n])},[_e(x.$slots,"default")],4))}});var Fue=Ne(Bue,[["__file","watermark.vue"]]);const Vue=it(Fue);var zue=[RW,KW,gj,qle,kj,Aj,MS,Wj,Kj,Sn,FS,uq,pq,Tq,xq,HU,TU,UU,vr,Uq,hk,lY,_Y,$Y,gY,tX,$W,hX,pX,vX,gX,mX,DQ,UQ,YQ,dZ,Uk,$Z,gJ,mJ,yJ,r_,D7,B7,je,cee,o_,_n,a_,_ee,Kee,jee,Gee,qee,ete,lne,fne,Cne,xS,p_,wk,cU,uU,Bne,Wne,tY,wo,Ra,gc,Mte,Mre,Vre,zre,moe,Soe,R_,Roe,Hoe,Woe,eae,ile,ule,Gle,ise,use,li,pse,zG,wse,$se,Ese,Nn,Zse,hie,Pie,Lie,Zie,Aue,Vue];const Sr="ElInfiniteScroll",Hue=50,Wue=200,Kue=0,jue={delay:{type:Number,default:Wue},distance:{type:Number,default:Kue},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},fg=(e,t)=>Object.entries(jue).reduce((n,[r,o])=>{var a,l;const{type:s,default:i}=o,c=e.getAttribute(`infinite-scroll-${r}`);let f=(l=(a=t[c])!=null?a:c)!=null?l:i;return f=f==="false"?!1:f,f=s(f),n[r]=Number.isNaN(f)?i:f,n},{}),_$=e=>{const{observer:t}=e[Sr];t&&(t.disconnect(),delete e[Sr].observer)},Gue=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:a,lastScrollTop:l}=e[Sr],{disabled:s,distance:i}=fg(e,o),{clientHeight:c,scrollHeight:f,scrollTop:d}=r,h=d-l;if(e[Sr].lastScrollTop=d,a||s||h<0)return;let p=!1;if(n===e)p=f-(c+d)<=i;else{const{clientTop:g,scrollHeight:v}=e,y=YI(e,r);p=d+c>=y+g+v-i}p&&t.call(o)};function Of(e,t){const{containerEl:n,instance:r}=e[Sr],{disabled:o}=fg(e,r);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):_$(e))}const que={async mounted(e,t){const{instance:n,value:r}=t;Ze(r)||rn(Sr,"'v-infinite-scroll' binding value must be a function"),await Ge();const{delay:o,immediate:a}=fg(e,n),l=rv(e,!0),s=l===window?document.documentElement:l,i=ka(Gue.bind(null,e,r),o);if(l){if(e[Sr]={instance:n,container:l,containerEl:s,delay:o,cb:r,onScroll:i,lastScrollTop:s.scrollTop},a){const c=new MutationObserver(ka(Of.bind(null,e,r),Hue));e[Sr].observer=c,c.observe(e,{childList:!0,subtree:!0}),Of(e,r)}l.addEventListener("scroll",i)}},unmounted(e){const{container:t,onScroll:n}=e[Sr];t==null||t.removeEventListener("scroll",n),_$(e)},async updated(e){if(!e[Sr])await Ge();else{const{containerEl:t,cb:n,observer:r}=e[Sr];t.clientHeight&&r&&Of(e,n)}}},ep=que;ep.install=e=>{e.directive("InfiniteScroll",ep)};const Uue=ep;function Yue(e){let t;const n=X(!1),r=$t({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(h){r.text=h}function a(){const h=r.parent,p=d.ns;if(!h.vLoadingAddClassList){let g=h.getAttribute("loading-number");g=Number.parseInt(g)-1,g?h.setAttribute("loading-number",g.toString()):(Wn(h,p.bm("parent","relative")),h.removeAttribute("loading-number")),Wn(h,p.bm("parent","hidden"))}l(),f.unmount()}function l(){var h,p;(p=(h=d.$el)==null?void 0:h.parentNode)==null||p.removeChild(d.$el)}function s(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(i,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function i(){if(!n.value)return;const h=r.parent;n.value=!1,h.vLoadingAddClassList=void 0,a()}const f=eC(ue({name:"ElLoading",setup(h,{expose:p}){const{ns:g,zIndex:v}=ld("loading");return p({ns:g,zIndex:v}),()=>{const y=r.spinner||r.svg,m=Ue("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Ue("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?Ue("p",{class:g.b("text")},[r.text]):void 0;return Ue(Jt,{name:g.b("fade"),onAfterLeave:i},{default:me(()=>[rt(de("div",{style:{backgroundColor:r.background||""},class:[g.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Ue("div",{class:g.b("spinner")},[m,b])]),[[St,r.visible]])])})}}})),d=f.mount(document.createElement("div"));return{...ln(r),setText:o,removeElLoadingChild:l,close:s,handleAfterLeave:i,vm:d,get $el(){return d.$el}}}let yu;const tp=function(e={}){if(!yt)return;const t=Xue(e);if(t.fullscreen&&yu)return yu;const n=Yue({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(yu=void 0)}});Que(t,t.parent,n),q1(t,t.parent,n),t.parent.vLoadingAddClassList=()=>q1(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Ge(()=>n.visible.value=t.visible),t.fullscreen&&(yu=n),n},Xue=e=>{var t,n,r,o;let a;return tt(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,target:a}},Que=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Ro(document.body,"position"),n.originalOverflow.value=Ro(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Ro(document.body,"position"),await Ge();for(const a of["top","left"]){const l=a==="top"?"scrollTop":"scrollLeft";o[a]=`${e.target.getBoundingClientRect()[a]+document.body[l]+document.documentElement[l]-Number.parseInt(Ro(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])o[a]=`${e.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=Ro(t,"position");for(const[a,l]of Object.entries(o))n.$el.style[a]=l},q1=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Wn(t,r.bm("parent","relative")):Fr(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Fr(t,r.bm("parent","hidden")):Wn(t,r.bm("parent","hidden"))},np=Symbol("ElLoading"),U1=(e,t)=>{var n,r,o,a;const l=t.instance,s=h=>ct(t.value)?t.value[h]:void 0,i=h=>{const p=tt(h)&&(l==null?void 0:l[h])||h;return p&&X(p)},c=h=>i(s(h)||e.getAttribute(`element-loading-${qo(h)}`)),f=(n=s("fullscreen"))!=null?n: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:(r=s("target"))!=null?r:f?void 0:e,body:(o=s("body"))!=null?o:t.modifiers.body,lock:(a=s("lock"))!=null?a:t.modifiers.lock};e[np]={options:d,instance:tp(d)}},Zue=(e,t)=>{for(const n of Object.keys(t))xt(t[n])&&(t[n].value=e[n])},Y1={mounted(e,t){t.value&&U1(e,t)},updated(e,t){const n=e[np];t.oldValue!==t.value&&(t.value&&!t.oldValue?U1(e,t):t.value&&t.oldValue?ct(t.value)&&Zue(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[np])==null||t.instance.close()}},Jue={install(e){e.directive("loading",Y1),e.config.globalProperties.$loading=tp},directive:Y1,service:tp},$$=["success","info","warning","error"],Fn=Ht({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:yt?document.body:void 0}),ece=Le({customClass:{type:String,default:Fn.customClass},center:{type:Boolean,default:Fn.center},dangerouslyUseHTMLString:{type:Boolean,default:Fn.dangerouslyUseHTMLString},duration:{type:Number,default:Fn.duration},icon:{type:Rt,default:Fn.icon},id:{type:String,default:Fn.id},message:{type:we([String,Object,Function]),default:Fn.message},onClose:{type:we(Function),required:!1},showClose:{type:Boolean,default:Fn.showClose},type:{type:String,values:$$,default:Fn.type},offset:{type:Number,default:Fn.offset},zIndex:{type:Number,default:Fn.zIndex},grouping:{type:Boolean,default:Fn.grouping},repeatNum:{type:Number,default:Fn.repeatNum}}),tce={destroy:()=>!0},Er=gp([]),nce=e=>{const t=Er.findIndex(o=>o.id===e),n=Er[t];let r;return t>0&&(r=Er[t-1]),{current:n,prev:r}},rce=e=>{const{prev:t}=nce(e);return t?t.vm.exposed.bottom.value:0},oce=(e,t)=>Er.findIndex(r=>r.id===e)>0?20:t,ace=["id"],lce=["innerHTML"],sce=ue({name:"ElMessage"}),ice=ue({...sce,props:ece,emits:tce,setup(e,{expose:t}){const n=e,{Close:r}=sv,{ns:o,zIndex:a}=ld("message"),{currentZIndex:l,nextZIndex:s}=a,i=X(),c=X(!1),f=X(0);let d;const h=O(()=>n.type?n.type==="error"?"danger":n.type:"info"),p=O(()=>{const T=n.type;return{[o.bm("icon",T)]:T&&Ko[T]}}),g=O(()=>n.icon||Ko[n.type]||""),v=O(()=>rce(n.id)),y=O(()=>oce(n.id,n.offset)+v.value),m=O(()=>f.value+y.value),b=O(()=>({top:`${y.value}px`,zIndex:l.value}));function C(){n.duration!==0&&({stop:d}=Aa(()=>{_()},n.duration))}function w(){d==null||d()}function _(){c.value=!1}function $({code:T}){T===qe.esc&&_()}return at(()=>{C(),s(),c.value=!0}),Te(()=>n.repeatNum,()=>{w(),C()}),Ft(document,"keydown",$),$n(i,()=>{f.value=i.value.getBoundingClientRect().height}),t({visible:c,bottom:m,close:_}),(T,E)=>(P(),ke(Jt,{name:u(o).b("fade"),onBeforeLeave:T.onClose,onAfterLeave:E[0]||(E[0]=M=>T.$emit("destroy")),persisted:""},{default:me(()=>[rt(B("div",{id:T.id,ref_key:"messageRef",ref:i,class:V([u(o).b(),{[u(o).m(T.type)]:T.type&&!T.icon},u(o).is("center",T.center),u(o).is("closable",T.showClose),T.customClass]),style:Fe(u(b)),role:"alert",onMouseenter:w,onMouseleave:C},[T.repeatNum>1?(P(),ke(u(MS),{key:0,value:T.repeatNum,type:u(h),class:V(u(o).e("badge"))},null,8,["value","type","class"])):be("v-if",!0),u(g)?(P(),ke(u(je),{key:1,class:V([u(o).e("icon"),u(p)])},{default:me(()=>[(P(),ke(dt(u(g))))]),_:1},8,["class"])):be("v-if",!0),_e(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(P(),K(Be,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),B("p",{class:V(u(o).e("content")),innerHTML:T.message},null,10,lce)],2112)):(P(),K("p",{key:0,class:V(u(o).e("content"))},Me(T.message),3))]),T.showClose?(P(),ke(u(je),{key:2,class:V(u(o).e("closeBtn")),onClick:Ye(_,["stop"])},{default:me(()=>[de(u(r))]),_:1},8,["class","onClick"])):be("v-if",!0)],46,ace),[[St,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var uce=Ne(ice,[["__file","message.vue"]]);let cce=1;const E$=e=>{const t=!e||tt(e)||Vt(e)||Ze(e)?{message:e}:e,n={...Fn,...t};if(!n.appendTo)n.appendTo=document.body;else if(tt(n.appendTo)){let r=document.querySelector(n.appendTo);dr(r)||(r=document.body),n.appendTo=r}return n},dce=e=>{const t=Er.indexOf(e);if(t===-1)return;Er.splice(t,1);const{handler:n}=e;n.close()},fce=({appendTo:e,...t},n)=>{const r=`message_${cce++}`,o=t.onClose,a=document.createElement("div"),l={...t,id:r,onClose:()=>{o==null||o(),dce(f)},onDestroy:()=>{yl(null,a)}},s=de(uce,l,Ze(l.message)||Vt(l.message)?{default:Ze(l.message)?l.message:()=>l.message}:null);s.appContext=n||Ll._context,yl(s,a),e.appendChild(a.firstElementChild);const i=s.component,f={id:r,vnode:s,vm:i,handler:{close:()=>{i.exposed.visible.value=!1}},props:s.component.props};return f},Ll=(e={},t)=>{if(!yt)return{close:()=>{}};if(Xe(lh.max)&&Er.length>=lh.max)return{close:()=>{}};const n=E$(e);if(n.grouping&&Er.length){const o=Er.find(({vnode:a})=>{var l;return((l=a.props)==null?void 0:l.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const r=fce(n,t);return Er.push(r),r.handler};$$.forEach(e=>{Ll[e]=(t={},n)=>{const r=E$(t);return Ll({...r,type:e},n)}});function hce(e){for(const t of Er)(!e||e===t.props.type)&&t.handler.close()}Ll.closeAll=hce;Ll._context=null;const pce=A2(Ll,"$message"),vce=ue({name:"ElMessageBox",directives:{TrapFocus:kG},components:{ElButton:Sn,ElFocusTrap:id,ElInput:_n,ElOverlay:Fv,ElIcon:je,...sv},inheritAttrs:!1,props:{buttonSize:{type:String,validator:uv},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:a}=ld("message-box",O(()=>e.buttonSize)),{t:l}=n,{nextZIndex:s}=r,i=X(!1),c=$t({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),f=O(()=>{const j=c.type;return{[o.bm("icon",j)]:j&&Ko[j]}}),d=qn(),h=qn(),p=O(()=>c.icon||Ko[c.type]||""),g=O(()=>!!c.message),v=X(),y=X(),m=X(),b=X(),C=X(),w=O(()=>c.confirmButtonClass);Te(()=>c.inputValue,async j=>{await Ge(),e.boxType==="prompt"&&j!==null&&N()},{immediate:!0}),Te(()=>i.value,j=>{var H,S;j&&(e.boxType!=="prompt"&&(c.autofocus?m.value=(S=(H=C.value)==null?void 0:H.$el)!=null?S:v.value:m.value=v.value),c.zIndex=s()),e.boxType==="prompt"&&(j?Ge().then(()=>{var I;b.value&&b.value.$el&&(c.autofocus?m.value=(I=L())!=null?I:v.value:m.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const _=O(()=>e.draggable);O2(v,y,_),at(async()=>{await Ge(),e.closeOnHashChange&&window.addEventListener("hashchange",$)}),Dt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",$)});function $(){i.value&&(i.value=!1,Ge(()=>{c.action&&t("action",c.action)}))}const T=()=>{e.closeOnClickModal&&x(c.distinguishCancelAndClose?"close":"cancel")},E=wv(T),M=j=>{if(c.inputType!=="textarea")return j.preventDefault(),x("confirm")},x=j=>{var H;e.boxType==="prompt"&&j==="confirm"&&!N()||(c.action=j,c.beforeClose?(H=c.beforeClose)==null||H.call(c,j,c,$):$())},N=()=>{if(e.boxType==="prompt"){const j=c.inputPattern;if(j&&!j.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||l("el.messagebox.error"),c.validateError=!0,!1;const H=c.inputValidator;if(typeof H=="function"){const S=H(c.inputValue);if(S===!1)return c.editorErrorMessage=c.inputErrorMessage||l("el.messagebox.error"),c.validateError=!0,!1;if(typeof S=="string")return c.editorErrorMessage=S,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},L=()=>{const j=b.value.$refs;return j.input||j.textarea},A=()=>{x("close")},F=()=>{e.closeOnPressEscape&&A()};return e.lockScroll&&L2(i),{...ln(c),ns:o,overlayEvent:E,visible:i,hasMessage:g,typeClass:f,contentId:d,inputId:h,btnSize:a,iconComponent:p,confirmButtonClasses:w,rootRef:v,focusStartRef:m,headerRef:y,inputRef:b,confirmRef:C,doClose:$,handleClose:A,onCloseRequested:F,handleWrapperClick:T,handleInputEnter:M,handleAction:x,t:l}}}),gce=["aria-label","aria-describedby"],mce=["aria-label"],yce=["id"];function bce(e,t,n,r,o,a){const l=ot("el-icon"),s=ot("close"),i=ot("el-input"),c=ot("el-button"),f=ot("el-focus-trap"),d=ot("el-overlay");return P(),ke(Jt,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=h=>e.$emit("vanish")),persisted:""},{default:me(()=>[rt(de(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:me(()=>[B("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:V(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...h)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...h)),onMousedown:t[9]||(t[9]=(...h)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...h)),onMouseup:t[10]||(t[10]=(...h)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...h))},[de(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:me(()=>[B("div",{ref:"rootRef",class:V([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Fe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Ye(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(P(),K("div",{key:0,ref:"headerRef",class:V(e.ns.e("header"))},[B("div",{class:V(e.ns.e("title"))},[e.iconComponent&&e.center?(P(),ke(l,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:me(()=>[(P(),ke(dt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),B("span",null,Me(e.title),1)],2),e.showClose?(P(),K("button",{key:0,type:"button",class:V(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=wt(Ye(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[de(l,{class:V(e.ns.e("close"))},{default:me(()=>[de(s)]),_:1},8,["class"])],42,mce)):be("v-if",!0)],2)):be("v-if",!0),B("div",{id:e.contentId,class:V(e.ns.e("content"))},[B("div",{class:V(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(P(),ke(l,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:me(()=>[(P(),ke(dt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.hasMessage?(P(),K("div",{key:1,class:V(e.ns.e("message"))},[_e(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(P(),ke(dt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(P(),ke(dt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:me(()=>[kt(Me(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):be("v-if",!0)],2),rt(B("div",{class:V(e.ns.e("input"))},[de(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=h=>e.inputValue=h),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:V({invalid:e.validateError}),onKeydown:wt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),B("div",{class:V(e.ns.e("errormsg")),style:Fe({visibility:e.editorErrorMessage?"visible":"hidden"})},Me(e.editorErrorMessage),7)],2),[[St,e.showInput]])],10,yce),B("div",{class:V(e.ns.e("btns"))},[e.showCancelButton?(P(),ke(c,{key:0,loading:e.cancelButtonLoading,class:V([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=h=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=wt(Ye(h=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:me(()=>[kt(Me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):be("v-if",!0),rt(de(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:V([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=h=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=wt(Ye(h=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:me(()=>[kt(Me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[St,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,gce)]),_:3},8,["z-index","overlay-class","mask"]),[[St,e.visible]])]),_:3})}var wce=Ne(vce,[["render",bce],["__file","index.vue"]]);const vi=new Map,Cce=e=>{let t=document.body;return e.appendTo&&(tt(e.appendTo)&&(t=document.querySelector(e.appendTo)),dr(e.appendTo)&&(t=e.appendTo),dr(t)||(t=document.body)),t},Sce=(e,t,n=null)=>{const r=de(wce,e,Ze(e.message)||Vt(e.message)?{default:Ze(e.message)?e.message:()=>e.message}:null);return r.appContext=n,yl(r,t),Cce(e).appendChild(t.firstElementChild),r.component},kce=()=>document.createElement("div"),_ce=(e,t)=>{const n=kce();e.onVanish=()=>{yl(null,n),vi.delete(o)},e.onAction=a=>{const l=vi.get(o);let s;e.showInput?s={value:o.inputValue,action:a}:s=a,e.callback?e.callback(s,r.proxy):a==="cancel"||a==="close"?e.distinguishCancelAndClose&&a!=="cancel"?l.reject("close"):l.reject("cancel"):l.resolve(s)};const r=Sce(e,n,t),o=r.proxy;for(const a in e)gt(e,a)&&!gt(o.$props,a)&&(o[a]=e[a]);return o.visible=!0,o};function Kl(e,t=null){if(!yt)return Promise.reject();let n;return tt(e)||Vt(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const a=_ce(e,t??Kl._context);vi.set(a,{options:e,callback:n,resolve:r,reject:o})})}const $ce=["alert","confirm","prompt"],Ece={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};$ce.forEach(e=>{Kl[e]=Pce(e)});function Pce(e){return(t,n,r,o)=>{let a="";return ct(n)?(r=n,a=""):tn(n)?a="":a=n,Kl(Object.assign({title:a,message:t,type:"",...Ece[e]},r,{boxType:e}),o)}}Kl.close=()=>{vi.forEach((e,t)=>{t.doClose()}),vi.clear()};Kl._context=null;const xo=Kl;xo.install=e=>{xo._context=e._context,e.config.globalProperties.$msgbox=xo,e.config.globalProperties.$messageBox=xo,e.config.globalProperties.$alert=xo.alert,e.config.globalProperties.$confirm=xo.confirm,e.config.globalProperties.$prompt=xo.prompt};const Tce=xo,P$=["success","info","warning","error"],xce=Le({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Rt},id:{type:String,default:""},message:{type:we([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:we(Function),default:()=>{}},onClose:{type:we(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:[...P$,""],default:""},zIndex:Number}),Ace={destroy:()=>!0},Oce=["id"],Mce=["textContent"],Rce={key:0},Lce=["innerHTML"],Nce=ue({name:"ElNotification"}),Ice=ue({...Nce,props:xce,emits:Ace,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=ld("notification"),{nextZIndex:a,currentZIndex:l}=o,{Close:s}=x2,i=X(!1);let c;const f=O(()=>{const C=n.type;return C&&Ko[n.type]?r.m(C):""}),d=O(()=>n.type&&Ko[n.type]||n.icon),h=O(()=>n.position.endsWith("right")?"right":"left"),p=O(()=>n.position.startsWith("top")?"top":"bottom"),g=O(()=>{var C;return{[p.value]:`${n.offset}px`,zIndex:(C=n.zIndex)!=null?C:l.value}});function v(){n.duration>0&&({stop:c}=Aa(()=>{i.value&&m()},n.duration))}function y(){c==null||c()}function m(){i.value=!1}function b({code:C}){C===qe.delete||C===qe.backspace?y():C===qe.esc?i.value&&m():v()}return at(()=>{v(),a(),i.value=!0}),Ft(document,"keydown",b),t({visible:i,close:m}),(C,w)=>(P(),ke(Jt,{name:u(r).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:w[1]||(w[1]=_=>C.$emit("destroy")),persisted:""},{default:me(()=>[rt(B("div",{id:C.id,class:V([u(r).b(),C.customClass,u(h)]),style:Fe(u(g)),role:"alert",onMouseenter:y,onMouseleave:v,onClick:w[0]||(w[0]=(..._)=>C.onClick&&C.onClick(..._))},[u(d)?(P(),ke(u(je),{key:0,class:V([u(r).e("icon"),u(f)])},{default:me(()=>[(P(),ke(dt(u(d))))]),_:1},8,["class"])):be("v-if",!0),B("div",{class:V(u(r).e("group"))},[B("h2",{class:V(u(r).e("title")),textContent:Me(C.title)},null,10,Mce),rt(B("div",{class:V(u(r).e("content")),style:Fe(C.title?void 0:{margin:0})},[_e(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(P(),K(Be,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),B("p",{innerHTML:C.message},null,8,Lce)],2112)):(P(),K("p",Rce,Me(C.message),1))])],6),[[St,C.message]]),C.showClose?(P(),ke(u(je),{key:0,class:V(u(r).e("closeBtn")),onClick:Ye(m,["stop"])},{default:me(()=>[de(u(s))]),_:1},8,["class","onClick"])):be("v-if",!0)],2)],46,Oce),[[St,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Dce=Ne(Ice,[["__file","notification.vue"]]);const $c={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},rp=16;let Bce=1;const Nl=function(e={},t=null){if(!yt)return{close:()=>{}};(typeof e=="string"||Vt(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;$c[n].forEach(({vm:f})=>{var d;r+=(((d=f.el)==null?void 0:d.offsetHeight)||0)+rp}),r+=rp;const o=`notification_${Bce++}`,a=e.onClose,l={...e,offset:r,id:o,onClose:()=>{Fce(o,n,a)}};let s=document.body;dr(e.appendTo)?s=e.appendTo:tt(e.appendTo)&&(s=document.querySelector(e.appendTo)),dr(s)||(s=document.body);const i=document.createElement("div"),c=de(Dce,l,Vt(l.message)?{default:()=>l.message}:null);return c.appContext=t??Nl._context,c.props.onDestroy=()=>{yl(null,i)},yl(c,i),$c[n].push({vm:c}),s.appendChild(i.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};P$.forEach(e=>{Nl[e]=(t={})=>((typeof t=="string"||Vt(t))&&(t={message:t}),Nl({...t,type:e}))});function Fce(e,t,n){const r=$c[t],o=r.findIndex(({vm:c})=>{var f;return((f=c.component)==null?void 0:f.props.id)===e});if(o===-1)return;const{vm:a}=r[o];if(!a)return;n==null||n(a);const l=a.el.offsetHeight,s=t.split("-")[0];r.splice(o,1);const i=r.length;if(!(i<1))for(let c=o;c{t.component.exposed.visible.value=!1})}Nl.closeAll=Vce;Nl._context=null;const zce=A2(Nl,"$notify");var Hce=[Uue,Jue,pce,Tce,zce,h_],Wce=PW([...zue,...Hce]);(function(t,n){var r=n.documentElement,o=t.devicePixelRatio||1;function a(){n.body?n.body.style.fontSize=12*o+"px":n.addEventListener("DOMContentLoaded",a)}a();function l(){var c=r.clientWidth/10;r.style.fontSize=c+"px"}if(l(),t.addEventListener("resize",l),t.addEventListener("pageshow",function(c){c.persisted&&l()}),o>=2){var s=n.createElement("body"),i=n.createElement("div");i.style.border=".5px solid transparent",s.appendChild(i),r.appendChild(s),i.offsetHeight===1&&r.classList.add("hairlines"),r.removeChild(s)}})(window,document);const Kce=ZP(),Ni=eC(iT);Ni.use(PC);Ni.use(rN);Ni.use(Kce);Ni.use(Wce);Ni.mount("#app");export{Uo as A,PC as B,Hs as C,qce as D,wt as E,Be as F,Jt as T,Tt as _,lT as a,P as b,ke as c,B as d,u as e,K as f,nt as g,be as h,X as i,ot as j,de as k,Yce as l,Te as m,kt as n,at as o,sP as p,Fe as q,$t as r,rt as s,Me as t,Uce as u,St as v,me as w,jce as x,Gce as y,V as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/home-zIHBFROr.js","assets/axios-QLjAsgXu.js","assets/mitt-Efd5K_Pa.js","assets/home-9Cj9STB5.css","assets/index-7n080XYI.js","assets/index-s5ZkzaVz.css","assets/townDetail-8UffmR39.js","assets/api-bQkc2cji.js","assets/ZHB-8cmnZlCw.js","assets/townDetail-kb8bXYp3.css","assets/commodity-lkdEesBe.js","assets/TABBG-WY6uizpD.js","assets/commodity--H4d9I0Q.css","assets/Businesses-_NXm-IAa.js","assets/Businesses-Nz5yOFKC.css","assets/storeLogin-OQHIP9eQ.js","assets/storeLogin-HfMeIeM-.css","assets/order-Wz9SA96I.js","assets/Bill-3vIMWlbv.js","assets/order-XObpwY4h.css","assets/finance-DhelbR3x.js","assets/finance-7LSdrFX2.css","assets/login-30raI85w.js","assets/login-mw6cuJIK.css"] + __vite__mapDeps.viteFileDeps = ["assets/home-NxFLaemn.js","assets/axios-QLjAsgXu.js","assets/mitt-Efd5K_Pa.js","assets/home-9Cj9STB5.css","assets/index-7FieOz9M.js","assets/index-s5ZkzaVz.css","assets/townDetail-NRwv5Hf-.js","assets/api-JoJiEZDD.js","assets/ZHB-8cmnZlCw.js","assets/townDetail-ixelsG0P.css","assets/commodity-yuswbrUH.js","assets/TABBG-WY6uizpD.js","assets/commodity--H4d9I0Q.css","assets/Businesses-Iam6zJOf.js","assets/Businesses-Nz5yOFKC.css","assets/storeLogin-DQZxzTUs.js","assets/storeLogin-HfMeIeM-.css","assets/order-3r3dGV_U.js","assets/Bill-zne2XV8t.js","assets/order-XObpwY4h.css","assets/finance-qam1zv4e.js","assets/finance-7LSdrFX2.css","assets/login-zv3um6sN.js","assets/login-mw6cuJIK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/yusi/assets/index-7n080XYI.js b/yusi/assets/index-7FieOz9M.js similarity index 84% rename from yusi/assets/index-7n080XYI.js rename to yusi/assets/index-7FieOz9M.js index 2acbebb..a8c8d2b 100644 --- a/yusi/assets/index-7n080XYI.js +++ b/yusi/assets/index-7FieOz9M.js @@ -1 +1 @@ -import{j as n,b as a,f as o,k as s,w as l,h as d,d as r,q as c,F as i,n as _}from"./index-eScbHr-2.js";const m={key:0,class:"center"},h={__name:"index",setup(p){return(e,u)=>{const t=n("dv-loading");return a(),o(i,null,[e.showLoading?(a(),o("div",m,[s(t,null,{default:l(()=>[_("Loading...")]),_:1})])):d("",!0),r("div",{class:"box",style:c({opacity:e.showLoading?0:1})},null,4)],64)}}};export{h as default}; +import{j as n,b as a,f as o,k as s,w as l,h as d,d as r,q as c,F as i,n as _}from"./index-5L8dO1EA.js";const m={key:0,class:"center"},h={__name:"index",setup(p){return(e,u)=>{const t=n("dv-loading");return a(),o(i,null,[e.showLoading?(a(),o("div",m,[s(t,null,{default:l(()=>[_("Loading...")]),_:1})])):d("",!0),r("div",{class:"box",style:c({opacity:e.showLoading?0:1})},null,4)],64)}}};export{h as default}; diff --git a/yusi/assets/login-30raI85w.js b/yusi/assets/login-zv3um6sN.js similarity index 99% rename from yusi/assets/login-30raI85w.js rename to yusi/assets/login-zv3um6sN.js index 952603f..3c06d48 100644 --- a/yusi/assets/login-30raI85w.js +++ b/yusi/assets/login-zv3um6sN.js @@ -1 +1 @@ -import{_ as V,a as y,u as O,i as l,j as U,b as w,f as h,d as e,k as d,w as W,s as r,v as f,C as M,D as R,E as H,x as k,y as N}from"./index-eScbHr-2.js";import{B as C,C as j}from"./api-bQkc2cji.js";import"./axios-QLjAsgXu.js";const X="/yusi/assets/tit-tOTskBGZ.png",S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAAAXNSR0IArs4c6QAACNBJREFUWEe9l1uMXVUZx//fWmvvs/fZ5zZnZjpz2hmkYEwM7VThQYjG8IDxRvSBoA/eEGNKUBOJvkFgOhXDA1GRRBMETAhRmmoUCFBpYrikAygF29ILvTDtTM90zsyc+9mzb+ti9pkCKm2n5cGVnJy9k3X57W996///FuES2uZt5mZGuEEDHyNgAwiBMThCwD6j8cSBSXrnEqbrd6WLGbB5m/kiA+4yhFEYNAyhx4DEAByAa4AigAEyeLRsMPnCJMmLmfeiACa2m3uMwVYymAPhjAHqOmobGXZtoxMHII+JTJbbXo4JdwiM1cjwr+yfpMWLgbhgBLZMmdsMcBcMToBwUgWtTties1TU0dAyMSDGmJ3hTtZjljfArMIQz7ijxET7rcNPfwI7v6bWgjgvwKafmXHSeI0ZzBiGY1Gr6of1E0ZHnU6S9ALSUgGMMZG1heN53BkoWU5pmDn5Cs8UxqLmyb8d2/WTrTj+XHQhiPMCTEyZXwL4PBHeijuLyyv1wzLp1RrSb3STsBPAJBpgJKy8zbySl8kOlYQ3PMzdcsVyS+PMcitH/7L1u/GBx54CYM4HcU6A635hXL+HgwBOG50c6VXfQNw9U4s6842kW+vJoB5CJgqMM2Z5lp0f8ezC+lKmWBkW3khFuOUx4ZauaM+8+Pjc7nsfxcLLhy4J4Kops4UBzxHwr7hdXQgbR7tRu1oLW3PNuDXXTfylSCWB4twi7uYtkR/zMgPjRac4PmzlN1Rsb3hcOMUr4+7C/mN/uvV3qAS7sHdvci6Ic0Zg85S5joCdgHlzZfGwn7Tn56PO6VrQmmnE7aofdxZC6HQLAJ4dtDOFStYpbizaA2NDmcLYetsbvoxny1fIlebJt3d841cwZh/O7Jm9aICJSbPJMDwPlRwM6sfa0q9VLz0CA1ckvYUjR3fe8htAncb8K29eNMBVk8YWDAe1Tpaj1mwz8ZdP93Ogd6aZtBe6582BwuiQ8EYrIlseF25pY+fU9BOzu+/5O5iq4fQr/7hogLRjegqMll+QvcXlZGW5KoN6Le4uNeLeYkfF3VCrUDKyGBOOJbyhnJUfKdnZ4WGRLVdE/xRkN8w8dceP/MW3OgBVMf/yG5cEcM29phIr7FVBY1EGzXm50lxIVpbrSdjq6LAXahlKCE7ccm3hDOZstzjAs0PDwimt505+LGzMTJ/46w/+2F9UywNYePXkJQGcjcKPtQxvUyuNpSRoLciwWddRtyPjzoqRWhoG4paXsZxcPhUibhfXMbdY4dwqHHnsq3cotZqoyOafP58grWlGE3dHdyZR5yYVdms6addl5HdU1PWNVooRI2ZlMmTlciyTHxBOfpiB89mX7nvIP/1GY/XrzTtY2JNqyjnbmgDpqI1b//k9YeW+nD6rxG9rGQXGJBKaGLMyNrPcHLdzpcRfOj27++5nVbyy6gFGRzgzvfuSlfCcqJVrPz509Xe+5JTGhoSdz/bnV5pglIxXavXOqVdm/fl9rffGkvZh2dM4+UL4obzgnIPWf3YcpD4KQ7kLuhzpOVSn96cbcMF+axUkqR4whmuIUCRAKI2IEcLe7J582JwtqiTIgTFH2FnBMgVY3kjoDnxkycqWlxOF1w9OUu9DAaRKSAxfN8DVBogIqMGgDkILBN9ohERQMP2KShiCy4AcDEqGMAhgBKvv+4njD/vuonOKUAr3gSTcPGW2EfAtAKl2V8mgpkk3pN+MVdKTJu4qqWJJmhQxoYkRJ2ZZhijLueUxYefB7RJj7gCz7WFi1ihAT+6/m+5YUwcmtpuHYfAZAKlozGkZNON2VUWdeaHDTqLUSmyklFonCsasejwXjJjggmcEuJ0RtuuQ5WW55RbIKZSElRvkmfwgMRw6MOnc+L8Q70VgYso8kBYgBjjODE6GzZNJ1J5hKuj0ZBwERoWJVEFCiVIwyuizbsiYxQwXjDHOmXAEccdiGc9JxYnZhYJwikM8U1jHbK9idHL00M8HbvhPiD7Apm3mc4zwiAEOM4NjK/W3ZdiYSVLZlWHTN6EfaxlIraRKbbif2vpsBBgRS9+ZxRgXnAlXkJ21LKfkWdlygbvlsu2W1zE3LdWK48HC/kdOPPSpO9+F6ANMbDd7jYEiwqGwPtML6sdD6dcacWehI4NGIJOVBDLWWsca6a8PQO+XWcwQmJ0WqAxCMGHlLJEtOiI3ks94o2WeG1lnOQPrRXZgnPFM+cjjN90sZ559qZ+EW6bMJzXwDAGHVNSbCRYPqKhbW+pbbze13maEOJJahkpBAVqb9PP/ey8ZgTHi6TVBWOlWcOEOOpY3nHOKG0oiP7rOzg5WuFse55ncxsbbzzw4/+L9v08NiiamzO0A0pDsD+snVmJ/cTHp1ZYTf6md+Mu+jLoxVKT6e95f/AKNMWIQBJ7hws3ZljvoWd5o0coPD1nu4Ch3B8eEm788WDy868TTP9yB6vRztGWbuU8Tvg0tj0WtU74MWjXlNxpJ1GjLoBtoFSWkpNYwBlpeGCBNhXeTUtiCZfKu5ZQKVnaoLNyBEe4U1/NM4bKoeWrPsT/f+jAsep0mtpuHjMGN0PFy3Ftu6aizpKJeSyfdnoxWAqOTBBqGyBi9hrIyMBhDBAYiniZD1uF2Ls8zuZJwCkPMzleYyAzH3dreozu++WsYeZxS4QHwfeiYVOQ3VBLUTRJ0dOL3lFahUYkiAw1KI7BGABihj0pgxC0uyMowy/HIcorMzpaZlV0HwArb1VeP77zltyA9R5vuNSNMYYfW8ipoyY1KmkpG3dR3jUmi1O6MNjr1vdXsvwBEmosGRCBmVhXSJpaqYyZP3C4ChmsZN85MP3h/8+iuKrReeE+Irrx930+Z5V3PbW8oHdC3W2NSvVdEJMDAYfoQ5yNYnSuNVv98GTqr9GRk1JOxvxy1Th2tTj/wsvIbZ+8IVH3fCy6/3oGU10Kjv/j/oQWIzWsfrIgqn74MxIbSez9I22lew+i+2PX/DVt9XqvRqmCmoQDjfQGBYTGAADppYGF8Dtip/g2udq5BFuKidAAAAABJRU5ErkJggg==",Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAB6VJREFUSEu1lmuMXkUZx//PzJxz3vt22323u9sWCvrBALuNkEiMEC+oQWqRYIwfMAY0WKQfjB9QEm1aukYihMTGD2C8AKWSUkPxRgwEiARdFaR2odtCu0vbt93bu7u87763c5uZx5yz7dpyafnCfDgnmfnP/OZ5Zp7nGcIHaIM7+JMArifgEwysIoIEow7goGA8e2AbPf0BlkkldD7hFdt4iCR+BODa8+kIOEyM+0a30TMXAr8vcGiYb2TGQ2cvQGxiE4ezYK0A2S2UUwIRM4gFCQMhHnhtK91/gc29e3jDT/gaa7H3zAizmWhX/v1M9dVHjrWrhxtJv8x0Oauv/OZg1/prPi9zKy9P3SWk1Z2F+w/f1/+z94O+y8LLt3NBCrzJp91tO/W9Y7s2PX/OAoINQJ20zxhv3XXbvth16advO6OpH3nu26f2bHrqvaDvAg7t4J0MfC0R27D157GHv/SX5YkCTVgxge6FWYyNRaf7Bcqf6b3kpvu25PsHt6TztD9z6LEvb8LJkYl3Qs8BDm3nXhY4kIgEUB196NqtyxOMPYbZkYPnO5/Brf7zTPh4oqnu331v9eDvfoXjf0tu83I7Bzi4g28F8NNkNKpXnn5zzy1/WlKaU5j6538vdAM3DPPN1toH2UROWDv50tF9t+7E5MgL5wP+GMCdBKbZVx/dOfvKb8bANsT0yLMXgiXjV2/jUkfiDdjYtUFrfmzXjXeBohFMvrxwZv65Lt3Ga1niXtOp60O7Nu1bMu7Crjx7M4PDvMVGnS8sjD4xMvOf3x4G2ZOYHEmPKWnvHYd9114GwR9JFZb+hZmX5j6Ihcuaq65yMJ29folg22e7NQUO3sO3gbCJgAwRZowxQdycWkVCxV6xv8aAAsEBw0nSWhLpIBhmxGDEghAzoJO1mCFJIGOC1qXM2iOoV9tu4e7j2ylI+UPD/Dlm7CbAAqgAmAahRgyfGYYBQQnsNBAJfKnpFHIGeForCJ4FVhCwGsBFDGQE4YHRrfRAChwc5u+DcRcBUyZuVnWn3uS407RW+2zZpFmLhCSQIiElk5ApjmHZagNmzWwMwJaJpBCuJ6VXFF5ulVS5PnK8/rA58+KRJ76+HafWHqKhHXwngB+wiSfCxYof+/UFG7UbHAe+5ciAiYRwEqgiJSWRkwITiLWxZaM1gw3YsCAlheN5wikWpNfVo7KlPukV14S1ystH993+MAhv0oYdfAcTNhu/cTKon2jp4O153akt2rgdWB2bJAMIyihSQpFwJUmVujSxnm1krIk161CDmYVUQqhCRmZLRTe/siwzK/tkpmtd2Jg6OLHvO48k8bwEBL6h/doJf/6or1vVatyZXzRBK7AmMIl17LpKyaxD0nUS6BJQG2sCzTqKWUc61Uo38aYnc91FJ18uO/meAZkrX6RbM+Pj+zY/CkEnUiCAm6P2fKVTPeSHzamqaVYbOmwE1kTpIkJlHMrkXSmzLttY2zg2MpvzOApijsNY61Zk4ygpT6S8Ls8tlktesb+sCn0DKlter/25yjlABjbGzerJzsxrQdA4VY0aMw0dLAawmoWblSqT98gpukIQVfc/fjSxcNVlX7lYegXPhK1Qx83QxoFGcorZguvl+ovuioGy2zWwJgUGtcnxfZsfW7aQgRviZrXSmR4Nw+ZkNWxOLmq/FYEsCyejlNedkV7eM34jXDj0h+MJsPtjGwu5lR8tRc2pTOINHbbjpF95eccpri5mutb1uqW+AZXrXa/D+uT4k5t3nw3cGLeqlc7MaBAuJsDphg6bESxzsoDyShnpFFwTt6K513//VpI9Ntz+j1NQ6K3uf/ySoH4svwx0so5T6C9mVqwtu6X+AZXvXa/92tQ7Lbwpbs9X/OqYHy5Oz+nWbENHjQhJEDqOIq/kSbeYMX6tMz+6dwLM0xs2/73BEmvr48/1tCcP9Frtp5lGqKxSpb5SJt/X45QG1jj5Vevjdq0y/tTtu5YsHObNzLhF+wsVf368o5szc7Ffa+gwcSmxEI4kL+dJJ+vBsJ0a2bkfAtUNd7yUpLoVi2+9WO7MHe2xOkiBys07MtdVdAr9PU42uaXdF+t29dxbuhSHzUpUO9GJwoU526k3jQnCJNJICElO1pHScYVyXRO02+QVZrsu/WyTgKAzc2BlZ+FI2VprEqBUGdfJdpVUtntVEocqjcPJ15dv6dAwfxeMu632K9HiTMvGjQUddZrQfsjG2iRZkXAVSalAjsOUpBMvyg9c8UZSp9vTrw9ofz7H2phEC5lxpZMvyExhpXQLq6VXWhPUjo0sAc3xJHl/jxk/hInbOni7zlFQN7HfhNEhkzYgQWAlkTx+hVJEnAa+kJ5PhECHnQyzNgRrGVJAKE+oTF65+W7h5HpIqu60+j/5rV+nZzh0D3+VCb8AW8k6iK0OF63WbeI4ZLZLJYcgCUKAkkik07k0ebmxZWabwMDgJLELIT2STo6k20VCFZL5wdyRv47/ccueFHjVL9mJq3iQdXydNbG3VHmsBtuI2RpwWqYp/RCJ0zWb0sqXfNim/7T0ULopFxDOmWJso9Z05YUdP29PjdaT6v//ir/m6rVgJ31xfWjN0sTZTwyB/k9dCUb5QwESWvCcV/4HzTM86MFXjNEAAAAASUVORK5CYII=",Y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAXCAYAAADz/ZRUAAAAAXNSR0IArs4c6QAAA9JJREFUSEvFVttSU2cU/tY+5TAJJoB12ooUqyi2hKCZ6bR33FqQotO8Ql+jr9FXyEzVgPWWO6ediSKhmabWUmlFiwdCapId9uFfnX/XzWxg7yRedV/udfjW4Vtr/YT/8aN3wV79g+NmA2mhIW3ZiKkGdMUGkQrXBWwHaCsCraVZ2hvE70DgKxVOso5TLmF4IKcOTFXgxUKBXvXS7wtefsAfCA3v+040B45DaBoGum0TZiwF4TZhcBwJYiRJQdrXZRsdnbG1UKBOWBCR4N9VWD+pYcJ3pgp0ycGOuYlGsUhuVEalGqfiJoZdAycPAra8AI5VIRRc9vafFiYFQ5cOBGPnxgw9HaTkvo4MwtjHGdaQkP80gb8X8rQd9HEM/O5vHLPbuCQUKBqDTRu/FwvUfBfgoO7yOk/4XDmaxCHwUonVxDl86mjQ4MLNZFCfm6BuZInvcSI2DG3oOcy5OXKi9JYrfMZvg7Dw7EaBnkvdQ+A37/MU6Uh6ZbLwSxRRynVOcwdjfkkVAaEJ7H55mbaiAri1xh9BxYiUKwYeLV6kNwfgYcIwR7KXuosLYTKF0VqcoV+jAlhZ4/OOiiHZztQuqh74rTXOQMXHXlSEp4vTtBPl4HaVpxkwyIGZULHV1GBrDjJEGJM2OrA5n6NGjwrkoULVgLYHXn7Is5JgcPF6aZaeREZe4aRjYErKYwn8fPU87fu6fl8VG83FK/S4pw8VkzKA/zKv8pVBoi5V+IRu4JzUXcrR/SDAnSpnbeCszGghR/Ve01He4JwcYw/8TpXP2kBW9uKZjY1vCmSHGa+usrY3gpmj7WFmKq9hShKQCC++mqa/osC/X+fTCuHUAdul8fI68rL0cpNdy1MtyviHBzxuaRiVctXCS45hn1yMugri8l8mjVrUeAYrJ2f+gO1BFutAYz5Hm1EB3HzIk8Ed7uuxiSfXP6PXoVNyjxN6CpekjAXeXM/To0NzvlLhUcfAuGfch3ylGg/HHZxwGLoq0NrvolH8gsxI4AQueCx34MzPokpEfGy93t7gMWa855f1WoH+7EWefrKS3IJJXPSm6ciUhB6W4DqUJco2sNlrfUa25yce0eMYdwgkyQwb9eDWjDyph+64CzfG2L56mV72y1TK5XESJj6UE/SW1ZbVwuOjben5mJAcEBrG/JLJGVZU7LWbaH79Obqyb34w8v5ngaSuIuvv8Le7o9GpYyvsDdD3JVOqsZF0cdrPIpi5HEvHhdAJhncJAx8BlqViu/gJ7UZVqy+4b3j3Rx5yEhgRhJTc7WEO5XUDoeMCjWoOr74lEr3a9C9ja7UGG0qLuAAAAABJRU5ErkJggg==",x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAYCAYAAAACqyaBAAAAAXNSR0IArs4c6QAABHBJREFUSEuVVttOW0cUXftcsTGGQEjUNiRFQEMu3P3SvlQ8VUoCJKrEL/Q38hv9BaSGJKhIfaJPUSsRKLiAiwlRkgJpSQPGgDk+l13tU8Y6NhygfrE9M3vvNXvWWjOE4w8z0+QcujUThpXA6r0uctRc3LfEEBGfty5unqLFn2YxKP8ND57egFwUwMxrrtvZQ5o0NJALm0wYmgsiHT4TvDJjXwuw/2iAdi8KplJcAiZecMJM4CZ06PDh2ymsvCsguKLjM+houUhS8lCygO17g7R93vqq4gqAlUInA5bBCFvqEcJ10hGPULAsHB2UULJTCPwCLK5DwgqQ8HSkVUEBkdDx5ps+Oji37dEF079w2kmiS43pAY58xoabR3F8nPy4ZD8tcL3n43LZwGW1xvbwNq4LJ3Yenu1HtJOJZLT4aD8tnddGNS8gSj5usIGEjBHh74c99K42vqr4dJ5t9wC3Aw2aLNQIfwK4GjBM4UBTE3LD7XR0URDPF7jdJzTLer2M7dEMvY3GVoo/ZtaG5tHjGTC0AIFziNz4V1SKAgrHTSyN36GykNNuhpHeQml4mLw4QE+z3MaMKyFnArwf6aeNCi/Uj6lF7vaAevmfZOSiRAlVkMJtRTqXUVbHIqTUfPxzf5DexAH4cY5vVHjg45WSY7jz57N83bfQKr/dMtbGM1SoTSQAlArUXMh+A0Z4RIz9sT76Iw7A1Dx3KTXYCfwuHkJRZgdlbH6boa24BE9e8q0KEX34WgKvnH1opoVOiTGB9Qe9tBMXPznP/eIhoh4hME3NcZ+g1xkfR/vodSzyWU56Fm4J8UITEhIdJ5me41bHwHXNRWFsiNbickRN7FEvvaTJRR66COqJWW6UHWoEV3OwFtjoFBWYDMcBdjXCVQM4GOml3FlqeJblXon7r3iWO8BoEuJsush+lyH3tOCZGTZ2W9AXJWSUpDJu6di4f4fexxX/YYGvCUiZD4uLxAYW0CfaFkt8OEjLF2GteAA5sBVRQ9JZWB3rpuJp8ZPz3AQdHeE6D1tjg7QZsn1iiVOmj5vH7d950EvrsaT7jb+Qm+20eQLKjQ3I1xpRlVR97I0MUF7iKyajSBMS6RQ3ihabWOLmOg+NHsNkD0XbwpEf4HPpnhhRuhErCkCUZMKX0bvIqjdAlb1G3SjOj89k8rERiSIW+rH49c/Q9i6hR9m10rfKceJiqbJDH3ulPNbPusmqOvKCE8l6dLgEW45A96ApE6p1zaq2R5M8m+NPAwOfyJi4GAJsjGTow1kSUnNKkpXdeSj9FSB/mopO7FwFPfmVW0wT1xRy0XBA2HGK2Fv+Es5jokCt/X6WzTYPCbZwyTWQloeImhMj2vKw+r+KS7Bou9iMNnUtqoTSjUAPHxhsAKavoS7aFWm5X8YHw0arGIp4SCqN5VoVxO686hhy3GAcorl2V7XHoLozfxfb0hl5mOzuolvZsVHGykiGDmMJd965Ts1yMrDR4AUwdQ1ELnzHhjww9uWer40XAMUCOqQ7tRfXv1DuHzcOkdO/AAAAAElFTkSuQmCC",z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATQAAABGCAYAAABCHGjhAAAGK0lEQVR4nO3dbWiVZRzH8b8hYs0yR2ZKusrETS2zprOUphmJSk8IZqxWYZL1IozA7E1Pb7KgEoMeUChkpgmGaE5W5pyohbOpK3Vm89k5czrKh+beLH6X3rc7cw9nZ8uzXff3Awcn59xn5wF+XNf1/1/XuqTn1dUZAHjgGr5EAL7oGryPsqLFfKkAOqX07Fz3shmhAfAGgQbAGwQaAG8QaAC8QaAB8AaBBsAbBBoAbxBoALxBoAHwBoEGwBsEGgBvEGgAvEGgAfAGgQbAGwQaAG8QaAC8QaAB8AaBBsAbBBoAbxBoALxBoKFFd998g70+cbjlvzO90YfqvgUvjOeDRNIRaGhR1fkLNmX8cOvevZvljLwjfHj2bb0t77VH3X3DBvd3wQYkU1c+/eiZN32MjbpnYFzve/bHK630r39s645yd824zEG2pHj/Fc/xbX6xfblxT6s/y8eG3Gqzcx9qt+9g/uL1tmr30XZ7PnQuBBri8s3631yADUzrY+vn5YaXKOgWfL/NKs5e4INE0hFoEXSy+qytKdxpHxXsbPTNL3x5oguu6r/PudGZ6N8Nv+yxcaMz3P/LD52wvLUlVnTwZHid1tpenHKf7SqvjHu0ptHUqrlt/yPXK96car16pkTy+8RlBFrEKHQm3J/h1sOkYahpKqkwkwVLN8bct2hdqQ3PGOCC48jx0zFh9tYTI8Ow03pa2eGqmPuBq4FAixiNtD74+id74/kJbjHf6oVa/XUxrYk1DCRNK79bt91mTB3rwqv82Cm7JfX6mIDUyG110S7CDElBoEWQwqbn8k1uMV6hlnJtN+vfNzUcmWk62tSUUQUBhZiuU7AFKk5U29pNu9z9rRVMcYG2ItAiSmtXffOL7anJl6eKdimYFFbB6K0pQdVTft97xF79qjDqHyk6AAItwrTOpYX/YDFdI7Oz/9a6kGuJqp4qLgQ9aGqsXbTm17CI0BozPy9o85dAUQBGoEWXmmCDUVhNTa0tWbM1nC7GW6EsLdhp+46csucez3KhNn9wfzdy21J6iF4wJAWBFjFqZJ02cYT169PLvXEt4n+64ueERlYWtF3sPhpWOTUN1W1WTa3N/Sw/4ecFEtElPa+uTteVFbW9Fwgdm7YqvT1rUvgaVcm8vV9q3LsGmqPnWl2y354ek+6qnqqkNlXpbO/dAc1prt8O/kjPvtjszQgtQhQwao69rnu3sLtfrRrtRc+n8CBAkCwEWsS8t7K40Tec6F7MRFouEtkdEGy3UhFj6vsrWnUtooPTNpBUmgbrWCIVKbSLoSWqZDZ1qodOAtHpHy89mMGXGlGM0JBUM58c7XYZBL1v6oPbvvtws9NWrdH9uP1AWHBQkE0aOzQsdKjt5HjVGSqtEUSgIame+WS1C6SsYWmu9UOhlNozxbbtrWi0qKBFfgXfnJxsF3wP3HtnTP+Z1giLdhxk61VEEWhwNKqJp6H2/6D+t6AHTtNJ9bYpkPTziCED7MMlReFv1cgsrV9qGH52aV1tS8mfFCNAoKHjeThrUExbx11pN8W8Rm2z0lqZAk1TVAUe/W4wAg0BVTkzhw6wDdv2xbXBXNVNPVYn2LZ1Y7kW8Rvrh9OugwMVp93rqb8RXuYs/MHefXac+93zXpkcs9MB0UWgRdzcZZvNlm1261gKB910mkZz07egVUO34Iju1tJ0snevHleEmHYulO2vbHH6qJ437QHVHlJNP92RRpmD3NFFFAOii0CDE4xuFAxadFfYuLBrIAgz7f/8YvmmhMJMI7L6p3kElc2lm8tafZS3pp8K45wpoy4GbG4fmxZHpRR+ItAQUqidOVfr1q/O19Re8cGoTyz1xh5uEV6n2SZaSdQWqUfGDHEL+fXbL5pSv69Mf4GqoaCoEGy419qabvqZrU/Rwl7OiLlax+wk2tGv0VbD9bKApqPxHDUUVEf/OFDZ5M4I+IW9nOiQCvccsxmNvDAdIqnz1uLhRmSMyiKJERqATi8YobGXE4A3CDQA3iDQAHiDQAPgDQINgDcINADeINAAeINAA+ANAg2ANwg0AN4g0AB4g0AD4A0CDYA3CDQA3iDQAHiDQAPgDQINgDcINADeCI/gBoDOjhEaAD+Y2X8W82ZU/GROgQAAAABJRU5ErkJggg==",B=n=>(k("data-v-872449c8"),n=n(),N(),n),D={class:"login-box"},K={class:"form"},T=B(()=>e("div",{style:{"text-align":"center",transform:"translateY(-1vh)"}},[e("img",{src:X,style:{width:"29vw"}})],-1)),L={class:"content"},q={style:{position:"relative","margin-bottom":"3VH"}},F={style:{color:"red",position:"absolute"}},Q={style:{position:"relative","margin-bottom":"3VH"}},I=B(()=>e("img",{src:S,alt:"",class:"accont-icon"},null,-1)),P={style:{color:"red",position:"absolute"}},_={style:{position:"relative","margin-bottom":"3VH"}},$=B(()=>e("img",{src:Z,alt:"",class:"accont-icon",style:{}},null,-1)),ee=["type","onKeyup"],te={style:{color:"red",position:"absolute"}},Ae={__name:"login",setup(n){const E=y(),v=O(),o=l(null),u=l(!1),i=l("叙永镇"),c=l("xuyognzheng"),g=l(!1),p=l(!1),m=l(!1),G=()=>{if(o.value)m.value=!1;else{m.value=!0;return}if(i.value)g.value=!1;else{g.value=!0;return}if(c.value)p.value=!1;else{p.value=!0;return}o.value==1&&C({account:i.value,password:c.value}).then(A=>{A.data.role=o.value,localStorage.setItem("TRADE_USER",JSON.stringify(A.data)),v.replace("/storeLogin")}),o.value==2&&j({account:i.value,password:c.value}).then(A=>{if(A.data.user.street_code){o.value=3,A.data.role=o.value,localStorage.setItem("TRADE_USER",JSON.stringify(A.data));let{area_code:t,street_code:s}=A.data.user;E.changeArea({areaCode:t,streetCode:s}),v.replace("/townDetail?code=510524102")}else{A.data.role=o.value,localStorage.setItem("TRADE_USER",JSON.stringify(A.data));let{area_code:t,street_code:s}=A.data.user;E.changeArea({areaCode:t,streetCode:s}),v.replace("/")}})},J=()=>{};return(A,t)=>{const s=U("el-option"),b=U("el-select");return w(),h("div",D,[e("div",K,[T,e("div",L,[e("div",q,[d(b,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a),placeholder:"请选择你的身份",onChange:J,teleported:!1,class:"select_box"},{default:W(()=>[d(s,{label:"商户",value:1}),d(s,{label:"普通用户",value:2}),d(s,{label:"镇",style:{display:"none"},value:3})]),_:1},8,["modelValue"]),r(e("div",F,"请选择",512),[[f,m.value]])]),e("div",Q,[I,r(e("input",{class:"ipt",type:"text",placeholder:"请输入账号","onUpdate:modelValue":t[1]||(t[1]=a=>i.value=a)},null,512),[[M,i.value]]),r(e("div",P,"请输入账号",512),[[f,g.value]])]),e("div",_,[$,r(e("input",{class:"ipt",placeholder:"请输入密码",type:u.value?"text":"password","onUpdate:modelValue":t[2]||(t[2]=a=>c.value=a),onKeyup:H(G,["enter","native"])},null,40,ee),[[R,c.value]]),r(e("div",te,"请输入密码",512),[[f,p.value]]),u.value?(w(),h("img",{key:0,src:Y,alt:"",onClick:t[3]||(t[3]=a=>u.value=!1),class:"show"})):(w(),h("img",{key:1,src:x,onClick:t[4]||(t[4]=a=>u.value=!0),class:"show"}))]),e("div",{style:{"background-color":"red",position:"relative"}},[e("img",{src:z,class:"btn",alt:"",onClick:G})])])])])}}},le=V(Ae,[["__scopeId","data-v-872449c8"]]);export{le as default}; +import{_ as V,a as y,u as O,i as l,j as U,b as w,f as h,d as e,k as d,w as W,s as r,v as f,C as M,D as R,E as H,x as k,y as N}from"./index-5L8dO1EA.js";import{B as C,C as j}from"./api-JoJiEZDD.js";import"./axios-QLjAsgXu.js";const X="/yusi/assets/tit-tOTskBGZ.png",S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAAAXNSR0IArs4c6QAACNBJREFUWEe9l1uMXVUZx//fWmvvs/fZ5zZnZjpz2hmkYEwM7VThQYjG8IDxRvSBoA/eEGNKUBOJvkFgOhXDA1GRRBMETAhRmmoUCFBpYrikAygF29ILvTDtTM90zsyc+9mzb+ti9pkCKm2n5cGVnJy9k3X57W996///FuES2uZt5mZGuEEDHyNgAwiBMThCwD6j8cSBSXrnEqbrd6WLGbB5m/kiA+4yhFEYNAyhx4DEAByAa4AigAEyeLRsMPnCJMmLmfeiACa2m3uMwVYymAPhjAHqOmobGXZtoxMHII+JTJbbXo4JdwiM1cjwr+yfpMWLgbhgBLZMmdsMcBcMToBwUgWtTties1TU0dAyMSDGmJ3hTtZjljfArMIQz7ijxET7rcNPfwI7v6bWgjgvwKafmXHSeI0ZzBiGY1Gr6of1E0ZHnU6S9ALSUgGMMZG1heN53BkoWU5pmDn5Cs8UxqLmyb8d2/WTrTj+XHQhiPMCTEyZXwL4PBHeijuLyyv1wzLp1RrSb3STsBPAJBpgJKy8zbySl8kOlYQ3PMzdcsVyS+PMcitH/7L1u/GBx54CYM4HcU6A635hXL+HgwBOG50c6VXfQNw9U4s6842kW+vJoB5CJgqMM2Z5lp0f8ezC+lKmWBkW3khFuOUx4ZauaM+8+Pjc7nsfxcLLhy4J4Kops4UBzxHwr7hdXQgbR7tRu1oLW3PNuDXXTfylSCWB4twi7uYtkR/zMgPjRac4PmzlN1Rsb3hcOMUr4+7C/mN/uvV3qAS7sHdvci6Ic0Zg85S5joCdgHlzZfGwn7Tn56PO6VrQmmnE7aofdxZC6HQLAJ4dtDOFStYpbizaA2NDmcLYetsbvoxny1fIlebJt3d841cwZh/O7Jm9aICJSbPJMDwPlRwM6sfa0q9VLz0CA1ckvYUjR3fe8htAncb8K29eNMBVk8YWDAe1Tpaj1mwz8ZdP93Ogd6aZtBe6582BwuiQ8EYrIlseF25pY+fU9BOzu+/5O5iq4fQr/7hogLRjegqMll+QvcXlZGW5KoN6Le4uNeLeYkfF3VCrUDKyGBOOJbyhnJUfKdnZ4WGRLVdE/xRkN8w8dceP/MW3OgBVMf/yG5cEcM29phIr7FVBY1EGzXm50lxIVpbrSdjq6LAXahlKCE7ccm3hDOZstzjAs0PDwimt505+LGzMTJ/46w/+2F9UywNYePXkJQGcjcKPtQxvUyuNpSRoLciwWddRtyPjzoqRWhoG4paXsZxcPhUibhfXMbdY4dwqHHnsq3cotZqoyOafP58grWlGE3dHdyZR5yYVdms6addl5HdU1PWNVooRI2ZlMmTlciyTHxBOfpiB89mX7nvIP/1GY/XrzTtY2JNqyjnbmgDpqI1b//k9YeW+nD6rxG9rGQXGJBKaGLMyNrPcHLdzpcRfOj27++5nVbyy6gFGRzgzvfuSlfCcqJVrPz509Xe+5JTGhoSdz/bnV5pglIxXavXOqVdm/fl9rffGkvZh2dM4+UL4obzgnIPWf3YcpD4KQ7kLuhzpOVSn96cbcMF+axUkqR4whmuIUCRAKI2IEcLe7J582JwtqiTIgTFH2FnBMgVY3kjoDnxkycqWlxOF1w9OUu9DAaRKSAxfN8DVBogIqMGgDkILBN9ohERQMP2KShiCy4AcDEqGMAhgBKvv+4njD/vuonOKUAr3gSTcPGW2EfAtAKl2V8mgpkk3pN+MVdKTJu4qqWJJmhQxoYkRJ2ZZhijLueUxYefB7RJj7gCz7WFi1ihAT+6/m+5YUwcmtpuHYfAZAKlozGkZNON2VUWdeaHDTqLUSmyklFonCsasejwXjJjggmcEuJ0RtuuQ5WW55RbIKZSElRvkmfwgMRw6MOnc+L8Q70VgYso8kBYgBjjODE6GzZNJ1J5hKuj0ZBwERoWJVEFCiVIwyuizbsiYxQwXjDHOmXAEccdiGc9JxYnZhYJwikM8U1jHbK9idHL00M8HbvhPiD7Apm3mc4zwiAEOM4NjK/W3ZdiYSVLZlWHTN6EfaxlIraRKbbif2vpsBBgRS9+ZxRgXnAlXkJ21LKfkWdlygbvlsu2W1zE3LdWK48HC/kdOPPSpO9+F6ANMbDd7jYEiwqGwPtML6sdD6dcacWehI4NGIJOVBDLWWsca6a8PQO+XWcwQmJ0WqAxCMGHlLJEtOiI3ks94o2WeG1lnOQPrRXZgnPFM+cjjN90sZ559qZ+EW6bMJzXwDAGHVNSbCRYPqKhbW+pbbze13maEOJJahkpBAVqb9PP/ey8ZgTHi6TVBWOlWcOEOOpY3nHOKG0oiP7rOzg5WuFse55ncxsbbzzw4/+L9v08NiiamzO0A0pDsD+snVmJ/cTHp1ZYTf6md+Mu+jLoxVKT6e95f/AKNMWIQBJ7hws3ZljvoWd5o0coPD1nu4Ch3B8eEm788WDy868TTP9yB6vRztGWbuU8Tvg0tj0WtU74MWjXlNxpJ1GjLoBtoFSWkpNYwBlpeGCBNhXeTUtiCZfKu5ZQKVnaoLNyBEe4U1/NM4bKoeWrPsT/f+jAsep0mtpuHjMGN0PFy3Ftu6aizpKJeSyfdnoxWAqOTBBqGyBi9hrIyMBhDBAYiniZD1uF2Ls8zuZJwCkPMzleYyAzH3dreozu++WsYeZxS4QHwfeiYVOQ3VBLUTRJ0dOL3lFahUYkiAw1KI7BGABihj0pgxC0uyMowy/HIcorMzpaZlV0HwArb1VeP77zltyA9R5vuNSNMYYfW8ipoyY1KmkpG3dR3jUmi1O6MNjr1vdXsvwBEmosGRCBmVhXSJpaqYyZP3C4ChmsZN85MP3h/8+iuKrReeE+Irrx930+Z5V3PbW8oHdC3W2NSvVdEJMDAYfoQ5yNYnSuNVv98GTqr9GRk1JOxvxy1Th2tTj/wsvIbZ+8IVH3fCy6/3oGU10Kjv/j/oQWIzWsfrIgqn74MxIbSez9I22lew+i+2PX/DVt9XqvRqmCmoQDjfQGBYTGAADppYGF8Dtip/g2udq5BFuKidAAAAABJRU5ErkJggg==",Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAB6VJREFUSEu1lmuMXkUZx//PzJxz3vt22323u9sWCvrBALuNkEiMEC+oQWqRYIwfMAY0WKQfjB9QEm1aukYihMTGD2C8AKWSUkPxRgwEiARdFaR2odtCu0vbt93bu7u87763c5uZx5yz7dpyafnCfDgnmfnP/OZ5Zp7nGcIHaIM7+JMArifgEwysIoIEow7goGA8e2AbPf0BlkkldD7hFdt4iCR+BODa8+kIOEyM+0a30TMXAr8vcGiYb2TGQ2cvQGxiE4ezYK0A2S2UUwIRM4gFCQMhHnhtK91/gc29e3jDT/gaa7H3zAizmWhX/v1M9dVHjrWrhxtJv8x0Oauv/OZg1/prPi9zKy9P3SWk1Z2F+w/f1/+z94O+y8LLt3NBCrzJp91tO/W9Y7s2PX/OAoINQJ20zxhv3XXbvth16advO6OpH3nu26f2bHrqvaDvAg7t4J0MfC0R27D157GHv/SX5YkCTVgxge6FWYyNRaf7Bcqf6b3kpvu25PsHt6TztD9z6LEvb8LJkYl3Qs8BDm3nXhY4kIgEUB196NqtyxOMPYbZkYPnO5/Brf7zTPh4oqnu331v9eDvfoXjf0tu83I7Bzi4g28F8NNkNKpXnn5zzy1/WlKaU5j6538vdAM3DPPN1toH2UROWDv50tF9t+7E5MgL5wP+GMCdBKbZVx/dOfvKb8bANsT0yLMXgiXjV2/jUkfiDdjYtUFrfmzXjXeBohFMvrxwZv65Lt3Ga1niXtOp60O7Nu1bMu7Crjx7M4PDvMVGnS8sjD4xMvOf3x4G2ZOYHEmPKWnvHYd9114GwR9JFZb+hZmX5j6Ihcuaq65yMJ29folg22e7NQUO3sO3gbCJgAwRZowxQdycWkVCxV6xv8aAAsEBw0nSWhLpIBhmxGDEghAzoJO1mCFJIGOC1qXM2iOoV9tu4e7j2ylI+UPD/Dlm7CbAAqgAmAahRgyfGYYBQQnsNBAJfKnpFHIGeForCJ4FVhCwGsBFDGQE4YHRrfRAChwc5u+DcRcBUyZuVnWn3uS407RW+2zZpFmLhCSQIiElk5ApjmHZagNmzWwMwJaJpBCuJ6VXFF5ulVS5PnK8/rA58+KRJ76+HafWHqKhHXwngB+wiSfCxYof+/UFG7UbHAe+5ciAiYRwEqgiJSWRkwITiLWxZaM1gw3YsCAlheN5wikWpNfVo7KlPukV14S1ystH993+MAhv0oYdfAcTNhu/cTKon2jp4O153akt2rgdWB2bJAMIyihSQpFwJUmVujSxnm1krIk161CDmYVUQqhCRmZLRTe/siwzK/tkpmtd2Jg6OLHvO48k8bwEBL6h/doJf/6or1vVatyZXzRBK7AmMIl17LpKyaxD0nUS6BJQG2sCzTqKWUc61Uo38aYnc91FJ18uO/meAZkrX6RbM+Pj+zY/CkEnUiCAm6P2fKVTPeSHzamqaVYbOmwE1kTpIkJlHMrkXSmzLttY2zg2MpvzOApijsNY61Zk4ygpT6S8Ls8tlktesb+sCn0DKlter/25yjlABjbGzerJzsxrQdA4VY0aMw0dLAawmoWblSqT98gpukIQVfc/fjSxcNVlX7lYegXPhK1Qx83QxoFGcorZguvl+ovuioGy2zWwJgUGtcnxfZsfW7aQgRviZrXSmR4Nw+ZkNWxOLmq/FYEsCyejlNedkV7eM34jXDj0h+MJsPtjGwu5lR8tRc2pTOINHbbjpF95eccpri5mutb1uqW+AZXrXa/D+uT4k5t3nw3cGLeqlc7MaBAuJsDphg6bESxzsoDyShnpFFwTt6K513//VpI9Ntz+j1NQ6K3uf/ySoH4svwx0so5T6C9mVqwtu6X+AZXvXa/92tQ7Lbwpbs9X/OqYHy5Oz+nWbENHjQhJEDqOIq/kSbeYMX6tMz+6dwLM0xs2/73BEmvr48/1tCcP9Frtp5lGqKxSpb5SJt/X45QG1jj5Vevjdq0y/tTtu5YsHObNzLhF+wsVf368o5szc7Ffa+gwcSmxEI4kL+dJJ+vBsJ0a2bkfAtUNd7yUpLoVi2+9WO7MHe2xOkiBys07MtdVdAr9PU42uaXdF+t29dxbuhSHzUpUO9GJwoU526k3jQnCJNJICElO1pHScYVyXRO02+QVZrsu/WyTgKAzc2BlZ+FI2VprEqBUGdfJdpVUtntVEocqjcPJ15dv6dAwfxeMu632K9HiTMvGjQUddZrQfsjG2iRZkXAVSalAjsOUpBMvyg9c8UZSp9vTrw9ofz7H2phEC5lxpZMvyExhpXQLq6VXWhPUjo0sAc3xJHl/jxk/hInbOni7zlFQN7HfhNEhkzYgQWAlkTx+hVJEnAa+kJ5PhECHnQyzNgRrGVJAKE+oTF65+W7h5HpIqu60+j/5rV+nZzh0D3+VCb8AW8k6iK0OF63WbeI4ZLZLJYcgCUKAkkik07k0ebmxZWabwMDgJLELIT2STo6k20VCFZL5wdyRv47/ccueFHjVL9mJq3iQdXydNbG3VHmsBtuI2RpwWqYp/RCJ0zWb0sqXfNim/7T0ULopFxDOmWJso9Z05YUdP29PjdaT6v//ir/m6rVgJ31xfWjN0sTZTwyB/k9dCUb5QwESWvCcV/4HzTM86MFXjNEAAAAASUVORK5CYII=",Y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAXCAYAAADz/ZRUAAAAAXNSR0IArs4c6QAAA9JJREFUSEvFVttSU2cU/tY+5TAJJoB12ooUqyi2hKCZ6bR33FqQotO8Ql+jr9FXyEzVgPWWO6ediSKhmabWUmlFiwdCapId9uFfnX/XzWxg7yRedV/udfjW4Vtr/YT/8aN3wV79g+NmA2mhIW3ZiKkGdMUGkQrXBWwHaCsCraVZ2hvE70DgKxVOso5TLmF4IKcOTFXgxUKBXvXS7wtefsAfCA3v+040B45DaBoGum0TZiwF4TZhcBwJYiRJQdrXZRsdnbG1UKBOWBCR4N9VWD+pYcJ3pgp0ycGOuYlGsUhuVEalGqfiJoZdAycPAra8AI5VIRRc9vafFiYFQ5cOBGPnxgw9HaTkvo4MwtjHGdaQkP80gb8X8rQd9HEM/O5vHLPbuCQUKBqDTRu/FwvUfBfgoO7yOk/4XDmaxCHwUonVxDl86mjQ4MLNZFCfm6BuZInvcSI2DG3oOcy5OXKi9JYrfMZvg7Dw7EaBnkvdQ+A37/MU6Uh6ZbLwSxRRynVOcwdjfkkVAaEJ7H55mbaiAri1xh9BxYiUKwYeLV6kNwfgYcIwR7KXuosLYTKF0VqcoV+jAlhZ4/OOiiHZztQuqh74rTXOQMXHXlSEp4vTtBPl4HaVpxkwyIGZULHV1GBrDjJEGJM2OrA5n6NGjwrkoULVgLYHXn7Is5JgcPF6aZaeREZe4aRjYErKYwn8fPU87fu6fl8VG83FK/S4pw8VkzKA/zKv8pVBoi5V+IRu4JzUXcrR/SDAnSpnbeCszGghR/Ve01He4JwcYw/8TpXP2kBW9uKZjY1vCmSHGa+usrY3gpmj7WFmKq9hShKQCC++mqa/osC/X+fTCuHUAdul8fI68rL0cpNdy1MtyviHBzxuaRiVctXCS45hn1yMugri8l8mjVrUeAYrJ2f+gO1BFutAYz5Hm1EB3HzIk8Ed7uuxiSfXP6PXoVNyjxN6CpekjAXeXM/To0NzvlLhUcfAuGfch3ylGg/HHZxwGLoq0NrvolH8gsxI4AQueCx34MzPokpEfGy93t7gMWa855f1WoH+7EWefrKS3IJJXPSm6ciUhB6W4DqUJco2sNlrfUa25yce0eMYdwgkyQwb9eDWjDyph+64CzfG2L56mV72y1TK5XESJj6UE/SW1ZbVwuOjben5mJAcEBrG/JLJGVZU7LWbaH79Obqyb34w8v5ngaSuIuvv8Le7o9GpYyvsDdD3JVOqsZF0cdrPIpi5HEvHhdAJhncJAx8BlqViu/gJ7UZVqy+4b3j3Rx5yEhgRhJTc7WEO5XUDoeMCjWoOr74lEr3a9C9ja7UGG0qLuAAAAABJRU5ErkJggg==",x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAYCAYAAAACqyaBAAAAAXNSR0IArs4c6QAABHBJREFUSEuVVttOW0cUXftcsTGGQEjUNiRFQEMu3P3SvlQ8VUoCJKrEL/Q38hv9BaSGJKhIfaJPUSsRKLiAiwlRkgJpSQPGgDk+l13tU8Y6NhygfrE9M3vvNXvWWjOE4w8z0+QcujUThpXA6r0uctRc3LfEEBGfty5unqLFn2YxKP8ND57egFwUwMxrrtvZQ5o0NJALm0wYmgsiHT4TvDJjXwuw/2iAdi8KplJcAiZecMJM4CZ06PDh2ymsvCsguKLjM+houUhS8lCygO17g7R93vqq4gqAlUInA5bBCFvqEcJ10hGPULAsHB2UULJTCPwCLK5DwgqQ8HSkVUEBkdDx5ps+Oji37dEF079w2kmiS43pAY58xoabR3F8nPy4ZD8tcL3n43LZwGW1xvbwNq4LJ3Yenu1HtJOJZLT4aD8tnddGNS8gSj5usIGEjBHh74c99K42vqr4dJ5t9wC3Aw2aLNQIfwK4GjBM4UBTE3LD7XR0URDPF7jdJzTLer2M7dEMvY3GVoo/ZtaG5tHjGTC0AIFziNz4V1SKAgrHTSyN36GykNNuhpHeQml4mLw4QE+z3MaMKyFnArwf6aeNCi/Uj6lF7vaAevmfZOSiRAlVkMJtRTqXUVbHIqTUfPxzf5DexAH4cY5vVHjg45WSY7jz57N83bfQKr/dMtbGM1SoTSQAlArUXMh+A0Z4RIz9sT76Iw7A1Dx3KTXYCfwuHkJRZgdlbH6boa24BE9e8q0KEX34WgKvnH1opoVOiTGB9Qe9tBMXPznP/eIhoh4hME3NcZ+g1xkfR/vodSzyWU56Fm4J8UITEhIdJ5me41bHwHXNRWFsiNbickRN7FEvvaTJRR66COqJWW6UHWoEV3OwFtjoFBWYDMcBdjXCVQM4GOml3FlqeJblXon7r3iWO8BoEuJsush+lyH3tOCZGTZ2W9AXJWSUpDJu6di4f4fexxX/YYGvCUiZD4uLxAYW0CfaFkt8OEjLF2GteAA5sBVRQ9JZWB3rpuJp8ZPz3AQdHeE6D1tjg7QZsn1iiVOmj5vH7d950EvrsaT7jb+Qm+20eQLKjQ3I1xpRlVR97I0MUF7iKyajSBMS6RQ3ihabWOLmOg+NHsNkD0XbwpEf4HPpnhhRuhErCkCUZMKX0bvIqjdAlb1G3SjOj89k8rERiSIW+rH49c/Q9i6hR9m10rfKceJiqbJDH3ulPNbPusmqOvKCE8l6dLgEW45A96ApE6p1zaq2R5M8m+NPAwOfyJi4GAJsjGTow1kSUnNKkpXdeSj9FSB/mopO7FwFPfmVW0wT1xRy0XBA2HGK2Fv+Es5jokCt/X6WzTYPCbZwyTWQloeImhMj2vKw+r+KS7Bou9iMNnUtqoTSjUAPHxhsAKavoS7aFWm5X8YHw0arGIp4SCqN5VoVxO686hhy3GAcorl2V7XHoLozfxfb0hl5mOzuolvZsVHGykiGDmMJd965Ts1yMrDR4AUwdQ1ELnzHhjww9uWer40XAMUCOqQ7tRfXv1DuHzcOkdO/AAAAAElFTkSuQmCC",z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATQAAABGCAYAAABCHGjhAAAGK0lEQVR4nO3dbWiVZRzH8b8hYs0yR2ZKusrETS2zprOUphmJSk8IZqxWYZL1IozA7E1Pb7KgEoMeUChkpgmGaE5W5pyohbOpK3Vm89k5czrKh+beLH6X3rc7cw9nZ8uzXff3Awcn59xn5wF+XNf1/1/XuqTn1dUZAHjgGr5EAL7oGryPsqLFfKkAOqX07Fz3shmhAfAGgQbAGwQaAG8QaAC8QaAB8AaBBsAbBBoAbxBoALxBoAHwBoEGwBsEGgBvEGgAvEGgAfAGgQbAGwQaAG8QaAC8QaAB8AaBBsAbBBoAbxBoALxBoKFFd998g70+cbjlvzO90YfqvgUvjOeDRNIRaGhR1fkLNmX8cOvevZvljLwjfHj2bb0t77VH3X3DBvd3wQYkU1c+/eiZN32MjbpnYFzve/bHK630r39s645yd824zEG2pHj/Fc/xbX6xfblxT6s/y8eG3Gqzcx9qt+9g/uL1tmr30XZ7PnQuBBri8s3631yADUzrY+vn5YaXKOgWfL/NKs5e4INE0hFoEXSy+qytKdxpHxXsbPTNL3x5oguu6r/PudGZ6N8Nv+yxcaMz3P/LD52wvLUlVnTwZHid1tpenHKf7SqvjHu0ptHUqrlt/yPXK96car16pkTy+8RlBFrEKHQm3J/h1sOkYahpKqkwkwVLN8bct2hdqQ3PGOCC48jx0zFh9tYTI8Ow03pa2eGqmPuBq4FAixiNtD74+id74/kJbjHf6oVa/XUxrYk1DCRNK79bt91mTB3rwqv82Cm7JfX6mIDUyG110S7CDElBoEWQwqbn8k1uMV6hlnJtN+vfNzUcmWk62tSUUQUBhZiuU7AFKk5U29pNu9z9rRVMcYG2ItAiSmtXffOL7anJl6eKdimYFFbB6K0pQdVTft97xF79qjDqHyk6AAItwrTOpYX/YDFdI7Oz/9a6kGuJqp4qLgQ9aGqsXbTm17CI0BozPy9o85dAUQBGoEWXmmCDUVhNTa0tWbM1nC7GW6EsLdhp+46csucez3KhNn9wfzdy21J6iF4wJAWBFjFqZJ02cYT169PLvXEt4n+64ueERlYWtF3sPhpWOTUN1W1WTa3N/Sw/4ecFEtElPa+uTteVFbW9Fwgdm7YqvT1rUvgaVcm8vV9q3LsGmqPnWl2y354ek+6qnqqkNlXpbO/dAc1prt8O/kjPvtjszQgtQhQwao69rnu3sLtfrRrtRc+n8CBAkCwEWsS8t7K40Tec6F7MRFouEtkdEGy3UhFj6vsrWnUtooPTNpBUmgbrWCIVKbSLoSWqZDZ1qodOAtHpHy89mMGXGlGM0JBUM58c7XYZBL1v6oPbvvtws9NWrdH9uP1AWHBQkE0aOzQsdKjt5HjVGSqtEUSgIame+WS1C6SsYWmu9UOhlNozxbbtrWi0qKBFfgXfnJxsF3wP3HtnTP+Z1giLdhxk61VEEWhwNKqJp6H2/6D+t6AHTtNJ9bYpkPTziCED7MMlReFv1cgsrV9qGH52aV1tS8mfFCNAoKHjeThrUExbx11pN8W8Rm2z0lqZAk1TVAUe/W4wAg0BVTkzhw6wDdv2xbXBXNVNPVYn2LZ1Y7kW8Rvrh9OugwMVp93rqb8RXuYs/MHefXac+93zXpkcs9MB0UWgRdzcZZvNlm1261gKB910mkZz07egVUO34Iju1tJ0snevHleEmHYulO2vbHH6qJ437QHVHlJNP92RRpmD3NFFFAOii0CDE4xuFAxadFfYuLBrIAgz7f/8YvmmhMJMI7L6p3kElc2lm8tafZS3pp8K45wpoy4GbG4fmxZHpRR+ItAQUqidOVfr1q/O19Re8cGoTyz1xh5uEV6n2SZaSdQWqUfGDHEL+fXbL5pSv69Mf4GqoaCoEGy419qabvqZrU/Rwl7OiLlax+wk2tGv0VbD9bKApqPxHDUUVEf/OFDZ5M4I+IW9nOiQCvccsxmNvDAdIqnz1uLhRmSMyiKJERqATi8YobGXE4A3CDQA3iDQAHiDQAPgDQINgDcINADeINAAeINAA+ANAg2ANwg0AN4g0AB4g0AD4A0CDYA3CDQA3iDQAHiDQAPgDQINgDcINADeCI/gBoDOjhEaAD+Y2X8W82ZU/GROgQAAAABJRU5ErkJggg==",B=n=>(k("data-v-872449c8"),n=n(),N(),n),D={class:"login-box"},K={class:"form"},T=B(()=>e("div",{style:{"text-align":"center",transform:"translateY(-1vh)"}},[e("img",{src:X,style:{width:"29vw"}})],-1)),L={class:"content"},q={style:{position:"relative","margin-bottom":"3VH"}},F={style:{color:"red",position:"absolute"}},Q={style:{position:"relative","margin-bottom":"3VH"}},I=B(()=>e("img",{src:S,alt:"",class:"accont-icon"},null,-1)),P={style:{color:"red",position:"absolute"}},_={style:{position:"relative","margin-bottom":"3VH"}},$=B(()=>e("img",{src:Z,alt:"",class:"accont-icon",style:{}},null,-1)),ee=["type","onKeyup"],te={style:{color:"red",position:"absolute"}},Ae={__name:"login",setup(n){const E=y(),v=O(),o=l(null),u=l(!1),i=l("叙永镇"),c=l("xuyognzheng"),g=l(!1),p=l(!1),m=l(!1),G=()=>{if(o.value)m.value=!1;else{m.value=!0;return}if(i.value)g.value=!1;else{g.value=!0;return}if(c.value)p.value=!1;else{p.value=!0;return}o.value==1&&C({account:i.value,password:c.value}).then(A=>{A.data.role=o.value,localStorage.setItem("TRADE_USER",JSON.stringify(A.data)),v.replace("/storeLogin")}),o.value==2&&j({account:i.value,password:c.value}).then(A=>{if(A.data.user.street_code){o.value=3,A.data.role=o.value,localStorage.setItem("TRADE_USER",JSON.stringify(A.data));let{area_code:t,street_code:s}=A.data.user;E.changeArea({areaCode:t,streetCode:s}),v.replace("/townDetail?code=510524102")}else{A.data.role=o.value,localStorage.setItem("TRADE_USER",JSON.stringify(A.data));let{area_code:t,street_code:s}=A.data.user;E.changeArea({areaCode:t,streetCode:s}),v.replace("/")}})},J=()=>{};return(A,t)=>{const s=U("el-option"),b=U("el-select");return w(),h("div",D,[e("div",K,[T,e("div",L,[e("div",q,[d(b,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a),placeholder:"请选择你的身份",onChange:J,teleported:!1,class:"select_box"},{default:W(()=>[d(s,{label:"商户",value:1}),d(s,{label:"普通用户",value:2}),d(s,{label:"镇",style:{display:"none"},value:3})]),_:1},8,["modelValue"]),r(e("div",F,"请选择",512),[[f,m.value]])]),e("div",Q,[I,r(e("input",{class:"ipt",type:"text",placeholder:"请输入账号","onUpdate:modelValue":t[1]||(t[1]=a=>i.value=a)},null,512),[[M,i.value]]),r(e("div",P,"请输入账号",512),[[f,g.value]])]),e("div",_,[$,r(e("input",{class:"ipt",placeholder:"请输入密码",type:u.value?"text":"password","onUpdate:modelValue":t[2]||(t[2]=a=>c.value=a),onKeyup:H(G,["enter","native"])},null,40,ee),[[R,c.value]]),r(e("div",te,"请输入密码",512),[[f,p.value]]),u.value?(w(),h("img",{key:0,src:Y,alt:"",onClick:t[3]||(t[3]=a=>u.value=!1),class:"show"})):(w(),h("img",{key:1,src:x,onClick:t[4]||(t[4]=a=>u.value=!0),class:"show"}))]),e("div",{style:{"background-color":"red",position:"relative"}},[e("img",{src:z,class:"btn",alt:"",onClick:G})])])])])}}},le=V(Ae,[["__scopeId","data-v-872449c8"]]);export{le as default}; diff --git a/yusi/assets/order-Wz9SA96I.js b/yusi/assets/order-3r3dGV_U.js similarity index 99% rename from yusi/assets/order-Wz9SA96I.js rename to yusi/assets/order-3r3dGV_U.js index beb69a4..c0873f8 100644 --- a/yusi/assets/order-Wz9SA96I.js +++ b/yusi/assets/order-3r3dGV_U.js @@ -1,4 +1,4 @@ -import{_ as B,a as j,r as l,o as C,j as D,b as o,f as x,d as r,z as f,s as P,v as z,F as G,g as I,c as u,h as b,x as N,y as O}from"./index-eScbHr-2.js";import{_ as R}from"./TABBG-WY6uizpD.js";import{_ as S}from"./Bill-3vIMWlbv.js";import{n as A,q as F,r as W,t as J,u as L}from"./api-bQkc2cji.js";import"./axios-QLjAsgXu.js";const M=g=>(N("data-v-2bf103ff"),g=g(),O(),g),V={class:"box"},q={class:"img-cls"},H=M(()=>r("img",{src:R,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),T={class:"content"},X={class:"btns"},Y={style:{color:"white",display:"flex"}},Z={key:0,class:"table"},K={__name:"order",setup(g){const s=j(),v=l([{icon:"DD",text:"已支付订单数",num:1245},{icon:"JE",text:"实际支付金额",num:1245},{icon:"JE",text:"已退款金额",num:1245}]);l([{icon:"WX",text:"微信支付金额",num:1245},{icon:"YE",text:"余额支付金额",num:1245},{icon:"ZFB",text:"支付宝支付金额",num:1245}]);const w=t=>{if(t==0)return"待审核";if(t==1)return"待退货";if(t==2)return"待收货";if(t==3)return"已退款";if(t==-1)return"审核未通过"},_=t=>{if(t==0)return"待发货";if(t==1)return"待收货";if(t==2)return"待评价";if(t==3)return"已完成";if(t==9)return"拼团中";if(t==10)return"待付尾款";if(t==11)return"尾款超时未付";if(t==-1)return"已退款"},m=t=>{if(t==0)return"余额支付";if(t==1)return"微信支付";if(t==2)return"小程序支付";if(t==3)return"h5支付";if(t==4)return"支付宝支付";if(t==5)return"支付宝扫码支付";if(t==6)return"微信扫码支付";if(t==8)return"信用购-先货后款"},n=l([!0,!1,!1]),h=t=>{n.forEach((e,i)=>{n[i]=!1}),n[t]=!0,t==0&&(a.data.splice(0,a.data.length),A({...s.area,limit:50}).then(e=>{$(e.data.list)}),F({...s.area,limit:50}).then(e=>{e.data.forEach((i,d)=>{v[d].num=i.count})})),t==1&&(c.data.splice(0,a.data.length),W({...s.area,limit:50}).then(e=>{k(e.data.list)})),t==2&&(p.data.splice(0,a.data.length),J({...s.area,limit:50}).then(e=>{E(e.data.list)}),L({...s.area,limit:50}).then(e=>{e.data.forEach((i,d)=>{v[d].num=i.count})}))},y=t=>{if(t.ceil)if(t.columnIndex==0){let e=document.getElementById(`order${t.rowIndex}`),i=document.getElementById(`card${t.rowIndex}`);e.style.display="none",i.style.display="block"}else{let e=document.getElementsByClassName("order"),i=document.getElementsByClassName("card");for(let d=0;d{t.forEach((e,i)=>{i%2==0?a.data.push([`
+import{_ as B,a as j,r as l,o as C,j as D,b as o,f as x,d as r,z as f,s as P,v as z,F as G,g as I,c as u,h as b,x as N,y as O}from"./index-5L8dO1EA.js";import{_ as R}from"./TABBG-WY6uizpD.js";import{_ as S}from"./Bill-zne2XV8t.js";import{n as A,q as F,r as W,t as J,u as L}from"./api-JoJiEZDD.js";import"./axios-QLjAsgXu.js";const M=g=>(N("data-v-2bf103ff"),g=g(),O(),g),V={class:"box"},q={class:"img-cls"},H=M(()=>r("img",{src:R,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),T={class:"content"},X={class:"btns"},Y={style:{color:"white",display:"flex"}},Z={key:0,class:"table"},K={__name:"order",setup(g){const s=j(),v=l([{icon:"DD",text:"已支付订单数",num:1245},{icon:"JE",text:"实际支付金额",num:1245},{icon:"JE",text:"已退款金额",num:1245}]);l([{icon:"WX",text:"微信支付金额",num:1245},{icon:"YE",text:"余额支付金额",num:1245},{icon:"ZFB",text:"支付宝支付金额",num:1245}]);const w=t=>{if(t==0)return"待审核";if(t==1)return"待退货";if(t==2)return"待收货";if(t==3)return"已退款";if(t==-1)return"审核未通过"},_=t=>{if(t==0)return"待发货";if(t==1)return"待收货";if(t==2)return"待评价";if(t==3)return"已完成";if(t==9)return"拼团中";if(t==10)return"待付尾款";if(t==11)return"尾款超时未付";if(t==-1)return"已退款"},m=t=>{if(t==0)return"余额支付";if(t==1)return"微信支付";if(t==2)return"小程序支付";if(t==3)return"h5支付";if(t==4)return"支付宝支付";if(t==5)return"支付宝扫码支付";if(t==6)return"微信扫码支付";if(t==8)return"信用购-先货后款"},n=l([!0,!1,!1]),h=t=>{n.forEach((e,i)=>{n[i]=!1}),n[t]=!0,t==0&&(a.data.splice(0,a.data.length),A({...s.area,limit:50}).then(e=>{$(e.data.list)}),F({...s.area,limit:50}).then(e=>{e.data.forEach((i,d)=>{v[d].num=i.count})})),t==1&&(c.data.splice(0,a.data.length),W({...s.area,limit:50}).then(e=>{k(e.data.list)})),t==2&&(p.data.splice(0,a.data.length),J({...s.area,limit:50}).then(e=>{E(e.data.list)}),L({...s.area,limit:50}).then(e=>{e.data.forEach((i,d)=>{v[d].num=i.count})}))},y=t=>{if(t.ceil)if(t.columnIndex==0){let e=document.getElementById(`order${t.rowIndex}`),i=document.getElementById(`card${t.rowIndex}`);e.style.display="none",i.style.display="block"}else{let e=document.getElementsByClassName("order"),i=document.getElementsByClassName("card");for(let d=0;d{t.forEach((e,i)=>{i%2==0?a.data.push([`
${o+1}
`,`
`,`
${i.cart_info.product.store_name}
`,`
`,`
${i.total} +import{_ as r,a as h,b as p}from"./ZHB-8cmnZlCw.js";import{i as R,j as b,k as D,l as J}from"./api-JoJiEZDD.js";import{_ as W,a as _,r as C,m as V,j as Q,b as f,f as N,d as t,n as c,t as n,c as w,h as u,F as Z,x as F,y as j}from"./index-5L8dO1EA.js";import"./axios-QLjAsgXu.js";const g="/yusi/assets/DCBG-Dn2dq0Nt.png",H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAYAAABHomvIAAAAAXNSR0IArs4c6QAAC+lJREFUWEetmHlwFFUex7+vp+fKCSg3rhBEdKNLaeGKuuyuW16sVVsWK7jrWquraFmFWFsleK+C1x8k7BF1dQmSIKBCAAlXAJdLCJeRU2JCSMgxJDGTZJKZ6Tm7+239XvebNOgfxNpUdb3XL9PzPvP9na8ZfuRfdTv/5fkoHuQMN7sVjPC4YKgKOg0DJyI6dq9qwu6d9zLtR3595jE22C/o0PgtjREsPxPCDfRsthvwuQC/C8hSAb8KeBWAMZzsTeKFN+qxa++dTB/sPvLzgwJMJPi1u7pQX9sHZLs4kpEQov0h8GgPvDyJIbnZGDlyJMaPHY1sjwIXg7m3E7dXnUBNxWxm/BjIywbknHt3XkDH0SCGutMatL4eRPuCx1UttFbhyS9PtbVc5eXJGQVDcu+aVnjD2HHjJ2Dc6JFIptOR2cs2zzw+f+YuMMYHC3nZgAc6+Y49HbiHp+JI9AXRl0gvCWDiok2VLxbANN8FMF1uPuXKPLx21x2YOLkQY0aNQNWpOjyx7NPDuh6fi7KiY4OBvCzARIJP3t6JupO9HMm+IIIp93t94aHPV+x4aSwMo+GHNiwcPgQlD9yNwik3waOqmP7OezjT2maC6eNR9ve2y4W8LMC2KP+oKoDH27rDSKT0U98khv2xqurZRkR8jQDGDmzGNwBYD0M5DjfMj2fd/c+fjp9438SCCfj00DHM/bgC3DQ7gKwClC9MXA7kZQGe6zMa17coBUY8zL/qz3nu83td/8CjC1aC4ZGBfMAfQFlxpXPTpqamkdzt77xixCgEekP42StFME0d4HwdVhTPGjTgjG08TzXgSblhqjq4Oxt8ghfKk9ejeWsbcnPdiFW24tH9W0vqYlrnaQiX51Dcnrt+8YdF++hueNBaLawFX7AAo1QfAkkDzDTN5Ji/LvLGErZwzFWI5e98O/ADfziAMgruaeelVQE8rKWh+lUYPhe41wWT8luOGzluReQ3w+tCSDGT2dxI+70ujlyPGhue4w95VHAPA1cVcJUBChOJW1UZrmL2LiEtHg3H4zmMMWR7vNErc7J6TQV6PIXNc7fgpYrZLH6pquJRzvnVnzWheXsAGOa1Eq1IuK6BJEz32ap1L9dpTuByjeYuBhAgQdmgYk5/ijP7csAUewM6B74O4vYDy3Bk4UJGyxdXklgsdseGgPfA/i4FQz3Whj6qCjYMjXSfZVcLJxTB0r1HsUbVhqQdCJau71UFWuOAYUOm0jpO95oPfnDIs7liNkt9DzAajd5X2eGvOhJULAWpdDnUkmC0LtUjGAIXcC5LLQlHUKSaGGFdlrdePCdAulK6iac/3hisrKmJm3o6BYb1KC9+kZ4Rz3aE43/Z3uFdXtfPkG8rSHWVVKFRKGrDSUAa6f8EIVWUpqU1xYYTm9iK0Vzaz+SWeQkwaXA8v2YrVlcfhGnYZVth12H54noB2NwTe25Xt7+4NQoBKBS0oci05JMSmJQlMCeUyzYxQZGfCTgbMiObLZ8TLKOgwfHWpt0o3b0Hhm5bmOHXKCvaJwDP9cbf3hf0vdydEBE7AOcwqROMAKXPEZw0L4FJs16qnPQrCgiCpIsA6T5pACVfVKNk23boelI6xO9QXrxZADb0xJfuDfqejKaBPIeCThNLk0p/o9EZtQSa8TlpUtv5yJSySxCBQXCmBZcygZQBrDp4HG9/vhHplJ1pOJ+DFcUfia+oC8Y/O9DjeyhtWv2dNK/T3yQg+SIpJRUUZrWVk8HhcDkrOGw6GnTTAiQ42o/gCHLjsVr8bU0FUkm7x+VsPlYsXmIBdid2VPd47yH/IV8jGBkcIkHb/khzeckAEb5GKUWxQEkqmfekWQlMmpRGAiNQAhOQJrCr9jwWrFyFZCJiPcbwBsqKXrdM3B3/an+Pb6pML5RWJBSZklTL5Dk7nUjzOtMJARIMAdMXi0RsK0imzUStaZk4aQOSDx4934F5y5cjEeuXv+t9lBc9IwDrg/G6QyHfZKoUFAxSPQklK4ZMxDIoZFoRuc72N5cj54m0YifjjO/ZCpJyCcMKEFLwmws9eHrpUsS1kARcjfKiR6wo7om3Her1jRtiB4g4Y9jpJBWPIh3XRKQOyctBfk52JiFL/xOKXVLOhHIAoloM/ZGoiFiPPwtZWTkCiExMCsZ1azzfHcVTH36ISLhLAm5DedH9jHPubw3rnQe71TxZ5qR5Y5E+BFrOY0vNMeSpwO+n3YwJEycJ0IsCwzapSHU2KCkXjkRRf/YsKr86CepiZt56M8YWTEZW3hABSerRFTeAzkgS80pL0dnVKgEPo7zoNqZp2pge3dNWE1IVoaAdFAQZ7u3Gv//7JT45chScm3jhthsxc9pUTJo0CV63aiVjmZhllbAjNplOo+7sWaw9cgpLDp8CNw089fNCzP3tDOQMG5ExL5k5pgP9CQOvfvIpvm08bWuPOpQXXc+SyeT1bTGlti6iiiqSqa924X9zYxVW7t0nAN0uBR/cPRXXFUzENddcgyF5ueLXyrImzUrKnW04h5ONzXhm51GrSQXw+PRbsPChWQKI0gspR3OCJMAlW7ai5tRBsReATmjN4xh1Mi1xz4HWuAt59hmXIlcGCLiJGcUf4tvWFvHLPC4Fc68b0zCt4OpJEyZMwLhx45CbmyOUDEciaLvQjubmFnzR0IqVDe1IpK3SVTB8GKpfnw/NUIV5CYouTbf8MJw0UbZ3P/Yc3iF/kIZ0YgyZ+P6WpG9LMKlYOdDuTmQ5o/zWr2n41dsl+K6vj3LFC1hRtLi0tHT619/1lo/0ewuu8PvAwdETT6ExksCJcBK1oSj1mQIu3+/DkUXPwePLz8AJ3yM4W8n+JMe6I8ewfd8GGEba8kOXOZ6FwtHHAml/WURXMv2fbAScpawrHMbMkjLUtrfPwfLFH4kvmDfPi4ivId+tXsUZECa7ZYqatcfkUcOx7tk5yM8bKswpE7OES+iWilRmq07Xo3Lnauhp+1hg8imsNxJ7JpDyvZsymUjOsqSJnGeXMdnnkW88sWyNselM442p91+tEwfxxxb6wLT/gOPPMvxkKZg59UaUzvkTYjrLVA1SjkxLgDF7JECC31Pfhg3blg3UY5P9hoW0+GttCd8iMoYApKIvu2NHEyrKmN0l15wPpEfl5y8cnZ+7eds51NdWQF/Y8vJ0t8LnXDtq+J13XDtx9Kxbb2JTrv4JI8WkapT7yKSkmjCtrR4BEnR1UycqNn0wAMj4AywUjf0rkPI/S5vLkkaKSfMSGM1lVyxbeAlscrSbHAEqwRwYa3CMEc2A3a3QKAGleqQWzUWA2JFMJj5xoQefff7eQMMAPEEmXt2p+x+mDWWAiIMPFX95rrABZd67qBm45PAjmwKqHFI9WdZoJDiZWmiUvhhJA/Vd/VizaSm0SNAyF2fzWbA/vq2H+2Y4W3fnyYzARc2lB+yRwOX5Qp7MaJT1llQTZw1HMyD7PqkamZl8kCC1tKVmc6+G9VUrEOpulm78Buvqj1X3w3+7PJkJ5cis9mlHnC8cJUyCSUgJKNt3qaCzpZKmlWVNBohUU0K29sWwZdcadLVnzvPvs2A4/k0YvkIJKGusjFxxlrUhZaUg+ehzIt/bJnY2ok7zym7F6X8CUF62inTfHk5g54EtCDQdtRVka1l3JNGuwTuaqoc8jUnVKJrlsdHpd5mXfD/QSlGf54xc2RSI1OJMznYEy0gmwG4thb01e9B4ZpfMWF+whpYAT7qyxdtR2Xy6GM+8BZAnNGcb72zhrQMQEy08XQLQESBJg4l2SgQEzR2gms4yUaylOfpTHIeO70XD6Z0ScD/bsHHTW2fbOuYBTGHgSBtGFsAVJinAQeuWNR2vCWhVyEr/pbkCk7nEyJlLzE1aU1QYihsmXcyaG4pHjLoYPTBctOZFhDPsqV6HSF+nBDwqdpy1lnv68+FOeWDsX/VKEwcfTf259fLKPmTIMfN2wAppZkMzpoApVrOvKAoYc4FeEtEaU1QoCt0rYnS53FBcqn25oSgqVNWDZCKKrgtnYJqZ19lnnJJY1I8tGPR75ItL3P/xjvPo9wEfXfAmGOY5X0b9H7cc3FcxVvI/olougu6KTRcAAAAASUVORK5CYII=",I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAoCAYAAACb3CikAAAAAXNSR0IArs4c6QAACb9JREFUWEe1mHlsFNcdx7/vvZnd9frgcs1RoKgJRxrStEilpIlSVY3UU6SlUdKWpNAobSOEaEIMTUA0oISAfJC0JC03a+6EI4AKhRAIhzFHuQIECDYLBmMD9mJ7D+8586rfm531rMEcf2Sk0RvP8ft93vd3vLdmcBzFB40r0RS+bkownSPZIweL3hwmxjnfud/r9RfNzYzhMReDO1fDaV2wiU/0Ygc72mH2jdcOGNciKfTM3ADAGNDbizXThonf3S8Avb/Ob9Zyhv4uDrgEkCMAt8DV4UW8b6cg4yoNKWX7Y4IgKM6AuQv/tgFSvoOK8qP3CrS51jwEieE6OeeAzgGPsMa/Ll4S2HPu/E4YqWlYNuc82cwIMG6foTgIgA6eviaQWPMlzF87D2Dyx1hatutuMJ9ekd+OS/k5OdYIgiklwKWBeCSE1z9ch93nqsnMl/CVDskCGV+ZShmSCQJxQmgMEAxYsW4O6ptuBOEr7XI3kF115inOMZRmTyfZIJBgcwC11xowevFKGKZpmWFyBJaWHcooMnVfsLwZ3omMMRUOcq7OtCGeaMXbi2YBkv0FFSULOoM5cF1ONKQsdwKQHTOZQMPVKyj95DNsP6vUsA7JnkJFyU5nbmLSvrazUaYPEZyrWZCstrSUbHNXlKEh0JRAQvTCqtnNHWH2NsrewpB1bgFOCapgOIPGpII4VuPH+PVbnZ/5MSB3MKZPT2WB0BuvVMZTjHHh0rgyZJ8ewRBpbcC0xe/Ra6vgKx3dEeRIo7FCMDa6PSRMTaS1+Sbq6i5jzMqNaIy0OdSQz6Gi7KOsHLGfzqgKbghK9689uoBLMNDM3IKpGFP5+baswt5TnwMJ0d2pytEm+ZCbyzMUBlKBYGiWAiZqL/ox97P9WHP8Cwe7rIKv7HH7xi2K0IM3KsMxLjR3nkdHjmZBUAl6NCAZD2FM6dv0mg++0j/ahs40m6c1xh5W4UyHlYxfu1aPhuvX8cuFa2C29wcTnPXDkpL6O4KUV14b2cq8mwq8HuS6NaWE3ZC8GlC6diU+PXkSMNn3sazkcHWzfBUcc0gFO8kJKBwK4aLfj+LNO3C8/oYzkhPgK53rvHFbReiFsgOBU9D0oT0K8lQjytEynRGBlgB+U1ICSJxGRekjX7aYDR7BepFzG4Rs+C9cwObjJzFz5wGnzxAG5HbF9Onp+k1XcWdluOBw3XfChud4t3wvuud5QEo4u+OCT7Zj/o5d2PX3yZse+Frh03ZIqPRpds3NATTU1+PJ95dnu5DmD1FRvrej304VoRfnVV35WOiuX/Ut6gGvzq1cEVBQjcEQ/rl1G8qff1apQIYIhkASiQRqaqoxf/8RrDjqSFApl6Ki7MXbTf6OIPTBgkp/sHtBXn6/noUKgnJF51Y1ZTU825KZQnV1DU5crMXLG3dm+/SVdurvriD7r8WHRsOxk4Vd8xmBEATNnEBo9jSqNSq9QCaTCZy/XIfHS+Z1CAkrRkVJeWepoEA2XJCD4tKconPW1S2QdHOZdGtIuBkMt4YQZ2y8m0OoLqn6irUe2UtBR+OXmm5i0e4qFBbkq0del7vptz8Ysdxg4KaJ2rYoFjzai0WyqmZ1jfxTS0J+4OLQ7cqgHCBndrVY+wlHONLrkL1SZ6IiASoFk0YJGI4zaUikJJAygaSBm5pgL363kG3K9JHF58yrAPpQryAAgqHqoJGaGI20JBOYMyfIub1nIWPKOa1hEkia2RCJNETCgIKh8Wqg0f/78rK3gNw18E2PsX8fDzW6dK2wW65bKUAwpIANRO2dOqW1gLVXh+08owYs5zRjW4mUKRVUglSg0bDGUDSOLy5dwJQVFWSmHpw/x97f7Z8SM8yZ3fJy0CM/Bx6NwcUkdC4VUGbh0wS8bhc8bjeE4Co5aXY2UMowkUgZiCcNpEwTSZMhYcqMc3o3npIItIbRGoli27EqbDt5Ih0ZWaEmVLb54Avh1uC4YDQ8zEjGXTBTgJEEkxKCmUr3Lt26YviQgfjW4EHIyfGqSqFw0EjhaAmGcPbCRdTU1iEYjkByAck1GOAwOZWYrs5IMolDl6px7PKl9lyVWJ1dvmMnjwLk+s5KbO4zP8fIx4Yjx+tV8hMAwdBsm1uCWLO3EiU7doM2V3TQmNmJpUvcsS12gjxzax/5w+QfgcsJkOgLpvKPDgkJsfG1lweNePCbBeScDjsnCCRpSqyuPIi31n9sO6DyvJne/iouAEmKaPqeAFADac6glq9AzjXKfJeOCRpHd6FBaoApeAZCGeYSMi7xvGGiL3EQBAERACUgnVeaAjhcTZtyhqKu3c59b/Cg/UkDminBkxJCmmAxifqR/UVxR4FYTUD2i0Me0QSKrG2dVaZq8UqvIUqSdE+g2dshiZtSVUmmKkwgnq4Me4wZVrXE07BUSTpngT4e9uSzA9mZTB85fdPcpzE8oQumtv3knMqUnNkgdnOikZzSs5S0lCAQckoOyZnzb7tk6Ru7guympiVb66fNnzUVvlKfittBf9PVHI+nT9f8XGsVTatg5wEpY/cFMky7LBrJuZUb1jXNmhzSNQE575EKtmqqs1LmxVswe8ls0roKLvk023rw9Cuc83e/0b8vCvLyVKZT4qiqcJSolQftKthObRB6FksB0VR7E7Ocswyw1d5NdYZuVGPRZtXQ6JitknXB2q2bIuHQT4TQ3JwzyPQPQMm4ujYZR0G3QhT16o0eRT0B4VKzdqoQiibQ2BJCS7gNMZoF1yCZgJkeVV9R9jhS4Uas2LIUkVh6Ry/lukz5zv5oR/8P/3d0bH2kbYZdr0obpRADEwLFP/spHn3oETDdlYGwkzEcS6D6UjVW7dkOKRl0wcGpkTGeVplB13RE4lHU36jLblUMk27tI2MnrQQwCoCnY2P74KWX8GD/B5CUPBPzaMqKOYWkocGPWasyPwKpZ8TSNrR077D7GfUlHQytANsIeMfffmP0QnERBOsCLgwnzKbXp27j7tyBdiLalWItZhLNgauYuSyzOfeBswnq+5RwQYBDT1ggMZeEGXWBaUEsL1P7krvu0LJAqqNnY9w9RIE4coQgCCbc2oBZFf+wP5kLX6kFcg/HfYGsOdd2sQ2uASnJrfJ0dFWlSqQRs332bpAthK/kz/fAoF65L5BFJ1pPt8H1sBRuFQpnb6DNjxFpRNnyOWnfXyHIv6rq32iU3neEy6OWeOoL1o5Lqt5wufoANuzZYoHc4afD7VS6L0XIwJvb/P9tZTlPmUwTknGm+gMYwoFaVGx1/pj6ChXJmsmY4l+Asf90mgOmHIVlZZk9wd1y5b4VyTI4dtIUSLwKBrfjfhIM72Kp9S+Dez3+D6clv4gSyJPlAAAAAElFTkSuQmCC",T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAeCAYAAACxHzfjAAAAAXNSR0IArs4c6QAACUhJREFUWEell3lwFMcVxr+ePUYr7YoVAt1CBxCOBMgfJKQgGCpQuISvlKlcVBEgoQBDQlzYJMam8AEIjMCACoIBIyQCkY1EKGyQuQrbOBib+5YBCRIQAp0raaU9Z6ZTr2dmWYHMEU/VVM/RPf3b7733dS/D9ziKr/LpiqaNUjnry4A4C4Nkk+CLkVAjW/iZGFn65Ok0dup7TCGGsif9wKZKPr1D4bODKu+rcjisEmCXGKwMsFkAG7USoD8HYqy4Fmflnzps0rphPdnVJ53viSBXX9DKvWGep2qIJQACsUlMgJj3dgsgS4CF6c/MVkAzaA4rTjntbOZANzv9JLCPVHL9Jf7r5pBWGFCQHIExAGlygiQ4ekdqyqSm8SMkU1VDZQsAiwSEgr7NP0lzTntc0IdCrjinVTQFeZ4IpQFDoSUoAWecIsySrqKANSAjSjIdju4lAcrgaff6T1y/8cfZI4eUPgr2OyGXnlbPtykYRCCmMrKFRZRyGOoRmAQVTFNg4SpkqwWxsg02qySASFlS1MKYgCRYOuha4xreKtu9dcsfXpz8MNAuIRedVuv8CpKEOqZqBGioGUOA0KCGfGhrbkJLUwMamuoQDgUQHyMjrUciMtPSkJrcEy5nnICkiailqFCrcb2l492P99WvOXA4D1sKuszVByDzz6jXOhT0MfNNh9QVJDhqoQTR1tyAO7U1OHn1Mr6uqUF9R0dEjL7ubhiRkYIxPxyAnKxMZKSnwmqxgglFAc71rhqBG6OmbixR9529NAolBUfvV7UT5LKz6qX2MAbeA2QCzLAS0Vq0EFoa63Gq8jzWH/kCxnyIlWWkuuNRXddAc3wLwJfdzZWx4BfDkwb374fMjHTheKSeOYbUNC1G5cCEVevxTfX16ShesSkaNAJZeFFdWe/HXAIhtSj/6NphNe+BGAloaarDpaoryK/YK77z8/4/wF/yxuFHmWncbrUyxrUWu1X6pzMWC9yMeSau2jzlNz8eWJSVlc1SU1IicxMUQRInQSgcuO1pwYiF+fRkHIqXHzQ7C8it53hcdVhro1zXlWNkwnp4dUMW4GrAB09jHaZs2ghV0zD/l89i6uinItVMH6NwUlg1cG8sY0PcDnZj39ETE2Q5tjy3d2/Y7LIeakNFEzas0TOOSzW1mLByDfX4KYpXnoiY+fJz6q2QigwCcZCCRu7FWvVQm2p6Guvx2bnTWHPoM/RLTUHFa3Mj1iLsxYiLAAVQ62lRh71V8J4f6pLjL8/80ulOGBQf301AEhxxEhzlqMI5VA0Ic2BRWTl2fX28CiUr+grIDyr5/IaAlq+vFvcUNIuEWjptTIPX04zJGzaitqUVZS/Pws/6ZBv2cs9W7k/6OVt3oPTYSc+R1/60p6c7YZLT6YIiVNNBCY7uKdwCUgMave14fskiwjuC4uWjWOFF7ZaiIYPUIu+joqFrE860ICtUNDU3Yuyy9wRH5fK3ER/nEJZiVi09NyvXrN7VFYeQ/8kBzMsb45k+dnSCZJUFmAlJUHQSqGg54AuG8dw7C/Tfy9kLbNVpX7PNaklwyjaRdwRq5qCpprnc1TU24KnFK8TYC4vno7vLiRjZFskvUblGGEmlYCiE9w8ewdK9BzB77CjMeSYPGlgnIBMsrOqhVlQOrz+Iie++aUDyKvb+8fq1IWabneR2Is5u6VQo5jJHlS4Ug4r+ryxEIBxG+fSJyoD0VGtKcnIEjPKQvE/PMaCx2YM1+w+j6N/f4M0JL+BXI4YLtegHhFS9pfuQBgRVXU2vPwCfP4BZa5dGMkek+vpjtxtdsY7E5ER3xLDNjQJVOqWAWRivbBM5hvED+jS8Pm5kz+ysLMiOWFEE0SreqW8UkFNKPsTdNi+KXpqOIbm9BTwBmmEWcAZsQOFoafPi8vXL2PDpLhNSFZDFR6uf4YztSU3qie7xcSLk+s5G90qzWimc1XX1GP62CHm4/Lfjj7hcrjE5ub3RrZtbV0VRUNfQiBv/uYmSk2ex/0oV0hLc+GjePDDJGgE0YUlFOincnvYO+Hw+rC7bhCZvqwnZGjHz7Ucub5Jj5Gk5mWlwOWIEJC1ZtKMhONNeaMCiXRUoPPA5afe7v48dNtxqtf/Z5U6AzR6D1vYO3GnyoOLGTXx187aY6OPX30C8Mz4SWgISITbgCLjdH0Rruw87DpSisua/USbBF3ZaFrcfOnEiMcE9NDe7FxyyPVK55gaBQkrgVM0zi0pRdvzMBRQXDN6wY++gim+ry8Ka1s8TUnCsti4yyboZM9C/V65QkKCoNVU0If2hMLwdflyrOoPSLyqiXawFIUvuAxuM0v1HK9NTk/vnZPWCbLeJAfq2SjdfM+/oft/5yyg9djz/4Nypb4iOU15dBrC/0eWzQ4di2tPj4YiJE0VBqSDaqJwkNf0hBR3+AOrv3sDGPds626zE+qNo+ZUHILfvPZoFzXcoPS29T25uLmRZFqGmShTeZ6y51NIkKue429p2MSnedTisobWuzTdYgTTSYnN0p2oNkIJG5UZDklcSYLs/BK/nDtb9q9OegqxkFrYUrKc5v3PTu2Xn3rPp6RlD+vTOhdPpFKuBuYwRoG4lPFKl91uJaStmYZgVHdL0MYGQIky78U4Viiq2d1aQYwVKCuaZD78TknPOCrft3N0rPf257OwcJCT2ACSLvpQZE5FSXYWQngk4Iw+pn17BHCGVC7hAKIyG2qv4x4GP7gfchpKCSdEPH/lHbO328pdgi12bk5UtpaRnwh7jAJiEgAEhFFT1sFJBmICmD9I7oZ7K4Q+r8AfDCPrbUfH5DlTfudUZEMhHcYGe31HHIyGpb+HOiowrtU3HsnsmZaSmZaJHcgrkOBdUWCKKRYc14n0aR1DhQjVfUKF/iaJAPjy8836OEDh/ByUrltz/4qE52VXn7LmL5wxJSikYmJ5l756YhFhXN9gcceAWO1RmQViTDHvhoNUjqKgIKRoCvjbcrr2G3V/t7+qz52HRnsfmldHm+ORKdhox6dUkSGzl0F7ZL2b1SIp1u7rDJjtgscpgFjs0Jon1O6yq8La34FpNFc5cr+wK7hoYNmJLgb5jecjxWOHucvzv5ydCUmaA86lgrM+jJop6/yU4PkBJwdbHHfP/Q0bPMPmvYwA+Ggz9AHQHEAcOKxiCAG8HZw1g7DzAD6K44Ozjwpn9/gdNEFnKjVmJfQAAAABJRU5ErkJggg==",Y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAiCAYAAADYmxC7AAAAAXNSR0IArs4c6QAACWJJREFUWEe9mHtwVUcdx7+755z7TMIrLUSSWkuhtCBTrGXaoVBTVCrVOtPRUbTSYhVL/3JG0xZGBWqZIjEBtVbGVExaplVxBluRl7wfAwTCO7wakBCSwE0g3NyT3Jt7zznr/HbPntxA9J+OnpmT3XN2z+5nv7/H7g3DLVflMWdfIsOmCMCwOITBIKgMcUCWBqO6CBsQYQ4RMfPqhuyLqAlhcqoz+h7U3+CAyWAZDJ0m8GZRhFXdOrd+ZvkNbza6yz9KooIzgAajCXRJUCEDCBsMEQ6ETSBiqJvaoia1qTqVJmPye1MtRo5D49KEVBccXxhqsa2DgQ2AWlDvpjMuImYeFA2qJmISSoPQxLpOkwaABkGwYDH0PY1HQPImKA6cbr3qTllcfQnAr1Bb+Zt8uACq5ox46PRN7zCtggbRKwwU4gwRXw0NQKVWh4CjpBBn8nutMI2TD0RSERi9u//VN3D5ehcAUY7aX+68zXzVJ7yNbb3iSRrMYAImPBjChck8WEzAYh4izIPJBEJcvQszD2Huyf6qj4ABIftwv67UEeCcIRqJoCAWQyweA2McfztyEt9Z9S6xHENt5eTboBbWu1lXkCMKiFwW2VQn7GQn4GQBNwfh5VTdcwBZzwHCVc8uvXMghOe/82j1gKCb6vQkEDEMTJt4PyaOvw9lZWXIOg6KX1qoWJh7F/5Y3SKr9Oft8+Kp8ze89dJkTABZO72kZmn0P0XHx3k/dsRQfPDSHIwuLYUrgNc/2ITqjduJ+n3UVX4rgKo+6R3sSIspftgjjKxX8eufken1dRJAC0DEH+/68oMPDF8z/7lHaRTHA65225j4ymv02IfaykgA9ZNDrkOuRE5LkUSRZri9sLs7Eba4PaG0tCFiwrEAJ2LCNRi8sAHHNJhnMngWg2dwCM4gDEBQxJsGPAEwqvvLcMBQ6Lj4qgBMepfzIDs9+9ZqbG88S1/+GHXLq1jNWTG/OeW9lQ8UphA3gZgfXToH6fcyIrnKQzoHkel1LqIJdU6SHkWuBQVAJZmN6qQUlY2t7fjSshXUsw21laPZypPe8WRWTNK5SIe7BqEwJ2D9TO2UhwIYP33kJ0fyVHJWuqXLi34QgiIYAqOb1LLTaUx+dZEvqChny466SQEUqcTIZBIkgPxcpHMQgVNm1XlMq0PPZCdS57aLFPGV0QqROllPwWU9gRvdNqYv/rn+9ABb1tBnc8OIR02uQEyVBDUc1S1DmVIl1H6VZKLl/tbhl761ApNpEK2MBHJJISFhCa6r28aM1wKoHKs+nDrvMnPskFhYwfgqSZNps3EgbXcjxIVMhMXDh0n/yQeiUFUZCeixbSRTPdJ/wtE44gUFgckIgoBcqRLQ53jo7sngydeXaKXSbNXBay+mEPndsIIoiiKm9J+Yv51QnZzb6etFe0sz/nTwMJ59eBLGjrkHQ4uKpLkITmU7dZH/fNTUhLX76qUSz0x9BHfffY+sk/8QEJVkOiqvdt5A4mYS82pW6SF65HBVu1vOWZY1rmTEMBRFLWk6CWRQ3GbQerkZOxobUbX7IOY/PAlf+8wEjL13DIb4YFqhXM7BlbZ2tLa24um6dfAg8OELs1E8sgTDi++EC+abDuhzgc6bSVzt6ELNtg1oaG4O1hWscen642fikdD4kcOHorgoJjN7n30TifY2HLt0CVUHjgZqzJs0FjPuLUNp2V0Ydecd4IaJlG2jpeUKzl2+gtWNF3AqcUP2n1JWgm9/eoJT8onRJoExK4LevhwSXUkkbtzEzjMnsPl0Y77UTQPiZemfd/wo0dW1yOIoZJ6DnkwPjiQ6caAtMTCoBNb8tvyhd5sSHb8PmeYnyYxpx8NFO4MtrZ3IOM6A/otnzvqUlUm+0ZnDNw0rDMqiHakktl+4gPYknRLyLsanDhbEMF5YsFkI74uepw2jPrqvZCTOtV1bj7rKr+hh+NxX/iAgvivImfKushHD4XpeR1uy+xms/sVe2fT8glmmwd5zPWfIrf0BZCDwA9RVviOhhBCssxej7oiz9mDcuRXfgMD3Adz1wOhR1sKnZ4afenBCCRPYFeJ4ORZi9UHfOS+XwxA/hMC4IdFIeN7nHzefKy8f7XgsG+asYvwwvM0Yy8j+cxaMAHcWAWK6ZVgFw+LRvkQqtReMLcHq5W3UJYA6fl0csjgiIYP9xWQ4YTGYpolxHKAz1jQZZH6mJk3SWedcxDTXOQJHmEBvjmFMzsVUR2BmxhFDKLIo5OkWnkilc+6hSMja6QItOQcjbUfMsHN4tDjGfjqrlK0cYEH90HAteyQaMifLY2/e2Zza9T4mV8HUfpW/fxEkRZND4U6hL5NjPxS10TOVBJmh0q+PDDvzZ48LrcLixSbOZwrx3rKuwKcaWlN7CmLRxyKmIfc1AtFnaw1OMHSRp2kwSoL5+YegVMZWAL1OP9CtcJQ4Ey0na1asez8FiK8DeBG1lRsCqBPt9q7CWHR62OTBmVomRj8hahjyZ4Ki5Ef1PtpcPSFLCeIroFWhd2mnXzXVrhJo1hHYu/9DbGnYrybifBoFRQDV2J7aWVgQe9zkXCZNrYpWiUQiCMrMBKQ3WTIZmUMDERy1SxNpk7kKXu95wWbsCtTXr8eWw/v0NNNRW7kngDqbSG0vjMXKDc7V7zI/Csh3tFoEIjdWCaVWSzcBqB2/XxVtKt2uzCmCfnKbcQWONfwDmw+pjAFgIFTTtdS2eDz2hEE/ynxVyKkJQp+HaGB6lg6tzeUroNUiRaTpfKWUWgpGfyMXJxUVOHV0IzbV7/7vUIzTOUDlCg1DzxpIT6DDnSbX/kOl9i0Npjdg6q8W1H/AI7CzJzZj44Edg0Nd6LC3xmKxGZwxpY4fYTrK6PeXPP9oX7nVqX0gmjSAc4U0qT5hatPnn62aTv0TG/ZvGxzq4nV7VzQan04K5a9GnRL7jxv5qmhf0u+0Y5OaNLF2aB0c+SdPGpeiuPnsTvx9z6bBoY5dbN9vhcKPxOIFsrPMP77c2iQ5Tx095OT6kCaf+99Lh9cRKlViQaRqEPkDwof6V+NWbNwf/J9joKOv3bL3ey1t7Sv7slmWEzzsMW4IbkJwA4JboLpnhFQp31sQhgVPtql2dXMI5n/HDIDRs7rldgCm6mDgwsGav1YhaXf7WZk9gXeW7xj0lIDnK8jzPpe/H/1f6gKPoa5y3+BQcytmQ4DOp4O3/28IW9DjfBZrV6T/Db4KUhSyRm52AAAAAElFTkSuQmCC",G="/yusi/assets/SPXSPH-sLQDaB4O.png",q="/yusi/assets/SPFKPH-Vx0EZr-1.png",L="/yusi/assets/SPJGPH-NAnO_Tie.png",s=A=>(F("data-v-39f1bc3b"),A=A(),j(),A),X={class:"top"},$={class:"top-li"},tt=s(()=>t("div",{class:"top-bg"},[t("img",{src:g,style:{width:"100%",height:"100%",position:"absolute"},alt:""}),t("img",{src:H,class:"product-icon",alt:""})],-1)),st={class:"top-content"},et=s(()=>t("div",{style:{"margin-top":"13vh","font-size":"20px"}},"商 品 数 量",-1)),it=s(()=>t("div",{style:{"margin-top":"0.5vh",color:"#5C7A88"}},"NUMBER OF COMMODITIES",-1)),ot=s(()=>t("img",{src:r,style:{width:"70%","margin-top":"2.5vh"},alt:""},null,-1)),at={style:{"margin-top":"1vh",color:"#B1E4F0","font-size":"20px"}},nt=s(()=>t("span",{style:{"font-size":"12px"}},"件",-1)),lt={style:{"margin-top":"4vh","font-size":"10px",display:"flex","justify-content":"space-around",padding:"0 2VW"}},dt={style:{display:"flex","align-items":"center"}},ct=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:h,alt:""},null,-1)),rt={style:{color:"#B7CED5","font-size":"10px"}},ht={style:{display:"flex","align-items":"center"}},pt=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:p,alt:""},null,-1)),gt={style:{color:"#B7CED5","font-size":"10px"}},At={class:"top-li"},mt=s(()=>t("div",{class:"top-bg"},[t("img",{src:g,style:{width:"100%",height:"100%",position:"absolute"},alt:""}),t("img",{src:I,class:"product-icon",alt:""})],-1)),vt={class:"top-content"},yt=s(()=>t("div",{style:{"margin-top":"13vh","font-size":"20px"}},"累 计 支 付 金 额",-1)),Ct=s(()=>t("div",{style:{"margin-top":"0.5vh",color:"#5C7A88"}},"ACCOMULATED PAYMENT AMOUNT",-1)),ft=s(()=>t("img",{src:r,style:{width:"70%","margin-top":"2.5vh"},alt:""},null,-1)),wt={style:{"margin-top":"1vh",color:"#B1E4F0","font-size":"20px"}},ut=s(()=>t("span",{style:{"font-size":"12px"}},"元",-1)),xt={style:{"margin-top":"4vh","font-size":"10px",display:"flex","justify-content":"space-around",padding:"0 2VW"}},kt={style:{display:"flex","align-items":"center"}},Ut=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:h,alt:""},null,-1)),Et={style:{color:"#B7CED5","font-size":"10px"}},St={style:{display:"flex","align-items":"center"}},Bt=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:p,alt:""},null,-1)),Pt={style:{color:"#B7CED5","font-size":"10px"}},Mt={class:"top-li"},It=s(()=>t("div",{class:"top-bg"},[t("img",{src:g,style:{width:"100%",height:"100%",position:"absolute"},alt:""}),t("img",{src:I,class:"product-icon",alt:""})],-1)),Kt={class:"top-content"},zt=s(()=>t("div",{style:{"margin-top":"13vh","font-size":"20px"}},"累 计 支 付 人 数",-1)),Ot=s(()=>t("div",{style:{"margin-top":"0.5vh",color:"#5C7A88"}},"ACCOMULATED NUMBER OF PAYMENTS",-1)),Rt=s(()=>t("img",{src:r,style:{width:"70%","margin-top":"2.5vh"},alt:""},null,-1)),bt={style:{"margin-top":"1vh",color:"#B1E4F0","font-size":"20px"}},Dt=s(()=>t("span",{style:{"font-size":"12px"}},"人",-1)),Jt={style:{"margin-top":"4vh","font-size":"10px",display:"flex","justify-content":"space-around",padding:"0 2VW"}},Wt={style:{display:"flex","align-items":"center"}},_t=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:h,alt:""},null,-1)),Vt={style:{color:"#B7CED5","font-size":"10px"}},Qt={style:{display:"flex","align-items":"center"}},Nt=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:p,alt:""},null,-1)),Zt={style:{color:"#B7CED5","font-size":"10px"}},Ft={class:"top-li"},jt=s(()=>t("div",{class:"top-bg"},[t("img",{src:g,style:{width:"100%",height:"100%",position:"absolute"},alt:""}),t("img",{src:T,class:"product-icon",style:{width:"40px",height:"25px"},alt:""})],-1)),Ht={class:"top-content"},Tt=s(()=>t("div",{style:{"margin-top":"13vh","font-size":"20px"}},"累 计 访 客 人 数",-1)),Yt=s(()=>t("div",{style:{"margin-top":"0.5vh",color:"#5C7A88"}},"ACCOMULATED NUMBER OF VISITORS",-1)),Gt=s(()=>t("img",{src:r,style:{width:"70%","margin-top":"2.5vh"},alt:""},null,-1)),qt={style:{"margin-top":"1vh",color:"#B1E4F0","font-size":"20px"}},Lt=s(()=>t("span",{style:{"font-size":"12px"}},"人",-1)),Xt={style:{"margin-top":"4vh","font-size":"10px",display:"flex","justify-content":"space-around",padding:"0 2VW"}},$t={style:{display:"flex","align-items":"center"}},ts=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:h,alt:""},null,-1)),ss={style:{color:"#B7CED5","font-size":"10px"}},es={style:{display:"flex","align-items":"center"}},is=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:p,alt:""},null,-1)),os={style:{color:"#B7CED5","font-size":"10px"}},as={class:"top-li"},ns=s(()=>t("div",{class:"top-bg"},[t("img",{src:g,style:{width:"100%",height:"100%",position:"absolute"},alt:""}),t("img",{src:Y,class:"product-icon",alt:""})],-1)),ls={class:"top-content"},ds=s(()=>t("div",{style:{"margin-top":"13vh","font-size":"20px"}},"关 注 店 铺 数 量",-1)),cs=s(()=>t("div",{style:{"margin-top":"0.5vh",color:"#5C7A88"}},"NUMBER OF FOLLOWING SHOPS",-1)),rs=s(()=>t("img",{src:r,style:{width:"70%","margin-top":"2.5vh"},alt:""},null,-1)),hs={style:{"margin-top":"1vh",color:"#B1E4F0","font-size":"20px"}},ps=s(()=>t("span",{style:{"font-size":"12px"}},"个",-1)),gs={style:{"margin-top":"4vh","font-size":"10px",display:"flex","justify-content":"space-around",padding:"0 2VW"}},As={style:{display:"flex","align-items":"center"}},ms=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:h,alt:""},null,-1)),vs={style:{color:"#B7CED5","font-size":"10px"}},ys={style:{display:"flex","align-items":"center"}},Cs=s(()=>t("img",{style:{width:"1vw",height:"1vw"},src:p,alt:""},null,-1)),fs={style:{color:"#B7CED5","font-size":"10px"}},ws={class:"bottom"},us={class:"ranking"},xs=s(()=>t("img",{src:G,class:"img-cls",alt:""},null,-1)),ks={class:"ranking"},Us=s(()=>t("img",{src:q,class:"img-cls",alt:""},null,-1)),Es={class:"ranking"},Ss=s(()=>t("img",{src:L,class:"img-cls",alt:""},null,-1)),Bs={__name:"storeLogin",setup(A){var B,P,M;const l=_();let d,x=JSON.parse(localStorage.getItem("TRADE_USER"));if((B=l.userInfo.user)!=null&&B.merchant){let{area_id:e,mer_id:i,street_id:o}=(P=l.userInfo.user)==null?void 0:P.merchant;console.log(e,5645545),d={areaCode:e,streetCode:o,mer_id:i}}if((M=x.user)!=null&&M.merchant){let{area_id:e,mer_id:i,street_id:o}=x.user.merchant;d={areaCode:e,streetCode:o,mer_id:i}}const m=C({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",rowNum:9,columnWidth:[50,50,200,200,115],data:[]}),v=C({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",rowNum:9,columnWidth:[50,50,200,200,115],data:[]}),y=C({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",rowNum:9,columnWidth:[50,50,200,200,115],data:[]}),a=C({today:{productNum:0,payPrice:0,payUser:0,visitNum:0,likeStore:0},yesterday:{productNum:56,payPrice:0,payUser:0,visitNum:0,likeStore:0},lastWeekRate:{productNum:1,payPrice:0,payUser:0,visitNum:0,likeStore:0}});let k="",U="",E="";const S=()=>{b({...d,start_date:l.time[0],end_date:l.time[1]}).then(e=>{k=e.data.totalCount,K(e.data.list)}),D({...d,start_date:l.time[0],end_date:l.time[1]}).then(e=>{U=e.data.totalCount,z(e.data.list)}),J({...d,start_date:l.time[0],end_date:l.time[1]}).then(e=>{E=e.data.totalCount,O(e.data.list)})};S();const K=e=>{m.data.splice(0,99999999),e.forEach((i,o)=>{m.data.push([`
${o+1}
`,`
`,`
${i.cart_info.product.store_name}
`,`
`,`
${i.total}
`])})},z=e=>{v.data.splice(0,99999999),e.forEach((i,o)=>{v.data.push([`
${o+1}
`,`
`,`
${i.store_name}
`,`
`,`
${i.total} diff --git a/yusi/assets/townDetail-8UffmR39.js b/yusi/assets/townDetail-NRwv5Hf-.js similarity index 75% rename from yusi/assets/townDetail-8UffmR39.js rename to yusi/assets/townDetail-NRwv5Hf-.js index 54c19b7..f010ccb 100644 --- a/yusi/assets/townDetail-8UffmR39.js +++ b/yusi/assets/townDetail-NRwv5Hf-.js @@ -1,4 +1,4 @@ -import{i as vd,a as po,r as no,j as tg,b as qt,f as Ae,s as Sm,v as xm,k as Bs,h as eg,F as nn,d as nt,_ as cl,x as rg,y as ag,g as BI,z as VI,t as Pr,A as Tb,n as Rr,p as ng,o as Ab,l as zI,w as GI,c as wi,e as Eo,q as FI}from"./index-eScbHr-2.js";import{g as HI,a as WI,s as $I,b as UI,c as YI,d as ZI,o as XI}from"./api-bQkc2cji.js";import{_ as Cb,a as ig,b as og}from"./ZHB-8cmnZlCw.js";import{m as cd}from"./mitt-Efd5K_Pa.js";import"./axios-QLjAsgXu.js";const qI="/yusi/assets/PHBSJ-HwnbdvCQ.png",KI=nt("img",{class:"img-cls",src:qI,alt:""},null,-1),QI={key:0,class:"user-rank",style:{width:"98%"}},JI={__name:"bottomRight",props:{code:Object},setup(r){const e=vd(!0),t=po();HI({...t.area}).then(o=>{console.log("===",o),a(n,o.data)});const a=(o,s)=>{let l=[];return s==null||s.forEach((u,f)=>{var h;((h=u.order_id)==null?void 0:h.length)>12&&(u.order_id=u.order_id.substring(0,8)+"****"+u.order_id.substring(12)),o.data.push([`
${f+1}
`,`
${u.order_id}
`,`
${u.pay_price}元
`,`
${u.create_time}
`])}),console.log(o),l},n=no({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",rowNum:8,columnWidth:[50,170,130,200],data:[]}),i=no({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",columnWidth:[50,50,150,150,100],data:[]});return(o,s)=>{const l=tg("dv-scroll-board");return qt(),Ae(nn,null,[KI,n.data.length?(qt(),Ae("div",QI,[Sm(Bs(l,{config:n,style:{height:"35vh","margin-left":"2%",width:"97%"}},null,8,["config"]),[[xm,e.value]]),Sm(Bs(l,{config:i,style:{height:"35vh","margin-left":"2%",width:"97%"}},null,8,["config"]),[[xm,!e.value]])])):eg("",!0)],64)}}},jI="/yusi/assets/CJYH-ZRv_5mQ-.png";/*! ***************************************************************************** +import{i as cd,a as go,l as di,r as io,j as eg,b as qt,f as Ae,s as xm,v as wm,k as Vs,h as rg,F as nn,d as nt,_ as dl,x as ag,y as ng,g as VI,z as zI,t as Pr,A as Ab,n as Rr,p as ig,o as Cb,w as GI,c as bi,e as ko,q as FI}from"./index-5L8dO1EA.js";import{g as HI,a as WI,s as $I,b as UI,c as YI,d as ZI,o as XI}from"./api-JoJiEZDD.js";import{_ as Db,a as og,b as sg}from"./ZHB-8cmnZlCw.js";import{m as dd}from"./mitt-Efd5K_Pa.js";import"./axios-QLjAsgXu.js";const qI="/yusi/assets/PHBSJ-HwnbdvCQ.png",KI=nt("img",{class:"img-cls",src:qI,alt:""},null,-1),QI={key:0,class:"user-rank",style:{width:"98%"}},JI={__name:"bottomRight",props:{code:Object},setup(r){const e=cd(!0),t=go(),a=di();HI({...t.area,sotre_id:a.query.sotre_id}).then(s=>{console.log("===",s),n(i,s.data)});const n=(s,l)=>{let u=[];return l==null||l.forEach((f,h)=>{var v;((v=f.order_id)==null?void 0:v.length)>12&&(f.order_id=f.order_id.substring(0,8)+"****"+f.order_id.substring(12)),s.data.push([`
${h+1}
`,`
${f.order_id}
`,`
${f.pay_price}元
`,`
${f.create_time}
`])}),console.log(s),u},i=io({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",rowNum:8,columnWidth:[50,170,130,200],data:[]}),o=io({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",columnWidth:[50,50,150,150,100],data:[]});return(s,l)=>{const u=eg("dv-scroll-board");return qt(),Ae(nn,null,[KI,i.data.length?(qt(),Ae("div",QI,[xm(Vs(u,{config:i,style:{height:"35vh","margin-left":"2%",width:"97%"}},null,8,["config"]),[[wm,e.value]]),xm(Vs(u,{config:o,style:{height:"35vh","margin-left":"2%",width:"97%"}},null,8,["config"]),[[wm,!e.value]])])):rg("",!0)],64)}}},jI="/yusi/assets/CJYH-ZRv_5mQ-.png";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -11,8 +11,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var dd=function(r,e){return dd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},dd(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");dd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),eL=function(){function r(){this.browser=new tL,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Rn=new eL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Rn.wxa=!0,Rn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Rn.worker=!0:typeof navigator>"u"?(Rn.node=!0,Rn.svgSupported=!0):rL(navigator.userAgent,Rn);function rL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const At=Rn;var sg=12,Db="sans-serif",Xa=sg+"px "+Db,aL=20,nL=100,iL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function oL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function IL(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Am(s,o):Am(o,s))}function kb(r){return r.nodeName.toUpperCase()==="CANVAS"}var LL=/([&<>"'])/g,PL={"&":"&","<":"<",">":">",'"':""","'":"'"};function Re(r){return r==null?"":(r+"").replace(LL,function(e,t){return PL[t]})}var RL=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$h=[],EL=At.browser.firefox&&+At.browser.version.split(".")[0]<39;function xd(r,e,t,a){return t=t||{},a?Dm(r,e,t):EL&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Dm(r,e,t),t}function Dm(r,e,t){if(At.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(kb(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Sd($h,r,a,n)){t.zrX=$h[0],t.zrY=$h[1];return}}t.zrX=t.zrY=0}function dg(r){return r||window.event}function qe(r,e,t){if(e=dg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&xd(r,o,e,t)}else{xd(r,e,e,t);var i=kL(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&RL.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kL(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function wd(r,e,t,a){r.addEventListener(e,t,a)}function OL(r,e,t,a){r.removeEventListener(e,t,a)}var ha=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Mm(r){return r.which===2||r.which===3}var NL=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=Im(a)/Im(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=BL(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function or(){return[1,0,0,1,0,0]}function ih(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function pg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function sa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ur(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function pi(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function gg(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function mo(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function VL(r){var e=or();return pg(e,r),e}var zL=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}();const ut=zL;var Nl=Math.min,Bl=Math.max,ln=new ut,un=new ut,fn=new ut,hn=new ut,ko=new ut,Oo=new ut,GL=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Nl(e.x,this.x),a=Nl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Bl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Bl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=or();return Ur(i,i,[-t.x,-t.y]),gg(i,i,[a,n]),Ur(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(id&&(d=_,pd&&(d=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ln.x=fn.x=t.x,ln.y=hn.y=t.y,un.x=hn.x=t.x+t.width,un.y=fn.y=t.y+t.height,ln.transform(a),hn.transform(a),un.transform(a),fn.transform(a),e.x=Nl(ln.x,un.x,fn.x,hn.x),e.y=Nl(ln.y,un.y,fn.y,hn.y);var l=Bl(ln.x,un.x,fn.x,hn.x),u=Bl(ln.y,un.y,fn.y,hn.y);e.width=l-e.x,e.height=u-e.y},r}();const vt=GL;var Ob="silent";function FL(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:HL}}function HL(){ha(this.event)}var WL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(lr),No=function(){function r(e,t){this.x=e,this.y=t}return r}(),$L=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Yh=new vt(0,0,0,0),Nb=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new No(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new WL,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new TL(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C($L,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=Bb(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new No(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new No(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=FL(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new No(t,a);if(Lm(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Yh.copy(v.getBoundingRect()),v.transform&&Yh.applyTransform(v.transform),Yh.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function UL(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?Ob:!0}return!1}function Lm(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=UL(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Ob)){e.target=o;break}}}function Bb(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}const YL=Nb;var Vb=32,Bo=7;function ZL(r){for(var e=0;r>=Vb;)e|=r&1,r>>=1;return r+e}function Pm(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function XL(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Zh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Xh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function qL(r,e){var t=Bo,a,n,i=0;r.length;var o=[];a=[],n=[];function s(c,d){a[i]=c,n[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=Bo||b>=Bo);if(T)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),d===1){for(y=0;y=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=t;;){var T=0,A=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){D=!0;break}while((T|A)=0;y--)r[x+y]=r[w+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(A=g-Zh(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,w=_+1,y=0;y=Bo||A>=Bo);if(D)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;ys&&(l=s),Rm(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Ge=1,us=2,$i=4,Em=!1;function qh(){Em||(Em=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function km(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var KL=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=km}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(qh(),f.z=0),isNaN(f.z2)&&(qh(),f.z2=0),isNaN(f.zlevel)&&(qh(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const QL=KL;var zb;zb=At.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const bd=zb;var Hu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Hu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Hu.bounceIn(r*2)*.5:Hu.bounceOut(r*2-1)*.5+.5}};const Gb=Hu;var Vl=Math.pow,$a=Math.sqrt,lf=1e-8,Fb=1e-4,Om=$a(3),zl=1/3,Nr=di(),je=di(),ji=di();function Va(r){return r>-lf&&rlf||r<-lf}function ee(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Nm(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function uf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Va(f)&&Va(h))if(Va(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(Va(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=$a(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Vl(-_,zl):_=Vl(_,zl),S<0?S=-Vl(-S,zl):S=Vl(S,zl);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*$a(f*f*f)),x=Math.acos(w)/3,b=$a(f),T=Math.cos(x),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Om*Math.sin(x)))/(3*o),A=(-s+b*(T-Om*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),A>=0&&A<=1&&(i[c++]=A)}}return c}function Wb(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Va(o)){if(Hb(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Va(f))n[0]=-i/(2*o);else if(f>0){var h=$a(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Ka(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function $b(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;Nr[0]=l,Nr[1]=u;for(var m=0;m<1;m+=.05)je[0]=ee(r,t,n,o,m),je[1]=ee(e,a,i,s,m),g=Qn(Nr,je),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Va(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=$a(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Ub(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Gs(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Yb(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Nr[0]=o,Nr[1]=s;for(var v=0;v<1;v+=.05){je[0]=ie(r,t,n,v),je[1]=ie(e,a,i,v);var c=Qn(Nr,je);c=0&&c=1?1:uf(0,a,i,1,l,s)&&ee(0,n,o,1,s[0])}}}var rP=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Zt,this.ondestroy=e.ondestroy||Zt,this.onrestart=e.onrestart||Zt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:Gb[e]||yg(e)},r}();const aP=rP;var Zb=function(){function r(e){this.value=e}return r}(),nP=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Zb(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),iP=function(){function r(e){this._list=new nP,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Zb(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const dl=iP;var Bm={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 Sr(r){return r=Math.round(r),r<0?0:r>255?255:r}function oP(r){return r=Math.round(r),r<0?0:r>360?360:r}function Fs(r){return r<0?0:r>1?1:r}function Kh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Sr(parseFloat(e)/100*255):Sr(parseInt(e,10))}function Jn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Fs(parseFloat(e)/100):Fs(parseFloat(e))}function Qh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function za(r,e,t){return r+(e-r)*t}function Xe(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Ad(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Xb=new dl(20),Gl=null;function Ti(r,e){Gl&&Ad(Gl,e),Gl=Xb.put(r,Gl||e.slice())}function Fe(r,e){if(r){e=e||[];var t=Xb.get(r);if(t)return Ad(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Bm)return Ad(e,Bm[a]),Ti(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Xe(e,0,0,0,1);return}return Xe(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Ti(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xe(e,0,0,0,1);return}return Xe(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Ti(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xe(e,+u[0],+u[1],+u[2],1):Xe(e,0,0,0,1);f=Jn(u.pop());case"rgb":if(u.length>=3)return Xe(e,Kh(u[0]),Kh(u[1]),Kh(u[2]),u.length===3?f:Jn(u[3])),Ti(r,e),e;Xe(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xe(e,0,0,0,1);return}return u[3]=Jn(u[3]),Cd(u,e),Ti(r,e),e;case"hsl":if(u.length!==3){Xe(e,0,0,0,1);return}return Cd(u,e),Ti(r,e),e;default:return}}Xe(e,0,0,0,1)}}function Cd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Jn(r[1]),n=Jn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Xe(e,Sr(Qh(o,i,t+1/3)*255),Sr(Qh(o,i,t)*255),Sr(Qh(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function sP(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Dd(r,e){var t=Fe(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return la(t,t.length===4?"rgba":"rgb")}}function Jh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Sr(za(o[0],s[0],l)),t[1]=Sr(za(o[1],s[1],l)),t[2]=Sr(za(o[2],s[2],l)),t[3]=Fs(za(o[3],s[3],l)),t}}function lP(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Fe(e[n]),s=Fe(e[i]),l=a-n,u=la([Sr(za(o[0],s[0],l)),Sr(za(o[1],s[1],l)),Sr(za(o[2],s[2],l)),Fs(za(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function ws(r,e,t,a){var n=Fe(r);if(r)return n=sP(n),e!=null&&(n[0]=oP(e)),t!=null&&(n[1]=Jn(t)),a!=null&&(n[2]=Jn(a)),la(Cd(n),"rgba")}function ff(r,e){var t=Fe(r);if(t&&e!=null)return t[3]=Fs(e),la(t,"rgba")}function la(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function hf(r,e){var t=Fe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var vf=Math.round;function Hs(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Fe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Vm=1e-4;function Ga(r){return r-Vm}function Fl(r){return vf(r*1e3)/1e3}function Md(r){return vf(r*1e4)/1e4}function uP(r){return"matrix("+Fl(r[0])+","+Fl(r[1])+","+Fl(r[2])+","+Fl(r[3])+","+Md(r[4])+","+Md(r[5])+")"}var fP={left:"start",right:"end",center:"middle",middle:"middle"};function hP(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function vP(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function cP(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function qb(r){return r&&!!r.image}function dP(r){return r&&!!r.svgElement}function mg(r){return qb(r)||dP(r)}function Kb(r){return r.type==="linear"}function Qb(r){return r.type==="radial"}function Jb(r){return r&&(r.type==="linear"||r.type==="radial")}function oh(r){return"url(#"+r+")"}function jb(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function tT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Vu,n=ft(r.scaleX,1),i=ft(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+vf(o*Vu)+"deg, "+vf(s*Vu)+"deg)"),l.join(" ")}var pP=function(){return At.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Id=Array.prototype.slice;function ra(r,e,t){return(e-r)*t+r}function jh(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=Gm,l=t;if(me(t)){var u=_P(t);s=u,(u===1&&!Dt(t[0])||u===2&&!Dt(t[0][0]))&&(o=!0)}else if(Dt(t)&&!zs(t))s=Wl;else if($(t))if(!isNaN(+t))s=Wl;else{var f=Fe(t);f&&(l=f,s=fs)}else if(ah(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Fe(c.color)}}),Kb(t)?s=Ld:Qb(t)&&(s=Pd),l=h}i===0?this.valType=s:(s!==this.valType||s===Gm)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:Gb[a]||yg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=$l(n),u=Fm(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?Vo:e[l];if(($l(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:d.rawValue;else if($l(i))i===$u?jh(m,c[n],d[n],y):gP(m,c[n],d[n],y);else if(Fm(i)){var _=c[n],S=d[n],w=i===Ld;e[l]={type:w?"linear":"radial",x:ra(_.x,S.x,y),y:ra(_.y,S.y,y),colorStops:G(_.colorStops,function(b,T){var A=S.colorStops[T];return{offset:ra(b.offset,A.offset,y),color:Wu(jh([],b.color,A.color,y))}}),global:S.global},w?(e[l].x2=ra(_.x2,S.x2,y),e[l].y2=ra(_.y2,S.y2,y)):e[l].r=ra(_.r,S.r,y)}else if(u)jh(m,c[n],d[n],y),a||(e[l]=Wu(m));else{var x=ra(c[n],d[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Wl?e[a]=e[a]+n:t===fs?(Fe(e[a],Vo),Hl(Vo,Vo,n,1),e[a]=Wu(Vo)):t===$u?Hl(e[a],e[a],n,1):t===eT&&zm(e[a],e[a],n,1)},r}(),_g=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){fg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,_t(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,bs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,bs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function qi(){return new Date().getTime()}var xP=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=qi()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(bd(a),!t._paused&&t.update())}bd(a)},e.prototype.start=function(){this._running||(this._time=qi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=qi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=qi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new _g(t,a.loop);return this.addAnimator(n),n},e}(lr);const wP=xP;var bP=300,tv=At.domSupported,ev=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Hm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Wm=!1;function Rd(r){var e=r.pointerType;return e==="pen"||e==="touch"}function TP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function rv(r){r&&(r.zrByTouch=!0)}function AP(r,e){return qe(r.dom,new CP(r,e),!0)}function rT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var CP=function(){function r(e,t){this.stopPropagation=Zt,this.stopImmediatePropagation=Zt,this.preventDefault=Zt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),dr={mousedown:function(r){r=qe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=qe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=qe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=qe(this.dom,r);var e=r.toElement||r.relatedTarget;rT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Wm=!0,r=qe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Wm||(r=qe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=qe(this.dom,r),rv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),dr.mousemove.call(this,r),dr.mousedown.call(this,r)},touchmove:function(r){r=qe(this.dom,r),rv(r),this.handler.processGesture(r,"change"),dr.mousemove.call(this,r)},touchend:function(r){r=qe(this.dom,r),rv(r),this.handler.processGesture(r,"end"),dr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentYm||r<-Ym}var cn=[],Ai=[],nv=or(),iv=Math.abs,RP=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return vn(this.rotation)||vn(this.x)||vn(this.y)||vn(this.scaleX-1)||vn(this.scaleY-1)||vn(this.skewX)||vn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Um(a),this.invTransform=null);return}a=a||or(),t?this.getLocalTransform(a):Um(a),e&&(t?sa(a,e,a):pg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(cn);var a=cn[0]<0?-1:1,n=cn[1]<0?-1:1,i=((cn[0]-a)*t+a)/cn[0]||0,o=((cn[1]-n)*t+n)/cn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||or(),mo(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(sa(Ai,e.invTransform,t),t=Ai);var a=this.originX,n=this.originY;(a||n)&&(nv[4]=a,nv[5]=n,sa(Ai,t,nv),Ai[4]-=a,Ai[5]-=n,t=Ai),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ue(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ue(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&iv(e[0]-1)>1e-10&&iv(e[3]-1)>1e-10?Math.sqrt(iv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){nT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-v*p*o,t[5]=-p*o-c*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&pi(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Yr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nT(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function df(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=wr(a[0],t.width),u+=wr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var ov="__zr_normal__",sv=Yr.concat(["ignore"]),EP=$r(Yr,function(r,e){return r[e]=!0,r},{ignore:!1}),Ci={},kP=new vt(0,0,0,0),Sg=function(){function r(e){this.id=Lb(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=kP;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ci,a,f):df(Ci,a,f),i.x=Ci.x,i.y=Ci.y,o=Ci.align,s=Ci.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=wr(h[0],f.width),c=wr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Ge,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Nd:Od},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Fe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,la(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var a=e,n=_t(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(ov,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===ov,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ct(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){fg("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ge),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ge)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=ct(n,e),o=ct(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var v=0;v0||n.force&&!o.length){var T=void 0,A=void 0,D=void 0;if(s){A={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];A[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=bs(t[y]),NP(t,a,y)}}var w=new _g(t,!1,!1,h?Pt(d,function(I){return I.targetName===e}):null);w.targetName=e,n.scope&&(w.scope=n.scope),v&&T&&w.whenWithKeys(0,T,p),D&&w.whenWithKeys(0,D,p),w.whenWithKeys(u??500,s?A:a,p).delay(f||0),r.addAnimator(w,e),o.push(w)}}const oT=Sg;var sT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=ct(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=ct(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n"u"&&typeof self<"u"?Rn.worker=!0:typeof navigator>"u"?(Rn.node=!0,Rn.svgSupported=!0):rL(navigator.userAgent,Rn);function rL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const At=Rn;var lg=12,Mb="sans-serif",Xa=lg+"px "+Mb,aL=20,nL=100,iL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function oL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function IL(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Cm(s,o):Cm(o,s))}function Ob(r){return r.nodeName.toUpperCase()==="CANVAS"}var LL=/([&<>"'])/g,PL={"&":"&","<":"<",">":">",'"':""","'":"'"};function Re(r){return r==null?"":(r+"").replace(LL,function(e,t){return PL[t]})}var RL=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Uh=[],EL=At.browser.firefox&&+At.browser.version.split(".")[0]<39;function wd(r,e,t,a){return t=t||{},a?Mm(r,e,t):EL&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Mm(r,e,t),t}function Mm(r,e,t){if(At.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Ob(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(xd(Uh,r,a,n)){t.zrX=Uh[0],t.zrY=Uh[1];return}}t.zrX=t.zrY=0}function pg(r){return r||window.event}function qe(r,e,t){if(e=pg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&wd(r,o,e,t)}else{wd(r,e,e,t);var i=kL(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&RL.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kL(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function bd(r,e,t,a){r.addEventListener(e,t,a)}function OL(r,e,t,a){r.removeEventListener(e,t,a)}var ha=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Im(r){return r.which===2||r.which===3}var NL=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=Lm(a)/Lm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=BL(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function or(){return[1,0,0,1,0,0]}function oh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function gg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function sa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ur(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function gi(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function yg(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function _o(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function VL(r){var e=or();return gg(e,r),e}var zL=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}();const ut=zL;var Bl=Math.min,Vl=Math.max,ln=new ut,un=new ut,fn=new ut,hn=new ut,Oo=new ut,No=new ut,GL=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Bl(e.x,this.x),a=Bl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Vl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Vl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=or();return Ur(i,i,[-t.x,-t.y]),yg(i,i,[a,n]),Ur(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(id&&(d=_,pd&&(d=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ln.x=fn.x=t.x,ln.y=hn.y=t.y,un.x=hn.x=t.x+t.width,un.y=fn.y=t.y+t.height,ln.transform(a),hn.transform(a),un.transform(a),fn.transform(a),e.x=Bl(ln.x,un.x,fn.x,hn.x),e.y=Bl(ln.y,un.y,fn.y,hn.y);var l=Vl(ln.x,un.x,fn.x,hn.x),u=Vl(ln.y,un.y,fn.y,hn.y);e.width=l-e.x,e.height=u-e.y},r}();const vt=GL;var Nb="silent";function FL(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:HL}}function HL(){ha(this.event)}var WL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(lr),Bo=function(){function r(e,t){this.x=e,this.y=t}return r}(),$L=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zh=new vt(0,0,0,0),Bb=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Bo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new WL,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new TL(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C($L,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=Vb(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Bo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Bo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=FL(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Bo(t,a);if(Pm(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Zh.copy(v.getBoundingRect()),v.transform&&Zh.applyTransform(v.transform),Zh.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function UL(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?Nb:!0}return!1}function Pm(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=UL(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Nb)){e.target=o;break}}}function Vb(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}const YL=Bb;var zb=32,Vo=7;function ZL(r){for(var e=0;r>=zb;)e|=r&1,r>>=1;return r+e}function Rm(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function XL(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Xh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function qh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function qL(r,e){var t=Vo,a,n,i=0;r.length;var o=[];a=[],n=[];function s(c,d){a[i]=c,n[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=Vo||b>=Vo);if(T)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),d===1){for(y=0;y=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=t;;){var T=0,A=0,D=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,A=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){D=!0;break}while((T|A)=0;y--)r[x+y]=r[w+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(A=g-Xh(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,w=_+1,y=0;y=Vo||A>=Vo);if(D)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;ys&&(l=s),Em(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Ge=1,fs=2,Ui=4,km=!1;function Kh(){km||(km=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Om(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var KL=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Om}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(Kh(),f.z=0),isNaN(f.z2)&&(Kh(),f.z2=0),isNaN(f.zlevel)&&(Kh(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const QL=KL;var Gb;Gb=At.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Td=Gb;var Wu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Wu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Wu.bounceIn(r*2)*.5:Wu.bounceOut(r*2-1)*.5+.5}};const Fb=Wu;var zl=Math.pow,$a=Math.sqrt,uf=1e-8,Hb=1e-4,Nm=$a(3),Gl=1/3,Nr=pi(),je=pi(),to=pi();function Va(r){return r>-uf&&ruf||r<-uf}function ee(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Bm(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function ff(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Va(f)&&Va(h))if(Va(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(Va(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=$a(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-zl(-_,Gl):_=zl(_,Gl),S<0?S=-zl(-S,Gl):S=zl(S,Gl);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*$a(f*f*f)),x=Math.acos(w)/3,b=$a(f),T=Math.cos(x),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Nm*Math.sin(x)))/(3*o),A=(-s+b*(T-Nm*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),A>=0&&A<=1&&(i[c++]=A)}}return c}function $b(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Va(o)){if(Wb(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Va(f))n[0]=-i/(2*o);else if(f>0){var h=$a(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Ka(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function Ub(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;Nr[0]=l,Nr[1]=u;for(var m=0;m<1;m+=.05)je[0]=ee(r,t,n,o,m),je[1]=ee(e,a,i,s,m),g=Qn(Nr,je),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Va(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=$a(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Yb(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Fs(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Zb(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Nr[0]=o,Nr[1]=s;for(var v=0;v<1;v+=.05){je[0]=ie(r,t,n,v),je[1]=ie(e,a,i,v);var c=Qn(Nr,je);c=0&&c=1?1:ff(0,a,i,1,l,s)&&ee(0,n,o,1,s[0])}}}var rP=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Zt,this.ondestroy=e.ondestroy||Zt,this.onrestart=e.onrestart||Zt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:Fb[e]||mg(e)},r}();const aP=rP;var Xb=function(){function r(e){this.value=e}return r}(),nP=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Xb(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),iP=function(){function r(e){this._list=new nP,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Xb(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const pl=iP;var Vm={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 Sr(r){return r=Math.round(r),r<0?0:r>255?255:r}function oP(r){return r=Math.round(r),r<0?0:r>360?360:r}function Hs(r){return r<0?0:r>1?1:r}function Qh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Sr(parseFloat(e)/100*255):Sr(parseInt(e,10))}function Jn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Hs(parseFloat(e)/100):Hs(parseFloat(e))}function Jh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function za(r,e,t){return r+(e-r)*t}function Xe(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Cd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var qb=new pl(20),Fl=null;function Ai(r,e){Fl&&Cd(Fl,e),Fl=qb.put(r,Fl||e.slice())}function Fe(r,e){if(r){e=e||[];var t=qb.get(r);if(t)return Cd(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Vm)return Cd(e,Vm[a]),Ai(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Xe(e,0,0,0,1);return}return Xe(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Ai(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xe(e,0,0,0,1);return}return Xe(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Ai(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xe(e,+u[0],+u[1],+u[2],1):Xe(e,0,0,0,1);f=Jn(u.pop());case"rgb":if(u.length>=3)return Xe(e,Qh(u[0]),Qh(u[1]),Qh(u[2]),u.length===3?f:Jn(u[3])),Ai(r,e),e;Xe(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xe(e,0,0,0,1);return}return u[3]=Jn(u[3]),Dd(u,e),Ai(r,e),e;case"hsl":if(u.length!==3){Xe(e,0,0,0,1);return}return Dd(u,e),Ai(r,e),e;default:return}}Xe(e,0,0,0,1)}}function Dd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Jn(r[1]),n=Jn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Xe(e,Sr(Jh(o,i,t+1/3)*255),Sr(Jh(o,i,t)*255),Sr(Jh(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function sP(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Md(r,e){var t=Fe(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return la(t,t.length===4?"rgba":"rgb")}}function jh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Sr(za(o[0],s[0],l)),t[1]=Sr(za(o[1],s[1],l)),t[2]=Sr(za(o[2],s[2],l)),t[3]=Hs(za(o[3],s[3],l)),t}}function lP(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Fe(e[n]),s=Fe(e[i]),l=a-n,u=la([Sr(za(o[0],s[0],l)),Sr(za(o[1],s[1],l)),Sr(za(o[2],s[2],l)),Hs(za(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function bs(r,e,t,a){var n=Fe(r);if(r)return n=sP(n),e!=null&&(n[0]=oP(e)),t!=null&&(n[1]=Jn(t)),a!=null&&(n[2]=Jn(a)),la(Dd(n),"rgba")}function hf(r,e){var t=Fe(r);if(t&&e!=null)return t[3]=Hs(e),la(t,"rgba")}function la(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function vf(r,e){var t=Fe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var cf=Math.round;function Ws(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Fe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var zm=1e-4;function Ga(r){return r-zm}function Hl(r){return cf(r*1e3)/1e3}function Id(r){return cf(r*1e4)/1e4}function uP(r){return"matrix("+Hl(r[0])+","+Hl(r[1])+","+Hl(r[2])+","+Hl(r[3])+","+Id(r[4])+","+Id(r[5])+")"}var fP={left:"start",right:"end",center:"middle",middle:"middle"};function hP(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function vP(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function cP(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Kb(r){return r&&!!r.image}function dP(r){return r&&!!r.svgElement}function _g(r){return Kb(r)||dP(r)}function Qb(r){return r.type==="linear"}function Jb(r){return r.type==="radial"}function jb(r){return r&&(r.type==="linear"||r.type==="radial")}function sh(r){return"url(#"+r+")"}function tT(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function eT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*zu,n=ft(r.scaleX,1),i=ft(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+cf(o*zu)+"deg, "+cf(s*zu)+"deg)"),l.join(" ")}var pP=function(){return At.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Ld=Array.prototype.slice;function ra(r,e,t){return(e-r)*t+r}function tv(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=Fm,l=t;if(me(t)){var u=_P(t);s=u,(u===1&&!Dt(t[0])||u===2&&!Dt(t[0][0]))&&(o=!0)}else if(Dt(t)&&!Gs(t))s=$l;else if($(t))if(!isNaN(+t))s=$l;else{var f=Fe(t);f&&(l=f,s=hs)}else if(nh(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Fe(c.color)}}),Qb(t)?s=Pd:Jb(t)&&(s=Rd),l=h}i===0?this.valType=s:(s!==this.valType||s===Fm)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:Fb[a]||mg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Ul(n),u=Hm(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?zo:e[l];if((Ul(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:d.rawValue;else if(Ul(i))i===Uu?tv(m,c[n],d[n],y):gP(m,c[n],d[n],y);else if(Hm(i)){var _=c[n],S=d[n],w=i===Pd;e[l]={type:w?"linear":"radial",x:ra(_.x,S.x,y),y:ra(_.y,S.y,y),colorStops:G(_.colorStops,function(b,T){var A=S.colorStops[T];return{offset:ra(b.offset,A.offset,y),color:$u(tv([],b.color,A.color,y))}}),global:S.global},w?(e[l].x2=ra(_.x2,S.x2,y),e[l].y2=ra(_.y2,S.y2,y)):e[l].r=ra(_.r,S.r,y)}else if(u)tv(m,c[n],d[n],y),a||(e[l]=$u(m));else{var x=ra(c[n],d[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===$l?e[a]=e[a]+n:t===hs?(Fe(e[a],zo),Wl(zo,zo,n,1),e[a]=$u(zo)):t===Uu?Wl(e[a],e[a],n,1):t===rT&&Gm(e[a],e[a],n,1)},r}(),Sg=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){hg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,_t(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Ts(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ts(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Ki(){return new Date().getTime()}var xP=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Ki()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Td(a),!t._paused&&t.update())}Td(a)},e.prototype.start=function(){this._running||(this._time=Ki(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ki(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ki()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Sg(t,a.loop);return this.addAnimator(n),n},e}(lr);const wP=xP;var bP=300,ev=At.domSupported,rv=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Wm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$m=!1;function Ed(r){var e=r.pointerType;return e==="pen"||e==="touch"}function TP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function av(r){r&&(r.zrByTouch=!0)}function AP(r,e){return qe(r.dom,new CP(r,e),!0)}function aT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var CP=function(){function r(e,t){this.stopPropagation=Zt,this.stopImmediatePropagation=Zt,this.preventDefault=Zt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),dr={mousedown:function(r){r=qe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=qe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=qe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=qe(this.dom,r);var e=r.toElement||r.relatedTarget;aT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){$m=!0,r=qe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){$m||(r=qe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=qe(this.dom,r),av(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),dr.mousemove.call(this,r),dr.mousedown.call(this,r)},touchmove:function(r){r=qe(this.dom,r),av(r),this.handler.processGesture(r,"change"),dr.mousemove.call(this,r)},touchend:function(r){r=qe(this.dom,r),av(r),this.handler.processGesture(r,"end"),dr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentZm||r<-Zm}var cn=[],Ci=[],iv=or(),ov=Math.abs,RP=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return vn(this.rotation)||vn(this.x)||vn(this.y)||vn(this.scaleX-1)||vn(this.scaleY-1)||vn(this.skewX)||vn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(Ym(a),this.invTransform=null);return}a=a||or(),t?this.getLocalTransform(a):Ym(a),e&&(t?sa(a,e,a):gg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(cn);var a=cn[0]<0?-1:1,n=cn[1]<0?-1:1,i=((cn[0]-a)*t+a)/cn[0]||0,o=((cn[1]-n)*t+n)/cn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||or(),_o(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(sa(Ci,e.invTransform,t),t=Ci);var a=this.originX,n=this.originY;(a||n)&&(iv[4]=a,iv[5]=n,sa(Ci,t,iv),Ci[4]-=a,Ci[5]-=n,t=Ci),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ue(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ue(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&ov(e[0]-1)>1e-10&&ov(e[3]-1)>1e-10?Math.sqrt(ov(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){iT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-v*p*o,t[5]=-p*o-c*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&gi(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Yr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iT(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function pf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=wr(a[0],t.width),u+=wr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var sv="__zr_normal__",lv=Yr.concat(["ignore"]),EP=$r(Yr,function(r,e){return r[e]=!0,r},{ignore:!1}),Di={},kP=new vt(0,0,0,0),xg=function(){function r(e){this.id=Pb(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=kP;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Di,a,f):pf(Di,a,f),i.x=Di.x,i.y=Di.y,o=Di.align,s=Di.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=wr(h[0],f.width),c=wr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Ge,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Bd:Nd},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Fe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,la(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var a=e,n=_t(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(sv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===sv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ct(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){hg("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ge),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ge)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=ct(n,e),o=ct(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var v=0;v0||n.force&&!o.length){var T=void 0,A=void 0,D=void 0;if(s){A={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];A[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=Ts(t[y]),NP(t,a,y)}}var w=new Sg(t,!1,!1,h?Pt(d,function(I){return I.targetName===e}):null);w.targetName=e,n.scope&&(w.scope=n.scope),v&&T&&w.whenWithKeys(0,T,p),D&&w.whenWithKeys(0,D,p),w.whenWithKeys(u??500,s?A:a,p).delay(f||0),r.addAnimator(w,e),o.push(w)}}const sT=xg;var lT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=ct(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=ct(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?WP(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Ut(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),uT),r=(+r).toFixed(e),t?r:+r}function ar(r){return r.sort(function(e,t){return e-t}),r}function Vr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return $P(r)}function $P(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function fT(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function UP(r,e){var t=$r(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=$r(o,function(c,d){return c+d},0),l=G(n,function(c,d){return c-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function YP(r,e){var t=Math.max(Vr(r),Vr(e)),a=r+e;return t>uT?a:Ut(a,t)}var Qm=9007199254740991;function hT(r){var e=Math.PI*2;return(r%e+e)%e}function pf(r){return r>-Km&&r=10&&e++,e}function vT(r,e){var t=xg(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function fv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function Jm(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||i&&ct(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var mR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_R=ui(mR),SR=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return _R(this,e,t)},r}(),Vd=new dl(50);function xR(r){if(typeof r=="string"){var e=Vd.get(r);return e&&e.image}else return r}function Ag(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Vd.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!uh(e)&&i.pending.push(o)):(e=qa.loadImage(r,r0,r0),e.__zrImageSrc=r,Vd.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function r0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=He(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function AT(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=He(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?bR(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=He(r,a)}return r===""&&(r=e.placeholder),r}function bR(r,e,t,a){for(var n=0,i=0,o=r.length;ic&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&i&&f!=null)for(var p=TT(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&vv(t,r.substring(s,u),e,o),vv(t,l[2],e,o,l[1]),s=hv.lastIndex}sn){w>0?(m.tokens=m.tokens.slice(0,w),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var I=b.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=He(x.text,D);else{if(L){var P=b.backgroundColor,R=P&&P.image;R&&(R=xR(R),uh(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var E=d&&a!=null?a-S:null;E!=null&&E0&&d+a.accumWidth>a.width&&(f=e.split(` -`),u=!0),a.accumWidth=d}else{var p=CT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=e.split(` -`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var IR=$r(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function LR(r){return MR(r)?!!IR[r]:!0}function CT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var zd="__zr_style_"+Math.round(Math.random()*10),jn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jn[zd]=!0;var n0=["z","z2","invisible"],PR=["invisible"],RR=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=_t(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Ul[0]=gv(n)*t+r,Ul[1]=pv(n)*a+e,Yl[0]=gv(i)*t+r,Yl[1]=pv(i)*a+e,u(s,Ul,Yl),f(l,Ul,Yl),n=n%pn,n<0&&(n=n+pn),i=i%pn,i<0&&(i=i+pn),n>i&&!o?i+=pn:nn&&(Zl[0]=gv(c)*t+r,Zl[1]=pv(c)*a+e,u(s,Zl,s),f(l,Zl,l))}var Et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},gn=[],yn=[],Cr=[],wa=[],Dr=[],Mr=[],yv=Math.min,mv=Math.max,mn=Math.cos,_n=Math.sin,jr=Math.abs,Gd=Math.PI,Pa=Gd*2,_v=typeof Float32Array<"u",zo=[];function Sv(r){var e=Math.round(r/Gd*1e8)/1e8;return e%2*Gd}function DT(r,e){var t=Sv(r[0]);t<0&&(t+=Pa);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Pa?n=t+Pa:e&&t-n>=Pa?n=t-Pa:!e&&t>n?n=t+(Pa-Sv(t-n)):e&&t0&&(this._ux=jr(a/cf/e)||0,this._uy=jr(a/cf/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Et.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=jr(e-this._xi),n=jr(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Et.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Et.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Et.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),zo[0]=n,zo[1]=i,DT(zo,o),n=zo[0],i=zo[1];var s=i-n;return this.addData(Et.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=mn(i)*a+e,this._yi=_n(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Et.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Et.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&_v&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Cr[0]=Cr[1]=Dr[0]=Dr[1]=Number.MAX_VALUE,wa[0]=wa[1]=Mr[0]=Mr[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||jr(_)>n||v===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Et.C:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++],x=e[v++],b=e[v++];p=JL(i,o,S,w,g,y,x,b,10),i=x,o=b;break}case Et.Q:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++];p=tP(i,o,S,w,g,y,10),i=g,o=y;break}case Et.A:var T=e[v++],A=e[v++],D=e[v++],M=e[v++],I=e[v++],L=e[v++],P=L+I;v+=1,e[v++],d&&(s=mn(I)*D+T,l=_n(I)*M+A),p=mv(D,M)*yv(Pa,Math.abs(L)),i=mn(P)*D+T,o=_n(P)*M+A;break;case Et.R:{s=i=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];p=R*2+E*2;break}case Et.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,d,p,g=0,y=0,m,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))t:for(var x=0;x0&&(e.lineTo(S,w),_=0),b){case Et.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Et.L:{h=a[x++],v=a[x++];var A=jr(h-u),D=jr(v-f);if(A>n||D>i){if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var L=A*A+D*D;L>_&&(S=h,w=v,_=L)}break}case Et.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],V=a[x++];if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;Ka(u,P,E,O,I,gn),Ka(f,R,N,V,I,yn),e.bezierCurveTo(gn[1],yn[1],gn[2],yn[2],gn[3],yn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,O,V),u=O,f=V;break}case Et.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;Gs(u,P,E,I,gn),Gs(f,R,N,I,yn),e.quadraticCurveTo(gn[1],yn[1],gn[2],yn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Et.A:var F=a[x++],W=a[x++],Z=a[x++],Q=a[x++],J=a[x++],dt=a[x++],St=a[x++],pt=!a[x++],et=Z>Q?Z:Q,gt=jr(Z-Q)>.001,st=J+dt,q=!1;if(c){var M=d[y++];g+M>m&&(st=J+dt*(m-g)/M,q=!0),g+=M}if(gt&&e.ellipse?e.ellipse(F,W,Z,Q,St,J,st,pt):e.arc(F,W,et,J,st,pt),q)break t;T&&(s=mn(J)*Z+F,l=_n(J)*Q+W),u=mn(st)*Z+F,f=_n(st)*Q+W;break;case Et.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var lt=a[x++],zt=a[x++];if(c){var M=d[y++];if(g+M>m){var xt=m-g;e.moveTo(h,v),e.lineTo(h+yv(xt,lt),v),xt-=lt,xt>0&&e.lineTo(h+lt,v+yv(xt,zt)),xt-=zt,xt>0&&e.lineTo(h+mv(lt-xt,0),v+zt),xt-=lt,xt>0&&e.lineTo(h,v+mv(zt-xt,0));break t}g+=M}e.rect(h,v,lt,zt);break;case Et.Z:if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Et,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Ea(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=Go);var v=Math.atan2(l,s);return v<0&&(v+=Go),v>=a&&v<=n||v+Go>=a&&v+Go<=n}function aa(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var ba=Xr.CMD,Sn=Math.PI*2,zR=1e-4;function GR(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&FR(),c=ee(e,a,i,s,Qe[0]),v>1&&(d=ee(e,a,i,s,Qe[1]))),v===2?ge&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=ie(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);be[0]=-l,be[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Sn-1e-4){a=0,n=Sn;var f=i?1:-1;return o>=be[0]+r&&o<=be[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Sn,n+=Sn);for(var v=0,c=0;c<2;c++){var d=be[c];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Sn+p),(p>=a&&p<=n||p+Sn>=a&&p+Sn<=n)&&(p>Math.PI/2&&p1&&(t||(s+=aa(l,u,f,h,a,n))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case ba.M:f=i[d++],h=i[d++],l=f,u=h;break;case ba.L:if(t){if(Ea(l,u,i[d],i[d+1],e,a,n))return!0}else s+=aa(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ba.C:if(t){if(BR(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=HR(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ba.Q:if(t){if(MT(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=WR(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ba.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],w=i[d++],x=i[d++];d+=1;var b=!!(1-i[d++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=aa(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(VR(y,m,S,w,w+x,b,e,T,n))return!0}else s+=$R(y,m,S,w,w+x,b,T,n);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case ba.R:f=l=i[d++],h=u=i[d++];var A=i[d++],D=i[d++];if(v=f+A,c=h+D,t){if(Ea(f,h,v,h,e,a,n)||Ea(v,h,v,c,e,a,n)||Ea(v,c,f,c,e,a,n)||Ea(f,c,f,h,e,a,n))return!0}else s+=aa(v,h,v,c,a,n),s+=aa(f,c,f,h,a,n);break;case ba.Z:if(t){if(Ea(l,u,f,h,e,a,n))return!0}else s+=aa(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!GR(u,h)&&(s+=aa(l,u,f,h,a,n)||0),s!==0}function UR(r,e,t){return IT(r,0,!1,e,t)}function YR(r,e,t,a){return IT(r,e,!0,t,a)}var gf=j({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},jn),ZR={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fh.style)},xv=Yr.concat(["invisible","culling","z","z2","zlevel","parent"]),XR=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Od:a>.2?PP:Nd}else if(t)return Nd}return Od},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if($(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=hf(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&$i)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YR(s,l/u,t,a)))return!0}if(this.hasFill())return UR(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=$i,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&$i)},e.prototype.createStyle=function(t){return nh(gf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=B({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=B({},n.shape),B(u,a.shape)):(u=B({},i?this.shape:n.shape),B(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=_t(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return nh(qR,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=pl(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(sr);LT.prototype.type="tspan";const $s=LT;var KR=j({x:0,y:0},jn),QR={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fh.style)};function JR(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var PT=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return nh(KR,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=JR(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QR},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new vt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sr);PT.prototype.type="image";const ce=PT;function jR(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var Ki=Math.round;function RT(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Ki(a*2)===Ki(n*2)&&(r.x1=r.x2=$n(a,s,!0)),Ki(i*2)===Ki(o*2)&&(r.y1=r.y2=$n(i,s,!0))),r}}function ET(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=$n(a,s,!0),r.y=$n(n,s,!0),r.width=Math.max($n(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max($n(n+o,s,!1)-r.y,o===0?0:1)),r}}function $n(r,e,t){if(!e)return r;var a=Ki(r*2);return(a+Ki(e))%2===0?a/2:(a+(t?1:-1))/2}var tE=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),eE={},kT=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tE},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=ET(eE,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?jR(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(mt);kT.prototype.type="rect";const wt=kT;var u0={fill:"#000"},f0=2,rE={style:j({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},fh.style)},OT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=u0,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,t,T,y,I,"right",_),A-=P.width,I-=P.width,L--;for(M+=(i-(M-g)-(m-I)-A)/2;D<=L;)P=x[D],this._placeToken(P,t,T,y,M+P.width/2,"center",_),M+=P.width,D++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&wv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,d=t.textPadding;d&&(o=g0(o,s,d),h-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild($s),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=p0("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),w=d0("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=f0,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Xa,g.opacity=Hr(u.opacity,a.opacity,1),v0(g,u),w&&(g.lineWidth=Hr(u.lineWidth,a.lineWidth,_),g.lineDash=ft(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=t.contentWidth,T=t.contentHeight;p.setBoundingRect(new vt(hs(g.x,b,g.textAlign),Ui(g.y,T,g.textBaseline),b,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,d=this,p,g;if(v||t.lineHeight||u&&f){p=this._getOrCreateChild(wt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=ft(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ce),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ft(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Hr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return BT(t)&&(a=[t.fontStyle,t.fontWeight,NT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&yr(a)||t.textFont||t.font},e}(sr),aE={left:!0,right:1,center:1},nE={top:1,bottom:1,middle:1},h0=["fontStyle","fontWeight","fontSize","fontFamily"];function NT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?sg+"px":r+"px"}function v0(r,e){for(var t=0;t=0,i=!1;if(r instanceof mt){var o=VT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Di(s)||Di(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=B({},a),u=B({},u),u.fill=s):!Di(u.fill)&&Di(s)?(i=!0,a=B({},a),u=B({},u),u.fill=x0(s)):!Di(u.stroke)&&Di(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=x0(l)),a.style=u}}if(a&&a.z2==null){i||(a=B({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??So)}return a}function hE(r,e,t){if(t&&t.z2==null){t=B({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??oE)}return t}function vE(r,e,t){var a=ct(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:uE(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=B({},t),o=B({opacity:a?n:i.opacity*.1},o),t.style=o),t}function bv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return fE(this,r,e,t);if(r==="blur")return vE(this,r,t);if(r==="select")return hE(this,r,t)}return t}function fi(r){r.stateProxy=bv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=bv),t&&(t.stateProxy=bv)}function b0(r,e){!UT(r,e)&&!r.__highByOuter&&ma(r,zT)}function T0(r,e){!UT(r,e)&&!r.__highByOuter&&ma(r,GT)}function ca(r,e){r.__highByOuter|=1<<(e||0),ma(r,zT)}function da(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&ma(r,GT)}function HT(r){ma(r,Mg)}function Ig(r){ma(r,FT)}function WT(r){ma(r,sE)}function $T(r){ma(r,lE)}function UT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function YT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=Cg(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){FT(u)}),s&&t.push(i)),o.isBlured=!1}),C(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Hd(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function ei(r,e,t){Un(r,!0),ma(r,fi),$d(r,e,t)}function mE(r){Un(r,!1)}function Ht(r,e,t,a){a?mE(r):ei(r,e,t)}function $d(r,e,t){var a=it(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var C0=["emphasis","blur","select"],_E={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function he(r,e,t,a){t=t||"itemStyle";for(var n=0;n1&&(o*=Tv(d),s*=Tv(d));var p=(n===i?-1:1)*Tv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,y=p*-s*v/o,m=(r+t)/2+ql(h)*g-Xl(h)*y,_=(e+a)/2+Xl(h)*g+ql(h)*y,S=L0([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=L0(w,x);if(Yd(w,x)<=-1&&(b=Fo),Yd(w,x)>=1&&(b=0),b<0){var T=Math.round(b/Fo*1e6)/1e6;b=Fo*2+T%2*Fo}f.addData(u,m,_,o,s,S,b,h,i)}var AE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,CE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DE(r){var e=new Xr;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=Xr.CMD,l=r.match(AE);if(!l)return e;for(var u=0;uP*P+R*R&&(T=D,A=M),{cx:T,cy:A,x0:-f,y0:-h,x1:T*(n/w-1),y1:A*(n/w-1)}}function kE(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function OE(r,e){var t,a=vs(e.r,0),n=vs(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=R0(u-l),d=c>Av&&c%Av;if(d>cr&&(c=d),!(a>cr))r.moveTo(f,h);else if(c>Av-cr)r.moveTo(f+a*Ii(l),h+a*xn(l)),r.arc(f,h,a,l,u,!v),n>cr&&(r.moveTo(f+n*Ii(u),h+n*xn(u)),r.arc(f,h,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,A=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=a*Ii(l),E=a*xn(l),N=n*Ii(u),O=n*xn(u),V=c>cr;if(V){var F=e.cornerRadius;F&&(t=kE(F),p=t[0],g=t[1],y=t[2],m=t[3]);var W=R0(a-n)/2;if(_=Ir(W,y),S=Ir(W,m),w=Ir(W,p),x=Ir(W,g),A=b=vs(_,S),D=T=vs(w,x),(b>cr||T>cr)&&(M=a*Ii(u),I=a*xn(u),L=n*Ii(l),P=n*xn(l),ccr){var gt=Ir(y,A),st=Ir(m,A),q=Kl(L,P,R,E,a,gt,v),lt=Kl(M,I,N,O,a,st,v);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),A0&&r.arc(f+q.cx,h+q.cy,gt,pe(q.y0,q.x0),pe(q.y1,q.x1),!v),r.arc(f,h,a,pe(q.cy+q.y1,q.cx+q.x1),pe(lt.cy+lt.y1,lt.cx+lt.x1),!v),st>0&&r.arc(f+lt.cx,h+lt.cy,st,pe(lt.y1,lt.x1),pe(lt.y0,lt.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>cr)||!V)r.lineTo(f+N,h+O);else if(D>cr){var gt=Ir(p,D),st=Ir(g,D),q=Kl(N,O,M,I,n,-st,v),lt=Kl(R,E,L,P,n,-gt,v);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D0&&r.arc(f+q.cx,h+q.cy,st,pe(q.y0,q.x0),pe(q.y1,q.x1),!v),r.arc(f,h,n,pe(q.cy+q.y1,q.cx+q.x1),pe(lt.cy+lt.y1,lt.cx+lt.x1),v),gt>0&&r.arc(f+lt.cx,h+lt.cy,gt,pe(lt.y1,lt.x1),pe(lt.y0,lt.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var NE=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),eA=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new NE},e.prototype.buildPath=function(t,a){OE(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(mt);eA.prototype.type="sector";const Ne=eA;var BE=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),rA=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new BE},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(mt);rA.prototype.type="ring";const dh=rA;function VE(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(a){var i=VE(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sbn[1]){if(s=!1,i)return s;var f=Math.abs(bn[0]-wn[1]),h=Math.abs(wn[0]-bn[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Mt(r,e,t,a,n,i){Og("update",r,e,t,a,n,i)}function Vt(r,e,t,a,n,i){Og("enter",r,e,t,a,n,i)}function to(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function O0(r){return!r.isGroup}function nk(r){return r.shape!=null}function ml(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){O0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return nk(o)&&(s.shape=B({},o.shape)),s}var i=a(r);e.traverse(function(o){if(O0(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Mt(o,l,t,it(o).dataIndex)}}})}function pA(r,e){return G(r,function(t){var a=t[0];a=_f(a,e.x),a=Sf(a,e.x+e.width);var n=t[1];return n=_f(n,e.y),n=Sf(n,e.y+e.height),[a,n]})}function ik(r,e){var t=_f(r.x,e.x),a=Sf(r.x+r.width,e.x+e.width),n=_f(r.y,e.y),i=Sf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function _l(r,e,t){var a=B({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),j(n,t),new ce(a)):gh(r.replace("path://",""),a,t,"center")}function cs(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Cv(c,d,f,h)/v;return!(g<0||g>1)}function Cv(r,e,t,a){return r*a-t*e}function ok(r){return r<=1e-6&&r>=-1e-6}function wo(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=$(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(_t(l),function(f){Y(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=it(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:j({content:a,formatterParams:s},n)}}function N0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function on(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function sn(r,e){return ht(ht({},r,!0),e,!0)}const _k={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Sk={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var wf="ZH",Bg="EN",Xs=Bg,Ku={},Vg={},bA=At.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(wf)>-1?wf:Xs}():Xs;function TA(r,e){r=r.toUpperCase(),Vg[r]=new Nt(e),Ku[r]=e}function xk(r){if($(r)){var e=Ku[r.toUpperCase()]||{};return r===wf||r===Bg?rt(e):ht(rt(e),rt(Ku[Xs]),!1)}else return ht(rt(r),rt(Ku[Xs]),!1)}function qd(r){return Vg[r]}function wk(){return Vg[Xs]}TA(Bg,_k);TA(wf,Sk);var zg=1e3,Gg=zg*60,Is=Gg*60,rr=Is*24,F0=rr*365,ds={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},jl="{yyyy}-{MM}-{dd}",H0={year:"{yyyy}",month:"{yyyy}-{MM}",day:jl,hour:jl+" "+ds.hour,minute:jl+" "+ds.minute,second:jl+" "+ds.second,millisecond:ds.none},Iv=["year","month","day","hour","minute","second","millisecond"],AA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ta(r,e){return r+="","0000".substr(0,e-r.length)+r}function eo(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function bk(r){return r===eo(r)}function Tk(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _h(r,e,t,a){var n=Zr(r),i=n[Fg(t)](),o=n[ro(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Sh(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[qs(t)](),h=(f-1)%12+1,v=n[xh(t)](),c=n[wh(t)](),d=n[bh(t)](),p=a instanceof Nt?a:qd(a||bA)||wk(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ta(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ta(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ta(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ta(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ta(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ta(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ta(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ta(d,3)).replace(/{S}/g,d+"")}function Ak(r,e,t,a,n){var i=null;if($(t))i=t;else if(K(t))i=t(r.value,e,{level:r.level});else{var o=B({},ds);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return _h(new Date(r.value),i,n,a)}function CA(r,e){var t=Zr(r),a=t[ro(e)]()+1,n=t[Sh(e)](),i=t[qs(e)](),o=t[xh(e)](),s=t[wh(e)](),l=t[bh(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,d=c&&a===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function W0(r,e,t){var a=Dt(r)?Zr(r):r;switch(e=e||CA(r,t),e){case"year":return a[Fg(t)]();case"half-year":return a[ro(t)]()>=6?1:0;case"quarter":return Math.floor((a[ro(t)]()+1)/4);case"month":return a[ro(t)]();case"day":return a[Sh(t)]();case"half-day":return a[qs(t)]()/24;case"hour":return a[qs(t)]();case"minute":return a[xh(t)]();case"second":return a[wh(t)]();case"millisecond":return a[bh(t)]()}}function Fg(r){return r?"getUTCFullYear":"getFullYear"}function ro(r){return r?"getUTCMonth":"getMonth"}function Sh(r){return r?"getUTCDate":"getDate"}function qs(r){return r?"getUTCHours":"getHours"}function xh(r){return r?"getUTCMinutes":"getMinutes"}function wh(r){return r?"getUTCSeconds":"getSeconds"}function bh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Ck(r){return r?"setUTCFullYear":"setFullYear"}function DA(r){return r?"setUTCMonth":"setMonth"}function MA(r){return r?"setUTCDate":"setDate"}function IA(r){return r?"setUTCHours":"setHours"}function LA(r){return r?"setUTCMinutes":"setMinutes"}function PA(r){return r?"setUTCSeconds":"setSeconds"}function RA(r){return r?"setUTCMilliseconds":"setMilliseconds"}function EA(r){if(!cT(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function kA(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ao=cg;function Kd(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&yr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Zr(r):r;if(isNaN(+l)){if(s)return"-"}else return _h(l,a,t)}if(e==="ordinal")return pd(r)?n(r):Dt(r)&&i(r)?r+"":"-";var u=va(r);return i(u)?EA(u):pd(r)?n(r):typeof r=="boolean"?r+"":"-"}var $0=["a","b","c","d","e","f","g"],Lv=function(r,e){return"{"+r+(e??"")+"}"};function OA(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function hi(r,e){return e=e||"transparent",$(r)?r:tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function bf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Qu=C,NA=["left","right","top","bottom","width","height"],Yn=[["width","left","right"],["height","top","bottom"]];function Hg(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=i+p,c>a||l.newline?(i=0,c=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=d+t)})}var ai=Hg;ot(Hg,"vertical");ot(Hg,"horizontal");function Ik(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Ao(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function te(r,e,t){t=Ao(t||0);var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),f=H(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new vt(i+t[3],o+t[0],u,f);return d.margin=t,d}function Th(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new vt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=te(j({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function Lk(r,e){return r[Yn[e][0]]!=null||r[Yn[e][1]]!=null&&r[Yn[e][2]]!=null}function Ks(r){var e=r.layoutMode||r.constructor.layoutMode;return tt(e)?e:e?{type:e}:null}function Ja(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Yn[0],0),i=o(Yn[1],1);u(Yn[0],r,n),u(Yn[1],r,i);function o(f,h){var v={},c=0,d={},p=0,g=2;if(Qu(f,function(_){d[_]=r[_]}),Qu(f,function(_){s(e,_)&&(v[_]=d[_]=e[_]),l(v,_)&&c++,l(d,_)&&p++}),a[h])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var y=0;y=0;l--)s=ht(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return gl(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Nt);bT(Do,Nt);lh(Do);yk(Do);mk(Do,Rk);function Rk(r){var e=[];return C(Do.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return zr(t).main}),r!=="dataset"&&ct(e,"dataset")<=0&&e.unshift("dataset"),e}const Tt=Do;var VA="";typeof navigator<"u"&&(VA=navigator.platform||"");var Li="rgba(0, 0, 0, 0.2)";const Ek={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Li,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Li,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Li,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Li,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Li,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Li,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:VA.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var zA=X(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ur="original",_e="arrayRows",fr="objectRows",Kr="keyedColumns",Ua="typedArray",GA="unknown",Wr="column",Mo="row",le={Must:1,Might:2,Not:3},FA=bt();function kk(r){FA(r).datasetMap=X()}function HA(r,e,t){var a={},n=$g(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=FA(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),C(r,function(p,g){var y=tt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;me)return r[a];return r[t-1]}function UA(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:zk(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function Gk(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var tu,Ho,Y0,Z0="\0_ec_inner",Fk=1,YA=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Nt(i),this._locale=new Nt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=K0(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,K0(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?Y0(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=X(),u=a&&a.replaceMergeMainTypeMap;kk(this),C(t,function(h,v){h!=null&&(Tt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?rt(h):ht(n[v],h,!0))}),u&&u.each(function(h,v){Tt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Tt.topologicalTravel(s,Tt.getAllClassMainTypes(),f,this);function f(h){var v=Bk(this,h,Rt(t[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=mT(c,v,d);aR(p,h,Tt),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;C(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",A=Tt.getClass(h,S.keyInfo.subType,!T);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var D=B({componentIndex:w},S.keyInfo);x=new A(b,this,this,D),B(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&tu(this)}this._seriesIndices||tu(this)},e.prototype.getOption=function(){var t=rt(this.option);return C(t,function(a,n){if(Tt.hasClass(n)){for(var i=Rt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ws(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[Z0],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function Jk(r,e){return r.join(",")===e.join(",")}const jk=Xk;var hr=C,Qs=tt,Q0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Rv(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=Q0.length;t=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=YP(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var Ah=function(){function r(e){this.data=e.data||(e.sourceFormat===Kr?{}:[]),this.sourceFormat=e.sourceFormat||GA,this.seriesLayoutBy=e.seriesLayoutBy||Wr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ap&&(p=_)}c[0]=d,c[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};n_=(e={},e[_e+"_"+Wr]={pure:!0,appendData:i},e[_e+"_"+Mo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[fr]={pure:!0,appendData:i},e[Kr]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[ur]={appendData:i},e[Ua]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return oo(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function l_(r){var e,t;return tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ls(r){return new gO(r)}var gO=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},mO=function(){function r(e,t){if(!Dt(t)){var a="";It(a)}this._opFn=nC[e],this._rvalFloat=va(t)}return r.prototype.evaluate=function(e){return Dt(e)?this._opFn(e,this._rvalFloat):this._opFn(va(e),this._rvalFloat)},r}(),iC=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Dt(e)?e:va(e),n=Dt(t)?t:va(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=$(e),l=$(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),_O=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=va(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=va(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function SO(r,e){return r==="eq"||r==="ne"?new _O(r==="eq",e):Y(nC,r)?new mO(r,e):null}var xO=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ya(e,t)},r}();function wO(r,e){var t=new xO,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Wr&&It(o);var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Y(l,y)&&It(_),l[y]=m}});else for(var f=0;f65535?LO:PO}function Pi(){return[1/0,-1/0]}function RO(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function h_(r,e,t,a,n){var i=lC[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],w=e[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;ye[D][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new($o(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;df&&(f=h,v=S)}M>0&&Mf-d&&(l=f-d,s.length=l);for(var p=0;ph[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Ya(t[i],this._dimensions[i])}Ov={arrayRows:e,objectRows:function(t,a,n,i){return Ya(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Ya(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),uC=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(eu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=We(s)?Ua:ur,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ft(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=ft(h.sourceHeader,v.sourceHeader),p=ft(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[jd(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[jd(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&c_(i)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&c_(h),s.push(f),l.push(u._getVersionSign())}),a?o=MO(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[uO(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?WP(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Ut(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),fT),r=(+r).toFixed(e),t?r:+r}function ar(r){return r.sort(function(e,t){return e-t}),r}function Vr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return $P(r)}function $P(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function hT(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function UP(r,e){var t=$r(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=$r(o,function(c,d){return c+d},0),l=G(n,function(c,d){return c-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function YP(r,e){var t=Math.max(Vr(r),Vr(e)),a=r+e;return t>fT?a:Ut(a,t)}var Jm=9007199254740991;function vT(r){var e=Math.PI*2;return(r%e+e)%e}function gf(r){return r>-Qm&&r=10&&e++,e}function cT(r,e){var t=wg(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function hv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function jm(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||i&&ct(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var mR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_R=ui(mR),SR=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return _R(this,e,t)},r}(),zd=new pl(50);function xR(r){if(typeof r=="string"){var e=zd.get(r);return e&&e.image}else return r}function Cg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=zd.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!fh(e)&&i.pending.push(o)):(e=qa.loadImage(r,a0,a0),e.__zrImageSrc=r,zd.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function a0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=He(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function CT(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=He(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?bR(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=He(r,a)}return r===""&&(r=e.placeholder),r}function bR(r,e,t,a){for(var n=0,i=0,o=r.length;ic&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&i&&f!=null)for(var p=AT(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&cv(t,r.substring(s,u),e,o),cv(t,l[2],e,o,l[1]),s=vv.lastIndex}sn){w>0?(m.tokens=m.tokens.slice(0,w),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var I=b.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=He(x.text,D);else{if(L){var P=b.backgroundColor,R=P&&P.image;R&&(R=xR(R),fh(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var E=d&&a!=null?a-S:null;E!=null&&E0&&d+a.accumWidth>a.width&&(f=e.split(` +`),u=!0),a.accumWidth=d}else{var p=DT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=e.split(` +`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var IR=$r(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function LR(r){return MR(r)?!!IR[r]:!0}function DT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Gd="__zr_style_"+Math.round(Math.random()*10),jn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jn[Gd]=!0;var i0=["z","z2","invisible"],PR=["invisible"],RR=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=_t(t),n=0;n1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Yl[0]=yv(n)*t+r,Yl[1]=gv(n)*a+e,Zl[0]=yv(i)*t+r,Zl[1]=gv(i)*a+e,u(s,Yl,Zl),f(l,Yl,Zl),n=n%pn,n<0&&(n=n+pn),i=i%pn,i<0&&(i=i+pn),n>i&&!o?i+=pn:nn&&(Xl[0]=yv(c)*t+r,Xl[1]=gv(c)*a+e,u(s,Xl,s),f(l,Xl,l))}var Et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},gn=[],yn=[],Cr=[],wa=[],Dr=[],Mr=[],mv=Math.min,_v=Math.max,mn=Math.cos,_n=Math.sin,jr=Math.abs,Fd=Math.PI,Pa=Fd*2,Sv=typeof Float32Array<"u",Go=[];function xv(r){var e=Math.round(r/Fd*1e8)/1e8;return e%2*Fd}function MT(r,e){var t=xv(r[0]);t<0&&(t+=Pa);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Pa?n=t+Pa:e&&t-n>=Pa?n=t-Pa:!e&&t>n?n=t+(Pa-xv(t-n)):e&&t0&&(this._ux=jr(a/df/e)||0,this._uy=jr(a/df/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Et.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=jr(e-this._xi),n=jr(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Et.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Et.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Et.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Go[0]=n,Go[1]=i,MT(Go,o),n=Go[0],i=Go[1];var s=i-n;return this.addData(Et.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=mn(i)*a+e,this._yi=_n(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Et.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Et.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Sv&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Cr[0]=Cr[1]=Dr[0]=Dr[1]=Number.MAX_VALUE,wa[0]=wa[1]=Mr[0]=Mr[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;oa||jr(_)>n||v===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Et.C:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++],x=e[v++],b=e[v++];p=JL(i,o,S,w,g,y,x,b,10),i=x,o=b;break}case Et.Q:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++];p=tP(i,o,S,w,g,y,10),i=g,o=y;break}case Et.A:var T=e[v++],A=e[v++],D=e[v++],M=e[v++],I=e[v++],L=e[v++],P=L+I;v+=1,e[v++],d&&(s=mn(I)*D+T,l=_n(I)*M+A),p=_v(D,M)*mv(Pa,Math.abs(L)),i=mn(P)*D+T,o=_n(P)*M+A;break;case Et.R:{s=i=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];p=R*2+E*2;break}case Et.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,d,p,g=0,y=0,m,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))t:for(var x=0;x0&&(e.lineTo(S,w),_=0),b){case Et.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Et.L:{h=a[x++],v=a[x++];var A=jr(h-u),D=jr(v-f);if(A>n||D>i){if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var L=A*A+D*D;L>_&&(S=h,w=v,_=L)}break}case Et.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],V=a[x++];if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;Ka(u,P,E,O,I,gn),Ka(f,R,N,V,I,yn),e.bezierCurveTo(gn[1],yn[1],gn[2],yn[2],gn[3],yn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,O,V),u=O,f=V;break}case Et.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;Fs(u,P,E,I,gn),Fs(f,R,N,I,yn),e.quadraticCurveTo(gn[1],yn[1],gn[2],yn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Et.A:var F=a[x++],W=a[x++],Z=a[x++],Q=a[x++],J=a[x++],dt=a[x++],St=a[x++],pt=!a[x++],et=Z>Q?Z:Q,gt=jr(Z-Q)>.001,st=J+dt,q=!1;if(c){var M=d[y++];g+M>m&&(st=J+dt*(m-g)/M,q=!0),g+=M}if(gt&&e.ellipse?e.ellipse(F,W,Z,Q,St,J,st,pt):e.arc(F,W,et,J,st,pt),q)break t;T&&(s=mn(J)*Z+F,l=_n(J)*Q+W),u=mn(st)*Z+F,f=_n(st)*Q+W;break;case Et.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var lt=a[x++],zt=a[x++];if(c){var M=d[y++];if(g+M>m){var xt=m-g;e.moveTo(h,v),e.lineTo(h+mv(xt,lt),v),xt-=lt,xt>0&&e.lineTo(h+lt,v+mv(xt,zt)),xt-=zt,xt>0&&e.lineTo(h+_v(lt-xt,0),v+zt),xt-=lt,xt>0&&e.lineTo(h,v+_v(zt-xt,0));break t}g+=M}e.rect(h,v,lt,zt);break;case Et.Z:if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Et,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function Ea(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=Fo);var v=Math.atan2(l,s);return v<0&&(v+=Fo),v>=a&&v<=n||v+Fo>=a&&v+Fo<=n}function aa(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var ba=Xr.CMD,Sn=Math.PI*2,zR=1e-4;function GR(r,e){return Math.abs(r-e)e&&u>a&&u>i&&u>s||u1&&FR(),c=ee(e,a,i,s,Qe[0]),v>1&&(d=ee(e,a,i,s,Qe[1]))),v===2?ge&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=ie(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);be[0]=-l,be[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Sn-1e-4){a=0,n=Sn;var f=i?1:-1;return o>=be[0]+r&&o<=be[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Sn,n+=Sn);for(var v=0,c=0;c<2;c++){var d=be[c];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Sn+p),(p>=a&&p<=n||p+Sn>=a&&p+Sn<=n)&&(p>Math.PI/2&&p1&&(t||(s+=aa(l,u,f,h,a,n))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case ba.M:f=i[d++],h=i[d++],l=f,u=h;break;case ba.L:if(t){if(Ea(l,u,i[d],i[d+1],e,a,n))return!0}else s+=aa(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ba.C:if(t){if(BR(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=HR(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ba.Q:if(t){if(IT(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=WR(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case ba.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],w=i[d++],x=i[d++];d+=1;var b=!!(1-i[d++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=aa(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(VR(y,m,S,w,w+x,b,e,T,n))return!0}else s+=$R(y,m,S,w,w+x,b,T,n);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case ba.R:f=l=i[d++],h=u=i[d++];var A=i[d++],D=i[d++];if(v=f+A,c=h+D,t){if(Ea(f,h,v,h,e,a,n)||Ea(v,h,v,c,e,a,n)||Ea(v,c,f,c,e,a,n)||Ea(f,c,f,h,e,a,n))return!0}else s+=aa(v,h,v,c,a,n),s+=aa(f,c,f,h,a,n);break;case ba.Z:if(t){if(Ea(l,u,f,h,e,a,n))return!0}else s+=aa(l,u,f,h,a,n);l=f,u=h;break}}return!t&&!GR(u,h)&&(s+=aa(l,u,f,h,a,n)||0),s!==0}function UR(r,e,t){return LT(r,0,!1,e,t)}function YR(r,e,t,a){return LT(r,e,!0,t,a)}var yf=j({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},jn),ZR={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hh.style)},wv=Yr.concat(["invisible","culling","z","z2","zlevel","parent"]),XR=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Nd:a>.2?PP:Bd}else if(t)return Bd}return Nd},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if($(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=vf(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ui)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YR(s,l/u,t,a)))return!0}if(this.hasFill())return UR(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ui,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ui)},e.prototype.createStyle=function(t){return ih(yf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=B({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=B({},n.shape),B(u,a.shape)):(u=B({},i?this.shape:n.shape),B(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=_t(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return ih(qR,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=gl(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(sr);PT.prototype.type="tspan";const Us=PT;var KR=j({x:0,y:0},jn),QR={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hh.style)};function JR(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var RT=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return ih(KR,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=JR(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QR},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new vt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sr);RT.prototype.type="image";const ce=RT;function jR(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var Qi=Math.round;function ET(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Qi(a*2)===Qi(n*2)&&(r.x1=r.x2=$n(a,s,!0)),Qi(i*2)===Qi(o*2)&&(r.y1=r.y2=$n(i,s,!0))),r}}function kT(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=$n(a,s,!0),r.y=$n(n,s,!0),r.width=Math.max($n(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max($n(n+o,s,!1)-r.y,o===0?0:1)),r}}function $n(r,e,t){if(!e)return r;var a=Qi(r*2);return(a+Qi(e))%2===0?a/2:(a+(t?1:-1))/2}var tE=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),eE={},OT=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tE},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=kT(eE,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?jR(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(mt);OT.prototype.type="rect";const wt=OT;var f0={fill:"#000"},h0=2,rE={style:j({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},hh.style)},NT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=f0,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,t,T,y,I,"right",_),A-=P.width,I-=P.width,L--;for(M+=(i-(M-g)-(m-I)-A)/2;D<=L;)P=x[D],this._placeToken(P,t,T,y,M+P.width/2,"center",_),M+=P.width,D++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;f==="top"?h=i+t.height/2:f==="bottom"&&(h=i+n-t.height/2);var v=!t.isLineHolder&&bv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,d=t.textPadding;d&&(o=y0(o,s,d),h-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Us),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=g0("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),w=p0("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=h0,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Xa,g.opacity=Hr(u.opacity,a.opacity,1),c0(g,u),w&&(g.lineWidth=Hr(u.lineWidth,a.lineWidth,_),g.lineDash=ft(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=t.contentWidth,T=t.contentHeight;p.setBoundingRect(new vt(vs(g.x,b,g.textAlign),Yi(g.y,T,g.textBaseline),b,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,d=this,p,g;if(v||t.lineHeight||u&&f){p=this._getOrCreateChild(wt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=ft(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ce),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ft(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Hr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return VT(t)&&(a=[t.fontStyle,t.fontWeight,BT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&yr(a)||t.textFont||t.font},e}(sr),aE={left:!0,right:1,center:1},nE={top:1,bottom:1,middle:1},v0=["fontStyle","fontWeight","fontSize","fontFamily"];function BT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?lg+"px":r+"px"}function c0(r,e){for(var t=0;t=0,i=!1;if(r instanceof mt){var o=zT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Mi(s)||Mi(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=B({},a),u=B({},u),u.fill=s):!Mi(u.fill)&&Mi(s)?(i=!0,a=B({},a),u=B({},u),u.fill=w0(s)):!Mi(u.stroke)&&Mi(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=w0(l)),a.style=u}}if(a&&a.z2==null){i||(a=B({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??xo)}return a}function hE(r,e,t){if(t&&t.z2==null){t=B({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??oE)}return t}function vE(r,e,t){var a=ct(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:uE(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=B({},t),o=B({opacity:a?n:i.opacity*.1},o),t.style=o),t}function Tv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return fE(this,r,e,t);if(r==="blur")return vE(this,r,t);if(r==="select")return hE(this,r,t)}return t}function fi(r){r.stateProxy=Tv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Tv),t&&(t.stateProxy=Tv)}function T0(r,e){!YT(r,e)&&!r.__highByOuter&&ma(r,GT)}function A0(r,e){!YT(r,e)&&!r.__highByOuter&&ma(r,FT)}function ca(r,e){r.__highByOuter|=1<<(e||0),ma(r,GT)}function da(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&ma(r,FT)}function WT(r){ma(r,Ig)}function Lg(r){ma(r,HT)}function $T(r){ma(r,sE)}function UT(r){ma(r,lE)}function YT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function ZT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=Dg(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){HT(u)}),s&&t.push(i)),o.isBlured=!1}),C(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Wd(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function ei(r,e,t){Un(r,!0),ma(r,fi),Ud(r,e,t)}function mE(r){Un(r,!1)}function Ht(r,e,t,a){a?mE(r):ei(r,e,t)}function Ud(r,e,t){var a=it(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var D0=["emphasis","blur","select"],_E={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function he(r,e,t,a){t=t||"itemStyle";for(var n=0;n1&&(o*=Av(d),s*=Av(d));var p=(n===i?-1:1)*Av((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,y=p*-s*v/o,m=(r+t)/2+Kl(h)*g-ql(h)*y,_=(e+a)/2+ql(h)*g+Kl(h)*y,S=P0([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=P0(w,x);if(Zd(w,x)<=-1&&(b=Ho),Zd(w,x)>=1&&(b=0),b<0){var T=Math.round(b/Ho*1e6)/1e6;b=Ho*2+T%2*Ho}f.addData(u,m,_,o,s,S,b,h,i)}var AE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,CE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DE(r){var e=new Xr;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=Xr.CMD,l=r.match(AE);if(!l)return e;for(var u=0;uP*P+R*R&&(T=D,A=M),{cx:T,cy:A,x0:-f,y0:-h,x1:T*(n/w-1),y1:A*(n/w-1)}}function kE(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function OE(r,e){var t,a=cs(e.r,0),n=cs(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=E0(u-l),d=c>Cv&&c%Cv;if(d>cr&&(c=d),!(a>cr))r.moveTo(f,h);else if(c>Cv-cr)r.moveTo(f+a*Li(l),h+a*xn(l)),r.arc(f,h,a,l,u,!v),n>cr&&(r.moveTo(f+n*Li(u),h+n*xn(u)),r.arc(f,h,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,A=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=a*Li(l),E=a*xn(l),N=n*Li(u),O=n*xn(u),V=c>cr;if(V){var F=e.cornerRadius;F&&(t=kE(F),p=t[0],g=t[1],y=t[2],m=t[3]);var W=E0(a-n)/2;if(_=Ir(W,y),S=Ir(W,m),w=Ir(W,p),x=Ir(W,g),A=b=cs(_,S),D=T=cs(w,x),(b>cr||T>cr)&&(M=a*Li(u),I=a*xn(u),L=n*Li(l),P=n*xn(l),ccr){var gt=Ir(y,A),st=Ir(m,A),q=Ql(L,P,R,E,a,gt,v),lt=Ql(M,I,N,O,a,st,v);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),A0&&r.arc(f+q.cx,h+q.cy,gt,pe(q.y0,q.x0),pe(q.y1,q.x1),!v),r.arc(f,h,a,pe(q.cy+q.y1,q.cx+q.x1),pe(lt.cy+lt.y1,lt.cx+lt.x1),!v),st>0&&r.arc(f+lt.cx,h+lt.cy,st,pe(lt.y1,lt.x1),pe(lt.y0,lt.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(n>cr)||!V)r.lineTo(f+N,h+O);else if(D>cr){var gt=Ir(p,D),st=Ir(g,D),q=Ql(N,O,M,I,n,-st,v),lt=Ql(R,E,L,P,n,-gt,v);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D0&&r.arc(f+q.cx,h+q.cy,st,pe(q.y0,q.x0),pe(q.y1,q.x1),!v),r.arc(f,h,n,pe(q.cy+q.y1,q.cx+q.x1),pe(lt.cy+lt.y1,lt.cx+lt.x1),v),gt>0&&r.arc(f+lt.cx,h+lt.cy,gt,pe(lt.y1,lt.x1),pe(lt.y0,lt.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var NE=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),rA=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new NE},e.prototype.buildPath=function(t,a){OE(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(mt);rA.prototype.type="sector";const Ne=rA;var BE=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),aA=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new BE},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(mt);aA.prototype.type="ring";const ph=aA;function VE(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(a){var i=VE(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sbn[1]){if(s=!1,i)return s;var f=Math.abs(bn[0]-wn[1]),h=Math.abs(wn[0]-bn[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Mt(r,e,t,a,n,i){Ng("update",r,e,t,a,n,i)}function Vt(r,e,t,a,n,i){Ng("enter",r,e,t,a,n,i)}function eo(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function N0(r){return!r.isGroup}function nk(r){return r.shape!=null}function _l(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){N0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return nk(o)&&(s.shape=B({},o.shape)),s}var i=a(r);e.traverse(function(o){if(N0(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Mt(o,l,t,it(o).dataIndex)}}})}function gA(r,e){return G(r,function(t){var a=t[0];a=Sf(a,e.x),a=xf(a,e.x+e.width);var n=t[1];return n=Sf(n,e.y),n=xf(n,e.y+e.height),[a,n]})}function ik(r,e){var t=Sf(r.x,e.x),a=xf(r.x+r.width,e.x+e.width),n=Sf(r.y,e.y),i=xf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Sl(r,e,t){var a=B({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),j(n,t),new ce(a)):yh(r.replace("path://",""),a,t,"center")}function ds(r,e,t,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=Dv(c,d,f,h)/v;return!(g<0||g>1)}function Dv(r,e,t,a){return r*a-t*e}function ok(r){return r<=1e-6&&r>=-1e-6}function bo(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=$(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&C(_t(l),function(f){Y(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=it(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:j({content:a,formatterParams:s},n)}}function B0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function on(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function sn(r,e){return ht(ht({},r,!0),e,!0)}const _k={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Sk={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var bf="ZH",Vg="EN",qs=Vg,Qu={},zg={},TA=At.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(bf)>-1?bf:qs}():qs;function AA(r,e){r=r.toUpperCase(),zg[r]=new Nt(e),Qu[r]=e}function xk(r){if($(r)){var e=Qu[r.toUpperCase()]||{};return r===bf||r===Vg?rt(e):ht(rt(e),rt(Qu[qs]),!1)}else return ht(rt(r),rt(Qu[qs]),!1)}function Kd(r){return zg[r]}function wk(){return zg[qs]}AA(Vg,_k);AA(bf,Sk);var Gg=1e3,Fg=Gg*60,Ls=Fg*60,rr=Ls*24,H0=rr*365,ps={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tu="{yyyy}-{MM}-{dd}",W0={year:"{yyyy}",month:"{yyyy}-{MM}",day:tu,hour:tu+" "+ps.hour,minute:tu+" "+ps.minute,second:tu+" "+ps.second,millisecond:ps.none},Lv=["year","month","day","hour","minute","second","millisecond"],CA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ta(r,e){return r+="","0000".substr(0,e-r.length)+r}function ro(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function bk(r){return r===ro(r)}function Tk(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sh(r,e,t,a){var n=Zr(r),i=n[Hg(t)](),o=n[ao(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[xh(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Ks(t)](),h=(f-1)%12+1,v=n[wh(t)](),c=n[bh(t)](),d=n[Th(t)](),p=a instanceof Nt?a:Kd(a||TA)||wk(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ta(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ta(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ta(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ta(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ta(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ta(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ta(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ta(d,3)).replace(/{S}/g,d+"")}function Ak(r,e,t,a,n){var i=null;if($(t))i=t;else if(K(t))i=t(r.value,e,{level:r.level});else{var o=B({},ps);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return Sh(new Date(r.value),i,n,a)}function DA(r,e){var t=Zr(r),a=t[ao(e)]()+1,n=t[xh(e)](),i=t[Ks(e)](),o=t[wh(e)](),s=t[bh(e)](),l=t[Th(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,d=c&&a===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function $0(r,e,t){var a=Dt(r)?Zr(r):r;switch(e=e||DA(r,t),e){case"year":return a[Hg(t)]();case"half-year":return a[ao(t)]()>=6?1:0;case"quarter":return Math.floor((a[ao(t)]()+1)/4);case"month":return a[ao(t)]();case"day":return a[xh(t)]();case"half-day":return a[Ks(t)]()/24;case"hour":return a[Ks(t)]();case"minute":return a[wh(t)]();case"second":return a[bh(t)]();case"millisecond":return a[Th(t)]()}}function Hg(r){return r?"getUTCFullYear":"getFullYear"}function ao(r){return r?"getUTCMonth":"getMonth"}function xh(r){return r?"getUTCDate":"getDate"}function Ks(r){return r?"getUTCHours":"getHours"}function wh(r){return r?"getUTCMinutes":"getMinutes"}function bh(r){return r?"getUTCSeconds":"getSeconds"}function Th(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Ck(r){return r?"setUTCFullYear":"setFullYear"}function MA(r){return r?"setUTCMonth":"setMonth"}function IA(r){return r?"setUTCDate":"setDate"}function LA(r){return r?"setUTCHours":"setHours"}function PA(r){return r?"setUTCMinutes":"setMinutes"}function RA(r){return r?"setUTCSeconds":"setSeconds"}function EA(r){return r?"setUTCMilliseconds":"setMilliseconds"}function kA(r){if(!dT(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function OA(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Co=dg;function Qd(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&yr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Zr(r):r;if(isNaN(+l)){if(s)return"-"}else return Sh(l,a,t)}if(e==="ordinal")return gd(r)?n(r):Dt(r)&&i(r)?r+"":"-";var u=va(r);return i(u)?kA(u):gd(r)?n(r):typeof r=="boolean"?r+"":"-"}var U0=["a","b","c","d","e","f","g"],Pv=function(r,e){return"{"+r+(e??"")+"}"};function NA(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function hi(r,e){return e=e||"transparent",$(r)?r:tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Tf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Ju=C,BA=["left","right","top","bottom","width","height"],Yn=[["width","left","right"],["height","top","bottom"]];function Wg(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=i+p,c>a||l.newline?(i=0,c=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+t:o=d+t)})}var ai=Wg;ot(Wg,"vertical");ot(Wg,"horizontal");function Ik(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Co(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function te(r,e,t){t=Co(t||0);var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),f=H(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new vt(i+t[3],o+t[0],u,f);return d.margin=t,d}function Ah(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new vt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=te(j({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function Lk(r,e){return r[Yn[e][0]]!=null||r[Yn[e][1]]!=null&&r[Yn[e][2]]!=null}function Qs(r){var e=r.layoutMode||r.constructor.layoutMode;return tt(e)?e:e?{type:e}:null}function Ja(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Yn[0],0),i=o(Yn[1],1);u(Yn[0],r,n),u(Yn[1],r,i);function o(f,h){var v={},c=0,d={},p=0,g=2;if(Ju(f,function(_){d[_]=r[_]}),Ju(f,function(_){s(e,_)&&(v[_]=d[_]=e[_]),l(v,_)&&c++,l(d,_)&&p++}),a[h])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var y=0;y=0;l--)s=ht(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return yl(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Nt);TT(Mo,Nt);uh(Mo);yk(Mo);mk(Mo,Rk);function Rk(r){var e=[];return C(Mo.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return zr(t).main}),r!=="dataset"&&ct(e,"dataset")<=0&&e.unshift("dataset"),e}const Tt=Mo;var zA="";typeof navigator<"u"&&(zA=navigator.platform||"");var Pi="rgba(0, 0, 0, 0.2)";const Ek={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Pi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Pi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Pi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Pi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Pi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Pi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:zA.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var GA=X(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ur="original",_e="arrayRows",fr="objectRows",Kr="keyedColumns",Ua="typedArray",FA="unknown",Wr="column",Io="row",le={Must:1,Might:2,Not:3},HA=bt();function kk(r){HA(r).datasetMap=X()}function WA(r,e,t){var a={},n=Ug(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=HA(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),C(r,function(p,g){var y=tt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;me)return r[a];return r[t-1]}function YA(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:zk(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function Gk(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var eu,Wo,Z0,X0="\0_ec_inner",Fk=1,ZA=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Nt(i),this._locale=new Nt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=Q0(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,Q0(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?Z0(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&C(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=X(),u=a&&a.replaceMergeMainTypeMap;kk(this),C(t,function(h,v){h!=null&&(Tt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?rt(h):ht(n[v],h,!0))}),u&&u.each(function(h,v){Tt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Tt.topologicalTravel(s,Tt.getAllClassMainTypes(),f,this);function f(h){var v=Bk(this,h,Rt(t[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=_T(c,v,d);aR(p,h,Tt),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;C(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",A=Tt.getClass(h,S.keyInfo.subType,!T);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var D=B({componentIndex:w},S.keyInfo);x=new A(b,this,this,D),B(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&eu(this)}this._seriesIndices||eu(this)},e.prototype.getOption=function(){var t=rt(this.option);return C(t,function(a,n){if(Tt.hasClass(n)){for(var i=Rt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!$s(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[X0],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function Jk(r,e){return r.join(",")===e.join(",")}const jk=Xk;var hr=C,Js=tt,J0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ev(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=J0.length;t=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=YP(v,m),p=m;break}}}return a[0]=v,a[1]=p,a})})}var Ch=function(){function r(e){this.data=e.data||(e.sourceFormat===Kr?{}:[]),this.sourceFormat=e.sourceFormat||FA,this.seriesLayoutBy=e.seriesLayoutBy||Wr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ap&&(p=_)}c[0]=d,c[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};i_=(e={},e[_e+"_"+Wr]={pure:!0,appendData:i},e[_e+"_"+Io]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[fr]={pure:!0,appendData:i},e[Kr]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[ur]={appendData:i},e[Ua]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return so(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function u_(r){var e,t;return tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ps(r){return new gO(r)}var gO=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},mO=function(){function r(e,t){if(!Dt(t)){var a="";It(a)}this._opFn=iC[e],this._rvalFloat=va(t)}return r.prototype.evaluate=function(e){return Dt(e)?this._opFn(e,this._rvalFloat):this._opFn(va(e),this._rvalFloat)},r}(),oC=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Dt(e)?e:va(e),n=Dt(t)?t:va(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=$(e),l=$(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),_O=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=va(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=va(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function SO(r,e){return r==="eq"||r==="ne"?new _O(r==="eq",e):Y(iC,r)?new mO(r,e):null}var xO=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ya(e,t)},r}();function wO(r,e){var t=new xO,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Wr&&It(o);var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Y(l,y)&&It(_),l[y]=m}});else for(var f=0;f65535?LO:PO}function Ri(){return[1/0,-1/0]}function RO(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function v_(r,e,t,a,n){var i=uC[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=e[n[1]][0],w=e[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;ye[D][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(Uo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;df&&(f=h,v=S)}M>0&&Mf-d&&(l=f-d,s.length=l);for(var p=0;ph[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Ya(t[i],this._dimensions[i])}Nv={arrayRows:e,objectRows:function(t,a,n,i){return Ya(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Ya(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),fC=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(ru(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=We(s)?Ua:ur,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ft(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=ft(h.sourceHeader,v.sourceHeader),p=ft(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[tp(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[tp(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&d_(i)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&d_(h),s.push(f),l.push(u._getVersionSign())}),a?o=MO(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[uO(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return C(r.blocks,function(n){var i=cC(n);i>=e&&(e=i+ +(a&&(!i||ep(n)&&!n.noHeader)))}),e}return 0}function OO(r,e,t,a){var n=e.noHeader,i=BO(cC(e)),o=[],s=e.blocks||[];De(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Y(u,l)){var f=new iC(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(d,p){var g=e.valueFormatter,y=vC(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):rp(o.join(""),n?t:i.html);if(n)return h;var v=Kd(e.header,"ordinal",r.useUTC),c=hC(a,r.renderMode).nameStyle;return r.renderMode==="richText"?dC(r,v,c)+i.richText+h:rp('
'+Re(v)+"
"+h,t)}function NO(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(w,x){return Kd(w,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Kd(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value),p=!s||!i,g=!s&&i,y=hC(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":dC(r,v,m))+(o?"":GO(r,d,p,g,_)):rp((s?"":h)+(i?"":VO(v,!s,m))+(o?"":zO(d,p,g,_)),t)}}function d_(r,e,t,a,n,i){if(r){var o=vC(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function BO(r){return{html:EO[r],richText:kO[r]}}function rp(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function VO(r,e,t){var a=e?"margin-left:2px":"";return''+Re(r)+""}function zO(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+G(r,function(o){return Re(o)}).join("  ")+""}function dC(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function GO(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function pC(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return hi(a)}function gC(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Nv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=dT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=Mk({color:t,type:e,renderMode:a,markerId:n});return $(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?C(t,function(i){return B(a,i)}):B(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function yC(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=pC(e,t),f,h,v,c;if(o>1||l&&!o){var d=FO(s,e,t,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);c=f=oo(n,t,i[0]),h=p.type}else c=f=l?s[0]:s;var g=wg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return ne("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ne("nameValue",{markerType:"item",markerColor:u,name:_,noName:!yr(_),value:f,valueType:h})].concat(v||[])})}function FO(r,e,t,a,n){var i=e.getData(),o=$r(r,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?C(a,function(h){f(oo(i,t,h),h)}):C(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(ne("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Aa=bt();function ru(r,e){return r.getName(e)||r.getId(e)}var Ju="__universalTransitionEnabled",Dh=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ls({count:WO,reset:$O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Aa(this).sourceManager=new uC(this);i.prepareSource();var o=this.getInitialData(t,n);g_(o,this),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,p_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Ks(this),i=n?Co(t):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),ht(t,a.getTheme().get(this.subType)),ht(t,this.getDefaultOption()),si(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ja(t,i,n)},e.prototype.mergeOption=function(t,a){t=ht(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ks(this);n&&Ja(this.option,t,n);var i=Aa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);g_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,p_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!We(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Ug.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[ru(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Ju])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return Tt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Tt);Jt(Dh,qg);Jt(Dh,Ug);bT(Dh,Tt);function p_(r){var e=r.name;wg(r)||(r.name=HO(r)||e)}function HO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return C(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function WO(r){return r.model.getRawData().count()}function $O(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),UO}function UO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function g_(r,e){C(sf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ot(YO,e))})}function YO(r,e){var t=ap(r);return t&&t.setOutputEnd((e||this).count()),e}function ap(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const Gt=Dh;var Qg=function(){function r(){this.group=new at,this.uid=To("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Tg(Qg);lh(Qg);const Wt=Qg;function Io(){var r=bt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var mC=bt(),ZO=Io(),Jg=function(){function r(){this.group=new at,this.uid=To("viewChart"),this.renderTask=Ls({plan:XO,reset:qO}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&m_(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&m_(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){on(this.group,e)},r.markUpdateMethod=function(e,t){mC(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function y_(r,e,t){r&&Ys(r)&&(e==="emphasis"?ca:da)(r,t)}function m_(r,e,t){var a=li(r,e),n=e&&e.highlightKey!=null?xE(e.highlightKey):null;a!=null?C(Rt(a),function(i){y_(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){y_(i,t,n)})}Tg(Jg);lh(Jg);function XO(r){return ZO(r.model)}function qO(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&mC(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),KO[l]}var KO={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Bt=Jg;var Tf="\0__throttleOriginMethod",__="\0__throttleRate",S_="\0__throttleType";function jg(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Lo(r,e,t,a){var n=r[e];if(n){var i=n[Tf]||n,o=n[S_],s=n[__];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=jg(i,t,a==="debounce"),n[Tf]=i,n[S_]=a,n[__]=t}return n}}function Js(r,e){var t=r[e];t&&t[Tf]&&(t.clear&&t.clear(),r[e]=t[Tf])}var x_=bt(),w_={itemStyle:ui(wA,!0),lineStyle:ui(xA,!0)},QO={lineStyle:"stroke",itemStyle:"fill"};function _C(r,e){var t=r.visualStyleMapper||w_[e];return t||(console.warn("Unknown style type '"+e+"'."),w_.itemStyle)}function SC(r,e){var t=r.visualDrawType||QO[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=_C(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=SC(r,a),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=B({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},Uo=new Nt,jO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=_C(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Uo.option=l[a];var u=n(Uo),f=o.ensureUniqueItemVisual(s,"style");B(f,u),Uo.option.decal&&(o.setItemVisual(s,"decal",Uo.option.decal),Uo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tN={performRawSeries:!0,overallReset:function(r){var e=X();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),x_(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=x_(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=SC(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",d=a.count();v[l]=t.getColorFromPalette(c,o,d)}})}})}},au=Math.PI;function eN(r,e){e=e||{},j(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new at,a=new wt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new wt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Eg({shape:{startAngle:-au/2,endAngle:-au/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:au*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:au*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var rN=function(){function r(e,t,a,n){this._stageTaskMap=X(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=X();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;C(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";De(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;C(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=X(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Ls({plan:sN,reset:lN,count:fN}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Ls({reset:aN});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=X(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";De(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(h=!1,C(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Ls({reset:nN,onDirty:oN})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:hN(e)}),e.uid=To("stageHandler"),t&&(e.visualType=t),e},r}();function aN(r){r.overallReset(r.ecModel,r.api,r.payload)}function nN(r){return r.overallProgress&&iN}function iN(){this.agent.dirty(),this.getDownstream().dirty()}function oN(){this.agent&&this.agent.dirty()}function sN(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function lN(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Rt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return xC(a)}):uN}var uN=xC(0);function xC(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(t.mainType=d,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),np=["symbol","symbolSize","symbolRotate","symbolOffset"],C_=np.concat(["symbolKeepAspect"]),pN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&Xn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function ip(r,e,t){for(var a=e.type==="radial"?PN(r,e,t):LN(r,e,t),n=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Dt(r)?[r]:z(r)?r:null}function ey(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&EN(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var kN=new Xr(!0);function Df(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function D_(r){return typeof r=="string"&&r!=="none"}function Mf(r){var e=r.fill;return e!=null&&e!=="none"}function M_(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function I_(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function op(r,e,t){var a=Ag(e.image,e.__image,t);if(uh(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Vu),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function ON(r,e,t,a){var n,i=Df(t),o=Mf(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||kN,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=h?ip(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=h?ip(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?op(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?op(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:i=!1)}var b=e.getGlobalScale();f.setScale(b[0],b[1],e.segmentIgnoreThreshold);var T,A;r.setLineDash&&t.lineDash&&(n=ey(e),T=n[0],A=n[1]);var D=!0;(u||h&$i)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),a||(t.strokeFirst?(i&&I_(r,t),o&&M_(r,t)):(o&&M_(r,t),i&&I_(r,t))),T&&r.setLineDash([])}function NN(r,e,t){var a=e.__image=Ag(t.image,e.__image,e,e.onload);if(!(!a||!uh(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function BN(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Xa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=ey(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Df(t)&&r.strokeText(n,t.x,t.y),Mf(t)&&r.fillText(n,t.x,t.y)):(Mf(t)&&r.fillText(n,t.x,t.y),Df(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var L_=["shadowBlur","shadowOffsetX","shadowOffsetY"],P_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function MC(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Oe(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?jn.opacity:o}(a||e.blend!==t.blend)&&(i||(Oe(r,n),i=!0),r.globalCompositeOperation=e.blend||jn.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[ge]){if(this._disposed){this.id;return}var i,o,s;if(tt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ge]=!0,!this._model||a){var l=new jk(this._api),u=this._theme,f=this._model=new ZA;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},lp);var h={seriesTransition:s,optionChanged:!0};if(n)this[Pe]={silent:i,updateParams:h},this[ge]=!1,this.getZr().wakeUp();else{try{Ei(this),Ca.update.call(this,null,h)}catch(v){throw this[Pe]=null,this[ge]=!1,v}this._ssr||this._zr.flush(),this[Pe]=null,this[ge]=!1,Yo.call(this,i),Zo.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||At.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(At.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return C(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;C(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Y_[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();C(Rs,function(_,S){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=qa.createCanvas(),y=qm(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return C(v,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new wt({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),C(v,function(_){var S=new ce({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return Fv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return Fv(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=As(n,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=As(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?ty(s,l,a):wl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(uB,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Zn(s,function(d){var p=it(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),C(Ps,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),C(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),yN(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&ST(this.getDom(),ny,"");var a=this,n=a._api,i=a._model;C(a._componentsViews,function(o){o.dispose(i,n)}),C(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Rs[a.id]},e.prototype.resize=function(t){if(!this[ge]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Pe]&&(i==null&&(i=this[Pe].silent),n=!0,this[Pe]=null),this[ge]=!0;try{n&&Ei(this),Ca.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)})}catch(o){throw this[ge]=!1,o}this[ge]=!1,Yo.call(this,i),Zo.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(tt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!up[t]){var n=up[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=B({},t);return a.type=Ps[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(tt(a)||(a={silent:!!a}),!!If[t.type]&&this._model){if(this[ge]){this._pendingActions.push(t);return}var n=a.silent;Wv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&At.browser.weChat&&this._throttledZrFlush(),Yo.call(this,n),Zo.call(this,n)}},e.prototype.updateLabelLayout=function(){pr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ei=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Gv(h,!0),Gv(h,!1),v.plan()},Gv=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!At.node&&!At.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(to(y))return;if(y instanceof mt&&wE(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}$_=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){ca(d,p),$e(h)},c.prototype.leaveEmphasis=function(d,p){da(d,p),$e(h)},c.prototype.enterBlur=function(d){HT(d),$e(h)},c.prototype.leaveBlur=function(d){Ig(d),$e(h)},c.prototype.enterSelect=function(d){WT(d),$e(h)},c.prototype.leaveSelect=function(d){$T(d),$e(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(XA))(h)},WC=function(h){function v(c,d){for(var p=0;p=0)){Z_.push(t);var i=TC.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function qC(r,e){up[r]=e}function gB(r,e,t){var a=XN("registerMap");a&&a(r,e,t)}var yB=DO;mi(ry,JO);mi(Mh,jO);mi(Mh,tN);mi(ry,pN);mi(Mh,gN);mi(BC,UN);ZC(KA);XC(QN,sO);qC("default",eN);Qr({type:ti,event:ti,update:ti},Zt);Qr({type:Zu,event:Zu,update:Zu},Zt);Qr({type:Cs,event:Cs,update:Cs},Zt);Qr({type:Xu,event:Xu,update:Xu},Zt);Qr({type:Ds,event:Ds,update:Ds},Zt);YC("light",vN);YC("dark",cN);var X_=[],mB={registerPreprocessor:ZC,registerProcessor:XC,registerPostInit:vB,registerPostUpdate:cB,registerUpdateLifecycle:oy,registerAction:Qr,registerCoordinateSystem:dB,registerLayout:pB,registerVisual:mi,registerTransform:yB,registerLoading:qC,registerMap:gB,registerImpl:ZN,PRIORITY:oB,ComponentModel:Tt,ComponentView:Wt,SeriesModel:Gt,ChartView:Bt,registerComponentModel:function(r){Tt.registerClass(r)},registerComponentView:function(r){Wt.registerClass(r)},registerSeriesModel:function(r){Gt.registerClass(r)},registerChartView:function(r){Bt.registerClass(r)},registerSubTypeDefaulter:function(r,e){Tt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){HP(r,e)}};function yt(r){if(z(r)){C(r,function(e){yt(e)});return}ct(X_,r)>=0||(X_.push(r),K(r)&&(r={install:r}),r.install(mB))}function Xo(r){return r==null?0:r.length||1}function q_(r){return r}var _B=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||q_,this._newKeyGetter=n||q_,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var qo=tt,Da=G,CB=typeof Int32Array>"u"?Array:Int32Array,DB="e\0\0",K_=-1,MB=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],IB=["_approximateExtent"],Q_,lu,Ko,Qo,Yv,uu,Zv,LB=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;QC(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===ur;if(l&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),z(i)?i=i.slice():qo(i)&&(i=B({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,qo(t)?B(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){qo(e)?B(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?B(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Fd(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Da(this.dimensions,this._getDimInfo,this),this.hostModel)),Yv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];K(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(vg(arguments)))})},r.internalField=function(){Q_=function(e){var t=e._invertedIndicesMap;C(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new CB(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}();const Ce=LB;function bl(r,e){Yg(r)||(r=Zg(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=X(),i=[],o=RB(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&tD(o),l=a===r.dimensionsDefine,u=l?jC(r):JC(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=X(f),v=new sC(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function RB(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return C(e,function(i){var o;tt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function EB(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var kB=function(){function r(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return r}();function OB(r){var e=r.get("coordinateSystem"),t=new kB(e),a=NB[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var NB={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Kt).models[0],i=r.getReferringComponents("yAxis",Kt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),ki(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),ki(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Kt).models[0];e.coordSysDims=["single"],t.set("single",n),ki(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Kt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),ki(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),ki(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),ki(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function ki(r){return r.get("type")==="category"}function BB(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;VB(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(C(i,function(m,_){$(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;C(i,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function VB(r){return!QC(r.schema)}function ja(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function eD(r,e){return ja(r,e)?r.getCalculationInfo("stackResultDimension"):e}function zB(r,e){var t=r.get("coordinateSystem"),a=xl.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Pf(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function GB(r,e,t){var a,n;return t&&C(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function _a(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Zg(r)):(n=a.getSource(),i=n.sourceFormat===ur);var o=OB(e),s=zB(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?ot(HA,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=bl(n,f),v=GB(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),d=BB(e,{schema:h,store:c}),p=new Ce(h,e);p.setCalculationInfo(d);var g=v!=null&&FB(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:c,null,g),p}function FB(r){if(r.sourceFormat===ur){var e=HB(r.data||[]);return!z(_o(e))}}function HB(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();lh(rD);const Sa=rD;var WB=0,$B=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WB}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,UB);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!$(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},r}();function UB(r){return tt(r)&&r.value!=null?r.value:r+""}const fp=$B;function hp(r){return r.type==="interval"||r.type==="log"}function YB(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=vT(i/e,!0);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=aD(o),l=n.niceTickExtent=[Ut(Math.ceil(r[0]/o)*o,s),Ut(Math.floor(r[1]/o)*o,s)];return ZB(l,r),n}function Xv(r){var e=Math.pow(10,xg(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ut(t*e)}function aD(r){return Vr(r)+2}function J_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function ZB(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),J_(r,0,e),J_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ih(r,e){return r>=e[0]&&r<=e[1]}function Lh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Ph(r,e){return r*(e[1]-e[0])+e[0]}var nD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new fp({})),z(n)&&(n=new fp({categories:G(n,function(i){return tt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ih(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Lh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Ph(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Sa);Sa.registerClass(nD);const ly=nD;var Dn=Ut,iD=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ih(t,this._extent)},e.prototype.normalize=function(t){return Lh(t,this._extent)},e.prototype.scale=function(t){return Ph(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=aD(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:Dn(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function lD(r){var e=KB(r),t=[];return C(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=H(a.get("barWidth"),s),p=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(cD(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:fy(i),stackId:uy(a)})}),uD(t)}function uD(r){var e={};C(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=_t(i).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),C(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;C(i,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;C(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function QB(r,e,t){if(r&&e){var a=r[fy(e)];return a!=null&&t!=null?a[uy(t)]:a}}function fD(r,e){var t=sD(r,e),a=lD(t);C(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=uy(n),u=a[fy(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function hD(r){return{seriesType:r,plan:Io(),reset:function(e){if(vD(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=ja(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=JB(n,i),d=cD(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Gr(w*3),b=d&&l&&Gr(w*3),T=d&&Gr(w),A=a.master.getRect(),D=v?A.width:A.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?g:o,M),R=I.get(s,M),E=c,N=void 0;h&&(N=+P-I.get(o,M));var O=void 0,V=void 0,F=void 0,W=void 0;if(v){var Z=a.dataToPoint([P,R]);if(h){var Q=a.dataToPoint([N,R]);E=Q[0]}O=E,V=Z[1]+m,F=Z[0]-E,W=y,Math.abs(F)>>1;r[n][1]n&&(this._approxInterval=n);var s=fu.length,l=Math.min(jB(fu,this._approxInterval,0,s),s-1);this._interval=fu[l][1],this._minLevelUnit=fu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Dt(t)?t:+Zr(t)},e.prototype.contain=function(t){return Ih(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Lh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Ph(t,this._extent)},e.type="time",e}(tn),fu=[["second",zg],["minute",Gg],["hour",Is],["quarter-day",Is*6],["half-day",Is*12],["day",rr*1.2],["half-week",rr*3.5],["week",rr*7],["month",rr*31],["quarter",rr*95],["half-year",F0/2],["year",F0]];function tV(r,e,t,a){var n=Zr(e),i=Zr(t),o=function(d){return W0(n,d,a)===W0(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function eV(r,e){return r/=rr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function rV(r){var e=30*rr;return r/=e,r>6?6:r>3?3:r>2?2:1}function aV(r){return r/=Is,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function j_(r,e){return r/=e?Gg:zg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function nV(r){return vT(r,!0)}function iV(r,e,t){var a=new Date(r);switch(eo(e)){case"year":case"month":a[DA(t)](0);case"day":a[MA(t)](1);case"hour":a[IA(t)](0);case"minute":a[LA(t)](0);case"second":a[PA(t)](0),a[RA(t)](0)}return a.getTime()}function oV(r,e,t,a){var n=1e4,i=AA,o=0;function s(D,M,I,L,P,R,E){for(var N=new Date(M),O=M,V=N[L]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Pt(G(u,function(D){return Pt(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),w=[],x=S.length-1,c=0;c0;)i*=10;var s=[Ut(uV(a[0]/i)*i),Ut(lV(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Es.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=vr(t)/vr(this.base),Ih(t,this._extent)},e.prototype.normalize=function(t){return t=vr(t)/vr(this.base),Lh(t,this._extent)},e.prototype.scale=function(t){return t=Ph(t,this._extent),hu(this.base,t)},e.type="log",e}(Sa),gD=hy.prototype;gD.getMinorTicks=Es.getMinorTicks;gD.getLabel=Es.getLabel;function vu(r,e){return sV(r,Vr(e))}Sa.registerClass(hy);const fV=hy;var hV=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[cV[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=vV[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),vV={min:"_determinedMin",max:"_determinedMax"},cV={min:"_dataMin",max:"_dataMax"};function yD(r,e,t){var a=r.rawExtentInfo;return a||(a=new hV(r,e,t),r.rawExtentInfo=a,a)}function cu(r,e){return e==null?null:zs(e)?NaN:r.parse(e)}function mD(r,e){var t=r.type,a=yD(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=sD("bar",o),l=!1;if(C(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=lD(s),f=dV(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function dV(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=QB(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;C(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;C(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function lo(r,e){var t=e,a=mD(r,t),n=a.extent,i=t.get("splitNumber");r instanceof fV&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Rh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new ly({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new pD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Sa.getClass(e)||tn)}}function pV(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Tl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):$(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(e):K(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(vy(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function vy(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function gV(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof ly?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Tl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var Al=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),_V=1e-8;function e1(r,e){return Math.abs(r-e)<_V}function zn(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;in&&(a=o,n=l)}if(a)return xV(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?r1(s.exterior,n,i,t):C(s.points,function(l){r1(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function TV(r,e){return r=bV(r),G(Pt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new a1(o[0],o.slice(1)));break;case"MultiPolygon":C(n.coordinates,function(l){l[0]&&i.push(new a1(l[0],l.slice(1)))});break;case"LineString":i.push(new n1([n.coordinates]));break;case"MultiLineString":i.push(new n1(n.coordinates))}var s=new xD(a[e||"name"],i,a.cp);return s.properties=a,s})}var el=bt();function AV(r){return r.type==="category"?DV(r):IV(r)}function CV(r,e){return r.type==="category"?MV(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function DV(r){var e=r.getLabelModel(),t=bD(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function bD(r,e){var t=TD(r,"labels"),a=cy(e),n=AD(t,a);if(n)return n;var i,o;return K(a)?i=MD(r,a):(o=a==="auto"?LV(r):a,i=DD(r,o)),CD(t,a,{labels:i,labelCategoryInterval:o})}function MV(r,e){var t=TD(r,"ticks"),a=cy(e),n=AD(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),K(a))i=MD(r,a,!0);else if(a==="auto"){var s=bD(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=DD(r,o,!0);return CD(t,a,{ticks:i,tickCategoryInterval:o})}function IV(r){var e=r.scale.getTicks(),t=Tl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function TD(r,e){return el(r)[e]||(el(r)[e]=[])}function AD(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d=0,p=0,g=pl(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=el(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function RV(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function DD(r,e,t){var a=Tl(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=_D(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function MD(r,e,t){var a=r.scale,n=Tl(r),i=[];return C(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var i1=[0,1],EV=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return fT(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),o1(a,n.count())),Lt(e,i1,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),o1(a,n.count()));var i=Lt(e,a,i1,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=CV(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kV(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return AV(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return PV(this)},r}();function o1(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function kV(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;C(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,d){return c=Ut(c),d=Ut(d),h?c>d:cn&&(n+=Jo);var c=Math.atan2(s,o);if(c<0&&(c+=Jo),c>=a&&c<=n||c+Jo>=a&&c+Jo<=n)return l[0]=f,l[1]=h,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Ef(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=e+d*h;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function ID(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var gr=[];function VV(r,e,t){var a=ID(e.x,e.y,e.width,e.height,r.x,r.y,gr);return t.set(gr[0],gr[1]),a}function zV(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,_r.fromArray(r[0]),kt.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Fr,_r,kt),ut.sub(Br,Yt,kt);var t=Fr.len(),a=Br.len();if(!(t<.001||a<.001)){Fr.scale(1/t),Br.scale(1/a);var n=Fr.dot(Br),i=Math.cos(e);if(i1&&ut.copy(Te,Yt),Te.toArray(r[1])}}}}function GV(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,_r.fromArray(r[0]),kt.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Fr,kt,_r),ut.sub(Br,Yt,kt);var a=Fr.len(),n=Br.len();if(!(a<.001||n<.001)){Fr.scale(1/a),Br.scale(1/n);var i=Fr.dot(e),o=Math.cos(t);if(i=l)ut.copy(Te,Yt);else{Te.scaleAndAdd(Br,s/Math.tan(Math.PI/2-f));var h=Yt.x!==kt.x?(Te.x-kt.x)/(Yt.x-kt.x):(Te.y-kt.y)/(Yt.y-kt.y);if(isNaN(h))return;h<0?ut.copy(Te,kt):h>1&&ut.copy(Te,Yt)}Te.toArray(r[1])}}}}function l1(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function FV(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Oa(a[0],a[1]),i=Oa(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=Gu([],a[1],a[0],o/n),l=Gu([],a[1],a[2],o/i),u=Gu([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&w(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=p.rect[e]-a,m=n-g.rect[e]-g.rect[t]}function S(T,A,D){if(T<0){var M=Math.min(A,-T);if(M>0){w(M*D,0,o);var I=M+T;I<0&&x(-I*D,1)}else x(-T*D,1)}}function w(T,A,D){T!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var E=D[I-1]*R;w(-E,I,o)}}}function b(T){var A=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M0?w(D,0,M+1):w(-D,o-M-1,o),T-=D,T<=0)return}return u}function HV(r,e,t,a){return RD(r,"x","width",e,t,a)}function ED(r,e,t,a){return RD(r,"y","height",e,t,a)}function kD(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new vt(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),ct(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Mt(a,u,t,l)}else if(a.attr(u),!bo(a).valueAnimation){var h=ft(a.style.opacity,1);a.style.opacity=0,Vt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};du(c,u,pu),du(c,a.states.select,pu)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};du(d,u,pu),du(d,a.states.emphasis,pu)}SA(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=UV(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Mt(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Vt(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r}();const ZV=YV;var Jv=bt();function XV(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Jv(t).labelManager;n||(n=Jv(t).labelManager=new ZV),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Jv(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var jv=Math.sin,tc=Math.cos,OD=Math.PI,In=Math.PI*2,qV=180/OD,KV=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=Ga(h-In)||(f?u>=In:-u>=In),c=u>0?u%In:u%In+In,d=!1;v?d=!0:Ga(h)?d=!1:d=c>=OD==!!f;var p=e+a*tc(o),g=t+n*jv(o);this._start&&this._add("M",p,g);var y=Math.round(i*qV);if(v){var m=1/this._p,_=(f?1:-1)*(In-m);this._add("A",a,n,y,1,+f,e+a*tc(o+_),t+n*jv(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=e+a*tc(s),w=t+n*jv(s);this._add("A",a,n,y,+d,+f,S,w)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function iz(r){return""}function gy(r,e){e=e||{};var t=e.newline?` +`];function ne(r,e){return e.type=r,e}function rp(r){return r.type==="section"}function cC(r){return rp(r)?OO:NO}function dC(r){if(rp(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return C(r.blocks,function(n){var i=dC(n);i>=e&&(e=i+ +(a&&(!i||rp(n)&&!n.noHeader)))}),e}return 0}function OO(r,e,t,a){var n=e.noHeader,i=BO(dC(e)),o=[],s=e.blocks||[];De(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Y(u,l)){var f=new oC(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(d,p){var g=e.valueFormatter,y=cC(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):ap(o.join(""),n?t:i.html);if(n)return h;var v=Qd(e.header,"ordinal",r.useUTC),c=vC(a,r.renderMode).nameStyle;return r.renderMode==="richText"?pC(r,v,c)+i.richText+h:ap('
'+Re(v)+"
"+h,t)}function NO(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(w,x){return Qd(w,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Qd(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value),p=!s||!i,g=!s&&i,y=vC(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":pC(r,v,m))+(o?"":GO(r,d,p,g,_)):ap((s?"":h)+(i?"":VO(v,!s,m))+(o?"":zO(d,p,g,_)),t)}}function p_(r,e,t,a,n,i){if(r){var o=cC(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function BO(r){return{html:EO[r],richText:kO[r]}}function ap(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function VO(r,e,t){var a=e?"margin-left:2px":"";return''+Re(r)+""}function zO(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+G(r,function(o){return Re(o)}).join("  ")+""}function pC(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function GO(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function gC(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return hi(a)}function yC(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Bv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=pT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=Mk({color:t,type:e,renderMode:a,markerId:n});return $(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?C(t,function(i){return B(a,i)}):B(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function mC(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=gC(e,t),f,h,v,c;if(o>1||l&&!o){var d=FO(s,e,t,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);c=f=so(n,t,i[0]),h=p.type}else c=f=l?s[0]:s;var g=bg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return ne("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ne("nameValue",{markerType:"item",markerColor:u,name:_,noName:!yr(_),value:f,valueType:h})].concat(v||[])})}function FO(r,e,t,a,n){var i=e.getData(),o=$r(r,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?C(a,function(h){f(so(i,t,h),h)}):C(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(ne("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Aa=bt();function au(r,e){return r.getName(e)||r.getId(e)}var ju="__universalTransitionEnabled",Mh=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ps({count:WO,reset:$O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Aa(this).sourceManager=new fC(this);i.prepareSource();var o=this.getInitialData(t,n);y_(o,this),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,g_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Qs(this),i=n?Do(t):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),ht(t,a.getTheme().get(this.subType)),ht(t,this.getDefaultOption()),si(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ja(t,i,n)},e.prototype.mergeOption=function(t,a){t=ht(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Qs(this);n&&Ja(this.option,t,n);var i=Aa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);y_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,g_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!We(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Yg.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[au(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[ju])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return Tt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Tt);Jt(Mh,Kg);Jt(Mh,Yg);TT(Mh,Tt);function g_(r){var e=r.name;bg(r)||(r.name=HO(r)||e)}function HO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return C(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function WO(r){return r.model.getRawData().count()}function $O(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),UO}function UO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function y_(r,e){C(lf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ot(YO,e))})}function YO(r,e){var t=np(r);return t&&t.setOutputEnd((e||this).count()),e}function np(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const Gt=Mh;var Jg=function(){function r(){this.group=new at,this.uid=Ao("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Ag(Jg);uh(Jg);const Wt=Jg;function Lo(){var r=bt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var _C=bt(),ZO=Lo(),jg=function(){function r(){this.group=new at,this.uid=Ao("viewChart"),this.renderTask=Ps({plan:XO,reset:qO}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&__(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&__(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){on(this.group,e)},r.markUpdateMethod=function(e,t){_C(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function m_(r,e,t){r&&Zs(r)&&(e==="emphasis"?ca:da)(r,t)}function __(r,e,t){var a=li(r,e),n=e&&e.highlightKey!=null?xE(e.highlightKey):null;a!=null?C(Rt(a),function(i){m_(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){m_(i,t,n)})}Ag(jg);uh(jg);function XO(r){return ZO(r.model)}function qO(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&_C(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),KO[l]}var KO={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Bt=jg;var Af="\0__throttleOriginMethod",S_="\0__throttleRate",x_="\0__throttleType";function ty(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Po(r,e,t,a){var n=r[e];if(n){var i=n[Af]||n,o=n[x_],s=n[S_];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=ty(i,t,a==="debounce"),n[Af]=i,n[x_]=a,n[S_]=t}return n}}function js(r,e){var t=r[e];t&&t[Af]&&(t.clear&&t.clear(),r[e]=t[Af])}var w_=bt(),b_={itemStyle:ui(bA,!0),lineStyle:ui(wA,!0)},QO={lineStyle:"stroke",itemStyle:"fill"};function SC(r,e){var t=r.visualStyleMapper||b_[e];return t||(console.warn("Unknown style type '"+e+"'."),b_.itemStyle)}function xC(r,e){var t=r.visualDrawType||QO[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=SC(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=xC(r,a),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=B({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},Yo=new Nt,jO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=SC(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Yo.option=l[a];var u=n(Yo),f=o.ensureUniqueItemVisual(s,"style");B(f,u),Yo.option.decal&&(o.setItemVisual(s,"decal",Yo.option.decal),Yo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tN={performRawSeries:!0,overallReset:function(r){var e=X();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),w_(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=w_(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=xC(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",d=a.count();v[l]=t.getColorFromPalette(c,o,d)}})}})}},nu=Math.PI;function eN(r,e){e=e||{},j(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new at,a=new wt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new wt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new kg({shape:{startAngle:-nu/2,endAngle:-nu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:nu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:nu*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var rN=function(){function r(e,t,a,n){this._stageTaskMap=X(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=X();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;C(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";De(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;C(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=X(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Ps({plan:sN,reset:lN,count:fN}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Ps({reset:aN});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=X(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";De(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(h=!1,C(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Ps({reset:nN,onDirty:oN})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:hN(e)}),e.uid=Ao("stageHandler"),t&&(e.visualType=t),e},r}();function aN(r){r.overallReset(r.ecModel,r.api,r.payload)}function nN(r){return r.overallProgress&&iN}function iN(){this.agent.dirty(),this.getDownstream().dirty()}function oN(){this.agent&&this.agent.dirty()}function sN(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function lN(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Rt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return wC(a)}):uN}var uN=wC(0);function wC(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(t.mainType=d,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ip=["symbol","symbolSize","symbolRotate","symbolOffset"],D_=ip.concat(["symbolKeepAspect"]),pN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o=0&&Xn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function op(r,e,t){for(var a=e.type==="radial"?PN(r,e,t):LN(r,e,t),n=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Dt(r)?[r]:z(r)?r:null}function ry(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&EN(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var kN=new Xr(!0);function Mf(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function M_(r){return typeof r=="string"&&r!=="none"}function If(r){var e=r.fill;return e!=null&&e!=="none"}function I_(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function L_(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function sp(r,e,t){var a=Cg(e.image,e.__image,t);if(fh(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*zu),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function ON(r,e,t,a){var n,i=Mf(t),o=If(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||kN,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=h?op(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=h?op(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?sp(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?sp(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:i=!1)}var b=e.getGlobalScale();f.setScale(b[0],b[1],e.segmentIgnoreThreshold);var T,A;r.setLineDash&&t.lineDash&&(n=ry(e),T=n[0],A=n[1]);var D=!0;(u||h&Ui)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),a||(t.strokeFirst?(i&&L_(r,t),o&&I_(r,t)):(o&&I_(r,t),i&&L_(r,t))),T&&r.setLineDash([])}function NN(r,e,t){var a=e.__image=Cg(t.image,e.__image,e,e.onload);if(!(!a||!fh(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function BN(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||Xa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=ry(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Mf(t)&&r.strokeText(n,t.x,t.y),If(t)&&r.fillText(n,t.x,t.y)):(If(t)&&r.fillText(n,t.x,t.y),Mf(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var P_=["shadowBlur","shadowOffsetX","shadowOffsetY"],R_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IC(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Oe(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?jn.opacity:o}(a||e.blend!==t.blend)&&(i||(Oe(r,n),i=!0),r.globalCompositeOperation=e.blend||jn.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[ge]){if(this._disposed){this.id;return}var i,o,s;if(tt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ge]=!0,!this._model||a){var l=new jk(this._api),u=this._theme,f=this._model=new XA;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},up);var h={seriesTransition:s,optionChanged:!0};if(n)this[Pe]={silent:i,updateParams:h},this[ge]=!1,this.getZr().wakeUp();else{try{ki(this),Ca.update.call(this,null,h)}catch(v){throw this[Pe]=null,this[ge]=!1,v}this._ssr||this._zr.flush(),this[Pe]=null,this[ge]=!1,Zo.call(this,i),Xo.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||At.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(At.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return C(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;C(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Z_[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();C(Es,function(_,S){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=qa.createCanvas(),y=Km(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return C(v,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new wt({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),C(v,function(_){var S=new ce({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return Hv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return Hv(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Cs(n,t);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Cs(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?ey(s,l,a):bl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(uB,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Zn(s,function(d){var p=it(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),C(Rs,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),C(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),yN(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&xT(this.getDom(),iy,"");var a=this,n=a._api,i=a._model;C(a._componentsViews,function(o){o.dispose(i,n)}),C(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Es[a.id]},e.prototype.resize=function(t){if(!this[ge]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Pe]&&(i==null&&(i=this[Pe].silent),n=!0,this[Pe]=null),this[ge]=!0;try{n&&ki(this),Ca.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)})}catch(o){throw this[ge]=!1,o}this[ge]=!1,Zo.call(this,i),Xo.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(tt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!fp[t]){var n=fp[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=B({},t);return a.type=Rs[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(tt(a)||(a={silent:!!a}),!!Lf[t.type]&&this._model){if(this[ge]){this._pendingActions.push(t);return}var n=a.silent;$v.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&At.browser.weChat&&this._throttledZrFlush(),Zo.call(this,n),Xo.call(this,n)}},e.prototype.updateLabelLayout=function(){pr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ki=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Fv(h,!0),Fv(h,!1),v.plan()},Fv=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!At.node&&!At.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(eo(y))return;if(y instanceof mt&&wE(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}U_=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){ca(d,p),$e(h)},c.prototype.leaveEmphasis=function(d,p){da(d,p),$e(h)},c.prototype.enterBlur=function(d){WT(d),$e(h)},c.prototype.leaveBlur=function(d){Lg(d),$e(h)},c.prototype.enterSelect=function(d){$T(d),$e(h)},c.prototype.leaveSelect=function(d){UT(d),$e(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(qA))(h)},$C=function(h){function v(c,d){for(var p=0;p=0)){X_.push(t);var i=AC.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function KC(r,e){fp[r]=e}function gB(r,e,t){var a=XN("registerMap");a&&a(r,e,t)}var yB=DO;_i(ay,JO);_i(Ih,jO);_i(Ih,tN);_i(ay,pN);_i(Ih,gN);_i(VC,UN);XC(QA);qC(QN,sO);KC("default",eN);Qr({type:ti,event:ti,update:ti},Zt);Qr({type:Xu,event:Xu,update:Xu},Zt);Qr({type:Ds,event:Ds,update:Ds},Zt);Qr({type:qu,event:qu,update:qu},Zt);Qr({type:Ms,event:Ms,update:Ms},Zt);ZC("light",vN);ZC("dark",cN);var q_=[],mB={registerPreprocessor:XC,registerProcessor:qC,registerPostInit:vB,registerPostUpdate:cB,registerUpdateLifecycle:sy,registerAction:Qr,registerCoordinateSystem:dB,registerLayout:pB,registerVisual:_i,registerTransform:yB,registerLoading:KC,registerMap:gB,registerImpl:ZN,PRIORITY:oB,ComponentModel:Tt,ComponentView:Wt,SeriesModel:Gt,ChartView:Bt,registerComponentModel:function(r){Tt.registerClass(r)},registerComponentView:function(r){Wt.registerClass(r)},registerSeriesModel:function(r){Gt.registerClass(r)},registerChartView:function(r){Bt.registerClass(r)},registerSubTypeDefaulter:function(r,e){Tt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){HP(r,e)}};function yt(r){if(z(r)){C(r,function(e){yt(e)});return}ct(q_,r)>=0||(q_.push(r),K(r)&&(r={install:r}),r.install(mB))}function qo(r){return r==null?0:r.length||1}function K_(r){return r}var _B=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||K_,this._newKeyGetter=n||K_,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Ko=tt,Da=G,CB=typeof Int32Array>"u"?Array:Int32Array,DB="e\0\0",Q_=-1,MB=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],IB=["_approximateExtent"],J_,uu,Qo,Jo,Zv,fu,Xv,LB=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;JC(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===ur;if(l&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),z(i)?i=i.slice():Ko(i)&&(i=B({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Ko(t)?B(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ko(e)?B(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?B(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Hd(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Da(this.dimensions,this._getDimInfo,this),this.hostModel)),Zv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];K(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(cg(arguments)))})},r.internalField=function(){J_=function(e){var t=e._invertedIndicesMap;C(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new CB(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}}}(),r}();const Ce=LB;function Tl(r,e){Zg(r)||(r=Xg(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=X(),i=[],o=RB(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&eD(o),l=a===r.dimensionsDefine,u=l?tD(r):jC(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=X(f),v=new lC(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function RB(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return C(e,function(i){var o;tt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function EB(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var kB=function(){function r(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return r}();function OB(r){var e=r.get("coordinateSystem"),t=new kB(e),a=NB[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var NB={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Kt).models[0],i=r.getReferringComponents("yAxis",Kt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Oi(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Oi(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Kt).models[0];e.coordSysDims=["single"],t.set("single",n),Oi(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Kt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Oi(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Oi(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();C(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Oi(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Oi(r){return r.get("type")==="category"}function BB(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;VB(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(C(i,function(m,_){$(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;C(i,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function VB(r){return!JC(r.schema)}function ja(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function rD(r,e){return ja(r,e)?r.getCalculationInfo("stackResultDimension"):e}function zB(r,e){var t=r.get("coordinateSystem"),a=wl.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Rf(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function GB(r,e,t){var a,n;return t&&C(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function _a(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Xg(r)):(n=a.getSource(),i=n.sourceFormat===ur);var o=OB(e),s=zB(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?ot(WA,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=Tl(n,f),v=GB(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),d=BB(e,{schema:h,store:c}),p=new Ce(h,e);p.setCalculationInfo(d);var g=v!=null&&FB(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:c,null,g),p}function FB(r){if(r.sourceFormat===ur){var e=HB(r.data||[]);return!z(So(e))}}function HB(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();uh(aD);const Sa=aD;var WB=0,$B=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WB}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,UB);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!$(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},r}();function UB(r){return tt(r)&&r.value!=null?r.value:r+""}const hp=$B;function vp(r){return r.type==="interval"||r.type==="log"}function YB(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=cT(i/e,!0);t!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=nD(o),l=n.niceTickExtent=[Ut(Math.ceil(r[0]/o)*o,s),Ut(Math.floor(r[1]/o)*o,s)];return ZB(l,r),n}function qv(r){var e=Math.pow(10,wg(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ut(t*e)}function nD(r){return Vr(r)+2}function j_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function ZB(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),j_(r,0,e),j_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Lh(r,e){return r>=e[0]&&r<=e[1]}function Ph(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Rh(r,e){return r*(e[1]-e[0])+e[0]}var iD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new hp({})),z(n)&&(n=new hp({categories:G(n,function(i){return tt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Lh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Ph(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Rh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Sa);Sa.registerClass(iD);const uy=iD;var Dn=Ut,oD=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Lh(t,this._extent)},e.prototype.normalize=function(t){return Ph(t,this._extent)},e.prototype.scale=function(t){return Rh(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=nD(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(t?s.push({value:Dn(f+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function uD(r){var e=KB(r),t=[];return C(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=H(a.get("barWidth"),s),p=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(dD(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:hy(i),stackId:fy(a)})}),fD(t)}function fD(r){var e={};C(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=_t(i).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),C(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;C(i,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;C(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function QB(r,e,t){if(r&&e){var a=r[hy(e)];return a!=null&&t!=null?a[fy(t)]:a}}function hD(r,e){var t=lD(r,e),a=uD(t);C(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=fy(n),u=a[hy(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function vD(r){return{seriesType:r,plan:Lo(),reset:function(e){if(cD(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=ja(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=JB(n,i),d=dD(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Gr(w*3),b=d&&l&&Gr(w*3),T=d&&Gr(w),A=a.master.getRect(),D=v?A.width:A.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?g:o,M),R=I.get(s,M),E=c,N=void 0;h&&(N=+P-I.get(o,M));var O=void 0,V=void 0,F=void 0,W=void 0;if(v){var Z=a.dataToPoint([P,R]);if(h){var Q=a.dataToPoint([N,R]);E=Q[0]}O=E,V=Z[1]+m,F=Z[0]-E,W=y,Math.abs(F)>>1;r[n][1]n&&(this._approxInterval=n);var s=hu.length,l=Math.min(jB(hu,this._approxInterval,0,s),s-1);this._interval=hu[l][1],this._minLevelUnit=hu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Dt(t)?t:+Zr(t)},e.prototype.contain=function(t){return Lh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Ph(this.parse(t),this._extent)},e.prototype.scale=function(t){return Rh(t,this._extent)},e.type="time",e}(tn),hu=[["second",Gg],["minute",Fg],["hour",Ls],["quarter-day",Ls*6],["half-day",Ls*12],["day",rr*1.2],["half-week",rr*3.5],["week",rr*7],["month",rr*31],["quarter",rr*95],["half-year",H0/2],["year",H0]];function tV(r,e,t,a){var n=Zr(e),i=Zr(t),o=function(d){return $0(n,d,a)===$0(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function eV(r,e){return r/=rr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function rV(r){var e=30*rr;return r/=e,r>6?6:r>3?3:r>2?2:1}function aV(r){return r/=Ls,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function t1(r,e){return r/=e?Fg:Gg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function nV(r){return cT(r,!0)}function iV(r,e,t){var a=new Date(r);switch(ro(e)){case"year":case"month":a[MA(t)](0);case"day":a[IA(t)](1);case"hour":a[LA(t)](0);case"minute":a[PA(t)](0);case"second":a[RA(t)](0),a[EA(t)](0)}return a.getTime()}function oV(r,e,t,a){var n=1e4,i=CA,o=0;function s(D,M,I,L,P,R,E){for(var N=new Date(M),O=M,V=N[L]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=Pt(G(u,function(D){return Pt(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),w=[],x=S.length-1,c=0;c0;)i*=10;var s=[Ut(uV(a[0]/i)*i),Ut(lV(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){ks.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=vr(t)/vr(this.base),Lh(t,this._extent)},e.prototype.normalize=function(t){return t=vr(t)/vr(this.base),Ph(t,this._extent)},e.prototype.scale=function(t){return t=Rh(t,this._extent),vu(this.base,t)},e.type="log",e}(Sa),yD=vy.prototype;yD.getMinorTicks=ks.getMinorTicks;yD.getLabel=ks.getLabel;function cu(r,e){return sV(r,Vr(e))}Sa.registerClass(vy);const fV=vy;var hV=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[cV[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=vV[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),vV={min:"_determinedMin",max:"_determinedMax"},cV={min:"_dataMin",max:"_dataMax"};function mD(r,e,t){var a=r.rawExtentInfo;return a||(a=new hV(r,e,t),r.rawExtentInfo=a,a)}function du(r,e){return e==null?null:Gs(e)?NaN:r.parse(e)}function _D(r,e){var t=r.type,a=mD(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=lD("bar",o),l=!1;if(C(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=uD(s),f=dV(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function dV(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=QB(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;C(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;C(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function uo(r,e){var t=e,a=_D(r,t),n=a.extent,i=t.get("splitNumber");r instanceof fV&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Eh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new uy({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new gD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Sa.getClass(e)||tn)}}function pV(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Al(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(e):$(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(e):K(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(cy(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function cy(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function gV(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof uy?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Al(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var Cl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),_V=1e-8;function r1(r,e){return Math.abs(r-e)<_V}function zn(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;in&&(a=o,n=l)}if(a)return xV(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?a1(s.exterior,n,i,t):C(s.points,function(l){a1(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function TV(r,e){return r=bV(r),G(Pt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new n1(o[0],o.slice(1)));break;case"MultiPolygon":C(n.coordinates,function(l){l[0]&&i.push(new n1(l[0],l.slice(1)))});break;case"LineString":i.push(new i1([n.coordinates]));break;case"MultiLineString":i.push(new i1(n.coordinates))}var s=new wD(a[e||"name"],i,a.cp);return s.properties=a,s})}var rl=bt();function AV(r){return r.type==="category"?DV(r):IV(r)}function CV(r,e){return r.type==="category"?MV(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function DV(r){var e=r.getLabelModel(),t=TD(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function TD(r,e){var t=AD(r,"labels"),a=dy(e),n=CD(t,a);if(n)return n;var i,o;return K(a)?i=ID(r,a):(o=a==="auto"?LV(r):a,i=MD(r,o)),DD(t,a,{labels:i,labelCategoryInterval:o})}function MV(r,e){var t=AD(r,"ticks"),a=dy(e),n=CD(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),K(a))i=ID(r,a,!0);else if(a==="auto"){var s=TD(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=MD(r,o,!0);return DD(t,a,{ticks:i,tickCategoryInterval:o})}function IV(r){var e=r.scale.getTicks(),t=Al(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function AD(r,e){return rl(r)[e]||(rl(r)[e]=[])}function CD(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d=0,p=0,g=gl(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=rl(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function RV(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function MD(r,e,t){var a=Al(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=SD(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function ID(r,e,t){var a=r.scale,n=Al(r),i=[];return C(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var o1=[0,1],EV=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return hT(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),s1(a,n.count())),Lt(e,o1,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),s1(a,n.count()));var i=Lt(e,a,o1,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=CV(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kV(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return AV(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return PV(this)},r}();function s1(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function kV(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;C(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(c,d){return c=Ut(c),d=Ut(d),h?c>d:cn&&(n+=jo);var c=Math.atan2(s,o);if(c<0&&(c+=jo),c>=a&&c<=n||c+jo>=a&&c+jo<=n)return l[0]=f,l[1]=h,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function kf(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=e+d*h;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function LD(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var gr=[];function VV(r,e,t){var a=LD(e.x,e.y,e.width,e.height,r.x,r.y,gr);return t.set(gr[0],gr[1]),a}function zV(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,_r.fromArray(r[0]),kt.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Fr,_r,kt),ut.sub(Br,Yt,kt);var t=Fr.len(),a=Br.len();if(!(t<.001||a<.001)){Fr.scale(1/t),Br.scale(1/a);var n=Fr.dot(Br),i=Math.cos(e);if(i1&&ut.copy(Te,Yt),Te.toArray(r[1])}}}}function GV(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,_r.fromArray(r[0]),kt.fromArray(r[1]),Yt.fromArray(r[2]),ut.sub(Fr,kt,_r),ut.sub(Br,Yt,kt);var a=Fr.len(),n=Br.len();if(!(a<.001||n<.001)){Fr.scale(1/a),Br.scale(1/n);var i=Fr.dot(e),o=Math.cos(t);if(i=l)ut.copy(Te,Yt);else{Te.scaleAndAdd(Br,s/Math.tan(Math.PI/2-f));var h=Yt.x!==kt.x?(Te.x-kt.x)/(Yt.x-kt.x):(Te.y-kt.y)/(Yt.y-kt.y);if(isNaN(h))return;h<0?ut.copy(Te,kt):h>1&&ut.copy(Te,Yt)}Te.toArray(r[1])}}}}function u1(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function FV(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=Oa(a[0],a[1]),i=Oa(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=Fu([],a[1],a[0],o/n),l=Fu([],a[1],a[2],o/i),u=Fu([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&w(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=p.rect[e]-a,m=n-g.rect[e]-g.rect[t]}function S(T,A,D){if(T<0){var M=Math.min(A,-T);if(M>0){w(M*D,0,o);var I=M+T;I<0&&x(-I*D,1)}else x(-T*D,1)}}function w(T,A,D){T!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var E=D[I-1]*R;w(-E,I,o)}}}function b(T){var A=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M0?w(D,0,M+1):w(-D,o-M-1,o),T-=D,T<=0)return}return u}function HV(r,e,t,a){return ED(r,"x","width",e,t,a)}function kD(r,e,t,a){return ED(r,"y","height",e,t,a)}function OD(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new vt(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),ct(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Mt(a,u,t,l)}else if(a.attr(u),!To(a).valueAnimation){var h=ft(a.style.opacity,1);a.style.opacity=0,Vt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};pu(c,u,gu),pu(c,a.states.select,gu)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};pu(d,u,gu),pu(d,a.states.emphasis,gu)}xA(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=UV(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Mt(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,Vt(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r}();const ZV=YV;var jv=bt();function XV(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=jv(t).labelManager;n||(n=jv(t).labelManager=new ZV),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=jv(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var tc=Math.sin,ec=Math.cos,ND=Math.PI,In=Math.PI*2,qV=180/ND,KV=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=Ga(h-In)||(f?u>=In:-u>=In),c=u>0?u%In:u%In+In,d=!1;v?d=!0:Ga(h)?d=!1:d=c>=ND==!!f;var p=e+a*ec(o),g=t+n*tc(o);this._start&&this._add("M",p,g);var y=Math.round(i*qV);if(v){var m=1/this._p,_=(f?1:-1)*(In-m);this._add("A",a,n,y,1,+f,e+a*ec(o+_),t+n*tc(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=e+a*ec(s),w=t+n*tc(s);this._add("A",a,n,y,+d,+f,S,w)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function iz(r){return""}function yy(r,e){e=e||{};var t=e.newline?` `:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return nz(o,s)+(o!=="style"?Re(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+iz(o)}return a(r)}function oz(r,e,t){t=t||{};var a=t.newline?` -`:"",n=" {"+a,i=a+"}",o=G(_t(r),function(l){return l+n+G(_t(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(_t(e),function(l){return"@keyframes "+l+n+G(_t(e[l]),function(u){return u+n+G(_t(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function dp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function f1(r,e,t,a){return re("svg","root",{width:r,height:e,xmlns:BD,"xmlns:xlink":VD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var h1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},En="transform-origin";function sz(r,e,t){var a=B({},r.shape);B(a,e),r.buildPath(t,a);var n=new ND;return n.reset(jb(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function lz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[En]=t+"px "+a+"px")}var uz={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function GD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function fz(r,e,t){var a=r.shape.paths,n={},i,o;if(C(a,function(l){var u=dp(t.zrId);u.animation=!0,Eh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=_t(f),c=v.length;if(c){o=v[c-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=GD(n,t);return i.replace(o,s)}}function v1(r){return $(r)?h1[r]?"cubic-bezier("+h1[r]+")":yg(r)?r:"":""}function Eh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof kg){var s=fz(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var pt=GD(b,t);return pt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var rl=Math.round;function FD(r){return r&&$(r.src)}function HD(r){return r&&K(r.toDataURL)}function yy(r,e,t,a){ez(function(n,i){var o=n==="fill"||n==="stroke";o&&Jb(i)?$D(e,r,n,a):o&&mg(i)?UD(t,r,n,a):r[n]=i},e,t,!1),yz(t,r,a)}function c1(r){return Ga(r[0]-1)&&Ga(r[1])&&Ga(r[2])&&Ga(r[3]-1)}function hz(r){return Ga(r[4])&&Ga(r[5])}function my(r,e,t){if(e&&!(hz(e)&&c1(e))){var a=t?10:1e4;r.transform=c1(e)?"translate("+rl(e[4]*a)/a+" "+rl(e[5]*a)/a+")":uP(e)}}function d1(r,e,t){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";De(v,g),De(c,g)}else if(v==null||c==null){var y=function(D,M){if(D){var I=D.elm,L=v||M.width,P=c||M.height;D.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),D.attrs.width=L,D.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=Ag(d,null,r,function(D){l||y(x,D),y(h,D)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=re("image","img",{href:d,width:v,height:c}),o.width=v,o.height=c}else n.svgElement&&(h=rt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=tT(n);w&&(o.patternTransform=w);var x=re("pattern","",o,[h]),b=gy(x),T=a.patternCache,A=T[b];A||(A=a.zrId+"-p"+a.patternIdx++,T[b]=A,o.id=A,x=a.defs[A]=re("pattern",A,o,[h])),e[t]=oh(A)}}function mz(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=re("clipPath",i,o,[WD(r,t)])}e["clip-path"]=oh(i)}function y1(r){return document.createTextNode(r)}function Gn(r,e,t){r.insertBefore(e,t)}function m1(r,e){r.removeChild(e)}function _1(r,e){r.appendChild(e)}function YD(r){return r.parentNode}function ZD(r){return r.nextSibling}function ec(r,e){r.textContent=e}var S1=58,_z=120,Sz=re("","");function pp(r){return r===void 0}function Or(r){return r!==void 0}function xz(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function gs(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function al(r){var e,t=r.children,a=r.tag;if(Or(a)){var n=r.elm=zD(a);if(_y(Sz,r),z(t))for(e=0;ei?(d=t[l+1]==null?null:t[l+1].elm,XD(r,d,t,n,l)):Of(r,e,a,i))}function Yi(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(_y(r,e),pp(e.text)?Or(a)&&Or(n)?a!==n&&wz(t,a,n):Or(n)?(Or(r.text)&&ec(t,""),XD(t,null,n,0,n.length-1)):Or(a)?Of(t,a,0,a.length-1):Or(r.text)&&ec(t,""):r.text!==e.text&&(Or(a)&&Of(t,a,0,a.length-1),ec(t,e.text)))}function bz(r,e){if(gs(r,e))Yi(r,e);else{var t=r.elm,a=YD(t);al(e),a!==null&&(Gn(a,e.elm,ZD(t)),Of(a,[r],0,0))}return e}var Tz=0,Az=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=x1(),this.configLayer=x1(),this.storage=t,this._opts=a=B({},a),this.root=e,this._id="zr"+Tz++,this._oldVNode=f1(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=zD("svg");_y(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",bz(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return g1(e,dp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=dp(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=Cz(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=re("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(_t(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(re("defs","defs",{},u)),e.animation){var f=oz(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=re("style","stl",{},[],f);o.push(h)}}return f1(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},gy(this.renderToVNode({animation:ft(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ft(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var D=c.dpr,M=0;M0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?gu:0),this._needsManuallyCompositing),f.__builtin__||fg("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&Ge&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ht(a[e],t,!0):a[e]=t;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Gt);const Bz=Nz;function uo(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=oo(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var Vz=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Qt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zz,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ca(this.childAt(0))},e.prototype.downplay=function(){da(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Mt(v,c,s,a),br(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Vt(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=ae(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=yi(t.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),b=x.fill;if(s instanceof ce){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(a,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ve(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:b,defaultOpacity:x.opacity});function I(R){return M?t.getName(R):uo(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ht(this,v,c,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=it(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Qa(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qa(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Po(t.getItemVisual(a,"symbolSize"))},e}(at);function zz(r,e){this.parent.drift(r,e)}const Cl=Vz;function ac(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function T1(r){return r!=null&&!tt(r)&&(r={isIgnore:r}),r||{}}function A1(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ae(e),cursorStyle:e.get("cursor")}}var Gz=function(){function r(e){this.group=new at,this._SymbolCtor=e||Cl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=T1(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=A1(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(ac(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),d=f(h);if(!ac(e,d,h,t)){a.remove(c);return}var p=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)a.remove(c),c=new o(e,h,l,u),c.setPosition(d);else{c.updateData(e,h,l,u);var y={x:d[0],y:d[1]};s?c.attr(y):Mt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=A1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=T1(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function QD(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function Hz(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function Wz(r,e,t,a,n,i,o,s){for(var l=Hz(r,e),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=KD(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=n||p<0)break;if(ni(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var w=p+i,x=e[w*2],b=e[w*2+1];x===y&&b===m&&g=a||ni(x,b))c=y,d=m;else{D=x-u,M=b-f;var P=y-u,R=x-y,E=m-f,N=b-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(R);var F=D>0?1:-1;c=y-F*O*o,d=m,I=y+F*V*o,L=m}else if(s==="y"){O=Math.abs(E),V=Math.abs(N);var W=M>0?1:-1;c=y,d=m-W*O*o,I=y,L=m+W*V*o}else O=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+N*N),A=V/(V+O),c=y-D*o*(1-A),d=m-M*o*(1-A),I=y+D*o*A,L=m+M*o*A,I=Ma(I,Ia(x,y)),L=Ma(L,Ia(b,m)),I=Ia(I,Ma(x,y)),L=Ia(L,Ma(b,m)),D=I-y,M=L-m,c=y-D*O/V,d=m-M*O/V,c=Ma(c,Ia(u,y)),d=Ma(d,Ia(f,m)),c=Ia(c,Ma(u,y)),d=Ia(d,Ma(f,m)),D=y-c,M=m-d,I=y+D*V/O,L=m+M*V/O}r.bezierCurveTo(h,v,c,d,y,m),h=I,v=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var JD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),$z=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ni(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=d;break;case o.C:c=i[h++],d=i[h++],p=i[h++],g=i[h++],y=i[h++],m=i[h++];var w=u?uf(s,c,p,y,t,f):uf(l,d,g,m,t,f);if(w>0)for(var x=0;x=0){var S=u?ee(l,d,g,m,b):ee(s,c,p,y,b);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(mt),Uz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(JD),jD=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new Uz},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ni(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function Xz(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=Zz(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,y=g-p;if(y<.001)return"transparent";C(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new nr(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function qz(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&Kz(i,e))){var o=e.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Kz(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function Qz(r,e){return isNaN(r)||isNaN(e)}function Jz(r){for(var e=r.length/2;e>0&&Qz(r[e*2-2],r[e*2-1]);e--);return e-1}function L1(r,e){return[r[e*2],r[e*2+1]]}function jz(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function rM(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=p.getState("emphasis").style;F.lineWidth=+p.style.lineWidth+1}it(p).seriesIndex=t.seriesIndex,Ht(p,N,O,V);var W=I1(t.get("smooth")),Z=t.get("smoothMonotone");if(p.setShape({smooth:W,smoothMonotone:Z,connectNulls:T}),g){var Q=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(j(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(J=I1(Q.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:J,smoothMonotone:Z,connectNulls:T}),he(g,t,"areaStyle"),it(g).seriesIndex=t.seriesIndex,Ht(g,N,O,V)}var dt=function(St){i._changePolyState(St)};l.eachItemGraphicEl(function(St){St&&(St.onHoverStateChange=dt)}),this._polyline.onHoverStateChange=dt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){it(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=li(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new Cl(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Bt.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=li(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Bt.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;yf(this._polyline,t),a&&yf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new $z({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new jD({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=K(h)?h(null):h;t.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,w=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=K(h)?h(d):f*b+v,A=p.getSymbolPath(),D=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(rM(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Jz(l);f>=0&&(ve(s,ae(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?qD(o,c):uo(o,h)},enableTextSetter:!0},t5(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),b=y?"x":"y",T=jz(h,S,b),A=T.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!c){var I=L1(h,A[0]);u.attr({x:I[0]+w,y:I[1]+x}),o&&(M=v.getRawValue(A[0]))}else{var I=f.getPointOn(S,b);I&&u.attr({x:I[0]+w,y:I[1]+x});var L=v.getRawValue(A[0]),P=v.getRawValue(A[1]);o&&(M=xT(n,d,L,P,T.t))}i.lastFrameIndex=A[0]}else{var R=t===1||i.lastFrameIndex>0?A[0]:0,I=L1(h,R);o&&(M=v.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+x})}if(o){var E=bo(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=Wz(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(c=La(v.current,n,o,l),d=La(v.stackedOnCurrent,n,o,l),p=La(v.next,n,o,l),g=La(v.stackedOnNext,n,o,l)),M1(c,p)>3e3||f&&M1(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:p}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Mt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var d=void 0;$(i)?d=a5[i]:K(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,d,n5))}}}}}function i5(r){r.registerChartView(r5),r.registerSeriesModel(Bz),r.registerLayout(Ml("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,aM("line"))}var nM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return _a(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)C(i.getAxes(),function(v,c){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=o[c],g=a[c]==="x1"||a[c]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,S=0;Sp){m=(w+y)/2;break}S===1&&(_=x-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[c]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Gt);Gt.registerClass(nM);const Nf=nM;var o5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return _a(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=sn(Nf.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Nf);const s5=o5;var l5=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),u5=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new l5},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,d=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Zs(i,t,it(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Bt),P1={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=ic(e.x,r.x),s=oc(e.x+e.width,n),l=ic(e.y,r.y),u=oc(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=oc(e.r,r.r),i=ic(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},R1={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new wt({shape:B({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Bf:Ne,f=new u({shape:a,z2:1});f.name="item";var h=iM(n);if(f.calculateTextPosition=f5(h,{isRoundCap:u===Bf}),i){var v=f.shape,c=n?"r":"endAngle",d={};v[c]=n?a.r0:a.startAngle,d[c]=a[c],(s?Mt:Vt)(f,{shape:d},i)}return f}};function d5(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function E1(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Mt:Vt)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Mt:Vt)(t,{shape:u},f,n)}function k1(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function y5(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function iM(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function N1(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=Kn(a.getModel("itemStyle"),f,!0);B(f,h),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=ae(a);ve(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:uo(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,h5(r,g==="outside"?c:g,iM(o),a.get(["label","rotate"]))}_A(p,d,i.getRawValue(t),function(m){return qD(e,m)});var y=a.getModel(["emphasis"]);Ht(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),he(r,a),y5(n)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function m5(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var _5=function(){function r(){}return r}(),B1=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new _5},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function S5(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function oM(r,e,t){if(_i(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function x5(r,e,t){var a=r.type==="polar"?Ne:wt;return new a({shape:oM(e,t,r),silent:!0,z2:0})}const w5=c5;function b5(r){r.registerChartView(w5),r.registerSeriesModel(s5),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(fD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hD("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,aM("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var Su=Math.PI*2,G1=Math.PI/180;function sM(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lM(r,e){var t=sM(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o),l=H(n[0],s/2),u=H(n[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=H(a[0],i)+t.x,h=H(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function T5(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=sM(a,t),s=lM(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*G1,c=a.get("minAngle")*G1,d=0;n.each(i,function(D){!isNaN(D)&&d++});var p=n.getSum(i),g=Math.PI/(p||d)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var w=Su,x=0,b=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(D,M){var I;if(isNaN(D)){n.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?I=p===0&&_?g:D*g:I=Su/d,It?y:g,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*n,b=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-h)/2}}}function sc(r){return r.position==="center"}function D5(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*A5,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}e.each(function(x){var b=e.getItemGraphicEl(x),T=b.shape,A=b.getTextContent(),D=b.getTextGuideLine(),M=e.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=H(I.get("edgeDistance"),u),N=I.get("bleedMargin"),O=M.getModel("labelLine"),V=O.get("length");V=H(V,u);var F=O.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Z>0?"left":"right"}var $t=Math.PI,Ft=0,de=I.get("rotate");if(Dt(de))Ft=de*($t/180);else if(L==="center")Ft=0;else if(de==="radial"||de===!0){var Jr=Z<0?-W+$t:-W;Ft=Jr}else if(de==="tangential"&&L!=="outside"&&L!=="outer"){var Ie=Math.atan2(Z,Q);Ie<0&&(Ie=$t*2+Ie);var kl=Q>0;kl&&(Ie=$t+Ie),Ft=Ie-$t}if(i=!!Ft,A.x=J,A.y=dt,A.rotation=Ft,A.setStyle({verticalAlign:"middle"}),et){A.setStyle({align:pt});var Hh=A.states.select;Hh&&(Hh.x+=A.x,Hh.y+=A.y)}else{var xa=A.getBoundingRect().clone();xa.applyTransform(A.getComputedTransform());var _m=(A.style.margin||0)+2.1;xa.y-=_m/2,xa.height+=_m,t.push({label:A,labelLine:D,position:L,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ut(Z,Q),linePoints:St,textAlign:pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:xa,unconstrainedWidth:xa.width,labelStyleWidth:A.style.width})}b.setTextConfig({inside:et})}}),!i&&r.get("avoidLabelOverlap")&&C5(t,a,n,l,u,v,f,h);for(var p=0;p0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},e.type="pie",e}(Bt);const L5=I5;function Ro(r,e,t){e=z(e)&&{coordDimensions:e}||B({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=bl(a,e).dimensions,i=new Ce(n,r);return i.initData(a,t),i}var P5=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}();const Ll=P5;var R5=bt(),E5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ll(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ro(this,{coordDimensions:["value"],encodeDefaulter:ot(Wg,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=R5(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=UP(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){si(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Gt);const k5=E5;function O5(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Dt(o)&&!isNaN(o)&&o<0)})}}}function N5(r){r.registerChartView(L5),r.registerSeriesModel(k5),DC("pie",r.registerAction),r.registerLayout(ot(T5,"pie")),r.registerProcessor(Il("pie")),r.registerProcessor(O5("pie"))}var B5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return _a(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Gt);const V5=B5;var fM=4,z5=function(){function r(){}return r}(),G5=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new z5},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const H5=F5;var W5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Ml("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new H5:new Dl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Bt);const $5=W5;var U5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Tt);const Y5=U5;var yp=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Kt).models[0]},e.type="cartesian2dAxis",e}(Tt);Jt(yp,Al);var hM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Z5=ht({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hM),Sy=ht({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},hM),X5=ht({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Sy),q5=j({logBase:10},Sy);const vM={category:Z5,value:Sy,time:X5,log:q5};var K5={value:1,category:1,time:1,log:1};function fo(r,e,t,a){C(K5,function(n,i){var o=ht(ht({},vM[i],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Ks(this),c=v?Co(f):{},d=h.getTheme();ht(f,d.get(i+"Axis")),ht(f,this.getDefaultOption()),f.type=H1(f),v&&Ja(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=fp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",H1)}function H1(r){return r.type||(r.data?"category":"value")}var Q5=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const J5=Q5;var mp=["x","y"];function W1(r){return r.type==="interval"||r.type==="time"}var j5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=mp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!W1(t)||!W1(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=mo([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ue(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return ue(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new vt(n,i,o,s)},e}(J5),tG=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ar);const eG=tG;function _p(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),oe(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function $1(r){return r.get("coordinateSystem")==="cartesian2d"}function U1(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Kt).models[0];e[a]=i}),e}var lc=Math.log;function cM(r,e,t){var a=tn.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=mD(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=lc(r.base);u=[lc(u[0])/v,lc(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=Xv(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Xv(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=Ut(g-m),p<0&&u[0]>=0?(p=0,g=Ut(m)):g>0&&u[1]<=0&&(g=0,p=-Ut(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*S),a.setInterval.call(r,d),(_||S)&&a.setNiceExtent.call(r,p+d,g-d)}var rG=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mp,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=_t(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;hp(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(lo(p,d),hp(p)&&(s=c))}f.length&&(s||(s=f.pop(),lo(s.scale,s.model)),C(f,function(g){cM(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};C(a.x,function(o){Y1(a,"y",o,i)}),C(a.y,function(o){Y1(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=te(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=gV(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),aG(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):pf(n-Fa)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),X1={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(ue(s,s,o),ue(l,l,o));var f=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new se({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});io(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);$(v)&&(v=[v,v]),($(c)||Dt(c))&&(c=[c,c]);var d=yi(e.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];C([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=Qt(v[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=sG(t,a,e,r),i=uG(t,a,e,r);if(oG(e,i,n),lG(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=PD(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));kD(o)}},axisName:function(r,e,t,a){var n=oe(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,K1(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Fa/180);var d;K1(i)?v=ii.innerTextLayout(r.rotation,c??r.rotation,o):(v=iG(r.rotation,i,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=oe(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ct({x:h[0],y:h[1],rotation:v.rotation,silent:ii.isLabelSilent(e),style:Ot(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(wo({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=ii.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,it(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function iG(r,e,t,a){var n=hT(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return pf(n-Fa/2)?(o=l?"bottom":"top",i="center"):pf(n-Fa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nFa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function oG(r,e,t){if(!_D(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?(Ue(i),Ue(u)):q1(i,o)&&(a?(Ue(o),Ue(f)):(Ue(i),Ue(u))),n===!1?(Ue(s),Ue(h)):q1(l,s)&&(n?(Ue(l),Ue(v)):(Ue(s),Ue(h)))}}function Ue(r){r&&(r.ignore=!0)}function q1(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=ih([]);return pi(n,n,-r.rotation),t.applyTransform(sa([],n,r.getLocalTransform())),a.applyTransform(sa([],n,e.getLocalTransform())),t.intersect(a)}}function K1(r){return r==="middle"||r==="center"}function dM(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function pG(r){var e=xy(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Sp(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=j({color:d.color},l));var g=ht(rt(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!1);if($(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else K(f)&&(g.name=f(g.name,g));var m=new Nt(g,null,this.ecModel);return Jt(m,Al.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ht({lineStyle:{color:"#bbb"}},jo.axisLine),axisLabel:xu(jo.axisLabel,!1),axisTick:xu(jo.axisTick,!1),splitLine:xu(jo.splitLine,!0),splitArea:xu(jo.splitArea,!0),indicator:[]},e}(Tt);const PG=LG;var RG=["axisLine","axisTickLabel","axisName"],EG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=G(n,function(o){var s=o.model.get("showName")?o.name:"",l=new ga(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});C(i,function(o){C(RG,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),d=z(v)?v:[v],p=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,w=a.cy,x=0;x<_.length;x++){if(f){var b=m(g,d,x);g[b].push(new qr({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,p,x);y[b].push(new dh({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,A=G(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),D=[],x=0;x<=T;x++){for(var M=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;hc(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);hc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!rS(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;hc(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(lr);function hc(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(ha(a.event),SM(r,e,t,a,n))}function SM(r,e,t,a,n){n.isAvailableBehavior=U(tf,null,t,a),r.trigger(e,n)}function tf(r,e,t){var a=t[r];return!r||a&&(!$(a)||e.event[a+"Key"])}const Pl=WG;function by(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Ty(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var $G={axisPointer:1,tooltip:1,brush:1};function Oh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!$G.hasOwnProperty(a.mainType)&&n&&n.model!==t}function xM(r){if($(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var vc,Vf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},aS=_t(Vf),zf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nS=_t(zf),UG=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=xM(e);this._defsUsePending=[];var n=new at;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ze(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;XG(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Nh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=bM(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new at,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new wt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=vc[s];if(f&&Y(vc,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=iS[s];if(c&&Y(iS,s)){var d=c.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new $s({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),YG(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){vc={g:function(e,t){var a=new at;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new wt;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new qr;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new se;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new Rg;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=lS(a));var i=new Be({shape:{points:n||[]},silent:!0});return Ye(t,i),ze(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=lS(a));var i=new Ve({shape:{points:n||[]},silent:!0});return Ye(t,i),ze(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new ce;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new at;return Ye(t,s),ze(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new at;return Ye(t,s),ze(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=QT(a);return Ye(t,n),ze(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),iS={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new nr(e,t,a,n);return oS(r,i),sS(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new fA(e,t,a);return oS(r,n),sS(r,n),n}};function oS(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function sS(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};wM(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Ye(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),j(e.__inheritedStyle,r.__inheritedStyle))}function lS(r){for(var e=Nh(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Nh(o);switch(n=n||or(),s){case"translate":Ur(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":gg(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":pi(n,n,-parseFloat(l[0])*cc);break;case"skewX":var u=Math.tan(parseFloat(l[0])*cc);sa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*cc);sa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var fS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function wM(r,e,t){var a=r.getAttribute("style");if(a){fS.lastIndex=0;for(var n;(n=fS.exec(a))!=null;){var i=n[1],o=Y(Vf,i)?Vf[i]:null;o&&(e[o]=n[2]);var s=Y(zf,i)?zf[i]:null;s&&(t[s]=n[2])}}}function JG(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),a=X(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,d){return d&&(c=d(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ve(e,ae(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var d=e.getTextContent();if(d&&(TM(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function pS(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):it(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function gS(r,e,t,a,n){r.data||wo({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function yS(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ht(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&SE(e,n,t),o}function mS(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),C(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Gt);const S3=_3;function x3(r,e){var t={};return C(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=te(w,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function C3(r,e){C(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var D3=function(){function r(){this.dimensions=CM}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new wS(l+s,l,B({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=bS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),C(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new wS(s,s,B({nameMap:hg(l)},n(o[0])));u.zoomLimit=oe.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=bS,u.resize(o[0],t),C(o,function(f){f.coordinateSystem=u,C3(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=X(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function N3(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){z3(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=G3(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function B3(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function AS(r){return arguments.length?r:W3}function ys(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function V3(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function z3(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function G3(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=dc(s),i=pc(i),s&&i;){n=dc(n),o=pc(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(H3(F3(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!dc(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!pc(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function dc(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function pc(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function F3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function H3(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function W3(r,e){return r.parentNode===e.parentNode?1:2}var $3=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),U3=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $3},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var d=1;dm.x,w||(S=S-Math.PI));var b=w?"left":"right",T=s.getModel("label"),A=T.get("rotate"),D=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||b,rotation:A==null?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?sf(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(it(t).focus=L),Z3(n,o,f,t,d,c,p,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===yl||yf(t.__edge,P)}})}function Z3(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new ph({shape:bp(f,h,v,n,n)})),Mt(p,{shape:bp(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if($(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function EM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Iy(r,e){var t=EM(r);return ct(t,e)>=0}function Bh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var nF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new Nt(n,this,this.ecModel),o=My.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var d=o.getNodeByDataIndex(c);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ne("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Bh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Gt);const iF=nF;function oF(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function sF(r,e){r.eachSeriesByType("tree",function(t){lF(t,e)})}function lF(r,e){var t=V3(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=AS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=AS());var s=r.getData().tree.root,l=s.children[0];if(l){O3(s),oF(l,N3,o),s.hierNode.modifier=-l.hierNode.prelim,es(l,B3);var u=l,f=l,h=l;es(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,d=0,p=0,g=0,y=0;if(a==="radial")d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),es(l,function(_){g=(_.getLayout().x+c)*d,y=(_.depth-1)*p;var S=ys(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=i/(f.getLayout().x+v+c),d=n/(h.depth-1||1),es(l,function(_){y=(_.getLayout().x+c)*p,g=m==="LR"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),es(l,function(_){g=(_.getLayout().x+c)*d,y=m==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function uF(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");B(s,o)})})}function fF(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=Cy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function hF(r){r.registerChartView(X3),r.registerSeriesModel(iF),r.registerLayout(sF),r.registerVisual(uF),fF(r)}var LS=["treemapZoomToNode","treemapRender","treemapMove"];function vF(r){for(var e=0;e1;)i=i.parentNode;var o=Jd(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var cF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};OM(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Nt({itemStyle:o},this,a);i=t.levels=dF(i,a);var l=G(i||[],function(h){return new Nt(h,s,a)},this),u=My.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var d=u.getNodeByDataIndex(c),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ne("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Bh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=X(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){kM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Gt);function OM(r){var e=0;C(r.children,function(a){OM(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function dF(r,e){var t=Rt(e.get("color")),a=Rt(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;C(r,function(s){var l=new Nt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}const pF=cF;var gF=8,PS=8,gc=5,yF=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),Th(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=jt(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+gF*2,t.emptyItemWidth);t.totalWidth+=s+PS,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=Ik(t.pos,t.box),v=t.totalWidth,c=t.renderList,d=n.getModel("itemStyle").getItemStyle(),p=c.length-1;p>=0;p--){var g=c[p],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Be({shape:{points:mF(l,0,m,f,p===c.length-1,p===0)},style:j(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ct({style:Ot(i,{text:_})}),textConfig:{position:"inside"},z2:So*1e4,onclick:ot(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ot(o,{text:_}),S.ensureState("emphasis").style=d,Ht(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),_F(S,e,y),l+=m+PS}},r.prototype.remove=function(){this.group.removeAll()},r}();function mF(r,e,t,a,n,i){var o=[[n?r:r-gc,e],[r+t,e],[r+t,e+a],[n?r:r-gc,e+a]];return!i&&o.splice(2,0,[r+t+gc,e+a/2]),!n&&o.push([r,e+a/2]),o}function _F(r,e,t){it(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Bh(t,e)}}const SF=yF;var xF=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;nES||Math.abs(t.dy)>ES)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new vt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,n-=l.y;var u=or();Ur(u,u,[-a,-n]),gg(u,u,[t.scale,t.scale]),Ur(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&bf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new SF(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(Iy(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rs(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(Bt);function rs(){return{nodeGroup:[],background:[],content:[]}}function DF(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,w=_&&_.length,x=v.getModel("itemStyle"),b=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),A=v.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,M=J("nodeGroup",Tp);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Gf(M).nodeWidth=c,Gf(M).nodeHeight=d,f.isAboveViewRoot)return M;var I=J("background",RS,u,TF);I&&V(M,I,w&&f.upperLabelHeight);var L=v.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),E=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(w)Ys(M)&&Un(M,!1),I&&(Un(I,!E),h.setItemGraphicEl(o.dataIndex,I),$d(I,N,R));else{var O=J("content",RS,u,AF);O&&F(M,O),I.disableMorphing=!0,I&&Ys(I)&&Un(I,!1),Un(M,!E),h.setItemGraphicEl(o.dataIndex,M),$d(M,N,R)}return M;function V(pt,et,gt){var st=it(et);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,et.setShape({x:0,y:0,width:c,height:d,r:D}),g)W(et);else{et.invisible=!1;var q=o.getVisual("style"),lt=q.stroke,zt=NS(x);zt.fill=lt;var xt=On(b);xt.fill=b.get("borderColor");var $t=On(T);$t.fill=T.get("borderColor");var Ft=On(A);if(Ft.fill=A.get("borderColor"),gt){var de=c-2*p;Z(et,lt,q.opacity,{x:p,y:0,width:de,height:S})}else et.removeTextContent();et.setStyle(zt),et.ensureState("emphasis").style=xt,et.ensureState("blur").style=$t,et.ensureState("select").style=Ft,fi(et)}pt.add(et)}function F(pt,et){var gt=it(et);gt.dataIndex=o.dataIndex,gt.seriesIndex=r.seriesIndex;var st=Math.max(c-2*p,0),q=Math.max(d-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:st,height:q,r:D}),g)W(et);else{et.invisible=!1;var lt=o.getVisual("style"),zt=lt.fill,xt=NS(x);xt.fill=zt,xt.decal=lt.decal;var $t=On(b),Ft=On(T),de=On(A);Z(et,zt,lt.opacity,null),et.setStyle(xt),et.ensureState("emphasis").style=$t,et.ensureState("blur").style=Ft,et.ensureState("select").style=de,fi(et)}pt.add(et)}function W(pt){!pt.invisible&&i.push(pt)}function Z(pt,et,gt,st){var q=v.getModel(st?OS:kS),lt=jt(v.get("name"),null),zt=q.getShallow("show");ve(pt,ae(v,st?OS:kS),{defaultText:zt?lt:null,inheritColor:et,defaultOpacity:gt,labelFetcher:r,labelDataIndex:o.dataIndex});var xt=pt.getTextContent();if(xt){var $t=xt.style,Ft=cg($t.padding||0);st&&(pt.setTextConfig({layoutRect:st}),xt.disableLabelLayout=!0),xt.beforeUpdate=function(){var Jr=Math.max((st?st.width:pt.shape.width)-Ft[1]-Ft[3],0),Ie=Math.max((st?st.height:pt.shape.height)-Ft[0]-Ft[2],0);($t.width!==Jr||$t.height!==Ie)&&xt.setStyle({width:Jr,height:Ie})},$t.truncateMinChar=2,$t.lineOverflow="truncate",Q($t,st,f);var de=xt.getState("emphasis");Q(de?de.style:null,st,f)}}function Q(pt,et,gt){var st=pt?pt.text:null;if(!et&>.isLeafRoot&&st!=null){var q=r.get("drillDownIcon",!0);pt.text=q?q+" "+st:st}}function J(pt,et,gt,st){var q=m!=null&&t[pt][m],lt=n[pt];return q?(t[pt][m]=null,dt(lt,q)):g||(q=new et,q instanceof sr&&(q.z2=MF(gt,st)),St(lt,q)),e[pt][y]=q}function dt(pt,et){var gt=pt[y]={};et instanceof Tp?(gt.oldX=et.x,gt.oldY=et.y):gt.oldShape=B({},et.shape)}function St(pt,et){var gt=pt[y]={},st=o.parentNode,q=et instanceof at;if(st&&(!a||a.direction==="drillDown")){var lt=0,zt=0,xt=n.background[st.getRawIndex()];!a&&xt&&xt.oldShape&&(lt=xt.oldShape.width,zt=xt.oldShape.height),q?(gt.oldX=0,gt.oldY=zt):gt.oldShape={x:lt,y:zt,width:0,height:0}}gt.fadein=!q}}function MF(r,e){return r*bF+e}const IF=CF;var ol=C,LF=tt,Ff=-1,Ly=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=rt(e);this.type=a,this.mappingMethod=t,this._normalizeData=EF[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(yc(n),PF(n)):t==="category"?n.categories?RF(n):yc(n,!0):(De(t!=="linear"||n.dataExtent),yc(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return _t(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){tt(e)?C(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:tt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&ol(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(LF(e)){var t=[];ol(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function yc(r,e){var t=r.visual,a=[];tt(t)?ol(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),NM(r,a)}function bu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Ap([0,1])}}function BS(r){var e=this.option.visual;return e[Math.round(Lt(r,[0,1],[0,e.length-1],!0))]||{}}function as(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function ms(r){var e=this.option.visual;return e[this.option.loop&&r!==Ff?r%e.length:r]}function Nn(){return this.option.visual[0]}function Ap(r){return{linear:function(e){return Lt(e,r,this.option.visual,!0)},category:ms,piecewise:function(e,t){var a=Cp.call(this,t);return a==null&&(a=Lt(e,r,this.option.visual,!0)),a},fixed:Nn}}function Cp(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=Ly.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function NM(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=Fe(t);return a||[0,0,0,1]})),e}var EF={linear:function(r){return Lt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Ly.findPieceIndex(r,e,!0);if(t!=null)return Lt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Ff},fixed:Zt};function Tu(r,e,t){return r?e<=t:e=t.length||p===t[p.depth]){var y=zF(n,l,p,g,d,a);VM(p,y,t,a)}})}}}function NF(r,e,t){var a=B({},e),n=t.designatedVisualItemStyle;return C(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function VS(r){var e=mc(r,"color");if(e){var t=mc(r,"colorAlpha"),a=mc(r,"colorSaturation");return a&&(e=ws(e,null,null,a)),t&&(e=ff(e,t)),e}}function BF(r,e){return e!=null?ws(e,null,null,r):null}function mc(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function VF(r,e,t,a,n,i){if(!(!i||!i.length)){var o=_c(e,"color")||n.color!=null&&n.color!=="none"&&(_c(e,"colorAlpha")||_c(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new fe(h);return BM(v).drColorMappingBy=f,v}}}function _c(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function zF(r,e,t,a,n,i){var o=B({},e);if(n){var s=n.type,l=s==="color"&&BM(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var sl=Math.max,Hf=Math.min,zS=oe,Py=C,zM=["itemStyle","borderWidth"],GF=["itemStyle","gapWidth"],FF=["upperLabel","show"],HF=["upperLabel","height"];const WF={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=te(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(zS(s.width,l[0]),n),f=H(zS(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=il(a,v,r),d=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=EM(p);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?qF(r,c,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),GM(p,_,!1,0),S=p.getLayout(),Py(g,function(x,b){var T=(g[b+1]||p).getValue();x.setLayout(B({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var w=r.getData().tree.root;w.setLayout(KF(s,d,c),!0),r.setLayoutInfo(s),FM(w,new vt(-s.x,-s.y,n,i),g,p,0)}};function GM(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(zM),u=s.get(GF)/2,f=HM(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=sl(n-2*v,0),i=sl(i-v-c,0);var d=n*i,p=$F(r,s,d,e,t,a);if(p.length){var g={x:v,y:c,width:n,height:i},y=Hf(n,i),m=1/0,_=[];_.area=0;for(var S=0,w=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function XF(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=e*e*t;return l?sl(u*a/l,l/(u*n)):1/0}function GS(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hQm&&(u=Qm),i=s}ua&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(w[0]=-w[0],w[1]=-w[1]);var b=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*b+f[0],i.y=f[1]+A,d=S[0]<0?"right":"left",i.originX=-y*b,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+A,d="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*b+h[0],i.y=h[1]+A,d=S[0]>=0?"right":"left",i.originX=y*b,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e}(at);const Oy=p4;var g4=function(){function r(e){this.group=new at,this._LineCtor=e||Oy}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=YS(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=YS(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!y4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function YS(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ae(e)}}function ZS(r){return isNaN(r[0])||isNaN(r[1])}function Tc(r){return r&&!ZS(r[0])&&!ZS(r[1])}const Ny=g4;var Ac=[],Cc=[],Dc=[],Bi=ie,Mc=Qn,XS=Math.abs;function qS(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Ac[0]=Bi(a[0],n[0],i[0],f),Ac[1]=Bi(a[1],n[1],i[1],f);var h=XS(Mc(Ac,e)-l);h=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Ic(r,e){var t=[],a=Gs,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[oa(u[0]),oa(u[1])],u[2]&&u.__original.push(oa(u[2])));var v=u.__original;if(u[2]!=null){if(we(n[0],v[0]),we(n[1],v[2]),we(n[2],v[1]),f&&f!=="none"){var c=Ss(s.node1),d=qS(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var c=Ss(s.node2),d=qS(n,v[1],c*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}we(u[0],n[0]),we(u[1],n[2]),we(u[2],n[1])}else{if(we(i[0],v[0]),we(i[1],v[1]),Wn(o,i[1],i[0]),yo(o,o),f&&f!=="none"){var c=Ss(s.node1);gd(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=Ss(s.node2);gd(i[1],i[1],o,-c*e)}we(u[0],i[0]),we(u[1],i[1])}})}function KS(r){return r.type==="view"}var m4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Dl,i=new Ny,o=this.group;this._controller=new Pl(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(KS(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Mt(u,f,t)}Ic(t.getGraph(),_s(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,d=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,w=_.getGraphicEl(),x=_.getModel();if(w){w.off("drag").off("dragend");var b=x.get("draggable");b&&w.on("drag",function(A){switch(p){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,d),c.setFixed(S),h.setItemLayout(S,[w.x,w.y]);break;case"circular":h.setItemLayout(S,[w.x,w.y]),_.setLayout({fixed:!0},!0),ky(t,"symbolSize",_,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[w.x,w.y]),Ey(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),w.setDraggable(b,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(it(w).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),w=_.getModel().get(["emphasis","focus"]);S&&w==="adjacency"&&(it(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){YM(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!Oh(u,n,t)}),!KS(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){by(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Ty(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Ic(t.getGraph(),_s(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=_s(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){Ic(t.getGraph(),_s(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Bt);const _4=m4;function Vi(r){return"_EC_"+r}var S4=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Vi(e)]){var n=new Bn(e,t);return n.hostGraph=this,this.nodes.push(n),a[Vi(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Vi(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Dt(e)&&(e=this.nodes[e]),Dt(t)&&(t=this.nodes[t]),e instanceof Bn||(e=n[Vi(e)]),t instanceof Bn||(t=n[Vi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new XM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Bn&&(e=e.id),t instanceof Bn&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof Bn||(t=this._nodesMap[Vi(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Jt(Bn,qM("hostGraph","data"));Jt(XM,qM("hostGraph","edgeData"));const x4=S4;function KM(r,e,t,a,n){for(var i=new x4(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar")d=_a(r,t);else{var p=xl.get(c),g=p?p.dimensions||[]:[];ct(g,"value")<0&&g.concat(["value"]);var y=bl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new Ce(y,t),d.initData(r)}var m=new Ce(["value"],t);return m.initData(l,s),n&&n(d,m),PM({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var w4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ll(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),si(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){a4(this);var s=KM(i,n,this,!0,l);return C(s.edges,function(u){n4(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var h=Nt.prototype.getModel;function v(d,p){var g=h.call(this,d,p);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=v,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ne("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=yC({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return n.value!=null?n:B({value:0},n)}),a=new Ce(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const b4=w4;var T4={type:"graphRoam",event:"graphRoam",update:"none"};function A4(r){r.registerChartView(_4),r.registerSeriesModel(b4),r.registerProcessor(JF),r.registerVisual(jF),r.registerVisual(t4),r.registerLayout(i4),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,s4),r.registerLayout(u4),r.registerCoordinateSystem("graphView",{dimensions:Rl.dimensions,create:h4}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Zt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Zt),r.registerAction(T4,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=Cy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var C4=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),D4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new C4},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(mt);const M4=D4;function I4(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Cu(r,e){var t=r==null?"":r+"";return e&&($(e)?t=e.replace("{value}",t):K(e)&&(t=e(r))),t}var L4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=I4(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?Bf:Ne,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),y=[u,f];DT(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],w=0;d&&w=A&&(D===0?0:i[D-1][0])Math.PI/2&&(J+=Math.PI)):Q==="tangential"?J=-T-Math.PI/2:Dt(Q)&&(J=Q*Math.PI/180),J===0?h.add(new Ct({style:Ot(_,{text:V,x:W,y:Z,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Ct({style:Ot(_,{text:V,x:W,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:Z,rotation:J}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var dt=0;dt<=w;dt++){P=Math.cos(T),R=Math.sin(T);var St=new se({shape:{x1:P*(d-N)+v,y1:R*(d-N)+c,x2:P*(d-b-N)+v,y2:R*(d-b-N)+c},silent:!0,style:I});I.stroke==="auto"&&St.setStyle({stroke:i((E+dt/w)/S)}),h.add(St),T+=D}T-=D}else T+=A}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),w=+t.get("max"),x=[S,w],b=[s,l];function T(D,M){var I=m.getItemModel(D),L=I.getModel("pointer"),P=H(L.get("width"),o.r),R=H(L.get("length"),o.r),E=t.get(["pointer","icon"]),N=L.get("offsetCenter"),O=H(N[0],o.r),V=H(N[1],o.r),F=L.get("keepAspect"),W;return E?W=Qt(E,O-P/2,V-R,P,R,null,F):W=new M4({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:V}}),W.rotation=-(M+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function A(D,M){var I=g.get("roundCap"),L=I?Bf:Ne,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(D+1)*R,N=P?o.r:o.r-D*R,O=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=w-m.get(_,D)%w),O}(y||p)&&(m.diff(v).add(function(D){var M=m.get(_,D);if(p){var I=T(D,s);Vt(I,{rotation:-((isNaN(+M)?b[0]:Lt(M,x,b,!0))+Math.PI/2)},t),h.add(I),m.setItemGraphicEl(D,I)}if(y){var L=A(D,s),P=g.get("clip");Vt(L,{shape:{endAngle:Lt(M,x,b,P)}},t),h.add(L),Fd(t.seriesIndex,m.dataType,D,L),d[D]=L}}).update(function(D,M){var I=m.get(_,D);if(p){var L=v.getItemGraphicEl(M),P=L?L.rotation:s,R=T(D,P);R.rotation=P,Mt(R,{rotation:-((isNaN(+I)?b[0]:Lt(I,x,b,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(D,R)}if(y){var E=c[M],N=E?E.shape.endAngle:s,O=A(D,N),V=g.get("clip");Mt(O,{shape:{endAngle:Lt(I,x,b,V)}},t),h.add(O),Fd(t.seriesIndex,m.dataType,D,O),d[D]=O}}).execute(),m.each(function(D){var M=m.getItemModel(D),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(p){var E=m.getItemGraphicEl(D),N=m.getItemVisual(D,"style"),O=N.fill;if(E instanceof ce){var V=E.style;E.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Lt(m.get(_,D),x,[0,1],!0))),E.z2EmphasisLift=0,he(E,M),Ht(E,L,P,R)}if(y){var F=d[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,he(F,M),Ht(F,L,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=Qt(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new at,c=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new Ct({silent:!0}),d[y]=new Ct({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,w=i(Lt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),T=o.cx+H(b[0],o.r),A=o.cy+H(b[1],o.r),D=c[y];D.attr({z2:g?0:2,style:Ot(x,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(D)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+H(I[0],o.r),P=o.cy+H(I[1],o.r),R=H(M.get("width"),o.r),E=H(M.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,D=d[y],O=M.get("formatter");D.attr({z2:g?0:2,style:Ot(M,{x:L,y:P,text:Cu(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),_A(D,{normal:M},_,function(F){return Cu(F,O)}),p&&SA(D,y,l,t,{getFormattedLabel:function(F,W,Z,Q,J,dt){return Cu(dt?dt.interpolatedValue:_,O)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=d},e.type="gauge",e}(Bt);const P4=L4;var R4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Ro(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Gt);const E4=R4;function k4(r){r.registerChartView(P4),r.registerSeriesModel(E4)}var O4=["itemStyle","opacity"],N4=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Ve,s=new Ct;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(O4);f=f??1,n||br(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Vt(i,{style:{opacity:f}},o,a)):Mt(i,{style:{opacity:f},shape:{points:l.points}},o,a),he(i,s),this._updateLabel(t,a),Ht(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;ve(o,ae(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ut(c[0][0],c[0][1]):null},Mt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),dy(n,py(l),{stroke:v})},e}(Be),B4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new N4(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Zs(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Bt);const V4=B4;var z4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ll(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Ro(this,{coordDimensions:["value"],encodeDefaulter:ot(Wg,this)})},e.prototype._defaultLabelLine=function(t){si(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const G4=z4;function F4(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function H4(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();osH)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Pc(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Pc(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const fH=lH;var hH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ht(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){C(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);C(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Tt);const vH=hH;var cH=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ar);const dH=cH;function xi(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=zi(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=zi(s,[0,o]),n=i=zi(s,[n,i]),a=0}e[0]=zi(e[0],t),e[1]=zi(e[1],t);var l=Rc(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=zi(e[a],f);var h;return h=Rc(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function Rc(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function zi(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Ec=C,JM=Math.min,jM=Math.max,jS=Math.floor,pH=Math.ceil,tx=Ut,gH=Math.PI,yH=function(){function r(e,t,a){this.type="parallel",this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;Ec(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new dH(o,Rh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();Ec(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),lo(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=te(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Du(e.get("axisExpandWidth"),l),h=Du(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),d;if(c)d=Du(c[1]-c[0],l),c[1]=c[0]+d;else{d=Du(f*(h-1),l);var p=e.get("axisExpandCenter")||jS(u/2);c=[f*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[jS(tx(c[0]/f,1))+1,pH(tx(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Ec(a,function(o,s){var l=(n.axisExpandable?_H:mH)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:gH/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=f[i],c=or();pi(c,c,v),Ur(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];C(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?xi(l,n,o,"all"):u="none";else{var c=n[1]-n[0],d=o[1]*s/c;n=[jM(0,d-c/2)],n[1]=JM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function Du(r,e){return JM(jM(r,e[0]),e[1])}function mH(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function _H(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)ar(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;iCH}function o2(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function s2(r,e,t,a){var n=new at;return n.add(new wt({name:"main",style:Gy(t),silent:!0,draggable:!0,cursor:"move",drift:ot(nx,r,e,n,["n","s","w","e"]),ondragend:ot(ci,e,{isEnd:!0})})),C(a,function(i){n.add(new wt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(nx,r,e,n,i),ondragend:ot(ci,e,{isEnd:!0})}))}),n}function l2(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=ho(n,DH),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,d=f-o,p=h-s,g=d+n,y=p+n;ea(r,e,"main",o,s,d,p),a.transformable&&(ea(r,e,"w",l,u,i,y),ea(r,e,"e",v,u,i,y),ea(r,e,"n",l,u,g,i),ea(r,e,"s",l,c,g,i),ea(r,e,"nw",l,u,i,i),ea(r,e,"ne",v,u,i,i),ea(r,e,"sw",l,c,i,i),ea(r,e,"se",v,c,i,i))}function Pp(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(Gy(t)),n.attr({silent:!a,cursor:a?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Rp(r,i[0]):kH(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?IH[s]+"-resize":null})})}function ea(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(NH(Fy(r,e,[[a,n],[a+i,n+o]])))}function Gy(r){return j({strokeNoScale:!0},r.brushStyle)}function u2(r,e,t,a){var n=[ul(r,t),ul(e,a)],i=[ho(r,t),ho(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function EH(r){return ri(r.group)}function Rp(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=yh(t[e],EH(r));return a[n]}function kH(r,e){var t=[Rp(r,e[0]),Rp(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function nx(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=f2(e,n,i);C(a,function(u){var f=MH[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(u2(s[0][0],s[1][0],s[0][1],s[1][1])),By(e,t),ci(e,{isEnd:!1})}function OH(r,e,t,a){var n=e.__brushOption.range,i=f2(r,t,a);C(n,function(o){o[0]+=i[0],o[1]+=i[1]}),By(r,e),ci(r,{isEnd:!1})}function f2(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Fy(r,e,t){var a=i2(r,e);return a&&a!==vi?a.clipPath(t,r._transform):rt(t)}function NH(r){var e=ul(r[0][0],r[1][0]),t=ul(r[0][1],r[1][1]),a=ho(r[0][0],r[1][0]),n=ho(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function BH(r,e,t){if(!(!r._brushType||zH(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=zy(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var zh={lineX:sx(0),lineY:sx(1),rect:{createCover:function(r,e){function t(a){return a}return s2({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=o2(r);return u2(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){l2(r,e,t,a)},updateCommon:Pp,contain:kp},polygon:{createCover:function(r,e){var t=new at;return t.add(new Ve({name:"main",style:Gy(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Be({name:"main",draggable:!0,drift:ot(OH,r,e),ondragend:ot(ci,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Fy(r,e,t)})},updateCommon:Pp,contain:kp}};function sx(r){return{createCover:function(e,t){return s2({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=o2(e),a=ul(t[0][r],t[1][r]),n=ho(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=i2(e,t);if(o!==vi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),l2(e,t,l,n)},updateCommon:Pp,contain:kp}}const Hy=PH;function v2(r){return r=Wy(r),function(e){return pA(e,r)}}function c2(r,e){return r=Wy(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function d2(r,e,t){var a=Wy(r);return function(n,i){return a.contain(i[0],i[1])&&!Oh(n,e,t)}}function Wy(r){return vt.create(r)}var GH=["axisLine","axisTickLabel","axisName"],FH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new Hy(a.getZr())).on("brush",U(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!HH(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=$H(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=B({strokeContainThreshold:f},v),d=new ga(t,c);C(GH,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,t,s,f,n),ml(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=vt.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:v2(h),isTargetByCursor:d2(h,s,i),getLinearBrushOtherExtent:c2(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(WH(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=G(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Wt);function HH(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function WH(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function $H(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const UH=FH;var YH={type:"axisAreaSelect",event:"axisAreaSelected"};function ZH(r){r.registerAction(YH,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var XH={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function p2(r){r.registerComponentView(fH),r.registerComponentModel(vH),r.registerCoordinateSystem("parallel",bH),r.registerPreprocessor(nH),r.registerComponentModel(ex),r.registerComponentView(UH),fo(r,"parallel",ex,XH),ZH(r)}function qH(r){yt(p2),r.registerChartView(K4),r.registerSeriesModel(tH),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,aH)}var KH=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),QH=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new KH},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){ca(this)},e.prototype.downplay=function(){da(this)},e}(mt),JH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new QH,g=it(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),w=d.node1.getModel(),x=w.get("localX"),b=w.get("localY"),T=d.node2.getLayout(),A=d.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=d.getLayout(),L,P,R,E,N,O,V,F;p.shape.extent=Math.max(1,I.dy),p.shape.orient=c,c==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(b!=null?b*f:S.y)+S.dy,R=(D!=null?D*u:T.x)+I.ty,E=M!=null?M*f:T.y,N=L,O=P*(1-_)+E*_,V=R,F=P*_+E*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(b!=null?b*f:S.y)+I.sy,R=D!=null?D*u:T.x,E=(M!=null?M*f:T.y)+I.ty,N=L*(1-_)+R*_,O=P,V=L*_+R*(1-_),F=E),p.setShape({x1:L,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:V,cpy2:F}),p.useStyle(m.getItemStyle()),lx(p.style,c,d);var W=""+y.get("value"),Z=ae(y,"edgeLabel");ve(p,Z,{labelFetcher:{getFormattedLabel:function(dt,St,pt,et,gt,st){return t.getFormattedLabel(dt,St,"edge",et,Hr(gt,Z.normal&&Z.normal.get("formatter"),W),st)}},labelDataIndex:d.dataIndex,defaultText:W}),p.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");he(p,y,"lineStyle",function(dt){var St=dt.getItemStyle();return lx(St,c,d),St}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var J=Q.get("focus");Ht(p,J==="adjacency"?d.getAdjacentDataIndices():J==="trajectory"?d.getTrajectoryDataIndices():J,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new wt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ve(S,ae(g),{labelFetcher:{getFormattedLabel:function(x,b){return t.getFormattedLabel(x,b,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),he(S,g),s.add(S),h.setItemGraphicEl(d.dataIndex,S),it(S).dataType="node";var w=_.get("focus");Ht(S,w==="adjacency"?d.getAdjacentDataIndices():w==="trajectory"?d.getTrajectoryDataIndices():w,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,p){var g=h.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(jH(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Bt);function lx(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");$(a)&&$(n)&&(r.fill=new nr(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function jH(r,e,t){var a=new wt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Vt(a,{shape:{width:r.width+20}},e,t),a}const tW=JH;var eW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Nt(o[l],this,a));if(i&&n){var u=KM(i,n,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ne("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,n).data.name;return ne("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Gt);const rW=eW;function aW(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=nW(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;oW(u);var h=Pt(u,function(p){return p.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),d=t.get("nodeAlign");iW(u,f,a,n,o,s,v,c,d)})}function nW(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function iW(r,e,t,a,n,i,o,s,l){sW(r,e,t,n,i,s,l),hW(r,e,i,n,a,o,s),SW(r,s)}function oW(r){C(r,function(e){var t=Za(e.outEdges,Wf),a=Za(e.inEdges,Wf),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function sW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),p.setLayout({depth:y?g.depth:h},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&lW(r,o,i,b);var T=i==="vertical"?(n-t)/b:(a-t)/b;fW(r,T,i)}function g2(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function lW(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,dW(s,l,o),kc(s,n,t,a,o),_W(s,l,o),kc(s,n,t,a,o)}function vW(r,e){var t=[],a=e==="vertical"?"y":"x",n=Bd(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),C(n.keys,function(i){t.push(n.buckets.get(i))}),t}function cW(r,e,t,a,n,i){var o=1/0;C(r,function(s){var l=s.length,u=0;C(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;var d=n==="vertical"?a:t;if(u=f-e-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function dW(r,e,t){C(r.slice().reverse(),function(a){C(a,function(n){if(n.outEdges.length){var i=Za(n.outEdges,pW,t)/Za(n.outEdges,Wf);if(isNaN(i)){var o=n.outEdges.length;i=o?Za(n.outEdges,gW,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-en(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-en(n,t))*e;n.setLayout({y:l},!0)}}})})}function pW(r,e){return en(r.node2,e)*r.getValue()}function gW(r,e){return en(r.node2,e)}function yW(r,e){return en(r.node1,e)*r.getValue()}function mW(r,e){return en(r.node1,e)}function en(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Wf(r){return r.getValue()}function Za(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),C(a,function(s){var l=new fe({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&C(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function wW(r){r.registerChartView(tW),r.registerSeriesModel(rW),r.registerLayout(aW),r.registerVisual(xW),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var y2=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],d=c[f].get("type"),p=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];C(g,function(S,w){var x;z(S)?(x=S.slice(),S.unshift(w)):z(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Pf(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Pf(p),dimsDef:m.slice()}];return Ro(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ot(HA,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),m2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Gt);Jt(m2,y2,!0);const bW=m2;var TW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=ux(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(br(h),_2(v,h,i,u)):h=ux(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Bt),AW=function(){function r(){}return r}(),CW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new AW},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var kW={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==_e){var a="";It(a)}var n=EW(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function OW(r){r.registerSeriesModel(bW),r.registerChartView(MW),r.registerLayout(IW),r.registerTransform(kW)}var NW=["color","borderColor"],BW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){on(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&fx(u,h))return;var v=Oc(h,f,!0);Vt(v,{shape:{points:h.ends}},t,f),Nc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&fx(u,c)){i.remove(v);return}v?(Mt(v,{shape:{points:c.ends}},t,f),br(v)):v=Oc(c),Nc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),hx(t,this.group);var a=t.get("clip",!0)?kh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=Oc(s);Nc(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){hx(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Bt),VW=function(){function r(){}return r}(),zW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new VW},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(mt);function Oc(r,e,t){var a=r.ends;return new zW({shape:{points:t?GW(a,r):a},z2:100})}function fx(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(NW);e.useStyle(i),e.style.fill=null,e.style.stroke=n}const HW=BW;var S2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Gt);Jt(S2,y2,!0);const WW=S2;function $W(r){!r||!z(r.series)||C(r.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var UW=["itemStyle","borderColor"],YW=["itemStyle","borderColor0"],ZW=["itemStyle","borderColorDoji"],XW=["itemStyle","color"],qW=["itemStyle","color0"],KW={seriesType:"candlestick",plan:Io(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?XW:qW)}function a(i,o){return o.get(i===0?ZW:i>0?UW:YW)}if(!e.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}};const QW=KW;var JW={seriesType:"candlestick",plan:Io(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=jW(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:c};function c(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),w=m.get(f,y),x=m.get(h,y),b=m.get(v,y),T=Math.min(S,w),A=Math.max(S,w),D=N(T,_),M=N(A,_),I=N(x,_),L=N(b,_),P=[];O(P,M,0),O(P,D,1),P.push(F(L),F(M),F(I),F(D));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:vx(m,y,S,w,f,E),initBaseline:S>w?M[i]:D[i],ends:P,brushRect:V(x,b,_)})}function N(W,Z){var Q=[];return Q[n]=Z,Q[i]=W,isNaN(Z)||isNaN(W)?[NaN,NaN]:e.dataToPoint(Q)}function O(W,Z,Q){var J=Z.slice(),dt=Z.slice();J[n]=qu(J[n]+a/2,1,!1),dt[n]=qu(dt[n]-a/2,1,!0),Q?W.push(J,dt):W.push(dt,J)}function V(W,Z,Q){var J=N(W,Q),dt=N(Z,Q);return J[n]-=a/2,dt[n]-=a/2,{x:J[0],y:J[1],width:a,height:dt[1]-J[1]}}function F(W){return W[n]=qu(W[n],1),W}}function d(p,g){for(var y=Gr(p.count*4),m=0,_,S=[],w=[],x,b=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var A=b.get(s,x),D=b.get(u,x),M=b.get(f,x),I=b.get(h,x),L=b.get(v,x);if(isNaN(A)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=vx(b,x,D,M,f,T),S[n]=A,S[i]=I,_=e.dataToPoint(S,null,w),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=e.dataToPoint(S,null,w),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function vx(r,e,t,a,n,i){var o;return t>a?o=-1:t0?r.get(n,e-1)<=a?1:-1:1,o}function jW(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(ft(r.get("barMaxWidth"),n),n),o=H(ft(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?H(s,n):Math.max(Math.min(n/2,i),o)}const t$=JW;function e$(r){r.registerChartView(HW),r.registerSeriesModel(WW),r.registerPreprocessor($W),r.registerVisual(QW),r.registerLayout(t$)}function cx(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var r$=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new Cl(t,a),o=new at;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;K(h)?v=h(n):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Oa(t.__p1,t.__cp1)+Oa(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ie,f=Td;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=t.__t<1?v[0]-h[0]:h[0]-v[0],d=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(x2);const v$=h$;var c$=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),d$=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c$},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,d=(f+v)/2-(h-u)*i;t.quadraticCurveTo(c,d,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+d)/2-(v-p)*o,y=(v+p)/2-(d-h)*o;if(MT(h,v,g,y,d,p,s,t,a))return l}else if(Ea(h,v,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const g$=p$;var y$={seriesType:"lines",plan:Io(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&kh(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=b2.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new g$:new Ny(o?i?v$:w2:i?x2:Oy),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Bt);const _$=m$;var S$=typeof Uint32Array>"u"?Array:Uint32Array,x$=typeof Float64Array>"u"?Array:Float64Array;function dx(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),hg([n,t[0],t[1]])}))}var w$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],dx(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(dx(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=sf(this._flatCoords,a.flatCoords),this._flatCoordsOffset=sf(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Gt);const b$=w$;function Mu(r){return r instanceof Array||(r=[r,r]),r}var T$={seriesType:"lines",reset:function(r){var e=Mu(r.get("symbol")),t=Mu(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=Mu(s.getShallow("symbol",!0)),u=Mu(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};const A$=T$;function C$(r){r.registerChartView(_$),r.registerSeriesModel(b$),r.registerLayout(b2),r.registerVisual(A$)}var D$=256,M$=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=qa.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*D+T),w[x++]=I[M],w[x++]=I[M+1],w[x++]=I[M+2],w[x++]=I[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=qa.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const I$=M$;function L$(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function px(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var R$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):px(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(px(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){on(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=_i(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),d=s.getAxis("y");u=c.getBandWidth()+.5,f=d.getBandWidth()+.5,h=c.scale.getExtent(),v=d.scale.getExtent()}for(var p=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),w=ae(t),x=t.getModel("emphasis"),b=x.get("focus"),T=x.get("blurScope"),A=x.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;Mh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);I=new wt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(D[1],M)))continue;I=new wt({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:L})}if(g.hasItemOption){var N=g.getItemModel(M),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),b=O.get("focus"),T=O.get("blurScope"),A=O.get("disabled"),w=ae(N)}I.shape.r=S;var V=t.getRawValue(M),F="-";V&&V[2]!=null&&(F=V[2]+""),ve(I,w,{labelFetcher:t,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:F}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,Ht(I,b,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new I$;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,T,A){var D=t.dataToPoint([b,T]);return D[0]-=v,D[1]-=c,D.push(A),D}),S=n.getExtent(),w=n.type==="visualMap.continuous"?P$(S,n.option.range):L$(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new ce({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Bt);const E$=R$;var k$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return _a(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=xl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const O$=k$;function N$(r){r.registerChartView(E$),r.registerSeriesModel(O$)}var B$=["itemStyle","borderWidth"],gx=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],zc=new qr,V$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:gx[+f],categoryDim:gx[1-+f]};return o.diff(s).add(function(c){if(o.hasValue(c)){var d=mx(o,c),p=yx(o,c,d,v),g=_x(o,v,p);o.setItemGraphicEl(c,g),i.add(g),xx(g,v,p)}}).update(function(c,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(c)){i.remove(p);return}var g=mx(o,c),y=yx(o,c,g,v),m=I2(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(c,null),p=null),p?U$(p,v,y):p=_x(o,v,y,!0),o.setItemGraphicEl(c,p),p.__pictorialSymbolMeta=y,i.add(p),xx(p,v,y)}).remove(function(c){var d=s.getItemGraphicEl(c);d&&Sx(s,c,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){Sx(i,it(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Bt);function yx(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};z$(t,i,n,a,v),G$(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),F$(t,v.symbolScale,u,a,v);var c=v.symbolSize,d=yi(t.get("symbolOffset"),c);return H$(t,c,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function z$(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var h=[Gc(s,o[0])-l,Gc(s,o[1])-l];h[1]0?1:-1}function Gc(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function G$(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),d;z(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=H(d[h.index],v),d[f.index]=H(d[f.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function F$(r,e,t,a,n){var i=r.get(B$)||0;i&&(zc.attr({scaleX:e[0],scaleY:e[1],rotation:t}),zc.updateTransform(),i/=zc.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function H$(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,d=h.pxSign,p=Math.max(e[c.index]+s,0),g=p;if(a){var y=Math.abs(l),m=oe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[c.index]),w=Math.max(p+S*2,0),x=_?0:S*2,b=cT(a),T=b?a:bx((y+x)/w),A=y-T*p;S=A/2/(_?T:Math.max(T-1,1)),w=p+S*2,x=_?0:S*2,!b&&a!=="fixed"&&(T=u?bx((Math.abs(u)+x)/w):0),g=T*w-x,h.repeatTimes=T,h.symbolMargin=S}var D=d*(g/2),M=h.pathPosition=[];M[v.index]=t[v.wh]/2,M[c.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=h.bundlePosition=[];I[v.index]=t[v.xy],I[c.index]=t[c.xy];var L=h.barRectShape=B({},t);L[c.wh]=d*Math.max(Math.abs(t[c.wh]),Math.abs(M[c.index]+D)),L[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function T2(r){var e=r.symbolPatternSize,t=Qt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function A2(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for($y(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function C2(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ao(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=T2(t),n.add(i),ao(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function D2(r,e,t){var a=B({},e.barRectShape),n=r.__pictorialBarRect;n?ao(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new wt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function M2(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=B({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Mt(n,{shape:i},s,l);else{i[o.wh]=0,n=new wt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Sl[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function mx(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=W$,t.isAnimationEnabled=$$,t}function W$(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function $$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _x(r,e,t,a){var n=new at,i=new at;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?A2(n,e,t):C2(n,e,t),D2(n,t,a),M2(n,e,t,a),n.__pictorialShapeStr=I2(r,t),n.__pictorialSymbolMeta=t,n}function U$(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Mt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?A2(r,e,t,!0):C2(r,e,t,!0),D2(r,t,!0),M2(r,e,t,!0)}function Sx(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];$y(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),C(i,function(o){Qa(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function I2(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function $y(r,e,t){C(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function ao(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&Sl[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function xx(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");$y(r,function(p){if(p instanceof ce){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;ve(d,ae(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:uo(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Ht(r,f,h,i.get("disabled"))}function bx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const Y$=V$;var Z$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=sn(Nf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Nf);const X$=Z$;function q$(r){r.registerChartView(Y$),r.registerSeriesModel(X$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(fD,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hD("pictorialBar"))}var K$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new pa(this._layersSeries||[],l,v,v),d=[];c.add(U(p,this,"add")).update(U(p,this,"update")).remove(U(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],w=[],x,b=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function a6(r){r.registerChartView(J$),r.registerSeriesModel(t6),r.registerLayout(e6),r.registerProcessor(Il("themeRiver"))}var n6=2,i6=4,o6=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=n6,o.textConfig={inside:!0},it(o).seriesIndex=a.seriesIndex;var s=new Ct({z2:i6,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;it(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=B({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=so(c,o));var d=Kn(l.getModel("itemStyle"),h,!0);B(h,d),C(Me,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var w=Kn(S,h);w&&(_.shape=w)}),t?(s.setShape(h),s.shape.r=f.r0,Vt(s,{shape:{r:f.r}},n,a.dataIndex)):(Mt(s,{shape:h},n),br(s)),s.useStyle(v),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Ht(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(D=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=D*u+o.cx,S.y=D*f+o.cy;var L=g(m,"rotate"),P=0;L==="radial"?(P=mr(-l),P>Math.PI/2&&PMath.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):Dt(L)&&(P=L*Math.PI/180),S.rotation=mr(P)});function g(y,m){var _=y.get(m);return _??i.get(m)}v.dirtyStyle()},e}(Ne);const Ax=o6;var Op="sunburstRootToNode",Cx="sunburstHighlight",s6="sunburstUnhighlight";function l6(r){r.registerAction({type:Op,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=il(e,[Op],n);if(o){var s=n.getViewRoot();s&&(e.direction=Iy(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:Cx,update:"none"},function(e,t,a){e=B({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=il(e,[Cx],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(B(e,{type:"highlight"}))}),r.registerAction({type:s6,update:"updateView"},function(e,t,a){e=B({},e),a.dispatchAction(B(e,{type:"downplay"}))})}var u6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];d(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function d(m,_){if(m.length===0&&_.length===0)return;new pa(_,m,S,S).add(w).update(w).remove(ot(w,null)).execute();function S(x){return x.getId()}function w(x,b){var T=x==null?null:m[x],A=b==null?null:_[b];p(T,A)}}function p(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new Ax(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new Ax(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";bf(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Op,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Bt);const f6=u6;var h6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};L2(n);var i=this._levelModels=G(t.levels||[],function(l){return new Nt(l,this,a)},this),o=My.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Bh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){kM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Gt);function L2(r){var e=0;C(r.children,function(a){L2(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const v6=h6;var Dx=Math.PI/180;function c6(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(n[0],o),f=H(n[1],s),h=H(i[0],l/2),v=H(i[1],l/2),c=-a.get("startAngle")*Dx,d=a.get("minAngle")*Dx,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&P2(g,m);var _=0;C(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),w=Math.PI/(S||_)*2,x=g.depth>0,b=g.height-(x?-1:1),T=(v-h)/(b||1),A=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=A?1:-1,I=function(E,N){if(E){var O=N;if(E!==p){var V=E.getValue(),F=S===0&&D?w:V*w;F1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&$(s)&&(s=Dd(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");B(u,l)})})}function g6(r){r.registerChartView(f6),r.registerSeriesModel(v6),r.registerLayout(ot(c6,"sunburst")),r.registerProcessor(ot(Il,"sunburst")),r.registerVisual(p6),l6(r)}var Mx={color:"fill",borderColor:"stroke"},y6={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ua=bt(),m6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return _a(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=ua(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Gt);const _6=m6;function S6(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function x6(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(S6,r)}}}function w6(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function b6(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:U(w6,r)}}}function T6(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function A6(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(T6,r)}}}function C6(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function D6(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:U(C6,r)}}}function M6(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function R2(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Y(r,"text")))}function E2(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},Y(a,"text")&&(o.text=a.text),Y(a,"rich")&&(o.rich=a.rich),Y(a,"textFill")&&(o.fill=a.textFill),Y(a,"textStroke")&&(o.stroke=a.textStroke),Y(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Y(a,"fontSize")&&(o.fontSize=a.fontSize),Y(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Y(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Y(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Y(a,"textPosition")&&(n.position=a.textPosition),Y(a,"textOffset")&&(n.offset=a.textOffset),Y(a,"textRotation")&&(n.rotation=a.textRotation),Y(a,"textDistance")&&(n.distance=a.textDistance)}return Ix(o,r),C(o.rich,function(l){Ix(l,l)}),{textConfig:n,textContent:i}}function Ix(r,e){e&&(e.font=e.textFont||e.font,Y(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Y(e,"textAlign")&&(r.align=e.textAlign),Y(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Y(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Y(e,"textWidth")&&(r.width=e.textWidth),Y(e,"textHeight")&&(r.height=e.textHeight),Y(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Y(e,"textPadding")&&(r.padding=e.textPadding),Y(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Y(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Y(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Y(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Y(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Y(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Y(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Lx(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";Px(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,C(e.rich,function(s){Px(s,s)}),a}function Px(r,e){e&&(Y(e,"fill")&&(r.textFill=e.fill),Y(e,"stroke")&&(r.textStroke=e.fill),Y(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Y(e,"font")&&(r.font=e.font),Y(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Y(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Y(e,"fontSize")&&(r.fontSize=e.fontSize),Y(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Y(e,"align")&&(r.textAlign=e.align),Y(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Y(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Y(e,"width")&&(r.textWidth=e.width),Y(e,"height")&&(r.textHeight=e.height),Y(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Y(e,"padding")&&(r.textPadding=e.padding),Y(e,"borderColor")&&(r.textBorderColor=e.borderColor),Y(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Y(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Y(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Y(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Y(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Y(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Y(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Y(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Y(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Y(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var k2={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Rx=_t(k2);$r(Yr,function(r,e){return r[e]=1,r},{});Yr.join(", ");var $f=["","style","shape","extra"],vo=bt();function Uy(r,e,t,a,n){var i=r+"Animation",o=xo(r,a,n)||{},s=vo(e).userDuring;return o.duration>0&&(o.during=s?U(E6,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,t[i]),o}function ef(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=vo(r),u=e.style;l.userDuring=e.during;var f={},h={};if(O6(r,e,h),kx("shape",e,h),kx("extra",e,h),!i&&s&&(k6(r,e,f),Ex("shape",r,e,f),Ex("extra",r,e,f),N6(r,e,u,f)),h.style=u,I6(r,h,o),P6(r,e),s)if(i){var v={};C($f,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),B(d?v[d]:v,p.enterFrom))});var c=Uy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else L6(r,e,n||0,t,f);O2(r,e),u?r.dirty():r.markRedraw()}function O2(r,e){for(var t=vo(r).leaveToProps,a=0;a<$f.length;a++){var n=$f[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=vo(r).leaveToProps={}),n&&(t[n]=t[n]||{}),B(n?t[n]:t,i.leaveTo))}}function Gh(r,e,t,a){if(r){var n=r.parent,i=vo(r).leaveToProps;if(i){var o=Uy("update",r,e,t,0);o.done=function(){n.remove(r),a&&a()},r.animateTo(i,o)}else n.remove(r),a&&a()}}function oi(r){return r==="all"}function I6(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i0&&r.animateFrom(n,i)}}function P6(r,e){Y(e,"silent")&&(r.silent=e.silent),Y(e,"ignore")&&(r.ignore=e.ignore),r instanceof sr&&Y(e,"invisible")&&(r.invisible=e.invisible),r instanceof mt&&Y(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Er={},R6={setTransform:function(r,e){return Er.el[r]=e,this},getTransform:function(r){return Er.el[r]},setShape:function(r,e){var t=Er.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Er.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Er.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Er.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Er.el.extra||(Er.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Er.el.extra;if(e)return e[r]}};function E6(){var r=this,e=r.el;if(e){var t=vo(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Er.el=e,a(R6)}}function Ex(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),oi(l))B(o,i);else for(var u=Rt(l),f=0;f=0){!o&&(o=a[r]={});for(var c=_t(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var d=_t(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,V=m(R,Ha).getItemStyle();N!=null&&(V.fill=N),O!=null&&(V.opacity=O);var F={inheritColor:$(N)?N:"#000"},W=_(R,Ha),Z=Ot(W,null,F,!1,!0);Z.text=W.getShallow("show")?ft(r.getFormattedLabel(R,Ha),uo(e,R)):null;var Q=xf(W,F,!1);return A(P,V),V=Lx(V,Z,Q),P&&T(V,P),V.legacy=!0,V}function b(P,R){R==null&&(R=u);var E=m(R,fa).getItemStyle(),N=_(R,fa),O=Ot(N,null,null,!0,!0);O.text=N.getShallow("show")?Hr(r.getFormattedLabel(R,fa),r.getFormattedLabel(R,Ha),uo(e,R)):null;var V=xf(N,null,!0);return A(P,E),E=Lx(E,O,V),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)Y(R,E)&&(P[E]=R[E])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function D(P,R){if(R==null&&(R=u),Y(Mx,P)){var E=e.getItemVisual(R,"style");return E?E[Mx[P]]:null}if(Y(y6,P))return e.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return qB(j({axis:R},P))}}function I(){return t.getCurrentSeriesIndices()}function L(P){return mA(P,t)}}function Z6(r){var e={};return C(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function $c(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Ky(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Ht(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Ky(r,e,t,a,n,i){var o=-1,s=e;e&&z2(e,a,n)&&(o=ct(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Xy(a),s&&H6(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ze.normal.cfg=Ze.normal.conOpt=Ze.emphasis.cfg=Ze.emphasis.conOpt=Ze.blur.cfg=Ze.blur.conOpt=Ze.select.cfg=Ze.select.conOpt=null,Ze.isLegacy=!1,q6(u,t,a,n,l,Ze),X6(u,t,a,n,l),qy(r,u,t,a,Ze,n,l),Y(a,"info")&&(ua(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function z2(r,e,t){var a=ua(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&tU(i)&&G2(i)!==a.customPathData||n==="image"&&Y(o,"image")&&o.image!==a.customImagePath}function X6(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&z2(o,i,a)&&(o=null),o||(o=Xy(i),r.setClipPath(o)),qy(null,o,e,i,null,a,n)}}function q6(r,e,t,a,n,i){if(!r.isGroup){Nx(t,null,i),Nx(t,fa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Xy(o),r.setTextContent(f)),qy(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var d=e.childAt(c);Q6(e,d,n)}}}function Q6(r,e,t){e&&Gh(e,ua(r).option,t)}function J6(r){new pa(r.oldChildren,r.newChildren,Bx,Bx,r).add(Vx).update(Vx).remove(j6).execute()}function Bx(r,e){var t=r&&r.name;return t??G6+e}function Vx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Ky(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function j6(r){var e=this.context,t=e.oldChildren[r];t&&Gh(t,ua(t).option,e.seriesModel)}function G2(r){return r&&(r.pathData||r.d)}function tU(r){return r&&(Y(r,"pathData")||Y(r,"d"))}function eU(r){r.registerChartView($6),r.registerSeriesModel(_6)}var Fn=bt(),zx=rt,Uc=U,rU=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new at,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=ot(Gx,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}Hx(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=xy(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=Fn(e).pointerEl=new Sl[i.type](zx(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=Fn(e).labelEl=new Ct(zx(t.label));e.add(i),Fx(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=Fn(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=Fn(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),Fx(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=_l(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ha(u.event)},onmousedown:Uc(this._onHandleDragMove,this,0,0),drift:Uc(this._onHandleDragMove,this),ondragend:Uc(this._onHandleDragEnd,this)}),a.add(n)),Hx(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Lo(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){Gx(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Yc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Yc(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Yc(n)),Fn(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Js(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function Gx(r,e,t,a){F2(Fn(t).lastProp,a)||(Fn(t).lastProp=a,e?Mt(t,a,r):(t.stopAnimation(),t.attr(a)))}function F2(r,e){if(tt(r)&&tt(e)){var t=!0;return C(e,function(a,n){t=t&&F2(r[n],a)}),!!t}else return r===e}function Fx(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Yc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Hx(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}const Jy=rU;function jy(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function H2(r,e,t,a,n){var i=t.get("value"),o=W2(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ao(s.get("padding")||0),u=s.getFont(),f=pl(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),aU(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function aU(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function W2(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:vy(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),$(o)?i=o.replace("{value}",i):K(o)&&(i=o(s))}return i}function tm(r,e,t){var a=or();return pi(a,a,t.rotation),Ur(a,a,t.position),xr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function $2(r,e,t,a,n,i){var o=ga.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),H2(e,a,n,i,{position:tm(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function em(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function U2(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function Wx(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var nU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=$x(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=jy(i),c=iU[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var d=_p(l.model,n);$2(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=_p(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=tm(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=$x(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:d[f]}},e}(Jy);function $x(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var iU={line:function(r,e,t){var a=em([e,t[0]],[e,t[1]],Ux(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:U2([e-a/2,t[0]],[a,n],Ux(r))}}};function Ux(r){return r.dim==="x"?0:1}const oU=nU;var sU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Tt);const lU=sU;var ia=bt(),uU=C;function Y2(r,e,t){if(!At.node){var a=e.getZr();ia(a).records||(ia(a).records={}),fU(a,e);var n=ia(a).records[r]||(ia(a).records[r]={});n.handler=t}}function fU(r,e){if(ia(r).initialized)return;ia(r).initialized=!0,t("click",ot(Yx,"click")),t("mousemove",ot(Yx,"mousemove")),t("globalout",vU);function t(a,n){r.on(a,function(i){var o=cU(e);uU(ia(r).records,function(s){s&&n(s,i,o.dispatchAction)}),hU(o.pendings,e)})}}function hU(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function vU(r,e,t){r.handler("leave",null,t)}function Yx(r,e,t,a){e.handler(r,t,a)}function cU(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Vp(r,e){if(!At.node){var t=e.getZr(),a=(ia(t).records||{})[r];a&&(ia(t).records[r]=null)}}var dU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Y2("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Vp("axisPointer",a)},e.prototype.dispose=function(t,a){Vp("axisPointer",a)},e.type="axisPointer",e}(Wt);const pU=dU;function Z2(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=li(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=i.mapDimension(v),p=[];p[c]=i.get(d,o),p[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var Zx=bt();function gU(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||U(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){rf(n)&&(n=Z2({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=rf(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||rf(n),v={},c={},d={list:[],map:{}},p={showPointer:ot(mU,c),showTooltip:ot(_U,d)};C(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);C(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=bU(u,S);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&Xx(S,T,p,!1,v)}})});var g={};return C(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&C(_.axesInfo,function(S,w){var x=c[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,qx(S),qx(y)))),g[y.key]=b}})}),C(g,function(y,m){Xx(f[m],y,p,!0,v)}),SU(c,f,v),xU(d,n,r,o),wU(f,o,t),v}}function Xx(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=yU(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function yU(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=h,i.length=0),C(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function mU(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function _U(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=nl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function SU(r,e,t){var a=t.axesInfo=[];C(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function xU(r,e,t,a){if(rf(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function wU(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=Zx(a)[n]||{},o=Zx(a)[n]={};C(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&C(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];C(i,function(u,f){!o[f]&&l.push(u)}),C(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function bU(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function qx(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function rf(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function El(r){Si.registerAxisPointerClass("CartesianAxisPointer",oU),r.registerComponentModel(lU),r.registerComponentView(pU),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fG(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gU)}function TU(r){yt(_M),yt(El)}var AU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=jy(i),d=DU[v](s,l,h,f);d.style=c,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=CU(a,n,i,l,p);H2(t,n,i,o,g)},e}(Jy);function CU(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=or();pi(v,v,s),Ur(v,v,[a.cx,a.cy]),u=xr([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,d=ga.innerTextLayout(s,c*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var DU={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:em(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Wx(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:Wx(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}};const MU=AU;var IU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Tt);const LU=IU;var rm=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Kt).models[0]},e.type="polarAxis",e}(Tt);Jt(rm,Al);var PU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(rm),RU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(rm),am=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(Ar);am.prototype.dataToRadius=Ar.prototype.dataToCoord;am.prototype.radiusToData=Ar.prototype.coordToData;const EU=am;var kU=bt(),nm=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=pl(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),d=kU(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-c)<=1&&Math.abs(g-o)<=1&&p>c?c=p:(d.lastTickCount=o,d.lastAutoInterval=c),c},e}(Ar);nm.prototype.dataToAngle=Ar.prototype.dataToCoord;nm.prototype.angleToData=Ar.prototype.coordToData;const OU=nm;var X2=["radius","angle"],NU=function(){function r(e){this.dimensions=X2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new EU,this._angleAxis=new OU,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=Kx(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Kx(t);return n===this?this.pointToData(a):null},r}();function Kx(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const BU=NU;function VU(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function zU(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();C(Rf(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),C(Rf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),lo(a.scale,a.model),lo(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function GU(r){return r.mainType==="angleAxis"}function Qx(r,e){if(r.type=e.get("type"),r.scale=Rh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),GU(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var FU={dimensions:X2,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new BU(n+"");i.update=zU;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Qx(o,l),Qx(s,u),VU(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Kt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}};const HU=FU;var WU=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Iu(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Lu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function Jx(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var $U=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=rt(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});Jx(u),Jx(s),C(WU,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&UU[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Si),UU={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=Lu(t),l=s?0:1,u;i[l]===0?u=new qr({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new dh({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Lu(t)],u=G(a,function(f){return new se({shape:Iu(t,[l,l+s],f.coord)})});r.add(er(u,{style:j(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Lu(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];tt(w)&&w.textStyle&&(c=new Nt(w.textStyle,l,l.ecModel))}var x=new Ct({silent:ga.isLabelSilent(e),style:Ot(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var b=ga.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=h.rawLabel,it(x).eventData=b}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",L=b;w&&(a[f][M]||(a[f][M]={p:b,n:b}),L=a[f][M][I]);var P=void 0,R=void 0,E=void 0,N=void 0;if(d.dim==="radius"){var O=d.dataToCoord(D)-b,V=l.dataToCoord(M);Math.abs(O)=N})}}})}function t8(r){var e={};C(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=K2(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=q2(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var d=H(a.get("barWidth"),f),p=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[c].width&&(d=Math.min(h.remainedWidth,d),v[c].width=d,h.remainedWidth-=d),p&&(v[c].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),C(i,function(p,g){var y=p.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=jx(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=jx(t);return n===this?this.pointToData(a):null},r}();function jx(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function c8(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new v8(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",Kt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var d8={create:c8,dimensions:J2};const p8=d8;var tw=["x","y"],g8=["width","height"],y8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Xc(l,1-Zf(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=jy(i),c=m8[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var d=zp(n);$2(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=zp(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=tm(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Zf(o),u=Xc(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=Xc(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(Jy),m8={line:function(r,e,t){var a=em([e,t[0]],[e,t[1]],Zf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:U2([e-a/2,t[0]],[a,n],Zf(r))}}};function Zf(r){return r.isHorizontal()?0:1}function Xc(r,e){var t=r.getRect();return[t[tw[e]],t[tw[e]]+t[g8[e]]]}const _8=y8;var S8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Wt);function x8(r){yt(El),Si.registerAxisPointerClass("SingleAxisPointer",_8),r.registerComponentView(S8),r.registerComponentView(u8),r.registerComponentModel(Zc),fo(r,"single",Zc,Zc.defaultOption),r.registerCoordinateSystem("single",p8)}var w8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Co(t);r.prototype.init.apply(this,arguments),ew(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),ew(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Tt);function ew(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=G([0,1],function(i){return Lk(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ja(r,e,{type:"box",ignoreSize:n})}const b8=w8;var T8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new wt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){d(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Ve({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return $(t)&&t?Dk(t,a):K(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Ct({z2:30,style:Ot(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(a=qd(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/qc)-Math.floor(t[0].time/qc)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function rw(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}const D8=C8;function M8(r){r.registerComponentModel(b8),r.registerComponentView(A8),r.registerCoordinateSystem("calendar",D8)}function I8(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function aw(r,e){var t;return C(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function L8(r,e,t){var a=B({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(ht(n,a,!0),Ja(n,a,{ignoreSize:!0}),BA(t,n),Pu(t,n),Pu(t,n,"shape"),Pu(t,n,"style"),Pu(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var j2=["transition","enterFrom","leaveTo"],P8=j2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Pu(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?j2:P8,n=0;n=0;f--){var h=n[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,y=Je(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Th(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Je(c).isNew&&S){for(var w=h.transition,x={},b=0;b=0)?x[T]=A:c[T]=A}Mt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){af(n,Je(n).option,a,t._lastGraphicModel)}),this._elMap=X()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Wt);function Gp(r){var e=Y(nw,r)?nw[r]:Ng(r),t=new e({});return Je(t).type=r,t}function iw(r,e,t,a){var n=Gp(t);return e.add(n),a.set(r,n),Je(n).id=r,Je(n).isNew=!0,n}function af(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){af(i,e,t,a)}),Gh(r,e,a),t.removeKey(Je(r).id))}function ow(r,e,t,a){r.isGroup||C([["cursor",sr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];Y(e,i)?r[i]=ft(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),C(_t(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=K(i)?i:null}}),Y(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function O8(r){return r=B({},r),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(NA),function(e){delete r[e]}),r}function N8(r,e,t){var a=it(r).eventData;!r.silent&&!r.ignore&&!a&&(a=it(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function B8(r){r.registerComponentModel(E8),r.registerComponentView(k8),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var sw=["x","y","radius","angle","single"],V8=["cartesian2d","polar","singleAxis"];function z8(r){var e=r.get("coordinateSystem");return ct(V8,e)>=0}function Wa(r){return r+"Axis"}function G8(r,e){var t=X(),a=[],n=X();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var d=t.get(v);d&&d[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function tI(r){var e=r.ecModel,t={infoList:[],infoMap:X()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Wa(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Kc=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),F8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=lw(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=lw(t);ht(this.option,t,!0),ht(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=X(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return C(sw,function(n){var i=this.getReferringComponents(Wa(n),sR);if(i.specified){a=!0;var o=new Kc;C(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new Kc;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Kt).models[0];c&&C(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",Kt).models[0]&&v.add(d.componentIndex)})}}}i&&C(sw,function(u){if(i){var f=n.findComponents({mainType:Wa(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Kc;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Wa(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){C(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Wa(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;C(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(d=!0),w&&(p=!0)}return g&&d&&p})}else Zi(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Zi(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Zi(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Lt(a[0]+o,a,[0,100],!0):i!=null&&(o=Lt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=fT(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function X8(r,e,t){var a=[1/0,-1/0];Zi(t,function(o){mV(a,o.getData(),e)});var n=r.getAxisModel(),i=yD(n.axis.scale,n,a).calculate();return[i.min,i.max]}const q8=Z8;var K8={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Wa(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new q8(n,i,s,r),t.push(o.__dzAxisProxy))});var a=X();return C(t,function(n){C(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const Q8=K8;function J8(r){r.registerAction("dataZoom",function(e,t){var a=G8(t,e);C(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var fw=!1;function om(r){fw||(fw=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Q8),J8(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function j8(r){r.registerComponentModel(W8),r.registerComponentView(Y8),om(r)}var tr=function(){function r(){}return r}(),eI={};function Xi(r,e){eI[r]=e}function rI(r){return eI[r]}var t7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(a,n){var i=rI(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ht(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Tt);const e7=t7;function r7(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=te(a,i,n);ai(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Th(r,a,i,n)}function aI(r,e){var t=Ao(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new wt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var a7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];C(u,function(d,p){h.push(p)}),new pa(this._featureNames||[],h).add(v).update(v).remove(ot(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],y=h[p],m=u[g],_=new Nt(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(n7(g))S={onclick:_.option.onclick,featureName:g};else{var w=rI(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=To("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof tr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(b,T){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[b]=T,D[b]&&(T==="emphasis"?ca:da)(D[b])},S instanceof tr&&S.render&&S.render(_,a,n,i)}function c(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof tr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;$(_)?(w={},w[g]=_):w=_,$(S)?(x={},x[g]=S):x=S;var b=d.iconPaths={};C(w,function(T,A){var D=_l(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var I=new Ct({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(I),wo({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),D.__title=x[A],D.on("mouseover",function(){var L=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?ca:da)(D),o.add(D),D.on("click",U(p.onclick,p,a,n,A)),b[A]=D})}r7(o,t,n),o.add(aI(o.getBoundingRect(),t)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!K(_)&&p){var S=_.style||(_.style={}),w=pl(p,Ct.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,T=!1;b+w.height>n.getHeight()&&(y.position="top",T=!0);var A=T?-5-w.height:s+10;x+w.width/2>n.getWidth()?(y.position=["100%",A],S.align="right"):x-w.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,a,n,i){C(this._features,function(o){o instanceof tr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){C(this._features,function(n){n instanceof tr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){C(this._features,function(n){n instanceof tr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Wt);function n7(r){return r.indexOf("my")===0}const i7=a7;var o7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=At.browser;if(K(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];c&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=n.get("lang"),b='',T=window.open();T.document.write(b),T.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(tr);const s7=o7;var hw="__ec_magicType_stack__",l7=[["line","bar"],["stack"]],u7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return C(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(vw[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=vw[n](v,c,h,i);d&&(j(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Kt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};C(l7,function(h){ct(h,n)>=0&&C(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=ht({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(tr),vw={line:function(r,e,t,a){if(r==="bar")return ht({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ht({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===hw;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ht({id:e,stack:n?"":hw},a.get(["option","stack"])||{},!0)}};Qr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const f7=u7;var Fh=new Array(60).join("-"),co=" ";function h7(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function v7(r){var e=[];return C(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];C(t.series,function(c){var d=c.getRawData();l.push(c.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(co)],f=0;f"].join(a)}function pp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function h1(r,e,t,a){return re("svg","root",{width:r,height:e,xmlns:VD,"xmlns:xlink":zD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var v1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},En="transform-origin";function sz(r,e,t){var a=B({},r.shape);B(a,e),r.buildPath(t,a);var n=new BD;return n.reset(tT(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function lz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[En]=t+"px "+a+"px")}var uz={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function FD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function fz(r,e,t){var a=r.shape.paths,n={},i,o;if(C(a,function(l){var u=pp(t.zrId);u.animation=!0,kh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=_t(f),c=v.length;if(c){o=v[c-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=FD(n,t);return i.replace(o,s)}}function c1(r){return $(r)?v1[r]?"cubic-bezier("+v1[r]+")":mg(r)?r:"":""}function kh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Og){var s=fz(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var pt=FD(b,t);return pt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var al=Math.round;function HD(r){return r&&$(r.src)}function WD(r){return r&&K(r.toDataURL)}function my(r,e,t,a){ez(function(n,i){var o=n==="fill"||n==="stroke";o&&jb(i)?UD(e,r,n,a):o&&_g(i)?YD(t,r,n,a):r[n]=i},e,t,!1),yz(t,r,a)}function d1(r){return Ga(r[0]-1)&&Ga(r[1])&&Ga(r[2])&&Ga(r[3]-1)}function hz(r){return Ga(r[4])&&Ga(r[5])}function _y(r,e,t){if(e&&!(hz(e)&&d1(e))){var a=t?10:1e4;r.transform=d1(e)?"translate("+al(e[4]*a)/a+" "+al(e[5]*a)/a+")":uP(e)}}function p1(r,e,t){for(var a=r.points,n=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";De(v,g),De(c,g)}else if(v==null||c==null){var y=function(D,M){if(D){var I=D.elm,L=v||M.width,P=c||M.height;D.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),D.attrs.width=L,D.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=Cg(d,null,r,function(D){l||y(x,D),y(h,D)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=re("image","img",{href:d,width:v,height:c}),o.width=v,o.height=c}else n.svgElement&&(h=rt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=eT(n);w&&(o.patternTransform=w);var x=re("pattern","",o,[h]),b=yy(x),T=a.patternCache,A=T[b];A||(A=a.zrId+"-p"+a.patternIdx++,T[b]=A,o.id=A,x=a.defs[A]=re("pattern",A,o,[h])),e[t]=sh(A)}}function mz(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=re("clipPath",i,o,[$D(r,t)])}e["clip-path"]=sh(i)}function m1(r){return document.createTextNode(r)}function Gn(r,e,t){r.insertBefore(e,t)}function _1(r,e){r.removeChild(e)}function S1(r,e){r.appendChild(e)}function ZD(r){return r.parentNode}function XD(r){return r.nextSibling}function rc(r,e){r.textContent=e}var x1=58,_z=120,Sz=re("","");function gp(r){return r===void 0}function Or(r){return r!==void 0}function xz(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function ys(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function nl(r){var e,t=r.children,a=r.tag;if(Or(a)){var n=r.elm=GD(a);if(Sy(Sz,r),z(t))for(e=0;ei?(d=t[l+1]==null?null:t[l+1].elm,qD(r,d,t,n,l)):Nf(r,e,a,i))}function Zi(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(Sy(r,e),gp(e.text)?Or(a)&&Or(n)?a!==n&&wz(t,a,n):Or(n)?(Or(r.text)&&rc(t,""),qD(t,null,n,0,n.length-1)):Or(a)?Nf(t,a,0,a.length-1):Or(r.text)&&rc(t,""):r.text!==e.text&&(Or(a)&&Nf(t,a,0,a.length-1),rc(t,e.text)))}function bz(r,e){if(ys(r,e))Zi(r,e);else{var t=r.elm,a=ZD(t);nl(e),a!==null&&(Gn(a,e.elm,XD(t)),Nf(a,[r],0,0))}return e}var Tz=0,Az=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=w1(),this.configLayer=w1(),this.storage=t,this._opts=a=B({},a),this.root=e,this._id="zr"+Tz++,this._oldVNode=h1(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=GD("svg");Sy(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",bz(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return y1(e,pp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=pp(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=Cz(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=re("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(_t(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(re("defs","defs",{},u)),e.animation){var f=oz(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=re("style","stl",{},[],f);o.push(h)}}return h1(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},yy(this.renderToVNode({animation:ft(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ft(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var D=c.dpr,M=0;M0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?yu:0),this._needsManuallyCompositing),f.__builtin__||hg("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&Ge&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ht(a[e],t,!0):a[e]=t;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Gt);const Bz=Nz;function fo(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=so(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var Vz=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Qt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zz,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ca(this.childAt(0))},e.prototype.downplay=function(){da(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Mt(v,c,s,a),br(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Vt(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=ae(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=mi(t.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),b=x.fill;if(s instanceof ce){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(a,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ve(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:b,defaultOpacity:x.opacity});function I(R){return M?t.getName(R):fo(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Ht(this,v,c,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=it(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Qa(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qa(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Ro(t.getItemVisual(a,"symbolSize"))},e}(at);function zz(r,e){this.parent.drift(r,e)}const Dl=Vz;function nc(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function A1(r){return r!=null&&!tt(r)&&(r={isIgnore:r}),r||{}}function C1(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ae(e),cursorStyle:e.get("cursor")}}var Gz=function(){function r(e){this.group=new at,this._SymbolCtor=e||Dl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=A1(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=C1(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(nc(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),d=f(h);if(!nc(e,d,h,t)){a.remove(c);return}var p=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)a.remove(c),c=new o(e,h,l,u),c.setPosition(d);else{c.updateData(e,h,l,u);var y={x:d[0],y:d[1]};s?c.attr(y):Mt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=C1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=A1(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}function JD(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function Hz(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function Wz(r,e,t,a,n,i,o,s){for(var l=Hz(r,e),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=QD(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=n||p<0)break;if(ni(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var w=p+i,x=e[w*2],b=e[w*2+1];x===y&&b===m&&g=a||ni(x,b))c=y,d=m;else{D=x-u,M=b-f;var P=y-u,R=x-y,E=m-f,N=b-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(R);var F=D>0?1:-1;c=y-F*O*o,d=m,I=y+F*V*o,L=m}else if(s==="y"){O=Math.abs(E),V=Math.abs(N);var W=M>0?1:-1;c=y,d=m-W*O*o,I=y,L=m+W*V*o}else O=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+N*N),A=V/(V+O),c=y-D*o*(1-A),d=m-M*o*(1-A),I=y+D*o*A,L=m+M*o*A,I=Ma(I,Ia(x,y)),L=Ma(L,Ia(b,m)),I=Ia(I,Ma(x,y)),L=Ia(L,Ma(b,m)),D=I-y,M=L-m,c=y-D*O/V,d=m-M*O/V,c=Ma(c,Ia(u,y)),d=Ma(d,Ia(f,m)),c=Ia(c,Ma(u,y)),d=Ia(d,Ma(f,m)),D=y-c,M=m-d,I=y+D*V/O,L=m+M*V/O}r.bezierCurveTo(h,v,c,d,y,m),h=I,v=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var jD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),$z=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ni(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=d;break;case o.C:c=i[h++],d=i[h++],p=i[h++],g=i[h++],y=i[h++],m=i[h++];var w=u?ff(s,c,p,y,t,f):ff(l,d,g,m,t,f);if(w>0)for(var x=0;x=0){var S=u?ee(l,d,g,m,b):ee(s,c,p,y,b);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(mt),Uz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(jD),tM=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new Uz},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ni(n[s*2-2],n[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function Xz(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=Zz(u,n==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,y=g-p;if(y<.001)return"transparent";C(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new nr(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function qz(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&Kz(i,e))){var o=e.mapDimension(i.dim),s={};return C(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Kz(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function Qz(r,e){return isNaN(r)||isNaN(e)}function Jz(r){for(var e=r.length/2;e>0&&Qz(r[e*2-2],r[e*2-1]);e--);return e-1}function P1(r,e){return[r[e*2],r[e*2+1]]}function jz(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function aM(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=p.getState("emphasis").style;F.lineWidth=+p.style.lineWidth+1}it(p).seriesIndex=t.seriesIndex,Ht(p,N,O,V);var W=L1(t.get("smooth")),Z=t.get("smoothMonotone");if(p.setShape({smooth:W,smoothMonotone:Z,connectNulls:T}),g){var Q=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(j(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(J=L1(Q.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:J,smoothMonotone:Z,connectNulls:T}),he(g,t,"areaStyle"),it(g).seriesIndex=t.seriesIndex,Ht(g,N,O,V)}var dt=function(St){i._changePolyState(St)};l.eachItemGraphicEl(function(St){St&&(St.onHoverStateChange=dt)}),this._polyline.onHoverStateChange=dt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){it(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=li(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new Dl(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Bt.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=li(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Bt.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;mf(this._polyline,t),a&&mf(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new $z({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new tM({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=K(h)?h(null):h;t.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,w=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=K(h)?h(d):f*b+v,A=p.getSymbolPath(),D=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(aM(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Jz(l);f>=0&&(ve(s,ae(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?KD(o,c):fo(o,h)},enableTextSetter:!0},t5(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),b=y?"x":"y",T=jz(h,S,b),A=T.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!c){var I=P1(h,A[0]);u.attr({x:I[0]+w,y:I[1]+x}),o&&(M=v.getRawValue(A[0]))}else{var I=f.getPointOn(S,b);I&&u.attr({x:I[0]+w,y:I[1]+x});var L=v.getRawValue(A[0]),P=v.getRawValue(A[1]);o&&(M=wT(n,d,L,P,T.t))}i.lastFrameIndex=A[0]}else{var R=t===1||i.lastFrameIndex>0?A[0]:0,I=P1(h,R);o&&(M=v.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+x})}if(o){var E=To(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=Wz(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(c=La(v.current,n,o,l),d=La(v.stackedOnCurrent,n,o,l),p=La(v.next,n,o,l),g=La(v.stackedOnNext,n,o,l)),I1(c,p)>3e3||f&&I1(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:p}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Mt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var d=void 0;$(i)?d=a5[i]:K(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,d,n5))}}}}}function i5(r){r.registerChartView(r5),r.registerSeriesModel(Bz),r.registerLayout(Il("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nM("line"))}var iM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return _a(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)C(i.getAxes(),function(v,c){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=o[c],g=a[c]==="x1"||a[c]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,S=0;Sp){m=(w+y)/2;break}S===1&&(_=x-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[c]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Gt);Gt.registerClass(iM);const Bf=iM;var o5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return _a(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=sn(Bf.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Bf);const s5=o5;var l5=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),u5=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new l5},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,d=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Xs(i,t,it(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Bt),R1={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=oc(e.x,r.x),s=sc(e.x+e.width,n),l=oc(e.y,r.y),u=sc(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=sc(e.r,r.r),i=oc(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},E1={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new wt({shape:B({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?Vf:Ne,f=new u({shape:a,z2:1});f.name="item";var h=oM(n);if(f.calculateTextPosition=f5(h,{isRoundCap:u===Vf}),i){var v=f.shape,c=n?"r":"endAngle",d={};v[c]=n?a.r0:a.startAngle,d[c]=a[c],(s?Mt:Vt)(f,{shape:d},i)}return f}};function d5(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function k1(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Mt:Vt)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Mt:Vt)(t,{shape:u},f,n)}function O1(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function y5(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function oM(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function B1(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=Kn(a.getModel("itemStyle"),f,!0);B(f,h),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=ae(a);ve(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:fo(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,h5(r,g==="outside"?c:g,oM(o),a.get(["label","rotate"]))}SA(p,d,i.getRawValue(t),function(m){return KD(e,m)});var y=a.getModel(["emphasis"]);Ht(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),he(r,a),y5(n)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function m5(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var _5=function(){function r(){}return r}(),V1=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new _5},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function S5(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function sM(r,e,t){if(Si(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function x5(r,e,t){var a=r.type==="polar"?Ne:wt;return new a({shape:sM(e,t,r),silent:!0,z2:0})}const w5=c5;function b5(r){r.registerChartView(w5),r.registerSeriesModel(s5),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(hD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vD("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nM("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var xu=Math.PI*2,F1=Math.PI/180;function lM(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function uM(r,e){var t=lM(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o),l=H(n[0],s/2),u=H(n[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=H(a[0],i)+t.x,h=H(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function T5(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=lM(a,t),s=uM(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*F1,c=a.get("minAngle")*F1,d=0;n.each(i,function(D){!isNaN(D)&&d++});var p=n.getSum(i),g=Math.PI/(p||d)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var w=xu,x=0,b=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(D,M){var I;if(isNaN(D)){n.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?I=p===0&&_?g:D*g:I=xu/d,It?y:g,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*n,b=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-h)/2}}}function lc(r){return r.position==="center"}function D5(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*A5,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}e.each(function(x){var b=e.getItemGraphicEl(x),T=b.shape,A=b.getTextContent(),D=b.getTextGuideLine(),M=e.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=H(I.get("edgeDistance"),u),N=I.get("bleedMargin"),O=M.getModel("labelLine"),V=O.get("length");V=H(V,u);var F=O.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Z>0?"left":"right"}var $t=Math.PI,Ft=0,de=I.get("rotate");if(Dt(de))Ft=de*($t/180);else if(L==="center")Ft=0;else if(de==="radial"||de===!0){var Jr=Z<0?-W+$t:-W;Ft=Jr}else if(de==="tangential"&&L!=="outside"&&L!=="outer"){var Ie=Math.atan2(Z,Q);Ie<0&&(Ie=$t*2+Ie);var Ol=Q>0;Ol&&(Ie=$t+Ie),Ft=Ie-$t}if(i=!!Ft,A.x=J,A.y=dt,A.rotation=Ft,A.setStyle({verticalAlign:"middle"}),et){A.setStyle({align:pt});var Wh=A.states.select;Wh&&(Wh.x+=A.x,Wh.y+=A.y)}else{var xa=A.getBoundingRect().clone();xa.applyTransform(A.getComputedTransform());var Sm=(A.style.margin||0)+2.1;xa.y-=Sm/2,xa.height+=Sm,t.push({label:A,labelLine:D,position:L,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ut(Z,Q),linePoints:St,textAlign:pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:xa,unconstrainedWidth:xa.width,labelStyleWidth:A.style.width})}b.setTextConfig({inside:et})}}),!i&&r.get("avoidLabelOverlap")&&C5(t,a,n,l,u,v,f,h);for(var p=0;p0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},e.type="pie",e}(Bt);const L5=I5;function Eo(r,e,t){e=z(e)&&{coordDimensions:e}||B({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Tl(a,e).dimensions,i=new Ce(n,r);return i.initData(a,t),i}var P5=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}();const Pl=P5;var R5=bt(),E5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pl(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Eo(this,{coordDimensions:["value"],encodeDefaulter:ot($g,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=R5(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=UP(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){si(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Gt);const k5=E5;function O5(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Dt(o)&&!isNaN(o)&&o<0)})}}}function N5(r){r.registerChartView(L5),r.registerSeriesModel(k5),MC("pie",r.registerAction),r.registerLayout(ot(T5,"pie")),r.registerProcessor(Ll("pie")),r.registerProcessor(O5("pie"))}var B5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return _a(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Gt);const V5=B5;var hM=4,z5=function(){function r(){}return r}(),G5=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new z5},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const H5=F5;var W5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Il("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new H5:new Ml,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Bt);const $5=W5;var U5=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Tt);const Y5=U5;var mp=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Kt).models[0]},e.type="cartesian2dAxis",e}(Tt);Jt(mp,Cl);var vM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Z5=ht({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vM),xy=ht({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},vM),X5=ht({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xy),q5=j({logBase:10},xy);const cM={category:Z5,value:xy,time:X5,log:q5};var K5={value:1,category:1,time:1,log:1};function ho(r,e,t,a){C(K5,function(n,i){var o=ht(ht({},cM[i],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Qs(this),c=v?Do(f):{},d=h.getTheme();ht(f,d.get(i+"Axis")),ht(f,this.getDefaultOption()),f.type=W1(f),v&&Ja(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=hp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",W1)}function W1(r){return r.type||(r.data?"category":"value")}var Q5=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const J5=Q5;var _p=["x","y"];function $1(r){return r.type==="interval"||r.type==="time"}var j5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=_p,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!$1(t)||!$1(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=_o([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ue(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return ue(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new vt(n,i,o,s)},e}(J5),tG=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ar);const eG=tG;function Sp(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),oe(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function U1(r){return r.get("coordinateSystem")==="cartesian2d"}function Y1(r){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Kt).models[0];e[a]=i}),e}var uc=Math.log;function dM(r,e,t){var a=tn.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=_D(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=uc(r.base);u=[uc(u[0])/v,uc(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=qv(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=qv(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=Ut(g-m),p<0&&u[0]>=0?(p=0,g=Ut(m)):g>0&&u[1]<=0&&(g=0,p=-Ut(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*S),a.setInterval.call(r,d),(_||S)&&a.setNiceExtent.call(r,p+d,g-d)}var rG=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_p,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=_t(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;vp(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(uo(p,d),vp(p)&&(s=c))}f.length&&(s||(s=f.pop(),uo(s.scale,s.model)),C(f,function(g){dM(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};C(a.x,function(o){Z1(a,"y",o,i)}),C(a.y,function(o){Z1(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=te(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=gV(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),aG(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):gf(n-Fa)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),q1={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(ue(s,s,o),ue(l,l,o));var f=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new se({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});oo(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);$(v)&&(v=[v,v]),($(c)||Dt(c))&&(c=[c,c]);var d=mi(e.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];C([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=Qt(v[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=sG(t,a,e,r),i=uG(t,a,e,r);if(oG(e,i,n),lG(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=RD(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OD(o)}},axisName:function(r,e,t,a){var n=oe(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,Q1(i)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Fa/180);var d;Q1(i)?v=ii.innerTextLayout(r.rotation,c??r.rotation,o):(v=iG(r.rotation,i,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=oe(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Ct({x:h[0],y:h[1],rotation:v.rotation,silent:ii.isLabelSilent(e),style:Ot(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(bo({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=ii.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,it(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function iG(r,e,t,a){var n=vT(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return gf(n-Fa/2)?(o=l?"bottom":"top",i="center"):gf(n-Fa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nFa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function oG(r,e,t){if(!SD(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?(Ue(i),Ue(u)):K1(i,o)&&(a?(Ue(o),Ue(f)):(Ue(i),Ue(u))),n===!1?(Ue(s),Ue(h)):K1(l,s)&&(n?(Ue(l),Ue(v)):(Ue(s),Ue(h)))}}function Ue(r){r&&(r.ignore=!0)}function K1(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=oh([]);return gi(n,n,-r.rotation),t.applyTransform(sa([],n,r.getLocalTransform())),a.applyTransform(sa([],n,e.getLocalTransform())),t.intersect(a)}}function Q1(r){return r==="middle"||r==="center"}function pM(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function pG(r){var e=wy(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=xp(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=j({color:d.color},l));var g=ht(rt(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!1);if($(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else K(f)&&(g.name=f(g.name,g));var m=new Nt(g,null,this.ecModel);return Jt(m,Cl.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ht({lineStyle:{color:"#bbb"}},ts.axisLine),axisLabel:wu(ts.axisLabel,!1),axisTick:wu(ts.axisTick,!1),splitLine:wu(ts.splitLine,!0),splitArea:wu(ts.splitArea,!0),indicator:[]},e}(Tt);const PG=LG;var RG=["axisLine","axisTickLabel","axisName"],EG=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=G(n,function(o){var s=o.model.get("showName")?o.name:"",l=new ga(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});C(i,function(o){C(RG,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),d=z(v)?v:[v],p=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,w=a.cy,x=0;x<_.length;x++){if(f){var b=m(g,d,x);g[b].push(new qr({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,p,x);y[b].push(new ph({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,A=G(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),D=[],x=0;x<=T;x++){for(var M=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;vc(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);vc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!aS(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;vc(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(lr);function vc(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(ha(a.event),xM(r,e,t,a,n))}function xM(r,e,t,a,n){n.isAvailableBehavior=U(ef,null,t,a),r.trigger(e,n)}function ef(r,e,t){var a=t[r];return!r||a&&(!$(a)||e.event[a+"Key"])}const Rl=WG;function Ty(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Ay(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var $G={axisPointer:1,tooltip:1,brush:1};function Nh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!$G.hasOwnProperty(a.mainType)&&n&&n.model!==t}function wM(r){if($(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var cc,zf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},nS=_t(zf),Gf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},iS=_t(Gf),UG=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=wM(e);this._defsUsePending=[];var n=new at;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ze(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;XG(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Bh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=TM(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new at,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new wt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=cc[s];if(f&&Y(cc,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=oS[s];if(c&&Y(oS,s)){var d=c.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new Us({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),YG(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){cc={g:function(e,t){var a=new at;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new wt;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new qr;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new se;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new Eg;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=uS(a));var i=new Be({shape:{points:n||[]},silent:!0});return Ye(t,i),ze(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=uS(a));var i=new Ve({shape:{points:n||[]},silent:!0});return Ye(t,i),ze(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new ce;return Ye(t,a),ze(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new at;return Ye(t,s),ze(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new at;return Ye(t,s),ze(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=JT(a);return Ye(t,n),ze(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),oS={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new nr(e,t,a,n);return sS(r,i),lS(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new hA(e,t,a);return sS(r,n),lS(r,n),n}};function sS(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function lS(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};bM(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Ye(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),j(e.__inheritedStyle,r.__inheritedStyle))}function uS(r){for(var e=Bh(r),t=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=Bh(o);switch(n=n||or(),s){case"translate":Ur(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":yg(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":gi(n,n,-parseFloat(l[0])*dc);break;case"skewX":var u=Math.tan(parseFloat(l[0])*dc);sa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*dc);sa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var hS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function bM(r,e,t){var a=r.getAttribute("style");if(a){hS.lastIndex=0;for(var n;(n=hS.exec(a))!=null;){var i=n[1],o=Y(zf,i)?zf[i]:null;o&&(e[o]=n[2]);var s=Y(Gf,i)?Gf[i]:null;s&&(t[s]=n[2])}}}function JG(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),a=X(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,d){return d&&(c=d(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ve(e,ae(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var d=e.getTextContent();if(d&&(AM(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function gS(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):it(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function yS(r,e,t,a,n){r.data||bo({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function mS(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ht(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&SE(e,n,t),o}function _S(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),C(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Gt);const S3=_3;function x3(r,e){var t={};return C(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=te(w,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function C3(r,e){C(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var D3=function(){function r(){this.dimensions=DM}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new bS(l+s,l,B({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=TS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),C(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new bS(s,s,B({nameMap:vg(l)},n(o[0])));u.zoomLimit=oe.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=TS,u.resize(o[0],t),C(o,function(f){f.coordinateSystem=u,C3(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=X(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function N3(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){z3(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=G3(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function B3(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function CS(r){return arguments.length?r:W3}function ms(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function V3(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function z3(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function G3(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=pc(s),i=gc(i),s&&i;){n=pc(n),o=gc(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(H3(F3(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!pc(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!gc(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function pc(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function gc(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function F3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function H3(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function W3(r,e){return r.parentNode===e.parentNode?1:2}var $3=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),U3=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $3},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var d=1;dm.x,w||(S=S-Math.PI));var b=w?"left":"right",T=s.getModel("label"),A=T.get("rotate"),D=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||b,rotation:A==null?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?lf(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(it(t).focus=L),Z3(n,o,f,t,d,c,p,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===ml||mf(t.__edge,P)}})}function Z3(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new gh({shape:Tp(f,h,v,n,n)})),Mt(p,{shape:Tp(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if($(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function kM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Ly(r,e){var t=kM(r);return ct(t,e)>=0}function Vh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var nF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new Nt(n,this,this.ecModel),o=Iy.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var d=o.getNodeByDataIndex(c);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ne("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Vh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Gt);const iF=nF;function oF(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(n[i])}}function sF(r,e){r.eachSeriesByType("tree",function(t){lF(t,e)})}function lF(r,e){var t=V3(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=CS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=CS());var s=r.getData().tree.root,l=s.children[0];if(l){O3(s),oF(l,N3,o),s.hierNode.modifier=-l.hierNode.prelim,rs(l,B3);var u=l,f=l,h=l;rs(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,d=0,p=0,g=0,y=0;if(a==="radial")d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),rs(l,function(_){g=(_.getLayout().x+c)*d,y=(_.depth-1)*p;var S=ms(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=i/(f.getLayout().x+v+c),d=n/(h.depth-1||1),rs(l,function(_){y=(_.getLayout().x+c)*p,g=m==="LR"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),rs(l,function(_){g=(_.getLayout().x+c)*d,y=m==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function uF(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");B(s,o)})})}function fF(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=Dy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function hF(r){r.registerChartView(X3),r.registerSeriesModel(iF),r.registerLayout(sF),r.registerVisual(uF),fF(r)}var PS=["treemapZoomToNode","treemapRender","treemapMove"];function vF(r){for(var e=0;e1;)i=i.parentNode;var o=jd(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var cF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};NM(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Nt({itemStyle:o},this,a);i=t.levels=dF(i,a);var l=G(i||[],function(h){return new Nt(h,s,a)},this),u=Iy.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var d=u.getNodeByDataIndex(c),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ne("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Vh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=X(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){OM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Gt);function NM(r){var e=0;C(r.children,function(a){NM(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function dF(r,e){var t=Rt(e.get("color")),a=Rt(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;C(r,function(s){var l=new Nt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}const pF=cF;var gF=8,RS=8,yc=5,yF=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),Ah(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=jt(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+gF*2,t.emptyItemWidth);t.totalWidth+=s+RS,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=Ik(t.pos,t.box),v=t.totalWidth,c=t.renderList,d=n.getModel("itemStyle").getItemStyle(),p=c.length-1;p>=0;p--){var g=c[p],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new Be({shape:{points:mF(l,0,m,f,p===c.length-1,p===0)},style:j(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ct({style:Ot(i,{text:_})}),textConfig:{position:"inside"},z2:xo*1e4,onclick:ot(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ot(o,{text:_}),S.ensureState("emphasis").style=d,Ht(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),_F(S,e,y),l+=m+RS}},r.prototype.remove=function(){this.group.removeAll()},r}();function mF(r,e,t,a,n,i){var o=[[n?r:r-yc,e],[r+t,e],[r+t,e+a],[n?r:r-yc,e+a]];return!i&&o.splice(2,0,[r+t+yc,e+a/2]),!n&&o.push([r,e+a/2]),o}function _F(r,e,t){it(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Vh(t,e)}}const SF=yF;var xF=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;nkS||Math.abs(t.dy)>kS)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new vt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,n-=l.y;var u=or();Ur(u,u,[-a,-n]),yg(u,u,[t.scale,t.scale]),Ur(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Tf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new SF(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(Ly(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=as(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(Bt);function as(){return{nodeGroup:[],background:[],content:[]}}function DF(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,w=_&&_.length,x=v.getModel("itemStyle"),b=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),A=v.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,M=J("nodeGroup",Ap);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Ff(M).nodeWidth=c,Ff(M).nodeHeight=d,f.isAboveViewRoot)return M;var I=J("background",ES,u,TF);I&&V(M,I,w&&f.upperLabelHeight);var L=v.getModel("emphasis"),P=L.get("focus"),R=L.get("blurScope"),E=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(w)Zs(M)&&Un(M,!1),I&&(Un(I,!E),h.setItemGraphicEl(o.dataIndex,I),Ud(I,N,R));else{var O=J("content",ES,u,AF);O&&F(M,O),I.disableMorphing=!0,I&&Zs(I)&&Un(I,!1),Un(M,!E),h.setItemGraphicEl(o.dataIndex,M),Ud(M,N,R)}return M;function V(pt,et,gt){var st=it(et);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,et.setShape({x:0,y:0,width:c,height:d,r:D}),g)W(et);else{et.invisible=!1;var q=o.getVisual("style"),lt=q.stroke,zt=BS(x);zt.fill=lt;var xt=On(b);xt.fill=b.get("borderColor");var $t=On(T);$t.fill=T.get("borderColor");var Ft=On(A);if(Ft.fill=A.get("borderColor"),gt){var de=c-2*p;Z(et,lt,q.opacity,{x:p,y:0,width:de,height:S})}else et.removeTextContent();et.setStyle(zt),et.ensureState("emphasis").style=xt,et.ensureState("blur").style=$t,et.ensureState("select").style=Ft,fi(et)}pt.add(et)}function F(pt,et){var gt=it(et);gt.dataIndex=o.dataIndex,gt.seriesIndex=r.seriesIndex;var st=Math.max(c-2*p,0),q=Math.max(d-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:st,height:q,r:D}),g)W(et);else{et.invisible=!1;var lt=o.getVisual("style"),zt=lt.fill,xt=BS(x);xt.fill=zt,xt.decal=lt.decal;var $t=On(b),Ft=On(T),de=On(A);Z(et,zt,lt.opacity,null),et.setStyle(xt),et.ensureState("emphasis").style=$t,et.ensureState("blur").style=Ft,et.ensureState("select").style=de,fi(et)}pt.add(et)}function W(pt){!pt.invisible&&i.push(pt)}function Z(pt,et,gt,st){var q=v.getModel(st?NS:OS),lt=jt(v.get("name"),null),zt=q.getShallow("show");ve(pt,ae(v,st?NS:OS),{defaultText:zt?lt:null,inheritColor:et,defaultOpacity:gt,labelFetcher:r,labelDataIndex:o.dataIndex});var xt=pt.getTextContent();if(xt){var $t=xt.style,Ft=dg($t.padding||0);st&&(pt.setTextConfig({layoutRect:st}),xt.disableLabelLayout=!0),xt.beforeUpdate=function(){var Jr=Math.max((st?st.width:pt.shape.width)-Ft[1]-Ft[3],0),Ie=Math.max((st?st.height:pt.shape.height)-Ft[0]-Ft[2],0);($t.width!==Jr||$t.height!==Ie)&&xt.setStyle({width:Jr,height:Ie})},$t.truncateMinChar=2,$t.lineOverflow="truncate",Q($t,st,f);var de=xt.getState("emphasis");Q(de?de.style:null,st,f)}}function Q(pt,et,gt){var st=pt?pt.text:null;if(!et&>.isLeafRoot&&st!=null){var q=r.get("drillDownIcon",!0);pt.text=q?q+" "+st:st}}function J(pt,et,gt,st){var q=m!=null&&t[pt][m],lt=n[pt];return q?(t[pt][m]=null,dt(lt,q)):g||(q=new et,q instanceof sr&&(q.z2=MF(gt,st)),St(lt,q)),e[pt][y]=q}function dt(pt,et){var gt=pt[y]={};et instanceof Ap?(gt.oldX=et.x,gt.oldY=et.y):gt.oldShape=B({},et.shape)}function St(pt,et){var gt=pt[y]={},st=o.parentNode,q=et instanceof at;if(st&&(!a||a.direction==="drillDown")){var lt=0,zt=0,xt=n.background[st.getRawIndex()];!a&&xt&&xt.oldShape&&(lt=xt.oldShape.width,zt=xt.oldShape.height),q?(gt.oldX=0,gt.oldY=zt):gt.oldShape={x:lt,y:zt,width:0,height:0}}gt.fadein=!q}}function MF(r,e){return r*bF+e}const IF=CF;var sl=C,LF=tt,Hf=-1,Py=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=rt(e);this.type=a,this.mappingMethod=t,this._normalizeData=EF[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(mc(n),PF(n)):t==="category"?n.categories?RF(n):mc(n,!0):(De(t!=="linear"||n.dataExtent),mc(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return _t(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){tt(e)?C(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:tt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&sl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(LF(e)){var t=[];sl(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function mc(r,e){var t=r.visual,a=[];tt(t)?sl(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),BM(r,a)}function Tu(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Cp([0,1])}}function VS(r){var e=this.option.visual;return e[Math.round(Lt(r,[0,1],[0,e.length-1],!0))]||{}}function ns(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function _s(r){var e=this.option.visual;return e[this.option.loop&&r!==Hf?r%e.length:r]}function Nn(){return this.option.visual[0]}function Cp(r){return{linear:function(e){return Lt(e,r,this.option.visual,!0)},category:_s,piecewise:function(e,t){var a=Dp.call(this,t);return a==null&&(a=Lt(e,r,this.option.visual,!0)),a},fixed:Nn}}function Dp(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=Py.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function BM(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=Fe(t);return a||[0,0,0,1]})),e}var EF={linear:function(r){return Lt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Py.findPieceIndex(r,e,!0);if(t!=null)return Lt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Hf},fixed:Zt};function Au(r,e,t){return r?e<=t:e=t.length||p===t[p.depth]){var y=zF(n,l,p,g,d,a);zM(p,y,t,a)}})}}}function NF(r,e,t){var a=B({},e),n=t.designatedVisualItemStyle;return C(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function zS(r){var e=_c(r,"color");if(e){var t=_c(r,"colorAlpha"),a=_c(r,"colorSaturation");return a&&(e=bs(e,null,null,a)),t&&(e=hf(e,t)),e}}function BF(r,e){return e!=null?bs(e,null,null,r):null}function _c(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function VF(r,e,t,a,n,i){if(!(!i||!i.length)){var o=Sc(e,"color")||n.color!=null&&n.color!=="none"&&(Sc(e,"colorAlpha")||Sc(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new fe(h);return VM(v).drColorMappingBy=f,v}}}function Sc(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function zF(r,e,t,a,n,i){var o=B({},e);if(n){var s=n.type,l=s==="color"&&VM(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var ll=Math.max,Wf=Math.min,GS=oe,Ry=C,GM=["itemStyle","borderWidth"],GF=["itemStyle","gapWidth"],FF=["upperLabel","show"],HF=["upperLabel","height"];const WF={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=te(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(GS(s.width,l[0]),n),f=H(GS(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=ol(a,v,r),d=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=kM(p);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?qF(r,c,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),FM(p,_,!1,0),S=p.getLayout(),Ry(g,function(x,b){var T=(g[b+1]||p).getValue();x.setLayout(B({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var w=r.getData().tree.root;w.setLayout(KF(s,d,c),!0),r.setLayoutInfo(s),HM(w,new vt(-s.x,-s.y,n,i),g,p,0)}};function FM(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(GM),u=s.get(GF)/2,f=WM(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=ll(n-2*v,0),i=ll(i-v-c,0);var d=n*i,p=$F(r,s,d,e,t,a);if(p.length){var g={x:v,y:c,width:n,height:i},y=Wf(n,i),m=1/0,_=[];_.area=0;for(var S=0,w=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function XF(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=e*e*t;return l?ll(u*a/l,l/(u*n)):1/0}function FS(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hJm&&(u=Jm),i=s}ua&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(w[0]=-w[0],w[1]=-w[1]);var b=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*b+f[0],i.y=f[1]+A,d=S[0]<0?"right":"left",i.originX=-y*b,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+A,d="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*b+h[0],i.y=h[1]+A,d=S[0]>=0?"right":"left",i.originX=y*b,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e}(at);const Ny=p4;var g4=function(){function r(e){this.group=new at,this._LineCtor=e||Ny}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=ZS(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ZS(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!y4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0}function ZS(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ae(e)}}function XS(r){return isNaN(r[0])||isNaN(r[1])}function Ac(r){return r&&!XS(r[0])&&!XS(r[1])}const By=g4;var Cc=[],Dc=[],Mc=[],Vi=ie,Ic=Qn,qS=Math.abs;function KS(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Cc[0]=Vi(a[0],n[0],i[0],f),Cc[1]=Vi(a[1],n[1],i[1],f);var h=qS(Ic(Cc,e)-l);h=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Lc(r,e){var t=[],a=Fs,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[oa(u[0]),oa(u[1])],u[2]&&u.__original.push(oa(u[2])));var v=u.__original;if(u[2]!=null){if(we(n[0],v[0]),we(n[1],v[2]),we(n[2],v[1]),f&&f!=="none"){var c=xs(s.node1),d=KS(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var c=xs(s.node2),d=KS(n,v[1],c*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}we(u[0],n[0]),we(u[1],n[2]),we(u[2],n[1])}else{if(we(i[0],v[0]),we(i[1],v[1]),Wn(o,i[1],i[0]),mo(o,o),f&&f!=="none"){var c=xs(s.node1);yd(i[0],i[0],o,c*e)}if(h&&h!=="none"){var c=xs(s.node2);yd(i[1],i[1],o,-c*e)}we(u[0],i[0]),we(u[1],i[1])}})}function QS(r){return r.type==="view"}var m4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Ml,i=new By,o=this.group;this._controller=new Rl(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(QS(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Mt(u,f,t)}Lc(t.getGraph(),Ss(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,d=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,w=_.getGraphicEl(),x=_.getModel();if(w){w.off("drag").off("dragend");var b=x.get("draggable");b&&w.on("drag",function(A){switch(p){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,d),c.setFixed(S),h.setItemLayout(S,[w.x,w.y]);break;case"circular":h.setItemLayout(S,[w.x,w.y]),_.setLayout({fixed:!0},!0),Oy(t,"symbolSize",_,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(S,[w.x,w.y]),ky(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),w.setDraggable(b,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(it(w).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),w=_.getModel().get(["emphasis","focus"]);S&&w==="adjacency"&&(it(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){ZM(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!Nh(u,n,t)}),!QS(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Ty(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Ay(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Lc(t.getGraph(),Ss(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Ss(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){Lc(t.getGraph(),Ss(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Bt);const _4=m4;function zi(r){return"_EC_"+r}var S4=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[zi(e)]){var n=new Bn(e,t);return n.hostGraph=this,this.nodes.push(n),a[zi(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[zi(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Dt(e)&&(e=this.nodes[e]),Dt(t)&&(t=this.nodes[t]),e instanceof Bn||(e=n[zi(e)]),t instanceof Bn||(t=n[zi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new qM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Bn&&(e=e.id),t instanceof Bn&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof Bn||(t=this._nodesMap[zi(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Jt(Bn,KM("hostGraph","data"));Jt(qM,KM("hostGraph","edgeData"));const x4=S4;function QM(r,e,t,a,n){for(var i=new x4(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar")d=_a(r,t);else{var p=wl.get(c),g=p?p.dimensions||[]:[];ct(g,"value")<0&&g.concat(["value"]);var y=Tl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new Ce(y,t),d.initData(r)}var m=new Ce(["value"],t);return m.initData(l,s),n&&n(d,m),RM({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var w4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Pl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),si(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){a4(this);var s=QM(i,n,this,!0,l);return C(s.edges,function(u){n4(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var h=Nt.prototype.getModel;function v(d,p){var g=h.call(this,d,p);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=v,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ne("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=mC({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return n.value!=null?n:B({value:0},n)}),a=new Ce(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const b4=w4;var T4={type:"graphRoam",event:"graphRoam",update:"none"};function A4(r){r.registerChartView(_4),r.registerSeriesModel(b4),r.registerProcessor(JF),r.registerVisual(jF),r.registerVisual(t4),r.registerLayout(i4),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,s4),r.registerLayout(u4),r.registerCoordinateSystem("graphView",{dimensions:El.dimensions,create:h4}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Zt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Zt),r.registerAction(T4,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=Dy(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var C4=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),D4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new C4},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(mt);const M4=D4;function I4(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Du(r,e){var t=r==null?"":r+"";return e&&($(e)?t=e.replace("{value}",t):K(e)&&(t=e(r))),t}var L4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=I4(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?Vf:Ne,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),y=[u,f];MT(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],w=0;d&&w=A&&(D===0?0:i[D-1][0])Math.PI/2&&(J+=Math.PI)):Q==="tangential"?J=-T-Math.PI/2:Dt(Q)&&(J=Q*Math.PI/180),J===0?h.add(new Ct({style:Ot(_,{text:V,x:W,y:Z,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Ct({style:Ot(_,{text:V,x:W,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:Z,rotation:J}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var dt=0;dt<=w;dt++){P=Math.cos(T),R=Math.sin(T);var St=new se({shape:{x1:P*(d-N)+v,y1:R*(d-N)+c,x2:P*(d-b-N)+v,y2:R*(d-b-N)+c},silent:!0,style:I});I.stroke==="auto"&&St.setStyle({stroke:i((E+dt/w)/S)}),h.add(St),T+=D}T-=D}else T+=A}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),w=+t.get("max"),x=[S,w],b=[s,l];function T(D,M){var I=m.getItemModel(D),L=I.getModel("pointer"),P=H(L.get("width"),o.r),R=H(L.get("length"),o.r),E=t.get(["pointer","icon"]),N=L.get("offsetCenter"),O=H(N[0],o.r),V=H(N[1],o.r),F=L.get("keepAspect"),W;return E?W=Qt(E,O-P/2,V-R,P,R,null,F):W=new M4({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:V}}),W.rotation=-(M+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function A(D,M){var I=g.get("roundCap"),L=I?Vf:Ne,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(D+1)*R,N=P?o.r:o.r-D*R,O=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=w-m.get(_,D)%w),O}(y||p)&&(m.diff(v).add(function(D){var M=m.get(_,D);if(p){var I=T(D,s);Vt(I,{rotation:-((isNaN(+M)?b[0]:Lt(M,x,b,!0))+Math.PI/2)},t),h.add(I),m.setItemGraphicEl(D,I)}if(y){var L=A(D,s),P=g.get("clip");Vt(L,{shape:{endAngle:Lt(M,x,b,P)}},t),h.add(L),Hd(t.seriesIndex,m.dataType,D,L),d[D]=L}}).update(function(D,M){var I=m.get(_,D);if(p){var L=v.getItemGraphicEl(M),P=L?L.rotation:s,R=T(D,P);R.rotation=P,Mt(R,{rotation:-((isNaN(+I)?b[0]:Lt(I,x,b,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(D,R)}if(y){var E=c[M],N=E?E.shape.endAngle:s,O=A(D,N),V=g.get("clip");Mt(O,{shape:{endAngle:Lt(I,x,b,V)}},t),h.add(O),Hd(t.seriesIndex,m.dataType,D,O),d[D]=O}}).execute(),m.each(function(D){var M=m.getItemModel(D),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(p){var E=m.getItemGraphicEl(D),N=m.getItemVisual(D,"style"),O=N.fill;if(E instanceof ce){var V=E.style;E.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(Lt(m.get(_,D),x,[0,1],!0))),E.z2EmphasisLift=0,he(E,M),Ht(E,L,P,R)}if(y){var F=d[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,he(F,M),Ht(F,L,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=Qt(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new at,c=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new Ct({silent:!0}),d[y]=new Ct({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,w=i(Lt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),T=o.cx+H(b[0],o.r),A=o.cy+H(b[1],o.r),D=c[y];D.attr({z2:g?0:2,style:Ot(x,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(D)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+H(I[0],o.r),P=o.cy+H(I[1],o.r),R=H(M.get("width"),o.r),E=H(M.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,D=d[y],O=M.get("formatter");D.attr({z2:g?0:2,style:Ot(M,{x:L,y:P,text:Du(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),SA(D,{normal:M},_,function(F){return Du(F,O)}),p&&xA(D,y,l,t,{getFormattedLabel:function(F,W,Z,Q,J,dt){return Du(dt?dt.interpolatedValue:_,O)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=d},e.type="gauge",e}(Bt);const P4=L4;var R4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Eo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Gt);const E4=R4;function k4(r){r.registerChartView(P4),r.registerSeriesModel(E4)}var O4=["itemStyle","opacity"],N4=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Ve,s=new Ct;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(O4);f=f??1,n||br(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Vt(i,{style:{opacity:f}},o,a)):Mt(i,{style:{opacity:f},shape:{points:l.points}},o,a),he(i,s),this._updateLabel(t,a),Ht(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;ve(o,ae(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ut(c[0][0],c[0][1]):null},Mt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),py(n,gy(l),{stroke:v})},e}(Be),B4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new N4(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Xs(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Bt);const V4=B4;var z4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pl(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Eo(this,{coordDimensions:["value"],encodeDefaulter:ot($g,this)})},e.prototype._defaultLabelLine=function(t){si(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const G4=z4;function F4(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function H4(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();osH)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Rc(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Rc(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const fH=lH;var hH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ht(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){C(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=Pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);C(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Tt);const vH=hH;var cH=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ar);const dH=cH;function wi(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Gi(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Gi(s,[0,o]),n=i=Gi(s,[n,i]),a=0}e[0]=Gi(e[0],t),e[1]=Gi(e[1],t);var l=Ec(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=Gi(e[a],f);var h;return h=Ec(e,a),n!=null&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function Ec(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Gi(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var kc=C,jM=Math.min,t2=Math.max,tx=Math.floor,pH=Math.ceil,ex=Ut,gH=Math.PI,yH=function(){function r(e,t,a){this.type="parallel",this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;kc(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new dH(o,Eh(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();kc(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),uo(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=te(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Mu(e.get("axisExpandWidth"),l),h=Mu(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),d;if(c)d=Mu(c[1]-c[0],l),c[1]=c[0]+d;else{d=Mu(f*(h-1),l);var p=e.get("axisExpandCenter")||tx(u/2);c=[f*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[tx(ex(c[0]/f,1))+1,pH(ex(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),kc(a,function(o,s){var l=(n.axisExpandable?_H:mH)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:gH/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=f[i],c=or();gi(c,c,v),Ur(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];C(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?wi(l,n,o,"all"):u="none";else{var c=n[1]-n[0],d=o[1]*s/c;n=[t2(0,d-c/2)],n[1]=jM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function Mu(r,e){return jM(t2(r,e[0]),e[1])}function mH(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function _H(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)ar(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;iCH}function s2(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function l2(r,e,t,a){var n=new at;return n.add(new wt({name:"main",style:Fy(t),silent:!0,draggable:!0,cursor:"move",drift:ot(ix,r,e,n,["n","s","w","e"]),ondragend:ot(ci,e,{isEnd:!0})})),C(a,function(i){n.add(new wt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(ix,r,e,n,i),ondragend:ot(ci,e,{isEnd:!0})}))}),n}function u2(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=vo(n,DH),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,d=f-o,p=h-s,g=d+n,y=p+n;ea(r,e,"main",o,s,d,p),a.transformable&&(ea(r,e,"w",l,u,i,y),ea(r,e,"e",v,u,i,y),ea(r,e,"n",l,u,g,i),ea(r,e,"s",l,c,g,i),ea(r,e,"nw",l,u,i,i),ea(r,e,"ne",v,u,i,i),ea(r,e,"sw",l,c,i,i),ea(r,e,"se",v,c,i,i))}function Rp(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(Fy(t)),n.attr({silent:!a,cursor:a?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Ep(r,i[0]):kH(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?IH[s]+"-resize":null})})}function ea(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(NH(Hy(r,e,[[a,n],[a+i,n+o]])))}function Fy(r){return j({strokeNoScale:!0},r.brushStyle)}function f2(r,e,t,a){var n=[fl(r,t),fl(e,a)],i=[vo(r,t),vo(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function EH(r){return ri(r.group)}function Ep(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=mh(t[e],EH(r));return a[n]}function kH(r,e){var t=[Ep(r,e[0]),Ep(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function ix(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=h2(e,n,i);C(a,function(u){var f=MH[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(f2(s[0][0],s[1][0],s[0][1],s[1][1])),Vy(e,t),ci(e,{isEnd:!1})}function OH(r,e,t,a){var n=e.__brushOption.range,i=h2(r,t,a);C(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Vy(r,e),ci(r,{isEnd:!1})}function h2(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Hy(r,e,t){var a=o2(r,e);return a&&a!==vi?a.clipPath(t,r._transform):rt(t)}function NH(r){var e=fl(r[0][0],r[1][0]),t=fl(r[0][1],r[1][1]),a=vo(r[0][0],r[1][0]),n=vo(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function BH(r,e,t){if(!(!r._brushType||zH(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=Gy(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var Gh={lineX:lx(0),lineY:lx(1),rect:{createCover:function(r,e){function t(a){return a}return l2({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=s2(r);return f2(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){u2(r,e,t,a)},updateCommon:Rp,contain:Op},polygon:{createCover:function(r,e){var t=new at;return t.add(new Ve({name:"main",style:Fy(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Be({name:"main",draggable:!0,drift:ot(OH,r,e),ondragend:ot(ci,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Hy(r,e,t)})},updateCommon:Rp,contain:Op}};function lx(r){return{createCover:function(e,t){return l2({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=s2(e),a=fl(t[0][r],t[1][r]),n=vo(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=o2(e,t);if(o!==vi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),u2(e,t,l,n)},updateCommon:Rp,contain:Op}}const Wy=PH;function c2(r){return r=$y(r),function(e){return gA(e,r)}}function d2(r,e){return r=$y(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function p2(r,e,t){var a=$y(r);return function(n,i){return a.contain(i[0],i[1])&&!Nh(n,e,t)}}function $y(r){return vt.create(r)}var GH=["axisLine","axisTickLabel","axisName"],FH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new Wy(a.getZr())).on("brush",U(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!HH(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=$H(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=B({strokeContainThreshold:f},v),d=new ga(t,c);C(GH,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,t,s,f,n),_l(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=vt.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:c2(h),isTargetByCursor:p2(h,s,i),getLinearBrushOtherExtent:d2(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(WH(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=G(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Wt);function HH(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function WH(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function $H(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const UH=FH;var YH={type:"axisAreaSelect",event:"axisAreaSelected"};function ZH(r){r.registerAction(YH,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var XH={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function g2(r){r.registerComponentView(fH),r.registerComponentModel(vH),r.registerCoordinateSystem("parallel",bH),r.registerPreprocessor(nH),r.registerComponentModel(rx),r.registerComponentView(UH),ho(r,"parallel",rx,XH),ZH(r)}function qH(r){yt(g2),r.registerChartView(K4),r.registerSeriesModel(tH),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,aH)}var KH=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),QH=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new KH},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){ca(this)},e.prototype.downplay=function(){da(this)},e}(mt),JH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new QH,g=it(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),w=d.node1.getModel(),x=w.get("localX"),b=w.get("localY"),T=d.node2.getLayout(),A=d.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=d.getLayout(),L,P,R,E,N,O,V,F;p.shape.extent=Math.max(1,I.dy),p.shape.orient=c,c==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(b!=null?b*f:S.y)+S.dy,R=(D!=null?D*u:T.x)+I.ty,E=M!=null?M*f:T.y,N=L,O=P*(1-_)+E*_,V=R,F=P*_+E*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(b!=null?b*f:S.y)+I.sy,R=D!=null?D*u:T.x,E=(M!=null?M*f:T.y)+I.ty,N=L*(1-_)+R*_,O=P,V=L*_+R*(1-_),F=E),p.setShape({x1:L,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:V,cpy2:F}),p.useStyle(m.getItemStyle()),ux(p.style,c,d);var W=""+y.get("value"),Z=ae(y,"edgeLabel");ve(p,Z,{labelFetcher:{getFormattedLabel:function(dt,St,pt,et,gt,st){return t.getFormattedLabel(dt,St,"edge",et,Hr(gt,Z.normal&&Z.normal.get("formatter"),W),st)}},labelDataIndex:d.dataIndex,defaultText:W}),p.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");he(p,y,"lineStyle",function(dt){var St=dt.getItemStyle();return ux(St,c,d),St}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var J=Q.get("focus");Ht(p,J==="adjacency"?d.getAdjacentDataIndices():J==="trajectory"?d.getTrajectoryDataIndices():J,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new wt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ve(S,ae(g),{labelFetcher:{getFormattedLabel:function(x,b){return t.getFormattedLabel(x,b,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),he(S,g),s.add(S),h.setItemGraphicEl(d.dataIndex,S),it(S).dataType="node";var w=_.get("focus");Ht(S,w==="adjacency"?d.getAdjacentDataIndices():w==="trajectory"?d.getTrajectoryDataIndices():w,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,p){var g=h.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(jH(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Bt);function ux(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");$(a)&&$(n)&&(r.fill=new nr(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function jH(r,e,t){var a=new wt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Vt(a,{shape:{width:r.width+20}},e,t),a}const tW=JH;var eW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Nt(o[l],this,a));if(i&&n){var u=QM(i,n,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ne("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,n).data.name;return ne("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Gt);const rW=eW;function aW(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=nW(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;oW(u);var h=Pt(u,function(p){return p.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),d=t.get("nodeAlign");iW(u,f,a,n,o,s,v,c,d)})}function nW(r,e){return te(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function iW(r,e,t,a,n,i,o,s,l){sW(r,e,t,n,i,s,l),hW(r,e,i,n,a,o,s),SW(r,s)}function oW(r){C(r,function(e){var t=Za(e.outEdges,$f),a=Za(e.inEdges,$f),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function sW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),p.setLayout({depth:y?g.depth:h},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&lW(r,o,i,b);var T=i==="vertical"?(n-t)/b:(a-t)/b;fW(r,T,i)}function y2(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function lW(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,dW(s,l,o),Oc(s,n,t,a,o),_W(s,l,o),Oc(s,n,t,a,o)}function vW(r,e){var t=[],a=e==="vertical"?"y":"x",n=Vd(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),C(n.keys,function(i){t.push(n.buckets.get(i))}),t}function cW(r,e,t,a,n,i){var o=1/0;C(r,function(s){var l=s.length,u=0;C(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;var d=n==="vertical"?a:t;if(u=f-e-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function dW(r,e,t){C(r.slice().reverse(),function(a){C(a,function(n){if(n.outEdges.length){var i=Za(n.outEdges,pW,t)/Za(n.outEdges,$f);if(isNaN(i)){var o=n.outEdges.length;i=o?Za(n.outEdges,gW,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-en(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-en(n,t))*e;n.setLayout({y:l},!0)}}})})}function pW(r,e){return en(r.node2,e)*r.getValue()}function gW(r,e){return en(r.node2,e)}function yW(r,e){return en(r.node1,e)*r.getValue()}function mW(r,e){return en(r.node1,e)}function en(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function $f(r){return r.getValue()}function Za(r,e,t){for(var a=0,n=r.length,i=-1;++io&&(o=l)}),C(a,function(s){var l=new fe({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&C(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function wW(r){r.registerChartView(tW),r.registerSeriesModel(rW),r.registerLayout(aW),r.registerVisual(xW),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var m2=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],d=c[f].get("type"),p=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];C(g,function(S,w){var x;z(S)?(x=S.slice(),S.unshift(w)):z(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Rf(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Rf(p),dimsDef:m.slice()}];return Eo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ot(WA,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),_2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Gt);Jt(_2,m2,!0);const bW=_2;var TW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=fx(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(br(h),S2(v,h,i,u)):h=fx(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Bt),AW=function(){function r(){}return r}(),CW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new AW},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var kW={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==_e){var a="";It(a)}var n=EW(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function OW(r){r.registerSeriesModel(bW),r.registerChartView(MW),r.registerLayout(IW),r.registerTransform(kW)}var NW=["color","borderColor"],BW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){on(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&hx(u,h))return;var v=Nc(h,f,!0);Vt(v,{shape:{points:h.ends}},t,f),Bc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&hx(u,c)){i.remove(v);return}v?(Mt(v,{shape:{points:c.ends}},t,f),br(v)):v=Nc(c),Bc(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),vx(t,this.group);var a=t.get("clip",!0)?Oh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=Nc(s);Bc(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){vx(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Bt),VW=function(){function r(){}return r}(),zW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new VW},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(mt);function Nc(r,e,t){var a=r.ends;return new zW({shape:{points:t?GW(a,r):a},z2:100})}function hx(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(NW);e.useStyle(i),e.style.fill=null,e.style.stroke=n}const HW=BW;var x2=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Gt);Jt(x2,m2,!0);const WW=x2;function $W(r){!r||!z(r.series)||C(r.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var UW=["itemStyle","borderColor"],YW=["itemStyle","borderColor0"],ZW=["itemStyle","borderColorDoji"],XW=["itemStyle","color"],qW=["itemStyle","color0"],KW={seriesType:"candlestick",plan:Lo(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?XW:qW)}function a(i,o){return o.get(i===0?ZW:i>0?UW:YW)}if(!e.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}};const QW=KW;var JW={seriesType:"candlestick",plan:Lo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=jW(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:c};function c(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),w=m.get(f,y),x=m.get(h,y),b=m.get(v,y),T=Math.min(S,w),A=Math.max(S,w),D=N(T,_),M=N(A,_),I=N(x,_),L=N(b,_),P=[];O(P,M,0),O(P,D,1),P.push(F(L),F(M),F(I),F(D));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:cx(m,y,S,w,f,E),initBaseline:S>w?M[i]:D[i],ends:P,brushRect:V(x,b,_)})}function N(W,Z){var Q=[];return Q[n]=Z,Q[i]=W,isNaN(Z)||isNaN(W)?[NaN,NaN]:e.dataToPoint(Q)}function O(W,Z,Q){var J=Z.slice(),dt=Z.slice();J[n]=Ku(J[n]+a/2,1,!1),dt[n]=Ku(dt[n]-a/2,1,!0),Q?W.push(J,dt):W.push(dt,J)}function V(W,Z,Q){var J=N(W,Q),dt=N(Z,Q);return J[n]-=a/2,dt[n]-=a/2,{x:J[0],y:J[1],width:a,height:dt[1]-J[1]}}function F(W){return W[n]=Ku(W[n],1),W}}function d(p,g){for(var y=Gr(p.count*4),m=0,_,S=[],w=[],x,b=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var A=b.get(s,x),D=b.get(u,x),M=b.get(f,x),I=b.get(h,x),L=b.get(v,x);if(isNaN(A)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=cx(b,x,D,M,f,T),S[n]=A,S[i]=I,_=e.dataToPoint(S,null,w),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=e.dataToPoint(S,null,w),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function cx(r,e,t,a,n,i){var o;return t>a?o=-1:t0?r.get(n,e-1)<=a?1:-1:1,o}function jW(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(ft(r.get("barMaxWidth"),n),n),o=H(ft(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?H(s,n):Math.max(Math.min(n/2,i),o)}const t$=JW;function e$(r){r.registerChartView(HW),r.registerSeriesModel(WW),r.registerPreprocessor($W),r.registerVisual(QW),r.registerLayout(t$)}function dx(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var r$=function(r){k(e,r);function e(t,a){var n=r.call(this)||this,i=new Dl(t,a),o=new at;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;K(h)?v=h(n):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Oa(t.__p1,t.__cp1)+Oa(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ie,f=Ad;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=t.__t<1?v[0]-h[0]:h[0]-v[0],d=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(w2);const v$=h$;var c$=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),d$=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c$},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,d=(f+v)/2-(h-u)*i;t.quadraticCurveTo(c,d,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+d)/2-(v-p)*o,y=(v+p)/2-(d-h)*o;if(IT(h,v,g,y,d,p,s,t,a))return l}else if(Ea(h,v,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const g$=p$;var y$={seriesType:"lines",plan:Lo(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&Oh(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=T2.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new g$:new By(o?i?v$:b2:i?w2:Ny),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Bt);const _$=m$;var S$=typeof Uint32Array>"u"?Array:Uint32Array,x$=typeof Float64Array>"u"?Array:Float64Array;function px(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),vg([n,t[0],t[1]])}))}var w$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],px(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(px(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=lf(this._flatCoords,a.flatCoords),this._flatCoordsOffset=lf(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Gt);const b$=w$;function Iu(r){return r instanceof Array||(r=[r,r]),r}var T$={seriesType:"lines",reset:function(r){var e=Iu(r.get("symbol")),t=Iu(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=Iu(s.getShallow("symbol",!0)),u=Iu(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};const A$=T$;function C$(r){r.registerChartView(_$),r.registerSeriesModel(b$),r.registerLayout(T2),r.registerVisual(A$)}var D$=256,M$=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=qa.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*D+T),w[x++]=I[M],w[x++]=I[M+1],w[x++]=I[M+2],w[x++]=I[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=qa.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const I$=M$;function L$(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function gx(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var R$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):gx(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(gx(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){on(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=Si(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),d=s.getAxis("y");u=c.getBandWidth()+.5,f=d.getBandWidth()+.5,h=c.scale.getExtent(),v=d.scale.getExtent()}for(var p=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),w=ae(t),x=t.getModel("emphasis"),b=x.get("focus"),T=x.get("blurScope"),A=x.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;Mh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);I=new wt({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(D[1],M)))continue;I=new wt({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:L})}if(g.hasItemOption){var N=g.getItemModel(M),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),b=O.get("focus"),T=O.get("blurScope"),A=O.get("disabled"),w=ae(N)}I.shape.r=S;var V=t.getRawValue(M),F="-";V&&V[2]!=null&&(F=V[2]+""),ve(I,w,{labelFetcher:t,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:F}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,Ht(I,b,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new I$;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,T,A){var D=t.dataToPoint([b,T]);return D[0]-=v,D[1]-=c,D.push(A),D}),S=n.getExtent(),w=n.type==="visualMap.continuous"?P$(S,n.option.range):L$(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new ce({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Bt);const E$=R$;var k$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return _a(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=wl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const O$=k$;function N$(r){r.registerChartView(E$),r.registerSeriesModel(O$)}var B$=["itemStyle","borderWidth"],yx=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gc=new qr,V$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:yx[+f],categoryDim:yx[1-+f]};return o.diff(s).add(function(c){if(o.hasValue(c)){var d=_x(o,c),p=mx(o,c,d,v),g=Sx(o,v,p);o.setItemGraphicEl(c,g),i.add(g),bx(g,v,p)}}).update(function(c,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(c)){i.remove(p);return}var g=_x(o,c),y=mx(o,c,g,v),m=L2(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(c,null),p=null),p?U$(p,v,y):p=Sx(o,v,y,!0),o.setItemGraphicEl(c,p),p.__pictorialSymbolMeta=y,i.add(p),bx(p,v,y)}).remove(function(c){var d=s.getItemGraphicEl(c);d&&xx(s,c,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){xx(i,it(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Bt);function mx(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};z$(t,i,n,a,v),G$(r,e,n,i,o,v.boundingLength,v.pxSign,f,a,v),F$(t,v.symbolScale,u,a,v);var c=v.symbolSize,d=mi(t.get("symbolOffset"),c);return H$(t,c,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function z$(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var h=[Fc(s,o[0])-l,Fc(s,o[1])-l];h[1]0?1:-1}function Fc(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function G$(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),d;z(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=H(d[h.index],v),d[f.index]=H(d[f.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function F$(r,e,t,a,n){var i=r.get(B$)||0;i&&(Gc.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Gc.updateTransform(),i/=Gc.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function H$(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,d=h.pxSign,p=Math.max(e[c.index]+s,0),g=p;if(a){var y=Math.abs(l),m=oe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[c.index]),w=Math.max(p+S*2,0),x=_?0:S*2,b=dT(a),T=b?a:Tx((y+x)/w),A=y-T*p;S=A/2/(_?T:Math.max(T-1,1)),w=p+S*2,x=_?0:S*2,!b&&a!=="fixed"&&(T=u?Tx((Math.abs(u)+x)/w):0),g=T*w-x,h.repeatTimes=T,h.symbolMargin=S}var D=d*(g/2),M=h.pathPosition=[];M[v.index]=t[v.wh]/2,M[c.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=h.bundlePosition=[];I[v.index]=t[v.xy],I[c.index]=t[c.xy];var L=h.barRectShape=B({},t);L[c.wh]=d*Math.max(Math.abs(t[c.wh]),Math.abs(M[c.index]+D)),L[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function A2(r){var e=r.symbolPatternSize,t=Qt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function C2(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(Uy(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function D2(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?no(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=A2(t),n.add(i),no(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function M2(r,e,t){var a=B({},e.barRectShape),n=r.__pictorialBarRect;n?no(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new wt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function I2(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=B({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Mt(n,{shape:i},s,l);else{i[o.wh]=0,n=new wt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],xl[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function _x(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=W$,t.isAnimationEnabled=$$,t}function W$(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function $$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Sx(r,e,t,a){var n=new at,i=new at;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?C2(n,e,t):D2(n,e,t),M2(n,t,a),I2(n,e,t,a),n.__pictorialShapeStr=L2(r,t),n.__pictorialSymbolMeta=t,n}function U$(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Mt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?C2(r,e,t,!0):D2(r,e,t,!0),M2(r,t,!0),I2(r,e,t,!0)}function xx(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Uy(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),C(i,function(o){Qa(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function L2(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Uy(r,e,t){C(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function no(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&xl[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function bx(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");Uy(r,function(p){if(p instanceof ce){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;ve(d,ae(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:fo(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Ht(r,f,h,i.get("disabled"))}function Tx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const Y$=V$;var Z$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=sn(Bf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Bf);const X$=Z$;function q$(r){r.registerChartView(Y$),r.registerSeriesModel(X$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(hD,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vD("pictorialBar"))}var K$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new pa(this._layersSeries||[],l,v,v),d=[];c.add(U(p,this,"add")).update(U(p,this,"update")).remove(U(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],w=[],x,b=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function a6(r){r.registerChartView(J$),r.registerSeriesModel(t6),r.registerLayout(e6),r.registerProcessor(Ll("themeRiver"))}var n6=2,i6=4,o6=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=n6,o.textConfig={inside:!0},it(o).seriesIndex=a.seriesIndex;var s=new Ct({z2:i6,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;it(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=B({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=lo(c,o));var d=Kn(l.getModel("itemStyle"),h,!0);B(h,d),C(Me,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var w=Kn(S,h);w&&(_.shape=w)}),t?(s.setShape(h),s.shape.r=f.r0,Vt(s,{shape:{r:f.r}},n,a.dataIndex)):(Mt(s,{shape:h},n),br(s)),s.useStyle(v),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Ht(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(D=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=D*u+o.cx,S.y=D*f+o.cy;var L=g(m,"rotate"),P=0;L==="radial"?(P=mr(-l),P>Math.PI/2&&PMath.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):Dt(L)&&(P=L*Math.PI/180),S.rotation=mr(P)});function g(y,m){var _=y.get(m);return _??i.get(m)}v.dirtyStyle()},e}(Ne);const Cx=o6;var Np="sunburstRootToNode",Dx="sunburstHighlight",s6="sunburstUnhighlight";function l6(r){r.registerAction({type:Np,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=ol(e,[Np],n);if(o){var s=n.getViewRoot();s&&(e.direction=Ly(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:Dx,update:"none"},function(e,t,a){e=B({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=ol(e,[Dx],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(B(e,{type:"highlight"}))}),r.registerAction({type:s6,update:"updateView"},function(e,t,a){e=B({},e),a.dispatchAction(B(e,{type:"downplay"}))})}var u6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];d(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function d(m,_){if(m.length===0&&_.length===0)return;new pa(_,m,S,S).add(w).update(w).remove(ot(w,null)).execute();function S(x){return x.getId()}function w(x,b){var T=x==null?null:m[x],A=b==null?null:_[b];p(T,A)}}function p(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new Cx(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new Cx(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Tf(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Np,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Bt);const f6=u6;var h6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};P2(n);var i=this._levelModels=G(t.levels||[],function(l){return new Nt(l,this,a)},this),o=Iy.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Vh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){OM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Gt);function P2(r){var e=0;C(r.children,function(a){P2(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const v6=h6;var Mx=Math.PI/180;function c6(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(n[0],o),f=H(n[1],s),h=H(i[0],l/2),v=H(i[1],l/2),c=-a.get("startAngle")*Mx,d=a.get("minAngle")*Mx,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&R2(g,m);var _=0;C(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),w=Math.PI/(S||_)*2,x=g.depth>0,b=g.height-(x?-1:1),T=(v-h)/(b||1),A=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=A?1:-1,I=function(E,N){if(E){var O=N;if(E!==p){var V=E.getValue(),F=S===0&&D?w:V*w;F1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&$(s)&&(s=Md(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");B(u,l)})})}function g6(r){r.registerChartView(f6),r.registerSeriesModel(v6),r.registerLayout(ot(c6,"sunburst")),r.registerProcessor(ot(Ll,"sunburst")),r.registerVisual(p6),l6(r)}var Ix={color:"fill",borderColor:"stroke"},y6={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ua=bt(),m6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return _a(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=ua(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Gt);const _6=m6;function S6(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function x6(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(S6,r)}}}function w6(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function b6(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:U(w6,r)}}}function T6(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function A6(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(T6,r)}}}function C6(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function D6(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:U(C6,r)}}}function M6(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function E2(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Y(r,"text")))}function k2(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},Y(a,"text")&&(o.text=a.text),Y(a,"rich")&&(o.rich=a.rich),Y(a,"textFill")&&(o.fill=a.textFill),Y(a,"textStroke")&&(o.stroke=a.textStroke),Y(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Y(a,"fontSize")&&(o.fontSize=a.fontSize),Y(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Y(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Y(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Y(a,"textPosition")&&(n.position=a.textPosition),Y(a,"textOffset")&&(n.offset=a.textOffset),Y(a,"textRotation")&&(n.rotation=a.textRotation),Y(a,"textDistance")&&(n.distance=a.textDistance)}return Lx(o,r),C(o.rich,function(l){Lx(l,l)}),{textConfig:n,textContent:i}}function Lx(r,e){e&&(e.font=e.textFont||e.font,Y(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Y(e,"textAlign")&&(r.align=e.textAlign),Y(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Y(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Y(e,"textWidth")&&(r.width=e.textWidth),Y(e,"textHeight")&&(r.height=e.textHeight),Y(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Y(e,"textPadding")&&(r.padding=e.textPadding),Y(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Y(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Y(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Y(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Y(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Y(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Y(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Px(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";Rx(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,C(e.rich,function(s){Rx(s,s)}),a}function Rx(r,e){e&&(Y(e,"fill")&&(r.textFill=e.fill),Y(e,"stroke")&&(r.textStroke=e.fill),Y(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Y(e,"font")&&(r.font=e.font),Y(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Y(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Y(e,"fontSize")&&(r.fontSize=e.fontSize),Y(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Y(e,"align")&&(r.textAlign=e.align),Y(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Y(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Y(e,"width")&&(r.textWidth=e.width),Y(e,"height")&&(r.textHeight=e.height),Y(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Y(e,"padding")&&(r.textPadding=e.padding),Y(e,"borderColor")&&(r.textBorderColor=e.borderColor),Y(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Y(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Y(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Y(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Y(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Y(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Y(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Y(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Y(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Y(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var O2={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ex=_t(O2);$r(Yr,function(r,e){return r[e]=1,r},{});Yr.join(", ");var Uf=["","style","shape","extra"],co=bt();function Yy(r,e,t,a,n){var i=r+"Animation",o=wo(r,a,n)||{},s=co(e).userDuring;return o.duration>0&&(o.during=s?U(E6,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,t[i]),o}function rf(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=co(r),u=e.style;l.userDuring=e.during;var f={},h={};if(O6(r,e,h),Ox("shape",e,h),Ox("extra",e,h),!i&&s&&(k6(r,e,f),kx("shape",r,e,f),kx("extra",r,e,f),N6(r,e,u,f)),h.style=u,I6(r,h,o),P6(r,e),s)if(i){var v={};C(Uf,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),B(d?v[d]:v,p.enterFrom))});var c=Yy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else L6(r,e,n||0,t,f);N2(r,e),u?r.dirty():r.markRedraw()}function N2(r,e){for(var t=co(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function P6(r,e){Y(e,"silent")&&(r.silent=e.silent),Y(e,"ignore")&&(r.ignore=e.ignore),r instanceof sr&&Y(e,"invisible")&&(r.invisible=e.invisible),r instanceof mt&&Y(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Er={},R6={setTransform:function(r,e){return Er.el[r]=e,this},getTransform:function(r){return Er.el[r]},setShape:function(r,e){var t=Er.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Er.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Er.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Er.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Er.el.extra||(Er.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Er.el.extra;if(e)return e[r]}};function E6(){var r=this,e=r.el;if(e){var t=co(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Er.el=e,a(R6)}}function kx(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),oi(l))B(o,i);else for(var u=Rt(l),f=0;f=0){!o&&(o=a[r]={});for(var c=_t(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var d=_t(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,V=m(R,Ha).getItemStyle();N!=null&&(V.fill=N),O!=null&&(V.opacity=O);var F={inheritColor:$(N)?N:"#000"},W=_(R,Ha),Z=Ot(W,null,F,!1,!0);Z.text=W.getShallow("show")?ft(r.getFormattedLabel(R,Ha),fo(e,R)):null;var Q=wf(W,F,!1);return A(P,V),V=Px(V,Z,Q),P&&T(V,P),V.legacy=!0,V}function b(P,R){R==null&&(R=u);var E=m(R,fa).getItemStyle(),N=_(R,fa),O=Ot(N,null,null,!0,!0);O.text=N.getShallow("show")?Hr(r.getFormattedLabel(R,fa),r.getFormattedLabel(R,Ha),fo(e,R)):null;var V=wf(N,null,!0);return A(P,E),E=Px(E,O,V),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)Y(R,E)&&(P[E]=R[E])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function D(P,R){if(R==null&&(R=u),Y(Ix,P)){var E=e.getItemVisual(R,"style");return E?E[Ix[P]]:null}if(Y(y6,P))return e.getItemVisual(R,P)}function M(P){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return qB(j({axis:R},P))}}function I(){return t.getCurrentSeriesIndices()}function L(P){return _A(P,t)}}function Z6(r){var e={};return C(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Uc(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=Qy(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Ht(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Qy(r,e,t,a,n,i){var o=-1,s=e;e&&G2(e,a,n)&&(o=ct(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=qy(a),s&&H6(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ze.normal.cfg=Ze.normal.conOpt=Ze.emphasis.cfg=Ze.emphasis.conOpt=Ze.blur.cfg=Ze.blur.conOpt=Ze.select.cfg=Ze.select.conOpt=null,Ze.isLegacy=!1,q6(u,t,a,n,l,Ze),X6(u,t,a,n,l),Ky(r,u,t,a,Ze,n,l),Y(a,"info")&&(ua(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function G2(r,e,t){var a=ua(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&tU(i)&&F2(i)!==a.customPathData||n==="image"&&Y(o,"image")&&o.image!==a.customImagePath}function X6(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&G2(o,i,a)&&(o=null),o||(o=qy(i),r.setClipPath(o)),Ky(null,o,e,i,null,a,n)}}function q6(r,e,t,a,n,i){if(!r.isGroup){Bx(t,null,i),Bx(t,fa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=qy(o),r.setTextContent(f)),Ky(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v=f;c--){var d=e.childAt(c);Q6(e,d,n)}}}function Q6(r,e,t){e&&Fh(e,ua(r).option,t)}function J6(r){new pa(r.oldChildren,r.newChildren,Vx,Vx,r).add(zx).update(zx).remove(j6).execute()}function Vx(r,e){var t=r&&r.name;return t??G6+e}function zx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;Qy(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function j6(r){var e=this.context,t=e.oldChildren[r];t&&Fh(t,ua(t).option,e.seriesModel)}function F2(r){return r&&(r.pathData||r.d)}function tU(r){return r&&(Y(r,"pathData")||Y(r,"d"))}function eU(r){r.registerChartView($6),r.registerSeriesModel(_6)}var Fn=bt(),Gx=rt,Yc=U,rU=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new at,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=ot(Fx,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}Wx(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=wy(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=Fn(e).pointerEl=new xl[i.type](Gx(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=Fn(e).labelEl=new Ct(Gx(t.label));e.add(i),Hx(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=Fn(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=Fn(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),Hx(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Sl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ha(u.event)},onmousedown:Yc(this._onHandleDragMove,this,0,0),drift:Yc(this._onHandleDragMove,this),ondragend:Yc(this._onHandleDragEnd,this)}),a.add(n)),Wx(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Po(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){Fx(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Zc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Zc(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Zc(n)),Fn(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),js(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function Fx(r,e,t,a){H2(Fn(t).lastProp,a)||(Fn(t).lastProp=a,e?Mt(t,a,r):(t.stopAnimation(),t.attr(a)))}function H2(r,e){if(tt(r)&&tt(e)){var t=!0;return C(e,function(a,n){t=t&&H2(r[n],a)}),!!t}else return r===e}function Hx(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Zc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Wx(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}const jy=rU;function tm(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function W2(r,e,t,a,n){var i=t.get("value"),o=$2(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Co(s.get("padding")||0),u=s.getFont(),f=gl(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),aU(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function aU(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function $2(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:cy(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),$(o)?i=o.replace("{value}",i):K(o)&&(i=o(s))}return i}function em(r,e,t){var a=or();return gi(a,a,t.rotation),Ur(a,a,t.position),xr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function U2(r,e,t,a,n,i){var o=ga.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),W2(e,a,n,i,{position:em(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function rm(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Y2(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function $x(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var nU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=Ux(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=tm(i),c=iU[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var d=Sp(l.model,n);U2(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Sp(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=em(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Ux(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:d[f]}},e}(jy);function Ux(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var iU={line:function(r,e,t){var a=rm([e,t[0]],[e,t[1]],Yx(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:Y2([e-a/2,t[0]],[a,n],Yx(r))}}};function Yx(r){return r.dim==="x"?0:1}const oU=nU;var sU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Tt);const lU=sU;var ia=bt(),uU=C;function Z2(r,e,t){if(!At.node){var a=e.getZr();ia(a).records||(ia(a).records={}),fU(a,e);var n=ia(a).records[r]||(ia(a).records[r]={});n.handler=t}}function fU(r,e){if(ia(r).initialized)return;ia(r).initialized=!0,t("click",ot(Zx,"click")),t("mousemove",ot(Zx,"mousemove")),t("globalout",vU);function t(a,n){r.on(a,function(i){var o=cU(e);uU(ia(r).records,function(s){s&&n(s,i,o.dispatchAction)}),hU(o.pendings,e)})}}function hU(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function vU(r,e,t){r.handler("leave",null,t)}function Zx(r,e,t,a){e.handler(r,t,a)}function cU(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function zp(r,e){if(!At.node){var t=e.getZr(),a=(ia(t).records||{})[r];a&&(ia(t).records[r]=null)}}var dU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Z2("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){zp("axisPointer",a)},e.prototype.dispose=function(t,a){zp("axisPointer",a)},e.type="axisPointer",e}(Wt);const pU=dU;function X2(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=li(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=i.mapDimension(v),p=[];p[c]=i.get(d,o),p[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var Xx=bt();function gU(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||U(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){af(n)&&(n=X2({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=af(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||af(n),v={},c={},d={list:[],map:{}},p={showPointer:ot(mU,c),showTooltip:ot(_U,d)};C(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);C(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=bU(u,S);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&qx(S,T,p,!1,v)}})});var g={};return C(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&C(_.axesInfo,function(S,w){var x=c[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,Kx(S),Kx(y)))),g[y.key]=b}})}),C(g,function(y,m){qx(f[m],y,p,!0,v)}),SU(c,f,v),xU(d,n,r,o),wU(f,o,t),v}}function qx(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=yU(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function yU(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=h,i.length=0),C(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function mU(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function _U(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=il(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function SU(r,e,t){var a=t.axesInfo=[];C(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function xU(r,e,t,a){if(af(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function wU(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=Xx(a)[n]||{},o=Xx(a)[n]={};C(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&C(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];C(i,function(u,f){!o[f]&&l.push(u)}),C(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function bU(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function Kx(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function af(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function kl(r){xi.registerAxisPointerClass("CartesianAxisPointer",oU),r.registerComponentModel(lU),r.registerComponentView(pU),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fG(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gU)}function TU(r){yt(SM),yt(kl)}var AU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=tm(i),d=DU[v](s,l,h,f);d.style=c,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=CU(a,n,i,l,p);W2(t,n,i,o,g)},e}(jy);function CU(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=or();gi(v,v,s),Ur(v,v,[a.cx,a.cy]),u=xr([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,d=ga.innerTextLayout(s,c*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var DU={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:rm(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:$x(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:$x(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}};const MU=AU;var IU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Tt);const LU=IU;var am=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Kt).models[0]},e.type="polarAxis",e}(Tt);Jt(am,Cl);var PU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(am),RU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(am),nm=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(Ar);nm.prototype.dataToRadius=Ar.prototype.dataToCoord;nm.prototype.radiusToData=Ar.prototype.coordToData;const EU=nm;var kU=bt(),im=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=gl(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),d=kU(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-c)<=1&&Math.abs(g-o)<=1&&p>c?c=p:(d.lastTickCount=o,d.lastAutoInterval=c),c},e}(Ar);im.prototype.dataToAngle=Ar.prototype.dataToCoord;im.prototype.angleToData=Ar.prototype.coordToData;const OU=im;var q2=["radius","angle"],NU=function(){function r(e){this.dimensions=q2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new EU,this._angleAxis=new OU,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=Qx(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Qx(t);return n===this?this.pointToData(a):null},r}();function Qx(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const BU=NU;function VU(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function zU(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();C(Ef(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),C(Ef(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),uo(a.scale,a.model),uo(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function GU(r){return r.mainType==="angleAxis"}function Jx(r,e){if(r.type=e.get("type"),r.scale=Eh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),GU(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var FU={dimensions:q2,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new BU(n+"");i.update=zU;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Jx(o,l),Jx(s,u),VU(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Kt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}};const HU=FU;var WU=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Lu(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Pu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function jx(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var $U=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=rt(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});jx(u),jx(s),C(WU,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&UU[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(xi),UU={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=Pu(t),l=s?0:1,u;i[l]===0?u=new qr({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new ph({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Pu(t)],u=G(a,function(f){return new se({shape:Lu(t,[l,l+s],f.coord)})});r.add(er(u,{style:j(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Pu(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];tt(w)&&w.textStyle&&(c=new Nt(w.textStyle,l,l.ecModel))}var x=new Ct({silent:ga.isLabelSilent(e),style:Ot(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var b=ga.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=h.rawLabel,it(x).eventData=b}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",L=b;w&&(a[f][M]||(a[f][M]={p:b,n:b}),L=a[f][M][I]);var P=void 0,R=void 0,E=void 0,N=void 0;if(d.dim==="radius"){var O=d.dataToCoord(D)-b,V=l.dataToCoord(M);Math.abs(O)=N})}}})}function t8(r){var e={};C(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Q2(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=K2(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var d=H(a.get("barWidth"),f),p=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[c].width&&(d=Math.min(h.remainedWidth,d),v[c].width=d,h.remainedWidth-=d),p&&(v[c].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return C(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),C(i,function(p,g){var y=p.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=tw(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=tw(t);return n===this?this.pointToData(a):null},r}();function tw(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function c8(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new v8(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",Kt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var d8={create:c8,dimensions:j2};const p8=d8;var ew=["x","y"],g8=["width","height"],y8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=qc(l,1-Xf(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=tm(i),c=m8[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var d=Gp(n);U2(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Gp(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=em(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Xf(o),u=qc(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=qc(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(jy),m8={line:function(r,e,t){var a=rm([e,t[0]],[e,t[1]],Xf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:Y2([e-a/2,t[0]],[a,n],Xf(r))}}};function Xf(r){return r.isHorizontal()?0:1}function qc(r,e){var t=r.getRect();return[t[ew[e]],t[ew[e]]+t[g8[e]]]}const _8=y8;var S8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Wt);function x8(r){yt(kl),xi.registerAxisPointerClass("SingleAxisPointer",_8),r.registerComponentView(S8),r.registerComponentView(u8),r.registerComponentModel(Xc),ho(r,"single",Xc,Xc.defaultOption),r.registerCoordinateSystem("single",p8)}var w8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Do(t);r.prototype.init.apply(this,arguments),rw(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),rw(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Tt);function rw(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=G([0,1],function(i){return Lk(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Ja(r,e,{type:"box",ignoreSize:n})}const b8=w8;var T8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new wt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){d(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Ve({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return $(t)&&t?Dk(t,a):K(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Ct({z2:30,style:Ot(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(a=Kd(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Kc)-Math.floor(t[0].time/Kc)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&tn.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function aw(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}const D8=C8;function M8(r){r.registerComponentModel(b8),r.registerComponentView(A8),r.registerCoordinateSystem("calendar",D8)}function I8(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function nw(r,e){var t;return C(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function L8(r,e,t){var a=B({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(ht(n,a,!0),Ja(n,a,{ignoreSize:!0}),VA(t,n),Ru(t,n),Ru(t,n,"shape"),Ru(t,n,"style"),Ru(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var tI=["transition","enterFrom","leaveTo"],P8=tI.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ru(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?tI:P8,n=0;n=0;f--){var h=n[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,y=Je(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Ah(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Je(c).isNew&&S){for(var w=h.transition,x={},b=0;b=0)?x[T]=A:c[T]=A}Mt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){nf(n,Je(n).option,a,t._lastGraphicModel)}),this._elMap=X()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Wt);function Fp(r){var e=Y(iw,r)?iw[r]:Bg(r),t=new e({});return Je(t).type=r,t}function ow(r,e,t,a){var n=Fp(t);return e.add(n),a.set(r,n),Je(n).id=r,Je(n).isNew=!0,n}function nf(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){nf(i,e,t,a)}),Fh(r,e,a),t.removeKey(Je(r).id))}function sw(r,e,t,a){r.isGroup||C([["cursor",sr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];Y(e,i)?r[i]=ft(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),C(_t(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=K(i)?i:null}}),Y(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function O8(r){return r=B({},r),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(BA),function(e){delete r[e]}),r}function N8(r,e,t){var a=it(r).eventData;!r.silent&&!r.ignore&&!a&&(a=it(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function B8(r){r.registerComponentModel(E8),r.registerComponentView(k8),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var lw=["x","y","radius","angle","single"],V8=["cartesian2d","polar","singleAxis"];function z8(r){var e=r.get("coordinateSystem");return ct(V8,e)>=0}function Wa(r){return r+"Axis"}function G8(r,e){var t=X(),a=[],n=X();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var d=t.get(v);d&&d[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function eI(r){var e=r.ecModel,t={infoList:[],infoMap:X()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Wa(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Qc=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),F8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=uw(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=uw(t);ht(this.option,t,!0),ht(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=X(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return C(lw,function(n){var i=this.getReferringComponents(Wa(n),sR);if(i.specified){a=!0;var o=new Qc;C(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new Qc;if(v.add(h.componentIndex),t.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Kt).models[0];c&&C(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",Kt).models[0]&&v.add(d.componentIndex)})}}}i&&C(lw,function(u){if(i){var f=n.findComponents({mainType:Wa(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Qc;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Wa(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){C(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Wa(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;C([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;C(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(d=!0),w&&(p=!0)}return g&&d&&p})}else Xi(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Xi(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Xi(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Lt(a[0]+o,a,[0,100],!0):i!=null&&(o=Lt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=hT(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function X8(r,e,t){var a=[1/0,-1/0];Xi(t,function(o){mV(a,o.getData(),e)});var n=r.getAxisModel(),i=mD(n.axis.scale,n,a).calculate();return[i.min,i.max]}const q8=Z8;var K8={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Wa(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new q8(n,i,s,r),t.push(o.__dzAxisProxy))});var a=X();return C(t,function(n){C(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const Q8=K8;function J8(r){r.registerAction("dataZoom",function(e,t){var a=G8(t,e);C(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var hw=!1;function sm(r){hw||(hw=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Q8),J8(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function j8(r){r.registerComponentModel(W8),r.registerComponentView(Y8),sm(r)}var tr=function(){function r(){}return r}(),rI={};function qi(r,e){rI[r]=e}function aI(r){return rI[r]}var t7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(a,n){var i=aI(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ht(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Tt);const e7=t7;function r7(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=te(a,i,n);ai(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Ah(r,a,i,n)}function nI(r,e){var t=Co(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new wt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var a7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];C(u,function(d,p){h.push(p)}),new pa(this._featureNames||[],h).add(v).update(v).remove(ot(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],y=h[p],m=u[g],_=new Nt(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(n7(g))S={onclick:_.option.onclick,featureName:g};else{var w=aI(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=Ao("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof tr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(b,T){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[b]=T,D[b]&&(T==="emphasis"?ca:da)(D[b])},S instanceof tr&&S.render&&S.render(_,a,n,i)}function c(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof tr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;$(_)?(w={},w[g]=_):w=_,$(S)?(x={},x[g]=S):x=S;var b=d.iconPaths={};C(w,function(T,A){var D=Sl(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var I=new Ct({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(I),bo({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),D.__title=x[A],D.on("mouseover",function(){var L=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?ca:da)(D),o.add(D),D.on("click",U(p.onclick,p,a,n,A)),b[A]=D})}r7(o,t,n),o.add(nI(o.getBoundingRect(),t)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!K(_)&&p){var S=_.style||(_.style={}),w=gl(p,Ct.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,T=!1;b+w.height>n.getHeight()&&(y.position="top",T=!0);var A=T?-5-w.height:s+10;x+w.width/2>n.getWidth()?(y.position=["100%",A],S.align="right"):x-w.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,a,n,i){C(this._features,function(o){o instanceof tr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){C(this._features,function(n){n instanceof tr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){C(this._features,function(n){n instanceof tr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Wt);function n7(r){return r.indexOf("my")===0}const i7=a7;var o7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=At.browser;if(K(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];c&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=n.get("lang"),b='',T=window.open();T.document.write(b),T.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(tr);const s7=o7;var vw="__ec_magicType_stack__",l7=[["line","bar"],["stack"]],u7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return C(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(cw[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=cw[n](v,c,h,i);d&&(j(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Kt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};C(l7,function(h){ct(h,n)>=0&&C(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=ht({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(tr),cw={line:function(r,e,t,a){if(r==="bar")return ht({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return ht({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===vw;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ht({id:e,stack:n?"":vw},a.get(["option","stack"])||{},!0)}};Qr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const f7=u7;var Hh=new Array(60).join("-"),po=" ";function h7(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function v7(r){var e=[];return C(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];C(t.series,function(c){var d=c.getRawData();l.push(c.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(po)],f=0;f=0)return!0}var Fp=new RegExp("["+co+"]+","g");function g7(r){for(var e=r.split(/\n+/g),t=Xf(e.shift()).split(Fp),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function b7(r){var e=sm(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return nI(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function T7(r){iI(r).snapshots=null}function A7(r){return sm(r).length}function sm(r){var e=iI(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var C7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){T7(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(tr);Qr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const D7=C7;var M7=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],I7=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=cw(t,e);C(L7,function(o,s){(!a||!a.include||ct(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Qc[a.brushType](0,i,n);a.__rangeOffset={offset:yw[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){C(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&C(i.coordSyses,function(o){var s=Qc[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){C(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Qc[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?yw[a.brushType](i.values,o.offset,P7(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:v2(n),isTargetByCursor:d2(n,e,a.coordSysModel),getLinearBrushOtherExtent:c2(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&ct(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=cw(t,e),i=0;ir[1]&&r.reverse(),r}function cw(r,e){return As(r,e,{includeMainTypes:M7})}var L7={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=X(),o={},s={};!t&&!a&&!n||(C(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),C(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),C(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];C(u.getCartesians(),function(h,v){(ct(t,h.getAxis("x").model)>=0||ct(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:pw.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){C(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:pw.geo})})}},dw=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],pw={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(ri(r)),e}},Qc={lineX:ot(gw,0),lineY:ot(gw,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Hp([n[0],i[0]]),Hp([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function gw(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Hp(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var yw={lineX:ot(mw,0),lineY:ot(mw,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function mw(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function P7(r,e){var t=_w(r),a=_w(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function _w(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const lm=I7;var Wp=C,R7=rR("toolbox-dataZoom_"),E7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new Hy(n.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),N7(t,a,this,i,n),O7(t,a)},e.prototype.onclick=function(t,a,n){k7[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new lm(um(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),w7(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,i),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=xi(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,f.componentIndex);d&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];Wp(t,function(n,i){a.push(rt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(tr),k7={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(b7(this.ecModel))}};function um(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function O7(r,e){r.setIconStatus("back",A7(e)>1?"emphasis":"normal")}function N7(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new lm(um(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Nk("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=um(a),o=As(r,i);Wp(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Wp(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:R7+u+h};v[f]=h,n.push(v)}return n});const B7=E7;function V7(r){r.registerComponentModel(e7),r.registerComponentView(i7),Xi("saveAsImage",s7),Xi("magicType",f7),Xi("dataView",x7),Xi("dataZoom",B7),Xi("restore",D7),yt(j8)}var z7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Tt);const G7=z7;function oI(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function sI(r){if(At.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var d=e+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function Z7(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=At.transformSupported?","+fm+a:",left"+a+",top"+a),W7+":"+n}function Sw(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!At.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=At.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+fm+":"+o+";":[["top",0],["left",0],[lI,o]]}function X7(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),C(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function q7(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=gC(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&n&&a.push(Z7(n,t)),i&&a.push("background-color:"+i),C(["width","color","radius"],function(c){var d="border-"+c,p=kA(d),g=r.get(p);g!=null&&a.push(d+":"+g+(c==="color"?"":"px"))}),a.push(X7(f)),h!=null&&a.push("padding:"+Ao(h).join("px ")+"px"),a.join(";")+";"}function xw(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&DL(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var K7=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,At.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;xw(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();qe(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=H7(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=$7+q7(e,!this._firstShow,this._longHide)+Sw(i[0],i[1],!0)+("border-color:"+hi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if($(i)&&a.get("trigger")==="item"&&!oI(a)&&(s=Y7(a,n,i)),$(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||At.node||!n.getDom())){var o=Tw(i,n);this._ticket="";var s=i.dataByCoordSys,l=iY(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=tY;f.x=i.x,f.y=i.y,f.update(),it(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=Z2(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Tw(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),h=ns([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){this._lastDataByCoordSys=null;var s,l;Zn(n,function(u){if(it(u).dataIndex!=null)return s=u,!0;if(it(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=U(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=ns([a.tooltipOption],i),l=this._renderMode,u=[],f=ne("section",{blocks:[],noHeader:!0}),h=[],v=new Nv;C(t,function(m){C(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=W2(w,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),b=ne("section",{header:x,noHeader:!yr(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),C(_.seriesDataIndices,function(T){var A=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=vy(S.axis,{value:w}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",hi(M.color),l);var I=l_(A.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=ns([A],i).get("valueFormatter");b.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,d=s.get("order"),p=d_(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?` +`),meta:e.meta}}function qf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function p7(r){var e=r.slice(0,r.indexOf(` +`));if(e.indexOf(po)>=0)return!0}var Hp=new RegExp("["+po+"]+","g");function g7(r){for(var e=r.split(/\n+/g),t=qf(e.shift()).split(Hp),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function b7(r){var e=lm(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return iI(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function T7(r){oI(r).snapshots=null}function A7(r){return lm(r).length}function lm(r){var e=oI(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var C7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){T7(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(tr);Qr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const D7=C7;var M7=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],I7=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=dw(t,e);C(L7,function(o,s){(!a||!a.include||ct(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Jc[a.brushType](0,i,n);a.__rangeOffset={offset:mw[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){C(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&C(i.coordSyses,function(o){var s=Jc[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){C(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Jc[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?mw[a.brushType](i.values,o.offset,P7(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:c2(n),isTargetByCursor:p2(n,e,a.coordSysModel),getLinearBrushOtherExtent:d2(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&ct(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=dw(t,e),i=0;ir[1]&&r.reverse(),r}function dw(r,e){return Cs(r,e,{includeMainTypes:M7})}var L7={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=X(),o={},s={};!t&&!a&&!n||(C(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),C(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),C(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];C(u.getCartesians(),function(h,v){(ct(t,h.getAxis("x").model)>=0||ct(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:gw.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){C(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:gw.geo})})}},pw=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],gw={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(ri(r)),e}},Jc={lineX:ot(yw,0),lineY:ot(yw,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Wp([n[0],i[0]]),Wp([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function yw(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Wp(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var mw={lineX:ot(_w,0),lineY:ot(_w,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function _w(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function P7(r,e){var t=Sw(r),a=Sw(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Sw(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const um=I7;var $p=C,R7=rR("toolbox-dataZoom_"),E7=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new Wy(n.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),N7(t,a,this,i,n),O7(t,a)},e.prototype.onclick=function(t,a,n){k7[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new um(fm(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),w7(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,i),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=wi(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,f.componentIndex);d&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];$p(t,function(n,i){a.push(rt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(tr),k7={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(b7(this.ecModel))}};function fm(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function O7(r,e){r.setIconStatus("back",A7(e)>1?"emphasis":"normal")}function N7(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new um(fm(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Nk("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=fm(a),o=Cs(r,i);$p(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),$p(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:R7+u+h};v[f]=h,n.push(v)}return n});const B7=E7;function V7(r){r.registerComponentModel(e7),r.registerComponentView(i7),qi("saveAsImage",s7),qi("magicType",f7),qi("dataView",x7),qi("dataZoom",B7),qi("restore",D7),yt(j8)}var z7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Tt);const G7=z7;function sI(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function lI(r){if(At.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var d=e+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function Z7(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=At.transformSupported?","+hm+a:",left"+a+",top"+a),W7+":"+n}function xw(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!At.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=At.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+hm+":"+o+";":[["top",0],["left",0],[uI,o]]}function X7(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),C(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function q7(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=yC(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&n&&a.push(Z7(n,t)),i&&a.push("background-color:"+i),C(["width","color","radius"],function(c){var d="border-"+c,p=OA(d),g=r.get(p);g!=null&&a.push(d+":"+g+(c==="color"?"":"px"))}),a.push(X7(f)),h!=null&&a.push("padding:"+Co(h).join("px ")+"px"),a.join(";")+";"}function ww(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&DL(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var K7=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,At.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;ww(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();qe(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=H7(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=$7+q7(e,!this._firstShow,this._longHide)+xw(i[0],i[1],!0)+("border-color:"+hi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if($(i)&&a.get("trigger")==="item"&&!sI(a)&&(s=Y7(a,n,i)),$(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||At.node||!n.getDom())){var o=Aw(i,n);this._ticket="";var s=i.dataByCoordSys,l=iY(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=tY;f.x=i.x,f.y=i.y,f.update(),it(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=X2(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Aw(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),h=is([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){this._lastDataByCoordSys=null;var s,l;Zn(n,function(u){if(it(u).dataIndex!=null)return s=u,!0;if(it(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=U(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=is([a.tooltipOption],i),l=this._renderMode,u=[],f=ne("section",{blocks:[],noHeader:!0}),h=[],v=new Bv;C(t,function(m){C(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=$2(w,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),b=ne("section",{header:x,noHeader:!yr(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),C(_.seriesDataIndices,function(T){var A=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=cy(S.axis,{value:w}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",hi(M.color),l);var I=u_(A.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=is([A],i).get("valueFormatter");b.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,d=s.get("order"),p=p_(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?` -`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=it(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=t.positionDefault,p=ns([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Nv;y.marker=m.makeTooltipMarker("item",hi(y.color),c);var _=l_(u.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?d_(w?B({valueFormatter:w},x):x,m,c,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=it(a),o=i.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=ns(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",p=new Nv;this._showOrMove(v,function(){var g=rt(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,d,t.offsetX,t.offsetY,t.position,a,p)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(v)if($(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=_h(y.axisValue,c,g)),c=OA(c,n,!0)}else if(K(v)){var _=U(function(S,w){S===this._ticket&&(h.setContent(w,f,t,p,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,p,l),h.show(t,p),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),K(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=H(a[0],u),i=H(a[1],f);else if(tt(a)){var p=a;p.width=h[0],p.height=h[1];var g=te(p,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if($(a)&&l){var y=nY(a,d,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=rY(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=Aw(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=Aw(c)?h[1]/2:c==="bottom"?h[1]:0),oI(t)){var y=aY(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&C(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&C(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&C(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&C(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){At.node||!a.getDom()||(Js(this,"_updatePosition"),this._tooltipContent.dispose(),Vp("itemTooltip",a))},e.type="tooltip",e}(Wt);function ns(r,e,t){var a=e.ecModel,n;t?(n=new Nt(t,a,a),n=new Nt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Nt&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new Nt(o,n,a)))}return n}function Tw(r,e){return r.dispatchAction||U(e.dispatchAction,e)}function rY(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function aY(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function nY(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function Aw(r){return r==="center"||r==="middle"}function iY(r,e,t){var a=bg(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=gl(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const oY=eY;function sY(r){yt(El),r.registerComponentModel(G7),r.registerComponentView(oY),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Zt)}var lY=["rect","polygon","keep","clear"];function uY(r,e){var t=Rt(r?r.brush:[]);if(t.length){var a=[];C(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),fY(s),e&&!s.length&&s.push.apply(s,lY)}}function fY(r){var e={};C(r,function(t){e[t]=1}),r.length=0,C(e,function(t,a){r.push(a)})}var Cw=C;function Dw(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function $p(r,e,t){var a={};return Cw(e,function(i){var o=a[i]=n();Cw(r[i],function(s,l){if(fe.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new fe(u),l==="opacity"&&(u=rt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new fe(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function fI(r,e,t){var a;C(t,function(n){e.hasOwnProperty(n)&&Dw(e[n])&&(a=!0)}),a&&C(t,function(n){e.hasOwnProperty(n)&&Dw(e[n])?r[n]=rt(e[n]):delete r[n]})}function hY(r,e,t,a,n,i){var o={};C(r,function(h){var v=fe.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return ty(t,s,h)}function u(h,v){CC(t,s,h,v)}i==null?t.each(f):t.each([i],f);function f(h,v){s=i==null?h:v;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var d=a.call(n,h),p=e[d],g=o[d],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&Rw(e)}};function Rw(r){return new vt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var _Y=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new Hy(a.getZr())).on("brush",U(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){hI(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:rt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:rt(n),$from:a})},e.type="brush",e}(Wt);const SY=_Y;var xY="#ddd",wY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&fI(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:xY},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=G(t,function(a){return Ew(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Ew(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Tt);function Ew(r,e){return ht({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Nt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const bY=wY;var TY=["rect","polygon","lineX","lineY","keep","clear"],AY=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,C(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return C(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:TY.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(tr);const CY=AY;function DY(r){r.registerComponentView(SY),r.registerComponentModel(bY),r.registerPreprocessor(uY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,dY),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Zt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Zt),Xi("brush",CY)}var MY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Tt),IY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ft(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ct({style:Ot(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new Ct({style:Ot(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){bf(d,"_"+t.get("target"))}),p&&c.on("click",function(){bf(p,"_"+t.get("subtarget"))}),it(f).eventData=it(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=te(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var w=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new wt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Wt);function LY(r){r.registerComponentModel(MY),r.registerComponentView(IY)}var PY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],C(a,function(u,f){var h=jt(_o(u),""),v;tt(u)?(v=rt(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Ce([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Tt);const kw=PY;var vI=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=sn(kw.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(kw);Jt(vI,qg.prototype);const RY=vI;var EY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Wt);const kY=EY;var OY=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Ar);const NY=OY;var jc=Math.PI,Ow=bt(),BY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ne("nameValue",{noName:!0,value:f})},C(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=zY(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:jc/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),d=c?v.get("itemSize"):0,p=c?v.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*jc/180;var m,_,S,w=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),b=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),A=0,D=h;w==="left"||w==="bottom"?(x&&(m=[0,0],A+=g),b&&(_=[A,0],A+=g),T&&(S=[D-d,0],D-=g)):(x&&(m=[D-d,0],D-=g),b&&(_=[0,0],A+=g),T&&(S=[D-d,0],D-=g));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=or(),l=o.x,u=o.y+o.height;Ur(s,s,[-l,-u]),pi(s,s,-jc/2),Ur(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],d=[i.x,i.y];d[0]=c[0]=f[0][0];var p=t.labelPosOpt;if(p==null||$(p)){var g=p==="+"?0:1;_(c,h,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(c,h,f,1,g),d[1]=c[1]+p}n.setPosition(c),i.setPosition(d),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,T){S[b]+=x[b][T]-w[b][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=VY(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new NY("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new at;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new se({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new se({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:j({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],C(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:U(o._changeTimeline,o,u.value)},g=Nw(h,v,a,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),ei(g);var y=it(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],C(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Ct({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:U(o._changeTimeline,o,h),silent:!1,style:Ot(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ot(d),y.ensureState("progress").style=Ot(p),a.add(y),ei(y),Ow(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",U(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",U(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",U(this._handlePlayClick,this,!f),!0);function v(c,d,p,g){if(c){var y=wr(ft(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=GY(i,d+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),ei(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=U(u._handlePointerDrag,u),h.ondragend=U(u._handlePointerDragend,u),Bw(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){Bw(h,u._progressLine,s,n,i)}};this._currentPointer=Nw(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=ar(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var td={min:ot(ku,"min"),max:ot(ku,"max"),average:ot(ku,"average"),median:ot(ku,"median")};function hl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!XY(e)&&!z(e.coord)&&z(n)){var i=dI(e,t,a,r);if(e=rt(e),e.type&&td[e.type]&&i.baseAxis&&i.valueAxis){var o=ct(n,i.baseAxis.dim),s=ct(n,i.valueAxis.dim),l=td[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)td[u[f]]&&(u[f]=vm(t,t.mapDimension(n[f]),u[f]));return e}}function dI(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(qY(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function qY(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function vl(r,e){return r&&r.containData&&e.coord&&!Yp(e)?r.containData(e.coord):!0}function KY(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Yp(e)&&!Yp(t)?r.containZone(e.coord,t.coord):!0}function pI(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ya(o,e[i])}:function(t,a,n,i){return Ya(t.value,e[i])}}function vm(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var ed=bt(),QY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=X()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){ed(s).keep=!1}),a.eachSeries(function(s){var l=an.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!ed(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){ed(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;C(t,function(i){var o=an.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?HT(l):Ig(l))})}})},e.type="marker",e}(Wt);const cm=QY;function zw(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var JY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markPoint");o&&(zw(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Dl),h=jY(o,t,a);a.setData(h),zw(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(K(d)||K(p)||K(g)||K(y)){var _=a.getRawValue(v),S=a.getDataParams(v);K(d)&&(d=d(_,S)),K(p)&&(p=p(_,S)),K(g)&&(g=g(_,S)),K(y)&&(y=y(_,S))}var w=c.getModel("itemStyle").getItemStyle(),x=wl(l,"color");w.fill||(w.fill=x),h.setItemVisual(v,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:w})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){it(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(cm);function jY(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return B(B({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ce(a,t),i=G(t.get("data"),ot(hl,e));r&&(i=Pt(i,ot(vl,r)));var o=pI(!!r,a);return n.initData(i,null,o),n}const t9=JY;function e9(r){r.registerComponentModel(ZY),r.registerComponentView(t9),r.registerPreprocessor(function(e){hm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var r9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(an);const a9=r9;var Ou=bt(),n9=function(r,e,t,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=oe(a.yAxis,a.xAxis);else{var u=dI(a,n,e,r);s=u.valueAxis;var f=eD(n,u.valueDataDim);l=vm(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=rt(a),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=t.get("precision");p>=0&&Dt(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,i=[c,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[hl(r,i[0]),hl(r,i[1]),B({},i[2])];return g[2].type=g[2].type||null,ht(g[2],g[0]),ht(g[2],g[1]),g};function qf(r){return!isNaN(r)&&!isFinite(r)}function Gw(r,e,t,a){var n=1-r,i=a.dimensions[r];return qf(e[n])&&qf(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function i9(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Gw(1,t,a,r)||Gw(0,t,a,r)))return!0}return vl(r,e[0])&&vl(r,e[1])}function rd(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(_i(i,"cartesian2d")){var c=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;qf(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):qf(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var o9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ou(o).from,u=Ou(o).to;l.each(function(f){rd(l,f,!0,i,n),rd(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Ny);this.group.add(f.group);var h=s9(o,t,a),v=h.from,c=h.to,d=h.line;Ou(a).from=v,Ou(a).to=c,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(p)||(p=[p,p]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),d.each(function(S){var w=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),h.line.eachItemGraphicEl(function(S){it(S).dataModel=a,S.traverse(function(w){it(w).dataModel=a})});function _(S,w,x){var b=S.getItemModel(w);rd(S,w,x,t,i);var T=b.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=wl(l,"color")),S.setItemVisual(w,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:ft(b.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ft(b.get("symbolRotate",!0),y[x?0:1]),symbolSize:ft(b.get("symbolSize"),g[x?0:1]),symbol:ft(b.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(cm);function s9(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return B(B({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ce(a,t),i=new Ce(a,t),o=new Ce([],t),s=G(t.get("data"),ot(n9,e,r,t));r&&(s=Pt(s,ot(i9,r)));var l=pI(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const l9=o9;function u9(r){r.registerComponentModel(a9),r.registerComponentView(l9),r.registerPreprocessor(function(e){hm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var f9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(an);const h9=f9;var Nu=bt(),v9=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=hl(r,n),s=hl(r,i),l=o.coord,u=s.coord;l[0]=oe(l[0],-1/0),l[1]=oe(l[1],-1/0),u[0]=oe(u[0],1/0),u[1]=oe(u[1],1/0);var f=hg([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Kf(r){return!isNaN(r)&&!isFinite(r)}function Fw(r,e,t,a){var n=1-r;return Kf(e[n])&&Kf(t[n])}function c9(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return _i(r,"cartesian2d")?t&&a&&(Fw(1,t,a)||Fw(0,t,a))?!0:KY(r,n,i):vl(r,n)||vl(r,i)}function Hw(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),n.getWidth()),u=H(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),d=[];t[0]==="x0"?d[0]=v[0]>c[0]?h[0]:f[0]:d[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?d[1]=v[1]>c[1]?h[1]:f[1]:d[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(_i(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);Kf(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Kf(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Ww=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],d9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(Ww,function(h){return Hw(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var h=p9(o,t,a);a.setData(h),h.each(function(v){var c=G(Ww,function(T){return Hw(h,v,T,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(h.get("x0",v)),d.parse(h.get("x1",v))],_=[p.parse(h.get("y0",v)),p.parse(h.get("y1",v))];ar(m),ar(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),w=!S;h.setItemLayout(v,{points:c,allClipped:w});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),b=wl(l,"color");x.fill||(x.fill=b,$(x.fill)&&(x.fill=ff(x.fill,.4))),x.stroke||(x.stroke=b),h.setItemVisual(v,"style",x)}),h.diff(Nu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var d=new Be({shape:{points:c.points}});h.setItemGraphicEl(v,d),f.group.add(d)}}).update(function(v,c){var d=Nu(f).data.getItemGraphicEl(c),p=h.getItemLayout(v);p.allClipped?d&&f.group.remove(d):(d?Mt(d,{shape:{points:p.points}},a,v):d=new Be({shape:{points:p.points}}),h.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var c=Nu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),ve(v,ae(d),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:$(p.fill)?ff(p.fill,1):"#000"}),he(v,d),Ht(v,null,null,d.get(["emphasis","disabled"])),it(v).dataModel=a}),Nu(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(cm);function p9(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return B(B({},h),{name:u,ordinalMeta:null})});n=G(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new Ce(n,t)}else n=[{name:"value",type:"float"}],a=new Ce(n,t);var s=G(t.get("data"),ot(v9,e,r,t));r&&(s=Pt(s,ot(c9,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return Ya(c,n[v])}:function(u,f,h,v){return Ya(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}const g9=d9;function y9(r){r.registerComponentModel(h9),r.registerComponentView(g9),r.registerPreprocessor(function(e){hm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var m9=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},_9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&C(a,function(i,o){$(i)&&(i={type:i}),a[o]=ht(i,m9(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Tt);const Zp=_9;var Gi=ot,Xp=C,Bu=at,S9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Bu),this.group.add(this._selectorGroup=new Bu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=te(f,h,v),d=this.layoutInner(t,o,c,i,l,u),p=te(j({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=aI(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=X(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Xp(a.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var g=new Bu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,p,d,c,a,t,_,w,S,h,i);x.on("click",Gi($w,p,null,i,v)).on("mouseover",Gi(qp,y.name,null,i,v)).on("mouseout",Gi(Kp,y.name,null,i,v)),f.set(p,!0)}else n.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),D=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),I=Fe(D.fill);I&&I[3]===0&&(I[3]=.2,D=B(B({},D),{fill:la(I,"rgba")}));var L=this._createItem(b,p,d,c,a,t,{},D,M,h,i);L.on("click",Gi($w,null,p,i,v)).on("mouseover",Gi(qp,null,p,i,v)).on("mouseout",Gi(Kp,null,p,i,v)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Xp(t,function(u){var f=u.type,h=new Ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);ve(h,{normal:v,emphasis:c},{defaultText:u.title}),ei(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=x9(f,i,l,u,c,g,v),w=new Bu,x=i.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(w9({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,A=s,D=o.get("formatter"),M=a;$(D)&&D?M=D.replace("{name}",a??""):K(D)&&(M=D(a));var I=g?x.getTextColor():i.get("inactiveColor");w.add(new Ct({style:Ot(x,{text:M,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new wt({shape:w.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&wo({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),ei(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ai(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ai("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Wt);function x9(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Xp(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:so(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function w9(r){var e=r.icon||"roundRect",t=Qt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function $w(r,e,t,a){Kp(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),qp(r,e,t,a)}function gI(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ft(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),h.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new wt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&Mt(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),w},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=ad[o],l=nd[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i=b&&x.s<=b+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(yI);const M9=D9;function I9(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function L9(r){yt(mI),r.registerComponentModel(C9),r.registerComponentView(M9),I9(r)}function P9(r){yt(mI),yt(L9)}var R9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=sn(fl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(fl);const E9=R9;var dm=bt();function k9(r,e,t){dm(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function O9(r,e){for(var t=dm(r).coordSysRecordMap,a=t.keys(),n=0;na[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function G9(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=dm(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=X());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=tI(i);C(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,N9(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=X());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){_I(n,i);return}var f=z9(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Lo(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var F9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),k9(n,t,{pan:U(id.pan,this),zoom:U(id.zoom,this),scrollMove:U(id.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){O9(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(im),id={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=od[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(xi(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Zw(function(r,e,t,a,n,i){var o=od[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Zw(function(r,e,t,a,n,i){var o=od[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Zw(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(xi(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var od={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const H9=F9;function SI(r){om(r),r.registerComponentModel(E9),r.registerComponentView(H9),G9(r)}var W9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=sn(fl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(fl);const $9=W9;var ss=wt,Xw=7,U9=1,sd=30,Y9=7,ls="horizontal",qw="vertical",Z9=5,X9=["line","bar","candlestick","scatter"],q9={easing:"cubicOut",duration:100,delay:0},K9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Lo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Js(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?Y9:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===ls?{right:s.width-o.x-o.width,top:s.height-sd-Xw-i,width:o.width,height:sd}:{right:Xw,top:o.y,width:sd,height:o.height},u=Co(t.option);C(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=te(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===qw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===ls&&!o?{scaleY:l?1:-1,scaleX:1}:n===ls&&o?{scaleY:l?1:-1,scaleX:-1}:n===qw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new ss({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ss({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(A,D){if(_>0&&D%_){m+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:Lt(A,h,c,!0);M&&!S&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var w=this.dataZoomModel;function x(A){var D=w.getModel(A?"selectedDataBackground":"dataBackground"),M=new at,I=new Be({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Ve({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var b=0;b<3;b++){var T=x(b===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();C(l,function(u){if(!n&&!(a!==!0&&ct(X9,u.get("type"))<0)){var f=i.getComponent(Wa(o),s).axis,h=Q9(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new ss({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new ss({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:U9,fill:"rgba(0,0,0,0)"}})),C([0,1],function(_){var S=l.get("handleIcon");!Cf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Qt(S,-1,0,2,2,null,!0);w.attr({cursor:Kw(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=H(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ei(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(n[_]=w);var A=l.getModel("textStyle");t.add(i[_]=new Ct({silent:!0,invisible:!0,style:Ot(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var d=H(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new wt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=Qt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));c=a.moveZone=new wt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:Kw(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Lt(t[0],[0,100],a,!0),Lt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];xi(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Lt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Lt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ar([Lt(i[0],o,l,!0),Lt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=ar(n.slice()),o=this._size;C([0,1],function(c){var d=a.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[c]+(c?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ut(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ar([Lt(n.x,o,s,!0),Lt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ha(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ss({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?q9:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=tI(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(im);function Q9(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Kw(r){return r==="vertical"?"ns-resize":"ew-resize"}const J9=K9;function xI(r){r.registerComponentModel($9),r.registerComponentView(J9),om(r)}function j9(r){yt(SI),yt(xI)}var tZ={get:function(r,e,t){var a=rt((eZ[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},eZ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const wI=tZ;var Qw=fe.mapVisual,rZ=fe.eachVisual,aZ=z,Jw=C,nZ=ar,iZ=Lt,oZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&fI(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=U(t,this),this.controllerVisuals=$p(this.option.controller,a,t),this.targetVisuals=$p(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Rt(t),a},e.prototype.eachTargetSeries=function(t,a){C(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=nZ([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ht(i,n),ht(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){aZ(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var d=h[v],p=h[c];d&&!p&&(p=h[c]={},Jw(d,function(g,y){if(fe.isValidType(y)){var m=wI.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";Jw(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&rt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&rt(c)||(s?m[0]:[m[0],m[0]])),_.symbol=Qw(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var w=-1/0;rZ(S,function(x){x>w&&(w=x)}),_.symbolSize=Qw(S,function(x){return iZ(x,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Tt);const Qf=oZ;var jw=[20,140],sZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=jw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=jw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),C(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=ar((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=tb(this,"outOfRange",this.getExtent()),n=tb(this,"inRange",this.option.range.slice()),i=[];function o(c,d){i.push({value:c,color:t(c,d)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new at(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();fZ([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=kr(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var d=xr(n.handleLabelPoints[f],ri(h,this.group));s[f].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),d=this.getControllerVisual(t,"symbolSize"),p=kr(t,s,u,!0),g=l[0]-d/2,y={x:h.x,y:h.y};h.y=p,h.x=g;var m=xr(f.indicatorLabelPoint,ri(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:g,y:p,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(b,A),_.animateTo(T,A)}else h.attr(b),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(a||nb(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var d=iR(v,c);this._dispatchHighDown("downplay",nf(d[0],n)),this._dispatchHighDown("highlight",nf(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Zn(t.target,function(l){var u=it(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function _Z(r,e,t,a){for(var n=e.targetVisuals[a],i=fe.prepareVisualTypes(n),o={color:wl(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(gZ,yZ),C(mZ,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(SZ))}function CI(r){r.registerComponentModel(lZ),r.registerComponentView(pZ),AI(r)}var xZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],wZ[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=rt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=rt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=fe.listVisualTypes(),i=this.isCategory();C(t.pieces,function(s){C(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),C(a,function(s,l){var u=!1;C(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&C(this.stateList,function(f){(t[f]||(t[f]={}))[l]=wI.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,C(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;C(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=rt(t)},e.prototype.getValueState=function(t){var a=fe.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=fe.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return C(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=sn(Qf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Qf),wZ={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function lb(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const bZ=xZ;var TZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=oe(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),C(f.viewPieceList,function(c){var d=c.piece,p=new at;p.onclick=U(this._onItemClick,this,d),this._enableHoverLink(p,c.indexInModelPieceList);var g=a.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);p.add(new Ct({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(p)},this),h&&this._renderEndsText(t,h[1],u,v,l),ai(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:nf(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return TI(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new Ct({style:Ot(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(Qt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=rt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,C(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(bI);const AZ=TZ;function DI(r){r.registerComponentModel(bZ),r.registerComponentView(AZ),AI(r)}function CZ(r){yt(CI),yt(DI)}var DZ={label:{enabled:!0},decal:{show:!1}},ub=bt(),MZ={};function IZ(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=rt(DZ);ht(a.label,r.getLocaleModel().get("aria"),!1),ht(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=X();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),ub(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Jd(v.ecModel,v.name,MZ,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=ub(v).scope;c.each(function(w){var x=c.getRawIndex(w);p[x]=w});var y=d.count();d.each(function(w){var x=p[w],b=d.getName(w)||w+"",T=Jd(v.ecModel,b,g,y),A=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(A,T))})}function S(w,x){var b=w?B(B({},x),w):x;return b.dirty=!0,b}})}}function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=j(f.option,u),!!f.get("enabled")){var h=e.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,A){if(A1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RZ=function(){function r(e){var t=this._condVal=$(e)?new RegExp(e):gL(e)?e:null;if(t==null){var a="";It(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return $(t)?this._condVal.test(e):Dt(t)?this._condVal.test(e+""):!1},r}(),EZ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),kZ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[L,P]}function f(L,P,R,E){Ji(L,R)&&Ji(P,E)||n.push(L,P,R,E,R,E)}function h(L,P,R,E,N,O){var V=Math.abs(P-L),F=Math.tan(V/4)*4/3,W=PT:M2&&a.push(n),a}function Jp(r,e,t,a,n,i,o,s,l,u){if(Ji(r,t)&&Ji(e,a)&&Ji(n,o)&&Ji(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var p=t-r,g=a-e,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var A=[],D=[];Ka(r,t,n,o,.5,A),Ka(e,a,i,s,.5,D),Jp(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Jp(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function XZ(r,e){var t=Qp(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=II([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=II([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new ut(p*l+r,p*u+e)}function QZ(r,e,t){var a=new ut;ut.sub(a,t,e),a.normalize();var n=new ut;ut.sub(n,r,e);var i=n.dot(a);return i}function Hi(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function JZ(r,e,t){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),JZ(e,u,f)}function Jf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Jf(r,i[0],n,a),Jf(r,i[1],t-n,a)}return a}function jZ(r,e){for(var t=[],a=0;a0)for(var w=a/t,x=-a/2;x<=a/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),A=0,_=0;_0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function eh(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:lX(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function RI(r){return rX(r.path,r.count)}function jp(){return{fromIndividuals:[],toIndividuals:[],count:0}}function uX(r,e,t){var a=[];function n(w){for(var x=0;x=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var hX={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;mb(r)&&(u=r,f=e),mb(e)&&(u=e,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,A=m?b:x[0];if(jf(T))h({many:[T],one:A},!0,_,S,!0);else{var D=s?j({delay:s(_,S)},l):l;gm(T,A,D),i(T,A,T,A,D)}}else for(var M=j({dividePath:hX[t],individualDelay:s&&function(N,O,V,F){return s(N+_,S)}},l),I=m?uX(x,b,M):fX(b,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;Ee.length,c=u?_b(f,u):_b(v?e:r,[v?r:e]),d=0,p=0;pEI))for(var n=a.getIndices(),i=cX(a),o=0;o0&&S.group.traverse(function(x){x instanceof mt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function xb(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function wb(r){return z(r)?r.sort().join(","):r}function ka(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function gX(r,e){var t=X(),a=X(),n=X();return C(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=xb(i),f=wb(u);a.set(f,{dataGroupId:s,data:l}),z(u)&&C(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),C(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=xb(i),u=wb(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:ka(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:ka(s),data:s}]});else if(z(l)){var h=[];C(l,function(d){var p=a.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:ka(p.data),data:p.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:ka(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:ka(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:ka(s)})}}}}),t}function bb(r,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:ka(e.oldData[s]),dim:o.dimension})}),C(Rt(r.to),function(o){var s=bb(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:ka(l),dim:o.dimension})}}),n.length>0&&i.length>0&&kI(n,i,a)}function mX(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){C(Rt(a.seriesTransition),function(n){C(Rt(n.to),function(i){for(var o=a.updatedSeries,s=0;s{a.xAxis[0].data=n.data.x,n.data.series.reverse(),n.data.series.forEach((i,o)=>{a.series[o].data=i.value}),t("transactionUsers",a)});const t=(n,i)=>{var o=document.getElementById(n),s=iy(o);s.setOption(i)},a={color:["#4B5FDB","#10C1CE","#583936"],title:{text:""},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["昨日","今日"],textStyle:{color:"white"},icon:"cricle",itemWidth:10,itemHeight:10,itemGap:10,top:"2%"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:[],axisLabel:{fontSize:12,color:"#d1f9fb",rotate:40}}],yAxis:[{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"#256980"}}}],series:[{name:"昨日",type:"line",smooth:!0,lineStyle:{width:0},showSymbol:!1,areaStyle:{opacity:.8,color:new nr(0,0,0,1,[{offset:0,color:"#4B5FDB"},{offset:1,color:"#5A649D"}])},emphasis:{focus:"series"},data:[]},{name:"今日",type:"line",smooth:!0,lineStyle:{width:0},showSymbol:!1,areaStyle:{opacity:.8,color:new nr(0,0,0,1,[{offset:0,color:"#10C1CE"},{offset:1,color:"#0294E0"}])},emphasis:{focus:"series"},data:[]}]};return(n,i)=>(qt(),Ae(nn,null,[_X,SX],64))}},wX="/yusi/assets/DRDDJE-IapCFgR5.png",OI=r=>(rg("data-v-877a513f"),r=r(),ag(),r),bX=OI(()=>nt("div",{class:"users center",id:"orderAmount"},null,-1)),TX=OI(()=>nt("img",{class:"img-cls",src:wX,alt:""},null,-1)),AX={__name:"bottomleft",props:{code:Object},setup(r){const e=r,t=po();$I({...t.area,streetCode:e.code,date:t.date}).then(i=>{i.data.forEach(o=>{a.series[0].data.push(o.yesterdayAmount),a.series[1].data.push(o.todayAmount)}),n("orderAmount",a)});const a=no({color:[new nr(0,1,0,0,[{offset:1,color:"#57D3ED"},{offset:0,color:"transparent"}]),new nr(0,1,0,0,[{offset:1,color:"#4156C2"},{offset:0,color:"transparent"}])],tooltip:{show:!0,trigger:"axis",axisPointer:{type:"shadow"}},legend:{textStyle:{color:"white"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["0-4时","4-8时","8-12时","12-16时","16-20时","20-0时"]}],yAxis:[{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"#256980"}}}],series:[{name:"昨日订单额",type:"bar",emphasis:{focus:"series"},data:[],backgroundStyle:{color:["red"]}},{name:"今日订单额",type:"bar",emphasis:{focus:"series"},data:[]}]}),n=(i,o)=>{var s=document.getElementById(i),l=iy(s);l.setOption(o)};return(i,o)=>(qt(),Ae(nn,null,[bX,TX],64))}},CX=cl(AX,[["__scopeId","data-v-877a513f"]]),ym="/yusi/assets/SYBG--L0RlxO2.png",mm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAM40lEQVRogc1aC4xdRRn+Zubcxz7uPtvSbh/sbrfVUpBQCi6ggLQ8VqsIKmgtQmENYoJRiBGSQjAGxIiI0UCUTTRaojwUCMKCghSl5VqBAsurlG23u6X77naf93XOjJlzz5z7n3PvIrRN8SSzZ2bOnHv/b77/OXdZ25MKR+L65sfQmnKwiTOsEAwLoxyxmADiAk5coD8u0BXhuOf72/HYkfi+zgtY0Zx1uB/69aWYN2Pj0YEUTokJiDIBCA5YXhMMgjMsArBIAW13teLFKMd3vr0NLxzud4cvfjgvX9qMDSMZ7Ew7aLU4RIQD0rGRmp7EgeFBDA/0Y3xsFOlUCgxKA9MAVwP4V8enselIgzlkZr7ajE8NpHBvTCCumXCyaQyPj2F8dBCZybFdyKZ6bCcnMkqtaEiUH3NswwLetLgB8+prwQUXAH50avy1i364Zfv1ba3tWz60ALfce2TAXNKM+v0zeIIzxPVuZ6YnMTU2gunR/set3MztP9nd8wqAuwBcBiBaNcRxysAQvjA6iOObG3HskkWIlcXRfvLKVdv6+p/tTHb8E8B321rbdxyKPOY6JDUby2CrVEhotcrMTGFibDStpkZvfK329HW37u7JAngJwFUaiF4/4Ug8M5HGbTv34fmdu7B/3z4ox0ZZRGDzl87VS84EsL0z2XHdUQXztaVYm3bQGBUAVw5y6RlVI+wbk+Wrb+9MdjQB+CuA5SVeTQ5m7c2/2DN0X//YWHr84JhrQ1HBcfXqlfC05GedyY5vHTUwaRvnCYaYxYD09CSEzPU9lWu5qzPZUQbg7wDmhl75FYDj21rbT2trbb/skyddvmFBVcVNB8fHpe040A52w4nL6PqfdyY7zj0qYDIS67R6aVa4slEfVed5j/4AYClZelAT2dbafm1ba/sb9DN+PHTcHUrKicmJCTAGNNVU2cvqaszjuMfuUQDjqCYNRigb1fHI/ofGF+3sTHZotTqLLHMAbGxrbf/TbJ8Tj0buzqTTbr8mHuUfn1M1RB5HD0XdPjQYi7N4jAMVZTHMrave6U2vAjCHLHu5rbX9kff7nKampq0LGxYYAfiZjQ1PApBkyZUfVrZAOnPmfNw8lMZ1SiEaE1ARDhnlULof5ZBx4X5ZXdwCNDvlFibjAtOZXKZGKice4/nA2JAo219mcdtiUIJBWdy963fcL+MsnxkAOJYXspLB3oNTcxxIvRQc3GmoKt8X5dyWgMpJ/Hn9s7jBLO5MdswO5vxFaOmeQJdUiGtBdYvqJvJ3nWd5uVa+T+bM86iXwkS993XTjkJ4d2aA8LxK6L7ZSv2MhdMtladKKsBRUFLhGxu2YPNsYHw1cxxZZ0vlA3GFEwWB9ZwGooWKsMIaixGhWf5ueZ8hPMH1nZNGZA0AUYo8yANw53STCmwmk1v1fmrmZwBSOnGLCUQ484Xz2SG7HCXgIkRoA8AKCS9KgNA7KAgrrvwqD0pPamCO91B67OjnD7yx68rO5LZ1BPL9AG4uAiM4KzdAqHqZcYSwY1gxTFBAZs6AoJrDPQaYB4Q+k2RsGJJe08ByLkOsGkA1eU0nq68DeAAhb7acAjCCGzuIE0aM0JSRSAlGDKjZ1AwhtmQIgA/UU7XyiAUeNCw9OLGIGYuhxghu2LB40Das0LxrQyWMnQrPPHbCDFHz8OWjquX1tStzbQdAzLIgGINUgYKysgiMBOZHBAt4pkjIm3nutaiZecMIo0ygMPZVQa9RhBxP55RnH3ps+o4HTIOKChFmRl/lRWA4UG1sxYCIE0PXDMR4seFzjzFq7Ea9mCdt2HbMpQgg6e2+747JnGszEuA8z0wJMK6W+jbDGeoCbjkUM0xciVDvRmxHhLwXUJg3rteIYUAyjxQT9pUZKz+2uCB002vilgXOi8BoNRMBZhhQGVafaGhM3a6bvvNCIORe/AFRL/+zjeAEAPMSOAPOsBIG5AOT2qNaOp0Kgykz2ltQM4YqashhUGaH6TxD3uDdsQdEsAIAHmIjEFdMBkBUydiIFtwhzOi7rQBLaG9WlE7GisAwIGGVMO4IOWmJlrAXo0oIqRQnNmOo4MY+iCQmIJqgSYNkzltoPJrWphJgitXMLbi8HfZdcAnvRY1eEJUSrOCpRAn7CLOjCAgDziFqZRMvZu6WELM5gCIwiWiIjagI5lnU4DlCrhgl4ooX6QUB4INSZI7Yig9WFdTL9vqaFcGLmKkoAsMhY1bIRmiq4tqIdCCVA6mFjAhwl3bPe4USSDaLOwaCgtu27TPChOXbC8mWXVa0ymUcBasYTLzIZnS89DNgHgyCejwzNYn9vT14u2cPhLSxsrkJzc1NmFNbEwh8RtVMeuJ/NSvEEN3NZDLY29uLd3f3YN/BCbQsXozGpmbU1M3JsyELtmIb+2GzBs0wGJVngQfTeBcUlHsy+Xj3Xvxm95ALcH1G4eryOGoqyxGPRX2Dp4ZvUQ+mCkxpAQcHh/D8O7vx0zffQ39OYs2Egx8kqlGWqIXkwvdmBpRrQ1zgmKoq9Bw8WFLNXETXr8jU6UKG5mQWKxRU2rdXJyqxuW84rxoK+MvAOLr6h/CedwZGiy0WijN+zuUNR4aHsX9gAPfsGUFvVroZ8ZNDE3DiFe7LWr2yMqhiWUePGRoSiVKaWwCTVWJJxPUUXs1iAiTxWPPnzkFz4QQFU7bErV178dJbb+OdXe8gm00XJZQIOQLHcdDb24fXurpw56vdeHM8FVjbMH8BJON+luyCkAUHoPv1FSXBcPJHLde7TytDi9iL2eUHL/0cKiKFE92+VBabdg7+bsfLO7Zv2/YC+vp6kclmfeM2rthxJEZGD+DlHa/gmW1JbOrqw+NDU4VtZQx3f/4cN5GUJFAaN21SGs1SXXlJMAtgbMbiqGOeG/bzKBJDTCJZXxbFfV8+D+sf+htmcrarOQMZ59pF8+rsPd3vXtLd3X1TbU11S319PaoSleCcY3omhQMHxrB/dAxbJ3N4eoZjzJYBSTauWom2Zc2+ofv24o1pnhaPxEqBWQLg33kwDAstwYJ1iWk8mDCe3diAOy84A9c89pzedY218Ze87XU04vcbJx68/4m+kYv7ekZ+XcVYQvMyqY3dEdgrOSbcZCwI5KIVS7Hp7FZ/503LymAqk3Hy93i0rBSYhb6aKaCBpib+wUQoCzaeav0Jy/DcxguxqEo7EmzpTHa4nd9WfSUzuPKaPz6TjrQ8nLKSD6cieDodQVfOAAlet649DXe2nRVgQpH8zLjmnFNwBlErXgpMkw9GMMwRtC7hhX7A5RJQqxvmYutVX8T3TvtEfXUs+khnssMvktpa2/Xp5Ge8nzR20m/VceLspoV4+oqLcMVJK8GIwdPU34/+hKH8XYSBwBxAWnlEap5F4osVqhSNuhn367GJeRVluG3NqWhftWLtK/3DyYuPk1fHBX/1s09hpq21XZ+9bu5MdjwI4OQ1TQvXnd+y5PSzmha2NNXWNDgKjNqHcfk5Elf8esZjSqp8FlDiWoxC0FRxmmuF2TCMMFZcZOmPbq5NYHld4gQH2Jay1YGH17K3AAxLfXC3pr1GKjQqhUW6JPEFlcF6xRi6TYKlQ7yavmfcIq1kktTignn0nFxkxwjigSQyxIqJHzSOMJLug4ATnNUphTMCFaTZeXM4QXIvc3ARjva00SCqfwSpjMUxlUlTMK5r5m+Ps4TFedQqUcPzkKAg8QOhYsscRNAM2AhpKkezhNqG8VRSBdXMkcH4UsjVGOrLK1Hq4kqphGAo4wQICxdZs5TDigIgKYsix6ogqqRIam8aPbSwiarZZE3W2I3XamcBY0WYikgGi3ozjmDdgtBpC2VGEvVToWZOWfRmUC9F2bEJA2aNSWVo2WyYshVDRaxkrCm3pFsu8zIeKrBA2GEklQ8foSoCkqqScbWKVI2qBDtmAxzChjZ0Hwg5nclvAEMiVl4KTI0mQwOJheMK3X0RciD+qb0RWr9H7UUF7cl8Dk1PbCKwHWrmNMZP/cl6DaqyrKSa1VlMOQnBWISqVbhKDJS7ISdgOjKsYoQNI4yxIzvkln1QoT4tzrKy8F6sdBZQaaWmp0VWl5lVCbCY+7N9IM6UvMzOe6oVsKFQNLdDfSdk8Fmah8niRNOwZtx51nYgZZh3j5mxkcGXRkdGXk+lUsdXVpS7/+OiK0vmtYBquXNm94NIzVzhzuDokwW/b8bc7+dgQZd1NoR7z0Egp4T7LAvLHdveuvwzHWcsvLinqxSYedYdoysHL1db1o4ODVw4kMtqtZPv5viyrhy7Tvm+939deWAsUJ8bXeX+nfmehXlj/Yx7em3GIn/X/17jzln6kBlM1yjcwnB6ArtG+0vJU19akW65VyeJ//gAKP6frhtm++lc83hY/5TzEVwPzfZfTSMA9H9e6N8PIx9Q1z7K6z8Auv8LDstY5d7DYYsAAAAASUVORK5CYII=",DX="/yusi/assets/JRC-X6mdsuq5.png",MX="/yusi/assets/SSLL-o8u4gqos.png",IX={props:["num"],data(){return{orderNum:["0","0","0","0","0","0","0","0","0","0"]}},mounted(){},watch:{num(r,e){this.toOrderNum(this.num)}},methods:{setNumberTransform(){const r=this.$refs.numberItem,e=this.orderNum.filter(t=>!isNaN(t));for(let t=0;t(qt(),Ae("li",{class:VI({"number-item":!isNaN(o),"mark-item":isNaN(o)}),key:s},[isNaN(o)?(qt(),Ae("span",EX,Pr(o),1)):(qt(),Ae("span",RX,[nt("i",{ref_for:!0,ref:"numberItem"},"0123456789",512)]))],2))),128))])])}const OX=cl(IX,[["render",kX],["__scopeId","data-v-700edb1e"]]),NX={class:"product-list"},BX={class:"product",style:{}},VX=ng('
',1),zX={class:"product-content"},GX=nt("div",{style:{"margin-top":"14vh",position:"relative"}},"商 品 总 数",-1),FX=nt("div",{style:{"font-size":"10px"}},"NUMBER OF COMMODITIES",-1),HX=nt("img",{src:Cb,style:{width:"75%",position:"relative","margin-top":"3.7vh"},alt:""},null,-1),WX={style:{"margin-top":"2vh",position:"relative"}},$X={style:{color:"#9DD2E0","font-size":"16px"}},UX={style:{"margin-top":"1.5vh",display:"flex","justify-content":"space-around"}},YX={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},ZX=nt("img",{src:ig,style:{width:"1vw",height:"1vw"},alt:""},null,-1),XX={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},qX=nt("img",{src:og,style:{width:"1vw",height:"1vw"},alt:""},null,-1),KX={class:"product",style:{}},QX=ng('
',1),JX={class:"product-content"},jX=nt("div",{style:{"margin-top":"14vh",position:"relative"}},"新 商 品 总 数",-1),tq=nt("div",{style:{"font-size":"10px"}},"NUMBER OF NEW SHOPS",-1),eq=nt("img",{src:DX,style:{width:"75%",position:"relative","margin-top":"3.7vh"},alt:""},null,-1),rq={style:{"margin-top":"2vh",position:"relative"}},aq={style:{color:"#9DD2E0","font-size":"16px"}},nq={style:{"margin-top":"1.5vh",display:"flex","justify-content":"space-around"}},iq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},oq=nt("img",{src:ig,style:{width:"1vw",height:"1vw"},alt:""},null,-1),sq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},lq=nt("img",{src:og,style:{width:"1vw",height:"1vw"},alt:""},null,-1),uq={class:"product",style:{}},fq=ng('
',1),hq={class:"product-content"},vq=nt("div",{style:{"margin-top":"14vh",position:"relative"}},"累 计 店 铺 总 数",-1),cq=nt("div",{style:{"font-size":"10px"}},"ACCUMULATED NUMBERS OF SHOPS",-1),dq=nt("img",{src:Cb,style:{width:"75%",position:"relative","margin-top":"3.7vh"},alt:""},null,-1),pq={style:{"margin-top":"2vh",position:"relative"}},gq={style:{color:"#9DD2E0","font-size":"16px"}},yq={style:{"margin-top":"1.5vh",display:"flex","justify-content":"space-around"}},mq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},_q=nt("img",{src:ig,style:{width:"1vw",height:"1vw"},alt:""},null,-1),Sq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},xq=nt("img",{src:og,style:{width:"1vw",height:"1vw"},alt:""},null,-1),wq={class:"Views"},bq=nt("img",{src:MX,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1),Tq={class:"view-content"},Aq={style:{display:"flex","align-items":"center"}},Cq=nt("span",{style:{"font-size":"18px"}},"实时收款金额:",-1),Dq={__name:"topCenter",props:{code:Object},setup(r){const e=po(),t=no({totalProductCounInfo:{todayProductCount:0,yestertodayProductCount:0,weeklyProductTotalGrowthRate:6.6842},newProductCountInfo:{todayNewProductCount:0,yestertodayNewProductCount:0,weeklyNewProductTotalGrowthRate:-270},merchantCountInfo:{todayMerchantCount:22,yestertodayMerchantCount:22,weeklyMerchantGrowthRate:.0476}}),a=no({lastWeekRate:-0,today:0,yesterday:7,dayPayPrice:0});UI({...e.area,date:e.date}).then(o=>{for(let s in o.data)t[s]=o.data[s]});const n=()=>{YI({...e.area,date:e.date}).then(o=>{for(let s in o.data)a[s]=o.data[s];cd.emit("header-title",o.data.title)})};n();let i=setInterval(()=>{n()},5e3);return Tb(()=>{clearInterval(i)}),(o,s)=>(qt(),Ae(nn,null,[nt("div",NX,[nt("div",BX,[VX,nt("div",zX,[GX,FX,HX,nt("div",WX,[nt("span",$X,Pr(t.totalProductCounInfo.todayProductCount),1),Rr(" 件")]),nt("div",UX,[nt("div",YX,[ZX,Rr("   昨日数据: "+Pr(t.totalProductCounInfo.yestertodayProductCount),1)]),nt("div",XX,[qX,Rr("   周环比: "+Pr(t.totalProductCounInfo.weeklyProductTotalGrowthRate)+"% ",1)])])])]),nt("div",KX,[QX,nt("div",JX,[jX,tq,eq,nt("div",rq,[nt("span",aq,Pr(t.newProductCountInfo.todayNewProductCount),1),Rr(" 件")]),nt("div",nq,[nt("div",iq,[oq,Rr("   昨日数据: "+Pr(t.newProductCountInfo.yestertodayNewProductCount),1)]),nt("div",sq,[lq,Rr("   周环比: "+Pr(t.newProductCountInfo.weeklyNewProductTotalGrowthRate)+"% ",1)])])])]),nt("div",uq,[fq,nt("div",hq,[vq,cq,dq,nt("div",pq,[nt("span",gq,Pr(t.merchantCountInfo.todayMerchantCount),1),Rr(" 间")]),nt("div",yq,[nt("div",mq,[_q,Rr("   昨日数据: "+Pr(t.merchantCountInfo.yestertodayMerchantCount),1)]),nt("div",Sq,[xq,Rr("   周环比: "+Pr(t.merchantCountInfo.weeklyMerchantGrowthRate)+"% ",1)])])])])]),nt("div",wq,[bq,nt("div",Tq,[nt("div",Aq,[Cq,Bs(OX,{num:a.dayPayPrice},null,8,["num"])])])])],64))}},Mq="/yusi/assets/YHSJ-A58vzEzZ.png",NI=r=>(rg("data-v-9f525155"),r=r(),ag(),r),Iq=NI(()=>nt("img",{class:"img-cls",src:Mq,alt:""},null,-1)),Lq=NI(()=>nt("div",{class:"user center",id:"user"},null,-1)),Pq={__name:"topLeft",props:{code:Object},setup(r){const e=po(),t=r;ZI({...e.area,streetCode:t.code,date:e.date}).then(o=>{o.data.forEach(s=>{n.series[0].data.push(s.newUserCount),n.series[1].data.push(s.viewUserCount),n.series[2].data.push(s.totalUserCount)}),i("user",n)});const a=()=>{for(var o=new Date,s=new Array,l=0;l<5;l++){var u=new Date(o);u.setDate(o.getDate()-l);var f=u.getMonth()+1,h=Number(u.getDate());h=h>=10?h:"0"+h;var v=f+"."+h;s.unshift(v)}return s},n={color:[new nr(0,1,0,0,[{offset:1,color:"transparent"},{offset:0,color:"#0081C3"}]),new nr(0,1,0,0,[{offset:1,color:"transparent"},{offset:0,color:"#3E54BF"}]),new nr(0,1,0,0,[{offset:1,color:"transparent"},{offset:0,color:"#4DBFD9"}])],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{textStyle:{color:"white"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:a()}],yAxis:[{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"#256980"}}}],series:[{name:"新增会员数量",type:"bar",emphasis:{focus:"series"},data:[],itemStyle:{borderWidth:1,borderColor:"#384FB4"},backgroundStyle:{color:["red"]}},{name:"访问用户数量",type:"bar",emphasis:{focus:"series"},data:[],itemStyle:{borderWidth:1,borderColor:"#3E54BF"}},{name:"累计会员数量",type:"bar",emphasis:{focus:"series"},data:[],itemStyle:{borderWidth:1,borderColor:"#4EC1DB"}}]},i=(o,s)=>{var l=document.getElementById(o),u=iy(l);u.setOption(s)};return Ab(()=>{}),(o,s)=>(qt(),Ae(nn,null,[Iq,Lq],64))}},Rq=cl(Pq,[["__scopeId","data-v-9f525155"]]),Eq="/yusi/assets/DDSJ-sDZIkwIt.png",kq=r=>(rg("data-v-cffe0397"),r=r(),ag(),r),Oq=kq(()=>nt("img",{class:"img-cls",src:Eq,alt:""},null,-1)),Nq={key:0,class:"order-data"},Bq={style:{height:"40vh","margin-left":"2%",width:"97%"},id:"topRightDV"},Vq={__name:"topRight",props:{code:Object},setup(r){const e=po();XI({...e.area,date:e.date}).then(n=>{t(n.data)});const t=n=>{let i=[];return n==null||n.forEach((o,s)=>{var l,u;if(((l=o.nickname)==null?void 0:l.length)>10)o.nickname=o.nickname.substring(0,6)+"****"+o.nickname.substring(10);else if(((u=o.nickname)==null?void 0:u.length)>2){o.nickname=o.nickname.substring(0,2);for(let f=0;f${s+1}
`,`
${o.nickname}
`,`
${o.price}元
`,`
${o.create_time}
`])}),console.log(a),i},a=no({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",rowNum:10,columnWidth:[50,170,130,200],data:[]});return(n,i)=>{const o=tg("dv-scroll-board");return qt(),Ae(nn,null,[Oq,a.data.length?(qt(),Ae("div",Nq,[nt("div",Bq,[Bs(o,{config:a},null,8,["config"])])])):eg("",!0)],64)}}},zq=cl(Vq,[["__scopeId","data-v-cffe0397"]]),Gq={key:0,class:"center"},Fq={class:"top box"},Hq={class:"l"},Wq={class:"c",id:""},$q={class:"r"},Uq={class:"bottom box"},Yq={class:"l"},Zq={class:"c"},Xq={class:"r"},qq={__name:"townDetail",setup(r){const e=vd(!0),t=zI(),a=vd(1);let n=null;return Ab(()=>{setTimeout(()=>{e.value=!1},1e3),n=setInterval(()=>{a.value++},1e3*60),cd.on("changeOneTime",i=>{a.value++,clearInterval(n),n=setInterval(()=>{a.value++},1e3*60)})}),Tb(()=>{clearInterval(n),cd.off("changeOneTime")}),(i,o)=>{const s=tg("dv-loading");return qt(),Ae(nn,null,[e.value?(qt(),Ae("div",Gq,[Bs(s,null,{default:GI(()=>[Rr("Loading...")]),_:1})])):eg("",!0),nt("div",{style:FI({opacity:e.value?0:1})},[nt("div",Fq,[nt("div",Hq,[(qt(),wi(Rq,{code:Eo(t).query.code,key:a.value},null,8,["code"]))]),nt("div",Wq,[(qt(),wi(Dq,{code:Eo(t).query.code,key:a.value},null,8,["code"]))]),nt("div",$q,[(qt(),wi(zq,{code:Eo(t).query.code,key:a.value},null,8,["code"]))])]),nt("div",Uq,[nt("div",Yq,[(qt(),wi(CX,{code:Eo(t).query.code,key:a.value},null,8,["code"]))]),nt("div",Zq,[(qt(),wi(xX,{key:a.value}))]),nt("div",Xq,[(qt(),wi(JI,{code:Eo(t).query.code,key:a.value},null,8,["code"]))])])],4)],64)}}},eK=cl(qq,[["__scopeId","data-v-6c7a3382"]]);export{eK as default}; +`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=it(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=t.positionDefault,p=is([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Bv;y.marker=m.makeTooltipMarker("item",hi(y.color),c);var _=u_(u.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?p_(w?B({valueFormatter:w},x):x,m,c,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=it(a),o=i.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=is(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",p=new Bv;this._showOrMove(v,function(){var g=rt(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,d,t.offsetX,t.offsetY,t.position,a,p)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(v)if($(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Sh(y.axisValue,c,g)),c=NA(c,n,!0)}else if(K(v)){var _=U(function(S,w){S===this._ticket&&(h.setContent(w,f,t,p,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,p,l),h.show(t,p),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),K(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=H(a[0],u),i=H(a[1],f);else if(tt(a)){var p=a;p.width=h[0],p.height=h[1];var g=te(p,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if($(a)&&l){var y=nY(a,d,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=rY(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=Cw(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=Cw(c)?h[1]/2:c==="bottom"?h[1]:0),sI(t)){var y=aY(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&C(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&C(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&C(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&C(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){At.node||!a.getDom()||(js(this,"_updatePosition"),this._tooltipContent.dispose(),zp("itemTooltip",a))},e.type="tooltip",e}(Wt);function is(r,e,t){var a=e.ecModel,n;t?(n=new Nt(t,a,a),n=new Nt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Nt&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new Nt(o,n,a)))}return n}function Aw(r,e){return r.dispatchAction||U(e.dispatchAction,e)}function rY(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function aY(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function nY(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function Cw(r){return r==="center"||r==="middle"}function iY(r,e,t){var a=Tg(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=yl(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const oY=eY;function sY(r){yt(kl),r.registerComponentModel(G7),r.registerComponentView(oY),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Zt)}var lY=["rect","polygon","keep","clear"];function uY(r,e){var t=Rt(r?r.brush:[]);if(t.length){var a=[];C(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),fY(s),e&&!s.length&&s.push.apply(s,lY)}}function fY(r){var e={};C(r,function(t){e[t]=1}),r.length=0,C(e,function(t,a){r.push(a)})}var Dw=C;function Mw(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Up(r,e,t){var a={};return Dw(e,function(i){var o=a[i]=n();Dw(r[i],function(s,l){if(fe.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new fe(u),l==="opacity"&&(u=rt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new fe(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function hI(r,e,t){var a;C(t,function(n){e.hasOwnProperty(n)&&Mw(e[n])&&(a=!0)}),a&&C(t,function(n){e.hasOwnProperty(n)&&Mw(e[n])?r[n]=rt(e[n]):delete r[n]})}function hY(r,e,t,a,n,i){var o={};C(r,function(h){var v=fe.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return ey(t,s,h)}function u(h,v){DC(t,s,h,v)}i==null?t.each(f):t.each([i],f);function f(h,v){s=i==null?h:v;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var d=a.call(n,h),p=e[d],g=o[d],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&Ew(e)}};function Ew(r){return new vt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var _Y=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new Wy(a.getZr())).on("brush",U(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){vI(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:rt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:rt(n),$from:a})},e.type="brush",e}(Wt);const SY=_Y;var xY="#ddd",wY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&hI(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:xY},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=G(t,function(a){return kw(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=kw(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Tt);function kw(r,e){return ht({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Nt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const bY=wY;var TY=["rect","polygon","lineX","lineY","keep","clear"],AY=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,C(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return C(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:TY.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(tr);const CY=AY;function DY(r){r.registerComponentView(SY),r.registerComponentModel(bY),r.registerPreprocessor(uY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,dY),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Zt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Zt),qi("brush",CY)}var MY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Tt),IY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ft(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ct({style:Ot(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new Ct({style:Ot(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){Tf(d,"_"+t.get("target"))}),p&&c.on("click",function(){Tf(p,"_"+t.get("subtarget"))}),it(f).eventData=it(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=te(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var w=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new wt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Wt);function LY(r){r.registerComponentModel(MY),r.registerComponentView(IY)}var PY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],C(a,function(u,f){var h=jt(So(u),""),v;tt(u)?(v=rt(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Ce([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Tt);const Ow=PY;var cI=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=sn(Ow.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Ow);Jt(cI,Kg.prototype);const RY=cI;var EY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Wt);const kY=EY;var OY=function(r){k(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Ar);const NY=OY;var td=Math.PI,Nw=bt(),BY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ne("nameValue",{noName:!0,value:f})},C(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=zY(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:td/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),d=c?v.get("itemSize"):0,p=c?v.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*td/180;var m,_,S,w=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),b=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),A=0,D=h;w==="left"||w==="bottom"?(x&&(m=[0,0],A+=g),b&&(_=[A,0],A+=g),T&&(S=[D-d,0],D-=g)):(x&&(m=[D-d,0],D-=g),b&&(_=[0,0],A+=g),T&&(S=[D-d,0],D-=g));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=or(),l=o.x,u=o.y+o.height;Ur(s,s,[-l,-u]),gi(s,s,-td/2),Ur(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],d=[i.x,i.y];d[0]=c[0]=f[0][0];var p=t.labelPosOpt;if(p==null||$(p)){var g=p==="+"?0:1;_(c,h,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(c,h,f,1,g),d[1]=c[1]+p}n.setPosition(c),i.setPosition(d),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,T){S[b]+=x[b][T]-w[b][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=VY(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new NY("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new at;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new se({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new se({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:j({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],C(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:U(o._changeTimeline,o,u.value)},g=Bw(h,v,a,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),ei(g);var y=it(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],C(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Ct({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:U(o._changeTimeline,o,h),silent:!1,style:Ot(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ot(d),y.ensureState("progress").style=Ot(p),a.add(y),ei(y),Nw(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",U(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",U(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",U(this._handlePlayClick,this,!f),!0);function v(c,d,p,g){if(c){var y=wr(ft(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=GY(i,d+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),ei(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=U(u._handlePointerDrag,u),h.ondragend=U(u._handlePointerDragend,u),Vw(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){Vw(h,u._progressLine,s,n,i)}};this._currentPointer=Bw(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=ar(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var ed={min:ot(Ou,"min"),max:ot(Ou,"max"),average:ot(Ou,"average"),median:ot(Ou,"median")};function vl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!XY(e)&&!z(e.coord)&&z(n)){var i=pI(e,t,a,r);if(e=rt(e),e.type&&ed[e.type]&&i.baseAxis&&i.valueAxis){var o=ct(n,i.baseAxis.dim),s=ct(n,i.valueAxis.dim),l=ed[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)ed[u[f]]&&(u[f]=cm(t,t.mapDimension(n[f]),u[f]));return e}}function pI(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(qY(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function qY(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function cl(r,e){return r&&r.containData&&e.coord&&!Zp(e)?r.containData(e.coord):!0}function KY(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Zp(e)&&!Zp(t)?r.containZone(e.coord,t.coord):!0}function gI(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ya(o,e[i])}:function(t,a,n,i){return Ya(t.value,e[i])}}function cm(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var rd=bt(),QY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=X()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){rd(s).keep=!1}),a.eachSeries(function(s){var l=an.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!rd(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){rd(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;C(t,function(i){var o=an.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?WT(l):Lg(l))})}})},e.type="marker",e}(Wt);const dm=QY;function Gw(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var JY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markPoint");o&&(Gw(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Ml),h=jY(o,t,a);a.setData(h),Gw(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(K(d)||K(p)||K(g)||K(y)){var _=a.getRawValue(v),S=a.getDataParams(v);K(d)&&(d=d(_,S)),K(p)&&(p=p(_,S)),K(g)&&(g=g(_,S)),K(y)&&(y=y(_,S))}var w=c.getModel("itemStyle").getItemStyle(),x=bl(l,"color");w.fill||(w.fill=x),h.setItemVisual(v,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:w})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){it(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(dm);function jY(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return B(B({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ce(a,t),i=G(t.get("data"),ot(vl,e));r&&(i=Pt(i,ot(cl,r)));var o=gI(!!r,a);return n.initData(i,null,o),n}const t9=JY;function e9(r){r.registerComponentModel(ZY),r.registerComponentView(t9),r.registerPreprocessor(function(e){vm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var r9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(an);const a9=r9;var Nu=bt(),n9=function(r,e,t,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=oe(a.yAxis,a.xAxis);else{var u=pI(a,n,e,r);s=u.valueAxis;var f=rD(n,u.valueDataDim);l=cm(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=rt(a),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=t.get("precision");p>=0&&Dt(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,i=[c,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[vl(r,i[0]),vl(r,i[1]),B({},i[2])];return g[2].type=g[2].type||null,ht(g[2],g[0]),ht(g[2],g[1]),g};function Kf(r){return!isNaN(r)&&!isFinite(r)}function Fw(r,e,t,a){var n=1-r,i=a.dimensions[r];return Kf(e[n])&&Kf(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function i9(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Fw(1,t,a,r)||Fw(0,t,a,r)))return!0}return cl(r,e[0])&&cl(r,e[1])}function ad(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(Si(i,"cartesian2d")){var c=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Kf(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):Kf(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var o9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Nu(o).from,u=Nu(o).to;l.each(function(f){ad(l,f,!0,i,n),ad(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new By);this.group.add(f.group);var h=s9(o,t,a),v=h.from,c=h.to,d=h.line;Nu(a).from=v,Nu(a).to=c,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(p)||(p=[p,p]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),d.each(function(S){var w=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),h.line.eachItemGraphicEl(function(S){it(S).dataModel=a,S.traverse(function(w){it(w).dataModel=a})});function _(S,w,x){var b=S.getItemModel(w);ad(S,w,x,t,i);var T=b.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=bl(l,"color")),S.setItemVisual(w,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:ft(b.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ft(b.get("symbolRotate",!0),y[x?0:1]),symbolSize:ft(b.get("symbolSize"),g[x?0:1]),symbol:ft(b.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(dm);function s9(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return B(B({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ce(a,t),i=new Ce(a,t),o=new Ce([],t),s=G(t.get("data"),ot(n9,e,r,t));r&&(s=Pt(s,ot(i9,r)));var l=gI(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const l9=o9;function u9(r){r.registerComponentModel(a9),r.registerComponentView(l9),r.registerPreprocessor(function(e){vm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var f9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(an);const h9=f9;var Bu=bt(),v9=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=vl(r,n),s=vl(r,i),l=o.coord,u=s.coord;l[0]=oe(l[0],-1/0),l[1]=oe(l[1],-1/0),u[0]=oe(u[0],1/0),u[1]=oe(u[1],1/0);var f=vg([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Qf(r){return!isNaN(r)&&!isFinite(r)}function Hw(r,e,t,a){var n=1-r;return Qf(e[n])&&Qf(t[n])}function c9(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return Si(r,"cartesian2d")?t&&a&&(Hw(1,t,a)||Hw(0,t,a))?!0:KY(r,n,i):cl(r,n)||cl(r,i)}function Ww(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),n.getWidth()),u=H(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),d=[];t[0]==="x0"?d[0]=v[0]>c[0]?h[0]:f[0]:d[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?d[1]=v[1]>c[1]?h[1]:f[1]:d[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Si(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);Qf(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Qf(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var $w=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],d9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G($w,function(h){return Ww(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var h=p9(o,t,a);a.setData(h),h.each(function(v){var c=G($w,function(T){return Ww(h,v,T,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(h.get("x0",v)),d.parse(h.get("x1",v))],_=[p.parse(h.get("y0",v)),p.parse(h.get("y1",v))];ar(m),ar(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),w=!S;h.setItemLayout(v,{points:c,allClipped:w});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),b=bl(l,"color");x.fill||(x.fill=b,$(x.fill)&&(x.fill=hf(x.fill,.4))),x.stroke||(x.stroke=b),h.setItemVisual(v,"style",x)}),h.diff(Bu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var d=new Be({shape:{points:c.points}});h.setItemGraphicEl(v,d),f.group.add(d)}}).update(function(v,c){var d=Bu(f).data.getItemGraphicEl(c),p=h.getItemLayout(v);p.allClipped?d&&f.group.remove(d):(d?Mt(d,{shape:{points:p.points}},a,v):d=new Be({shape:{points:p.points}}),h.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var c=Bu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),ve(v,ae(d),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:$(p.fill)?hf(p.fill,1):"#000"}),he(v,d),Ht(v,null,null,d.get(["emphasis","disabled"])),it(v).dataModel=a}),Bu(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(dm);function p9(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return B(B({},h),{name:u,ordinalMeta:null})});n=G(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new Ce(n,t)}else n=[{name:"value",type:"float"}],a=new Ce(n,t);var s=G(t.get("data"),ot(v9,e,r,t));r&&(s=Pt(s,ot(c9,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return Ya(c,n[v])}:function(u,f,h,v){return Ya(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}const g9=d9;function y9(r){r.registerComponentModel(h9),r.registerComponentView(g9),r.registerPreprocessor(function(e){vm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var m9=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},_9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&C(a,function(i,o){$(i)&&(i={type:i}),a[o]=ht(i,m9(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Tt);const Xp=_9;var Fi=ot,qp=C,Vu=at,S9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Vu),this.group.add(this._selectorGroup=new Vu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=te(f,h,v),d=this.layoutInner(t,o,c,i,l,u),p=te(j({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nI(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=X(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),qp(a.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new Vu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,p,d,c,a,t,_,w,S,h,i);x.on("click",Fi(Uw,p,null,i,v)).on("mouseover",Fi(Kp,y.name,null,i,v)).on("mouseout",Fi(Qp,y.name,null,i,v)),f.set(p,!0)}else n.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),D=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),I=Fe(D.fill);I&&I[3]===0&&(I[3]=.2,D=B(B({},D),{fill:la(I,"rgba")}));var L=this._createItem(b,p,d,c,a,t,{},D,M,h,i);L.on("click",Fi(Uw,null,p,i,v)).on("mouseover",Fi(Kp,null,p,i,v)).on("mouseout",Fi(Qp,null,p,i,v)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();qp(t,function(u){var f=u.type,h=new Ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);ve(h,{normal:v,emphasis:c},{defaultText:u.title}),ei(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=x9(f,i,l,u,c,g,v),w=new Vu,x=i.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(w9({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,A=s,D=o.get("formatter"),M=a;$(D)&&D?M=D.replace("{name}",a??""):K(D)&&(M=D(a));var I=g?x.getTextColor():i.get("inactiveColor");w.add(new Ct({style:Ot(x,{text:M,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new wt({shape:w.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&bo({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),ei(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ai(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ai("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Wt);function x9(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),qp(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:lo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function w9(r){var e=r.icon||"roundRect",t=Qt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Uw(r,e,t,a){Qp(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Kp(r,e,t,a)}function yI(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ft(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),h.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new wt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&Mt(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),w},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=nd[o],l=id[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i=b&&x.s<=b+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(mI);const M9=D9;function I9(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function L9(r){yt(_I),r.registerComponentModel(C9),r.registerComponentView(M9),I9(r)}function P9(r){yt(_I),yt(L9)}var R9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=sn(hl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(hl);const E9=R9;var pm=bt();function k9(r,e,t){pm(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function O9(r,e){for(var t=pm(r).coordSysRecordMap,a=t.keys(),n=0;na[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function G9(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=pm(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=X());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=eI(i);C(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,N9(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=X());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){SI(n,i);return}var f=z9(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Po(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var F9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),k9(n,t,{pan:U(od.pan,this),zoom:U(od.zoom,this),scrollMove:U(od.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){O9(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(om),od={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=sd[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wi(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Xw(function(r,e,t,a,n,i){var o=sd[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Xw(function(r,e,t,a,n,i){var o=sd[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Xw(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(wi(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var sd={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const H9=F9;function xI(r){sm(r),r.registerComponentModel(E9),r.registerComponentView(H9),G9(r)}var W9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=sn(hl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(hl);const $9=W9;var ls=wt,qw=7,U9=1,ld=30,Y9=7,us="horizontal",Kw="vertical",Z9=5,X9=["line","bar","candlestick","scatter"],q9={easing:"cubicOut",duration:100,delay:0},K9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Po(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){js(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?Y9:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===us?{right:s.width-o.x-o.width,top:s.height-ld-qw-i,width:o.width,height:ld}:{right:qw,top:o.y,width:ld,height:o.height},u=Do(t.option);C(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=te(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Kw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===us&&!o?{scaleY:l?1:-1,scaleX:1}:n===us&&o?{scaleY:l?1:-1,scaleX:-1}:n===Kw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new ls({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ls({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(A,D){if(_>0&&D%_){m+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:Lt(A,h,c,!0);M&&!S&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var w=this.dataZoomModel;function x(A){var D=w.getModel(A?"selectedDataBackground":"dataBackground"),M=new at,I=new Be({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Ve({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var b=0;b<3;b++){var T=x(b===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();C(l,function(u){if(!n&&!(a!==!0&&ct(X9,u.get("type"))<0)){var f=i.getComponent(Wa(o),s).axis,h=Q9(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new ls({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new ls({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:U9,fill:"rgba(0,0,0,0)"}})),C([0,1],function(_){var S=l.get("handleIcon");!Df[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Qt(S,-1,0,2,2,null,!0);w.attr({cursor:Qw(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=H(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ei(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(n[_]=w);var A=l.getModel("textStyle");t.add(i[_]=new Ct({silent:!0,invisible:!0,style:Ot(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var d=H(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new wt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=Qt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));c=a.moveZone=new wt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:Qw(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Lt(t[0],[0,100],a,!0),Lt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wi(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Lt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Lt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ar([Lt(i[0],o,l,!0),Lt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=ar(n.slice()),o=this._size;C([0,1],function(c){var d=a.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[c]+(c?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ut(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ar([Lt(n.x,o,s,!0),Lt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ha(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ls({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?q9:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=eI(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(om);function Q9(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Qw(r){return r==="vertical"?"ns-resize":"ew-resize"}const J9=K9;function wI(r){r.registerComponentModel($9),r.registerComponentView(J9),sm(r)}function j9(r){yt(xI),yt(wI)}var tZ={get:function(r,e,t){var a=rt((eZ[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},eZ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const bI=tZ;var Jw=fe.mapVisual,rZ=fe.eachVisual,aZ=z,jw=C,nZ=ar,iZ=Lt,oZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&hI(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=U(t,this),this.controllerVisuals=Up(this.option.controller,a,t),this.targetVisuals=Up(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Rt(t),a},e.prototype.eachTargetSeries=function(t,a){C(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=nZ([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ht(i,n),ht(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){aZ(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var d=h[v],p=h[c];d&&!p&&(p=h[c]={},jw(d,function(g,y){if(fe.isValidType(y)){var m=bI.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";jw(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&rt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&rt(c)||(s?m[0]:[m[0],m[0]])),_.symbol=Jw(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var w=-1/0;rZ(S,function(x){x>w&&(w=x)}),_.symbolSize=Jw(S,function(x){return iZ(x,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Tt);const Jf=oZ;var tb=[20,140],sZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=tb[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=tb[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),C(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=ar((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=eb(this,"outOfRange",this.getExtent()),n=eb(this,"inRange",this.option.range.slice()),i=[];function o(c,d){i.push({value:c,color:t(c,d)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new at(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();fZ([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=kr(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var d=xr(n.handleLabelPoints[f],ri(h,this.group));s[f].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),d=this.getControllerVisual(t,"symbolSize"),p=kr(t,s,u,!0),g=l[0]-d/2,y={x:h.x,y:h.y};h.y=p,h.x=g;var m=xr(f.indicatorLabelPoint,ri(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:g,y:p,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(b,A),_.animateTo(T,A)}else h.attr(b),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(a||ib(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var d=iR(v,c);this._dispatchHighDown("downplay",of(d[0],n)),this._dispatchHighDown("highlight",of(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Zn(t.target,function(l){var u=it(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function _Z(r,e,t,a){for(var n=e.targetVisuals[a],i=fe.prepareVisualTypes(n),o={color:bl(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(gZ,yZ),C(mZ,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(SZ))}function DI(r){r.registerComponentModel(lZ),r.registerComponentView(pZ),CI(r)}var xZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],wZ[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=rt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=rt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=fe.listVisualTypes(),i=this.isCategory();C(t.pieces,function(s){C(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),C(a,function(s,l){var u=!1;C(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&C(this.stateList,function(f){(t[f]||(t[f]={}))[l]=bI.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,C(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;C(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=rt(t)},e.prototype.getValueState=function(t){var a=fe.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=fe.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return C(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=sn(Jf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Jf),wZ={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function ub(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const bZ=xZ;var TZ=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=oe(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),C(f.viewPieceList,function(c){var d=c.piece,p=new at;p.onclick=U(this._onItemClick,this,d),this._enableHoverLink(p,c.indexInModelPieceList);var g=a.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);p.add(new Ct({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(p)},this),h&&this._renderEndsText(t,h[1],u,v,l),ai(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:of(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return AI(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new Ct({style:Ot(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(Qt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=rt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,C(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(TI);const AZ=TZ;function MI(r){r.registerComponentModel(bZ),r.registerComponentView(AZ),CI(r)}function CZ(r){yt(DI),yt(MI)}var DZ={label:{enabled:!0},decal:{show:!1}},fb=bt(),MZ={};function IZ(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=rt(DZ);ht(a.label,r.getLocaleModel().get("aria"),!1),ht(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=X();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),fb(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=jd(v.ecModel,v.name,MZ,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=fb(v).scope;c.each(function(w){var x=c.getRawIndex(w);p[x]=w});var y=d.count();d.each(function(w){var x=p[w],b=d.getName(w)||w+"",T=jd(v.ecModel,b,g,y),A=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(A,T))})}function S(w,x){var b=w?B(B({},x),w):x;return b.dirty=!0,b}})}}function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=j(f.option,u),!!f.get("enabled")){var h=e.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,A){if(A1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RZ=function(){function r(e){var t=this._condVal=$(e)?new RegExp(e):gL(e)?e:null;if(t==null){var a="";It(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return $(t)?this._condVal.test(e):Dt(t)?this._condVal.test(e+""):!1},r}(),EZ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),kZ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[L,P]}function f(L,P,R,E){ji(L,R)&&ji(P,E)||n.push(L,P,R,E,R,E)}function h(L,P,R,E,N,O){var V=Math.abs(P-L),F=Math.tan(V/4)*4/3,W=PT:M2&&a.push(n),a}function jp(r,e,t,a,n,i,o,s,l,u){if(ji(r,t)&&ji(e,a)&&ji(n,o)&&ji(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var p=t-r,g=a-e,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var A=[],D=[];Ka(r,t,n,o,.5,A),Ka(e,a,i,s,.5,D),jp(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),jp(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function XZ(r,e){var t=Jp(r),a=[];e=e||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=LI([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;cn,o=LI([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new ut(p*l+r,p*u+e)}function QZ(r,e,t){var a=new ut;ut.sub(a,t,e),a.normalize();var n=new ut;ut.sub(n,r,e);var i=n.dot(a);return i}function Wi(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function JZ(r,e,t){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),JZ(e,u,f)}function jf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);jf(r,i[0],n,a),jf(r,i[1],t-n,a)}return a}function jZ(r,e){for(var t=[],a=0;a0)for(var w=a/t,x=-a/2;x<=a/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),A=0,_=0;_0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function rh(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:lX(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function EI(r){return rX(r.path,r.count)}function tg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function uX(r,e,t){var a=[];function n(w){for(var x=0;x=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var hX={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;_b(r)&&(u=r,f=e),_b(e)&&(u=e,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,A=m?b:x[0];if(th(T))h({many:[T],one:A},!0,_,S,!0);else{var D=s?j({delay:s(_,S)},l):l;ym(T,A,D),i(T,A,T,A,D)}}else for(var M=j({dividePath:hX[t],individualDelay:s&&function(N,O,V,F){return s(N+_,S)}},l),I=m?uX(x,b,M):fX(b,x,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;Ee.length,c=u?Sb(f,u):Sb(v?e:r,[v?r:e]),d=0,p=0;pkI))for(var n=a.getIndices(),i=cX(a),o=0;o0&&S.group.traverse(function(x){x instanceof mt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function wb(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function bb(r){return z(r)?r.sort().join(","):r}function ka(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function gX(r,e){var t=X(),a=X(),n=X();return C(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=wb(i),f=bb(u);a.set(f,{dataGroupId:s,data:l}),z(u)&&C(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),C(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=wb(i),u=bb(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:ka(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:ka(s),data:s}]});else if(z(l)){var h=[];C(l,function(d){var p=a.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:ka(p.data),data:p.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:ka(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:ka(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:ka(s)})}}}}),t}function Tb(r,e){for(var t=0;t=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:ka(e.oldData[s]),dim:o.dimension})}),C(Rt(r.to),function(o){var s=Tb(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:ka(l),dim:o.dimension})}}),n.length>0&&i.length>0&&OI(n,i,a)}function mX(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){C(Rt(a.seriesTransition),function(n){C(Rt(n.to),function(i){for(var o=a.updatedSeries,s=0;s{n.xAxis[0].data=i.data.x,i.data.series.reverse(),i.data.series.forEach((o,s)=>{n.series[s].data=o.value}),a("transactionUsers",n)});const a=(i,o)=>{var s=document.getElementById(i),l=oy(s);l.setOption(o)},n={color:["#4B5FDB","#10C1CE","#583936"],title:{text:""},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["昨日","今日"],textStyle:{color:"white"},icon:"cricle",itemWidth:10,itemHeight:10,itemGap:10,top:"2%"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:[],axisLabel:{fontSize:12,color:"#d1f9fb",rotate:40}}],yAxis:[{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"#256980"}}}],series:[{name:"昨日",type:"line",smooth:!0,lineStyle:{width:0},showSymbol:!1,areaStyle:{opacity:.8,color:new nr(0,0,0,1,[{offset:0,color:"#4B5FDB"},{offset:1,color:"#5A649D"}])},emphasis:{focus:"series"},data:[]},{name:"今日",type:"line",smooth:!0,lineStyle:{width:0},showSymbol:!1,areaStyle:{opacity:.8,color:new nr(0,0,0,1,[{offset:0,color:"#10C1CE"},{offset:1,color:"#0294E0"}])},emphasis:{focus:"series"},data:[]}]};return(i,o)=>(qt(),Ae(nn,null,[_X,SX],64))}},wX="/yusi/assets/DRDDJE-IapCFgR5.png",NI=r=>(ag("data-v-dbba327f"),r=r(),ng(),r),bX=NI(()=>nt("div",{class:"users center",id:"orderAmount"},null,-1)),TX=NI(()=>nt("img",{class:"img-cls",src:wX,alt:""},null,-1)),AX={__name:"bottomleft",props:{code:Object},setup(r){const e=r,t=go(),a=di();$I({...t.area,streetCode:e.code,date:t.date,sotre_id:a.query.sotre_id}).then(o=>{o.data.forEach(s=>{n.series[0].data.push(s.yesterdayAmount),n.series[1].data.push(s.todayAmount)}),i("orderAmount",n)});const n=io({color:[new nr(0,1,0,0,[{offset:1,color:"#57D3ED"},{offset:0,color:"transparent"}]),new nr(0,1,0,0,[{offset:1,color:"#4156C2"},{offset:0,color:"transparent"}])],tooltip:{show:!0,trigger:"axis",axisPointer:{type:"shadow"}},legend:{textStyle:{color:"white"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["0-4时","4-8时","8-12时","12-16时","16-20时","20-0时"]}],yAxis:[{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"#256980"}}}],series:[{name:"昨日订单额",type:"bar",emphasis:{focus:"series"},data:[],backgroundStyle:{color:["red"]}},{name:"今日订单额",type:"bar",emphasis:{focus:"series"},data:[]}]}),i=(o,s)=>{var l=document.getElementById(o),u=oy(l);u.setOption(s)};return(o,s)=>(qt(),Ae(nn,null,[bX,TX],64))}},CX=dl(AX,[["__scopeId","data-v-dbba327f"]]),mm="/yusi/assets/SYBG--L0RlxO2.png",_m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAM40lEQVRogc1aC4xdRRn+Zubcxz7uPtvSbh/sbrfVUpBQCi6ggLQ8VqsIKmgtQmENYoJRiBGSQjAGxIiI0UCUTTRaojwUCMKCghSl5VqBAsurlG23u6X77naf93XOjJlzz5z7n3PvIrRN8SSzZ2bOnHv/b77/OXdZ25MKR+L65sfQmnKwiTOsEAwLoxyxmADiAk5coD8u0BXhuOf72/HYkfi+zgtY0Zx1uB/69aWYN2Pj0YEUTokJiDIBCA5YXhMMgjMsArBIAW13teLFKMd3vr0NLxzud4cvfjgvX9qMDSMZ7Ew7aLU4RIQD0rGRmp7EgeFBDA/0Y3xsFOlUCgxKA9MAVwP4V8enselIgzlkZr7ajE8NpHBvTCCumXCyaQyPj2F8dBCZybFdyKZ6bCcnMkqtaEiUH3NswwLetLgB8+prwQUXAH50avy1i364Zfv1ba3tWz60ALfce2TAXNKM+v0zeIIzxPVuZ6YnMTU2gunR/set3MztP9nd8wqAuwBcBiBaNcRxysAQvjA6iOObG3HskkWIlcXRfvLKVdv6+p/tTHb8E8B321rbdxyKPOY6JDUby2CrVEhotcrMTGFibDStpkZvfK329HW37u7JAngJwFUaiF4/4Ug8M5HGbTv34fmdu7B/3z4ox0ZZRGDzl87VS84EsL0z2XHdUQXztaVYm3bQGBUAVw5y6RlVI+wbk+Wrb+9MdjQB+CuA5SVeTQ5m7c2/2DN0X//YWHr84JhrQ1HBcfXqlfC05GedyY5vHTUwaRvnCYaYxYD09CSEzPU9lWu5qzPZUQbg7wDmhl75FYDj21rbT2trbb/skyddvmFBVcVNB8fHpe040A52w4nL6PqfdyY7zj0qYDIS67R6aVa4slEfVed5j/4AYClZelAT2dbafm1ba/sb9DN+PHTcHUrKicmJCTAGNNVU2cvqaszjuMfuUQDjqCYNRigb1fHI/ofGF+3sTHZotTqLLHMAbGxrbf/TbJ8Tj0buzqTTbr8mHuUfn1M1RB5HD0XdPjQYi7N4jAMVZTHMrave6U2vAjCHLHu5rbX9kff7nKampq0LGxYYAfiZjQ1PApBkyZUfVrZAOnPmfNw8lMZ1SiEaE1ARDhnlULof5ZBx4X5ZXdwCNDvlFibjAtOZXKZGKice4/nA2JAo219mcdtiUIJBWdy963fcL+MsnxkAOJYXspLB3oNTcxxIvRQc3GmoKt8X5dyWgMpJ/Hn9s7jBLO5MdswO5vxFaOmeQJdUiGtBdYvqJvJ3nWd5uVa+T+bM86iXwkS993XTjkJ4d2aA8LxK6L7ZSv2MhdMtladKKsBRUFLhGxu2YPNsYHw1cxxZZ0vlA3GFEwWB9ZwGooWKsMIaixGhWf5ueZ8hPMH1nZNGZA0AUYo8yANw53STCmwmk1v1fmrmZwBSOnGLCUQ484Xz2SG7HCXgIkRoA8AKCS9KgNA7KAgrrvwqD0pPamCO91B67OjnD7yx68rO5LZ1BPL9AG4uAiM4KzdAqHqZcYSwY1gxTFBAZs6AoJrDPQaYB4Q+k2RsGJJe08ByLkOsGkA1eU0nq68DeAAhb7acAjCCGzuIE0aM0JSRSAlGDKjZ1AwhtmQIgA/UU7XyiAUeNCw9OLGIGYuhxghu2LB40Das0LxrQyWMnQrPPHbCDFHz8OWjquX1tStzbQdAzLIgGINUgYKysgiMBOZHBAt4pkjIm3nutaiZecMIo0ygMPZVQa9RhBxP55RnH3ps+o4HTIOKChFmRl/lRWA4UG1sxYCIE0PXDMR4seFzjzFq7Ea9mCdt2HbMpQgg6e2+747JnGszEuA8z0wJMK6W+jbDGeoCbjkUM0xciVDvRmxHhLwXUJg3rteIYUAyjxQT9pUZKz+2uCB002vilgXOi8BoNRMBZhhQGVafaGhM3a6bvvNCIORe/AFRL/+zjeAEAPMSOAPOsBIG5AOT2qNaOp0Kgykz2ltQM4YqashhUGaH6TxD3uDdsQdEsAIAHmIjEFdMBkBUydiIFtwhzOi7rQBLaG9WlE7GisAwIGGVMO4IOWmJlrAXo0oIqRQnNmOo4MY+iCQmIJqgSYNkzltoPJrWphJgitXMLbi8HfZdcAnvRY1eEJUSrOCpRAn7CLOjCAgDziFqZRMvZu6WELM5gCIwiWiIjagI5lnU4DlCrhgl4ooX6QUB4INSZI7Yig9WFdTL9vqaFcGLmKkoAsMhY1bIRmiq4tqIdCCVA6mFjAhwl3bPe4USSDaLOwaCgtu27TPChOXbC8mWXVa0ymUcBasYTLzIZnS89DNgHgyCejwzNYn9vT14u2cPhLSxsrkJzc1NmFNbEwh8RtVMeuJ/NSvEEN3NZDLY29uLd3f3YN/BCbQsXozGpmbU1M3JsyELtmIb+2GzBs0wGJVngQfTeBcUlHsy+Xj3Xvxm95ALcH1G4eryOGoqyxGPRX2Dp4ZvUQ+mCkxpAQcHh/D8O7vx0zffQ39OYs2Egx8kqlGWqIXkwvdmBpRrQ1zgmKoq9Bw8WFLNXETXr8jU6UKG5mQWKxRU2rdXJyqxuW84rxoK+MvAOLr6h/CedwZGiy0WijN+zuUNR4aHsX9gAPfsGUFvVroZ8ZNDE3DiFe7LWr2yMqhiWUePGRoSiVKaWwCTVWJJxPUUXs1iAiTxWPPnzkFz4QQFU7bErV178dJbb+OdXe8gm00XJZQIOQLHcdDb24fXurpw56vdeHM8FVjbMH8BJON+luyCkAUHoPv1FSXBcPJHLde7TytDi9iL2eUHL/0cKiKFE92+VBabdg7+bsfLO7Zv2/YC+vp6kclmfeM2rthxJEZGD+DlHa/gmW1JbOrqw+NDU4VtZQx3f/4cN5GUJFAaN21SGs1SXXlJMAtgbMbiqGOeG/bzKBJDTCJZXxbFfV8+D+sf+htmcrarOQMZ59pF8+rsPd3vXtLd3X1TbU11S319PaoSleCcY3omhQMHxrB/dAxbJ3N4eoZjzJYBSTauWom2Zc2+ofv24o1pnhaPxEqBWQLg33kwDAstwYJ1iWk8mDCe3diAOy84A9c89pzedY218Ze87XU04vcbJx68/4m+kYv7ekZ+XcVYQvMyqY3dEdgrOSbcZCwI5KIVS7Hp7FZ/503LymAqk3Hy93i0rBSYhb6aKaCBpib+wUQoCzaeav0Jy/DcxguxqEo7EmzpTHa4nd9WfSUzuPKaPz6TjrQ8nLKSD6cieDodQVfOAAlet649DXe2nRVgQpH8zLjmnFNwBlErXgpMkw9GMMwRtC7hhX7A5RJQqxvmYutVX8T3TvtEfXUs+khnssMvktpa2/Xp5Ge8nzR20m/VceLspoV4+oqLcMVJK8GIwdPU34/+hKH8XYSBwBxAWnlEap5F4osVqhSNuhn367GJeRVluG3NqWhftWLtK/3DyYuPk1fHBX/1s09hpq21XZ+9bu5MdjwI4OQ1TQvXnd+y5PSzmha2NNXWNDgKjNqHcfk5Elf8esZjSqp8FlDiWoxC0FRxmmuF2TCMMFZcZOmPbq5NYHld4gQH2Jay1YGH17K3AAxLfXC3pr1GKjQqhUW6JPEFlcF6xRi6TYKlQ7yavmfcIq1kktTignn0nFxkxwjigSQyxIqJHzSOMJLug4ATnNUphTMCFaTZeXM4QXIvc3ARjva00SCqfwSpjMUxlUlTMK5r5m+Ps4TFedQqUcPzkKAg8QOhYsscRNAM2AhpKkezhNqG8VRSBdXMkcH4UsjVGOrLK1Hq4kqphGAo4wQICxdZs5TDigIgKYsix6ogqqRIam8aPbSwiarZZE3W2I3XamcBY0WYikgGi3ozjmDdgtBpC2VGEvVToWZOWfRmUC9F2bEJA2aNSWVo2WyYshVDRaxkrCm3pFsu8zIeKrBA2GEklQ8foSoCkqqScbWKVI2qBDtmAxzChjZ0Hwg5nclvAEMiVl4KTI0mQwOJheMK3X0RciD+qb0RWr9H7UUF7cl8Dk1PbCKwHWrmNMZP/cl6DaqyrKSa1VlMOQnBWISqVbhKDJS7ISdgOjKsYoQNI4yxIzvkln1QoT4tzrKy8F6sdBZQaaWmp0VWl5lVCbCY+7N9IM6UvMzOe6oVsKFQNLdDfSdk8Fmah8niRNOwZtx51nYgZZh3j5mxkcGXRkdGXk+lUsdXVpS7/+OiK0vmtYBquXNm94NIzVzhzuDokwW/b8bc7+dgQZd1NoR7z0Egp4T7LAvLHdveuvwzHWcsvLinqxSYedYdoysHL1db1o4ODVw4kMtqtZPv5viyrhy7Tvm+939deWAsUJ8bXeX+nfmehXlj/Yx7em3GIn/X/17jzln6kBlM1yjcwnB6ArtG+0vJU19akW65VyeJ//gAKP6frhtm++lc83hY/5TzEVwPzfZfTSMA9H9e6N8PIx9Q1z7K6z8Auv8LDstY5d7DYYsAAAAASUVORK5CYII=",DX="/yusi/assets/JRC-X6mdsuq5.png",MX="/yusi/assets/SSLL-o8u4gqos.png",IX={props:["num"],data(){return{orderNum:["0","0","0","0","0","0","0","0","0","0"]}},mounted(){},watch:{num(r,e){this.toOrderNum(this.num)}},methods:{setNumberTransform(){const r=this.$refs.numberItem,e=this.orderNum.filter(t=>!isNaN(t));for(let t=0;t(qt(),Ae("li",{class:zI({"number-item":!isNaN(o),"mark-item":isNaN(o)}),key:s},[isNaN(o)?(qt(),Ae("span",EX,Pr(o),1)):(qt(),Ae("span",RX,[nt("i",{ref_for:!0,ref:"numberItem"},"0123456789",512)]))],2))),128))])])}const OX=dl(IX,[["render",kX],["__scopeId","data-v-700edb1e"]]),NX={class:"product-list"},BX={class:"product",style:{}},VX=ig('
',1),zX={class:"product-content"},GX=nt("div",{style:{"margin-top":"14vh",position:"relative"}},"商 品 总 数",-1),FX=nt("div",{style:{"font-size":"10px"}},"NUMBER OF COMMODITIES",-1),HX=nt("img",{src:Db,style:{width:"75%",position:"relative","margin-top":"3.7vh"},alt:""},null,-1),WX={style:{"margin-top":"2vh",position:"relative"}},$X={style:{color:"#9DD2E0","font-size":"16px"}},UX={style:{"margin-top":"1.5vh",display:"flex","justify-content":"space-around"}},YX={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},ZX=nt("img",{src:og,style:{width:"1vw",height:"1vw"},alt:""},null,-1),XX={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},qX=nt("img",{src:sg,style:{width:"1vw",height:"1vw"},alt:""},null,-1),KX={class:"product",style:{}},QX=ig('
',1),JX={class:"product-content"},jX=nt("div",{style:{"margin-top":"14vh",position:"relative"}},"新 商 品 总 数",-1),tq=nt("div",{style:{"font-size":"10px"}},"NUMBER OF NEW SHOPS",-1),eq=nt("img",{src:DX,style:{width:"75%",position:"relative","margin-top":"3.7vh"},alt:""},null,-1),rq={style:{"margin-top":"2vh",position:"relative"}},aq={style:{color:"#9DD2E0","font-size":"16px"}},nq={style:{"margin-top":"1.5vh",display:"flex","justify-content":"space-around"}},iq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},oq=nt("img",{src:og,style:{width:"1vw",height:"1vw"},alt:""},null,-1),sq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},lq=nt("img",{src:sg,style:{width:"1vw",height:"1vw"},alt:""},null,-1),uq={class:"product",style:{}},fq=ig('
',1),hq={class:"product-content"},vq=nt("div",{style:{"margin-top":"14vh",position:"relative"}},"累 计 店 铺 总 数",-1),cq=nt("div",{style:{"font-size":"10px"}},"ACCUMULATED NUMBERS OF SHOPS",-1),dq=nt("img",{src:Db,style:{width:"75%",position:"relative","margin-top":"3.7vh"},alt:""},null,-1),pq={style:{"margin-top":"2vh",position:"relative"}},gq={style:{color:"#9DD2E0","font-size":"16px"}},yq={style:{"margin-top":"1.5vh",display:"flex","justify-content":"space-around"}},mq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},_q=nt("img",{src:og,style:{width:"1vw",height:"1vw"},alt:""},null,-1),Sq={style:{"font-size":"9px",position:"relative",display:"flex","align-items":"center"}},xq=nt("img",{src:sg,style:{width:"1vw",height:"1vw"},alt:""},null,-1),wq={class:"Views"},bq=nt("img",{src:MX,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1),Tq={class:"view-content"},Aq={style:{display:"flex","align-items":"center"}},Cq=nt("span",{style:{"font-size":"18px"}},"实时收款金额:",-1),Dq={__name:"topCenter",props:{code:Object},setup(r){const e=go(),t=di(),a=io({totalProductCounInfo:{todayProductCount:0,yestertodayProductCount:0,weeklyProductTotalGrowthRate:6.6842},newProductCountInfo:{todayNewProductCount:0,yestertodayNewProductCount:0,weeklyNewProductTotalGrowthRate:-270},merchantCountInfo:{todayMerchantCount:22,yestertodayMerchantCount:22,weeklyMerchantGrowthRate:.0476}}),n=io({lastWeekRate:-0,today:0,yesterday:7,dayPayPrice:0});UI({...e.area,date:e.date,sotre_id:t.query.sotre_id}).then(s=>{for(let l in s.data)a[l]=s.data[l]});const i=()=>{YI({...e.area,date:e.date,sotre_id:t.query.sotre_id}).then(s=>{for(let l in s.data)n[l]=s.data[l];dd.emit("header-title",s.data.title)})};i();let o=setInterval(()=>{i()},5e3);return Ab(()=>{clearInterval(o)}),(s,l)=>(qt(),Ae(nn,null,[nt("div",NX,[nt("div",BX,[VX,nt("div",zX,[GX,FX,HX,nt("div",WX,[nt("span",$X,Pr(a.totalProductCounInfo.todayProductCount),1),Rr(" 件")]),nt("div",UX,[nt("div",YX,[ZX,Rr("   昨日数据: "+Pr(a.totalProductCounInfo.yestertodayProductCount),1)]),nt("div",XX,[qX,Rr("   周环比: "+Pr(a.totalProductCounInfo.weeklyProductTotalGrowthRate)+"% ",1)])])])]),nt("div",KX,[QX,nt("div",JX,[jX,tq,eq,nt("div",rq,[nt("span",aq,Pr(a.newProductCountInfo.todayNewProductCount),1),Rr(" 件")]),nt("div",nq,[nt("div",iq,[oq,Rr("   昨日数据: "+Pr(a.newProductCountInfo.yestertodayNewProductCount),1)]),nt("div",sq,[lq,Rr("   周环比: "+Pr(a.newProductCountInfo.weeklyNewProductTotalGrowthRate)+"% ",1)])])])]),nt("div",uq,[fq,nt("div",hq,[vq,cq,dq,nt("div",pq,[nt("span",gq,Pr(a.merchantCountInfo.todayMerchantCount),1),Rr(" 间")]),nt("div",yq,[nt("div",mq,[_q,Rr("   昨日数据: "+Pr(a.merchantCountInfo.yestertodayMerchantCount),1)]),nt("div",Sq,[xq,Rr("   周环比: "+Pr(a.merchantCountInfo.weeklyMerchantGrowthRate)+"% ",1)])])])])]),nt("div",wq,[bq,nt("div",Tq,[nt("div",Aq,[Cq,Vs(OX,{num:n.dayPayPrice},null,8,["num"])])])])],64))}},Mq="/yusi/assets/YHSJ-A58vzEzZ.png",BI=r=>(ag("data-v-25271912"),r=r(),ng(),r),Iq=BI(()=>nt("img",{class:"img-cls",src:Mq,alt:""},null,-1)),Lq=BI(()=>nt("div",{class:"user center",id:"user"},null,-1)),Pq={__name:"topLeft",props:{code:Object},setup(r){const e=go(),t=di(),a=r;ZI({...e.area,streetCode:a.code,date:e.date,sotre_id:t.query.sotre_id}).then(s=>{s.data.forEach(l=>{i.series[0].data.push(l.newUserCount),i.series[1].data.push(l.viewUserCount),i.series[2].data.push(l.totalUserCount)}),o("user",i)});const n=()=>{for(var s=new Date,l=new Array,u=0;u<5;u++){var f=new Date(s);f.setDate(s.getDate()-u);var h=f.getMonth()+1,v=Number(f.getDate());v=v>=10?v:"0"+v;var c=h+"."+v;l.unshift(c)}return l},i={color:[new nr(0,1,0,0,[{offset:1,color:"transparent"},{offset:0,color:"#0081C3"}]),new nr(0,1,0,0,[{offset:1,color:"transparent"},{offset:0,color:"#3E54BF"}]),new nr(0,1,0,0,[{offset:1,color:"transparent"},{offset:0,color:"#4DBFD9"}])],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{textStyle:{color:"white"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:n()}],yAxis:[{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"#256980"}}}],series:[{name:"新增会员数量",type:"bar",emphasis:{focus:"series"},data:[],itemStyle:{borderWidth:1,borderColor:"#384FB4"},backgroundStyle:{color:["red"]}},{name:"访问用户数量",type:"bar",emphasis:{focus:"series"},data:[],itemStyle:{borderWidth:1,borderColor:"#3E54BF"}},{name:"累计会员数量",type:"bar",emphasis:{focus:"series"},data:[],itemStyle:{borderWidth:1,borderColor:"#4EC1DB"}}]},o=(s,l)=>{var u=document.getElementById(s),f=oy(u);f.setOption(l)};return Cb(()=>{}),(s,l)=>(qt(),Ae(nn,null,[Iq,Lq],64))}},Rq=dl(Pq,[["__scopeId","data-v-25271912"]]),Eq="/yusi/assets/DDSJ-sDZIkwIt.png",kq=r=>(ag("data-v-321316c4"),r=r(),ng(),r),Oq=kq(()=>nt("img",{class:"img-cls",src:Eq,alt:""},null,-1)),Nq={key:0,class:"order-data"},Bq={style:{height:"40vh","margin-left":"2%",width:"97%"},id:"topRightDV"},Vq={__name:"topRight",props:{code:Object},setup(r){const e=go(),t=di();XI({...e.area,date:e.date,sotre_id:t.query.sotre_id}).then(i=>{a(i.data)});const a=i=>{let o=[];return i==null||i.forEach((s,l)=>{var u,f;if(((u=s.nickname)==null?void 0:u.length)>10)s.nickname=s.nickname.substring(0,6)+"****"+s.nickname.substring(10);else if(((f=s.nickname)==null?void 0:f.length)>2){s.nickname=s.nickname.substring(0,2);for(let h=0;h${l+1}
`,`
${s.nickname}
`,`
${s.price}元
`,`
${s.create_time}
`])}),console.log(n),o},n=io({oddRowBGC:"#001C2E",evenRowBGC:"#001C2E",rowNum:10,columnWidth:[50,170,130,200],data:[]});return(i,o)=>{const s=eg("dv-scroll-board");return qt(),Ae(nn,null,[Oq,n.data.length?(qt(),Ae("div",Nq,[nt("div",Bq,[Vs(s,{config:n},null,8,["config"])])])):rg("",!0)],64)}}},zq=dl(Vq,[["__scopeId","data-v-321316c4"]]),Gq={key:0,class:"center"},Fq={class:"top box"},Hq={class:"l"},Wq={class:"c",id:""},$q={class:"r"},Uq={class:"bottom box"},Yq={class:"l"},Zq={class:"c"},Xq={class:"r"},qq={__name:"townDetail",setup(r){const e=cd(!0),t=di(),a=cd(1);let n=null;return Cb(()=>{setTimeout(()=>{e.value=!1},1e3),n=setInterval(()=>{a.value++},1e3*60),dd.on("changeOneTime",i=>{a.value++,clearInterval(n),n=setInterval(()=>{a.value++},1e3*60)})}),Ab(()=>{clearInterval(n),dd.off("changeOneTime")}),(i,o)=>{const s=eg("dv-loading");return qt(),Ae(nn,null,[e.value?(qt(),Ae("div",Gq,[Vs(s,null,{default:GI(()=>[Rr("Loading...")]),_:1})])):rg("",!0),nt("div",{style:FI({opacity:e.value?0:1})},[nt("div",Fq,[nt("div",Hq,[(qt(),bi(Rq,{code:ko(t).query.code,key:a.value},null,8,["code"]))]),nt("div",Wq,[(qt(),bi(Dq,{code:ko(t).query.code,key:a.value},null,8,["code"]))]),nt("div",$q,[(qt(),bi(zq,{code:ko(t).query.code,key:a.value},null,8,["code"]))])]),nt("div",Uq,[nt("div",Yq,[(qt(),bi(CX,{code:ko(t).query.code,key:a.value},null,8,["code"]))]),nt("div",Zq,[(qt(),bi(xX,{key:a.value}))]),nt("div",Xq,[(qt(),bi(JI,{code:ko(t).query.code,key:a.value},null,8,["code"]))])])],4)],64)}}},eK=dl(qq,[["__scopeId","data-v-6c7a3382"]]);export{eK as default}; diff --git a/yusi/assets/townDetail-kb8bXYp3.css b/yusi/assets/townDetail-ixelsG0P.css similarity index 95% rename from yusi/assets/townDetail-kb8bXYp3.css rename to yusi/assets/townDetail-ixelsG0P.css index fe26ad6..69795a4 100644 --- a/yusi/assets/townDetail-kb8bXYp3.css +++ b/yusi/assets/townDetail-ixelsG0P.css @@ -1 +1 @@ -@charset "UTF-8";.img-cls{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.user-rank{box-sizing:border-box;width:100%;margin-top:7vh;height:38vh}.user-rank .btns{color:#fff;display:flex;justify-content:flex-end}.user-rank .btns .btn{margin-right:1vw;font-size:.0625rem;padding:.01563rem .05208rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIcAAAAeCAYAAAAGjg2BAAACb0lEQVRoge2bT09TQRRHD4MtJgJibSDBmgh2IyY0bDAx0S/gh/C7Sly4sywwRrCbaiI2lb8J2CDmkt80k0ZalAW+zj1J8zJtKXlzz5v3ZubeiVevP3EFAjAPLAD3gDtASe87/ze/gB5wDPwAvgG7en8ot0Z8bgLUgWVgyiUoJEGxs1cFeAz8BHaAbYnzR4bJUQMaiRQHwBegAxzqH4y0z7lxTI4yMANUgQfALPBEF30TaF9VjglJsay2ybClo1M87AI+0es78EGSrOi4rqNJcj5MDhPjGbAInAGbQMuFGDvsQn8DLAGrGghuA+9SQQYfKFclht2HNlyMsaelOPcU90Z6wqkcNT2s2IjxFujm3nOZ0FW8zzSC1OJpRzlKiTWbLkZ2dBV35IH50JejrllJx28l2dJS/Kfkw4UcIZmZbOXeQ5kT428+hLjyabbs+3Q1ezrywHyYD1oSN77m3jPOBdGDBZNjTg0fNRwSD+ZMjmk1Dr1rnMSD6RCnLdorcZzoQcm33J1LCcmWbdm7yUk86JkcR2rMeM84iQdHJseeGlXvGSfxYC8obQztyjlO9GA3KJ/QnlDvAvez75q8qcqDUxs0gjKFdtQlT3PvncxZ0el/Ni/iVHZbtlSVHeTkxyPF/1Q+9Lfse8ohRNlgFZcjKypJPk8zLm+ki2BtDSeTwHMXJBsqivek4t/PRB9cIW1qV84WQl74LWbsWVKcy4p7Mz3hwezzc2Ugx9KENeChlyaMHWlpAhoxRpYmoC+8lwwN/cBLL2oqLJcVNaGHz78qaoq0tUBWV1b6bPKjTrG5djkk+kOrkProhdSF5d8KqYHfojSLDSL/WJkAAAAASUVORK5CYII=);background-size:100% 100%;cursor:pointer;position:relative}.user-rank .btns .actbtn{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAAAjCAYAAACkVvl8AAAHM0lEQVR4nO2cW2xUVRSG/3Pp3JhOWwoFYyFighQMYiMEiMZoazBK9EUgEkJ88RqCiYb4JG8+mHjhxZiYqA8SiVYTLUkTEUm00GihiZISAm2gYGuBQi8z07mdOTPHnGHtZrk50w4K5TTuP9mZWzsz7frm32uvvfZom1/oRwUyAWwEsB7AKgCNAKIADAA2gAKAIg1XDg0u+bbSv5cm/abG7tNpGBQ3NzaTAIYAnAbQDeBXihs62porfhPmDI9XA9gOYCuAOgAWgCyNEQB5ejMCFkcCBh7XlW6NODAcFI3B4o4qAAEA9wBoAvA8gAnHKX6TSQ9/BSBe6buZzlk2AdgDYD6ANNGZppEjUPLTOIsC5farHDDcWapoBAFEaESvXzrjdj6979B3jxxiH/ay8oLFfaG3AGwhJ3HJS9JIMWexmLMUy8CiQLn9EpDIsOiSs4RozKMZwx017mOFQrb9xNHd742O9FgshjdIhsV9gXcBtBAY465lAUiQs7j3ZQgW7ioFlqc4CpZZFYeFD0NyFxeUMMHiOksMQC2lF/MKduZY15Gdbyfj5zLlXEaGxXWUbeQiowDGyFkSdF+aYMmVmYJkSBQst1+ys2hlpqIgwRIhV4mRs7hpRr17n5Ub6zjc3vo+xbggx48nuJsIlBSBImCZkGDJSrBwUJSr3Bl5uYsAhsMSIlhylEbYLE56IDh/88NP7D/T9dPODor1P4ARsFRTMmvR1DNOoIhpSOQtGQaLchX/qBJ3EbBkWa45BYqAqqa26aXFja2/Xx468hcDpiQBy3ayo2sExoQ04pSzeOUrXq4CBcusSl4VadIS2mQfcksCRaPHS0mwppsLlq98cdvloSOf0s9lRdIrLGorgZBgU05Suj0p5SsqsfWXZkp0q9iH3GEwcdcpJcDR2L2toXBDezYzIqYq9/cc9wc3UEY8SvlKisCQh1gJWcpVfKmZ3IXnmGCgBBgo7ioprRuB+uX3v7y+t+edw2QOJWMQsBTZSictjQyrrfDEqFzFVoFy5+RVcxHAFJijyPUXEWcR/7pYbdMa2hpICWBMKgFbUik/x8CwWAEuLxXivFxFyT/gFBksHBQeVxFrXmy1QuGFjbTwiRMwtvskS6XSvc2u80TWa/WjQPGveHxEzApSPOU4i+v5qkBNHU1NYXIgTad5ij9ZgV13ysChQJkbKhczHtOCR+yLul4VZImvO2UZ+v/9v6k0rcRKyYVF1wEnJRVwDHadF3fkJZkmZeBK/lO5mPGYGh6x14tFy2I1mtJ9uuM4Q2wb22S1F35psEsveJT8DYpczTXKxHmqpcHKjcelHWyYTtE+qxmBVdI2tpivAmzkpeWXWjr7T9MtnXlvC48rz01C4v705OBV+a8zLSt+IhRe+BxtMIXZzmTEo2+FL79UUc5fqqTkzw2Bx1mOvX5tpOei3Kdk9p36uHv12r1JTdMjrNdB3jCUq36q3O8/VVLuD7JKbZTFm9+OFArZzIW+AxfZErsEjDk48H1uxepdB4OhBTuox0EGxWGOYkp7DMpd/KFKXKVKKuuLfpZq1t/ijvDVS13HbTslYiz2Aoul7u/zZ774tumB15/RdDPGph4ZFIPNcapFwV+6mRaFMIOjlg0XnJjrKqdPfniSgTLV0uA+iXO+b//Y4saWz+oWPPgGbSryqYc7imp+8qdutvmJwzKfYu6OwEDflz9mUsNiwzjDNo+dUltlR1uz6xi1jz3dvmdedGmL1FY5wVoWKmmrVFPR7MprCqqkrbKawVJqqxwdOd7728+v/MKa4IYBXCIGLNH85AY8c+zwjk8efbKtPhy5a02ZLWzVsO0/3ZKG7cRE37nuzl1HBQusn0n04051yrmukLPzk/HOH7bs29jy+aux2hUbpPMm6iiIP/Wfj4KMjvSc6u58rdMp2jbFNkHOkqRZpBTXqe7+jrZmnZ7MpW3R6rV7W+9e+tSzhhmOsENmKTYNWWynUh0yuzOq5JCZyRYm3FkiBTuTHug/cOxs70f9FMMcTTnuadMrdD17Ayy4DoxBLuIC0xCNLVuycs2bj9c3rHvIMIIhqefFkuotvKKrYJkdybBMd3x1qkJbKOSyVy939Z7+44OTmdRwlvXaJqgPe4RA8WzYFiqSc5TexGRioHji6O6DphnpXHbfjpX1DeuWRaJLFgUCNTHdCIY0TXcqPBivgLn18kpsITuL4xS1YiGXtax4Ij3554VrV7oHL/R/PWjbKbGStVn/9Rhr2s+weF5/Efn4akdbs0iOxHpcLKuqWSOMKVGsNDfE3d9my+MkOwKULHfITEM46vVXCgiC0rpcADPV48CgUfK3eNNTnvITvupJsi898Dy+Wu4rNxw2j4lKXorsKcx2pk3W96KA8a8cFlNemc1ItTNbnnq4Zvp+liJLYgUwAbbVrUCZO+LAiJ5rufwxbW45EyxgLyCozEpNUFCwzAkJEHi/Ne9Hml4A/gbC9oSiXt4ibgAAAABJRU5ErkJggg==)}.user-rank .list{box-sizing:border-box;padding:0 1vw .26042rem 1vw;height:34vh}.transactionUsers{position:absolute;width:100%;height:40vh;top:5vh}.img-cls,.img-cls[data-v-877a513f]{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.users[data-v-877a513f]{margin-top:4.5vh;position:absolute;width:98%;height:35vh;box-sizing:border-box;overflow:hidden;position:relative;z-index:9999}.center[data-v-877a513f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.box-item[data-v-700edb1e]{position:relative;height:.41667rem;font-size:.28125rem;line-height:.21354rem;text-align:center;list-style:none;color:#fff;writing-mode:vertical-lr;text-orientation:upright;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.mark-item[data-v-700edb1e]{width:.05208rem;height:.52083rem;margin-right:.02604rem;line-height:.05208rem;font-size:.25rem;position:relative}.mark-item>span[data-v-700edb1e]{position:absolute;width:100%;bottom:0;writing-mode:vertical-rl;text-orientation:upright}.number-item[data-v-700edb1e]{width:.21354rem;height:.39063rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABICAYAAAC0hqYWAAALaklEQVRoge1bTa4tNxGusvsmj6UwYwVMGBE2QEaZMc2KAvtggIRYAjMkWABSpAyCkrzbdqEqV9mf3e5z7g0IIYSj+07/uN3189VXVT4n/PlfvxPywfoh9I9y8K/8krBQIZGYI6nKSZvBQrJcXc8fDV7v1cTHdIGJhTnrYSr1TyCxjYRLiEmuf+sizNtjlNpeNAnEtj5drq3PP1fC1m9KyGa+ytwfeP0kfcZCYW0m8Zc24STuVaZM3C7yjXfeOFApcQUynE8Cs0ipbuCS089tUqIjn/IHcovFVLVoKHa1evNEv36Hm8Ur9MALukTFpVKVon/LTPsP36cK2B8gJwnRt8L0bVt8KCPqXu4WUgFzX7oveIXAnX5Pztexgc/6rnnK8fHT/IUFNFFun2GsjvlE0kLHvNICnzsR7KRmtcjlrQKfsX5iMa/YAGjFU7xaQT1hyHeDa0ioA5J5pVmbxye/gCXQKwcEe/tkZpyzNdcIfDyf5rgS43oowZzDG6HEvI4FbE7EBqGjL+JxPMVLw6gvbMFuxxr4dUBuK+AypiBWyr7EFHcZBlMxZZnfcxnJBeaYLN1yGNztQ66CchIqyijgFXmSQ6Z7W2V2dGtzXI4uszrBZDZoqRIvwPkdYjtX0xz4oTOrMpNdf+yAxBpKYCxOSpCzmUJLWi5hZygVN3U4DdcedjwgxgivReRHSkz3ZAUV3tsnvmNjSJunriGR9qnSi4i0S5R4k5hg0czExR/Q4xqlzAqXKF9qMpaSOBclG7Z3QeWwUWAOcg7YK+sZtJiPRGQ4G1Zwy69eGWuAVx4MFDhGqiMBNoqWCnT+aLX+T4dUU+KQBq/jUHex+ViK3lCMiuaU8AZbHkHKXQNZF2peUSascu6C98mId015o3miI2BNvqYAeTZIRJ21IniGN1rmT53HDZu8dT8ttddOGYXWVBkwH3Oe4oR5A7zR53dvNPRQU4aOBAIqjWUIfHIOlg61f9O4qcd2prkcDCWGUVRuPcnumeTidtxBsRax0vOKLrjS8Fp7eanSY2Ij6YBpxMxu0iYZAkEYeizqKTxBDNm8vxeLxVFqNAHZhe+TtZeQOecw9irjk9MQ40LLOeIjID/9teriMAQ1NB3JT46p3hrxMrwS5fS+XFh6h2tmj2vj06y/KGDwZszicO9wWGG2P4IElH7zYu2YnPGzycDonaHE0jX+CNba1jSLN+Jt6o0McunIyXsSYy+BZINlgMfNzFZQSF6UA8VWSI3rbpQnJUnMFZ4YL4JcE6VBecSIZ0lTiBukbow3VaYXozptz0/s+/wH76AVdn4lL0FOHsPZXadFrKQBTGPdvHh8aooWDfTZCtsxPGYqGQ1FlQwwhsT7kN4mXMqRtXi1ID9aHLOjaBSNQcPIOPFgLGrEIGk0XR1eI8/0xvDqscUr8J6p13kwEMo9Rho55cgfmGQQXofETsuTAPaMvBGeL22ASzJ07r217qHNcQ9r7mrlntsigBKWJ2sJPZ3LqIixlGj9yEhofj6E8mSHPXq/jr1Mo/hDvKqFAjFkxPTQZU8eQJkGteZhzd57DKvwmuVnenwT7w7vyHU+h7LYrAXMsbrIULXnBIKA4E2hXXNzL9yaSzhNJcs4Z/Mq1G/XrZ7H20VTDvG4SoizJU722L5gdcaw4LwLjKDhGs0VCsWwAkM2ZxmwyhAfwbrHzPe0LT2CHjG3AJykSsfx1IQxRT31YNy0tDv22sVtrM/8y2/es2n+3zueWuz/ivyHx/+MIsfXf6ff1UqvtdDHUuiHWuiHUuhVr5VCZy3ts5x2reqxprDTz2uhKpXqeVrFansittWo9ypJSpREd1S0GCtUU7Zziuv5oORft9BxtG2pnCn7MedEOWXKOdORD/t7SYkO/TsO+pAP+iQlern3yA0HMNCxHqe2oUAq4DzxX+vxZS1XlxHvjfEuaMmu89sJjNVt28vqz6pX4jyUd49FfiGfVy5t4oOxVYRbbXPNhGtzJAaxM6zPmRJ6hqNpXZ7LPieU2hqppcY35wZURKDIkP7PGyBiEPN5Jpwfp2SFC4fFtbI7XujQ2LkIElB58DbmewTFjSb4sjy3Xca5rI5zGQKI+KO9MCfJAzaToKVQiTXCe6EsvkcD/l6lvSL4fYa9V1pfoPguKIwJvImTUNY801hJisMmYFUr7fesZKyLa6vC71UkAvJNeExsneLklRBAPxVaILzAPcJnyGEYcaIes+ceSCHSqP5WEZxIvoMR6WC77sYraHFT6KSCjKUshMGNIxRHj6RE+RbWIFh11KTwbsVvhdzetVmgBMRC4NXt07euckPJMbjPk6Bg9ZyuacZobMm1TAad3zW8HNAvyU96CHcl0MIQJniNFiyXsz3jGZ23yVP8bf7Gck4GFNoJv2E5lRvnWWBSs05YHvrsfXBPjNK+gyePDXzRJcCn843Xdky1g5OHQChZRGbWEqdRMdy1dnRsWG+UAgtOAd9lZW9r8bx36229fAzhzbvD9dO7akDcZVz0rckmAAUDK4ixxAiqGi/YMUAUgyD0pf6y8+XZlQB2FK8ybbM8tNLJN2QqUHCwlTLNWav9DXreWH7njVJIzlcPYL+n8bBm9R10oR67KFEdSkpOnoN0zZLGeo69Fd8yxUy8qNB7ktZG6e20uPekKBKZiUg/kgfLGQtVoFtpPylI4W6EV7caWgKGslZPcrEV4cy1zlVP4TVLup57ulyFSql0irOejJgxNKXOxdWUCXx2+S40vMnm5HBAZbVE0WO/JpHla2u47qveO0/L5XTKfRYj2v1RsJWeV8vCZ8QPgsM6xFYUbou6R8lwXyaMsj7qrm6Y6Djn/qY4aqozHzVoeUKsSw7ZFnMr1v1cgzpK9bXeCnhFjtHzvHaTD8aU4cEQEdOmmGZ2YKRw++mPSAVvBBzME9dyvyuHdZMaozjk3DBxPhlCr52vLU6xzLdjz2JLfFp8SNhbY4Q8V7i7Tn9ZAQbrZYPe045Q75eTzhUp4Y0VTmt+uSvpYz6aXeuusgQ9GsrJqtVaylqR1bFMqZ5pq+MxFp/yxbkUkA/o9YHwsmuj43VxLSrdyCUBKxKvtfxGRW8446zZXBASu6G0u5Qp98NLmLVDLLPVp/isZVQimBxTZEbfrxqVcHtBCm/oAgorwCpFrcSwNeM0iwXeFTI+b/XmOiL3YAMnI2Yjs1vApwqc7ZavUX9FeeBV2pQEO026QM88tSoBWZxlqSICGegdJIEJvq7cIVH1eu6oLnw9vU5q/ffZqRgCdc3IxWmX+T5n3F2/mastgv2MSn+tEOwVjZd9Bq2rAuWkjx4jk12nSlecetlYpK5KoKDeJV6EWuet+US3XXEDb127QE7p5BQeKQ1rw+rB0w1a/Xp37QKhtf94j8XdQE+rYX23GjG8Atm/f8eowXxGx+W5pE/qE9cyQeaeJEr0dytxo1B4U8lFFoREPHqw9+SYol6BjFmrU3G4rgyF2g8Q37D7eAO76Wq52VVZ5pRLszWKzxIoSl6Znj35jX44cgatjHTb1r5zLDvu41cNcjWExg7kl8t+gkGL5kSDTdVUUu9683LO+1XPOsfVK+d5bXXXnRWIz46cuFcb2xb+9d/a/5r0x798+I16w4WyXXYP9mj4g24FO8joQyLQ13LjrmRBitZj3ITQoZvdyHy65tG+6MnxRYEe/+Kn3/9WcKcxlFCWsq8KBu1GGxwl/bSpoMfr/tU2cS1Wx97dEuBpaQD3yMoKsfDWWXpHO76nji/MwxMYF3c9efQbuHe7E3y7I/LG7P+wc5TRq8c9/lyhhdm50te///OHL90qVqpHr0AjEEdZAl4AqEw78Lu93R05HC8zvHROQM5/Z8SaTz772fdfJaKf4A9Zpt+AxHWMC4DJUPaNpfuTtvdSuuu6GCs7b25RQkT/BNMAnR4Bsw9cAAAAAElFTkSuQmCC) no-repeat center center;list-style:none;margin-right:.02604rem;border-radius:.02083rem}.number-item>span[data-v-700edb1e]{position:relative;display:inline-block;margin-right:.05208rem;width:100%;height:100%;writing-mode:vertical-rl;text-orientation:upright;overflow:hidden}.number-item>span>i[data-v-700edb1e]{font-style:normal;position:absolute;top:.05729rem;left:50%;transform:translate(-50%);transition:transform 1s ease-in-out;letter-spacing:.05208rem}.number-item[data-v-700edb1e]:last-child{margin-right:0}.product-list{height:70%;display:flex;justify-content:space-between;position:relative}.product-list .product{height:100%;width:32%;position:relative}.product-list .product .bg{display:flex;justify-content:space-around;position:absolute;height:100%;width:100%}.product-list .product .product-content{color:#fff;text-align:center;font-size:12PX}.product-list .product-icon{width:2vw;height:2vw;position:absolute;animation:jump 1s infinite;top:2vh}.Views{margin-top:2%;height:25%;width:100%;box-sizing:border-box;position:relative;color:#fff;font-size:.0625rem}.Views .view-content{display:flex;height:100%;width:100%;align-items:center;justify-content:space-around}.bubble{width:.02604rem;height:.02604rem;background-color:#fff;position:absolute;border-radius:50%;top:7vh;animation-name:bubbleAnimation;animation-duration:1s;animation-iteration-count:infinite}.bubble1{width:.02604rem;height:.02604rem;background-color:#fff;position:absolute;border-radius:50%;top:7vh;left:6.5vw;animation-name:bubbleAnimation;animation-duration:1.5s;animation-iteration-count:infinite}.bubble2{width:.02604rem;height:.02604rem;background-color:#fff;position:absolute;border-radius:50%;top:7vh;left:8.5vw;animation-name:bubbleAnimation;animation-duration:1.25s;animation-iteration-count:infinite}@keyframes bubbleAnimation{0%{top:7vh;transform:scale(0)}25%{top:6.5vh;opacity:1;transform:scale(.55)}50%{top:6vh;opacity:1;transform:scale(.5)}75%{transform:scale(1);top:5vh;opacity:1}to{top:4vh;opacity:0}}@keyframes bubbleAnimation1{0%{top:7vh;transform:scale(0)}25%{top:6.5vh;opacity:1;transform:scale(.55)}50%{top:6vh;opacity:1;transform:scale(.5)}75%{transform:scale(1);top:5vh;opacity:1}to{top:4vh;opacity:0}}@keyframes bubbleAnimation2{0%{top:7vh;transform:scale(0)}25%{top:6.5vh;opacity:1;transform:scale(.55)}50%{top:6vh;opacity:1;transform:scale(.5)}75%{transform:scale(1);top:5vh;opacity:1}to{top:4vh;opacity:0}}@keyframes jump{0%{transform:translateY(0)}50%{transform:translateY(-.05208rem)}to{transform:translateY(0)}}.img-cls[data-v-9f525155]{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.user[data-v-9f525155]{position:absolute;width:98%;height:40vh}.img-cls[data-v-cffe0397]{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.order-data[data-v-cffe0397]{width:100%;height:100%;box-sizing:border-box;padding-right:1vw;position:relative;overflow:hidden}.order-data #topRightDV[data-v-cffe0397]{padding-top:5vh}.box[data-v-6c7a3382]{width:100vw;height:47vh;box-sizing:border-box}.top[data-v-6c7a3382]{display:flex;padding-top:1vh;justify-content:space-between}.top .l[data-v-6c7a3382]{width:25vw;height:46vh;overflow:hidden;box-sizing:border-box;position:relative;padding-top:6vh}.top .c[data-v-6c7a3382]{box-sizing:border-box;width:48vw;height:100%;display:flex;flex-direction:column;justify-content:space-between}.top .r[data-v-6c7a3382]{width:25vw;height:46vh;position:relative}.bottom[data-v-6c7a3382]{display:flex;padding-top:1vh;justify-content:space-between}.bottom .l[data-v-6c7a3382]{width:25VW;height:46vh;position:relative}.bottom .c[data-v-6c7a3382]{width:48VW;height:46vh;position:relative}.bottom .r[data-v-6c7a3382]{width:25VW;height:46vh;position:relative}.center[data-v-6c7a3382]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.progress-bar[data-v-6c7a3382]{transform:translateY(.0625rem);width:100%;height:.05208rem;background-color:#122e3f;overflow:hidden}.progress[data-v-6c7a3382]{width:70%;height:100%;background:linear-gradient(to right,#455CCC,#51C2E0);transition:width .5s ease-in-out}.center[data-v-6c7a3382]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff} +@charset "UTF-8";.img-cls{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.user-rank{box-sizing:border-box;width:100%;margin-top:7vh;height:38vh}.user-rank .btns{color:#fff;display:flex;justify-content:flex-end}.user-rank .btns .btn{margin-right:1vw;font-size:.0625rem;padding:.01563rem .05208rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIcAAAAeCAYAAAAGjg2BAAACb0lEQVRoge2bT09TQRRHD4MtJgJibSDBmgh2IyY0bDAx0S/gh/C7Sly4sywwRrCbaiI2lb8J2CDmkt80k0ZalAW+zj1J8zJtKXlzz5v3ZubeiVevP3EFAjAPLAD3gDtASe87/ze/gB5wDPwAvgG7en8ot0Z8bgLUgWVgyiUoJEGxs1cFeAz8BHaAbYnzR4bJUQMaiRQHwBegAxzqH4y0z7lxTI4yMANUgQfALPBEF30TaF9VjglJsay2ybClo1M87AI+0es78EGSrOi4rqNJcj5MDhPjGbAInAGbQMuFGDvsQn8DLAGrGghuA+9SQQYfKFclht2HNlyMsaelOPcU90Z6wqkcNT2s2IjxFujm3nOZ0FW8zzSC1OJpRzlKiTWbLkZ2dBV35IH50JejrllJx28l2dJS/Kfkw4UcIZmZbOXeQ5kT428+hLjyabbs+3Q1ezrywHyYD1oSN77m3jPOBdGDBZNjTg0fNRwSD+ZMjmk1Dr1rnMSD6RCnLdorcZzoQcm33J1LCcmWbdm7yUk86JkcR2rMeM84iQdHJseeGlXvGSfxYC8obQztyjlO9GA3KJ/QnlDvAvez75q8qcqDUxs0gjKFdtQlT3PvncxZ0el/Ni/iVHZbtlSVHeTkxyPF/1Q+9Lfse8ohRNlgFZcjKypJPk8zLm+ki2BtDSeTwHMXJBsqivek4t/PRB9cIW1qV84WQl74LWbsWVKcy4p7Mz3hwezzc2Ugx9KENeChlyaMHWlpAhoxRpYmoC+8lwwN/cBLL2oqLJcVNaGHz78qaoq0tUBWV1b6bPKjTrG5djkk+kOrkProhdSF5d8KqYHfojSLDSL/WJkAAAAASUVORK5CYII=);background-size:100% 100%;cursor:pointer;position:relative}.user-rank .btns .actbtn{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAAAjCAYAAACkVvl8AAAHM0lEQVR4nO2cW2xUVRSG/3Pp3JhOWwoFYyFighQMYiMEiMZoazBK9EUgEkJ88RqCiYb4JG8+mHjhxZiYqA8SiVYTLUkTEUm00GihiZISAm2gYGuBQi8z07mdOTPHnGHtZrk50w4K5TTuP9mZWzsz7frm32uvvfZom1/oRwUyAWwEsB7AKgCNAKIADAA2gAKAIg1XDg0u+bbSv5cm/abG7tNpGBQ3NzaTAIYAnAbQDeBXihs62porfhPmDI9XA9gOYCuAOgAWgCyNEQB5ejMCFkcCBh7XlW6NODAcFI3B4o4qAAEA9wBoAvA8gAnHKX6TSQ9/BSBe6buZzlk2AdgDYD6ANNGZppEjUPLTOIsC5farHDDcWapoBAFEaESvXzrjdj6979B3jxxiH/ay8oLFfaG3AGwhJ3HJS9JIMWexmLMUy8CiQLn9EpDIsOiSs4RozKMZwx017mOFQrb9xNHd742O9FgshjdIhsV9gXcBtBAY465lAUiQs7j3ZQgW7ioFlqc4CpZZFYeFD0NyFxeUMMHiOksMQC2lF/MKduZY15Gdbyfj5zLlXEaGxXWUbeQiowDGyFkSdF+aYMmVmYJkSBQst1+ys2hlpqIgwRIhV4mRs7hpRr17n5Ub6zjc3vo+xbggx48nuJsIlBSBImCZkGDJSrBwUJSr3Bl5uYsAhsMSIlhylEbYLE56IDh/88NP7D/T9dPODor1P4ARsFRTMmvR1DNOoIhpSOQtGQaLchX/qBJ3EbBkWa45BYqAqqa26aXFja2/Xx468hcDpiQBy3ayo2sExoQ04pSzeOUrXq4CBcusSl4VadIS2mQfcksCRaPHS0mwppsLlq98cdvloSOf0s9lRdIrLGorgZBgU05Suj0p5SsqsfWXZkp0q9iH3GEwcdcpJcDR2L2toXBDezYzIqYq9/cc9wc3UEY8SvlKisCQh1gJWcpVfKmZ3IXnmGCgBBgo7ioprRuB+uX3v7y+t+edw2QOJWMQsBTZSictjQyrrfDEqFzFVoFy5+RVcxHAFJijyPUXEWcR/7pYbdMa2hpICWBMKgFbUik/x8CwWAEuLxXivFxFyT/gFBksHBQeVxFrXmy1QuGFjbTwiRMwtvskS6XSvc2u80TWa/WjQPGveHxEzApSPOU4i+v5qkBNHU1NYXIgTad5ij9ZgV13ysChQJkbKhczHtOCR+yLul4VZImvO2UZ+v/9v6k0rcRKyYVF1wEnJRVwDHadF3fkJZkmZeBK/lO5mPGYGh6x14tFy2I1mtJ9uuM4Q2wb22S1F35psEsveJT8DYpczTXKxHmqpcHKjcelHWyYTtE+qxmBVdI2tpivAmzkpeWXWjr7T9MtnXlvC48rz01C4v705OBV+a8zLSt+IhRe+BxtMIXZzmTEo2+FL79UUc5fqqTkzw2Bx1mOvX5tpOei3Kdk9p36uHv12r1JTdMjrNdB3jCUq36q3O8/VVLuD7JKbZTFm9+OFArZzIW+AxfZErsEjDk48H1uxepdB4OhBTuox0EGxWGOYkp7DMpd/KFKXKVKKuuLfpZq1t/ijvDVS13HbTslYiz2Aoul7u/zZ774tumB15/RdDPGph4ZFIPNcapFwV+6mRaFMIOjlg0XnJjrKqdPfniSgTLV0uA+iXO+b//Y4saWz+oWPPgGbSryqYc7imp+8qdutvmJwzKfYu6OwEDflz9mUsNiwzjDNo+dUltlR1uz6xi1jz3dvmdedGmL1FY5wVoWKmmrVFPR7MprCqqkrbKawVJqqxwdOd7728+v/MKa4IYBXCIGLNH85AY8c+zwjk8efbKtPhy5a02ZLWzVsO0/3ZKG7cRE37nuzl1HBQusn0n04051yrmukLPzk/HOH7bs29jy+aux2hUbpPMm6iiIP/Wfj4KMjvSc6u58rdMp2jbFNkHOkqRZpBTXqe7+jrZmnZ7MpW3R6rV7W+9e+tSzhhmOsENmKTYNWWynUh0yuzOq5JCZyRYm3FkiBTuTHug/cOxs70f9FMMcTTnuadMrdD17Ayy4DoxBLuIC0xCNLVuycs2bj9c3rHvIMIIhqefFkuotvKKrYJkdybBMd3x1qkJbKOSyVy939Z7+44OTmdRwlvXaJqgPe4RA8WzYFiqSc5TexGRioHji6O6DphnpXHbfjpX1DeuWRaJLFgUCNTHdCIY0TXcqPBivgLn18kpsITuL4xS1YiGXtax4Ij3554VrV7oHL/R/PWjbKbGStVn/9Rhr2s+weF5/Efn4akdbs0iOxHpcLKuqWSOMKVGsNDfE3d9my+MkOwKULHfITEM46vVXCgiC0rpcADPV48CgUfK3eNNTnvITvupJsi898Dy+Wu4rNxw2j4lKXorsKcx2pk3W96KA8a8cFlNemc1ItTNbnnq4Zvp+liJLYgUwAbbVrUCZO+LAiJ5rufwxbW45EyxgLyCozEpNUFCwzAkJEHi/Ne9Hml4A/gbC9oSiXt4ibgAAAABJRU5ErkJggg==)}.user-rank .list{box-sizing:border-box;padding:0 1vw .26042rem 1vw;height:34vh}.transactionUsers{position:absolute;width:100%;height:40vh;top:5vh}.img-cls,.img-cls[data-v-dbba327f]{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.users[data-v-dbba327f]{margin-top:4.5vh;position:absolute;width:98%;height:35vh;box-sizing:border-box;overflow:hidden;position:relative;z-index:9999}.center[data-v-dbba327f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.box-item[data-v-700edb1e]{position:relative;height:.41667rem;font-size:.28125rem;line-height:.21354rem;text-align:center;list-style:none;color:#fff;writing-mode:vertical-lr;text-orientation:upright;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.mark-item[data-v-700edb1e]{width:.05208rem;height:.52083rem;margin-right:.02604rem;line-height:.05208rem;font-size:.25rem;position:relative}.mark-item>span[data-v-700edb1e]{position:absolute;width:100%;bottom:0;writing-mode:vertical-rl;text-orientation:upright}.number-item[data-v-700edb1e]{width:.21354rem;height:.39063rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABICAYAAAC0hqYWAAALaklEQVRoge1bTa4tNxGusvsmj6UwYwVMGBE2QEaZMc2KAvtggIRYAjMkWABSpAyCkrzbdqEqV9mf3e5z7g0IIYSj+07/uN3189VXVT4n/PlfvxPywfoh9I9y8K/8krBQIZGYI6nKSZvBQrJcXc8fDV7v1cTHdIGJhTnrYSr1TyCxjYRLiEmuf+sizNtjlNpeNAnEtj5drq3PP1fC1m9KyGa+ytwfeP0kfcZCYW0m8Zc24STuVaZM3C7yjXfeOFApcQUynE8Cs0ipbuCS089tUqIjn/IHcovFVLVoKHa1evNEv36Hm8Ur9MALukTFpVKVon/LTPsP36cK2B8gJwnRt8L0bVt8KCPqXu4WUgFzX7oveIXAnX5Pztexgc/6rnnK8fHT/IUFNFFun2GsjvlE0kLHvNICnzsR7KRmtcjlrQKfsX5iMa/YAGjFU7xaQT1hyHeDa0ioA5J5pVmbxye/gCXQKwcEe/tkZpyzNdcIfDyf5rgS43oowZzDG6HEvI4FbE7EBqGjL+JxPMVLw6gvbMFuxxr4dUBuK+AypiBWyr7EFHcZBlMxZZnfcxnJBeaYLN1yGNztQ66CchIqyijgFXmSQ6Z7W2V2dGtzXI4uszrBZDZoqRIvwPkdYjtX0xz4oTOrMpNdf+yAxBpKYCxOSpCzmUJLWi5hZygVN3U4DdcedjwgxgivReRHSkz3ZAUV3tsnvmNjSJunriGR9qnSi4i0S5R4k5hg0czExR/Q4xqlzAqXKF9qMpaSOBclG7Z3QeWwUWAOcg7YK+sZtJiPRGQ4G1Zwy69eGWuAVx4MFDhGqiMBNoqWCnT+aLX+T4dUU+KQBq/jUHex+ViK3lCMiuaU8AZbHkHKXQNZF2peUSascu6C98mId015o3miI2BNvqYAeTZIRJ21IniGN1rmT53HDZu8dT8ttddOGYXWVBkwH3Oe4oR5A7zR53dvNPRQU4aOBAIqjWUIfHIOlg61f9O4qcd2prkcDCWGUVRuPcnumeTidtxBsRax0vOKLrjS8Fp7eanSY2Ij6YBpxMxu0iYZAkEYeizqKTxBDNm8vxeLxVFqNAHZhe+TtZeQOecw9irjk9MQ40LLOeIjID/9teriMAQ1NB3JT46p3hrxMrwS5fS+XFh6h2tmj2vj06y/KGDwZszicO9wWGG2P4IElH7zYu2YnPGzycDonaHE0jX+CNba1jSLN+Jt6o0McunIyXsSYy+BZINlgMfNzFZQSF6UA8VWSI3rbpQnJUnMFZ4YL4JcE6VBecSIZ0lTiBukbow3VaYXozptz0/s+/wH76AVdn4lL0FOHsPZXadFrKQBTGPdvHh8aooWDfTZCtsxPGYqGQ1FlQwwhsT7kN4mXMqRtXi1ID9aHLOjaBSNQcPIOPFgLGrEIGk0XR1eI8/0xvDqscUr8J6p13kwEMo9Rho55cgfmGQQXofETsuTAPaMvBGeL22ASzJ07r217qHNcQ9r7mrlntsigBKWJ2sJPZ3LqIixlGj9yEhofj6E8mSHPXq/jr1Mo/hDvKqFAjFkxPTQZU8eQJkGteZhzd57DKvwmuVnenwT7w7vyHU+h7LYrAXMsbrIULXnBIKA4E2hXXNzL9yaSzhNJcs4Z/Mq1G/XrZ7H20VTDvG4SoizJU722L5gdcaw4LwLjKDhGs0VCsWwAkM2ZxmwyhAfwbrHzPe0LT2CHjG3AJykSsfx1IQxRT31YNy0tDv22sVtrM/8y2/es2n+3zueWuz/ivyHx/+MIsfXf6ff1UqvtdDHUuiHWuiHUuhVr5VCZy3ts5x2reqxprDTz2uhKpXqeVrFansittWo9ypJSpREd1S0GCtUU7Zziuv5oORft9BxtG2pnCn7MedEOWXKOdORD/t7SYkO/TsO+pAP+iQlern3yA0HMNCxHqe2oUAq4DzxX+vxZS1XlxHvjfEuaMmu89sJjNVt28vqz6pX4jyUd49FfiGfVy5t4oOxVYRbbXPNhGtzJAaxM6zPmRJ6hqNpXZ7LPieU2hqppcY35wZURKDIkP7PGyBiEPN5Jpwfp2SFC4fFtbI7XujQ2LkIElB58DbmewTFjSb4sjy3Xca5rI5zGQKI+KO9MCfJAzaToKVQiTXCe6EsvkcD/l6lvSL4fYa9V1pfoPguKIwJvImTUNY801hJisMmYFUr7fesZKyLa6vC71UkAvJNeExsneLklRBAPxVaILzAPcJnyGEYcaIes+ceSCHSqP5WEZxIvoMR6WC77sYraHFT6KSCjKUshMGNIxRHj6RE+RbWIFh11KTwbsVvhdzetVmgBMRC4NXt07euckPJMbjPk6Bg9ZyuacZobMm1TAad3zW8HNAvyU96CHcl0MIQJniNFiyXsz3jGZ23yVP8bf7Gck4GFNoJv2E5lRvnWWBSs05YHvrsfXBPjNK+gyePDXzRJcCn843Xdky1g5OHQChZRGbWEqdRMdy1dnRsWG+UAgtOAd9lZW9r8bx36229fAzhzbvD9dO7akDcZVz0rckmAAUDK4ixxAiqGi/YMUAUgyD0pf6y8+XZlQB2FK8ybbM8tNLJN2QqUHCwlTLNWav9DXreWH7njVJIzlcPYL+n8bBm9R10oR67KFEdSkpOnoN0zZLGeo69Fd8yxUy8qNB7ktZG6e20uPekKBKZiUg/kgfLGQtVoFtpPylI4W6EV7caWgKGslZPcrEV4cy1zlVP4TVLup57ulyFSql0irOejJgxNKXOxdWUCXx2+S40vMnm5HBAZbVE0WO/JpHla2u47qveO0/L5XTKfRYj2v1RsJWeV8vCZ8QPgsM6xFYUbou6R8lwXyaMsj7qrm6Y6Djn/qY4aqozHzVoeUKsSw7ZFnMr1v1cgzpK9bXeCnhFjtHzvHaTD8aU4cEQEdOmmGZ2YKRw++mPSAVvBBzME9dyvyuHdZMaozjk3DBxPhlCr52vLU6xzLdjz2JLfFp8SNhbY4Q8V7i7Tn9ZAQbrZYPe045Q75eTzhUp4Y0VTmt+uSvpYz6aXeuusgQ9GsrJqtVaylqR1bFMqZ5pq+MxFp/yxbkUkA/o9YHwsmuj43VxLSrdyCUBKxKvtfxGRW8446zZXBASu6G0u5Qp98NLmLVDLLPVp/isZVQimBxTZEbfrxqVcHtBCm/oAgorwCpFrcSwNeM0iwXeFTI+b/XmOiL3YAMnI2Yjs1vApwqc7ZavUX9FeeBV2pQEO026QM88tSoBWZxlqSICGegdJIEJvq7cIVH1eu6oLnw9vU5q/ffZqRgCdc3IxWmX+T5n3F2/mastgv2MSn+tEOwVjZd9Bq2rAuWkjx4jk12nSlecetlYpK5KoKDeJV6EWuet+US3XXEDb127QE7p5BQeKQ1rw+rB0w1a/Xp37QKhtf94j8XdQE+rYX23GjG8Atm/f8eowXxGx+W5pE/qE9cyQeaeJEr0dytxo1B4U8lFFoREPHqw9+SYol6BjFmrU3G4rgyF2g8Q37D7eAO76Wq52VVZ5pRLszWKzxIoSl6Znj35jX44cgatjHTb1r5zLDvu41cNcjWExg7kl8t+gkGL5kSDTdVUUu9683LO+1XPOsfVK+d5bXXXnRWIz46cuFcb2xb+9d/a/5r0x798+I16w4WyXXYP9mj4g24FO8joQyLQ13LjrmRBitZj3ITQoZvdyHy65tG+6MnxRYEe/+Kn3/9WcKcxlFCWsq8KBu1GGxwl/bSpoMfr/tU2cS1Wx97dEuBpaQD3yMoKsfDWWXpHO76nji/MwxMYF3c9efQbuHe7E3y7I/LG7P+wc5TRq8c9/lyhhdm50te///OHL90qVqpHr0AjEEdZAl4AqEw78Lu93R05HC8zvHROQM5/Z8SaTz772fdfJaKf4A9Zpt+AxHWMC4DJUPaNpfuTtvdSuuu6GCs7b25RQkT/BNMAnR4Bsw9cAAAAAElFTkSuQmCC) no-repeat center center;list-style:none;margin-right:.02604rem;border-radius:.02083rem}.number-item>span[data-v-700edb1e]{position:relative;display:inline-block;margin-right:.05208rem;width:100%;height:100%;writing-mode:vertical-rl;text-orientation:upright;overflow:hidden}.number-item>span>i[data-v-700edb1e]{font-style:normal;position:absolute;top:.05729rem;left:50%;transform:translate(-50%);transition:transform 1s ease-in-out;letter-spacing:.05208rem}.number-item[data-v-700edb1e]:last-child{margin-right:0}.product-list{height:70%;display:flex;justify-content:space-between;position:relative}.product-list .product{height:100%;width:32%;position:relative}.product-list .product .bg{display:flex;justify-content:space-around;position:absolute;height:100%;width:100%}.product-list .product .product-content{color:#fff;text-align:center;font-size:12PX}.product-list .product-icon{width:2vw;height:2vw;position:absolute;animation:jump 1s infinite;top:2vh}.Views{margin-top:2%;height:25%;width:100%;box-sizing:border-box;position:relative;color:#fff;font-size:.0625rem}.Views .view-content{display:flex;height:100%;width:100%;align-items:center;justify-content:space-around}.bubble{width:.02604rem;height:.02604rem;background-color:#fff;position:absolute;border-radius:50%;top:7vh;animation-name:bubbleAnimation;animation-duration:1s;animation-iteration-count:infinite}.bubble1{width:.02604rem;height:.02604rem;background-color:#fff;position:absolute;border-radius:50%;top:7vh;left:6.5vw;animation-name:bubbleAnimation;animation-duration:1.5s;animation-iteration-count:infinite}.bubble2{width:.02604rem;height:.02604rem;background-color:#fff;position:absolute;border-radius:50%;top:7vh;left:8.5vw;animation-name:bubbleAnimation;animation-duration:1.25s;animation-iteration-count:infinite}@keyframes bubbleAnimation{0%{top:7vh;transform:scale(0)}25%{top:6.5vh;opacity:1;transform:scale(.55)}50%{top:6vh;opacity:1;transform:scale(.5)}75%{transform:scale(1);top:5vh;opacity:1}to{top:4vh;opacity:0}}@keyframes bubbleAnimation1{0%{top:7vh;transform:scale(0)}25%{top:6.5vh;opacity:1;transform:scale(.55)}50%{top:6vh;opacity:1;transform:scale(.5)}75%{transform:scale(1);top:5vh;opacity:1}to{top:4vh;opacity:0}}@keyframes bubbleAnimation2{0%{top:7vh;transform:scale(0)}25%{top:6.5vh;opacity:1;transform:scale(.55)}50%{top:6vh;opacity:1;transform:scale(.5)}75%{transform:scale(1);top:5vh;opacity:1}to{top:4vh;opacity:0}}@keyframes jump{0%{transform:translateY(0)}50%{transform:translateY(-.05208rem)}to{transform:translateY(0)}}.img-cls[data-v-25271912]{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.user[data-v-25271912]{position:absolute;width:98%;height:40vh}.img-cls[data-v-321316c4]{width:98%;height:45vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.order-data[data-v-321316c4]{width:100%;height:100%;box-sizing:border-box;padding-right:1vw;position:relative;overflow:hidden}.order-data #topRightDV[data-v-321316c4]{padding-top:5vh}.box[data-v-6c7a3382]{width:100vw;height:47vh;box-sizing:border-box}.top[data-v-6c7a3382]{display:flex;padding-top:1vh;justify-content:space-between}.top .l[data-v-6c7a3382]{width:25vw;height:46vh;overflow:hidden;box-sizing:border-box;position:relative;padding-top:6vh}.top .c[data-v-6c7a3382]{box-sizing:border-box;width:48vw;height:100%;display:flex;flex-direction:column;justify-content:space-between}.top .r[data-v-6c7a3382]{width:25vw;height:46vh;position:relative}.bottom[data-v-6c7a3382]{display:flex;padding-top:1vh;justify-content:space-between}.bottom .l[data-v-6c7a3382]{width:25VW;height:46vh;position:relative}.bottom .c[data-v-6c7a3382]{width:48VW;height:46vh;position:relative}.bottom .r[data-v-6c7a3382]{width:25VW;height:46vh;position:relative}.center[data-v-6c7a3382]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.progress-bar[data-v-6c7a3382]{transform:translateY(.0625rem);width:100%;height:.05208rem;background-color:#122e3f;overflow:hidden}.progress[data-v-6c7a3382]{width:70%;height:100%;background:linear-gradient(to right,#455CCC,#51C2E0);transition:width .5s ease-in-out}.center[data-v-6c7a3382]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff} diff --git a/yusi/index.html b/yusi/index.html index 5a003c3..4ec9a01 100644 --- a/yusi/index.html +++ b/yusi/index.html @@ -5,7 +5,7 @@ Vite + Vue - +