MCPcopy
hub / github.com/pathwaycom/pathway / q

Function q

python/pathway/web_dashboard/frontend/assets/index-BCRWi5Lr.js:507–507  ·  view source on GitHub ↗
(r,e,t)

Source from the content-addressed store, hash-verified

505OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
506PERFORMANCE OF THIS SOFTWARE.
507***************************************************************************** */var oB=function(r,e){return oB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},oB(r,e)};function le(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");oB(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Bm=function(){return Bm=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Bm.apply(this,arguments)};function yRe(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]]);return t}function zj(r,e,t,a){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(a.next(c))}catch(f){o(f)}}function l(c){try{u(a.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):n(c.value).then(s,l)}u((a=a.apply(r,[])).next())})}function Vj(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(c){u=[6,c],n=0}finally{a=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var mRe=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),bRe=function(){function r(){this.browser=new mRe,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 r}(),Vt=new bRe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vt.wxa=!0,Vt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Vt.worker=!0:!Vt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Vt.node=!0,Vt.svgSupported=!0):_Re(navigator.userAgent,Vt);function _Re(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var W3=12,tse="sans-serif",tu=W3+"px "+tse,xRe=20,SRe=100,wRe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function TRe(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-xRe)/SRe;e[a]=n}return e}var CRe=TRe(wRe),bi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=bi.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||tu),r.measureText(t);t=t||"",a=a||tu;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||W3,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=CRe[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}};function rse(r){for(var e in bi)r[e]&&(bi[e]=r[e])}var ase=_o(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),nse=_o(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),jp=Object.prototype.toString,XT=Array.prototype,ARe=XT.forEach,ERe=XT.filter,Y3=XT.slice,MRe=XT.map,Gj=(function(){}).constructor,w_=Gj?Gj.prototype:null,j3="__proto__",DRe=2311;function X3(){return DRe++}function ZT(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Xe(r){if(r==null||typeof r!="object")return r;var e=r,t=jp.call(r);if(t==="[object Array]"){if(!rp(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=Xe(r[a])}}else if(nse[t]){if(!rp(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!ase[t]&&!rp(r)&&!Nv(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==j3&&(e[o]=Xe(r[o]))}return e}function St(r,e,t){if(!et(e)||!et(r))return t?Xe(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==j3){var n=r[a],i=e[a];et(i)&&et(n)&&!_e(i)&&!_e(n)&&!Nv(i)&&!Nv(n)&&!sB(i)&&!sB(n)&&!rp(i)&&!rp(n)?St(n,i,t):(t||!(a in r))&&(r[a]=Xe(e[a]))}return r}function KT(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=St(t,r[a],e);return t}function ye(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==j3&&(r[t]=e[t]);return r}function Je(r,e,t){for(var a=Ft(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var RRe=bi.createCanvas;function _t(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function Z3(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function sa(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else Je(r,e,t)}function Cn(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function q(r,e,t){if(r&&e)if(r.forEach&&r.forEach===ARe)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Se(r,e,t){if(!r)return[];if(!e)return QT(r);if(r.map&&r.map===MRe)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function _o(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function tr(r,e,t){if(!r)return[];if(!e)return QT(r);if(r.filter&&r.filter===ERe)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Xc(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Ft(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function LRe(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Y3.call(arguments)))}}var Be=w_&&je(w_.bind)?w_.call.bind(w_.bind):LRe;function mt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Y3.call(arguments)))}}function _e(r){return Array.isArray?Array.isArray(r):jp.call(r)==="[object Array]"}function je(r){return typeof r=="function"}function Ne(r){return typeof r=="string"}function $S(r){return jp.call(r)==="[object String]"}function Yt(r){return typeof r=="number"}function et(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function sB(r){return!!ase[jp.call(r)]}function ri(r){return!!nse[jp.call(r)]}function Nv(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function x1(r){return r.colorStops!=null}function ise(r){return r.image!=null}function ose(r){return jp.call(r)==="[object RegExp]"}function Tn(r){return r!==r}function un(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function Ue(r,e){return r??e}function mi(r,e,t){return r??e??t}function QT(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Y3.apply(r,e)}function S1(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function An(r,e){if(!r)throw new Error(e)}function Ni(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var sse="__ec_primitive__";function v0(r){r[sse]=!0}function rp(r){return r[sse]}var IRe=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Ft(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r}(),lse=typeof Map=="function";function PRe(){return lse?new Map:new IRe}var use=function(){function r(e){var t=_e(e);this.data=PRe();var a=this;e instanceof r?e.each(n):e&&q(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return lse?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function He(r){return new use(r)}function dp(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function w1(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&ye(t,e),t}function K3(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Fe(r,e){return r.hasOwnProperty(e)}function ia(){}var zm=180/Math.PI,kRe=Number.EPSILON||Math.pow(2,-52);const ORe=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:kRe,HashMap:use,RADIAN_TO_DEGREE:zm,assert:An,bind:Be,clone:Xe,concatArray:dp,createCanvas:RRe,createHashMap:He,createObject:w1,curry:mt,defaults:Je,disableUserSelect:K3,each:q,eqNaN:Tn,extend:ye,filter:tr,find:Xc,guid:X3,hasOwn:Fe,indexOf:_t,inherits:Z3,isArray:_e,isArrayLike:Cn,isBuiltInObject:sB,isDom:Nv,isFunction:je,isGradientObject:x1,isImagePatternObject:ise,isNumber:Yt,isObject:et,isPrimitive:rp,isRegExp:ose,isString:Ne,isStringSafe:$S,isTypedArray:ri,keys:Ft,logError:ZT,map:Se,merge:St,mergeAll:KT,mixin:sa,noop:ia,normalizeCssArray:S1,reduce:_o,retrieve:un,retrieve2:Ue,retrieve3:mi,setAsPrimitive:v0,slice:QT,trim:Ni},Symbol.toStringTag,{value:"Module"}));function Zc(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Nn(r,e){return r[0]=e[0],r[1]=e[1],r}function zs(r){return[r[0],r[1]]}function JT(r,e,t){return r[0]=e,r[1]=t,r}function lB(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function WS(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function fc(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function h0(r){return Math.sqrt(Q3(r))}var NRe=h0;function Q3(r){return r[0]*r[0]+r[1]*r[1]}var BRe=Q3;function zRe(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function VRe(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function GRe(r,e){return r[0]*e[0]+r[1]*e[1]}function Vm(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function th(r,e){var t=h0(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function YS(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var zl=YS;function cse(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var _c=cse;function FRe(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Gm(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function oa(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Vl(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Gl(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const HRe=Object.freeze(Object.defineProperty({__proto__:null,add:lB,applyTransform:oa,clone:zs,copy:Nn,create:Zc,dist:zl,distSquare:_c,distance:YS,distanceSquare:cse,div:VRe,dot:GRe,len:h0,lenSquare:Q3,length:NRe,lengthSquare:BRe,lerp:Gm,max:Gl,min:Vl,mul:zRe,negate:FRe,normalize:th,scale:Vm,scaleAndAdd:WS,set:JT,sub:fc},Symbol.toStringTag,{value:"Module"}));var ld=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),qRe=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ld(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new ld(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ld(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ld(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ld(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ld(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),Eo=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}(),URe=Math.log(2);function uB(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/URe);return r[t][l]}for(var u=a|1<<t,c=t+1;a&1<<c;)c++;for(var f=0,v=0,h=0;v<s;v++){var d=1<<v;d&n||(f+=(h%2?-1:1)*r[t][v]*uB(r,e-1,c,u,n|d,i),h++)}return i[o]=f,f}function Fj(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=uB(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*uB(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var jS="___zrEVENTSAVED",ek=[];function $Re(r,e,t,a,n){return cB(ek,e,a,n,!0)&&cB(r,t,ek[0],ek[1])}function WRe(r,e){r&&t(r),e&&t(e);function t(a){var n=a[jS];n&&(n.clearMarkers&&n.clearMarkers(),delete a[jS])}}function cB(r,e,t,a,n){if(e.getBoundingClientRect&&Vt.domSupported&&!fse(e)){var i=e[jS]||(e[jS]={}),o=YRe(e,i),s=jRe(o,i,n);if(s)return s(r,t,a),!0}return!1}function YRe(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){q(t,function(c){c.parentNode&&c.parentNode.removeChild(c)})},t}function jRe(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,v=c.left,h=c.top;o.push(v,h),l=l&&i&&v===i[f]&&h===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Fj(s,o):Fj(o,s))}function fse(r){return r.nodeName.toUpperCase()==="CANVAS"}var XRe=/([&<>"'])/g,ZRe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function zn(r){return r==null?"":(r+"").replace(XRe,function(e,t){return ZRe[t]})}var KRe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tk=[],QRe=Vt.browser.firefox&&+Vt.browser.version.split(".")[0]<39;function fB(r,e,t,a){return t=t||{},a?Hj(r,e,t):QRe&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Hj(r,e,t),t}function Hj(r,e,t){if(Vt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(fse(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(cB(tk,r,a,n)){t.zrX=tk[0],t.zrY=tk[1];return}}t.zrX=t.zrY=0}function J3(r){return r||window.event}function oo(r,e,t){if(e=J3(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&fB(r,o,e,t)}else{fB(r,e,e,t);var i=JRe(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&KRe.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function JRe(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function vB(r,e,t,a){r.addEventListener(e,t,a)}function eLe(r,e,t,a){r.removeEventListener(e,t,a)}var ru=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function qj(r){return r.which===2||r.which===3}var tLe=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=fB(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in rk)if(rk.hasOwnProperty(t)){var a=rk[t](this._track,e);if(a)return a}},r}();function Uj(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function rLe(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var rk={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=Uj(a)/Uj(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=rLe(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Wa(){return[1,0,0,1,0,0]}function T1(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function C1(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function $o(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Qo(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function pu(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-a[0])+c*(u-a[1])+a[0],r[5]=f*(u-a[1])-c*(o-a[0])+a[1],r}function eC(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function xo(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function vse(r){var e=Wa();return C1(e,r),e}const aLe=Object.freeze(Object.defineProperty({__proto__:null,clone:vse,copy:C1,create:Wa,identity:T1,invert:xo,mul:$o,rotate:pu,scale:eC,translate:Qo},Symbol.toStringTag,{value:"Module"}));var at=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}(),pv=Math.min,Ud=Math.max,hB=Math.abs,$j=["x","y"],nLe=["width","height"],Ef=new at,Mf=new at,Df=new at,Rf=new at,Pi=hse(),mm=Pi.minTv,dB=Pi.maxTv,Fm=[0,0],nt=function(){function r(e,t,a,n){r.set(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=pv(e.x,this.x),a=pv(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ud(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ud(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Wa();return Qo(i,i,[-t.x,-t.y]),eC(i,i,[a,n]),Qo(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&at.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(iLe,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(oLe,t.x,t.y,t.width,t.height));var s=!!a;Pi.reset(n,s);var l=Pi.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,v=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,g=t.y+l,y=t.y+t.height-l;if(u>c||f>v||h>d||g>y)return!1;var b=!(c<h||d<u||v<g||y<f);return(s||i)&&(Fm[0]=1/0,Fm[1]=0,Wj(u,c,h,d,0,s,i,o),Wj(f,v,g,y,1,s,i,o),s&&at.copy(a,b?Pi.useDir?Pi.dirMinTv:mm:dB)),b},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ef.x=Df.x=t.x,Ef.y=Rf.y=t.y,Mf.x=Rf.x=t.x+t.width,Mf.y=Df.y=t.y+t.height,Ef.transform(a),Rf.transform(a),Mf.transform(a),Df.transform(a),e.x=pv(Ef.x,Mf.x,Df.x,Rf.x),e.y=pv(Ef.y,Mf.y,Df.y,Rf.y);var l=Ud(Ef.x,Mf.x,Df.x,Rf.x),u=Ud(Ef.y,Mf.y,Df.y,Rf.y);e.width=l-e.x,e.height=u-e.y},r}(),iLe=new nt(0,0,0,0),oLe=new nt(0,0,0,0);function Wj(r,e,t,a,n,i,o,s){var l=hB(e-t),u=hB(a-r),c=pv(l,u),f=$j[n],v=$j[1-n],h=nLe[n];e<t||a<r?l<u?(i&&(dB[f]=-l),s&&(o[f]=e,o[h]=0)):(i&&(dB[f]=u),s&&(o[f]=r,o[h]=0)):(o&&(o[f]=Ud(r,t),o[h]=pv(e,a)-o[f]),i&&(c<Fm[0]||Pi.useDir)&&(Fm[0]=pv(c,Fm[0]),(l<u||!Pi.bidirectional)&&(mm[f]=l,mm[v]=0,Pi.useDir&&Pi.calcDirMTV()),(l>=u||!Pi.bidirectional)&&(mm[f]=-u,mm[v]=0,Pi.useDir&&Pi.calcDirMTV())))}function hse(){var r=0,e=new at,t=new at,a={minTv:new at,maxTv:new at,useDir:!1,dirMinTv:new at,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=Ud(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),c=l*i.y+u*i.x;if(n(c)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(t.x=s*u/c,t.y=s*l/c,n(t.x)&&n(t.y)){o.set(0,0);return}(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(i){return hB(i)<1e-10}return a}var dse="silent";function sLe(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:lLe}}function lLe(){ru(this.event)}var uLe=function(r){le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Eo),Ry=function(){function r(e,t){this.x=e,this.y=t}return r}(),cLe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ak=new nt(0,0,0,0),pse=function(r){le(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Ry(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new uLe,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new qRe(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(q(cLe,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=gse(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Ry(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ry(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=sLe(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Ry(t,a);if(Yj(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new nt(t-u,a-u,l,l),f=i.length-1;f>=0;f--){var v=i[f];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(ak.copy(v.getBoundingRect()),v.transform&&ak.applyTransform(v.transform),ak.intersect(c)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,g=Math.PI*2,y=0;y<u;y+=h)for(var b=0;b<g;b+=d){var _=t+y*Math.cos(b),x=a+y*Math.sin(b);if(Yj(s,o,_,x,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new tLe);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Ry;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Eo);q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){pse.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=gse(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||zl(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function fLe(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?dse:!0}return!1}function Yj(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=fLe(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==dse)){e.target=o;break}}}function gse(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var yse=32,Ly=7;function vLe(r){for(var e=0;r>=yse;)e|=r&1,r>>=1;return r+e}function jj(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;hLe(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function hLe(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function Xj(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function nk(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function ik(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function dLe(r,e){var t=Ly,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,c(h)}}function c(h){var d=a[h],g=n[h],y=a[h+1],b=n[h+1];n[h]=g+b,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var _=ik(r[y],r,d,g,0,e);d+=_,g-=_,g!==0&&(b=nk(r[d+g-1],r,y,b,b-1,e),b!==0&&(g<=b?f(d,g,y,b):v(d,g,y,b)))}function f(h,d,g,y){var b=0;for(b=0;b<d;b++)o[b]=r[h+b];var _=0,x=g,w=h;if(r[w++]=r[x++],--y===0){for(b=0;b<d;b++)r[w+b]=o[_+b];return}if(d===1){for(b=0;b<y;b++)r[w+b]=r[x+b];r[w+y]=o[_];return}for(var T=t,C,E,D;;){C=0,E=0,D=!1;do if(e(r[x],o[_])<0){if(r[w++]=r[x++],E++,C=0,--y===0){D=!0;break}}else if(r[w++]=o[_++],C++,E=0,--d===1){D=!0;break}while((C|E)<T);if(D)break;do{if(C=ik(r[x],o,_,d,0,e),C!==0){for(b=0;b<C;b++)r[w+b]=o[_+b];if(w+=C,_+=C,d-=C,d<=1){D=!0;break}}if(r[w++]=r[x++],--y===0){D=!0;break}if(E=nk(o[_],r,x,y,0,e),E!==0){for(b=0;b<E;b++)r[w+b]=r[x+b];if(w+=E,x+=E,y-=E,y===0){D=!0;break}}if(r[w++]=o[_++],--d===1){D=!0;break}T--}while(C>=Ly||E>=Ly);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),d===1){for(b=0;b<y;b++)r[w+b]=r[x+b];r[w+y]=o[_]}else{if(d===0)throw new Error;for(b=0;b<d;b++)r[w+b]=o[_+b]}}function v(h,d,g,y){var b=0;for(b=0;b<y;b++)o[b]=r[g+b];var _=h+d-1,x=y-1,w=g+y-1,T=0,C=0;if(r[w--]=r[_--],--d===0){for(T=w-(y-1),b=0;b<y;b++)r[T+b]=o[b];return}if(y===1){for(w-=d,_-=d,C=w+1,T=_+1,b=d-1;b>=0;b--)r[C+b]=r[T+b];r[w]=o[x];return}for(var E=t;;){var D=0,M=0,R=!1;do if(e(o[x],r[_])<0){if(r[w--]=r[_--],D++,M=0,--d===0){R=!0;break}}else if(r[w--]=o[x--],M++,D=0,--y===1){R=!0;break}while((D|M)<E);if(R)break;do{if(D=d-ik(o[x],r,h,d,d-1,e),D!==0){for(w-=D,_-=D,d-=D,C=w+1,T=_+1,b=D-1;b>=0;b--)r[C+b]=r[T+b];if(d===0){R=!0;break}}if(r[w--]=o[x--],--y===1){R=!0;break}if(M=y-nk(r[_],o,0,y,y-1,e),M!==0){for(w-=M,x-=M,y-=M,C=w+1,T=x+1,b=0;b<M;b++)r[C+b]=o[T+b];if(y<=1){R=!0;break}}if(r[w--]=r[_--],--d===0){R=!0;break}E--}while(D>=Ly||M>=Ly);if(R)break;E<0&&(E=0),E+=2}if(t=E,t<1&&(t=1),y===1){for(w-=d,_-=d,C=w+1,T=_+1,b=d-1;b>=0;b--)r[C+b]=r[T+b];r[w]=o[x]}else{if(y===0)throw new Error;for(T=w-(y-1),b=0;b<y;b++)r[T+b]=o[b]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function nS(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<yse){i=jj(r,t,a,e),Xj(r,t,a,t+i,e);return}var o=dLe(r,e),s=vLe(n);do{if(i=jj(r,t,a,e),i<s){var l=n;l>s&&(l=s),Xj(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var ki=1,bm=2,Nd=4,Zj=!1;function ok(){Zj||(Zj=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Kj(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var pLe=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Kj}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,nS(a,Kj)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),v=0;v<f.length;v++){var h=f[v];e.__dirty&&(h.__dirty|=ki),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(ok(),d.z=0),isNaN(d.z2)&&(ok(),d.z2=0),isNaN(d.zlevel)&&(ok(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,a);var y=e.getTextGuideLine();y&&this._updateAndAddDisplayable(y,s,a);var b=e.getTextContent();b&&this._updateAndAddDisplayable(b,s,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=_t(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),XS;XS=Vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Hm={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Hm.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Hm.bounceIn(r*2)*.5:Hm.bounceOut(r*2-1)*.5+.5}},T_=Math.pow,xc=Math.sqrt,ZS=1e-8,mse=1e-4,Qj=xc(3),C_=1/3,Ds=Zc(),fo=Zc(),ap=Zc();function vc(r){return r>-ZS&&r<ZS}function bse(r){return r>ZS||r<-ZS}function Ha(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Jj(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function KS(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,c=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,h=0;if(vc(c)&&vc(f))if(vc(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var g=f*f-4*c*v;if(vc(g)){var y=f/c,d=-s/o+y,b=-y/2;d>=0&&d<=1&&(i[h++]=d),b>=0&&b<=1&&(i[h++]=b)}else if(g>0){var _=xc(g),x=c*s+1.5*o*(-f+_),w=c*s+1.5*o*(-f-_);x<0?x=-T_(-x,C_):x=T_(x,C_),w<0?w=-T_(-w,C_):w=T_(w,C_);var d=(-s-(x+w))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var T=(2*c*s-3*o*f)/(2*xc(c*c*c)),C=Math.acos(T)/3,E=xc(c),D=Math.cos(C),d=(-s-2*E*D)/(3*o),b=(-s+E*(D+Qj*Math.sin(C)))/(3*o),M=(-s+E*(D-Qj*Math.sin(C)))/(3*o);d>=0&&d<=1&&(i[h++]=d),b>=0&&b<=1&&(i[h++]=b),M>=0&&M<=1&&(i[h++]=M)}}return h}function _se(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(vc(o)){if(bse(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(vc(c))n[0]=-i/(2*o);else if(c>0){var f=xc(c),u=(-i+f)/(2*o),v=(-i-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function kc(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,c=(l-s)*n+s,f=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=a}function xse(r,e,t,a,n,i,o,s,l,u,c){var f,v=.005,h=1/0,d,g,y,b;Ds[0]=l,Ds[1]=u;for(var _=0;_<1;_+=.05)fo[0]=Ha(r,t,n,o,_),fo[1]=Ha(e,a,i,s,_),y=_c(Ds,fo),y<h&&(f=_,h=y);h=1/0;for(var x=0;x<32&&!(v<mse);x++)d=f-v,g=f+v,fo[0]=Ha(r,t,n,o,d),fo[1]=Ha(e,a,i,s,d),y=_c(fo,Ds),d>=0&&y<h?(f=d,h=y):(ap[0]=Ha(r,t,n,o,g),ap[1]=Ha(e,a,i,s,g),b=_c(ap,Ds),g<=1&&b<h?(f=g,h=b):v*=.5);return c&&(c[0]=Ha(r,t,n,o,f),c[1]=Ha(e,a,i,s,f)),xc(h)}function gLe(r,e,t,a,n,i,o,s,l){for(var u=r,c=e,f=0,v=1/l,h=1;h<=l;h++){var d=h*v,g=Ha(r,t,n,o,d),y=Ha(e,a,i,s,d),b=g-u,_=y-c;f+=Math.sqrt(b*b+_*_),u=g,c=y}return f}function ln(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function pB(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function yLe(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(vc(i)){if(bse(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(vc(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=xc(c),u=(-o+f)/(2*i),v=(-o-f)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Sse(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function d0(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function wse(r,e,t,a,n,i,o,s,l){var u,c=.005,f=1/0;Ds[0]=o,Ds[1]=s;for(var v=0;v<1;v+=.05){fo[0]=ln(r,t,n,v),fo[1]=ln(e,a,i,v);var h=_c(Ds,fo);h<f&&(u=v,f=h)}f=1/0;for(var d=0;d<32&&!(c<mse);d++){var g=u-c,y=u+c;fo[0]=ln(r,t,n,g),fo[1]=ln(e,a,i,g);var h=_c(fo,Ds);if(g>=0&&h<f)u=g,f=h;else{ap[0]=ln(r,t,n,y),ap[1]=ln(e,a,i,y);var b=_c(ap,Ds);y<=1&&b<f?(u=y,f=b):c*=.5}}return l&&(l[0]=ln(r,t,n,u),l[1]=ln(e,a,i,u)),xc(f)}function mLe(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var v=f*c,h=ln(r,t,n,v),d=ln(e,a,i,v),g=h-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=h,l=d}return u}var bLe=/cubic-bezier\(([0-9,\.e ]+)\)/;function eV(r){var e=r&&bLe.exec(r);if(e){var t=e[1].split(","),a=+Ni(t[0]),n=+Ni(t[1]),i=+Ni(t[2]),o=+Ni(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:KS(0,a,i,1,l,s)&&Ha(0,n,o,1,s[0])}}}var _Le=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ia,this.ondestroy=e.ondestroy||ia,this.onrestart=e.onrestart||ia,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=je(e)?e:Hm[e]||eV(e)},r}(),Tse=function(){function r(e){this.value=e}return r}(),xLe=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Tse(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),pp=function(){function r(e){this._list=new xLe,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Tse(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),eX={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 Wo(r){return r=Math.round(r),r<0?0:r>255?255:r}function SLe(r){return r=Math.round(r),r<0?0:r>360?360:r}function p0(r){return r<0?0:r>1?1:r}function iS(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Wo(parseFloat(e)/100*255):Wo(parseInt(e,10))}function $l(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?p0(parseFloat(e)/100):p0(parseFloat(e))}function sk(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function hc(r,e,t){return r+(e-r)*t}function io(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function gB(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Cse=new pp(20),A_=null;function ud(r,e){A_&&gB(A_,e),A_=Cse.put(r,A_||e.slice())}function Vn(r,e){if(r){e=e||[];var t=Cse.get(r);if(t)return gB(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in eX)return gB(e,eX[a]),ud(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){io(e,0,0,0,1);return}return io(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),ud(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){io(e,0,0,0,1);return}return io(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),ud(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?io(e,+u[0],+u[1],+u[2],1):io(e,0,0,0,1);c=$l(u.pop());case"rgb":if(u.length>=3)return io(e,iS(u[0]),iS(u[1]),iS(u[2]),u.length===3?c:$l(u[3])),ud(r,e),e;io(e,0,0,0,1);return;case"hsla":if(u.length!==4){io(e,0,0,0,1);return}return u[3]=$l(u[3]),yB(u,e),ud(r,e),e;case"hsl":if(u.length!==3){io(e,0,0,0,1);return}return yB(u,e),ud(r,e),e;default:return}}io(e,0,0,0,1)}}function yB(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=$l(r[1]),n=$l(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],io(e,Wo(sk(o,i,t+1/3)*255),Wo(sk(o,i,t)*255),Wo(sk(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function wLe(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-f:t===i?l=1/3+c-v:a===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function QS(r,e){var t=Vn(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return mo(t,t.length===4?"rgba":"rgb")}}function TLe(r){var e=Vn(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function qm(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Wo(hc(o[0],s[0],l)),t[1]=Wo(hc(o[1],s[1],l)),t[2]=Wo(hc(o[2],s[2],l)),t[3]=p0(hc(o[3],s[3],l)),t}}var CLe=qm;function tV(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Vn(e[n]),s=Vn(e[i]),l=a-n,u=mo([Wo(hc(o[0],s[0],l)),Wo(hc(o[1],s[1],l)),Wo(hc(o[2],s[2],l)),p0(hc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var ALe=tV;function Wl(r,e,t,a){var n=Vn(r);if(r)return n=wLe(n),e!=null&&(n[0]=SLe(je(e)?e(n[0]):e)),t!=null&&(n[1]=$l(je(t)?t(n[1]):t)),a!=null&&(n[2]=$l(je(a)?a(n[2]):a)),mo(yB(n),"rgba")}function g0(r,e){var t=Vn(r);if(t&&e!=null)return t[3]=p0(e),mo(t,"rgba")}function mo(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function y0(r,e){var t=Vn(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function ELe(){return mo([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var tX=new pp(100);function JS(r){if(Ne(r)){var e=tX.get(r);return e||(e=QS(r,-.1),tX.put(r,e)),e}else if(x1(r)){var t=ye({},r);return t.colorStops=Se(r.colorStops,function(a){return{offset:a.offset,color:QS(a.color,-.1)}}),t}return r}const MLe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:qm,fastMapToColor:CLe,lerp:tV,lift:QS,liftColor:JS,lum:y0,mapToColor:ALe,modifyAlpha:g0,modifyHSL:Wl,parse:Vn,parseCssFloat:$l,parseCssInt:iS,random:ELe,stringify:mo,toHex:TLe},Symbol.toStringTag,{value:"Module"}));var ew=Math.round;function m0(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Vn(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var rX=1e-4;function dc(r){return r<rX&&r>-rX}function E_(r){return ew(r*1e3)/1e3}function mB(r){return ew(r*1e4)/1e4}function DLe(r){return"matrix("+E_(r[0])+","+E_(r[1])+","+E_(r[2])+","+E_(r[3])+","+mB(r[4])+","+mB(r[5])+")"}var RLe={left:"start",right:"end",center:"middle",middle:"middle"};function LLe(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function ILe(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function PLe(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Ase(r){return r&&!!r.image}function kLe(r){return r&&!!r.svgElement}function rV(r){return Ase(r)||kLe(r)}function Ese(r){return r.type==="linear"}function Mse(r){return r.type==="radial"}function Dse(r){return r&&(r.type==="linear"||r.type==="radial")}function tC(r){return"url(#"+r+")"}function Rse(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Lse(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*zm,n=Ue(r.scaleX,1),i=Ue(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+ew(o*zm)+"deg, "+ew(s*zm)+"deg)"),l.join(" ")}var OLe=function(){return Vt.hasGlobalWindow&&je(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),bB=Array.prototype.slice;function Pl(r,e,t){return(e-r)*t+r}function lk(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=Pl(e[i],t[i],a);return r}function NLe(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Pl(e[o][s],t[o][s],a)}return r}function M_(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function aX(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function BLe(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function zLe(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:bB.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function Um(r){if(Cn(r)){var e=r.length;if(Cn(r[0])){for(var t=[],a=0;a<e;a++)t.push(bB.call(r[a]));return t}return bB.call(r)}return r}function oS(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function VLe(r){return Cn(r&&r[0])?2:1}var D_=0,sS=1,Ise=2,_m=3,_B=4,xB=5,nX=6;function iX(r){return r===_B||r===xB}function R_(r){return r===sS||r===Ise}var Iy=[0,0,0,0],GLe=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=nX,l=t;if(Cn(t)){var u=VLe(t);s=u,(u===1&&!Yt(t[0])||u===2&&!Yt(t[0][0]))&&(o=!0)}else if(Yt(t)&&!Tn(t))s=D_;else if(Ne(t))if(!isNaN(+t))s=D_;else{var c=Vn(t);c&&(l=c,s=_m)}else if(x1(t)){var f=ye({},l);f.colorStops=Se(t.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),Ese(t)?s=_B:Mse(t)&&(s=xB),l=f}i===0?this.valType=s:(s!==this.valType||s===nX)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=je(a)?a:Hm[a]||eV(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(g,y){return g.time-y.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=R_(n),u=iX(n),c=0;c<i;c++){var f=a[c],v=f.value,h=o.value;f.percent=f.time/e,s||(l&&c!==i-1?zLe(v,h,n):u&&BLe(v.colorStops,h.colorStops))}if(!s&&n!==xB&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,c=0;c<i;c++)n===D_?a[c].additiveValue=a[c].value-d:n===_m?a[c].additiveValue=M_([],a[c].value,d,-1):R_(n)&&(a[c].additiveValue=n===sS?M_([],a[c].value,d,-1):aX([],a[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===_m,c,f=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var g=v(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=t);c--);c=v(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=v(c-1,s-2)}d=o[c+1],h=o[c]}if(h&&d){this._lastFr=c,this._lastFrP=t;var y=d.percent-h.percent,b=y===0?1:v((t-h.percent)/y,1);d.easingFunc&&(b=d.easingFunc(b));var _=a?this._additiveValue:u?Iy:e[l];if((R_(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=b<1?h.rawValue:d.rawValue;else if(R_(i))i===sS?lk(_,h[n],d[n],b):NLe(_,h[n],d[n],b);else if(iX(i)){var x=h[n],w=d[n],T=i===_B;e[l]={type:T?"linear":"radial",x:Pl(x.x,w.x,b),y:Pl(x.y,w.y,b),colorStops:Se(x.colorStops,function(E,D){var M=w.colorStops[D];return{offset:Pl(E.offset,M.offset,b),color:oS(lk([],E.color,M.color,b))}}),global:w.global},T?(e[l].x2=Pl(x.x2,w.x2,b),e[l].y2=Pl(x.y2,w.y2,b)):e[l].r=Pl(x.r,w.r,b)}else if(u)lk(_,h[n],d[n],b),a||(e[l]=oS(_));else{var C=Pl(h[n],d[n],b);a?this._additiveValue=C:e[l]=C}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===D_?e[a]=e[a]+n:t===_m?(Vn(e[a],Iy),M_(Iy,Iy,n,1),e[a]=oS(Iy)):t===sS?M_(e[a],e[a],n,1):t===Ise&&aX(e[a],e[a],n,1)},r}(),aV=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){ZT("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Ft(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new GLe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,v=f[f.length-1];u=v&&v.value,c.valType===_m&&u&&(u=oS(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Um(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Um(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new _Le({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var g=!1,y=0;y<d.length;y++)if(d[y]._clip){g=!0;break}g||(t._additiveAnimators=null)}for(var y=0;y<a.length;y++)a[y].step(t._target,h);var b=t._onframeCbs;if(b)for(var y=0;y<b.length;y++)b[y](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Se(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=Um(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Ft(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function $d(){return new Date().getTime()}var FLe=function(r){le(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=$d()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(XS(a),!t._paused&&t.update())}XS(a)},e.prototype.start=function(){this._running||(this._time=$d(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=$d(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=$d()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new aV(t,a.loop);return this.addAnimator(n),n},e}(Eo),HLe=300,uk=Vt.domSupported,ck=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Se(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),oX={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sX=!1;function SB(r){var e=r.pointerType;return e==="pen"||e==="touch"}function qLe(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function fk(r){r&&(r.zrByTouch=!0)}function ULe(r,e){return oo(r.dom,new $Le(r,e),!0)}function Pse(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var $Le=function(){function r(e,t){this.stopPropagation=ia,this.stopImmediatePropagation=ia,this.preventDefault=ia,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),No={mousedown:function(r){r=oo(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=oo(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=oo(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=oo(this.dom,r);var e=r.toElement||r.relatedTarget;Pse(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){sX=!0,r=oo(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){sX||(r=oo(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=oo(this.dom,r),fk(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),No.mousemove.call(this,r),No.mousedown.call(this,r)},touchmove:function(r){r=oo(this.dom,r),fk(r),this.handler.processGesture(r,"change"),No.mousemove.call(this,r)},touchend:function(r){r=oo(this.dom,r),fk(r),this.handler.processGesture(r,"end"),No.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<HLe&&No.click.call(this,r)},pointerdown:function(r){No.mousedown.call(this,r)},pointermove:function(r){SB(r)||No.mousemove.call(this,r)},pointerup:function(r){No.mouseup.call(this,r)},pointerout:function(r){SB(r)||No.mouseout.call(this,r)}};q(["click","dblclick","contextmenu"],function(r){No[r]=function(e){e=oo(this.dom,e),this.trigger(r,e)}});var wB={pointermove:function(r){SB(r)||wB.mousemove.call(this,r)},pointerup:function(r){wB.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function WLe(r,e){var t=e.domHandlers;Vt.pointerEventsSupported?q(ck.pointer,function(a){lS(e,a,function(n){t[a].call(r,n)})}):(Vt.touchEventsSupported&&q(ck.touch,function(a){lS(e,a,function(n){t[a].call(r,n),qLe(e)})}),q(ck.mouse,function(a){lS(e,a,function(n){n=J3(n),e.touching||t[a].call(r,n)})}))}function YLe(r,e){Vt.pointerEventsSupported?q(oX.pointer,t):Vt.touchEventsSupported||q(oX.mouse,t);function t(a){function n(i){i=J3(i),Pse(r,i.target)||(i=ULe(r,i),e.domHandlers[a].call(r,i))}lS(e,a,n,{capture:!0})}}function lS(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,vB(r.domTarget,e,t,a)}function vk(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&eLe(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var lX=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),jLe=function(r){le(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new lX(t,No),uk&&(n._globalHandlerScope=new lX(document,wB)),WLe(n,n._localHandlerScope),n}return e.prototype.dispose=function(){vk(this._localHandlerScope),uk&&vk(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,uk&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?YLe(this,a):vk(a)}},e}(Eo),kse=1;Vt.hasGlobalWindow&&(kse=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var tw=kse,TB=.4,CB="#333",AB="#ccc",XLe="#eee",uX=T1,cX=5e-5;function Lf(r){return r>cX||r<-cX}var If=[],cd=[],hk=Wa(),dk=Math.abs,Fl=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Lf(this.rotation)||Lf(this.x)||Lf(this.y)||Lf(this.scaleX-1)||Lf(this.scaleY-1)||Lf(this.skewX)||Lf(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(uX(a),this.invTransform=null);return}a=a||Wa(),t?this.getLocalTransform(a):uX(a),e&&(t?$o(a,e,a):C1(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(If);var a=If[0]<0?-1:1,n=If[1]<0?-1:1,i=((If[0]-a)*t+a)/If[0]||0,o=((If[1]-n)*t+n)/If[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Wa(),xo(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Wa(),$o(cd,e.invTransform,t),t=cd);var a=this.originX,n=this.originY;(a||n)&&(hk[4]=a,hk[5]=n,$o(cd,t,hk),cd[4]-=a,cd[5]-=n,t=cd),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&oa(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&oa(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&dk(e[0]-1)>1e-10&&dk(e[3]-1)>1e-10?Math.sqrt(dk(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){rw(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,g=n+l;t[4]=-d*i-v*g*o,t[5]=-g*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=v*o,u&&pu(t,t,u),t[4]+=a+c,t[5]+=n+f,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),qs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rw(r,e){for(var t=0;t<qs.length;t++){var a=qs[t];r[a]=e[a]}}function Vs(r){L_||(L_=new pp(100)),r=r||tu;var e=L_.get(r);return e||(e={font:r,strWidthCache:new pp(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:bi.measureText("",r).width,asciiCharWidth:bi.measureText("a",r).width},L_.put(r,e)),e}var L_;function ZLe(r){if(!(pk>=fX)){r=r||tu;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=bi.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?pk=fX:n>2&&pk++,e}}var pk=0,fX=5;function Ose(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=ZLe(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Gs(r,e){var t=r.strWidthCache,a=t.get(e);return a==null&&(a=bi.measureText(e,r.font).width,t.put(e,a)),a}function vX(r,e,t,a){var n=Gs(Vs(e),r),i=A1(e),o=gp(0,n,t),s=wv(0,i,a),l=new nt(o,s,n,i);return l}function rC(r,e,t,a){var n=((r||"")+"").split(`
508`),i=n.length;if(i===1)return vX(n[0],e,t,a);for(var o=new nt(0,0,0,0),s=0;s<n.length;s++){var l=vX(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function gp(r,e,t,a){return t==="right"?a?r+=e:r-=e:t==="center"&&(a?r+=e/2:r-=e/2),r}function wv(r,e,t,a){return t==="middle"?a?r+=e/2:r-=e/2:t==="bottom"&&(a?r+=e:r-=e),r}function A1(r){return Vs(r).stWideCharWidth}function Jo(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function aw(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",f="top";if(a instanceof Array)l+=Jo(a[0],t.width),u+=Jo(a[1],t.height),c=null,f=null;else switch(a){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var gk="__zr_normal__",yk=qs.concat(["ignore"]),KLe=_o(qs,function(r,e){return r[e]=!0,r},{ignore:!1}),fd={},QLe=new nt(0,0,0,0),I_=[],aC=function(){function r(e){this.id=X3(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var c=a.position!=null,f=a.autoOverflowArea,v=void 0;if((f||c)&&(v=QLe,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(fd,a,v):aw(fd,a,v),i.x=fd.x,i.y=fd.y,o=fd.align,s=fd.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,g=void 0;h==="center"?(d=v.width*.5,g=v.height*.5):(d=Jo(h[0],v.width),g=Jo(h[1],v.height)),u=!0,i.originX=-i.x+d+(n?0:v.x),i.originY=-i.y+g+(n?0:v.y)}}a.rotation!=null&&(i.rotation=a.rotation);var y=a.offset;y&&(i.x+=y[0],i.y+=y[1],u||(i.originX=-y[0],i.originY=-y[1]));var b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var _=b.overflowRect=b.overflowRect||new nt(0,0,0,0);i.getLocalTransform(I_),xo(I_,I_),nt.copy(_,v),_.applyTransform(I_)}else b.overflowRect=null;var x=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,w=void 0,T=void 0,C=void 0;x&&this.canBeInsideText()?(w=a.insideFill,T=a.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(T==null||T==="auto")&&(T=this.getInsideTextStroke(w),C=!0)):(w=a.outsideFill,T=a.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(T==null||T==="auto")&&(T=this.getOutsideStroke(w),C=!0)),w=w||"#000",(w!==b.fill||T!==b.stroke||C!==b.autoStroke||o!==b.align||s!==b.verticalAlign)&&(l=!0,b.fill=w,b.stroke=T,b.autoStroke=C,b.align=o,b.verticalAlign=s,t.setDefaultTextStyle(b)),t.__dirty|=ki,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?AB:CB},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Vn(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,mo(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},ye(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(et(e))for(var a=e,n=Ft(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==gk)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,yk)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(gk,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===gk,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(_t(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){ZT("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,v=this._textGuide;return f&&f.useState(e,t,a,c),v&&v.useState(e,t,a,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ki),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&n.push(c)}var f=n[o-1],v=!!(f&&f.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,y=this._textGuide;g&&g.useStates(e,t,v),y&&y.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ki)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=_t(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=_t(n,e),o=_t(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];ye(t,i),i.textConfig&&(a=a||{},ye(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=ye({},n?this.textConfig:a.textConfig),ye(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<yk.length;c++){var f=yk[c],v=i&&KLe[f];t&&t[f]!=null?v?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&a[f]!=null&&(v?(u=!0,l[f]=a[f]):this[f]=a[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Fl,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ye(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ki;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new aV(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=_t(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){mk(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){mk(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=mk(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=ki;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();sa(aC,Eo);sa(aC,Fl);function mk(r,e,t,a,n){t=t||{};var i=[];Nse(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,g){t.during(g)});for(var v=0;v<i.length;v++){var h=i[v];c&&h.done(c),f&&h.aborted(f),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function bk(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function JLe(r){return Cn(r[0])}function eIe(r,e,t){if(Cn(e[t]))if(Cn(r[t])||(r[t]=[]),ri(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),bk(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(JLe(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?bk(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else bk(i,n,o);i.length=n.length}else r[t]=e[t]}function tIe(r,e){return r===e||Cn(r)&&Cn(e)&&rIe(r,e)}function rIe(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function Nse(r,e,t,a,n,i,o,s){for(var l=Ft(a),u=n.duration,c=n.delay,f=n.additive,v=n.setToFinal,h=!et(i),d=r.animators,g=[],y=0;y<l.length;y++){var b=l[y],_=a[b];if(_!=null&&t[b]!=null&&(h||i[b]))if(et(_)&&!Cn(_)&&!x1(_)){if(e){s||(t[b]=_,r.updateDuringAnimation(e));continue}Nse(r,b,t[b],_,n,i&&i[b],o,s)}else g.push(b);else s||(t[b]=_,r.updateDuringAnimation(e),g.push(b))}var x=g.length;if(!f&&x)for(var w=0;w<d.length;w++){var T=d[w];if(T.targetName===e){var C=T.stopTracks(g);if(C){var E=_t(d,T);d.splice(E,1)}}}if(n.force||(g=tr(g,function(L){return!tIe(a[L],t[L])}),x=g.length),x>0||n.force&&!o.length){var D=void 0,M=void 0,R=void 0;if(s){M={},v&&(D={});for(var w=0;w<x;w++){var b=g[w];M[b]=t[b],v?D[b]=a[b]:t[b]=a[b]}}else if(v){R={};for(var w=0;w<x;w++){var b=g[w];R[b]=Um(t[b]),eIe(t,a,b)}}var T=new aV(t,!1,!1,f?tr(d,function(k){return k.targetName===e}):null);T.targetName=e,n.scope&&(T.scope=n.scope),v&&D&&T.whenWithKeys(0,D,g),R&&T.whenWithKeys(0,R,g),T.whenWithKeys(u??500,s?M:a,g).delay(c||0),r.addAnimator(T,e),o.push(T)}}var Ze=function(r){le(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=_t(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=_t(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new nt(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(nt.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e}(aC);Ze.prototype.type="group";/*!
509* ZRender, a high performance 2d drawing library.
510*

Callers 15

rFunction · 0.85
YReFunction · 0.85
index-BCRWi5Lr.jsFile · 0.85
WLeFunction · 0.85
YLeFunction · 0.85
XseFunction · 0.85
xIeFunction · 0.85
SIeFunction · 0.85
wIeFunction · 0.85
TIeFunction · 0.85
CIeFunction · 0.85
EIeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected