@chenpu17/cc-gw 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +5 -5
- package/src/web/dist/assets/{About-DockN9He.js → About-BCHV3wbt.js} +1 -1
- package/src/web/dist/assets/ApiKeys-Do48QVpZ.js +1 -0
- package/src/web/dist/assets/Dashboard-BizLDn_V.js +1 -0
- package/src/web/dist/assets/{DialogShell-BKB8x8Yv.js → DialogShell-CiIvBp8J.js} +1 -1
- package/src/web/dist/assets/EChart-VRAvk6sX.js +1 -0
- package/src/web/dist/assets/{Events-CmUNBQ-L.js → Events-DpPg8dt0.js} +1 -1
- package/src/web/dist/assets/{Help-Bo6GcOG7.js → Help-B9ewdIkl.js} +1 -1
- package/src/web/dist/assets/{Login-uKKAO1uN.js → Login-5O2Xtr5G.js} +1 -1
- package/src/web/dist/assets/{Logs-ChD1V5Mf.js → Logs-D29vlNyO.js} +1 -1
- package/src/web/dist/assets/{ModelManagement-DTlt9WMp.js → ModelManagement-CrmNhCAh.js} +1 -1
- package/src/web/dist/assets/{PageHeader-DWkUnwoU.js → PageHeader-CSF0BWul.js} +1 -1
- package/src/web/dist/assets/{PageSection-9-z2ysug.js → PageSection-Bp_SuEp0.js} +1 -1
- package/src/web/dist/assets/{PageState-5sxEzXut.js → PageState-BeXrzVEe.js} +1 -1
- package/src/web/dist/assets/{Profiler-DBeKtgDs.js → Profiler-Cwuq3cjV.js} +1 -1
- package/src/web/dist/assets/{Settings-YMHmPlBz.js → Settings-Q6TBItFQ.js} +1 -1
- package/src/web/dist/assets/{Skeleton-CvBK2w-C.js → Skeleton-8j6Dxod1.js} +1 -1
- package/src/web/dist/assets/{badge-tREH_88e.js → badge-BvMdmUqJ.js} +1 -1
- package/src/web/dist/assets/{card-yK3LQB_K.js → card-CjhYPqKk.js} +1 -1
- package/src/web/dist/assets/{charts-core-vuhzGmuT.js → charts-core-C-3-Lo7l.js} +1 -1
- package/src/web/dist/assets/{charts-engine-BJQRnjQ_.js → charts-engine-BI1CmRJo.js} +1 -1
- package/src/web/dist/assets/{charts-react-BeVWPrMt.js → charts-react-DJ_0LNAP.js} +1 -1
- package/src/web/dist/assets/{gateway-D-NOc-e6.js → gateway-B0gBBN92.js} +1 -1
- package/src/web/dist/assets/{i18n-CfLThlXq.js → i18n-C7VVFIdN.js} +1 -1
- package/src/web/dist/assets/index-BzuBtvAC.js +61 -0
- package/src/web/dist/assets/{input-CXrASgDm.js → input-BnFZKjRM.js} +1 -1
- package/src/web/dist/assets/{label-CzHv4dNP.js → label-i5-Lf72z.js} +1 -1
- package/src/web/dist/assets/{popover-C-WmNbKp.js → popover-EFz6sQ7C.js} +1 -1
- package/src/web/dist/assets/{query-D3IfCUhp.js → query-DxhDvnDC.js} +1 -1
- package/src/web/dist/assets/{radix-54BMi3RD.js → radix-CmyU-WBH.js} +1 -1
- package/src/web/dist/assets/{router-CmaL1NgV.js → router-D8u_RlVh.js} +1 -1
- package/src/web/dist/assets/{select-DH6I1mKJ.js → select-KdDvaKo4.js} +1 -1
- package/src/web/dist/assets/{switch-IXq8M3lq.js → switch-BVWWsjy3.js} +1 -1
- package/src/web/dist/assets/{useApiQuery-CCy5_Mc8.js → useApiQuery-fBWRSgFK.js} +1 -1
- package/src/web/dist/assets/{useAppMutation-COEUmNH4.js → useAppMutation-Cd6HN12q.js} +1 -1
- package/src/web/dist/assets/{vendor-CjJPKsTb.js → vendor-5iCEqDpV.js} +1 -1
- package/src/web/dist/index.html +6 -6
- package/src/web/dist/assets/ApiKeys-Fx_SaOSe.js +0 -1
- package/src/web/dist/assets/Dashboard-De61szKh.js +0 -1
- package/src/web/dist/assets/EChart-Dqa_Xbrn.js +0 -1
- package/src/web/dist/assets/index-BiTh8byX.js +0 -61
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as F}from"./vendor-CjJPKsTb.js";var Bo=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Ho=function(){function e(){this.browser=new Bo,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<"u"}return e}(),k=new Ho;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(k.wxa=!0,k.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?k.worker=!0:!k.hasGlobalWindow||"Deno"in window?(k.node=!0,k.svgSupported=!0):zo(navigator.userAgent,k);function zo(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var vn=12,ko="sans-serif",lr=vn+"px "+ko,No=20,Wo=100,Yo="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Go(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-No)/Wo;t[i]=n}return t}var Xo=Go(Yo),vr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,i){if(!e){var n=vr.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||lr),e.measureText(r);r=r||"",i=i||lr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||vn,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var h=0;h<r.length;h++){var f=Xo[r[h]];s+=f==null?o:f*o}return{width:s}}}(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}};function Ou(e){for(var t in vr)e[t]&&(vr[t]=e[t])}var Ea=fe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Ia=fe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Br=Object.prototype.toString,je=Array.prototype,qo=je.forEach,$o=je.filter,cn=je.slice,Zo=je.map,Pn=(function(){}).constructor,pe=Pn?Pn.prototype:null,dn="__proto__",Uo=2311;function pn(){return Uo++}function ti(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function cr(e){if(e==null||typeof e!="object")return e;var t=e,r=Br.call(e);if(r==="[object Array]"){if(!Ar(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=cr(e[i])}}else if(Ia[r]){if(!Ar(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!Ea[r]&&!Ar(e)&&!Ge(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==dn&&(t[o]=cr(e[o]))}return t}function tr(e,t,r){if(!Dt(t)||!Dt(e))return r?cr(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==dn){var n=e[i],a=t[i];Dt(a)&&Dt(n)&&!Or(a)&&!Or(n)&&!Ge(a)&&!Ge(n)&&!Wi(a)&&!Wi(n)&&!Ar(a)&&!Ar(n)?tr(n,a,r):(r||!(i in e))&&(e[i]=cr(t[i]))}return e}function Vo(e,t){for(var r=e[0],i=1,n=e.length;i<n;i++)r=tr(r,e[i],t);return r}function H(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==dn&&(e[r]=t[r]);return e}function Ht(e,t,r){for(var i=tt(t),n=0,a=i.length;n<a;n++){var o=i[n];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var Qo=vr.createCanvas;function dt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function Ko(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function _n(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Ht(e,t,r)}function _t(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function j(e,t,r){if(e&&t)if(e.forEach&&e.forEach===qo)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function dr(e,t,r){if(!e)return[];if(!t)return gn(e);if(e.map&&e.map===Zo)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function fe(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function Ni(e,t,r){if(!e)return[];if(!t)return gn(e);if(e.filter&&e.filter===$o)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function Jo(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function tt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function jo(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(cn.call(arguments)))}}var ts=pe&&ue(pe.bind)?pe.call.bind(pe.bind):jo;function rs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(cn.call(arguments)))}}function Or(e){return Array.isArray?Array.isArray(e):Br.call(e)==="[object Array]"}function ue(e){return typeof e=="function"}function ie(e){return typeof e=="string"}function es(e){return Br.call(e)==="[object String]"}function jr(e){return typeof e=="number"}function Dt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Wi(e){return!!Ea[Br.call(e)]}function Oa(e){return!!Ia[Br.call(e)]}function Ge(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function le(e){return e.colorStops!=null}function Fa(e){return e.image!=null}function is(e){return Br.call(e)==="[object RegExp]"}function Ba(e){return e!==e}function ns(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function J(e,t){return e??t}function te(e,t,r){return e??t??r}function gn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return cn.apply(e,t)}function Ha(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function as(e,t){if(!e)throw new Error(t)}function Mr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var za="__ec_primitive__";function os(e){e[za]=!0}function Ar(e){return e[za]}var ss=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return tt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e}(),ka=typeof Map=="function";function hs(){return ka?new Map:new ss}var Na=function(){function e(t){var r=Or(t);this.data=hs();var i=this;t instanceof e?t.each(n):t&&j(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return ka?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function fs(e){return new Na(e)}function us(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function ve(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&H(r,t),r}function yn(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ls(e,t){return e.hasOwnProperty(t)}function or(){}var Wa=180/Math.PI;const Fu=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Na,RADIAN_TO_DEGREE:Wa,assert:as,bind:ts,clone:cr,concatArray:us,createCanvas:Qo,createHashMap:fs,createObject:ve,curry:rs,defaults:Ht,disableUserSelect:yn,each:j,eqNaN:Ba,extend:H,filter:Ni,find:Jo,guid:pn,hasOwn:ls,indexOf:dt,inherits:Ko,isArray:Or,isArrayLike:_t,isBuiltInObject:Wi,isDom:Ge,isFunction:ue,isGradientObject:le,isImagePatternObject:Fa,isNumber:jr,isObject:Dt,isPrimitive:Ar,isRegExp:is,isString:ie,isStringSafe:es,isTypedArray:Oa,keys:tt,logError:ti,map:dr,merge:tr,mergeAll:Vo,mixin:_n,noop:or,normalizeCssArray:Ha,reduce:fe,retrieve:ns,retrieve2:J,retrieve3:te,setAsPrimitive:os,slice:gn,trim:Mr},Symbol.toStringTag,{value:"Module"}));function pr(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function vs(e,t){return e[0]=t[0],e[1]=t[1],e}function Ya(e){return[e[0],e[1]]}function cs(e,t,r){return e[0]=t,e[1]=r,e}function Yi(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function ds(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e}function Ga(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function mn(e){return Math.sqrt(wn(e))}var ps=mn;function wn(e){return e[0]*e[0]+e[1]*e[1]}var _s=wn;function gs(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function ys(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function ms(e,t){return e[0]*t[0]+e[1]*t[1]}function Be(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Xa(e,t){var r=mn(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Xe(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var qa=Xe;function $a(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var sr=$a;function ws(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Ts(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function Er(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function rr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function er(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const Bu=Object.freeze(Object.defineProperty({__proto__:null,add:Yi,applyTransform:Er,clone:Ya,copy:vs,create:pr,dist:qa,distSquare:sr,distance:Xe,distanceSquare:$a,div:ys,dot:ms,len:mn,lenSquare:wn,length:ps,lengthSquare:_s,lerp:Ts,max:er,min:rr,mul:gs,negate:ws,normalize:Xa,scale:Be,scaleAndAdd:ds,set:cs,sub:Ga},Symbol.toStringTag,{value:"Module"}));var yr=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),bs=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new yr(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new yr(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,h=this._dropTarget;this._dropTarget=s,r!==s&&(h&&s!==h&&this.handler.dispatchToElement(new yr(h,t),"dragleave",t.event),s&&s!==h&&this.handler.dispatchToElement(new yr(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new yr(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new yr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Hr=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var h={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},f=a[t].length-1,u=a[t][f];return u&&u.callAtLast?a[t].splice(f,0,h):a[t].push(h),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,h=0;h<s;h++){var f=n[h];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(f.ctx);break;case 1:f.h.call(f.ctx,r[0]);break;case 2:f.h.call(f.ctx,r[0],r[1]);break;default:f.h.apply(f.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],h=n.length,f=0;f<h;f++){var u=n[f];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,r[0]);break;case 2:u.h.call(s,r[0],r[1]);break;default:u.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Cs=Math.log(2);function Gi(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var h=Math.round(Math.log((1<<s)-1&~n)/Cs);return e[r][h]}for(var f=i|1<<r,u=r+1;i&1<<u;)u++;for(var l=0,v=0,c=0;v<s;v++){var _=1<<v;_&n||(l+=(c%2?-1:1)*e[r][v]*Gi(e,t-1,u,f,n|_,a),c++)}return a[o]=l,l}function Mn(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Gi(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Gi(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(h,f,u){var l=f*a[6]+u*a[7]+1;h[0]=(f*a[0]+u*a[1]+a[2])/l,h[1]=(f*a[3]+u*a[4]+a[5])/l}}}var Rn="___zrEVENTSAVED",ai=[];function Hu(e,t,r,i,n){return Xi(ai,t,i,n,!0)&&Xi(e,r,ai[0],ai[1])}function Xi(e,t,r,i,n){if(t.getBoundingClientRect&&k.domSupported&&!Za(t)){var a=t[Rn]||(t[Rn]={}),o=Ss(t,a),s=Ls(o,a,n);if(s)return s(e,r,i),!0}return!1}function Ss(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,h=a%2,f=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[h]+":0",n[f]+":0",i[1-h]+":auto",n[1-f]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Ls(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],h=!0,f=0;f<4;f++){var u=e[f].getBoundingClientRect(),l=2*f,v=u.left,c=u.top;o.push(v,c),h=h&&a&&v===a[l]&&c===a[l+1],s.push(e[f].offsetLeft,e[f].offsetTop)}return h&&n?n:(t.srcCoords=o,t[i]=r?Mn(s,o):Mn(o,s))}function Za(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ps=/([&<>"'])/g,Ms={"&":"&","<":"<",">":">",'"':""","'":"'"};function zu(e){return e==null?"":(e+"").replace(Ps,function(t,r){return Ms[r]})}var Rs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oi=[],xs=k.browser.firefox&&+k.browser.version.split(".")[0]<39;function qi(e,t,r,i){return r=r||{},i?xn(e,t,r):xs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):xn(e,t,r),r}function xn(e,t,r){if(k.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Za(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Xi(oi,e,i,n)){r.zrX=oi[0],r.zrY=oi[1];return}}r.zrX=r.zrY=0}function Tn(e){return e||window.event}function vt(e,t,r){if(t=Tn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&qi(e,o,t,r)}else{qi(e,t,t,r);var a=Ds(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Rs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Ds(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function As(e,t,r,i){e.addEventListener(t,r,i)}function Es(e,t,r,i){e.removeEventListener(t,r,i)}var Is=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Os=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var h=n[o],f=qi(i,h,{});a.points.push([f.zrX,f.zrY]),a.touches.push(h)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in si)if(si.hasOwnProperty(r)){var i=si[r](this._track,t);if(i)return i}},e}();function Dn(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Fs(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var si={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Dn(i)/Dn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Fs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function hr(){return[1,0,0,1,0,0]}function Ua(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function He(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],h=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=h,e}function $i(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Va(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],h=t[3],f=t[5],u=Math.sin(r),l=Math.cos(r);return e[0]=n*l+s*u,e[1]=-n*u+s*l,e[2]=a*l+h*u,e[3]=-a*u+l*h,e[4]=l*(o-i[0])+u*(f-i[1])+i[0],e[5]=l*(f-i[1])-u*(o-i[0])+i[1],e}function Qa(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Ka(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],h=r*o-a*i;return h?(h=1/h,e[0]=o*h,e[1]=-a*h,e[2]=-i*h,e[3]=r*h,e[4]=(i*s-o*n)*h,e[5]=(a*n-r*s)*h,e):null}function Bs(e){var t=hr();return bn(t,e),t}const ku=Object.freeze(Object.defineProperty({__proto__:null,clone:Bs,copy:bn,create:hr,identity:Ua,invert:Ka,mul:He,rotate:Va,scale:Qa,translate:$i},Symbol.toStringTag,{value:"Module"}));var z=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),_e=Math.min,ge=Math.max,zt=new z,kt=new z,Nt=new z,Wt=new z,Wr=new z,Yr=new z,N=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=_e(t.x,this.x),i=_e(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ge(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ge(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=hr();return $i(a,a,[-r.x,-r.y]),Qa(a,a,[i,n]),$i(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,h=t.x,f=t.x+t.width,u=t.y,l=t.y+t.height,v=!(a<h||f<n||s<u||l<o);if(r){var c=1/0,_=0,y=Math.abs(a-h),d=Math.abs(f-n),p=Math.abs(s-u),g=Math.abs(l-o),m=Math.min(y,d),w=Math.min(p,g);a<h||f<n?m>_&&(_=m,y<d?z.set(Yr,-y,0):z.set(Yr,d,0)):m<c&&(c=m,y<d?z.set(Wr,y,0):z.set(Wr,-d,0)),s<u||l<o?w>_&&(_=w,p<g?z.set(Yr,0,-p):z.set(Yr,0,g)):m<c&&(c=m,p<g?z.set(Wr,0,p):z.set(Wr,0,-g))}return r&&z.copy(r,v?Wr:Yr),v},e.prototype.contain=function(t,r){var i=this;return t>=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}zt.x=Nt.x=r.x,zt.y=Wt.y=r.y,kt.x=Wt.x=r.x+r.width,kt.y=Nt.y=r.y+r.height,zt.transform(i),Wt.transform(i),kt.transform(i),Nt.transform(i),t.x=_e(zt.x,kt.x,Nt.x,Wt.x),t.y=_e(zt.y,kt.y,Nt.y,Wt.y);var h=ge(zt.x,kt.x,Nt.x,Wt.x),f=ge(zt.y,kt.y,Nt.y,Wt.y);t.width=h-t.x,t.height=f-t.y},e}(),Ja="silent";function Hs(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:zs}}function zs(){Is(this.event)}var ks=function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Hr),Gr=function(){function e(t,r){this.x=t,this.y=r}return e}(),Ns=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hi=new N(0,0,0,0),ja=function(e){F(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Gr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new ks,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new bs(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(j(Ns,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=to(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var h=this._hovered=a?new Gr(i,n):this.findHover(i,n),f=h.target,u=this.proxy;u.setCursor&&u.setCursor(f?f.cursor:"default"),s&&f!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(h,"mousemove",r),f&&f!==s&&this.dispatchToElement(h,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Gr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Hs(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(h){typeof h[o]=="function"&&h[o].call(h,s),h.trigger&&h.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Gr(r,i);if(An(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],h=this._pointerSize,f=h/2,u=new N(r-f,i-f,h,h),l=a.length-1;l>=0;l--){var v=a[l];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(hi.copy(v.getBoundingRect()),v.transform&&hi.applyTransform(v.transform),hi.intersect(u)&&s.push(v))}if(s.length)for(var c=4,_=Math.PI/12,y=Math.PI*2,d=0;d<f;d+=c)for(var p=0;p<y;p+=_){var g=r+d*Math.cos(p),m=i+d*Math.sin(p);if(An(s,o,g,m,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Os);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Gr;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Hr);j(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ja.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=to(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||qa(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Ws(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Ja:!0}return!1}function An(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=Ws(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ja)){t.target=o;break}}}function to(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var ro=32,Xr=7;function Ys(e){for(var t=0;e>=ro;)t|=e&1,e>>=1;return e+t}function En(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;Gs(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function Gs(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function In(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,h;o<s;)h=o+s>>>1,n(a,e[h])<0?s=h:o=h+1;var f=i-o;switch(f){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;f>0;)e[o+f]=e[o+f-1],f--}e[o]=a}}function fi(e,t,r,i,n,a){var o=0,s=0,h=1;if(a(e,t[r+n])>0){for(s=i-n;h<s&&a(e,t[r+n+h])>0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}else{for(s=n+1;h<s&&a(e,t[r+n-h])<=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}for(o++;o<h;){var u=o+(h-o>>>1);a(e,t[r+u])>0?o=u+1:h=u}return h}function ui(e,t,r,i,n,a){var o=0,s=0,h=1;if(a(e,t[r+n])<0){for(s=n+1;h<s&&a(e,t[r+n-h])<0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}else{for(s=i-n;h<s&&a(e,t[r+n+h])>=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}for(o++;o<h;){var u=o+(h-o>>>1);a(e,t[r+u])<0?h=u:o=u+1}return h}function Xs(e,t){var r=Xr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function h(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;u(c)}}function f(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,u(c)}}function u(c){var _=i[c],y=n[c],d=i[c+1],p=n[c+1];n[c]=y+p,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var g=ui(e[d],e,_,y,0,t);_+=g,y-=g,y!==0&&(p=fi(e[_+y-1],e,d,p,p-1,t),p!==0&&(y<=p?l(_,y,d,p):v(_,y,d,p)))}function l(c,_,y,d){var p=0;for(p=0;p<_;p++)o[p]=e[c+p];var g=0,m=y,w=c;if(e[w++]=e[m++],--d===0){for(p=0;p<_;p++)e[w+p]=o[g+p];return}if(_===1){for(p=0;p<d;p++)e[w+p]=e[m+p];e[w+d]=o[g];return}for(var S=r,T,b,C;;){T=0,b=0,C=!1;do if(t(e[m],o[g])<0){if(e[w++]=e[m++],b++,T=0,--d===0){C=!0;break}}else if(e[w++]=o[g++],T++,b=0,--_===1){C=!0;break}while((T|b)<S);if(C)break;do{if(T=ui(e[m],o,g,_,0,t),T!==0){for(p=0;p<T;p++)e[w+p]=o[g+p];if(w+=T,g+=T,_-=T,_<=1){C=!0;break}}if(e[w++]=e[m++],--d===0){C=!0;break}if(b=fi(o[g],e,m,d,0,t),b!==0){for(p=0;p<b;p++)e[w+p]=e[m+p];if(w+=b,m+=b,d-=b,d===0){C=!0;break}}if(e[w++]=o[g++],--_===1){C=!0;break}S--}while(T>=Xr||b>=Xr);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),_===1){for(p=0;p<d;p++)e[w+p]=e[m+p];e[w+d]=o[g]}else{if(_===0)throw new Error;for(p=0;p<_;p++)e[w+p]=o[g+p]}}function v(c,_,y,d){var p=0;for(p=0;p<d;p++)o[p]=e[y+p];var g=c+_-1,m=d-1,w=y+d-1,S=0,T=0;if(e[w--]=e[g--],--_===0){for(S=w-(d-1),p=0;p<d;p++)e[S+p]=o[p];return}if(d===1){for(w-=_,g-=_,T=w+1,S=g+1,p=_-1;p>=0;p--)e[T+p]=e[S+p];e[w]=o[m];return}for(var b=r;;){var C=0,L=0,M=!1;do if(t(o[m],e[g])<0){if(e[w--]=e[g--],C++,L=0,--_===0){M=!0;break}}else if(e[w--]=o[m--],L++,C=0,--d===1){M=!0;break}while((C|L)<b);if(M)break;do{if(C=_-ui(o[m],e,c,_,_-1,t),C!==0){for(w-=C,g-=C,_-=C,T=w+1,S=g+1,p=C-1;p>=0;p--)e[T+p]=e[S+p];if(_===0){M=!0;break}}if(e[w--]=o[m--],--d===1){M=!0;break}if(L=d-fi(e[g],o,0,d,d-1,t),L!==0){for(w-=L,m-=L,d-=L,T=w+1,S=m+1,p=0;p<L;p++)e[T+p]=o[S+p];if(d<=1){M=!0;break}}if(e[w--]=e[g--],--_===0){M=!0;break}b--}while(C>=Xr||L>=Xr);if(M)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(w-=_,g-=_,T=w+1,S=g+1,p=_-1;p>=0;p--)e[T+p]=e[S+p];e[w]=o[m]}else{if(d===0)throw new Error;for(S=w-(d-1),p=0;p<d;p++)e[S+p]=o[p]}}return{mergeRuns:h,forceMergeRuns:f,pushRun:s}}function qs(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<ro){a=En(e,r,i,t),In(e,r,i,r+a,t);return}var o=Xs(e,t),s=Ys(n);do{if(a=En(e,r,i,t),a<s){var h=n;h>s&&(h=s),In(e,r,r+h,r+a,t),a=h}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var rt=1,Vr=2,Lr=4,On=!1;function li(){On||(On=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Fn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var $s=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Fn}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,qs(i,Fn)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)r=null;else if(n){r?r=r.slice():r=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),h=0;h<s.length;h++){var f=s[h];t.__dirty&&(f.__dirty|=rt),this._updateAndAddDisplayable(f,r,i)}t.__dirty=0}else{var u=t;r&&r.length?u.__clipPaths=r:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(li(),u.z=0),isNaN(u.z2)&&(li(),u.z2=0),isNaN(u.zlevel)&&(li(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var l=t.getDecalElement&&t.getDecalElement();l&&this._updateAndAddDisplayable(l,r,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=dt(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),qe;qe=k.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var re={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-re.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?re.bounceIn(e*2)*.5:re.bounceOut(e*2-1)*.5+.5}},ye=Math.pow,Bt=Math.sqrt,$e=1e-8,eo=1e-4,Bn=Bt(3),me=1/3,Lt=pr(),ot=pr(),Ir=pr();function Ot(e){return e>-$e&&e<$e}function io(e){return e>$e||e<-$e}function Z(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Hn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function no(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),h=3*(t-e),f=e-n,u=s*s-3*o*h,l=s*h-9*o*f,v=h*h-3*s*f,c=0;if(Ot(u)&&Ot(l))if(Ot(s))a[0]=0;else{var _=-h/s;_>=0&&_<=1&&(a[c++]=_)}else{var y=l*l-4*u*v;if(Ot(y)){var d=l/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(y>0){var g=Bt(y),m=u*s+1.5*o*(-l+g),w=u*s+1.5*o*(-l-g);m<0?m=-ye(-m,me):m=ye(m,me),w<0?w=-ye(-w,me):w=ye(w,me);var _=(-s-(m+w))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var S=(2*u*s-3*o*l)/(2*Bt(u*u*u)),T=Math.acos(S)/3,b=Bt(u),C=Math.cos(T),_=(-s-2*b*C)/(3*o),p=(-s+b*(C+Bn*Math.sin(T)))/(3*o),L=(-s+b*(C-Bn*Math.sin(T)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function ao(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,h=0;if(Ot(o)){if(io(a)){var f=-s/a;f>=0&&f<=1&&(n[h++]=f)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var l=Bt(u),f=(-a+l)/(2*o),v=(-a-l)/(2*o);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function Ze(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,h=(i-r)*n+r,f=(s-o)*n+o,u=(h-s)*n+s,l=(u-f)*n+f;a[0]=e,a[1]=o,a[2]=f,a[3]=l,a[4]=l,a[5]=u,a[6]=h,a[7]=i}function Zs(e,t,r,i,n,a,o,s,h,f,u){var l,v=.005,c=1/0,_,y,d,p;Lt[0]=h,Lt[1]=f;for(var g=0;g<1;g+=.05)ot[0]=Z(e,r,n,o,g),ot[1]=Z(t,i,a,s,g),d=sr(Lt,ot),d<c&&(l=g,c=d);c=1/0;for(var m=0;m<32&&!(v<eo);m++)_=l-v,y=l+v,ot[0]=Z(e,r,n,o,_),ot[1]=Z(t,i,a,s,_),d=sr(ot,Lt),_>=0&&d<c?(l=_,c=d):(Ir[0]=Z(e,r,n,o,y),Ir[1]=Z(t,i,a,s,y),p=sr(Ir,Lt),y<=1&&p<c?(l=y,c=p):v*=.5);return Bt(c)}function Us(e,t,r,i,n,a,o,s,h){for(var f=e,u=t,l=0,v=1/h,c=1;c<=h;c++){var _=c*v,y=Z(e,r,n,o,_),d=Z(t,i,a,s,_),p=y-f,g=d-u;l+=Math.sqrt(p*p+g*g),f=y,u=d}return l}function Q(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function zn(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function Vs(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,h=0;if(Ot(a)){if(io(o)){var f=-s/o;f>=0&&f<=1&&(n[h++]=f)}}else{var u=o*o-4*a*s;if(Ot(u)){var f=-o/(2*a);f>=0&&f<=1&&(n[h++]=f)}else if(u>0){var l=Bt(u),f=(-o+l)/(2*a),v=(-o-l)/(2*a);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function oo(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function Ue(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Qs(e,t,r,i,n,a,o,s,h){var f,u=.005,l=1/0;Lt[0]=o,Lt[1]=s;for(var v=0;v<1;v+=.05){ot[0]=Q(e,r,n,v),ot[1]=Q(t,i,a,v);var c=sr(Lt,ot);c<l&&(f=v,l=c)}l=1/0;for(var _=0;_<32&&!(u<eo);_++){var y=f-u,d=f+u;ot[0]=Q(e,r,n,y),ot[1]=Q(t,i,a,y);var c=sr(ot,Lt);if(y>=0&&c<l)f=y,l=c;else{Ir[0]=Q(e,r,n,d),Ir[1]=Q(t,i,a,d);var p=sr(Ir,Lt);d<=1&&p<l?(f=d,l=p):u*=.5}}return Bt(l)}function Ks(e,t,r,i,n,a,o){for(var s=e,h=t,f=0,u=1/o,l=1;l<=o;l++){var v=l*u,c=Q(e,r,n,v),_=Q(t,i,a,v),y=c-s,d=_-h;f+=Math.sqrt(y*y+d*d),s=c,h=_}return f}var Js=/cubic-bezier\(([0-9,\.e ]+)\)/;function so(e){var t=e&&Js.exec(e);if(t){var r=t[1].split(","),i=+Mr(r[0]),n=+Mr(r[1]),a=+Mr(r[2]),o=+Mr(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(h){return h<=0?0:h>=1?1:no(0,i,a,1,h,s)&&Z(0,n,o,1,s[0])}}}var js=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||or,this.ondestroy=t.ondestroy||or,this.onrestart=t.onrestart||or,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var h=n%i;this._startTime=t-h,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ue(t)?t:re[t]||so(t)},e}(),ho=function(){function e(t){this.value=t}return e}(),th=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new ho(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),ri=function(){function e(t){this._list=new th,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var h=i.head;i.remove(h),delete n[h.key],a=h.value,this._lastRemovedEntry=h}s?s.value=r:s=new ho(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),kn={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 pt(e){return e=Math.round(e),e<0?0:e>255?255:e}function rh(e){return e=Math.round(e),e<0?0:e>360?360:e}function ne(e){return e<0?0:e>1?1:e}function vi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?pt(parseFloat(t)/100*255):pt(parseInt(t,10))}function fr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ne(parseFloat(t)/100):ne(parseFloat(t))}function ci(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ft(e,t,r){return e+(t-e)*r}function nt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Zi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var fo=new ri(20),we=null;function mr(e,t){we&&Zi(we,t),we=fo.put(e,we||t.slice())}function ft(e,t){if(e){t=t||[];var r=fo.get(e);if(r)return Zi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in kn)return Zi(t,kn[i]),mr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){nt(t,0,0,0,1);return}return nt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),mr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){nt(t,0,0,0,1);return}return nt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),mr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var h=i.substr(0,o),f=i.substr(o+1,s-(o+1)).split(","),u=1;switch(h){case"rgba":if(f.length!==4)return f.length===3?nt(t,+f[0],+f[1],+f[2],1):nt(t,0,0,0,1);u=fr(f.pop());case"rgb":if(f.length>=3)return nt(t,vi(f[0]),vi(f[1]),vi(f[2]),f.length===3?u:fr(f[3])),mr(e,t),t;nt(t,0,0,0,1);return;case"hsla":if(f.length!==4){nt(t,0,0,0,1);return}return f[3]=fr(f[3]),Ui(f,t),mr(e,t),t;case"hsl":if(f.length!==3){nt(t,0,0,0,1);return}return Ui(f,t),mr(e,t),t;default:return}}nt(t,0,0,0,1)}}function Ui(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=fr(e[1]),n=fr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],nt(t,pt(ci(o,a,r+1/3)*255),pt(ci(o,a,r)*255),pt(ci(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function eh(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,h,f;if(o===0)h=0,f=0;else{s<.5?f=o/(a+n):f=o/(2-a-n);var u=((a-t)/6+o/2)/o,l=((a-r)/6+o/2)/o,v=((a-i)/6+o/2)/o;t===a?h=v-l:r===a?h=1/3+u-v:i===a&&(h=2/3+l-u),h<0&&(h+=1),h>1&&(h-=1)}var c=[h*360,f,s];return e[3]!=null&&c.push(e[3]),c}}function Vi(e,t){var r=ft(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return _r(r,r.length===4?"rgba":"rgb")}}function ih(e){var t=ft(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function uo(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],h=i-n;return r[0]=pt(Ft(o[0],s[0],h)),r[1]=pt(Ft(o[1],s[1],h)),r[2]=pt(Ft(o[2],s[2],h)),r[3]=ne(Ft(o[3],s[3],h)),r}}var nh=uo;function lo(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=ft(t[n]),s=ft(t[a]),h=i-n,f=_r([pt(Ft(o[0],s[0],h)),pt(Ft(o[1],s[1],h)),pt(Ft(o[2],s[2],h)),ne(Ft(o[3],s[3],h))],"rgba");return r?{color:f,leftIndex:n,rightIndex:a,value:i}:f}}var ah=lo;function oh(e,t,r,i){var n=ft(e);if(e)return n=eh(n),t!=null&&(n[0]=rh(t)),r!=null&&(n[1]=fr(r)),i!=null&&(n[2]=fr(i)),_r(Ui(n),"rgba")}function sh(e,t){var r=ft(e);if(r&&t!=null)return r[3]=ne(t),_r(r,"rgba")}function _r(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ae(e,t){var r=ft(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function hh(){return _r([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Nn=new ri(100);function fh(e){if(ie(e)){var t=Nn.get(e);return t||(t=Vi(e,-.1),Nn.put(e,t)),t}else if(le(e)){var r=H({},e);return r.colorStops=dr(e.colorStops,function(i){return{offset:i.offset,color:Vi(i.color,-.1)}}),r}return e}const Nu=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:uo,fastMapToColor:nh,lerp:lo,lift:Vi,liftColor:fh,lum:ae,mapToColor:ah,modifyAlpha:sh,modifyHSL:oh,parse:ft,random:hh,stringify:_r,toHex:ih},Symbol.toStringTag,{value:"Module"}));function uh(e){return e.type==="linear"}function lh(e){return e.type==="radial"}(function(){return k.hasGlobalWindow&&ue(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Qi=Array.prototype.slice;function Rt(e,t,r){return(t-e)*r+e}function di(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Rt(t[a],r[a],i);return e}function vh(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Rt(t[o][s],r[o][s],i)}return e}function Te(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function Wn(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function ch(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function dh(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var h=a;h<o;h++)i.push(r===1?n[h]:Qi.call(n[h]))}for(var f=i[0]&&i[0].length,h=0;h<i.length;h++)if(r===1)isNaN(i[h])&&(i[h]=n[h]);else for(var u=0;u<f;u++)isNaN(i[h][u])&&(i[h][u]=n[h][u])}}function ze(e){if(_t(e)){var t=e.length;if(_t(e[0])){for(var r=[],i=0;i<t;i++)r.push(Qi.call(e[i]));return r}return Qi.call(e)}return e}function ke(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function ph(e){return _t(e&&e[0])?2:1}var be=0,Ne=1,vo=2,Qr=3,Ki=4,Ji=5,Yn=6;function Gn(e){return e===Ki||e===Ji}function Ce(e){return e===Ne||e===vo}var qr=[0,0,0,0],_h=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Yn,h=r;if(_t(r)){var f=ph(r);s=f,(f===1&&!jr(r[0])||f===2&&!jr(r[0][0]))&&(o=!0)}else if(jr(r)&&!Ba(r))s=be;else if(ie(r))if(!isNaN(+r))s=be;else{var u=ft(r);u&&(h=u,s=Qr)}else if(le(r)){var l=H({},h);l.colorStops=dr(r.colorStops,function(c){return{offset:c.offset,color:ft(c.color)}}),uh(r)?s=Ki:lh(r)&&(s=Ji),h=l}a===0?this.valType=s:(s!==this.valType||s===Yn)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:h,rawValue:r,percent:0};return i&&(v.easing=i,v.easingFunc=ue(i)?i:re[i]||so(i)),n.push(v),v},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(y,d){return y.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,h=Ce(n),f=Gn(n),u=0;u<a;u++){var l=i[u],v=l.value,c=o.value;l.percent=l.time/t,s||(h&&u!==a-1?dh(v,c,n):f&&ch(v.colorStops,c.colorStops))}if(!s&&n!==Ji&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var _=i[0].value,u=0;u<a;u++)n===be?i[u].additiveValue=i[u].value-_:n===Qr?i[u].additiveValue=Te([],i[u].value,_,-1):Ce(n)&&(i[u].additiveValue=n===Ne?Te([],i[u].value,_,-1):Wn([],i[u].value,_,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,h=this.propName,f=a===Qr,u,l=this._lastFr,v=Math.min,c,_;if(s===1)c=_=o[0];else{if(r<0)u=0;else if(r<this._lastFrP){var y=v(l+1,s-1);for(u=y;u>=0&&!(o[u].percent<=r);u--);u=v(u,s-2)}else{for(u=l;u<s&&!(o[u].percent>r);u++);u=v(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:v((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var g=i?this._additiveValue:f?qr:t[h];if((Ce(a)||f)&&!g&&(g=this._additiveValue=[]),this.discrete)t[h]=p<1?c.rawValue:_.rawValue;else if(Ce(a))a===Ne?di(g,c[n],_[n],p):vh(g,c[n],_[n],p);else if(Gn(a)){var m=c[n],w=_[n],S=a===Ki;t[h]={type:S?"linear":"radial",x:Rt(m.x,w.x,p),y:Rt(m.y,w.y,p),colorStops:dr(m.colorStops,function(b,C){var L=w.colorStops[C];return{offset:Rt(b.offset,L.offset,p),color:ke(di([],b.color,L.color,p))}}),global:w.global},S?(t[h].x2=Rt(m.x2,w.x2,p),t[h].y2=Rt(m.y2,w.y2,p)):t[h].r=Rt(m.r,w.r,p)}else if(f)di(g,c[n],_[n],p),i||(t[h]=ke(g));else{var T=Rt(c[n],_[n],p);i?this._additiveValue=T:t[h]=T}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===be?t[i]=t[i]+n:r===Qr?(ft(t[i],qr),Te(qr,qr,n,1),t[i]=ke(qr)):r===Ne?Te(t[i],t[i],n,1):r===vo&&Wn(t[i],t[i],n,1)},e}(),Cn=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){ti("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,tt(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],h=a[s];if(!h){h=a[s]=new _h(s);var f=void 0,u=this._getAdditiveTrack(s);if(u){var l=u.keyframes,v=l[l.length-1];f=v&&v.value,u.valType===Qr&&f&&(f=ke(f))}else f=this._target[s];if(f==null)continue;t>0&&h.addKeyframe(0,ze(f),n),this._trackKeys.push(s)}h.addKeyframe(t,ze(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],h=this._getAdditiveTrack(o),f=s.keyframes,u=f.length;if(s.prepare(n,h),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var l=f[u-1];l&&(r._target[s.propName]=l.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new js({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var _=r._additiveAnimators;if(_){for(var y=!1,d=0;d<_.length;d++)if(_[d]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(r._target,c);var p=r._onframeCbs;if(p)for(var d=0;d<p.length;d++)p[d](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return dr(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,h=s[i?0:s.length-1];h&&(t[a]=ze(h.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||tt(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Rr(){return new Date().getTime()}var gh=function(e){F(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Rr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(qe(i),!r._paused&&r.update())}qe(i)},t.prototype.start=function(){this._running||(this._time=Rr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Rr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Rr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new Cn(r,i.loop);return this.addAnimator(n),n},t}(Hr),yh=300,pi=k.domSupported,_i=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=dr(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Xn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},qn=!1;function ji(e){var t=e.pointerType;return t==="pen"||t==="touch"}function mh(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function gi(e){e&&(e.zrByTouch=!0)}function wh(e,t){return vt(e.dom,new Th(e,t),!0)}function co(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Th=function(){function e(t,r){this.stopPropagation=or,this.stopImmediatePropagation=or,this.preventDefault=or,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ct={mousedown:function(e){e=vt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=vt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=vt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=vt(this.dom,e);var t=e.toElement||e.relatedTarget;co(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){qn=!0,e=vt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){qn||(e=vt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=vt(this.dom,e),gi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ct.mousemove.call(this,e),ct.mousedown.call(this,e)},touchmove:function(e){e=vt(this.dom,e),gi(e),this.handler.processGesture(e,"change"),ct.mousemove.call(this,e)},touchend:function(e){e=vt(this.dom,e),gi(e),this.handler.processGesture(e,"end"),ct.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<yh&&ct.click.call(this,e)},pointerdown:function(e){ct.mousedown.call(this,e)},pointermove:function(e){ji(e)||ct.mousemove.call(this,e)},pointerup:function(e){ct.mouseup.call(this,e)},pointerout:function(e){ji(e)||ct.mouseout.call(this,e)}};j(["click","dblclick","contextmenu"],function(e){ct[e]=function(t){t=vt(this.dom,t),this.trigger(e,t)}});var tn={pointermove:function(e){ji(e)||tn.mousemove.call(this,e)},pointerup:function(e){tn.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function bh(e,t){var r=t.domHandlers;k.pointerEventsSupported?j(_i.pointer,function(i){We(t,i,function(n){r[i].call(e,n)})}):(k.touchEventsSupported&&j(_i.touch,function(i){We(t,i,function(n){r[i].call(e,n),mh(t)})}),j(_i.mouse,function(i){We(t,i,function(n){n=Tn(n),t.touching||r[i].call(e,n)})}))}function Ch(e,t){k.pointerEventsSupported?j(Xn.pointer,r):k.touchEventsSupported||j(Xn.mouse,r);function r(i){function n(a){a=Tn(a),co(e,a.target)||(a=wh(e,a),t.domHandlers[i].call(e,a))}We(t,i,n,{capture:!0})}}function We(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,As(e.domTarget,t,r,i)}function yi(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Es(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var $n=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Sh=function(e){F(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new $n(r,ct),pi&&(n._globalHandlerScope=new $n(document,tn)),bh(n,n._localHandlerScope),n}return t.prototype.dispose=function(){yi(this._localHandlerScope),pi&&yi(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,pi&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?Ch(this,i):yi(i)}},t}(Hr),po=1;k.hasGlobalWindow&&(po=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ve=po,rn=.4,en="#333",nn="#ccc",Lh="#eee",Zn=Ua,Un=5e-5;function Yt(e){return e>Un||e<-Un}var Gt=[],wr=[],mi=hr(),wi=Math.abs,_o=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Yt(this.rotation)||Yt(this.x)||Yt(this.y)||Yt(this.scaleX-1)||Yt(this.scaleY-1)||Yt(this.skewX)||Yt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Zn(i),this.invTransform=null);return}i=i||hr(),r?this.getLocalTransform(i):Zn(i),t&&(r?He(i,t,i):bn(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Gt);var i=Gt[0]<0?-1:1,n=Gt[1]<0?-1:1,a=((Gt[0]-i)*r+i)/Gt[0]||0,o=((Gt[1]-n)*r+n)/Gt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||hr(),Ka(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||hr(),He(wr,t.invTransform,r),r=wr);var i=this.originX,n=this.originY;(i||n)&&(mi[4]=i,mi[5]=n,He(wr,r,mi),wr[4]-=i,wr[5]-=n,r=wr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Er(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Er(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&wi(t[0]-1)>1e-10&&wi(t[3]-1)>1e-10?Math.sqrt(wi(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ph(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,h=t.anchorY,f=t.rotation||0,u=t.x,l=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||h){var _=i+s,y=n+h;r[4]=-_*a-v*y*o,r[5]=-y*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,f&&Va(r,r,f),r[4]+=i+u,r[5]+=n+l,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),oe=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ph(e,t){for(var r=0;r<oe.length;r++){var i=oe[r];e[i]=t[i]}}var Vn={};function et(e,t){t=t||lr;var r=Vn[t];r||(r=Vn[t]=new ri(500));var i=r.get(e);return i==null&&(i=vr.measureText(e,t).width,r.put(e,i)),i}function Qn(e,t,r,i){var n=et(e,t),a=Sn(t),o=Kr(0,n,r),s=Pr(0,a,i),h=new N(o,s,n,a);return h}function Mh(e,t,r,i){var n=((e||"")+"").split(`
|
|
1
|
+
import{_ as F}from"./vendor-5iCEqDpV.js";var Bo=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Ho=function(){function e(){this.browser=new Bo,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<"u"}return e}(),k=new Ho;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(k.wxa=!0,k.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?k.worker=!0:!k.hasGlobalWindow||"Deno"in window?(k.node=!0,k.svgSupported=!0):zo(navigator.userAgent,k);function zo(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var vn=12,ko="sans-serif",lr=vn+"px "+ko,No=20,Wo=100,Yo="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Go(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-No)/Wo;t[i]=n}return t}var Xo=Go(Yo),vr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,i){if(!e){var n=vr.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||lr),e.measureText(r);r=r||"",i=i||lr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||vn,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var h=0;h<r.length;h++){var f=Xo[r[h]];s+=f==null?o:f*o}return{width:s}}}(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}};function Ou(e){for(var t in vr)e[t]&&(vr[t]=e[t])}var Ea=fe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Ia=fe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Br=Object.prototype.toString,je=Array.prototype,qo=je.forEach,$o=je.filter,cn=je.slice,Zo=je.map,Pn=(function(){}).constructor,pe=Pn?Pn.prototype:null,dn="__proto__",Uo=2311;function pn(){return Uo++}function ti(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function cr(e){if(e==null||typeof e!="object")return e;var t=e,r=Br.call(e);if(r==="[object Array]"){if(!Ar(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=cr(e[i])}}else if(Ia[r]){if(!Ar(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!Ea[r]&&!Ar(e)&&!Ge(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==dn&&(t[o]=cr(e[o]))}return t}function tr(e,t,r){if(!Dt(t)||!Dt(e))return r?cr(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==dn){var n=e[i],a=t[i];Dt(a)&&Dt(n)&&!Or(a)&&!Or(n)&&!Ge(a)&&!Ge(n)&&!Wi(a)&&!Wi(n)&&!Ar(a)&&!Ar(n)?tr(n,a,r):(r||!(i in e))&&(e[i]=cr(t[i]))}return e}function Vo(e,t){for(var r=e[0],i=1,n=e.length;i<n;i++)r=tr(r,e[i],t);return r}function H(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==dn&&(e[r]=t[r]);return e}function Ht(e,t,r){for(var i=tt(t),n=0,a=i.length;n<a;n++){var o=i[n];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var Qo=vr.createCanvas;function dt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function Ko(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function _n(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Ht(e,t,r)}function _t(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function j(e,t,r){if(e&&t)if(e.forEach&&e.forEach===qo)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function dr(e,t,r){if(!e)return[];if(!t)return gn(e);if(e.map&&e.map===Zo)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function fe(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function Ni(e,t,r){if(!e)return[];if(!t)return gn(e);if(e.filter&&e.filter===$o)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function Jo(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function tt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function jo(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(cn.call(arguments)))}}var ts=pe&&ue(pe.bind)?pe.call.bind(pe.bind):jo;function rs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(cn.call(arguments)))}}function Or(e){return Array.isArray?Array.isArray(e):Br.call(e)==="[object Array]"}function ue(e){return typeof e=="function"}function ie(e){return typeof e=="string"}function es(e){return Br.call(e)==="[object String]"}function jr(e){return typeof e=="number"}function Dt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Wi(e){return!!Ea[Br.call(e)]}function Oa(e){return!!Ia[Br.call(e)]}function Ge(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function le(e){return e.colorStops!=null}function Fa(e){return e.image!=null}function is(e){return Br.call(e)==="[object RegExp]"}function Ba(e){return e!==e}function ns(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function J(e,t){return e??t}function te(e,t,r){return e??t??r}function gn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return cn.apply(e,t)}function Ha(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function as(e,t){if(!e)throw new Error(t)}function Mr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var za="__ec_primitive__";function os(e){e[za]=!0}function Ar(e){return e[za]}var ss=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return tt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e}(),ka=typeof Map=="function";function hs(){return ka?new Map:new ss}var Na=function(){function e(t){var r=Or(t);this.data=hs();var i=this;t instanceof e?t.each(n):t&&j(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return ka?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function fs(e){return new Na(e)}function us(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function ve(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&H(r,t),r}function yn(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ls(e,t){return e.hasOwnProperty(t)}function or(){}var Wa=180/Math.PI;const Fu=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Na,RADIAN_TO_DEGREE:Wa,assert:as,bind:ts,clone:cr,concatArray:us,createCanvas:Qo,createHashMap:fs,createObject:ve,curry:rs,defaults:Ht,disableUserSelect:yn,each:j,eqNaN:Ba,extend:H,filter:Ni,find:Jo,guid:pn,hasOwn:ls,indexOf:dt,inherits:Ko,isArray:Or,isArrayLike:_t,isBuiltInObject:Wi,isDom:Ge,isFunction:ue,isGradientObject:le,isImagePatternObject:Fa,isNumber:jr,isObject:Dt,isPrimitive:Ar,isRegExp:is,isString:ie,isStringSafe:es,isTypedArray:Oa,keys:tt,logError:ti,map:dr,merge:tr,mergeAll:Vo,mixin:_n,noop:or,normalizeCssArray:Ha,reduce:fe,retrieve:ns,retrieve2:J,retrieve3:te,setAsPrimitive:os,slice:gn,trim:Mr},Symbol.toStringTag,{value:"Module"}));function pr(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function vs(e,t){return e[0]=t[0],e[1]=t[1],e}function Ya(e){return[e[0],e[1]]}function cs(e,t,r){return e[0]=t,e[1]=r,e}function Yi(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function ds(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e}function Ga(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function mn(e){return Math.sqrt(wn(e))}var ps=mn;function wn(e){return e[0]*e[0]+e[1]*e[1]}var _s=wn;function gs(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function ys(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function ms(e,t){return e[0]*t[0]+e[1]*t[1]}function Be(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Xa(e,t){var r=mn(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Xe(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var qa=Xe;function $a(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var sr=$a;function ws(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Ts(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function Er(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function rr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function er(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const Bu=Object.freeze(Object.defineProperty({__proto__:null,add:Yi,applyTransform:Er,clone:Ya,copy:vs,create:pr,dist:qa,distSquare:sr,distance:Xe,distanceSquare:$a,div:ys,dot:ms,len:mn,lenSquare:wn,length:ps,lengthSquare:_s,lerp:Ts,max:er,min:rr,mul:gs,negate:ws,normalize:Xa,scale:Be,scaleAndAdd:ds,set:cs,sub:Ga},Symbol.toStringTag,{value:"Module"}));var yr=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),bs=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new yr(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new yr(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,h=this._dropTarget;this._dropTarget=s,r!==s&&(h&&s!==h&&this.handler.dispatchToElement(new yr(h,t),"dragleave",t.event),s&&s!==h&&this.handler.dispatchToElement(new yr(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new yr(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new yr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Hr=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var h={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},f=a[t].length-1,u=a[t][f];return u&&u.callAtLast?a[t].splice(f,0,h):a[t].push(h),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,h=0;h<s;h++){var f=n[h];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(f.ctx);break;case 1:f.h.call(f.ctx,r[0]);break;case 2:f.h.call(f.ctx,r[0],r[1]);break;default:f.h.apply(f.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],h=n.length,f=0;f<h;f++){var u=n[f];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,r[0]);break;case 2:u.h.call(s,r[0],r[1]);break;default:u.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Cs=Math.log(2);function Gi(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var h=Math.round(Math.log((1<<s)-1&~n)/Cs);return e[r][h]}for(var f=i|1<<r,u=r+1;i&1<<u;)u++;for(var l=0,v=0,c=0;v<s;v++){var _=1<<v;_&n||(l+=(c%2?-1:1)*e[r][v]*Gi(e,t-1,u,f,n|_,a),c++)}return a[o]=l,l}function Mn(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Gi(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Gi(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(h,f,u){var l=f*a[6]+u*a[7]+1;h[0]=(f*a[0]+u*a[1]+a[2])/l,h[1]=(f*a[3]+u*a[4]+a[5])/l}}}var Rn="___zrEVENTSAVED",ai=[];function Hu(e,t,r,i,n){return Xi(ai,t,i,n,!0)&&Xi(e,r,ai[0],ai[1])}function Xi(e,t,r,i,n){if(t.getBoundingClientRect&&k.domSupported&&!Za(t)){var a=t[Rn]||(t[Rn]={}),o=Ss(t,a),s=Ls(o,a,n);if(s)return s(e,r,i),!0}return!1}function Ss(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,h=a%2,f=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[h]+":0",n[f]+":0",i[1-h]+":auto",n[1-f]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Ls(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],h=!0,f=0;f<4;f++){var u=e[f].getBoundingClientRect(),l=2*f,v=u.left,c=u.top;o.push(v,c),h=h&&a&&v===a[l]&&c===a[l+1],s.push(e[f].offsetLeft,e[f].offsetTop)}return h&&n?n:(t.srcCoords=o,t[i]=r?Mn(s,o):Mn(o,s))}function Za(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ps=/([&<>"'])/g,Ms={"&":"&","<":"<",">":">",'"':""","'":"'"};function zu(e){return e==null?"":(e+"").replace(Ps,function(t,r){return Ms[r]})}var Rs=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oi=[],xs=k.browser.firefox&&+k.browser.version.split(".")[0]<39;function qi(e,t,r,i){return r=r||{},i?xn(e,t,r):xs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):xn(e,t,r),r}function xn(e,t,r){if(k.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Za(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Xi(oi,e,i,n)){r.zrX=oi[0],r.zrY=oi[1];return}}r.zrX=r.zrY=0}function Tn(e){return e||window.event}function vt(e,t,r){if(t=Tn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&qi(e,o,t,r)}else{qi(e,t,t,r);var a=Ds(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Rs.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Ds(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function As(e,t,r,i){e.addEventListener(t,r,i)}function Es(e,t,r,i){e.removeEventListener(t,r,i)}var Is=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Os=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var h=n[o],f=qi(i,h,{});a.points.push([f.zrX,f.zrY]),a.touches.push(h)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in si)if(si.hasOwnProperty(r)){var i=si[r](this._track,t);if(i)return i}},e}();function Dn(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Fs(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var si={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Dn(i)/Dn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Fs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function hr(){return[1,0,0,1,0,0]}function Ua(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function He(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],h=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=h,e}function $i(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Va(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],h=t[3],f=t[5],u=Math.sin(r),l=Math.cos(r);return e[0]=n*l+s*u,e[1]=-n*u+s*l,e[2]=a*l+h*u,e[3]=-a*u+l*h,e[4]=l*(o-i[0])+u*(f-i[1])+i[0],e[5]=l*(f-i[1])-u*(o-i[0])+i[1],e}function Qa(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Ka(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],h=r*o-a*i;return h?(h=1/h,e[0]=o*h,e[1]=-a*h,e[2]=-i*h,e[3]=r*h,e[4]=(i*s-o*n)*h,e[5]=(a*n-r*s)*h,e):null}function Bs(e){var t=hr();return bn(t,e),t}const ku=Object.freeze(Object.defineProperty({__proto__:null,clone:Bs,copy:bn,create:hr,identity:Ua,invert:Ka,mul:He,rotate:Va,scale:Qa,translate:$i},Symbol.toStringTag,{value:"Module"}));var z=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),_e=Math.min,ge=Math.max,zt=new z,kt=new z,Nt=new z,Wt=new z,Wr=new z,Yr=new z,N=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=_e(t.x,this.x),i=_e(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ge(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ge(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=hr();return $i(a,a,[-r.x,-r.y]),Qa(a,a,[i,n]),$i(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,h=t.x,f=t.x+t.width,u=t.y,l=t.y+t.height,v=!(a<h||f<n||s<u||l<o);if(r){var c=1/0,_=0,y=Math.abs(a-h),d=Math.abs(f-n),p=Math.abs(s-u),g=Math.abs(l-o),m=Math.min(y,d),w=Math.min(p,g);a<h||f<n?m>_&&(_=m,y<d?z.set(Yr,-y,0):z.set(Yr,d,0)):m<c&&(c=m,y<d?z.set(Wr,y,0):z.set(Wr,-d,0)),s<u||l<o?w>_&&(_=w,p<g?z.set(Yr,0,-p):z.set(Yr,0,g)):m<c&&(c=m,p<g?z.set(Wr,0,p):z.set(Wr,0,-g))}return r&&z.copy(r,v?Wr:Yr),v},e.prototype.contain=function(t,r){var i=this;return t>=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}zt.x=Nt.x=r.x,zt.y=Wt.y=r.y,kt.x=Wt.x=r.x+r.width,kt.y=Nt.y=r.y+r.height,zt.transform(i),Wt.transform(i),kt.transform(i),Nt.transform(i),t.x=_e(zt.x,kt.x,Nt.x,Wt.x),t.y=_e(zt.y,kt.y,Nt.y,Wt.y);var h=ge(zt.x,kt.x,Nt.x,Wt.x),f=ge(zt.y,kt.y,Nt.y,Wt.y);t.width=h-t.x,t.height=f-t.y},e}(),Ja="silent";function Hs(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:zs}}function zs(){Is(this.event)}var ks=function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Hr),Gr=function(){function e(t,r){this.x=t,this.y=r}return e}(),Ns=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hi=new N(0,0,0,0),ja=function(e){F(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Gr(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new ks,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new bs(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(j(Ns,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=to(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var h=this._hovered=a?new Gr(i,n):this.findHover(i,n),f=h.target,u=this.proxy;u.setCursor&&u.setCursor(f?f.cursor:"default"),s&&f!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(h,"mousemove",r),f&&f!==s&&this.dispatchToElement(h,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Gr(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Hs(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(h){typeof h[o]=="function"&&h[o].call(h,s),h.trigger&&h.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Gr(r,i);if(An(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],h=this._pointerSize,f=h/2,u=new N(r-f,i-f,h,h),l=a.length-1;l>=0;l--){var v=a[l];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(hi.copy(v.getBoundingRect()),v.transform&&hi.applyTransform(v.transform),hi.intersect(u)&&s.push(v))}if(s.length)for(var c=4,_=Math.PI/12,y=Math.PI*2,d=0;d<f;d+=c)for(var p=0;p<y;p+=_){var g=r+d*Math.cos(p),m=i+d*Math.sin(p);if(An(s,o,g,m,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Os);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Gr;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Hr);j(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ja.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=to(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||qa(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Ws(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Ja:!0}return!1}function An(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=Ws(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ja)){t.target=o;break}}}function to(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var ro=32,Xr=7;function Ys(e){for(var t=0;e>=ro;)t|=e&1,e>>=1;return e+t}function En(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;Gs(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function Gs(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function In(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,h;o<s;)h=o+s>>>1,n(a,e[h])<0?s=h:o=h+1;var f=i-o;switch(f){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;f>0;)e[o+f]=e[o+f-1],f--}e[o]=a}}function fi(e,t,r,i,n,a){var o=0,s=0,h=1;if(a(e,t[r+n])>0){for(s=i-n;h<s&&a(e,t[r+n+h])>0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}else{for(s=n+1;h<s&&a(e,t[r+n-h])<=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}for(o++;o<h;){var u=o+(h-o>>>1);a(e,t[r+u])>0?o=u+1:h=u}return h}function ui(e,t,r,i,n,a){var o=0,s=0,h=1;if(a(e,t[r+n])<0){for(s=n+1;h<s&&a(e,t[r+n-h])<0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}else{for(s=i-n;h<s&&a(e,t[r+n+h])>=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}for(o++;o<h;){var u=o+(h-o>>>1);a(e,t[r+u])<0?h=u:o=u+1}return h}function Xs(e,t){var r=Xr,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function h(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;u(c)}}function f(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,u(c)}}function u(c){var _=i[c],y=n[c],d=i[c+1],p=n[c+1];n[c]=y+p,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var g=ui(e[d],e,_,y,0,t);_+=g,y-=g,y!==0&&(p=fi(e[_+y-1],e,d,p,p-1,t),p!==0&&(y<=p?l(_,y,d,p):v(_,y,d,p)))}function l(c,_,y,d){var p=0;for(p=0;p<_;p++)o[p]=e[c+p];var g=0,m=y,w=c;if(e[w++]=e[m++],--d===0){for(p=0;p<_;p++)e[w+p]=o[g+p];return}if(_===1){for(p=0;p<d;p++)e[w+p]=e[m+p];e[w+d]=o[g];return}for(var S=r,T,b,C;;){T=0,b=0,C=!1;do if(t(e[m],o[g])<0){if(e[w++]=e[m++],b++,T=0,--d===0){C=!0;break}}else if(e[w++]=o[g++],T++,b=0,--_===1){C=!0;break}while((T|b)<S);if(C)break;do{if(T=ui(e[m],o,g,_,0,t),T!==0){for(p=0;p<T;p++)e[w+p]=o[g+p];if(w+=T,g+=T,_-=T,_<=1){C=!0;break}}if(e[w++]=e[m++],--d===0){C=!0;break}if(b=fi(o[g],e,m,d,0,t),b!==0){for(p=0;p<b;p++)e[w+p]=e[m+p];if(w+=b,m+=b,d-=b,d===0){C=!0;break}}if(e[w++]=o[g++],--_===1){C=!0;break}S--}while(T>=Xr||b>=Xr);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),_===1){for(p=0;p<d;p++)e[w+p]=e[m+p];e[w+d]=o[g]}else{if(_===0)throw new Error;for(p=0;p<_;p++)e[w+p]=o[g+p]}}function v(c,_,y,d){var p=0;for(p=0;p<d;p++)o[p]=e[y+p];var g=c+_-1,m=d-1,w=y+d-1,S=0,T=0;if(e[w--]=e[g--],--_===0){for(S=w-(d-1),p=0;p<d;p++)e[S+p]=o[p];return}if(d===1){for(w-=_,g-=_,T=w+1,S=g+1,p=_-1;p>=0;p--)e[T+p]=e[S+p];e[w]=o[m];return}for(var b=r;;){var C=0,L=0,M=!1;do if(t(o[m],e[g])<0){if(e[w--]=e[g--],C++,L=0,--_===0){M=!0;break}}else if(e[w--]=o[m--],L++,C=0,--d===1){M=!0;break}while((C|L)<b);if(M)break;do{if(C=_-ui(o[m],e,c,_,_-1,t),C!==0){for(w-=C,g-=C,_-=C,T=w+1,S=g+1,p=C-1;p>=0;p--)e[T+p]=e[S+p];if(_===0){M=!0;break}}if(e[w--]=o[m--],--d===1){M=!0;break}if(L=d-fi(e[g],o,0,d,d-1,t),L!==0){for(w-=L,m-=L,d-=L,T=w+1,S=m+1,p=0;p<L;p++)e[T+p]=o[S+p];if(d<=1){M=!0;break}}if(e[w--]=e[g--],--_===0){M=!0;break}b--}while(C>=Xr||L>=Xr);if(M)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(w-=_,g-=_,T=w+1,S=g+1,p=_-1;p>=0;p--)e[T+p]=e[S+p];e[w]=o[m]}else{if(d===0)throw new Error;for(S=w-(d-1),p=0;p<d;p++)e[S+p]=o[p]}}return{mergeRuns:h,forceMergeRuns:f,pushRun:s}}function qs(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<ro){a=En(e,r,i,t),In(e,r,i,r+a,t);return}var o=Xs(e,t),s=Ys(n);do{if(a=En(e,r,i,t),a<s){var h=n;h>s&&(h=s),In(e,r,r+h,r+a,t),a=h}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var rt=1,Vr=2,Lr=4,On=!1;function li(){On||(On=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Fn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var $s=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Fn}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,qs(i,Fn)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)r=null;else if(n){r?r=r.slice():r=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),h=0;h<s.length;h++){var f=s[h];t.__dirty&&(f.__dirty|=rt),this._updateAndAddDisplayable(f,r,i)}t.__dirty=0}else{var u=t;r&&r.length?u.__clipPaths=r:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(li(),u.z=0),isNaN(u.z2)&&(li(),u.z2=0),isNaN(u.zlevel)&&(li(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var l=t.getDecalElement&&t.getDecalElement();l&&this._updateAndAddDisplayable(l,r,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=dt(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),qe;qe=k.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var re={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-re.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?re.bounceIn(e*2)*.5:re.bounceOut(e*2-1)*.5+.5}},ye=Math.pow,Bt=Math.sqrt,$e=1e-8,eo=1e-4,Bn=Bt(3),me=1/3,Lt=pr(),ot=pr(),Ir=pr();function Ot(e){return e>-$e&&e<$e}function io(e){return e>$e||e<-$e}function Z(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Hn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function no(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),h=3*(t-e),f=e-n,u=s*s-3*o*h,l=s*h-9*o*f,v=h*h-3*s*f,c=0;if(Ot(u)&&Ot(l))if(Ot(s))a[0]=0;else{var _=-h/s;_>=0&&_<=1&&(a[c++]=_)}else{var y=l*l-4*u*v;if(Ot(y)){var d=l/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(y>0){var g=Bt(y),m=u*s+1.5*o*(-l+g),w=u*s+1.5*o*(-l-g);m<0?m=-ye(-m,me):m=ye(m,me),w<0?w=-ye(-w,me):w=ye(w,me);var _=(-s-(m+w))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var S=(2*u*s-3*o*l)/(2*Bt(u*u*u)),T=Math.acos(S)/3,b=Bt(u),C=Math.cos(T),_=(-s-2*b*C)/(3*o),p=(-s+b*(C+Bn*Math.sin(T)))/(3*o),L=(-s+b*(C-Bn*Math.sin(T)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function ao(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,h=0;if(Ot(o)){if(io(a)){var f=-s/a;f>=0&&f<=1&&(n[h++]=f)}}else{var u=a*a-4*o*s;if(Ot(u))n[0]=-a/(2*o);else if(u>0){var l=Bt(u),f=(-a+l)/(2*o),v=(-a-l)/(2*o);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function Ze(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,h=(i-r)*n+r,f=(s-o)*n+o,u=(h-s)*n+s,l=(u-f)*n+f;a[0]=e,a[1]=o,a[2]=f,a[3]=l,a[4]=l,a[5]=u,a[6]=h,a[7]=i}function Zs(e,t,r,i,n,a,o,s,h,f,u){var l,v=.005,c=1/0,_,y,d,p;Lt[0]=h,Lt[1]=f;for(var g=0;g<1;g+=.05)ot[0]=Z(e,r,n,o,g),ot[1]=Z(t,i,a,s,g),d=sr(Lt,ot),d<c&&(l=g,c=d);c=1/0;for(var m=0;m<32&&!(v<eo);m++)_=l-v,y=l+v,ot[0]=Z(e,r,n,o,_),ot[1]=Z(t,i,a,s,_),d=sr(ot,Lt),_>=0&&d<c?(l=_,c=d):(Ir[0]=Z(e,r,n,o,y),Ir[1]=Z(t,i,a,s,y),p=sr(Ir,Lt),y<=1&&p<c?(l=y,c=p):v*=.5);return Bt(c)}function Us(e,t,r,i,n,a,o,s,h){for(var f=e,u=t,l=0,v=1/h,c=1;c<=h;c++){var _=c*v,y=Z(e,r,n,o,_),d=Z(t,i,a,s,_),p=y-f,g=d-u;l+=Math.sqrt(p*p+g*g),f=y,u=d}return l}function Q(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function zn(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function Vs(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,h=0;if(Ot(a)){if(io(o)){var f=-s/o;f>=0&&f<=1&&(n[h++]=f)}}else{var u=o*o-4*a*s;if(Ot(u)){var f=-o/(2*a);f>=0&&f<=1&&(n[h++]=f)}else if(u>0){var l=Bt(u),f=(-o+l)/(2*a),v=(-o-l)/(2*a);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function oo(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function Ue(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Qs(e,t,r,i,n,a,o,s,h){var f,u=.005,l=1/0;Lt[0]=o,Lt[1]=s;for(var v=0;v<1;v+=.05){ot[0]=Q(e,r,n,v),ot[1]=Q(t,i,a,v);var c=sr(Lt,ot);c<l&&(f=v,l=c)}l=1/0;for(var _=0;_<32&&!(u<eo);_++){var y=f-u,d=f+u;ot[0]=Q(e,r,n,y),ot[1]=Q(t,i,a,y);var c=sr(ot,Lt);if(y>=0&&c<l)f=y,l=c;else{Ir[0]=Q(e,r,n,d),Ir[1]=Q(t,i,a,d);var p=sr(Ir,Lt);d<=1&&p<l?(f=d,l=p):u*=.5}}return Bt(l)}function Ks(e,t,r,i,n,a,o){for(var s=e,h=t,f=0,u=1/o,l=1;l<=o;l++){var v=l*u,c=Q(e,r,n,v),_=Q(t,i,a,v),y=c-s,d=_-h;f+=Math.sqrt(y*y+d*d),s=c,h=_}return f}var Js=/cubic-bezier\(([0-9,\.e ]+)\)/;function so(e){var t=e&&Js.exec(e);if(t){var r=t[1].split(","),i=+Mr(r[0]),n=+Mr(r[1]),a=+Mr(r[2]),o=+Mr(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(h){return h<=0?0:h>=1?1:no(0,i,a,1,h,s)&&Z(0,n,o,1,s[0])}}}var js=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||or,this.ondestroy=t.ondestroy||or,this.onrestart=t.onrestart||or,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var h=n%i;this._startTime=t-h,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ue(t)?t:re[t]||so(t)},e}(),ho=function(){function e(t){this.value=t}return e}(),th=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new ho(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),ri=function(){function e(t){this._list=new th,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var h=i.head;i.remove(h),delete n[h.key],a=h.value,this._lastRemovedEntry=h}s?s.value=r:s=new ho(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),kn={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 pt(e){return e=Math.round(e),e<0?0:e>255?255:e}function rh(e){return e=Math.round(e),e<0?0:e>360?360:e}function ne(e){return e<0?0:e>1?1:e}function vi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?pt(parseFloat(t)/100*255):pt(parseInt(t,10))}function fr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ne(parseFloat(t)/100):ne(parseFloat(t))}function ci(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ft(e,t,r){return e+(t-e)*r}function nt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Zi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var fo=new ri(20),we=null;function mr(e,t){we&&Zi(we,t),we=fo.put(e,we||t.slice())}function ft(e,t){if(e){t=t||[];var r=fo.get(e);if(r)return Zi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in kn)return Zi(t,kn[i]),mr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){nt(t,0,0,0,1);return}return nt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),mr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){nt(t,0,0,0,1);return}return nt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),mr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var h=i.substr(0,o),f=i.substr(o+1,s-(o+1)).split(","),u=1;switch(h){case"rgba":if(f.length!==4)return f.length===3?nt(t,+f[0],+f[1],+f[2],1):nt(t,0,0,0,1);u=fr(f.pop());case"rgb":if(f.length>=3)return nt(t,vi(f[0]),vi(f[1]),vi(f[2]),f.length===3?u:fr(f[3])),mr(e,t),t;nt(t,0,0,0,1);return;case"hsla":if(f.length!==4){nt(t,0,0,0,1);return}return f[3]=fr(f[3]),Ui(f,t),mr(e,t),t;case"hsl":if(f.length!==3){nt(t,0,0,0,1);return}return Ui(f,t),mr(e,t),t;default:return}}nt(t,0,0,0,1)}}function Ui(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=fr(e[1]),n=fr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],nt(t,pt(ci(o,a,r+1/3)*255),pt(ci(o,a,r)*255),pt(ci(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function eh(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,h,f;if(o===0)h=0,f=0;else{s<.5?f=o/(a+n):f=o/(2-a-n);var u=((a-t)/6+o/2)/o,l=((a-r)/6+o/2)/o,v=((a-i)/6+o/2)/o;t===a?h=v-l:r===a?h=1/3+u-v:i===a&&(h=2/3+l-u),h<0&&(h+=1),h>1&&(h-=1)}var c=[h*360,f,s];return e[3]!=null&&c.push(e[3]),c}}function Vi(e,t){var r=ft(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return _r(r,r.length===4?"rgba":"rgb")}}function ih(e){var t=ft(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function uo(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],h=i-n;return r[0]=pt(Ft(o[0],s[0],h)),r[1]=pt(Ft(o[1],s[1],h)),r[2]=pt(Ft(o[2],s[2],h)),r[3]=ne(Ft(o[3],s[3],h)),r}}var nh=uo;function lo(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=ft(t[n]),s=ft(t[a]),h=i-n,f=_r([pt(Ft(o[0],s[0],h)),pt(Ft(o[1],s[1],h)),pt(Ft(o[2],s[2],h)),ne(Ft(o[3],s[3],h))],"rgba");return r?{color:f,leftIndex:n,rightIndex:a,value:i}:f}}var ah=lo;function oh(e,t,r,i){var n=ft(e);if(e)return n=eh(n),t!=null&&(n[0]=rh(t)),r!=null&&(n[1]=fr(r)),i!=null&&(n[2]=fr(i)),_r(Ui(n),"rgba")}function sh(e,t){var r=ft(e);if(r&&t!=null)return r[3]=ne(t),_r(r,"rgba")}function _r(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ae(e,t){var r=ft(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function hh(){return _r([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Nn=new ri(100);function fh(e){if(ie(e)){var t=Nn.get(e);return t||(t=Vi(e,-.1),Nn.put(e,t)),t}else if(le(e)){var r=H({},e);return r.colorStops=dr(e.colorStops,function(i){return{offset:i.offset,color:Vi(i.color,-.1)}}),r}return e}const Nu=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:uo,fastMapToColor:nh,lerp:lo,lift:Vi,liftColor:fh,lum:ae,mapToColor:ah,modifyAlpha:sh,modifyHSL:oh,parse:ft,random:hh,stringify:_r,toHex:ih},Symbol.toStringTag,{value:"Module"}));function uh(e){return e.type==="linear"}function lh(e){return e.type==="radial"}(function(){return k.hasGlobalWindow&&ue(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Qi=Array.prototype.slice;function Rt(e,t,r){return(t-e)*r+e}function di(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Rt(t[a],r[a],i);return e}function vh(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Rt(t[o][s],r[o][s],i)}return e}function Te(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function Wn(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function ch(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function dh(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var h=a;h<o;h++)i.push(r===1?n[h]:Qi.call(n[h]))}for(var f=i[0]&&i[0].length,h=0;h<i.length;h++)if(r===1)isNaN(i[h])&&(i[h]=n[h]);else for(var u=0;u<f;u++)isNaN(i[h][u])&&(i[h][u]=n[h][u])}}function ze(e){if(_t(e)){var t=e.length;if(_t(e[0])){for(var r=[],i=0;i<t;i++)r.push(Qi.call(e[i]));return r}return Qi.call(e)}return e}function ke(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function ph(e){return _t(e&&e[0])?2:1}var be=0,Ne=1,vo=2,Qr=3,Ki=4,Ji=5,Yn=6;function Gn(e){return e===Ki||e===Ji}function Ce(e){return e===Ne||e===vo}var qr=[0,0,0,0],_h=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Yn,h=r;if(_t(r)){var f=ph(r);s=f,(f===1&&!jr(r[0])||f===2&&!jr(r[0][0]))&&(o=!0)}else if(jr(r)&&!Ba(r))s=be;else if(ie(r))if(!isNaN(+r))s=be;else{var u=ft(r);u&&(h=u,s=Qr)}else if(le(r)){var l=H({},h);l.colorStops=dr(r.colorStops,function(c){return{offset:c.offset,color:ft(c.color)}}),uh(r)?s=Ki:lh(r)&&(s=Ji),h=l}a===0?this.valType=s:(s!==this.valType||s===Yn)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:h,rawValue:r,percent:0};return i&&(v.easing=i,v.easingFunc=ue(i)?i:re[i]||so(i)),n.push(v),v},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(y,d){return y.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,h=Ce(n),f=Gn(n),u=0;u<a;u++){var l=i[u],v=l.value,c=o.value;l.percent=l.time/t,s||(h&&u!==a-1?dh(v,c,n):f&&ch(v.colorStops,c.colorStops))}if(!s&&n!==Ji&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var _=i[0].value,u=0;u<a;u++)n===be?i[u].additiveValue=i[u].value-_:n===Qr?i[u].additiveValue=Te([],i[u].value,_,-1):Ce(n)&&(i[u].additiveValue=n===Ne?Te([],i[u].value,_,-1):Wn([],i[u].value,_,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,h=this.propName,f=a===Qr,u,l=this._lastFr,v=Math.min,c,_;if(s===1)c=_=o[0];else{if(r<0)u=0;else if(r<this._lastFrP){var y=v(l+1,s-1);for(u=y;u>=0&&!(o[u].percent<=r);u--);u=v(u,s-2)}else{for(u=l;u<s&&!(o[u].percent>r);u++);u=v(u-1,s-2)}_=o[u+1],c=o[u]}if(c&&_){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:v((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var g=i?this._additiveValue:f?qr:t[h];if((Ce(a)||f)&&!g&&(g=this._additiveValue=[]),this.discrete)t[h]=p<1?c.rawValue:_.rawValue;else if(Ce(a))a===Ne?di(g,c[n],_[n],p):vh(g,c[n],_[n],p);else if(Gn(a)){var m=c[n],w=_[n],S=a===Ki;t[h]={type:S?"linear":"radial",x:Rt(m.x,w.x,p),y:Rt(m.y,w.y,p),colorStops:dr(m.colorStops,function(b,C){var L=w.colorStops[C];return{offset:Rt(b.offset,L.offset,p),color:ke(di([],b.color,L.color,p))}}),global:w.global},S?(t[h].x2=Rt(m.x2,w.x2,p),t[h].y2=Rt(m.y2,w.y2,p)):t[h].r=Rt(m.r,w.r,p)}else if(f)di(g,c[n],_[n],p),i||(t[h]=ke(g));else{var T=Rt(c[n],_[n],p);i?this._additiveValue=T:t[h]=T}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===be?t[i]=t[i]+n:r===Qr?(ft(t[i],qr),Te(qr,qr,n,1),t[i]=ke(qr)):r===Ne?Te(t[i],t[i],n,1):r===vo&&Wn(t[i],t[i],n,1)},e}(),Cn=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){ti("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,tt(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],h=a[s];if(!h){h=a[s]=new _h(s);var f=void 0,u=this._getAdditiveTrack(s);if(u){var l=u.keyframes,v=l[l.length-1];f=v&&v.value,u.valType===Qr&&f&&(f=ke(f))}else f=this._target[s];if(f==null)continue;t>0&&h.addKeyframe(0,ze(f),n),this._trackKeys.push(s)}h.addKeyframe(t,ze(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],h=this._getAdditiveTrack(o),f=s.keyframes,u=f.length;if(s.prepare(n,h),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var l=f[u-1];l&&(r._target[s.propName]=l.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new js({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var _=r._additiveAnimators;if(_){for(var y=!1,d=0;d<_.length;d++)if(_[d]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(r._target,c);var p=r._onframeCbs;if(p)for(var d=0;d<p.length;d++)p[d](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return dr(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,h=s[i?0:s.length-1];h&&(t[a]=ze(h.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||tt(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Rr(){return new Date().getTime()}var gh=function(e){F(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Rr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(qe(i),!r._paused&&r.update())}qe(i)},t.prototype.start=function(){this._running||(this._time=Rr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Rr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Rr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new Cn(r,i.loop);return this.addAnimator(n),n},t}(Hr),yh=300,pi=k.domSupported,_i=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=dr(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Xn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},qn=!1;function ji(e){var t=e.pointerType;return t==="pen"||t==="touch"}function mh(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function gi(e){e&&(e.zrByTouch=!0)}function wh(e,t){return vt(e.dom,new Th(e,t),!0)}function co(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Th=function(){function e(t,r){this.stopPropagation=or,this.stopImmediatePropagation=or,this.preventDefault=or,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ct={mousedown:function(e){e=vt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=vt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=vt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=vt(this.dom,e);var t=e.toElement||e.relatedTarget;co(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){qn=!0,e=vt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){qn||(e=vt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=vt(this.dom,e),gi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ct.mousemove.call(this,e),ct.mousedown.call(this,e)},touchmove:function(e){e=vt(this.dom,e),gi(e),this.handler.processGesture(e,"change"),ct.mousemove.call(this,e)},touchend:function(e){e=vt(this.dom,e),gi(e),this.handler.processGesture(e,"end"),ct.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<yh&&ct.click.call(this,e)},pointerdown:function(e){ct.mousedown.call(this,e)},pointermove:function(e){ji(e)||ct.mousemove.call(this,e)},pointerup:function(e){ct.mouseup.call(this,e)},pointerout:function(e){ji(e)||ct.mouseout.call(this,e)}};j(["click","dblclick","contextmenu"],function(e){ct[e]=function(t){t=vt(this.dom,t),this.trigger(e,t)}});var tn={pointermove:function(e){ji(e)||tn.mousemove.call(this,e)},pointerup:function(e){tn.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function bh(e,t){var r=t.domHandlers;k.pointerEventsSupported?j(_i.pointer,function(i){We(t,i,function(n){r[i].call(e,n)})}):(k.touchEventsSupported&&j(_i.touch,function(i){We(t,i,function(n){r[i].call(e,n),mh(t)})}),j(_i.mouse,function(i){We(t,i,function(n){n=Tn(n),t.touching||r[i].call(e,n)})}))}function Ch(e,t){k.pointerEventsSupported?j(Xn.pointer,r):k.touchEventsSupported||j(Xn.mouse,r);function r(i){function n(a){a=Tn(a),co(e,a.target)||(a=wh(e,a),t.domHandlers[i].call(e,a))}We(t,i,n,{capture:!0})}}function We(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,As(e.domTarget,t,r,i)}function yi(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Es(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var $n=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Sh=function(e){F(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new $n(r,ct),pi&&(n._globalHandlerScope=new $n(document,tn)),bh(n,n._localHandlerScope),n}return t.prototype.dispose=function(){yi(this._localHandlerScope),pi&&yi(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,pi&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?Ch(this,i):yi(i)}},t}(Hr),po=1;k.hasGlobalWindow&&(po=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ve=po,rn=.4,en="#333",nn="#ccc",Lh="#eee",Zn=Ua,Un=5e-5;function Yt(e){return e>Un||e<-Un}var Gt=[],wr=[],mi=hr(),wi=Math.abs,_o=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Yt(this.rotation)||Yt(this.x)||Yt(this.y)||Yt(this.scaleX-1)||Yt(this.scaleY-1)||Yt(this.skewX)||Yt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Zn(i),this.invTransform=null);return}i=i||hr(),r?this.getLocalTransform(i):Zn(i),t&&(r?He(i,t,i):bn(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Gt);var i=Gt[0]<0?-1:1,n=Gt[1]<0?-1:1,a=((Gt[0]-i)*r+i)/Gt[0]||0,o=((Gt[1]-n)*r+n)/Gt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||hr(),Ka(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||hr(),He(wr,t.invTransform,r),r=wr);var i=this.originX,n=this.originY;(i||n)&&(mi[4]=i,mi[5]=n,He(wr,r,mi),wr[4]-=i,wr[5]-=n,r=wr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Er(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Er(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&wi(t[0]-1)>1e-10&&wi(t[3]-1)>1e-10?Math.sqrt(wi(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ph(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,h=t.anchorY,f=t.rotation||0,u=t.x,l=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||h){var _=i+s,y=n+h;r[4]=-_*a-v*y*o,r[5]=-y*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,f&&Va(r,r,f),r[4]+=i+u,r[5]+=n+l,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),oe=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ph(e,t){for(var r=0;r<oe.length;r++){var i=oe[r];e[i]=t[i]}}var Vn={};function et(e,t){t=t||lr;var r=Vn[t];r||(r=Vn[t]=new ri(500));var i=r.get(e);return i==null&&(i=vr.measureText(e,t).width,r.put(e,i)),i}function Qn(e,t,r,i){var n=et(e,t),a=Sn(t),o=Kr(0,n,r),s=Pr(0,a,i),h=new N(o,s,n,a);return h}function Mh(e,t,r,i){var n=((e||"")+"").split(`
|
|
2
2
|
`),a=n.length;if(a===1)return Qn(n[0],t,r,i);for(var o=new N(0,0,0,0),s=0;s<n.length;s++){var h=Qn(n[s],t,r,i);s===0?o.copy(h):o.union(h)}return o}function Kr(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Pr(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Sn(e){return et("国",e)}function se(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Rh(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,h=r.x,f=r.y,u="left",l="top";if(i instanceof Array)h+=se(i[0],r.width),f+=se(i[1],r.height),u=null,l=null;else switch(i){case"left":h-=n,f+=s,u="right",l="middle";break;case"right":h+=n+o,f+=s,l="middle";break;case"top":h+=o/2,f-=n,u="center",l="bottom";break;case"bottom":h+=o/2,f+=a+n,u="center";break;case"inside":h+=o/2,f+=s,u="center",l="middle";break;case"insideLeft":h+=n,f+=s,l="middle";break;case"insideRight":h+=o-n,f+=s,u="right",l="middle";break;case"insideTop":h+=o/2,f+=n,u="center";break;case"insideBottom":h+=o/2,f+=a-n,u="center",l="bottom";break;case"insideTopLeft":h+=n,f+=n;break;case"insideTopRight":h+=o-n,f+=n,u="right";break;case"insideBottomLeft":h+=n,f+=a-n,l="bottom";break;case"insideBottomRight":h+=o-n,f+=a-n,u="right",l="bottom";break}return e=e||{},e.x=h,e.y=f,e.align=u,e.verticalAlign=l,e}var Ti="__zr_normal__",bi=oe.concat(["ignore"]),xh=fe(oe,function(e,t){return e[t]=!0,e},{ignore:!1}),Tr={},Dh=new N(0,0,0,0),ei=function(){function e(t){this.id=pn(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,h=!1;a.parent=n?this:null;var f=!1;if(a.copyTransform(r),i.position!=null){var u=Dh;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Tr,i,u):Rh(Tr,i,u),a.x=Tr.x,a.y=Tr.y,o=Tr.align,s=Tr.verticalAlign;var l=i.origin;if(l&&i.rotation!=null){var v=void 0,c=void 0;l==="center"?(v=u.width*.5,c=u.height*.5):(v=se(l[0],u.width),c=se(l[1],u.height)),f=!0,a.originX=-a.x+v+(n?0:u.x),a.originY=-a.y+c+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],f||(a.originX=-_[0],a.originY=-_[1]));var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,g=void 0,m=void 0;y&&this.canBeInsideText()?(p=i.insideFill,g=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(g==null||g==="auto")&&(g=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,g=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(g==null||g==="auto")&&(g=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||g!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(h=!0,d.fill=p,d.stroke=g,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=rt,h&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?nn:en},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&ft(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,_r(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},H(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Dt(t))for(var i=t,n=tt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ti)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,bi)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Ti,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===Ti,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,h=this.stateTransition;if(!(dt(s,t)>=0&&(r||s.length===1))){var f;if(this.stateProxy&&!a&&(f=this.stateProxy(t)),f||(f=this.states&&this.states[t]),!f&&!a){ti("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(f);var u=!!(f&&f.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,f,this._normalState,r,!i&&!this.__inHover&&h&&h.duration>0,h);var l=this._textContent,v=this._textGuide;return l&&l.useState(t,r,i,u),v&&v.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rt),f}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var h=0;h<o;h++)if(t[h]!==a[h]){s=!1;break}}if(s)return;for(var h=0;h<o;h++){var f=t[h],u=void 0;this.stateProxy&&(u=this.stateProxy(f,t)),u||(u=this.states[f]),u&&n.push(u)}var l=n[o-1],v=!!(l&&l.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),_=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!r&&!this.__inHover&&_&&_.duration>0,_);var y=this._textContent,d=this._textGuide;y&&y.useStates(t,r,v),d&&d.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rt)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=dt(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=dt(n,t),o=dt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];H(r,a),a.textConfig&&(i=i||{},H(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=H({},n?this.textConfig:i.textConfig),H(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var h={},f=!1,u=0;u<bi.length;u++){var l=bi[u],v=a&&xh[l];r&&r[l]!=null?v?(f=!0,h[l]=r[l]):this[l]=r[l]:s&&i[l]!=null&&(v?(f=!0,h[l]=i[l]):this[l]=i[l])}if(!a)for(var u=0;u<this.animators.length;u++){var c=this.animators[u],_=c.targetName;c.getLoop()||c.__changeFinalValue(_?(r||i)[_]:r||i)}f&&this._transitionState(t,h,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new _o,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=rt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,i=this._textGuide;r&&(r.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new Cn(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=dt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){Ci(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){Ci(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=Ci(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=rt;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var h=this[n]=[];s(this,h)}return this[n]},set:function(h){this[a]=h[0],this[o]=h[1],this[n]=h,s(this,h)}});function s(h,f){Object.defineProperty(f,0,{get:function(){return h[a]},set:function(u){h[a]=u}}),Object.defineProperty(f,1,{get:function(){return h[o]},set:function(u){h[o]=u}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();_n(ei,Hr);_n(ei,_o);function Ci(e,t,r,i,n){r=r||{};var a=[];go(e,"",e,t,r,i,a,n);var o=a.length,s=!1,h=r.done,f=r.aborted,u=function(){s=!0,o--,o<=0&&(s?h&&h():f&&f())},l=function(){o--,o<=0&&(s?h&&h():f&&f())};o||h&&h(),a.length>0&&r.during&&a[0].during(function(_,y){r.during(y)});for(var v=0;v<a.length;v++){var c=a[v];u&&c.done(u),l&&c.aborted(l),r.force&&c.duration(r.duration),c.start(r.easing)}return a}function Si(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function Ah(e){return _t(e[0])}function Eh(e,t,r){if(_t(t[r]))if(_t(e[r])||(e[r]=[]),Oa(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),Si(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(Ah(n))for(var s=n[0].length,h=0;h<o;h++)a[h]?Si(a[h],n[h],s):a[h]=Array.prototype.slice.call(n[h]);else Si(a,n,o);a.length=n.length}else e[r]=t[r]}function Ih(e,t){return e===t||_t(e)&&_t(t)&&Oh(e,t)}function Oh(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function go(e,t,r,i,n,a,o,s){for(var h=tt(i),f=n.duration,u=n.delay,l=n.additive,v=n.setToFinal,c=!Dt(a),_=e.animators,y=[],d=0;d<h.length;d++){var p=h[d],g=i[p];if(g!=null&&r[p]!=null&&(c||a[p]))if(Dt(g)&&!_t(g)&&!le(g)){if(t){s||(r[p]=g,e.updateDuringAnimation(t));continue}go(e,p,r[p],g,n,a&&a[p],o,s)}else y.push(p);else s||(r[p]=g,e.updateDuringAnimation(t),y.push(p))}var m=y.length;if(!l&&m)for(var w=0;w<_.length;w++){var S=_[w];if(S.targetName===t){var T=S.stopTracks(y);if(T){var b=dt(_,S);_.splice(b,1)}}}if(n.force||(y=Ni(y,function(P){return!Ih(i[P],r[P])}),m=y.length),m>0||n.force&&!o.length){var C=void 0,L=void 0,M=void 0;if(s){L={},v&&(C={});for(var w=0;w<m;w++){var p=y[w];L[p]=r[p],v?C[p]=i[p]:r[p]=i[p]}}else if(v){M={};for(var w=0;w<m;w++){var p=y[w];M[p]=ze(r[p]),Eh(r,i,p)}}var S=new Cn(r,!1,!1,l?Ni(_,function(R){return R.targetName===t}):null);S.targetName=t,n.scope&&(S.scope=n.scope),v&&C&&S.whenWithKeys(0,C,y),M&&S.whenWithKeys(0,M,y),S.whenWithKeys(f??500,s?L:i,y).delay(u||0),e.addAnimator(S,t),o.push(S)}}var yo=function(e){F(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=dt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=dt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new N(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var h=n[s];if(!(h.ignore||h.invisible)){var f=h.getBoundingRect(),u=h.getLocalTransform(a);u?(N.applyTransform(i,f,u),o=o||i.clone(),o.union(i)):(o=o||f.clone(),o.union(f))}}return o||i},t}(ei);yo.prototype.type="group";/*!
|
|
3
3
|
* ZRender, a high performance 2d drawing library.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as M,H as C,I as F,r as k}from"./vendor-
|
|
1
|
+
import{G as M,H as C,I as F,r as k}from"./vendor-5iCEqDpV.js";var z={},l={},q;function L(){if(q)return l;q=1,Object.defineProperty(l,"__esModule",{value:!0}),l.pick=void 0;function c(i,t){var e={};return t.forEach(function(n){e[n]=i[n]}),e}return l.pick=c,l}var d={},I;function U(){if(I)return d;I=1,Object.defineProperty(d,"__esModule",{value:!0}),d.isFunction=void 0;function c(i){return typeof i=="function"}return d.isFunction=c,d}var f={},b;function j(){if(b)return f;b=1,Object.defineProperty(f,"__esModule",{value:!0}),f.isString=void 0;function c(i){return typeof i=="string"}return f.isString=c,f}var v={},O;function H(){if(O)return v;O=1,Object.defineProperty(v,"__esModule",{value:!0}),v.isEqual=void 0;var c=M,i=c.__importDefault(C());return v.isEqual=i.default,v}Object.defineProperty(z,"__esModule",{value:!0});var u=M,R=u.__importStar(k),m=F(),w=L(),E=U(),D=j(),p=H(),N=function(c){u.__extends(i,c);function i(t){var e=c.call(this,t)||this;return e.echarts=t.echarts,e.ele=null,e.isInitialResize=!0,e.eventHandlerRefs={},e}return i.prototype.componentDidMount=function(){this.renderNewEcharts()},i.prototype.componentDidUpdate=function(t){var e=this.props.shouldSetOption;if(!((0,E.isFunction)(e)&&!e(t,this.props))){if(!(0,p.isEqual)(t.theme,this.props.theme)||!(0,p.isEqual)(t.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();(0,p.isEqual)(t.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,p.isEqual)((0,w.pick)(this.props,r),(0,w.pick)(t,r))||this.updateEChartsOption(),(!(0,p.isEqual)(t.style,this.props.style)||!(0,p.isEqual)(t.className,this.props.className))&&this.resize()}},i.prototype.componentWillUnmount=function(){this.dispose()},i.prototype.initEchartsInstance=function(){return u.__awaiter(this,void 0,void 0,function(){var t=this;return u.__generator(this,function(e){return[2,new Promise(function(n){t.echarts.init(t.ele,t.props.theme,t.props.opts);var r=t.getEchartsInstance();r.on("finished",function(){var s=t.ele.clientWidth,o=t.ele.clientHeight;t.echarts.dispose(t.ele);var a=u.__assign({width:s,height:o},t.props.opts);n(t.echarts.init(t.ele,t.props.theme,a))})})]})})},i.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},i.prototype.dispose=function(){if(this.ele){try{(0,m.clear)(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},i.prototype.renderNewEcharts=function(){return u.__awaiter(this,void 0,void 0,function(){var t,e,n,r,s,o,a=this;return u.__generator(this,function(h){switch(h.label){case 0:return t=this.props,e=t.onEvents,n=t.onChartReady,r=t.autoResize,s=r===void 0?!0:r,[4,this.initEchartsInstance()];case 1:return h.sent(),o=this.updateEChartsOption(),this.bindEvents(o,e||{}),(0,E.isFunction)(n)&&n(o),this.ele&&s&&(0,m.bind)(this.ele,function(){a.resize()}),[2]}})})},i.prototype.bindEvents=function(t,e){var n=this,r=function(o,a){if((0,D.isString)(o)&&(0,E.isFunction)(a)){var h=function(g){a(g,t)};t.on(o,h),n.eventHandlerRefs[o]=h}};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r(s,e[s])},i.prototype.unbindEvents=function(t){for(var e=0,n=Object.entries(this.eventHandlerRefs);e<n.length;e++){var r=n[e],s=r[0],o=r[1];t.off(s,o)}this.eventHandlerRefs={}},i.prototype.updateEChartsOption=function(){var t=this.props,e=t.option,n=t.notMerge,r=n===void 0?!1:n,s=t.replaceMerge,o=s===void 0?null:s,a=t.lazyUpdate,h=a===void 0?!1:a,g=t.showLoading,y=t.loadingOption,S=y===void 0?null:y,_=this.getEchartsInstance();return _.setOption(e,{notMerge:r,replaceMerge:o,lazyUpdate:h}),g?_.showLoading(S):_.hideLoading(),_},i.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize({width:"auto",height:"auto"})}catch(e){console.warn(e)}this.isInitialResize=!1},i.prototype.render=function(){var t=this,e=this.props,n=e.style,r=e.className,s=r===void 0?"":r;e.echarts,e.option,e.theme,e.notMerge,e.replaceMerge,e.lazyUpdate,e.showLoading,e.loadingOption,e.opts,e.onChartReady,e.onEvents,e.shouldSetOption,e.autoResize;var o=u.__rest(e,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),a=u.__assign({height:300},n);return R.default.createElement("div",u.__assign({ref:function(h){t.ele=h},style:a,className:"echarts-for-react ".concat(s)},o))},i}(R.PureComponent),P=z.default=N;export{P as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as o,b as i,r as e}from"./index-
|
|
1
|
+
import{h as o,b as i,r as e}from"./index-BzuBtvAC.js";const r={configRequest(){return{url:"/api/config",method:"GET"}},configInfoRequest(){return{url:"/api/config/info",method:"GET"}},providersRequest(){return{url:"/api/providers",method:"GET"}},configInfo:async()=>e(r.configInfoRequest()),providers:async()=>e(r.providersRequest()),saveConfig:async n=>{await o(i.put("/api/config",n))}};export{r as g};
|