import{a as X,r as Y}from"./resize-detector.4e96b72b.js";import{t as ee,i as te}from"./echarts.8535e5a6.js";import{d as ne,s as z,G as T,a0 as re,b as y,f as ae,w as S,k as I,i as ie,E as oe,h as N,u as ue,n as se}from"./@vue.340249d8.js";var g=function(){return g=Object.assign||function(e){for(var r,n=1,l=arguments.length;n"u"||typeof customElements>"u")return _=!1;try{new Function("tag",`class EChartsElement extends HTMLElement { __dispose = null; disconnectedCallback() { if (this.__dispose) { this.__dispose(); this.__dispose = null; } } } if (customElements.get(tag) == null) { customElements.define(tag, EChartsElement); } `)(G)}catch{return _=!1}return _=!0}(),me="ecTheme",Oe="ecInitOptions",be="ecUpdateOptions",xe=ne({name:"echarts",props:g(g({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},fe),ge),emits:{},inheritAttrs:!1,setup:function(e,r){var n=r.attrs,l=z(),c=z(),t=z(),f=z(),j=T(me,null),O=T(Oe,null),E=T(be,null),v=re(e),w=v.autoresize,W=v.manualUpdate,Z=v.loading,$=v.loadingOptions,J=y(function(){return f.value||e.option||null}),B=y(function(){return e.theme||U(j,{})}),D=y(function(){return e.initOptions||U(O,{})}),R=y(function(){return e.updateOptions||U(E,{})}),K=y(function(){return function(s){var a={};for(var u in s)ve(u)||(a[u]=s[u]);return a}(n)}),Q=ae().proxy.$listeners;function C(s){if(c.value){var a=t.value=te(c.value,B.value,D.value);e.group&&(a.group=e.group);var u=Q;u||(u={},Object.keys(n).filter(function(o){return o.indexOf("on")===0&&o.length>2}).forEach(function(o){var i=o.charAt(2).toLowerCase()+o.slice(3);i.substring(i.length-4)==="Once"&&(i="~".concat(i.substring(0,i.length-4))),u[i]=n[o]})),Object.keys(u).forEach(function(o){var i=u[o];if(i){var p=o.toLowerCase();p.charAt(0)==="~"&&(p=p.substring(1),i.__once__=!0);var h=a;if(p.indexOf("zr:")===0&&(h=a.getZr(),p=p.substring(3)),i.__once__){delete i.__once__;var A=i;i=function(){for(var b=[],m=0;m