x-print-designer 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +663 -0
- package/README.md +4 -0
- package/dist/assets/Axis-hDyHms34.js +21 -0
- package/dist/assets/JsBarcode-BOwNyIpk.js +1 -0
- package/dist/assets/barcode-BoWGE6Vo.js +8 -0
- package/dist/assets/browser-CR_q2Gy7.js +1 -0
- package/dist/assets/canvg-ChoTXRpY.js +18 -0
- package/dist/assets/charts-oAXpTr-7.js +1 -0
- package/dist/assets/components-scMrpbvF.js +22 -0
- package/dist/assets/core-DLbFUvXo.js +1 -0
- package/dist/assets/createSeriesData-DY7MF9QR.js +1 -0
- package/dist/assets/customGraphicKeyframeAnimation-g4tvH6et.js +3 -0
- package/dist/assets/dom-to-image-more.min-Bzng6PqA.js +1 -0
- package/dist/assets/favicon-o5K9zUr2.ico +0 -0
- package/dist/assets/graphic-Cay9kDL2.js +29 -0
- package/dist/assets/html2canvas.esm-QH1iLAAe.js +22 -0
- package/dist/assets/index-BQQffM8S.css +1 -0
- package/dist/assets/index-EEoYfeHo.js +153 -0
- package/dist/assets/jszip.min-DLPWIKb1.js +12 -0
- package/dist/assets/logo-DXm7qK2I.png +0 -0
- package/dist/assets/monaco-BQthl4Am.js +11 -0
- package/dist/assets/pdf-Cjgn4CZy.js +170 -0
- package/dist/assets/purify.es-B5CD4DQe.js +2 -0
- package/dist/assets/renderers-CHDIdITR.js +3 -0
- package/dist/assets/utils-C6aID195.js +1 -0
- package/dist/assets/vendor-B8_O41fo.js +39 -0
- package/dist/index.html +19 -0
- package/package.json +68 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var ho=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),uo=(function(){function r(){this.browser=new ho,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})(),F=new uo;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(F.wxa=!0,F.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?F.worker=!0:!F.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(F.node=!0,F.svgSupported=!0):lo(navigator.userAgent,F);function lo(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var f=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in f||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var Ni=12,vo="sans-serif",Ot=Ni+"px "+vo,co=20,po=100,_o="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function go(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-co)/po;t[i]=n}return t}var mo=go(_o),Tt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=Tt.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Ot),r.measureText(e);e=e||"",i=i||Ot;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Ni,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var f=0;f<e.length;f++){var h=mo[e[f]];s+=h==null?o:h*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}};function Bh(r){for(var t in Tt)r[t]&&(Tt[t]=r[t])}var da=Zr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),pa=Zr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),wr=Object.prototype.toString,xe=Array.prototype,yo=xe.forEach,wo=xe.filter,Xi=xe.slice,To=xe.map,fn=(function(){}).constructor,jr=fn?fn.prototype:null,Gi="__proto__",bo=2311;function qi(){return bo++}function ki(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function rr(r){if(r==null||typeof r!="object")return r;var t=r,e=wr.call(r);if(e==="[object Array]"){if(!gr(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=rr(r[i])}}else if(pa[e]){if(!gr(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!da[e]&&!gr(r)&&!Te(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Gi&&(t[o]=rr(r[o]))}return t}function Ui(r,t,e){if(!Mt(t)||!Mt(r))return e?rr(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Gi){var n=r[i],a=t[i];Mt(a)&&Mt(n)&&!zr(a)&&!zr(n)&&!Te(a)&&!Te(n)&&!di(a)&&!di(n)&&!gr(a)&&!gr(n)?Ui(n,a,e):(e||!(i in r))&&(r[i]=rr(t[i]))}return r}function So(r,t){for(var e=r[0],i=1,n=r.length;i<n;i++)e=Ui(e,r[i],t);return e}function E(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Gi&&(r[e]=t[e]);return r}function Et(r,t,e){for(var i=N(t),n=0,a=i.length;n<a;n++){var o=i[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var Co=Tt.createCanvas;function vt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function Mo(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Zi(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else Et(r,t,e)}function ot(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function j(r,t,e){if(r&&t)if(r.forEach&&r.forEach===yo)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function er(r,t,e){if(!r)return[];if(!t)return $i(r);if(r.map&&r.map===To)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function Zr(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function ci(r,t,e){if(!r)return[];if(!t)return $i(r);if(r.filter&&r.filter===wo)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function Po(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function N(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function Lo(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Xi.call(arguments)))}}var xo=jr&&xt(jr.bind)?jr.call.bind(jr.bind):Lo;function Ro(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Xi.call(arguments)))}}function zr(r){return Array.isArray?Array.isArray(r):wr.call(r)==="[object Array]"}function xt(r){return typeof r=="function"}function Wr(r){return typeof r=="string"}function Do(r){return wr.call(r)==="[object String]"}function Ar(r){return typeof r=="number"}function Mt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function di(r){return!!da[wr.call(r)]}function _a(r){return!!pa[wr.call(r)]}function Te(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Re(r){return r.colorStops!=null}function Oo(r){return r.image!=null}function Eo(r){return wr.call(r)==="[object RegExp]"}function ga(r){return r!==r}function Ao(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function H(r,t){return r??t}function Fr(r,t,e){return r??t??e}function $i(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Xi.apply(r,t)}function ma(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Fo(r,t){if(!r)throw new Error(t)}function vr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ya="__ec_primitive__";function Io(r){r[ya]=!0}function gr(r){return r[ya]}var Ho=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return N(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),wa=typeof Map=="function";function Bo(){return wa?new Map:new Ho}var Ta=(function(){function r(t){var e=zr(t);this.data=Bo();var i=this;t instanceof r?t.each(n):t&&j(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return wa?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function zo(r){return new Ta(r)}function Wo(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function $r(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&E(e,t),e}function Yo(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function No(r,t){return r.hasOwnProperty(t)}function Kt(){}var Ir=180/Math.PI,Xo=Number.EPSILON||Math.pow(2,-52);const zh=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:Xo,HashMap:Ta,RADIAN_TO_DEGREE:Ir,assert:Fo,bind:xo,clone:rr,concatArray:Wo,createCanvas:Co,createHashMap:zo,createObject:$r,curry:Ro,defaults:Et,disableUserSelect:Yo,each:j,eqNaN:ga,extend:E,filter:ci,find:Po,guid:qi,hasOwn:No,indexOf:vt,inherits:Mo,isArray:zr,isArrayLike:ot,isBuiltInObject:di,isDom:Te,isFunction:xt,isGradientObject:Re,isImagePatternObject:Oo,isNumber:Ar,isObject:Mt,isPrimitive:gr,isRegExp:Eo,isString:Wr,isStringSafe:Do,isTypedArray:_a,keys:N,logError:ki,map:er,merge:Ui,mergeAll:So,mixin:Zi,noop:Kt,normalizeCssArray:ma,reduce:Zr,retrieve:Ao,retrieve2:H,retrieve3:Fr,setAsPrimitive:Io,slice:$i,trim:vr},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var pi=function(r,t){return pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},pi(r,t)};function U(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pi(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ir(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Go(r,t){return r[0]=t[0],r[1]=t[1],r}function qo(r){return[r[0],r[1]]}function ko(r,t,e){return r[0]=t,r[1]=e,r}function Uo(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Zo(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function $o(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Vi(r){return Math.sqrt(Ki(r))}var Vo=Vi;function Ki(r){return r[0]*r[0]+r[1]*r[1]}var Ko=Ki;function Qo(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function Jo(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function jo(r,t){return r[0]*t[0]+r[1]*t[1]}function ts(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function rs(r,t){var e=Vi(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function ba(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Sa=ba;function Ca(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Qt=Ca;function es(r,t){return r[0]=-t[0],r[1]=-t[1],r}function is(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function _i(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Qi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ji(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const Wh=Object.freeze(Object.defineProperty({__proto__:null,add:Uo,applyTransform:_i,clone:qo,copy:Go,create:ir,dist:Sa,distSquare:Qt,distance:ba,distanceSquare:Ca,div:Jo,dot:jo,len:Vi,lenSquare:Ki,length:Vo,lengthSquare:Ko,lerp:is,max:Ji,min:Qi,mul:Qo,negate:es,normalize:rs,scale:ts,scaleAndAdd:Zo,set:ko,sub:$o},Symbol.toStringTag,{value:"Module"}));var or=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),ns=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new or(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new or(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,f=this._dropTarget;this._dropTarget=s,e!==s&&(f&&s!==f&&this.handler.dispatchToElement(new or(f,t),"dragleave",t.event),s&&s!==f&&this.handler.dispatchToElement(new or(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new or(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new or(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Vr=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var f={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},h=a[t].length-1,u=a[t][h];return u&&u.callAtLast?a[t].splice(h,0,f):a[t].push(f),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,f=0;f<s;f++){var h=n[f];if(!(a&&a.filter&&h.query!=null&&!a.filter(t,h.query)))switch(o){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,e[0]);break;case 2:h.h.call(h.ctx,e[0],e[1]);break;default:h.h.apply(h.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],f=n.length,h=0;h<f;h++){var u=n[h];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,e[0]);break;case 2:u.h.call(s,e[0],e[1]);break;default:u.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),as=Math.log(2);function gi(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var f=Math.round(Math.log((1<<s)-1&~n)/as);return r[e][f]}for(var h=i|1<<e,u=e+1;i&1<<u;)u++;for(var l=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(l+=(c%2?-1:1)*r[e][v]*gi(r,t-1,u,h,n|d,a),c++)}return a[o]=l,l}function hn(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=gi(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*gi(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(f,h,u){var l=h*a[6]+u*a[7]+1;f[0]=(h*a[0]+u*a[1]+a[2])/l,f[1]=(h*a[3]+u*a[4]+a[5])/l}}}var be="___zrEVENTSAVED",Ie=[];function Yh(r,t,e,i,n){return mi(Ie,t,i,n,!0)&&mi(r,e,Ie[0],Ie[1])}function Nh(r,t){r&&e(r),t&&e(t);function e(i){var n=i[be];n&&(n.clearMarkers&&n.clearMarkers(),delete i[be])}}function mi(r,t,e,i,n){if(t.getBoundingClientRect&&F.domSupported&&!Ma(t)){var a=t[be]||(t[be]={}),o=os(t,a),s=ss(o,a,n);if(s)return s(r,e,i),!0}return!1}function os(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,f=a%2,h=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[f]+":0",n[h]+":0",i[1-f]+":auto",n[1-h]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){j(e,function(u){u.parentNode&&u.parentNode.removeChild(u)})},e}function ss(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,h=0;h<4;h++){var u=r[h].getBoundingClientRect(),l=2*h,v=u.left,c=u.top;o.push(v,c),f=f&&a&&v===a[l]&&c===a[l+1],s.push(r[h].offsetLeft,r[h].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=e?hn(s,o):hn(o,s))}function Ma(r){return r.nodeName.toUpperCase()==="CANVAS"}var fs=/([&<>"'])/g,hs={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xh(r){return r==null?"":(r+"").replace(fs,function(t,e){return hs[e]})}var us=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,He=[],ls=F.browser.firefox&&+F.browser.version.split(".")[0]<39;function yi(r,t,e,i){return e=e||{},i?un(r,t,e):ls&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):un(r,t,e),e}function un(r,t,e){if(F.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Ma(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(mi(He,r,i,n)){e.zrX=He[0],e.zrY=He[1];return}}e.zrX=e.zrY=0}function ji(r){return r||window.event}function et(r,t,e){if(t=ji(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&yi(r,o,t,e)}else{yi(r,t,t,e);var a=vs(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&us.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function vs(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function cs(r,t,e,i){r.addEventListener(t,e,i)}function ds(r,t,e,i){r.removeEventListener(t,e,i)}var ps=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Gh(r){return r.which===2||r.which===3}var _s=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var f=n[o],h=yi(i,f,{});a.points.push([h.zrX,h.zrY]),a.touches.push(f)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Be)if(Be.hasOwnProperty(e)){var i=Be[e](this._track,t);if(i)return i}},r})();function ln(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function gs(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Be={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=ln(i)/ln(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=gs(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Jt(){return[1,0,0,1,0,0]}function Pa(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function tn(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function de(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],f=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=f,r}function wi(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function La(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],h=t[5],u=Math.sin(e),l=Math.cos(e);return r[0]=n*l+s*u,r[1]=-n*u+s*l,r[2]=a*l+f*u,r[3]=-a*u+l*f,r[4]=l*(o-i[0])+u*(h-i[1])+i[0],r[5]=l*(h-i[1])-u*(o-i[0])+i[1],r}function xa(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function rn(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=e*o-a*i;return f?(f=1/f,r[0]=o*f,r[1]=-a*f,r[2]=-i*f,r[3]=e*f,r[4]=(i*s-o*n)*f,r[5]=(a*n-e*s)*f,r):null}function ms(r){var t=Jt();return tn(t,r),t}const qh=Object.freeze(Object.defineProperty({__proto__:null,clone:ms,copy:tn,create:Jt,identity:Pa,invert:rn,mul:de,rotate:La,scale:xa,translate:wi},Symbol.toStringTag,{value:"Module"}));var nt=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),Zt=Math.min,cr=Math.max,Ti=Math.abs,vn=["x","y"],ys=["width","height"],Ft=new nt,It=new nt,Ht=new nt,Bt=new nt,G=bs(),Dr=G.minTv,bi=G.maxTv,Hr=[0,0],A=(function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=Zt(t.x,this.x),i=Zt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=cr(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=cr(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=Jt();return wi(a,a,[-e.x,-e.y]),xa(a,a,[i,n]),wi(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&nt.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(ws,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(Ts,e.x,e.y,e.width,e.height));var s=!!i;G.reset(n,s);var f=G.touchThreshold,h=t.x+f,u=t.x+t.width-f,l=t.y+f,v=t.y+t.height-f,c=e.x+f,d=e.x+e.width-f,g=e.y+f,_=e.y+e.height-f;if(h>u||l>v||c>d||g>_)return!1;var p=!(u<c||d<h||v<g||_<l);return(s||a)&&(Hr[0]=1/0,Hr[1]=0,cn(h,u,c,d,0,s,a,o),cn(l,v,g,_,1,s,a,o),s&&nt.copy(i,p?G.useDir?G.dirMinTv:Dr:bi)),p},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},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(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ft.x=Ht.x=e.x,Ft.y=Bt.y=e.y,It.x=Bt.x=e.x+e.width,It.y=Ht.y=e.y+e.height,Ft.transform(i),Bt.transform(i),It.transform(i),Ht.transform(i),t.x=Zt(Ft.x,It.x,Ht.x,Bt.x),t.y=Zt(Ft.y,It.y,Ht.y,Bt.y);var f=cr(Ft.x,It.x,Ht.x,Bt.x),h=cr(Ft.y,It.y,Ht.y,Bt.y);t.width=f-t.x,t.height=h-t.y},r})(),ws=new A(0,0,0,0),Ts=new A(0,0,0,0);function cn(r,t,e,i,n,a,o,s){var f=Ti(t-e),h=Ti(i-r),u=Zt(f,h),l=vn[n],v=vn[1-n],c=ys[n];t<e||i<r?f<h?(a&&(bi[l]=-f),s&&(o[l]=t,o[c]=0)):(a&&(bi[l]=h),s&&(o[l]=r,o[c]=0)):(o&&(o[l]=cr(r,e),o[c]=Zt(t,i)-o[l]),a&&(u<Hr[0]||G.useDir)&&(Hr[0]=Zt(u,Hr[0]),(f<h||!G.bidirectional)&&(Dr[l]=f,Dr[v]=0,G.useDir&&G.calcDirMTV()),(f>=h||!G.bidirectional)&&(Dr[l]=-h,Dr[v]=0,G.useDir&&G.calcDirMTV())))}function bs(){var r=0,t=new nt,e=new nt,i={minTv:new nt,maxTv:new nt,useDir:!1,dirMinTv:new nt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=cr(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,f=Math.sin(r),h=Math.cos(r),u=f*a.y+h*a.x;if(n(u)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*h/u,e.y=s*f/u,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return Ti(a)<1e-10}return i}var Ra="silent";function Ss(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Cs}}function Cs(){ps(this.event)}var Ms=(function(r){U(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Vr),Mr=(function(){function r(t,e){this.x=t,this.y=e}return r})(),Ps=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ze=new A(0,0,0,0),Da=(function(r){U(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Mr(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Ms,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new ns(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(j(Ps,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Oa(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new Mr(i,n):this.findHover(i,n),h=f.target,u=this.proxy;u.setCursor&&u.setCursor(h?h.cursor:"default"),s&&h!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(f,"mousemove",e),h&&h!==s&&this.dispatchToElement(f,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Mr(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=Ss(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Mr(e,i);if(dn(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,h=f/2,u=new A(e-h,i-h,f,f),l=a.length-1;l>=0;l--){var v=a[l];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(ze.copy(v.getBoundingRect()),v.transform&&ze.applyTransform(v.transform),ze.intersect(u)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,g=Math.PI*2,_=0;_<h;_+=c)for(var p=0;p<g;p+=d){var m=e+_*Math.cos(p),T=i+_*Math.sin(p);if(dn(s,o,m,T,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new _s);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Mr;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Vr);j(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Da.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Oa(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Sa(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function Ls(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Ra:!0}return!1}function dn(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=Ls(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Ra)){t.target=o;break}}}function Oa(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Ea=32,Pr=7;function xs(r){for(var t=0;r>=Ea;)t|=r&1,r>>=1;return r+t}function pn(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;Rs(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function Rs(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function _n(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,f;o<s;)f=o+s>>>1,n(a,r[f])<0?s=f:o=f+1;var h=i-o;switch(h){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(;h>0;)r[o+h]=r[o+h-1],h--}r[o]=a}}function We(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])>0){for(s=i-n;f<s&&a(r,t[e+n+f])>0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;f<s&&a(r,t[e+n-f])<=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s);var h=o;o=n-f,f=n-h}for(o++;o<f;){var u=o+(f-o>>>1);a(r,t[e+u])>0?o=u+1:f=u}return f}function Ye(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])<0){for(s=n+1;f<s&&a(r,t[e+n-f])<0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s);var h=o;o=n-f,f=n-h}else{for(s=i-n;f<s&&a(r,t[e+n+f])>=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o<f;){var u=o+(f-o>>>1);a(r,t[e+u])<0?f=u:o=u+1}return f}function Ds(r,t){var e=Pr,i,n,a=0,o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;u(c)}}function h(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,u(c)}}function u(c){var d=i[c],g=n[c],_=i[c+1],p=n[c+1];n[c]=g+p,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var m=Ye(r[_],r,d,g,0,t);d+=m,g-=m,g!==0&&(p=We(r[d+g-1],r,_,p,p-1,t),p!==0&&(g<=p?l(d,g,_,p):v(d,g,_,p)))}function l(c,d,g,_){var p=0;for(p=0;p<d;p++)o[p]=r[c+p];var m=0,T=g,y=c;if(r[y++]=r[T++],--_===0){for(p=0;p<d;p++)r[y+p]=o[m+p];return}if(d===1){for(p=0;p<_;p++)r[y+p]=r[T+p];r[y+_]=o[m];return}for(var b=e,w,M,S;;){w=0,M=0,S=!1;do if(t(r[T],o[m])<0){if(r[y++]=r[T++],M++,w=0,--_===0){S=!0;break}}else if(r[y++]=o[m++],w++,M=0,--d===1){S=!0;break}while((w|M)<b);if(S)break;do{if(w=Ye(r[T],o,m,d,0,t),w!==0){for(p=0;p<w;p++)r[y+p]=o[m+p];if(y+=w,m+=w,d-=w,d<=1){S=!0;break}}if(r[y++]=r[T++],--_===0){S=!0;break}if(M=We(o[m],r,T,_,0,t),M!==0){for(p=0;p<M;p++)r[y+p]=r[T+p];if(y+=M,T+=M,_-=M,_===0){S=!0;break}}if(r[y++]=o[m++],--d===1){S=!0;break}b--}while(w>=Pr||M>=Pr);if(S)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(p=0;p<_;p++)r[y+p]=r[T+p];r[y+_]=o[m]}else{if(d===0)throw new Error;for(p=0;p<d;p++)r[y+p]=o[m+p]}}function v(c,d,g,_){var p=0;for(p=0;p<_;p++)o[p]=r[g+p];var m=c+d-1,T=_-1,y=g+_-1,b=0,w=0;if(r[y--]=r[m--],--d===0){for(b=y-(_-1),p=0;p<_;p++)r[b+p]=o[p];return}if(_===1){for(y-=d,m-=d,w=y+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[y]=o[T];return}for(var M=e;;){var S=0,L=0,x=!1;do if(t(o[T],r[m])<0){if(r[y--]=r[m--],S++,L=0,--d===0){x=!0;break}}else if(r[y--]=o[T--],L++,S=0,--_===1){x=!0;break}while((S|L)<M);if(x)break;do{if(S=d-Ye(o[T],r,c,d,d-1,t),S!==0){for(y-=S,m-=S,d-=S,w=y+1,b=m+1,p=S-1;p>=0;p--)r[w+p]=r[b+p];if(d===0){x=!0;break}}if(r[y--]=o[T--],--_===1){x=!0;break}if(L=_-We(r[m],o,0,_,_-1,t),L!==0){for(y-=L,T-=L,_-=L,w=y+1,b=T+1,p=0;p<L;p++)r[w+p]=o[b+p];if(_<=1){x=!0;break}}if(r[y--]=r[m--],--d===0){x=!0;break}M--}while(S>=Pr||L>=Pr);if(x)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),_===1){for(y-=d,m-=d,w=y+1,b=m+1,p=d-1;p>=0;p--)r[w+p]=r[b+p];r[y]=o[T]}else{if(_===0)throw new Error;for(b=y-(_-1),p=0;p<_;p++)r[b+p]=o[p]}}return{mergeRuns:f,forceMergeRuns:h,pushRun:s}}function Os(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<Ea){a=pn(r,e,i,t),_n(r,e,i,e+a,t);return}var o=Ds(r,t),s=xs(n);do{if(a=pn(r,e,i,t),a<s){var f=n;f>s&&(f=s),_n(r,e,e+f,e+a,t),a=f}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var ct=1,Or=2,lr=4,gn=!1;function Ne(){gn||(gn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mn(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Es=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mn}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Os(i,mn)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var f=0;f<e.length;f++)s[o++]=e[f];for(var h=n,u=t;h;)h.parent=u,h.updateTransform(),s[o++]=h,u=h,h=h.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var l=t.childrenRef(),v=0;v<l.length;v++){var c=l[v];t.__dirty&&(c.__dirty|=ct),this._updateAndAddDisplayable(c,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Ne(),d.z=0),isNaN(d.z2)&&(Ne(),d.z2=0),isNaN(d.zlevel)&&(Ne(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var _=t.getTextGuideLine();_&&this._updateAndAddDisplayable(_,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=vt(this._roots,t);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})(),Si;Si=F.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Br={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 t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Br.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?Br.bounceIn(r*2)*.5:Br.bounceOut(r*2-1)*.5+.5}},te=Math.pow,Rt=Math.sqrt,Se=1e-8,Aa=1e-4,yn=Rt(3),re=1/3,dt=ir(),Q=ir(),mr=ir();function Pt(r){return r>-Se&&r<Se}function Fa(r){return r>Se||r<-Se}function q(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function kh(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Ia(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),f=3*(t-r),h=r-n,u=s*s-3*o*f,l=s*f-9*o*h,v=f*f-3*s*h,c=0;if(Pt(u)&&Pt(l))if(Pt(s))a[0]=0;else{var d=-f/s;d>=0&&d<=1&&(a[c++]=d)}else{var g=l*l-4*u*v;if(Pt(g)){var _=l/u,d=-s/o+_,p=-_/2;d>=0&&d<=1&&(a[c++]=d),p>=0&&p<=1&&(a[c++]=p)}else if(g>0){var m=Rt(g),T=u*s+1.5*o*(-l+m),y=u*s+1.5*o*(-l-m);T<0?T=-te(-T,re):T=te(T,re),y<0?y=-te(-y,re):y=te(y,re);var d=(-s-(T+y))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*u*s-3*o*l)/(2*Rt(u*u*u)),w=Math.acos(b)/3,M=Rt(u),S=Math.cos(w),d=(-s-2*M*S)/(3*o),p=(-s+M*(S+yn*Math.sin(w)))/(3*o),L=(-s+M*(S-yn*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[c++]=d),p>=0&&p<=1&&(a[c++]=p),L>=0&&L<=1&&(a[c++]=L)}}return c}function Ha(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,f=0;if(Pt(o)){if(Fa(a)){var h=-s/a;h>=0&&h<=1&&(n[f++]=h)}}else{var u=a*a-4*o*s;if(Pt(u))n[0]=-a/(2*o);else if(u>0){var l=Rt(u),h=(-a+l)/(2*o),v=(-a-l)/(2*o);h>=0&&h<=1&&(n[f++]=h),v>=0&&v<=1&&(n[f++]=v)}}return f}function wn(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,f=(i-e)*n+e,h=(s-o)*n+o,u=(f-s)*n+s,l=(u-h)*n+h;a[0]=r,a[1]=o,a[2]=h,a[3]=l,a[4]=l,a[5]=u,a[6]=f,a[7]=i}function As(r,t,e,i,n,a,o,s,f,h,u){var l,v=.005,c=1/0,d,g,_,p;dt[0]=f,dt[1]=h;for(var m=0;m<1;m+=.05)Q[0]=q(r,e,n,o,m),Q[1]=q(t,i,a,s,m),_=Qt(dt,Q),_<c&&(l=m,c=_);c=1/0;for(var T=0;T<32&&!(v<Aa);T++)d=l-v,g=l+v,Q[0]=q(r,e,n,o,d),Q[1]=q(t,i,a,s,d),_=Qt(Q,dt),d>=0&&_<c?(l=d,c=_):(mr[0]=q(r,e,n,o,g),mr[1]=q(t,i,a,s,g),p=Qt(mr,dt),g<=1&&p<c?(l=g,c=p):v*=.5);return Rt(c)}function Fs(r,t,e,i,n,a,o,s,f){for(var h=r,u=t,l=0,v=1/f,c=1;c<=f;c++){var d=c*v,g=q(r,e,n,o,d),_=q(t,i,a,s,d),p=g-h,m=_-u;l+=Math.sqrt(p*p+m*m),h=g,u=_}return l}function J(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Uh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function Is(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,f=0;if(Pt(a)){if(Fa(o)){var h=-s/o;h>=0&&h<=1&&(n[f++]=h)}}else{var u=o*o-4*a*s;if(Pt(u)){var h=-o/(2*a);h>=0&&h<=1&&(n[f++]=h)}else if(u>0){var l=Rt(u),h=(-o+l)/(2*a),v=(-o-l)/(2*a);h>=0&&h<=1&&(n[f++]=h),v>=0&&v<=1&&(n[f++]=v)}}return f}function Ba(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Tn(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function Hs(r,t,e,i,n,a,o,s,f){var h,u=.005,l=1/0;dt[0]=o,dt[1]=s;for(var v=0;v<1;v+=.05){Q[0]=J(r,e,n,v),Q[1]=J(t,i,a,v);var c=Qt(dt,Q);c<l&&(h=v,l=c)}l=1/0;for(var d=0;d<32&&!(u<Aa);d++){var g=h-u,_=h+u;Q[0]=J(r,e,n,g),Q[1]=J(t,i,a,g);var c=Qt(Q,dt);if(g>=0&&c<l)h=g,l=c;else{mr[0]=J(r,e,n,_),mr[1]=J(t,i,a,_);var p=Qt(mr,dt);_<=1&&p<l?(h=_,l=p):u*=.5}}return Rt(l)}function Bs(r,t,e,i,n,a,o){for(var s=r,f=t,h=0,u=1/o,l=1;l<=o;l++){var v=l*u,c=J(r,e,n,v),d=J(t,i,a,v),g=c-s,_=d-f;h+=Math.sqrt(g*g+_*_),s=c,f=d}return h}var zs=/cubic-bezier\(([0-9,\.e ]+)\)/;function za(r){var t=r&&zs.exec(r);if(t){var e=t[1].split(","),i=+vr(e[0]),n=+vr(e[1]),a=+vr(e[2]),o=+vr(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(f){return f<=0?0:f>=1?1:Ia(0,i,a,1,f,s)&&q(0,n,o,1,s[0])}}}var Ws=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Kt,this.ondestroy=t.ondestroy||Kt,this.onrestart=t.onrestart||Kt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,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(t){this.easing=t,this.easingFunc=xt(t)?t:Br[t]||za(t)},r})(),Wa=(function(){function r(t){this.value=t}return r})(),Ys=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Wa(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Yr=(function(){function r(t){this._list=new Ys,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=e:s=new Wa(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),bn={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 at(r){return r=Math.round(r),r<0?0:r>255?255:r}function Ns(r){return r=Math.round(r),r<0?0:r>360?360:r}function Nr(r){return r<0?0:r>1?1:r}function pe(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?at(parseFloat(t)/100*255):at(parseInt(t,10))}function Dt(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Nr(parseFloat(t)/100):Nr(parseFloat(t))}function Xe(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Lt(r,t,e){return r+(t-r)*e}function V(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Ci(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Ya=new Yr(20),ee=null;function sr(r,t){ee&&Ci(ee,t),ee=Ya.put(r,ee||t.slice())}function k(r,t){if(r){t=t||[];var e=Ya.get(r);if(e)return Ci(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in bn)return Ci(t,bn[i]),sr(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){V(t,0,0,0,1);return}return V(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),sr(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){V(t,0,0,0,1);return}return V(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),sr(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),u=1;switch(f){case"rgba":if(h.length!==4)return h.length===3?V(t,+h[0],+h[1],+h[2],1):V(t,0,0,0,1);u=Dt(h.pop());case"rgb":if(h.length>=3)return V(t,pe(h[0]),pe(h[1]),pe(h[2]),h.length===3?u:Dt(h[3])),sr(r,t),t;V(t,0,0,0,1);return;case"hsla":if(h.length!==4){V(t,0,0,0,1);return}return h[3]=Dt(h[3]),Mi(h,t),sr(r,t),t;case"hsl":if(h.length!==3){V(t,0,0,0,1);return}return Mi(h,t),sr(r,t),t;default:return}}V(t,0,0,0,1)}}function Mi(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Dt(r[1]),n=Dt(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],V(t,at(Xe(o,a,e+1/3)*255),at(Xe(o,a,e)*255),at(Xe(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Xs(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,f,h;if(o===0)f=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,l=((a-e)/6+o/2)/o,v=((a-i)/6+o/2)/o;t===a?f=v-l:e===a?f=1/3+u-v:i===a&&(f=2/3+l-u),f<0&&(f+=1),f>1&&(f-=1)}var c=[f*360,h,s];return r[3]!=null&&c.push(r[3]),c}}function Pi(r,t){var e=k(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return nr(e,e.length===4?"rgba":"rgb")}}function Gs(r){var t=k(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Na(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],f=i-n;return e[0]=at(Lt(o[0],s[0],f)),e[1]=at(Lt(o[1],s[1],f)),e[2]=at(Lt(o[2],s[2],f)),e[3]=Nr(Lt(o[3],s[3],f)),e}}var qs=Na;function Xa(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=k(t[n]),s=k(t[a]),f=i-n,h=nr([at(Lt(o[0],s[0],f)),at(Lt(o[1],s[1],f)),at(Lt(o[2],s[2],f)),Nr(Lt(o[3],s[3],f))],"rgba");return e?{color:h,leftIndex:n,rightIndex:a,value:i}:h}}var ks=Xa;function Us(r,t,e,i){var n=k(r);if(r)return n=Xs(n),t!=null&&(n[0]=Ns(xt(t)?t(n[0]):t)),e!=null&&(n[1]=Dt(xt(e)?e(n[1]):e)),i!=null&&(n[2]=Dt(xt(i)?i(n[2]):i)),nr(Mi(n),"rgba")}function Zs(r,t){var e=k(r);if(e&&t!=null)return e[3]=Nr(t),nr(e,"rgba")}function nr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Xr(r,t){var e=k(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function $s(){return nr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Sn=new Yr(100);function Vs(r){if(Wr(r)){var t=Sn.get(r);return t||(t=Pi(r,-.1),Sn.put(r,t)),t}else if(Re(r)){var e=E({},r);return e.colorStops=er(r.colorStops,function(i){return{offset:i.offset,color:Pi(i.color,-.1)}}),e}return r}const Zh=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Na,fastMapToColor:qs,lerp:Xa,lift:Pi,liftColor:Vs,lum:Xr,mapToColor:ks,modifyAlpha:Zs,modifyHSL:Us,parse:k,parseCssFloat:Dt,parseCssInt:pe,random:$s,stringify:nr,toHex:Gs},Symbol.toStringTag,{value:"Module"}));var Ce=Math.round;function $h(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=k(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var Cn=1e-4;function Vh(r){return r<Cn&&r>-Cn}function ie(r){return Ce(r*1e3)/1e3}function Mn(r){return Ce(r*1e4)/1e4}function Kh(r){return"matrix("+ie(r[0])+","+ie(r[1])+","+ie(r[2])+","+ie(r[3])+","+Mn(r[4])+","+Mn(r[5])+")"}var Qh={left:"start",right:"end",center:"middle",middle:"middle"};function Jh(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function jh(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function tu(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function Ks(r){return r&&!!r.image}function Qs(r){return r&&!!r.svgElement}function ru(r){return Ks(r)||Qs(r)}function Js(r){return r.type==="linear"}function js(r){return r.type==="radial"}function eu(r){return r&&(r.type==="linear"||r.type==="radial")}function iu(r){return"url(#"+r+")"}function nu(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function au(r){var t=r.x||0,e=r.y||0,i=(r.rotation||0)*Ir,n=H(r.scaleX,1),a=H(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,f=[];return(t||e)&&f.push("translate("+t+"px,"+e+"px)"),i&&f.push("rotate("+i+")"),(n!==1||a!==1)&&f.push("scale("+n+","+a+")"),(o||s)&&f.push("skew("+Ce(o*Ir)+"deg, "+Ce(s*Ir)+"deg)"),f.join(" ")}var ou=(function(){return F.hasGlobalWindow&&xt(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}})(),Li=Array.prototype.slice;function wt(r,t,e){return(t-r)*e+r}function Ge(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=wt(t[a],e[a],i);return r}function tf(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=wt(t[o][s],e[o][s],i)}return r}function ne(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function Pn(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function rf(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function ef(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var f=a;f<o;f++)i.push(e===1?n[f]:Li.call(n[f]))}for(var h=i[0]&&i[0].length,f=0;f<i.length;f++)if(e===1)isNaN(i[f])&&(i[f]=n[f]);else for(var u=0;u<h;u++)isNaN(i[f][u])&&(i[f][u]=n[f][u])}}function _e(r){if(ot(r)){var t=r.length;if(ot(r[0])){for(var e=[],i=0;i<t;i++)e.push(Li.call(r[i]));return e}return Li.call(r)}return r}function ge(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 nf(r){return ot(r&&r[0])?2:1}var ae=0,me=1,Ga=2,Er=3,xi=4,Ri=5,Ln=6;function xn(r){return r===xi||r===Ri}function oe(r){return r===me||r===Ga}var Lr=[0,0,0,0],af=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Ln,f=e;if(ot(e)){var h=nf(e);s=h,(h===1&&!Ar(e[0])||h===2&&!Ar(e[0][0]))&&(o=!0)}else if(Ar(e)&&!ga(e))s=ae;else if(Wr(e))if(!isNaN(+e))s=ae;else{var u=k(e);u&&(f=u,s=Er)}else if(Re(e)){var l=E({},f);l.colorStops=er(e.colorStops,function(c){return{offset:c.offset,color:k(c.color)}}),Js(e)?s=xi:js(e)&&(s=Ri),f=l}a===0?this.valType=s:(s!==this.valType||s===Ln)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:f,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=xt(i)?i:Br[i]||za(i)),n.push(v),v},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,_){return g.time-_.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=oe(n),h=xn(n),u=0;u<a;u++){var l=i[u],v=l.value,c=o.value;l.percent=l.time/t,s||(f&&u!==a-1?ef(v,c,n):h&&rf(v.colorStops,c.colorStops))}if(!s&&n!==Ri&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,u=0;u<a;u++)n===ae?i[u].additiveValue=i[u].value-d:n===Er?i[u].additiveValue=ne([],i[u].value,d,-1):oe(n)&&(i[u].additiveValue=n===me?ne([],i[u].value,d,-1):Pn([],i[u].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,f=this.propName,h=a===Er,u,l=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)u=0;else if(e<this._lastFrP){var g=v(l+1,s-1);for(u=g;u>=0&&!(o[u].percent<=e);u--);u=v(u,s-2)}else{for(u=l;u<s&&!(o[u].percent>e);u++);u=v(u-1,s-2)}d=o[u+1],c=o[u]}if(c&&d){this._lastFr=u,this._lastFrP=e;var _=d.percent-c.percent,p=_===0?1:v((e-c.percent)/_,1);d.easingFunc&&(p=d.easingFunc(p));var m=i?this._additiveValue:h?Lr:t[f];if((oe(a)||h)&&!m&&(m=this._additiveValue=[]),this.discrete)t[f]=p<1?c.rawValue:d.rawValue;else if(oe(a))a===me?Ge(m,c[n],d[n],p):tf(m,c[n],d[n],p);else if(xn(a)){var T=c[n],y=d[n],b=a===xi;t[f]={type:b?"linear":"radial",x:wt(T.x,y.x,p),y:wt(T.y,y.y,p),colorStops:er(T.colorStops,function(M,S){var L=y.colorStops[S];return{offset:wt(M.offset,L.offset,p),color:ge(Ge([],M.color,L.color,p))}}),global:y.global},b?(t[f].x2=wt(T.x2,y.x2,p),t[f].y2=wt(T.y2,y.y2,p)):t[f].r=wt(T.r,y.r,p)}else if(h)Ge(m,c[n],d[n],p),i||(t[f]=ge(m));else{var w=wt(c[n],d[n],p);i?this._additiveValue=w:t[f]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===ae?t[i]=t[i]+n:e===Er?(k(t[i],Lr),ne(Lr,Lr,n,1),t[i]=ge(Lr)):e===me?ne(t[i],t[i],n,1):e===Ga&&Pn(t[i],t[i],n,1)},r})(),en=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){ki("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}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(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,N(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],f=a[s];if(!f){f=a[s]=new af(s);var h=void 0,u=this._getAdditiveTrack(s);if(u){var l=u.keyframes,v=l[l.length-1];h=v&&v.value,u.valType===Er&&h&&(h=ge(h))}else h=this._target[s];if(h==null)continue;t>0&&f.addKeyframe(0,_e(h),n),this._trackKeys.push(s)}f.addKeyframe(t,_e(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],f=this._getAdditiveTrack(o),h=s.keyframes,u=h.length;if(s.prepare(n,f),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var l=h[u-1];l&&(e._target[s.propName]=l.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new Ws({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var g=!1,_=0;_<d.length;_++)if(d[_]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var _=0;_<i.length;_++)i[_].step(e._target,c);var p=e._onframeCbs;if(p)for(var _=0;_<p.length;_++)p[_](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return er(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,f=s[i?0:s.length-1];f&&(t[a]=_e(f.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||N(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function dr(){return new Date().getTime()}var of=(function(r){U(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=dr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Si(i),!e._paused&&e.update())}Si(i)},t.prototype.start=function(){this._running||(this._time=dr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=dr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=dr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new en(e,i.loop);return this.addAnimator(n),n},t})(Vr),sf=300,qe=F.domSupported,ke=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=er(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),Rn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Dn=!1;function Di(r){var t=r.pointerType;return t==="pen"||t==="touch"}function ff(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 Ue(r){r&&(r.zrByTouch=!0)}function hf(r,t){return et(r.dom,new uf(r,t),!0)}function qa(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var uf=(function(){function r(t,e){this.stopPropagation=Kt,this.stopImmediatePropagation=Kt,this.preventDefault=Kt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),it={mousedown:function(r){r=et(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=et(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=et(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=et(this.dom,r);var t=r.toElement||r.relatedTarget;qa(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Dn=!0,r=et(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Dn||(r=et(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=et(this.dom,r),Ue(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),it.mousemove.call(this,r),it.mousedown.call(this,r)},touchmove:function(r){r=et(this.dom,r),Ue(r),this.handler.processGesture(r,"change"),it.mousemove.call(this,r)},touchend:function(r){r=et(this.dom,r),Ue(r),this.handler.processGesture(r,"end"),it.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<sf&&it.click.call(this,r)},pointerdown:function(r){it.mousedown.call(this,r)},pointermove:function(r){Di(r)||it.mousemove.call(this,r)},pointerup:function(r){it.mouseup.call(this,r)},pointerout:function(r){Di(r)||it.mouseout.call(this,r)}};j(["click","dblclick","contextmenu"],function(r){it[r]=function(t){t=et(this.dom,t),this.trigger(r,t)}});var Oi={pointermove:function(r){Di(r)||Oi.mousemove.call(this,r)},pointerup:function(r){Oi.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function lf(r,t){var e=t.domHandlers;F.pointerEventsSupported?j(ke.pointer,function(i){ye(t,i,function(n){e[i].call(r,n)})}):(F.touchEventsSupported&&j(ke.touch,function(i){ye(t,i,function(n){e[i].call(r,n),ff(t)})}),j(ke.mouse,function(i){ye(t,i,function(n){n=ji(n),t.touching||e[i].call(r,n)})}))}function vf(r,t){F.pointerEventsSupported?j(Rn.pointer,e):F.touchEventsSupported||j(Rn.mouse,e);function e(i){function n(a){a=ji(a),qa(r,a.target)||(a=hf(r,a),t.domHandlers[i].call(r,a))}ye(t,i,n,{capture:!0})}}function ye(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,cs(r.domTarget,t,e,i)}function Ze(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&ds(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var On=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),cf=(function(r){U(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new On(e,it),qe&&(n._globalHandlerScope=new On(document,Oi)),lf(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Ze(this._localHandlerScope),qe&&Ze(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,qe&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?vf(this,i):Ze(i)}},t})(Vr),ka=1;F.hasGlobalWindow&&(ka=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var En=ka,Ei=.4,Ai="#333",Fi="#ccc",df="#eee",An=Pa,Fn=5e-5;function zt(r){return r>Fn||r<-Fn}var Wt=[],fr=[],$e=Jt(),Ve=Math.abs,Ua=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return zt(this.rotation)||zt(this.x)||zt(this.y)||zt(this.scaleX-1)||zt(this.scaleY-1)||zt(this.skewX)||zt(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(An(i),this.invTransform=null);return}i=i||Jt(),e?this.getLocalTransform(i):An(i),t&&(e?de(i,t,i):tn(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Wt);var i=Wt[0]<0?-1:1,n=Wt[1]<0?-1:1,a=((Wt[0]-i)*e+i)/Wt[0]||0,o=((Wt[1]-n)*e+n)/Wt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Jt(),rn(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jt(),de(fr,t.invTransform,e),e=fr);var i=this.originX,n=this.originY;(i||n)&&($e[4]=i,$e[5]=n,de(fr,e,$e),fr[4]-=i,fr[5]-=n,e=fr),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&_i(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&_i(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Ve(t[0]-1)>1e-10&&Ve(t[3]-1)>1e-10?Math.sqrt(Ve(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){pf(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,h=t.rotation||0,u=t.x,l=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var d=i+s,g=n+f;e[4]=-d*a-v*g*o,e[5]=-g*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,h&&La(e,e,h),e[4]+=i+u,e[5]+=n+l,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),Gr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function pf(r,t){for(var e=0;e<Gr.length;e++){var i=Gr[e];r[i]=t[i]}}function pt(r){se||(se=new Yr(100)),r=r||Ot;var t=se.get(r);return t||(t={font:r,strWidthCache:new Yr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Tt.measureText("国",r).width,asciiCharWidth:Tt.measureText("a",r).width},se.put(r,t)),t}var se;function _f(r){if(!(Ke>=In)){r=r||Ot;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=Tt.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?Ke=In:n>2&&Ke++,t}}var Ke=0,In=5;function Za(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=_f(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function _t(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=Tt.measureText(t,r.font).width,e.put(t,i)),i}function Hn(r,t,e,i){var n=_t(pt(t),r),a=De(t),o=yr(0,n,e),s=jt(0,a,i),f=new A(o,s,n,a);return f}function su(r,t,e,i){var n=((r||"")+"").split(`
|
|
15
|
+
`),a=n.length;if(a===1)return Hn(n[0],t,e,i);for(var o=new A(0,0,0,0),s=0;s<n.length;s++){var f=Hn(n[s],t,e,i);s===0?o.copy(f):o.union(f)}return o}function yr(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function jt(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function De(r){return pt(r).stWideCharWidth}function qr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function gf(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,f=e.x,h=e.y,u="left",l="top";if(i instanceof Array)f+=qr(i[0],e.width),h+=qr(i[1],e.height),u=null,l=null;else switch(i){case"left":f-=n,h+=s,u="right",l="middle";break;case"right":f+=n+o,h+=s,l="middle";break;case"top":f+=o/2,h-=n,u="center",l="bottom";break;case"bottom":f+=o/2,h+=a+n,u="center";break;case"inside":f+=o/2,h+=s,u="center",l="middle";break;case"insideLeft":f+=n,h+=s,l="middle";break;case"insideRight":f+=o-n,h+=s,u="right",l="middle";break;case"insideTop":f+=o/2,h+=n,u="center";break;case"insideBottom":f+=o/2,h+=a-n,u="center",l="bottom";break;case"insideTopLeft":f+=n,h+=n;break;case"insideTopRight":f+=o-n,h+=n,u="right";break;case"insideBottomLeft":f+=n,h+=a-n,l="bottom";break;case"insideBottomRight":f+=o-n,h+=a-n,u="right",l="bottom";break}return r=r||{},r.x=f,r.y=h,r.align=u,r.verticalAlign=l,r}var Qe="__zr_normal__",Je=Gr.concat(["ignore"]),mf=Zr(Gr,function(r,t){return r[t]=!0,r},{ignore:!1}),hr={},yf=new A(0,0,0,0),fe=[],Oe=(function(){function r(t){this.id=qi(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,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(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var h=!1;a.copyTransform(e);var u=i.position!=null,l=i.autoOverflowArea,v=void 0;if((l||u)&&(v=yf,i.layoutRect?v.copy(i.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(hr,i,v):gf(hr,i,v),a.x=hr.x,a.y=hr.y,o=hr.align,s=hr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var d=void 0,g=void 0;c==="center"?(d=v.width*.5,g=v.height*.5):(d=qr(c[0],v.width),g=qr(c[1],v.height)),h=!0,a.originX=-a.x+d+(n?0:v.x),a.originY=-a.y+g+(n?0:v.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],h||(a.originX=-_[0],a.originY=-_[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(l){var m=p.overflowRect=p.overflowRect||new A(0,0,0,0);a.getLocalTransform(fe),rn(fe,fe),A.copy(m,v),m.applyTransform(fe)}else p.overflowRect=null;var T=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,y=void 0,b=void 0,w=void 0;T&&this.canBeInsideText()?(y=i.insideFill,b=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),w=!0)):(y=i.outsideFill,b=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),w=!0)),y=y||"#000",(y!==p.fill||b!==p.stroke||w!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(f=!0,p.fill=y,p.stroke=b,p.autoStroke=w,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ct,f&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Fi:Ai},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&k(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,nr(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},E(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Mt(t))for(var i=t,n=N(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Qe)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Je)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Qe,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Qe,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(vt(s,t)>=0&&(e||s.length===1))){var h;if(this.stateProxy&&!a&&(h=this.stateProxy(t)),h||(h=this.states&&this.states[t]),!h&&!a){ki("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(h);var u=!!(h&&h.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,h,this._normalState,e,!i&&!this.__inHover&&f&&f.duration>0,f);var l=this._textContent,v=this._textGuide;return l&&l.useState(t,e,i,u),v&&v.useState(t,e,i,u),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ct),h}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f<o;f++)if(t[f]!==a[f]){s=!1;break}}if(s)return;for(var f=0;f<o;f++){var h=t[f],u=void 0;this.stateProxy&&(u=this.stateProxy(h,t)),u||(u=this.states[h]),u&&n.push(u)}var l=n[o-1],v=!!(l&&l.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,_=this._textGuide;g&&g.useStates(t,e,v),_&&_.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ct)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=vt(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=vt(n,t),o=vt(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];E(e,a),a.textConfig&&(i=i||{},E(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=E({},n?this.textConfig:i.textConfig),E(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var f={},h=!1,u=0;u<Je.length;u++){var l=Je[u],v=a&&mf[l];e&&e[l]!=null?v?(h=!0,f[l]=e[l]):this[l]=e[l]:s&&i[l]!=null&&(v?(h=!0,f[l]=i[l]):this[l]=i[l])}if(!a)for(var u=0;u<this.animators.length;u++){var c=this.animators[u],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(e||i)[d]:e||i)}h&&this._transitionState(t,f,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Ua,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),E(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ct;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new en(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=vt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){je(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){je(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=je(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ct;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var f=this[n]=[];s(this,f)}return this[n]},set:function(f){this[a]=f[0],this[o]=f[1],this[n]=f,s(this,f)}});function s(f,h){Object.defineProperty(h,0,{get:function(){return f[a]},set:function(u){f[a]=u}}),Object.defineProperty(h,1,{get:function(){return f[o]},set:function(u){f[o]=u}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();Zi(Oe,Vr);Zi(Oe,Ua);function je(r,t,e,i,n){e=e||{};var a=[];$a(r,"",r,t,e,i,a,n);var o=a.length,s=!1,f=e.done,h=e.aborted,u=function(){s=!0,o--,o<=0&&(s?f&&f():h&&h())},l=function(){o--,o<=0&&(s?f&&f():h&&h())};o||f&&f(),a.length>0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var v=0;v<a.length;v++){var c=a[v];u&&c.done(u),l&&c.aborted(l),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function ti(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function wf(r){return ot(r[0])}function Tf(r,t,e){if(ot(t[e]))if(ot(r[e])||(r[e]=[]),_a(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),ti(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(wf(n))for(var s=n[0].length,f=0;f<o;f++)a[f]?ti(a[f],n[f],s):a[f]=Array.prototype.slice.call(n[f]);else ti(a,n,o);a.length=n.length}else r[e]=t[e]}function bf(r,t){return r===t||ot(r)&&ot(t)&&Sf(r,t)}function Sf(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function $a(r,t,e,i,n,a,o,s){for(var f=N(i),h=n.duration,u=n.delay,l=n.additive,v=n.setToFinal,c=!Mt(a),d=r.animators,g=[],_=0;_<f.length;_++){var p=f[_],m=i[p];if(m!=null&&e[p]!=null&&(c||a[p]))if(Mt(m)&&!ot(m)&&!Re(m)){if(t){s||(e[p]=m,r.updateDuringAnimation(t));continue}$a(r,p,e[p],m,n,a&&a[p],o,s)}else g.push(p);else s||(e[p]=m,r.updateDuringAnimation(t),g.push(p))}var T=g.length;if(!l&&T)for(var y=0;y<d.length;y++){var b=d[y];if(b.targetName===t){var w=b.stopTracks(g);if(w){var M=vt(d,b);d.splice(M,1)}}}if(n.force||(g=ci(g,function(R){return!bf(i[R],e[R])}),T=g.length),T>0||n.force&&!o.length){var S=void 0,L=void 0,x=void 0;if(s){L={},v&&(S={});for(var y=0;y<T;y++){var p=g[y];L[p]=e[p],v?S[p]=i[p]:e[p]=i[p]}}else if(v){x={};for(var y=0;y<T;y++){var p=g[y];x[p]=_e(e[p]),Tf(e,i,p)}}var b=new en(e,!1,!1,l?ci(d,function(D){return D.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),v&&S&&b.whenWithKeys(0,S,g),x&&b.whenWithKeys(0,x,g),b.whenWithKeys(h??500,s?L:i,g).delay(u||0),r.addAnimator(b,t),o.push(b)}}var Va=(function(r){U(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=vt(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=vt(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new A(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var f=n[s];if(!(f.ignore||f.invisible)){var h=f.getBoundingRect(),u=f.getLocalTransform(a);u?(A.applyTransform(i,h,u),o=o||i.clone(),o.union(i)):(o=o||h.clone(),o.union(h))}}return o||i},t})(Oe);Va.prototype.type="group";/*!
|
|
16
|
+
* ZRender, a high performance 2d drawing library.
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
19
|
+
* All rights reserved.
|
|
20
|
+
*
|
|
21
|
+
* LICENSE
|
|
22
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
23
|
+
*/var we={},$t={};function Cf(r){delete $t[r]}function Mf(r){if(!r)return!1;if(typeof r=="string")return Xr(r,1)<Ei;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Xr(t[n].color,1);return e/=i,e<Ei}return!1}var Pf=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new Es,o=i.renderer||"canvas";we[o]||(o=N(we)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new we[o](e,a,i,t),f=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var h=!F.node&&!F.worker&&!f?new cf(s.getViewportRoot(),s.root):null,u=i.useCoarsePointer,l=u==null||u==="auto"?F.touchEventsSupported:!!u,v=44,c;l&&(c=H(i.pointerSize,v)),this.handler=new Da(a,s,h,s.root,c),this.animation=new of({stage:{update:f?null:function(){return n._flush(!0)}}}),f||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Mf(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=dr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=dr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Va&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Cf(this.id))},r})();function Lf(r,t){var e=new Pf(qi(),r,t);return $t[e.id]=e,e}function xf(r){r.dispose()}function Rf(){for(var r in $t)$t.hasOwnProperty(r)&&$t[r].dispose();$t={}}function Df(r){return $t[r]}function Of(r,t){we[r]=t}var Ii;function Ef(r){if(typeof Ii=="function")return Ii(r)}function Af(r){Ii=r}var Ff="6.0.0";const fu=Object.freeze(Object.defineProperty({__proto__:null,dispose:xf,disposeAll:Rf,getElementSSRData:Ef,getInstance:Df,init:Lf,registerPainter:Of,registerSSRDataGetter:Af,version:Ff},Symbol.toStringTag,{value:"Module"}));var Hi=new Yr(50);function If(r){if(typeof r=="string"){var t=Hi.get(r);return t&&t.image}else return r}function Ka(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Hi.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Ee(t)&&a.pending.push(o)):(t=Tt.loadImage(r,Bn,Bn),t.__zrImageSrc=r,Hi.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Bn(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Ee(r){return r&&r.width&&r.height}var ri=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function hu(r,t,e,i,n){var a={};return Qa(a,r,t,e,i,n),a.text}function Qa(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
|
|
24
|
+
`);a=Ja(e,i,n,a);for(var s=!1,f={},h=0,u=o.length;h<u;h++)ja(f,o[h],a),o[h]=f.textLine,s=s||f.isTruncated;r.text=o.join(`
|
|
25
|
+
`),r.isTruncated=s}function Ja(r,t,e,i){i=i||{};var n=E({},i);e=H(e,"..."),n.maxIterations=H(i.maxIterations,2);var a=n.minChar=H(i.minChar,0),o=n.fontMeasureInfo=pt(t),s=o.asciiCharWidth;n.placeholder=H(i.placeholder,"");for(var f=r=Math.max(0,r-1),h=0;h<a&&f>=s;h++)f-=s;var u=_t(o,e);return u>f&&(e="",u=0),f=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=f,n.containerWidth=r,n}function ja(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=_t(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var f=s===0?Hf(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,f),o=_t(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function Hf(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=Za(e,r.charCodeAt(n));return n}function Bf(r,t,e,i){var n=nn(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,f=o?o[0]+o[2]:0,h=t.font,u=a==="truncate",l=De(h),v=H(t.lineHeight,l),c=t.lineOverflow==="truncate",d=!1,g=t.width;g==null&&e!=null&&(g=e-s);var _=t.height;_==null&&i!=null&&(_=i-f);var p;g!=null&&(a==="break"||a==="breakAll")?p=n?to(n,t.font,g,a==="breakAll",0).lines:[]:p=n?n.split(`
|
|
26
|
+
`):[];var m=p.length*v;if(_==null&&(_=m),m>_&&c){var T=Math.floor(_/v);d=d||p.length>T,p=p.slice(0,T),m=p.length*v}if(n&&u&&g!=null)for(var y=Ja(g,h,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w<p.length;w++)ja(b,p[w],y),p[w]=b.textLine,d=d||b.isTruncated;for(var M=_,S=0,L=pt(h),w=0;w<p.length;w++)S=Math.max(_t(L,p[w]),S);g==null&&(g=S);var x=g;return M+=f,x+=s,{lines:p,height:_,outerWidth:x,outerHeight:M,lineHeight:v,calculatedLineHeight:l,contentWidth:S,contentHeight:m,width:g,isTruncated:d}}var zf=(function(){function r(){}return r})(),zn=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),Wf=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function Yf(r,t,e,i,n){var a=new Wf,o=nn(r);if(!o)return a;var s=t.padding,f=s?s[1]+s[3]:0,h=s?s[0]+s[2]:0,u=t.width;u==null&&e!=null&&(u=e-f);var l=t.height;l==null&&i!=null&&(l=i-h);for(var v=t.overflow,c=(v==="break"||v==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:v==="breakAll"}:null,d=ri.lastIndex=0,g;(g=ri.exec(o))!=null;){var _=g.index;_>d&&ei(a,o.substring(d,_),t,c),ei(a,g[2],t,c,g[1]),d=ri.lastIndex}d<o.length&&ei(a,o.substring(d,o.length),t,c);var p=[],m=0,T=0,y=v==="truncate",b=t.lineOverflow==="truncate",w={};function M(Qr,br,Jr){Qr.width=br,Qr.lineHeight=Jr,m+=Jr,T=Math.max(T,br)}t:for(var S=0;S<a.lines.length;S++){for(var L=a.lines[S],x=0,R=0,D=0;D<L.tokens.length;D++){var P=L.tokens[D],C=P.styleName&&t.rich[P.styleName]||{},B=P.textPadding=C.padding,Z=B?B[1]+B[3]:0,$=P.font=C.font||t.font;P.contentHeight=De($);var gt=H(C.height,P.contentHeight);if(P.innerHeight=gt,B&&(gt+=B[0]+B[2]),P.height=gt,P.lineHeight=Fr(C.lineHeight,t.lineHeight,gt),P.align=C&&C.align||n,P.verticalAlign=C&&C.verticalAlign||"middle",b&&l!=null&&m+P.lineHeight>l){var Tr=a.lines.length;D>0?(L.tokens=L.tokens.slice(0,D),M(L,R,x),a.lines=a.lines.slice(0,S+1)):a.lines=a.lines.slice(0,S),a.isTruncated=a.isTruncated||a.lines.length<Tr;break t}var tt=C.width,At=tt==null||tt==="auto";if(typeof tt=="string"&&tt.charAt(tt.length-1)==="%")P.percentWidth=tt,p.push(P),P.contentWidth=_t(pt($),P.text);else{if(At){var mt=C.backgroundColor,X=mt&&mt.image;X&&(X=If(X),Ee(X)&&(P.width=Math.max(P.width,X.width*gt/X.height)))}var rt=y&&u!=null?u-R:null;rt!=null&&rt<P.width?!At||rt<Z?(P.text="",P.width=P.contentWidth=0):(Qa(w,P.text,rt-Z,$,t.ellipsis,{minChar:t.truncateMinChar}),P.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,P.width=P.contentWidth=_t(pt($),P.text)):P.contentWidth=_t(pt($),P.text)}P.width+=Z,R+=P.width,C&&(x=Math.max(x,P.lineHeight))}M(L,R,x)}a.outerWidth=a.width=H(u,T),a.outerHeight=a.height=H(l,m),a.contentHeight=m,a.contentWidth=T,a.outerWidth+=f,a.outerHeight+=h;for(var S=0;S<p.length;S++){var P=p[S],Kr=P.percentWidth;P.width=parseInt(Kr,10)/100*a.width}return a}function ei(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,f=o.font||e.font,h=!1,u,l;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=qr(o.width,i.width)+c;s.length>0&&d+i.accumWidth>i.width&&(u=t.split(`
|
|
27
|
+
`),h=!0),i.accumWidth=d}else{var g=to(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,l=g.linesWidths,u=g.lines}}u||(u=t.split(`
|
|
28
|
+
`));for(var _=pt(f),p=0;p<u.length;p++){var m=u[p],T=new zf;if(T.styleName=n,T.text=m,T.isLineHolder=!m&&!a,typeof o.width=="number"?T.width=o.width:T.width=l?l[p]:_t(_,m),!p&&!h){var y=(s[s.length-1]||(s[0]=new zn)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=T:(m||!b||a)&&y.push(T)}else s.push(new zn([T]))}}function Nf(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Xf=Zr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Gf(r){return Nf(r)?!!Xf[r]:!0}function to(r,t,e,i,n){for(var a=[],o=[],s="",f="",h=0,u=0,l=pt(t),v=0;v<r.length;v++){var c=r.charAt(v);if(c===`
|
|
29
|
+
`){f&&(s+=f,u+=h),a.push(s),o.push(u),s="",f="",h=0,u=0;continue}var d=Za(l,c.charCodeAt(0)),g=i?!1:!Gf(c);if(a.length?u+d>e:n+u+d>e){u?(s||f)&&(g?(s||(s=f,f="",h=0,u=h),a.push(s),o.push(u-h),f+=c,h+=d,s="",u=h):(f&&(s+=f,f="",h=0),a.push(s),o.push(u),s=c,u=d)):g?(a.push(f),o.push(h),f=c,h=d):(a.push(c),o.push(d));continue}u+=d,g?(f+=c,h+=d):(f&&(s+=f,f="",h=0),s+=c)}return f&&(s+=f),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function Wn(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;A.set(Yn,yr(e,o,n),jt(i,s,a),o,s),A.intersect(t,Yn,null,Nn);var f=Nn.outIntersectRect;r.outerWidth=f.width,r.outerHeight=f.height,r.baseX=yr(f.x,f.width,n,!0),r.baseY=jt(f.y,f.height,a,!0)}}var Yn=new A(0,0,0,0),Nn={outIntersectRect:{},clamp:!0};function nn(r){return r!=null?r+="":r=""}function qf(r){var t=nn(r.text),e=r.font,i=_t(pt(e),t),n=De(e);return Bi(r,i,n,null)}function Bi(r,t,e,i){var n=new A(yr(r.x||0,t,r.textAlign),jt(r.y||0,e,r.textBaseline),t,e),a=i??(ro(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function ro(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var zi="__zr_style_"+Math.round(Math.random()*10),tr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ae={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};tr[zi]=!0;var Xn=["z","z2","invisible"],kf=["invisible"],Fe=(function(r){U(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=N(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Uf(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var f=this.parent;f;){if(f.ignore)return!1;f=f.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,f=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new A(0,0,0,0)),i?A.applyTransform(e,n,i):e.copy(n),(o||s||f)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(f),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+f-o));var h=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-h),e.y=Math.floor(e.y-h),e.width=Math.ceil(e.width+1+h*2),e.height=Math.ceil(e.height+1+h*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new A(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:E(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Or,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Or)},t.prototype.styleUpdated=function(){this.__dirty&=~Or},t.prototype.createStyle=function(e){return $r(tr,e)},t.prototype.useStyle=function(e){e[zi]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[zi]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Xn)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.style?o?a?h=i.style:(h=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(h,i.style)):(h=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(h,i.style)):f&&(h=n.style),h)if(o){var u=this.style;if(this.style=this.createStyle(f?{}:u),f)for(var l=N(u),v=0;v<l.length;v++){var c=l[v];c in h&&(h[c]=h[c],this.style[c]=u[c])}for(var d=N(h),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(e,{style:h},s,this.getAnimationStyleProps())}else this.useStyle(h);for(var g=this.__inHover?kf:Xn,v=0;v<g.length;v++){var c=g[v];i&&i[c]!=null?this[c]=i[c]:f&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return E(e,i),e},t.prototype.getAnimationStyleProps=function(){return Ae},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ct|Or})(),t})(Oe),ii=new A(0,0,0,0),ni=new A(0,0,0,0);function Uf(r,t,e){return ii.copy(r.getBoundingRect()),r.transform&&ii.applyTransform(r.transform),ni.width=t,ni.height=e,!ii.intersect(ni)}var z=Math.min,W=Math.max,ai=Math.sin,oi=Math.cos,Yt=Math.PI*2,he=ir(),ue=ir(),le=ir();function uu(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],f=1;f<r.length;f++)i=r[f],n=z(n,i[0]),a=W(a,i[0]),o=z(o,i[1]),s=W(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function Gn(r,t,e,i,n,a){n[0]=z(r,e),n[1]=z(t,i),a[0]=W(r,e),a[1]=W(t,i)}var qn=[],kn=[];function Zf(r,t,e,i,n,a,o,s,f,h){var u=Ha,l=q,v=u(r,e,n,o,qn);f[0]=1/0,f[1]=1/0,h[0]=-1/0,h[1]=-1/0;for(var c=0;c<v;c++){var d=l(r,e,n,o,qn[c]);f[0]=z(d,f[0]),h[0]=W(d,h[0])}v=u(t,i,a,s,kn);for(var c=0;c<v;c++){var g=l(t,i,a,s,kn[c]);f[1]=z(g,f[1]),h[1]=W(g,h[1])}f[0]=z(r,f[0]),h[0]=W(r,h[0]),f[0]=z(o,f[0]),h[0]=W(o,h[0]),f[1]=z(t,f[1]),h[1]=W(t,h[1]),f[1]=z(s,f[1]),h[1]=W(s,h[1])}function $f(r,t,e,i,n,a,o,s){var f=Ba,h=J,u=W(z(f(r,e,n),1),0),l=W(z(f(t,i,a),1),0),v=h(r,e,n,u),c=h(t,i,a,l);o[0]=z(r,n,v),o[1]=z(t,a,c),s[0]=W(r,n,v),s[1]=W(t,a,c)}function Vf(r,t,e,i,n,a,o,s,f){var h=Qi,u=Ji,l=Math.abs(n-a);if(l%Yt<1e-4&&l>1e-4){s[0]=r-e,s[1]=t-i,f[0]=r+e,f[1]=t+i;return}if(he[0]=oi(n)*e+r,he[1]=ai(n)*i+t,ue[0]=oi(a)*e+r,ue[1]=ai(a)*i+t,h(s,he,ue),u(f,he,ue),n=n%Yt,n<0&&(n=n+Yt),a=a%Yt,a<0&&(a=a+Yt),n>a&&!o?a+=Yt:n<a&&o&&(n+=Yt),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(le[0]=oi(c)*e+r,le[1]=ai(c)*i+t,h(s,le,s),u(f,le,f))}var O={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nt=[],Xt=[],ft=[],bt=[],ht=[],ut=[],si=Math.min,fi=Math.max,Gt=Math.cos,qt=Math.sin,yt=Math.abs,Wi=Math.PI,Ct=Wi*2,hi=typeof Float32Array<"u",xr=[];function ui(r){var t=Math.round(r/Wi*1e8)/1e8;return t%2*Wi}function Kf(r,t){var e=ui(r[0]);e<0&&(e+=Ct);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Ct?n=e+Ct:t&&e-n>=Ct?n=e-Ct:!t&&e>n?n=e+(Ct-ui(e-n)):t&&e<n&&(n=e-(Ct-ui(n-e))),r[0]=e,r[1]=n}var an=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=yt(i/En/t)||0,this._uy=yt(i/En/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(O.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=yt(t-this._xi),n=yt(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(O.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(O.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(O.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),xr[0]=n,xr[1]=a,Kf(xr,o),n=xr[0],a=xr[1];var s=a-n;return this.addData(O.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Gt(a)*i+t,this._yi=qt(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(O.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(O.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&hi&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(hi&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var f=t[a].data,s=0;s<f.length;s++)this.data[n++]=f[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,f,h){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var l=0;l<arguments.length;l++)u[this._len++]=arguments[l]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,hi&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ft[0]=ft[1]=ht[0]=ht[1]=Number.MAX_VALUE,bt[0]=bt[1]=ut[0]=ut[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],f=o===1;switch(f&&(e=t[o],i=t[o+1],n=e,a=i),s){case O.M:e=n=t[o++],i=a=t[o++],ht[0]=n,ht[1]=a,ut[0]=n,ut[1]=a;break;case O.L:Gn(e,i,t[o],t[o+1],ht,ut),e=t[o++],i=t[o++];break;case O.C:Zf(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],ht,ut),e=t[o++],i=t[o++];break;case O.Q:$f(e,i,t[o++],t[o++],t[o],t[o+1],ht,ut),e=t[o++],i=t[o++];break;case O.A:var h=t[o++],u=t[o++],l=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var g=!t[o++];f&&(n=Gt(c)*l+h,a=qt(c)*v+u),Vf(h,u,l,v,c,d,g,ht,ut),e=Gt(d)*l+h,i=qt(d)*v+u;break;case O.R:n=e=t[o++],a=i=t[o++];var _=t[o++],p=t[o++];Gn(n,a,n+_,a+p,ht,ut);break;case O.Z:e=n,i=a;break}Qi(ft,ft,ht),Ji(bt,bt,ut)}return o===0&&(ft[0]=ft[1]=bt[0]=bt[1]=0),new A(ft[0],ft[1],bt[0]-ft[0],bt[1]-ft[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,f=0;this._pathSegLen||(this._pathSegLen=[]);for(var h=this._pathSegLen,u=0,l=0,v=0;v<e;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,f=o);var g=-1;switch(c){case O.M:a=s=t[v++],o=f=t[v++];break;case O.L:{var _=t[v++],p=t[v++],m=_-a,T=p-o;(yt(m)>i||yt(T)>n||v===e-1)&&(g=Math.sqrt(m*m+T*T),a=_,o=p);break}case O.C:{var y=t[v++],b=t[v++],_=t[v++],p=t[v++],w=t[v++],M=t[v++];g=Fs(a,o,y,b,_,p,w,M,10),a=w,o=M;break}case O.Q:{var y=t[v++],b=t[v++],_=t[v++],p=t[v++];g=Bs(a,o,y,b,_,p,10),a=_,o=p;break}case O.A:var S=t[v++],L=t[v++],x=t[v++],R=t[v++],D=t[v++],P=t[v++],C=P+D;v+=1,d&&(s=Gt(D)*x+S,f=qt(D)*R+L),g=fi(x,R)*si(Ct,Math.abs(P)),a=Gt(C)*x+S,o=qt(C)*R+L;break;case O.R:{s=a=t[v++],f=o=t[v++];var B=t[v++],Z=t[v++];g=B*2+Z*2;break}case O.Z:{var m=s-a,T=f-o;g=Math.sqrt(m*m+T*T),a=s,o=f;break}}g>=0&&(h[l++]=g,u+=g)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,h,u,l,v,c=e<1,d,g,_=0,p=0,m,T=0,y,b;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m)))t:for(var w=0;w<o;){var M=i[w++],S=w===1;switch(S&&(h=i[w],u=i[w+1],s=h,f=u),M!==O.L&&T>0&&(t.lineTo(y,b),T=0),M){case O.M:s=h=i[w++],f=u=i[w++],t.moveTo(h,u);break;case O.L:{l=i[w++],v=i[w++];var L=yt(l-h),x=yt(v-u);if(L>n||x>a){if(c){var R=d[p++];if(_+R>m){var D=(m-_)/R;t.lineTo(h*(1-D)+l*D,u*(1-D)+v*D);break t}_+=R}t.lineTo(l,v),h=l,u=v,T=0}else{var P=L*L+x*x;P>T&&(y=l,b=v,T=P)}break}case O.C:{var C=i[w++],B=i[w++],Z=i[w++],$=i[w++],gt=i[w++],Tr=i[w++];if(c){var R=d[p++];if(_+R>m){var D=(m-_)/R;wn(h,C,Z,gt,D,Nt),wn(u,B,$,Tr,D,Xt),t.bezierCurveTo(Nt[1],Xt[1],Nt[2],Xt[2],Nt[3],Xt[3]);break t}_+=R}t.bezierCurveTo(C,B,Z,$,gt,Tr),h=gt,u=Tr;break}case O.Q:{var C=i[w++],B=i[w++],Z=i[w++],$=i[w++];if(c){var R=d[p++];if(_+R>m){var D=(m-_)/R;Tn(h,C,Z,D,Nt),Tn(u,B,$,D,Xt),t.quadraticCurveTo(Nt[1],Xt[1],Nt[2],Xt[2]);break t}_+=R}t.quadraticCurveTo(C,B,Z,$),h=Z,u=$;break}case O.A:var tt=i[w++],At=i[w++],mt=i[w++],X=i[w++],rt=i[w++],Kr=i[w++],Qr=i[w++],br=!i[w++],Jr=mt>X?mt:X,fo=yt(mt-X)>.001,Sr=rt+Kr,sn=!1;if(c){var R=d[p++];_+R>m&&(Sr=rt+Kr*(m-_)/R,sn=!0),_+=R}if(fo&&t.ellipse?t.ellipse(tt,At,mt,X,Qr,rt,Sr,br):t.arc(tt,At,Jr,rt,Sr,br),sn)break t;S&&(s=Gt(rt)*mt+tt,f=qt(rt)*X+At),h=Gt(Sr)*mt+tt,u=qt(Sr)*X+At;break;case O.R:s=h=i[w],f=u=i[w+1],l=i[w++],v=i[w++];var ar=i[w++],Cr=i[w++];if(c){var R=d[p++];if(_+R>m){var st=m-_;t.moveTo(l,v),t.lineTo(l+si(st,ar),v),st-=ar,st>0&&t.lineTo(l+ar,v+si(st,Cr)),st-=Cr,st>0&&t.lineTo(l+fi(ar-st,0),v+Cr),st-=ar,st>0&&t.lineTo(l,v+fi(Cr-st,0));break t}_+=R}t.rect(l,v,ar,Cr);break;case O.Z:if(c){var R=d[p++];if(_+R>m){var D=(m-_)/R;t.lineTo(h*(1-D)+s*D,u*(1-D)+f*D);break t}_+=R}t.closePath(),h=s,u=f}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=O,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function ur(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,f=0,h=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)f=(t-i)/(r-e),h=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var u=f*a-o+h,l=u*u/(f*f+1);return l<=s/2*s/2}function Qf(r,t,e,i,n,a,o,s,f,h,u){if(f===0)return!1;var l=f;if(u>t+l&&u>i+l&&u>a+l&&u>s+l||u<t-l&&u<i-l&&u<a-l&&u<s-l||h>r+l&&h>e+l&&h>n+l&&h>o+l||h<r-l&&h<e-l&&h<n-l&&h<o-l)return!1;var v=As(r,t,e,i,n,a,o,s,h,u);return v<=l/2}function Jf(r,t,e,i,n,a,o,s,f){if(o===0)return!1;var h=o;if(f>t+h&&f>i+h&&f>a+h||f<t-h&&f<i-h&&f<a-h||s>r+h&&s>e+h&&s>n+h||s<r-h&&s<e-h&&s<n-h)return!1;var u=Hs(r,t,e,i,n,a,s,f);return u<=h/2}var Un=Math.PI*2;function ve(r){return r%=Un,r<0&&(r+=Un),r}var Rr=Math.PI*2;function jf(r,t,e,i,n,a,o,s,f){if(o===0)return!1;var h=o;s-=r,f-=t;var u=Math.sqrt(s*s+f*f);if(u-h>e||u+h<e)return!1;if(Math.abs(i-n)%Rr<1e-4)return!0;if(a){var l=i;i=ve(n),n=ve(l)}else i=ve(i),n=ve(n);i>n&&(n+=Rr);var v=Math.atan2(f,s);return v<0&&(v+=Rr),v>=i&&v<=n||v+Rr>=i&&v+Rr<=n}function kt(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var f=o*(e-r)+r;return f===n?1/0:f>n?s:0}var St=an.CMD,Ut=Math.PI*2,th=1e-4;function rh(r,t){return Math.abs(r-t)<th}var I=[-1,-1,-1],K=[-1,-1];function eh(){var r=K[0];K[0]=K[1],K[1]=r}function ih(r,t,e,i,n,a,o,s,f,h){if(h>t&&h>i&&h>a&&h>s||h<t&&h<i&&h<a&&h<s)return 0;var u=Ia(t,i,a,s,h,I);if(u===0)return 0;for(var l=0,v=-1,c=void 0,d=void 0,g=0;g<u;g++){var _=I[g],p=_===0||_===1?.5:1,m=q(r,e,n,o,_);m<f||(v<0&&(v=Ha(t,i,a,s,K),K[1]<K[0]&&v>1&&eh(),c=q(t,i,a,s,K[0]),v>1&&(d=q(t,i,a,s,K[1]))),v===2?_<K[0]?l+=c<t?p:-p:_<K[1]?l+=d<c?p:-p:l+=s<d?p:-p:_<K[0]?l+=c<t?p:-p:l+=s<c?p:-p)}return l}function nh(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var f=Is(t,i,a,s,I);if(f===0)return 0;var h=Ba(t,i,a);if(h>=0&&h<=1){for(var u=0,l=J(t,i,a,h),v=0;v<f;v++){var c=I[v]===0||I[v]===1?.5:1,d=J(r,e,n,I[v]);d<o||(I[v]<h?u+=l<t?c:-c:u+=a<l?c:-c)}return u}else{var c=I[0]===0||I[0]===1?.5:1,d=J(r,e,n,I[0]);return d<o?0:a<t?c:-c}}function ah(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var f=Math.sqrt(e*e-s*s);I[0]=-f,I[1]=f;var h=Math.abs(i-n);if(h<1e-4)return 0;if(h>=Ut-1e-4){i=0,n=Ut;var u=a?1:-1;return o>=I[0]+r&&o<=I[1]+r?u:0}if(i>n){var l=i;i=n,n=l}i<0&&(i+=Ut,n+=Ut);for(var v=0,c=0;c<2;c++){var d=I[c];if(d+r>o){var g=Math.atan2(s,d),u=a?1:-1;g<0&&(g=Ut+g),(g>=i&&g<=n||g+Ut>=i&&g+Ut<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(u=-u),v+=u)}}return v}function eo(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,f=0,h=0,u=0,l=0,v,c,d=0;d<o;){var g=a[d++],_=d===1;switch(g===St.M&&d>1&&(e||(s+=kt(f,h,u,l,i,n))),_&&(f=a[d],h=a[d+1],u=f,l=h),g){case St.M:u=a[d++],l=a[d++],f=u,h=l;break;case St.L:if(e){if(ur(f,h,a[d],a[d+1],t,i,n))return!0}else s+=kt(f,h,a[d],a[d+1],i,n)||0;f=a[d++],h=a[d++];break;case St.C:if(e){if(Qf(f,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=ih(f,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;f=a[d++],h=a[d++];break;case St.Q:if(e){if(Jf(f,h,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=nh(f,h,a[d++],a[d++],a[d],a[d+1],i,n)||0;f=a[d++],h=a[d++];break;case St.A:var p=a[d++],m=a[d++],T=a[d++],y=a[d++],b=a[d++],w=a[d++];d+=1;var M=!!(1-a[d++]);v=Math.cos(b)*T+p,c=Math.sin(b)*y+m,_?(u=v,l=c):s+=kt(f,h,v,c,i,n);var S=(i-p)*y/T+p;if(e){if(jf(p,m,y,b,b+w,M,t,S,n))return!0}else s+=ah(p,m,y,b,b+w,M,S,n);f=Math.cos(b+w)*T+p,h=Math.sin(b+w)*y+m;break;case St.R:u=f=a[d++],l=h=a[d++];var L=a[d++],x=a[d++];if(v=u+L,c=l+x,e){if(ur(u,l,v,l,t,i,n)||ur(v,l,v,c,t,i,n)||ur(v,c,u,c,t,i,n)||ur(u,c,u,l,t,i,n))return!0}else s+=kt(v,l,v,c,i,n),s+=kt(u,c,u,l,i,n);break;case St.Z:if(e){if(ur(f,h,u,l,t,i,n))return!0}else s+=kt(f,h,u,l,i,n);f=u,h=l;break}}return!e&&!rh(h,l)&&(s+=kt(f,h,u,l,i,n)||0),s!==0}function oh(r,t,e){return eo(r,0,!1,t,e)}function sh(r,t,e,i){return eo(r,t,!0,e,i)}var io=Et({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tr),fh={style:Et({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ae.style)},li=Gr.concat(["invisible","culling","z","z2","zlevel","parent"]),kr=(function(r){U(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){e.buildPath(f,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<li.length;++s)n[li[s]]=this[li[s]];n.__dirty|=ct}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=N(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?E(this.style,s):this.useStyle(s):o==="shape"?E(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Wr(e)){var i=Xr(e,0);return i>.5?Ai:i>.2?df:Fi}else if(e)return Fi}return Ai},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(Wr(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Xr(e,0)<Ei;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~lr},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new an(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&lr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var f=i.strokeNoScale?this.getLineScale():1,h=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,u??4)}f>1e-10&&(s.width+=h/f,s.height+=h/f,s.x-=h/f/2,s.y-=h/f/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),sh(s,f/h,e,i)))return!0}if(this.hasFill())return oh(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=lr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:E(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&lr)},t.prototype.createStyle=function(e){return $r(io,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=E({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var f=!(i&&a),h;if(i&&i.shape?o?a?h=i.shape:(h=E({},n.shape),E(h,i.shape)):(h=E({},a?this.shape:n.shape),E(h,i.shape)):f&&(h=n.shape),h)if(o){this.shape=E({},this.shape);for(var u={},l=N(h),v=0;v<l.length;v++){var c=l[v];typeof h[c]=="object"?this.shape[c]=h[c]:u[c]=h[c]}this._transitionState(e,{shape:u},s)}else this.shape=h,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return fh},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){U(o,a);function o(s){var f=a.call(this,s)||this;return e.init&&e.init.call(f,s),f}return o.prototype.getDefaultStyle=function(){return rr(e.style)},o.prototype.getDefaultShape=function(){return rr(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ct|Or|lr})(),t})(Fe),hh=Et({strokeFirst:!0,font:Ot,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},io),Me=(function(r){U(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return ro(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return $r(hh,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=qf(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Fe);Me.prototype.type="tspan";var uh=Et({x:0,y:0},tr),lh={style:Et({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ae.style)};function vh(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var on=(function(r){U(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return $r(uh,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=vh(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lh},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new A(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Fe);on.prototype.type="image";function ch(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,h,u;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=h=u=o:o instanceof Array?o.length===1?s=f=h=u=o[0]:o.length===2?(s=h=o[0],f=u=o[1]):o.length===3?(s=o[0],f=u=o[1],h=o[2]):(s=o[0],f=o[1],h=o[2],u=o[3]):s=f=h=u=0;var l;s+f>n&&(l=s+f,s*=n/l,f*=n/l),h+u>n&&(l=h+u,h*=n/l,u*=n/l),f+h>a&&(l=f+h,f*=a/l,h*=a/l),s+u>a&&(l=s+u,s*=a/l,u*=a/l),r.moveTo(e+s,i),r.lineTo(e+n-f,i),f!==0&&r.arc(e+n-f,i+f,f,-Math.PI/2,0),r.lineTo(e+n,i+a-h),h!==0&&r.arc(e+n-h,i+a-h,h,0,Math.PI/2),r.lineTo(e+u,i+a),u!==0&&r.arc(e+u,i+a-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var pr=Math.round;function lu(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(pr(i*2)===pr(n*2)&&(r.x1=r.x2=_r(i,s,!0)),pr(a*2)===pr(o*2)&&(r.y1=r.y2=_r(a,s,!0))),r}}function dh(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=_r(i,s,!0),r.y=_r(n,s,!0),r.width=Math.max(_r(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(_r(n+o,s,!1)-r.y,o===0?0:1)),r}}function _r(r,t,e){if(!t)return r;var i=pr(r*2);return(i+pr(t))%2===0?i/2:(i+(e?1:-1))/2}var ph=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),_h={},no=(function(r){U(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ph},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var f=dh(_h,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?ch(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(kr);no.prototype.type="rect";var Zn={fill:"#000"},$n=2,lt={},gh={style:Et({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ae.style)},mh=(function(r){U(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Zn,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Sh(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new A(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],f=s.getBoundingRect(),h=s.getLocalTransform(n);h?(e.copy(f),e.applyTransform(h),a=a||e.clone(),a.union(e)):(a=a||f.clone(),a.union(f))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Zn},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return E(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=N(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},E(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return gh},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Ot,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,f=e.align||a.align||"left",h=e.verticalAlign||a.verticalAlign||"top";Wn(lt,a.overflowRect,o,s,f,h),o=lt.baseX,s=lt.baseY;var u=ra(e),l=Bf(u,e,lt.outerWidth,lt.outerHeight),v=vi(e),c=!!e.backgroundColor,d=l.outerHeight,g=l.outerWidth,_=l.lines,p=l.lineHeight;this.isTruncated=!!l.isTruncated;var m=o,T=jt(s,l.contentHeight,h);if(v||n){var y=yr(o,g,f),b=jt(s,d,h);v&&this._renderBackground(e,e,y,b,g,d)}T+=p/2,n&&(m=ta(o,f,n),h==="top"?T+=n[0]:h==="bottom"&&(T-=n[2]));for(var w=0,M=!1,S=!1,L=jn("fill"in e?e.fill:(S=!0,a.fill)),x=Jn("stroke"in e?e.stroke:!c&&(!a.autoStroke||S)?(w=$n,M=!0,a.stroke):null),R=e.textShadowBlur>0,D=0;D<_.length;D++){var P=this._getOrCreateChild(Me),C=P.createStyle();P.useStyle(C),C.text=_[D],C.x=m,C.y=T,C.textAlign=f,C.textBaseline="middle",C.opacity=e.opacity,C.strokeFirst=!0,R&&(C.shadowBlur=e.textShadowBlur||0,C.shadowColor=e.textShadowColor||"transparent",C.shadowOffsetX=e.textShadowOffsetX||0,C.shadowOffsetY=e.textShadowOffsetY||0),C.stroke=x,C.fill=L,x&&(C.lineWidth=e.lineWidth||w,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=i,Kn(C,e),T+=p,P.setBoundingRect(Bi(C,l.contentWidth,l.calculatedLineHeight,M?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;Wn(lt,i.overflowRect,o,s,n,a),o=lt.baseX,s=lt.baseY;var f=ra(e),h=Yf(f,e,lt.outerWidth,lt.outerHeight,n),u=h.width,l=h.outerWidth,v=h.outerHeight,c=e.padding;this.isTruncated=!!h.isTruncated;var d=yr(o,l,n),g=jt(s,v,a),_=d,p=g;c&&(_+=c[3],p+=c[0]);var m=_+u;vi(e)&&this._renderBackground(e,e,d,g,l,v);for(var T=!!e.backgroundColor,y=0;y<h.lines.length;y++){for(var b=h.lines[y],w=b.tokens,M=w.length,S=b.lineHeight,L=b.width,x=0,R=_,D=m,P=M-1,C=void 0;x<M&&(C=w[x],!C.align||C.align==="left");)this._placeToken(C,e,S,p,R,"left",T),L-=C.width,R+=C.width,x++;for(;P>=0&&(C=w[P],C.align==="right");)this._placeToken(C,e,S,p,D,"right",T),L-=C.width,D-=C.width,P--;for(R+=(u-(R-_)-(m-D)-L)/2;x<=P;)C=w[x],this._placeToken(C,e,S,p,R+C.width/2,"center",T),R+=C.width,x++;p+=S}},t.prototype._placeToken=function(e,i,n,a,o,s,f){var h=i.rich[e.styleName]||{};h.text=e.text;var u=e.verticalAlign,l=a+n/2;u==="top"?l=a+e.height/2:u==="bottom"&&(l=a+n-e.height/2);var v=!e.isLineHolder&&vi(h);v&&this._renderBackground(h,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,l-e.height/2,e.width,e.height);var c=!!h.backgroundColor,d=e.textPadding;d&&(o=ta(o,s,d),l-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Me),_=g.createStyle();g.useStyle(_);var p=this._defaultStyle,m=!1,T=0,y=!1,b=jn("fill"in h?h.fill:"fill"in i?i.fill:(m=!0,p.fill)),w=Jn("stroke"in h?h.stroke:"stroke"in i?i.stroke:!c&&!f&&(!p.autoStroke||m)?(T=$n,y=!0,p.stroke):null),M=h.textShadowBlur>0||i.textShadowBlur>0;_.text=e.text,_.x=o,_.y=l,M&&(_.shadowBlur=h.textShadowBlur||i.textShadowBlur||0,_.shadowColor=h.textShadowColor||i.textShadowColor||"transparent",_.shadowOffsetX=h.textShadowOffsetX||i.textShadowOffsetX||0,_.shadowOffsetY=h.textShadowOffsetY||i.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=e.font||Ot,_.opacity=Fr(h.opacity,i.opacity,1),Kn(_,h),w&&(_.lineWidth=Fr(h.lineWidth,i.lineWidth,T),_.lineDash=H(h.lineDash,i.lineDash),_.lineDashOffset=i.lineDashOffset||0,_.stroke=w),b&&(_.fill=b),g.setBoundingRect(Bi(_,e.contentWidth,e.contentHeight,y?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var f=e.backgroundColor,h=e.borderWidth,u=e.borderColor,l=f&&f.image,v=f&&!l,c=e.borderRadius,d=this,g,_;if(v||e.lineHeight||h&&u){g=this._getOrCreateChild(no),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,g.dirtyShape()}if(v){var m=g.style;m.fill=f||null,m.fillOpacity=H(e.fillOpacity,1)}else if(l){_=this._getOrCreateChild(on),_.onload=function(){d.dirtyStyle()};var T=_.style;T.image=f.image,T.x=n,T.y=a,T.width=o,T.height=s}if(h&&u){var m=g.style;m.lineWidth=h,m.stroke=u,m.strokeOpacity=H(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var y=(g||_).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Fr(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return bh(e)&&(i=[e.fontStyle,e.fontWeight,Th(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&vr(i)||e.textFont||e.font},t})(Fe),yh={left:!0,right:1,center:1},wh={top:1,bottom:1,middle:1},Vn=["fontStyle","fontWeight","fontSize","fontFamily"];function Th(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Ni+"px":r+"px"}function Kn(r,t){for(var e=0;e<Vn.length;e++){var i=Vn[e],n=t[i];n!=null&&(r[i]=n)}}function bh(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Sh(r){return Qn(r),j(r.rich,Qn),r}function Qn(r){if(r){r.font=mh.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||yh[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||wh[e]?e:"top";var i=r.padding;i&&(r.padding=ma(r.padding))}}function Jn(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function jn(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function ta(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ra(r){var t=r.text;return t!=null&&(t+=""),t}function vi(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var vu=(function(r){U(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),kr.prototype.getBoundingRect.call(this)},t})(kr);function Vt(r){return isFinite(r)}function Ch(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=Vt(i)?i:0,n=Vt(n)?n:1,a=Vt(a)?a:0,o=Vt(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function Mh(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,f=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,f=f*a),o=Vt(o)?o:.5,s=Vt(s)?s:.5,f=f>=0&&Vt(f)?f:.5;var h=r.createRadialGradient(o,s,0,o,s,f);return h}function ea(r,t,e){for(var i=t.type==="radial"?Mh(r,t,e):Ch(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Ph(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function ce(r){return parseInt(r,10)}function cu(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||ce(s[i])||ce(r.style[i]))-(ce(s[a])||0)-(ce(s[o])||0)|0}function Lh(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Ar(r)?[r]:zr(r)?r:null}function ao(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&Lh(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=er(e,function(a){return a/n}),i/=n)}return[e,i]}var xh=new an(!0);function Pe(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function ia(r){return typeof r=="string"&&r!=="none"}function Le(r){var t=r.fill;return t!=null&&t!=="none"}function na(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function aa(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function oa(r,t,e){var i=Ka(t.image,t.__image,e);if(Ee(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ir),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Rh(r,t,e,i){var n,a=Pe(e),o=Le(e),s=e.strokePercent,f=s<1,h=!t.path;(!t.silent||f)&&h&&t.createPathProxy();var u=t.path||xh,l=t.__dirty;if(!i){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,g=a&&!!c.colorStops,_=o&&!!v.image,p=a&&!!c.image,m=void 0,T=void 0,y=void 0,b=void 0,w=void 0;(d||g)&&(w=t.getBoundingRect()),d&&(m=l?ea(r,v,w):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(T=l?ea(r,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=T),_&&(y=l||!t.__canvasFillPattern?oa(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=y),p&&(b=l||!t.__canvasStrokePattern?oa(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=m:_&&(y?r.fillStyle=y:o=!1),g?r.strokeStyle=T:p&&(b?r.strokeStyle=b:a=!1)}var M=t.getGlobalScale();u.setScale(M[0],M[1],t.segmentIgnoreThreshold);var S,L;r.setLineDash&&e.lineDash&&(n=ao(t),S=n[0],L=n[1]);var x=!0;(h||l&lr)&&(u.setDPR(r.dpr),f?u.setContext(null):(u.setContext(r),x=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),x&&u.rebuildPath(r,f?s:1),S&&(r.setLineDash(S),r.lineDashOffset=L),i||(e.strokeFirst?(a&&aa(r,e),o&&na(r,e)):(o&&na(r,e),a&&aa(r,e))),S&&r.setLineDash([])}function Dh(r,t,e){var i=t.__image=Ka(e.image,t.__image,t,t.onload);if(!(!i||!Ee(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var h=e.sx||0,u=e.sy||0;r.drawImage(i,h,u,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var h=e.sx,u=e.sy,l=o-h,v=s-u;r.drawImage(i,h,u,l,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function Oh(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Ot,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=ao(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Pe(e)&&r.strokeText(n,e.x,e.y),Le(e)&&r.fillText(n,e.x,e.y)):(Le(e)&&r.fillText(n,e.x,e.y),Pe(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var sa=["shadowBlur","shadowOffsetX","shadowOffsetY"],fa=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function oo(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Y(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?tr.opacity:o}(i||t.blend!==e.blend)&&(a||(Y(r,n),a=!0),r.globalCompositeOperation=t.blend||tr.blend);for(var s=0;s<sa.length;s++){var f=sa[s];(i||t[f]!==e[f])&&(a||(Y(r,n),a=!0),r[f]=r.dpr*(t[f]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(Y(r,n),a=!0),r.shadowColor=t.shadowColor||tr.shadowColor),a}function ha(r,t,e,i,n){var a=Ur(t,n.inHover),o=i?null:e&&Ur(e,n.inHover)||{};if(a===o)return!1;var s=oo(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Y(r,n),s=!0),ia(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Y(r,n),s=!0),ia(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Y(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var f=a.lineWidth,h=f/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==h&&(s||(Y(r,n),s=!0),r.lineWidth=h)}for(var u=0;u<fa.length;u++){var l=fa[u],v=l[0];(i||a[v]!==o[v])&&(s||(Y(r,n),s=!0),r[v]=a[v]||l[1])}return s}function Eh(r,t,e,i,n){return oo(r,Ur(t,n.inHover),e&&Ur(e,n.inHover),i,n)}function so(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function Ah(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),so(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function Fh(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var ua=1,la=2,va=3,ca=4;function Ih(r){var t=Le(r),e=Pe(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Y(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Ur(r,t){return t&&r.__hoverStyle||r.style}function du(r,t){Yi(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Yi(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ct,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,f=!1;if((!o||Ph(a,o))&&(o&&o.length&&(Y(r,e),r.restore(),f=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Y(r,e),r.save(),Ah(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var h=e.prevEl;h||(f=s=!0);var u=t instanceof kr&&t.autoBatch&&Ih(t.style);s||Fh(n,h.transform)?(Y(r,e),so(r,t)):u||Y(r,e);var l=Ur(t,e.inHover);t instanceof kr?(e.lastDrawType!==ua&&(f=!0,e.lastDrawType=ua),ha(r,t,h,f,e),(!u||!e.batchFill&&!e.batchStroke)&&r.beginPath(),Rh(r,t,l,u),u&&(e.batchFill=l.fill||"",e.batchStroke=l.stroke||"")):t instanceof Me?(e.lastDrawType!==va&&(f=!0,e.lastDrawType=va),ha(r,t,h,f,e),Oh(r,t,l)):t instanceof on?(e.lastDrawType!==la&&(f=!0,e.lastDrawType=la),Eh(r,t,h,f,e),Dh(r,t,l)):t.getTemporalDisplayables&&(e.lastDrawType!==ca&&(f=!0,e.lastDrawType=ca),Hh(r,t,e)),u&&i&&Y(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Hh(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var f=i[o];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Yi(r,f,a,o===s-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),a.prevEl=f}for(var h=0,u=n.length;h<u;h++){var f=n[h];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Yi(r,f,a,h===u-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),a.prevEl=f}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}export{Kt as $,zh as A,A as B,vu as C,fu as D,H as E,Sa as F,Va as G,is as H,Ar as I,an as J,Ia as K,kr as L,q as M,Xa as N,gf as O,nt as P,qr as Q,no as R,Kf as S,Fr as T,Po as U,zo as V,uu as W,Wo as X,Fo as Y,mh as Z,N as _,on as a,ba as a$,wi as a0,xa as a1,ma as a2,Fe as a3,Jt as a4,Us as a5,Zs as a6,Ao as a7,qo as a8,rs as a9,cs as aA,et as aB,Yh as aC,Nh as aD,vr as aE,k as aF,nr as aG,de as aH,_i as aI,ot as aJ,Eo as aK,pf as aL,Pa as aM,Gh as aN,Vr as aO,Me as aP,Dt as aQ,Ua as aR,tn as aS,Qi as aT,Ji as aU,Na as aV,Gr as aW,_e as aX,Do as aY,Vs as aZ,U as a_,ts as aa,ir as ab,$o as ac,Vi as ad,ko as ae,Go as af,Zo as ag,Tn as ah,J as ai,Qt as aj,ga as ak,ms as al,Uh as am,ur as an,Jf as ao,So as ap,Tt as aq,ve as ar,Pi as as,No as at,ps as au,La as av,su as aw,_r as ax,rn as ay,Te as az,xo as b,Uo as b0,lu as b1,wn as b2,kh as b3,bs as b4,dh as b5,_a as b6,Io as b7,Yr as b8,Lf as b9,eu as bA,ru as bB,Ef as bC,jh as bD,tu as bE,cu as bF,ou as bG,Yo as bH,ct as bI,En as bJ,Re as bK,ea as bL,Oo as bM,oa as bN,Yi as bO,Si as bP,ki as bQ,Os as ba,Af as bb,$i as bc,Of as bd,kt as be,Vh as bf,$h as bg,ao as bh,io as bi,za as bj,au as bk,nu as bl,iu as bm,Ot as bn,Jh as bo,De as bp,Qh as bq,bh as br,Th as bs,vo as bt,Js as bu,js as bv,Mn as bw,Ks as bx,Ka as by,Kh as bz,rr as c,Ro as d,Xh as e,Et as f,j as g,E as h,ci as i,vt as j,Mo as k,zr as l,Zi as m,xt as n,Mt as o,Wr as p,er as q,Ui as r,Zr as s,hu as t,Zh as u,F as v,du as w,qh as x,Bh as y,Wh as z};
|