System.register(["./echarts-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509"],(function(e,t){"use strict";var n,a,l,i,u,o,s,r,c,d,g,m,p,y,v,h,f,w,j,_,b,x,B,I,z;return{setters:[e=>{n=e.a4,a=e.y,l=e.a6,i=e.a7,u=e.a8,o=e.a9,s=e.aa,r=e.ab,c=e.ac,d=e.al,g=e.af,m=e.ag,p=e.ah},e=>{y=e.bR},e=>{v=e.k,h=e.r,f=e.w,w=e.n,j=e.an,_=e.o,b=e.b,x=e.U,B=e.V,I=e.I,z=e.X},null,null],execute:function(){a([l,i,u,o,s,r,c,d,g,m,p]),e("default",v({__name:"index",props:{width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"200px"},dataZoom:{type:Boolean,default:!1},option:{type:Object,required:!0}},setup(e,{expose:t}){const a=e,l=h(null);let i=null;function u(){null!==l.value&&(i=n.getInstanceByDom(l.value),null==i&&(i=n.init(l.value)),i.setOption(a.option,!0))}f((()=>a.option),(e=>{e&&w((()=>{u()}))}),{immediate:!0,deep:!0});const o=j((function(){null!==l.value&&n.getInstanceByDom(l.value)?.resize()}),300,{maxWait:800});return _((()=>{u(),window.addEventListener("resize",o)})),b((()=>{l.value&&(n.getInstanceByDom(l.value)?.dispose(),window.removeEventListener("resize",o))})),t({getChart:()=>i}),(t,n)=>(x(),B("div",{ref_key:"chartRef",ref:l,style:I({width:z(y)(e.width),height:z(y)(e.height)})},null,4))}}))}}}));
