UNPKG

trap-ui

Version:

基于elementPlus表格进行二次封装的组件库

14 lines (12 loc) 690 kB
(function(fe,T){typeof exports=="object"&&typeof module!="undefined"?T(exports,require("vue"),require("axios"),require("element-plus"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","axios","element-plus","@popperjs/core"],T):(fe=typeof globalThis!="undefined"?globalThis:fe||self,T(fe.TrapUI={},fe.Vue,fe.axios,fe.ElementPlus,fe["@popperjs/core"]))})(this,function(fe,T,we,Ir,So){"use strict";var AN=Object.defineProperty,MN=Object.defineProperties;var EN=Object.getOwnPropertyDescriptors;var HS=Object.getOwnPropertySymbols;var LN=Object.prototype.hasOwnProperty,IN=Object.prototype.propertyIsEnumerable;var US=fe=>{throw TypeError(fe)};var WS=(fe,T,we)=>T in fe?AN(fe,T,{enumerable:!0,configurable:!0,writable:!0,value:we}):fe[T]=we,Ye=(fe,T)=>{for(var we in T||(T={}))LN.call(T,we)&&WS(fe,we,T[we]);if(HS)for(var we of HS(T))IN.call(T,we)&&WS(fe,we,T[we]);return fe},_o=(fe,T)=>MN(fe,EN(T));var YS=(fe,T,we)=>T.has(fe)||US("Cannot "+we);var Qa=(fe,T,we)=>(YS(fe,T,"read from private field"),we?we.call(fe):T.get(fe)),_v=(fe,T,we)=>T.has(fe)?US("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(fe):T.set(fe,we),$S=(fe,T,we,Ir)=>(YS(fe,T,"write to private field"),Ir?Ir.call(fe,we):T.set(fe,we),we);var ja=(fe,T,we)=>new Promise((Ir,So)=>{var Ja=dr=>{try{ei(we.next(dr))}catch(J){So(J)}},H=dr=>{try{ei(we.throw(dr))}catch(J){So(J)}},ei=dr=>dr.done?Ir(dr.value):Promise.resolve(dr.value).then(Ja,H);ei((we=we.apply(fe,T)).next())});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Qn,go;var Ja=function(r,e){return Ja=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},Ja(r,e)};function H(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ja(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ei=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),dr=function(){function r(){this.browser=new ei,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),J=new dr;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(J.wxa=!0,J.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?J.worker=!0:!J.hasGlobalWindow||"Deno"in window?(J.node=!0,J.svgSupported=!0):XS(navigator.userAgent,J);function XS(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Kl=12,ZS="sans-serif",an=Kl+"px "+ZS,qS=20,KS=100,QS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jS(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-qS)/KS;e[n]=a}return e}var JS=jS(QS),jn={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var a=jn.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||an),r.measureText(t);t=t||"",n=n||an;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||Kl,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=JS[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},Sv=kr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),bv=kr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Jn=Object.prototype.toString,bo=Array.prototype,eb=bo.forEach,tb=bo.filter,Ql=bo.slice,rb=bo.map,wv=function(){}.constructor,wo=wv?wv.prototype:null,jl="__proto__",nb=2311;function xv(){return nb++}function Pr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,r)}function oe(r){if(r==null||typeof r!="object")return r;var e=r,t=Jn.call(r);if(t==="[object Array]"){if(!ri(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=oe(r[n])}}else if(bv[t]){if(!ri(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!Sv[t]&&!ri(r)&&!on(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==jl&&(e[o]=oe(r[o]))}return e}function se(r,e,t){if(!j(e)||!j(r))return t?oe(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==jl){var a=r[n],i=e[n];j(i)&&j(a)&&!$(i)&&!$(a)&&!on(i)&&!on(a)&&!Tv(i)&&!Tv(a)&&!ri(i)&&!ri(a)?se(a,i,t):(t||!(n in r))&&(r[n]=oe(e[n]))}return r}function ab(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=se(t,r[n],e);return t}function W(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==jl&&(r[t]=e[t]);return r}function le(r,e,t){for(var n=Ee(e),a=0,i=n.length;a<i;a++){var o=n[a];r[o]==null&&(r[o]=e[o])}return r}function ve(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function ib(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function Ot(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&r[i]==null&&(r[i]=e[i])}else le(r,e)}function je(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function E(r,e,t){if(r&&e)if(r.forEach&&r.forEach===eb)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function X(r,e,t){if(!r)return[];if(!e)return Jl(r);if(r.map&&r.map===rb)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function kr(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function Me(r,e,t){if(!r)return[];if(!e)return Jl(r);if(r.filter&&r.filter===tb)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function Ee(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function ob(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(Ql.call(arguments)))}}var Ce=wo&&Q(wo.bind)?wo.call.bind(wo.bind):ob;function ue(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Ql.call(arguments)))}}function $(r){return Array.isArray?Array.isArray(r):Jn.call(r)==="[object Array]"}function Q(r){return typeof r=="function"}function K(r){return typeof r=="string"}function xo(r){return Jn.call(r)==="[object String]"}function Se(r){return typeof r=="number"}function j(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Tv(r){return!!Sv[Jn.call(r)]}function Je(r){return!!bv[Jn.call(r)]}function on(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function To(r){return r.colorStops!=null}function sb(r){return r.image!=null}function Cv(r){return Jn.call(r)==="[object RegExp]"}function ti(r){return r!==r}function _t(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function ie(r,e){return r!=null?r:e}function sn(r,e,t){return r!=null?r:e!=null?e:t}function Jl(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Ql.apply(r,e)}function Dv(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function te(r,e){if(!r)throw new Error(e)}function Xt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Av="__ec_primitive__";function Co(r){r[Av]=!0}function ri(r){return r[Av]}var lb=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Ee(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r}(),Mv=typeof Map=="function";function ub(){return Mv?new Map:new lb}var fb=function(){function r(e){var t=$(e);this.data=ub();var n=this;e instanceof r?e.each(a):e&&E(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return Mv?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function re(r){return new fb(r)}function hb(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function Do(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&W(t,e),t}function Ev(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Zt(r,e){return r.hasOwnProperty(e)}function et(){}var cb=180/Math.PI;function ea(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function vb(r){return[r[0],r[1]]}function Lv(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Iv(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function db(r){return Math.sqrt(pb(r))}function pb(r){return r[0]*r[0]+r[1]*r[1]}function eu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function tu(r,e){var t=db(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function ru(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var nu=ru;function gb(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ta=gb;function Ao(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function St(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function ra(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function na(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var aa=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),mb=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new aa(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new aa(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new aa(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new aa(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new aa(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new aa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),Rt=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}(),yb=Math.log(2);function au(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/yb);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&a||(h+=(c%2?-1:1)*r[t][v]*au(r,e-1,f,u,a|d,i),c++)}return i[o]=h,h}function Pv(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=au(t,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*au(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var kv="___zrEVENTSAVED",iu=[];function _b(r,e,t,n,a){return ou(iu,e,n,a,!0)&&ou(r,t,iu[0],iu[1])}function ou(r,e,t,n,a){if(e.getBoundingClientRect&&J.domSupported&&!Nv(e)){var i=e[kv]||(e[kv]={}),o=Sb(e,i),s=bb(o,i,a);if(s)return s(r,t,n),!0}return!1}function Sb(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function bb(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?Pv(s,o):Pv(o,s))}function Nv(r){return r.nodeName.toUpperCase()==="CANVAS"}var wb=/([&<>"'])/g,xb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function lt(r){return r==null?"":(r+"").replace(wb,function(e,t){return xb[t]})}var Tb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,su=[],Cb=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function lu(r,e,t,n){return t=t||{},n?Ov(r,e,t):Cb&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Ov(r,e,t),t}function Ov(r,e,t){if(J.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Nv(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(ou(su,r,n,a)){t.zrX=su[0],t.zrY=su[1];return}}t.zrX=t.zrY=0}function uu(r){return r||window.event}function bt(r,e,t){if(e=uu(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&lu(r,o,e,t)}else{lu(r,e,e,t);var i=Db(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Tb.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Db(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function fu(r,e,t,n){r.addEventListener(e,t,n)}function Ab(r,e,t,n){r.removeEventListener(e,t,n)}var Rv=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},Mb=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=lu(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hu)if(hu.hasOwnProperty(t)){var n=hu[t](this._track,e);if(n)return n}},r}();function Bv(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function Eb(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hu={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Bv(n)/Bv(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Eb(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function ia(){return[1,0,0,1,0,0]}function cu(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Lb(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function oa(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function vu(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function du(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=a*h+s*f,r[1]=-a*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function Ib(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function Mo(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}var ee=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r}(),Eo=Math.min,Lo=Math.max,ln=new ee,un=new ee,fn=new ee,hn=new ee,ni=new ee,ai=new ee,me=function(){function r(e,t,n,a){n<0&&(e=e+n,n=-n),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=n,this.height=a}return r.prototype.union=function(e){var t=Eo(e.x,this.x),n=Eo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lo(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lo(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,a=e.height/t.height,i=ia();return vu(i,i,[-t.x,-t.y]),Ib(i,i,[n,a]),vu(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<a||s<f||h<o);if(t){var c=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(p,g),S=Math.min(m,y);i<l||u<a?_>d&&(d=_,p<g?ee.set(ai,-p,0):ee.set(ai,g,0)):_<c&&(c=_,p<g?ee.set(ni,p,0):ee.set(ni,-g,0)),s<f||h<o?S>d&&(d=S,m<y?ee.set(ai,0,-m):ee.set(ai,0,y)):_<c&&(c=_,m<y?ee.set(ni,0,m):ee.set(ni,0,-y))}return t&&ee.copy(t,v?ni:ai),v},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ln.x=fn.x=t.x,ln.y=hn.y=t.y,un.x=hn.x=t.x+t.width,un.y=fn.y=t.y+t.height,ln.transform(n),hn.transform(n),un.transform(n),fn.transform(n),e.x=Eo(ln.x,un.x,fn.x,hn.x),e.y=Eo(ln.y,un.y,fn.y,hn.y);var l=Lo(ln.x,un.x,fn.x,hn.x),u=Lo(ln.y,un.y,fn.y,hn.y);e.width=l-e.x,e.height=u-e.y},r}(),Vv="silent";function Pb(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:kb}}function kb(){Rv(this.event)}var Nb=function(r){H(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Rt),ii=function(){function r(e,t){this.x=e,this.y=t}return r}(),Ob=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pu=new me(0,0,0,0),Fv=function(r){H(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new ii(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new Nb,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new mb(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(E(Ob,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=Gv(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new ii(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ii(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=Pb(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new ii(t,n);if(zv(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new me(t-u,n-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(pu.copy(v.getBoundingRect()),v.transform&&pu.applyTransform(v.transform),pu.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var m=0;m<p;m+=d){var y=t+g*Math.cos(m),_=n+g*Math.sin(m);if(zv(s,o,y,_,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new Mb);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new ii;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Rt);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Fv.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=Gv(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||nu(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function Rb(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?Vv:!0}return!1}function zv(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=Rb(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==Vv)){e.target=o;break}}}function Gv(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Hv=32,oi=7;function Bb(r){for(var e=0;r>=Hv;)e|=r&1,r>>=1;return r+e}function Wv(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;Vb(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function Vb(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function Uv(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function gu(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function mu(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function Fb(r,e){var t=oi,n,a,i=0,o=[];n=[],a=[];function s(c,d){n[i]=c,a[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&a[c-1]<=a[c]+a[c+1]||c>=2&&a[c-2]<=a[c]+a[c-1])a[c-1]<a[c+1]&&c--;else if(a[c]>a[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&a[c-1]<a[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=a[c],g=n[c+1],m=a[c+1];a[c]=p+m,c===i-3&&(n[c+1]=n[c+2],a[c+1]=a[c+2]),i--;var y=mu(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=gu(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?h(d,p,g,m):v(d,p,g,m)))}function h(c,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[c+m];var y=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y];return}for(var w=t,b,x,C;;){b=0,x=0,C=!1;do if(e(r[_],o[y])<0){if(r[S++]=r[_++],x++,b=0,--g===0){C=!0;break}}else if(r[S++]=o[y++],b++,x=0,--d===1){C=!0;break}while((b|x)<w);if(C)break;do{if(b=mu(r[_],o,y,d,0,e),b!==0){for(m=0;m<b;m++)r[S+m]=o[y+m];if(S+=b,y+=b,d-=b,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(x=gu(o[y],r,_,g,0,e),x!==0){for(m=0;m<x;m++)r[S+m]=r[_+m];if(S+=x,_+=x,g-=x,g===0){C=!0;break}}if(r[S++]=o[y++],--d===1){C=!0;break}w--}while(b>=oi||x>=oi);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function v(c,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=c+d-1,_=g-1,S=p+g-1,w=0,b=0;if(r[S--]=r[y--],--d===0){for(w=S-(g-1),m=0;m<g;m++)r[w+m]=o[m];return}if(g===1){for(S-=d,y-=d,b=S+1,w=y+1,m=d-1;m>=0;m--)r[b+m]=r[w+m];r[S]=o[_];return}for(var x=t;;){var C=0,D=0,A=!1;do if(e(o[_],r[y])<0){if(r[S--]=r[y--],C++,D=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],D++,C=0,--g===1){A=!0;break}while((C|D)<x);if(A)break;do{if(C=d-mu(o[_],r,c,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,b=S+1,w=y+1,m=C-1;m>=0;m--)r[b+m]=r[w+m];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(D=g-gu(r[y],o,0,g,g-1,e),D!==0){for(S-=D,_-=D,g-=D,b=S+1,w=_+1,m=0;m<D;m++)r[b+m]=o[w+m];if(g<=1){A=!0;break}}if(r[S--]=r[y--],--d===0){A=!0;break}x--}while(C>=oi||D>=oi);if(A)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),g===1){for(S-=d,y-=d,b=S+1,w=y+1,m=d-1;m>=0;m--)r[b+m]=r[w+m];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),m=0;m<g;m++)r[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Io(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<Hv){i=Wv(r,t,n,e),Uv(r,t,n,t+i,e);return}var o=Fb(r,e),s=Bb(a);do{if(i=Wv(r,t,n,e),i<s){var l=a;l>s&&(l=s),Uv(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var qt=1,Po=2,si=4,Yv=!1;function yu(){Yv||(Yv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $v(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var zb=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$v}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,Io(n,$v)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)t=null;else if(a){t?t=t.slice():t=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=qt),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(yu(),f.z=0),isNaN(f.z2)&&(yu(),f.z2=0),isNaN(f.zlevel)&&(yu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,n);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=ve(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),ko;ko=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var li={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-li.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?li.bounceIn(r*2)*.5:li.bounceOut(r*2-1)*.5+.5}},No=Math.pow,Nr=Math.sqrt,Xv=1e-8,Zv=1e-4,qv=Nr(3),Oo=1/3,Kt=ea(),wt=ea(),sa=ea();function Or(r){return r>-1e-8&&r<Xv}function Kv(r){return r>Xv||r<-1e-8}function ze(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function Qv(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function Ro(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Or(f)&&Or(h))if(Or(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(Or(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m)}else if(p>0){var y=Nr(p),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-No(-_,Oo):_=No(_,Oo),S<0?S=-No(-S,Oo):S=No(S,Oo);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Nr(f*f*f)),b=Math.acos(w)/3,x=Nr(f),C=Math.cos(b),d=(-s-2*x*C)/(3*o),m=(-s+x*(C+qv*Math.sin(b)))/(3*o),D=(-s+x*(C-qv*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m),D>=0&&D<=1&&(i[c++]=D)}}return c}function jv(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Or(o)){if(Kv(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Or(f))a[0]=-i/(2*o);else if(f>0){var h=Nr(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function Rr(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=n}function Jv(r,e,t,n,a,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,m;Kt[0]=l,Kt[1]=u;for(var y=0;y<1;y+=.05)wt[0]=ze(r,t,a,o,y),wt[1]=ze(e,n,i,s,y),g=ta(Kt,wt),g<c&&(h=y,c=g);c=1/0;for(var _=0;_<32&&!(v<Zv);_++)d=h-v,p=h+v,wt[0]=ze(r,t,a,o,d),wt[1]=ze(e,n,i,s,d),g=ta(wt,Kt),d>=0&&g<c?(h=d,c=g):(sa[0]=ze(r,t,a,o,p),sa[1]=ze(e,n,i,s,p),m=ta(sa,Kt),p<=1&&m<c?(h=p,c=m):v*=.5);return f&&(f[0]=ze(r,t,a,o,h),f[1]=ze(e,n,i,s,h)),Nr(c)}function Gb(r,e,t,n,a,i,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=ze(r,t,a,o,d),g=ze(e,n,i,s,d),m=p-u,y=g-f;h+=Math.sqrt(m*m+y*y),u=p,f=g}return h}function $e(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function ed(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function Hb(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Or(i)){if(Kv(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Or(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=Nr(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function td(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Bo(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function rd(r,e,t,n,a,i,o,s,l){var u,f=.005,h=1/0;Kt[0]=o,Kt[1]=s;for(var v=0;v<1;v+=.05){wt[0]=$e(r,t,a,v),wt[1]=$e(e,n,i,v);var c=ta(Kt,wt);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Zv);d++){var p=u-f,g=u+f;wt[0]=$e(r,t,a,p),wt[1]=$e(e,n,i,p);var c=ta(wt,Kt);if(p>=0&&c<h)u=p,h=c;else{sa[0]=$e(r,t,a,g),sa[1]=$e(e,n,i,g);var m=ta(sa,Kt);g<=1&&m<h?(u=g,h=m):f*=.5}}return l&&(l[0]=$e(r,t,a,u),l[1]=$e(e,n,i,u)),Nr(h)}function Wb(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=$e(r,t,a,v),d=$e(e,n,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var Ub=/cubic-bezier\(([0-9,\.e ]+)\)/;function nd(r){var e=r&&Ub.exec(r);if(e){var t=e[1].split(","),n=+Xt(t[0]),a=+Xt(t[1]),i=+Xt(t[2]),o=+Xt(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ro(0,n,i,1,l,s)&&ze(0,a,o,1,s[0])}}}var Yb=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||et,this.ondestroy=e.ondestroy||et,this.onrestart=e.onrestart||et,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:li[e]||nd(e)},r}(),ad=function(){function r(e){this.value=e}return r}(),$b=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new ad(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),ui=function(){function r(e){this._list=new $b,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new ad(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),id={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Br(r){return r=Math.round(r),r<0?0:r>255?255:r}function Vo(r){return r<0?0:r>1?1:r}function _u(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Br(parseFloat(e)/100*255):Br(parseInt(e,10))}function fi(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Vo(parseFloat(e)/100):Vo(parseFloat(e))}function Su(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Fo(r,e,t){return r+(e-r)*t}function xt(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function bu(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var od=new ui(20),zo=null;function la(r,e){zo&&bu(zo,e),zo=od.put(r,zo||e.slice())}function Qt(r,e){if(r){e=e||[];var t=od.get(r);if(t)return bu(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in id)return bu(e,id[n]),la(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){xt(e,0,0,0,1);return}return xt(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),la(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){xt(e,0,0,0,1);return}return xt(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),la(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xt(e,+u[0],+u[1],+u[2],1):xt(e,0,0,0,1);f=fi(u.pop());case"rgb":if(u.length>=3)return xt(e,_u(u[0]),_u(u[1]),_u(u[2]),u.length===3?f:fi(u[3])),la(r,e),e;xt(e,0,0,0,1);return;case"hsla":if(u.length!==4){xt(e,0,0,0,1);return}return u[3]=fi(u[3]),sd(u,e),la(r,e),e;case"hsl":if(u.length!==3){xt(e,0,0,0,1);return}return sd(u,e),la(r,e),e;default:return}}xt(e,0,0,0,1)}}function sd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=fi(r[1]),a=fi(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],xt(e,Br(Su(o,i,t+1/3)*255),Br(Su(o,i,t)*255),Br(Su(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function ld(r,e){var t=Qt(r);if(t){for(var n=0;n<3;n++)t[n]=t[n]*(1-e)|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return hi(t,t.length===4?"rgba":"rgb")}}function Xb(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=Qt(e[a]),s=Qt(e[i]),l=n-a,u=hi([Br(Fo(o[0],s[0],l)),Br(Fo(o[1],s[1],l)),Br(Fo(o[2],s[2],l)),Vo(Fo(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ud(r,e){var t=Qt(r);if(t&&e!=null)return t[3]=Vo(e),hi(t,"rgba")}function hi(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Go(r,e){var t=Qt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var