import{a as X,r as Y}from"./resize-detector.4e96b72b.js";import{i as ee,t as te}from"./echarts.5016c48c.js";import{d as ne,s as A,D as T,_ as re,b as y,f as ae,w as k,k as I,i as ie,C as oe,h as N,u as ue,n as se}from"./@vue.76ce7aa3.js";var g=function(){return g=Object.assign||function(e){for(var r,n=1,l=arguments.length;n"u"||typeof customElements>"u")return E=!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); } `)(W)}catch{return E=!1}return E=!0}(),me="ecTheme",Oe="ecInitOptions",be="ecUpdateOptions",je=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=A(),c=A(),t=A(),f=A(),x=T(me,null),O=T(Oe,null),_=T(be,null),v=re(e),w=v.autoresize,Z=v.manualUpdate,$=v.loading,G=v.loadingOptions,J=y(function(){return f.value||e.option||null}),U=y(function(){return e.theme||D(x,{})}),B=y(function(){return e.initOptions||D(O,{})}),R=y(function(){return e.updateOptions||D(_,{})}),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=ee(c.value,U.value,B.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 z=i;i=function(){for(var b=[],m=0;m