System.register(["./echarts-legacy-BoTEinQo.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785"],(function(e,t){"use strict";var n,i,u,a,r,l,o,s,c,d,g,p,v,y,f,m,h,w,b,j,x,B,S,_,k,z;return{setters:[e=>{n=e.e,i=e.u,u=e.i,a=e.a,r=e.b,l=e.c,o=e.d,s=e.f,c=e.g,d=e.h,g=e.j,p=e.k,v=e.l,y=e.m},e=>{f=e.f},e=>{m=e.k,h=e.r,w=e.w,b=e.o,j=e.n,x=e.b,B=e.$,S=e.Z,_=e.H,k=e.S},e=>{z=e.b1}],execute:function(){i([u,a,r,l,o,s,c,d,g,p,v,y]),e("_",m({__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){const t=e,i=h(null);function u(){if(null===i.value)return;let e=n.getInstanceByDom(i.value);null==e&&(e=n.init(i.value)),e.setOption(t.option,!0)}w((()=>t.option),(e=>{e&&j((()=>{u()}))}),{immediate:!0,deep:!0});const a=z((function(){null!==i.value&&n.getInstanceByDom(i.value)?.resize()}),300,{maxWait:800});return b((()=>{j((()=>{u(),window.addEventListener("resize",a)}))})),x((()=>{i.value&&(n.getInstanceByDom(i.value)?.dispose(),window.removeEventListener("resize",a))})),(t,n)=>(B(),S("div",{ref_key:"chartRef",ref:i,style:_({width:k(f)(e.width),height:k(f)(e.height)})},null,4))}}))}}}));
