System.register(["./echarts-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434"],function(e,t){"use strict";var n,a,i,l,u,o,r,s,c,d,p,m,g,v,y,f,h,j,w,_,B,b,x,I,k,z;return{setters:[e=>{n=e.ac,a=e.B,i=e.ad,l=e.ae,u=e.af,o=e.ag,r=e.ah,s=e.ai,c=e.aj,d=e.ak,p=e.av,m=e.an,g=e.ao,v=e.ap},e=>{y=e.d3},e=>{f=e.k,h=e.r,j=e.w,w=e.o,_=e.n,B=e.ap,b=e.b,x=e.R,I=e.V,k=e.I,z=e.U},null,null],execute:function(){a([i,l,u,o,r,s,c,d,p,m,g,v]),e("default",f({__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,a=h(null);function i(){if(null===a.value)return;let e=n.getInstanceByDom(a.value);null==e&&(e=n.init(a.value)),e.setOption(t.option,!0)}j(()=>t.option,e=>{e&&_(()=>{i()})},{immediate:!0,deep:!0});const l=B(function(){null!==a.value&&n.getInstanceByDom(a.value)?.resize()},300,{maxWait:800});return w(()=>{_(()=>{i(),window.addEventListener("resize",l)})}),b(()=>{a.value&&(n.getInstanceByDom(a.value)?.dispose(),window.removeEventListener("resize",l))}),(t,n)=>(I(),x("div",{ref_key:"chartRef",ref:a,style:k({width:z(y)(e.width),height:z(y)(e.height)})},null,4))}}))}}});
