UNPKG

@senx/discovery-plugin-marauder

Version:

Discovery plugin - Marauder's map

29 lines (25 loc) 1.86 MB
import{r as t,c as e,h as r,H as i,g as n}from"./p-b07c75fa.js";import{a}from"./p-20551b23.js";import{P as s,U as o}from"./p-9fd389a9.js";import{g as u}from"./p-30f68cd2.js";import{_ as l,G as f,l as h,L as v,v as c,c as d,d as m,a as p,J as y,b as _}from"./p-1117c627.js";import{C as g}from"./p-90362062.js";import{d as b,l as w,L as M}from"./p-a67703df.js";import{L as x}from"./p-a3b5e83b.js";import{M as k}from"./p-d8e9fc5a.js";import{a as Y}from"./p-070a8123.js"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var S=function(t,e){S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return S(t,e)};function D(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");S(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var T=function(){function t(){this.firefox=false;this.ie=false;this.edge=false;this.newEdge=false;this.weChat=false}return t}();var A=function(){function t(){this.browser=new T;this.node=false;this.wxa=false;this.worker=false;this.svgSupported=false;this.touchEventsSupported=false;this.pointerEventsSupported=false;this.domSupported=false;this.transformSupported=false;this.transform3dSupported=false;this.hasGlobalWindow=typeof window!=="undefined"}return t}();var O=new A;if(typeof wx==="object"&&typeof wx.getSystemInfoSync==="function"){O.wxa=true;O.touchEventsSupported=true}else if(typeof document==="undefined"&&typeof self!=="undefined"){O.worker=true}else if(typeof navigator==="undefined"||navigator.userAgent.indexOf("Node.js")===0){O.node=true;O.svgSupported=true}else{N(navigator.userAgent,O)}function N(t,e){var r=e.browser;var i=t.match(/Firefox\/([\d.]+)/);var n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/);var a=t.match(/Edge?\/([\d.]+)/);var s=/micromessenger/i.test(t);if(i){r.firefox=true;r.version=i[1]}if(n){r.ie=true;r.version=n[1]}if(a){r.edge=true;r.version=a[1];r.newEdge=+a[1].split(".")[0]>18}if(s){r.weChat=true}e.svgSupported=typeof SVGRect!=="undefined";e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge;e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);e.domSupported=typeof document!=="undefined";var o=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in o||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o);e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}const j=O;var H=12;var I="sans-serif";var z=H+"px "+I;var C=20;var P=100;var E="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function W(t){var e={};if(typeof JSON==="undefined"){return e}for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32);var n=(t.charCodeAt(r)-C)/P;e[i]=n}return e}var R=W(E);var F={createCanvas:function(){return typeof document!=="undefined"&&document.createElement("canvas")},measureText:function(){var t;var e;return function(r,i){if(!t){var n=F.createCanvas();t=n&&n.getContext("2d")}if(t){if(e!==i){e=t.font=i||z}return t.measureText(r)}else{r=r||"";i=i||z;var a=/((?:\d+)?\.?\d*)px/.exec(i);var s=a&&+a[1]||H;var o=0;if(i.indexOf("mono")>=0){o=s*r.length}else{for(var u=0;u<r.length;u++){var l=R[r[u]];o+=l==null?s:l*s}}return{width:o}}}}(),loadImage:function(t,e,r){var i=new Image;i.onload=e;i.onerror=r;i.src=t;return i}};var B=dt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){t["[object "+e+"]"]=true;return t}),{});var U=dt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){t["[object "+e+"Array]"]=true;return t}),{});var J=Object.prototype.toString;var V=Array.prototype;var G=V.forEach;var Z=V.filter;var $=V.slice;var X=V.map;var q=function(){}.constructor;var K=q?q.prototype:null;var Q="__proto__";var tt=2311;function et(){return tt++}function rt(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}if(typeof console!=="undefined"){console.error.apply(console,t)}}function it(t){if(t==null||typeof t!=="object"){return t}var e=t;var r=J.call(t);if(r==="[object Array]"){if(!Bt(t)){e=[];for(var i=0,n=t.length;i<n;i++){e[i]=it(t[i])}}}else if(U[r]){if(!Bt(t)){var a=t.constructor;if(a.from){e=a.from(t)}else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++){e[i]=t[i]}}}}else if(!B[r]&&!Bt(t)&&!Tt(t)){e={};for(var s in t){if(t.hasOwnProperty(s)&&s!==Q){e[s]=it(t[s])}}}return e}function nt(t,e,r){if(!Yt(e)||!Yt(t)){return r?it(e):t}for(var i in e){if(e.hasOwnProperty(i)&&i!==Q){var n=t[i];var a=e[i];if(Yt(a)&&Yt(n)&&!wt(a)&&!wt(n)&&!Tt(a)&&!Tt(n)&&!St(a)&&!St(n)&&!Bt(a)&&!Bt(n)){nt(n,a,r)}else if(r||!(i in t)){t[i]=it(e[i])}}}return t}function at(t,e){var r=t[0];for(var i=1,n=t.length;i<n;i++){r=nt(r,t[i],e)}return r}function st(t,e){if(Object.assign){Object.assign(t,e)}else{for(var r in e){if(e.hasOwnProperty(r)&&r!==Q){t[r]=e[r]}}}return t}function ot(t,e,r){var i=yt(e);for(var n=0;n<i.length;n++){var a=i[n];if(r?e[a]!=null:t[a]==null){t[a]=e[a]}}return t}function ut(t,e){if(t){if(t.indexOf){return t.indexOf(e)}for(var r=0,i=t.length;r<i;r++){if(t[r]===e){return r}}}return-1}function lt(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype;t.prototype=new i;for(var n in r){if(r.hasOwnProperty(n)){t.prototype[n]=r[n]}}t.prototype.constructor=t;t.superClass=e}function ft(t,e,r){t="prototype"in t?t.prototype:t;e="prototype"in e?e.prototype:e;if(Object.getOwnPropertyNames){var i=Object.getOwnPropertyNames(e);for(var n=0;n<i.length;n++){var a=i[n];if(a!=="constructor"){if(r?e[a]!=null:t[a]==null){t[a]=e[a]}}}}else{ot(t,e,r)}}function ht(t){if(!t){return false}if(typeof t==="string"){return false}return typeof t.length==="number"}function vt(t,e,r){if(!(t&&e)){return}if(t.forEach&&t.forEach===G){t.forEach(e,r)}else if(t.length===+t.length){for(var i=0,n=t.length;i<n;i++){e.call(r,t[i],i,t)}}else{for(var a in t){if(t.hasOwnProperty(a)){e.call(r,t[a],a,t)}}}}function ct(t,e,r){if(!t){return[]}if(!e){return Ct(t)}if(t.map&&t.map===X){return t.map(e,r)}else{var i=[];for(var n=0,a=t.length;n<a;n++){i.push(e.call(r,t[n],n,t))}return i}}function dt(t,e,r,i){if(!(t&&e)){return}for(var n=0,a=t.length;n<a;n++){r=e.call(i,r,t[n],n,t)}return r}function mt(t,e,r){if(!t){return[]}if(!e){return Ct(t)}if(t.filter&&t.filter===Z){return t.filter(e,r)}else{var i=[];for(var n=0,a=t.length;n<a;n++){if(e.call(r,t[n],n,t)){i.push(t[n])}}return i}}function pt(t,e,r){if(!(t&&e)){return}for(var i=0,n=t.length;i<n;i++){if(e.call(r,t[i],i,t)){return t[i]}}}function yt(t){if(!t){return[]}if(Object.keys){return Object.keys(t)}var e=[];for(var r in t){if(t.hasOwnProperty(r)){e.push(r)}}return e}function _t(t,e){var r=[];for(var i=2;i<arguments.length;i++){r[i-2]=arguments[i]}return function(){return t.apply(e,r.concat($.call(arguments)))}}var gt=K&&Mt(K.bind)?K.call.bind(K.bind):_t;function bt(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}return function(){return t.apply(this,e.concat($.call(arguments)))}}function wt(t){if(Array.isArray){return Array.isArray(t)}return J.call(t)==="[object Array]"}function Mt(t){return typeof t==="function"}function xt(t){return typeof t==="string"}function Lt(t){return J.call(t)==="[object String]"}function kt(t){return typeof t==="number"}function Yt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function St(t){return!!B[J.call(t)]}function Dt(t){return!!U[J.call(t)]}function Tt(t){return typeof t==="object"&&typeof t.nodeType==="number"&&typeof t.ownerDocument==="object"}function At(t){return t.colorStops!=null}function Ot(t){return t.image!=null}function Nt(t){return J.call(t)==="[object RegExp]"}function jt(t){return t!==t}function Ht(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}for(var r=0,i=t.length;r<i;r++){if(t[r]!=null){return t[r]}}}function It(t,e){return t!=null?t:e}function zt(t,e,r){return t!=null?t:e!=null?e:r}function Ct(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}return $.apply(t,e)}function Pt(t){if(typeof t==="number"){return[t,t,t,t]}var e=t.length;if(e===2){return[t[0],t[1],t[0],t[1]]}else if(e===3){return[t[0],t[1],t[2],t[1]]}return t}function Et(t,e){if(!t){throw new Error(e)}}function Wt(t){if(t==null){return null}else if(typeof t.trim==="function"){return t.trim()}else{return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}var Rt="__ec_primitive__";function Ft(t){t[Rt]=true}function Bt(t){return t[Rt]}var Ut=function(){function t(){this.data={}}t.prototype["delete"]=function(t){var e=this.has(t);if(e){delete this.data[t]}return e};t.prototype.has=function(t){return this.data.hasOwnProperty(t)};t.prototype.get=function(t){return this.data[t]};t.prototype.set=function(t,e){this.data[t]=e;return this};t.prototype.keys=function(){return yt(this.data)};t.prototype.forEach=function(t){var e=this.data;for(var r in e){if(e.hasOwnProperty(r)){t(e[r],r)}}};return t}();var Jt=typeof Map==="function";function Vt(){return Jt?new Map:new Ut}var Gt=function(){function t(e){var r=wt(e);this.data=Vt();var i=this;e instanceof t?e.each(n):e&&vt(e,n);function n(t,e){r?i.set(t,e):i.set(e,t)}}t.prototype.hasKey=function(t){return this.data.has(t)};t.prototype.get=function(t){return this.data.get(t)};t.prototype.set=function(t,e){this.data.set(t,e);return e};t.prototype.each=function(t,e){this.data.forEach((function(r,i){t.call(e,r,i)}))};t.prototype.keys=function(){var t=this.data.keys();return Jt?Array.from(t):t};t.prototype.removeKey=function(t){this.data["delete"](t)};return t}();function Zt(t){return new Gt(t)}function $t(t,e){var r=new t.constructor(t.length+e.length);for(var i=0;i<t.length;i++){r[i]=t[i]}var n=t.length;for(var i=0;i<e.length;i++){r[i+n]=e[i]}return r}function Xt(t,e){var r;if(Object.create){r=Object.create(t)}else{var i=function(){};i.prototype=t;r=new i}if(e){st(r,e)}return r}function qt(t){var e=t.style;e.webkitUserSelect="none";e.userSelect="none";e.webkitTapHighlightColor="rgba(0,0,0,0)";e["-webkit-touch-callout"]="none"}function Kt(t,e){return t.hasOwnProperty(e)}function Qt(){}var te=180/Math.PI; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var ee=function(t,e){ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return ee(t,e)};function re(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ee(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function ie(t,e){if(t==null){t=0}if(e==null){e=0}return[t,e]}function ne(t,e){t[0]=e[0];t[1]=e[1];return t}function ae(t){return[t[0],t[1]]}function se(t,e,r){t[0]=e;t[1]=r;return t}function oe(t,e,r){t[0]=e[0]+r[0];t[1]=e[1]+r[1];return t}function ue(t,e,r,i){t[0]=e[0]+r[0]*i;t[1]=e[1]+r[1]*i;return t}function le(t,e,r){t[0]=e[0]-r[0];t[1]=e[1]-r[1];return t}function fe(t){return Math.sqrt(he(t))}function he(t){return t[0]*t[0]+t[1]*t[1]}function ve(t,e,r){t[0]=e[0]*r;t[1]=e[1]*r;return t}function ce(t,e){var r=fe(e);if(r===0){t[0]=0;t[1]=0}else{t[0]=e[0]/r;t[1]=e[1]/r}return t}function de(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var me=de;function pe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ye=pe;function _e(t,e,r,i){t[0]=e[0]+i*(r[0]-e[0]);t[1]=e[1]+i*(r[1]-e[1]);return t}function ge(t,e,r){var i=e[0];var n=e[1];t[0]=r[0]*i+r[2]*n+r[4];t[1]=r[1]*i+r[3]*n+r[5];return t}function be(t,e,r){t[0]=Math.min(e[0],r[0]);t[1]=Math.min(e[1],r[1]);return t}function we(t,e,r){t[0]=Math.max(e[0],r[0]);t[1]=Math.max(e[1],r[1]);return t}var Me=function(){function t(t,e){this.target=t;this.topTarget=e&&e.topTarget}return t}();var xe=function(){function t(t){this.handler=t;t.on("mousedown",this._dragStart,this);t.on("mousemove",this._drag,this);t.on("mouseup",this._dragEnd,this)}t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable){e=e.parent||e.__hostTarget}if(e){this._draggingTarget=e;e.dragging=true;this._x=t.offsetX;this._y=t.offsetY;this.handler.dispatchToElement(new Me(e,t),"dragstart",t.event)}};t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var r=t.offsetX;var i=t.offsetY;var n=r-this._x;var a=i-this._y;this._x=r;this._y=i;e.drift(n,a,t);this.handler.dispatchToElement(new Me(e,t),"drag",t.event);var s=this.handler.findHover(r,i,e).target;var o=this._dropTarget;this._dropTarget=s;if(e!==s){if(o&&s!==o){this.handler.dispatchToElement(new Me(o,t),"dragleave",t.event)}if(s&&s!==o){this.handler.dispatchToElement(new Me(s,t),"dragenter",t.event)}}}};t.prototype._dragEnd=function(t){var e=this._draggingTarget;if(e){e.dragging=false}this.handler.dispatchToElement(new Me(e,t),"dragend",t.event);if(this._dropTarget){this.handler.dispatchToElement(new Me(this._dropTarget,t),"drop",t.event)}this._draggingTarget=null;this._dropTarget=null};return t}();const Le=xe;var ke=function(){function t(t){if(t){this._$eventProcessor=t}}t.prototype.on=function(t,e,r,i){if(!this._$handlers){this._$handlers={}}var n=this._$handlers;if(typeof e==="function"){i=r;r=e;e=null}if(!r||!t){return this}var a=this._$eventProcessor;if(e!=null&&a&&a.normalizeQuery){e=a.normalizeQuery(e)}if(!n[t]){n[t]=[]}for(var s=0;s<n[t].length;s++){if(n[t][s].h===r){return this}}var o={h:r,query:e,ctx:i||this,callAtLast:r.zrEventfulCallAtLast};var u=n[t].length-1;var l=n[t][u];l&&l.callAtLast?n[t].splice(u,0,o):n[t].push(o);return this};t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length};t.prototype.off=function(t,e){var r=this._$handlers;if(!r){return this}if(!t){this._$handlers={};return this}if(e){if(r[t]){var i=[];for(var n=0,a=r[t].length;n<a;n++){if(r[t][n].h!==e){i.push(r[t][n])}}r[t]=i}if(r[t]&&r[t].length===0){delete r[t]}}else{delete r[t]}return this};t.prototype.trigger=function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}if(!this._$handlers){return this}var i=this._$handlers[t];var n=this._$eventProcessor;if(i){var a=e.length;var s=i.length;for(var o=0;o<s;o++){var u=i[o];if(n&&n.filter&&u.query!=null&&!n.filter(t,u.query)){continue}switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}}n&&n.afterTrigger&&n.afterTrigger(t);return this};t.prototype.triggerWithContext=function(t){var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}if(!this._$handlers){return this}var i=this._$handlers[t];var n=this._$eventProcessor;if(i){var a=e.length;var s=e[a-1];var o=i.length;for(var u=0;u<o;u++){var l=i[u];if(n&&n.filter&&l.query!=null&&!n.filter(t,l.query)){continue}switch(a){case 0:l.h.call(s);break;case 1:l.h.call(s,e[0]);break;case 2:l.h.call(s,e[0],e[1]);break;default:l.h.apply(s,e.slice(1,a-1));break}}}n&&n.afterTrigger&&n.afterTrigger(t);return this};return t}();const Ye=ke;var Se=Math.log(2);function De(t,e,r,i,n,a){var s=i+"-"+n;var o=t.length;if(a.hasOwnProperty(s)){return a[s]}if(e===1){var u=Math.round(Math.log((1<<o)-1&~n)/Se);return t[r][u]}var l=i|1<<r;var f=r+1;while(i&1<<f){f++}var h=0;for(var v=0,c=0;v<o;v++){var d=1<<v;if(!(d&n)){h+=(c%2?-1:1)*t[r][v]*De(t,e-1,f,l,n|d,a);c++}}a[s]=h;return h}function Te(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]];var i={};var n=De(r,8,0,0,0,i);if(n===0){return}var a=[];for(var s=0;s<8;s++){for(var o=0;o<8;o++){a[o]==null&&(a[o]=0);a[o]+=((s+o)%2?-1:1)*De(r,7,s===0?1:0,1<<s,1<<o,i)/n*e[s]}}return function(t,e,r){var i=e*a[6]+r*a[7]+1;t[0]=(e*a[0]+r*a[1]+a[2])/i;t[1]=(e*a[3]+r*a[4]+a[5])/i}}var Ae="___zrEVENTSAVED";var Oe=[];function Ne(t,e,r,i,n){return je(Oe,e,i,n,true)&&je(t,r,Oe[0],Oe[1])}function je(t,e,r,i,n){if(e.getBoundingClientRect&&j.domSupported&&!ze(e)){var a=e[Ae]||(e[Ae]={});var s=He(e,a);var o=Ie(s,a,n);if(o){o(t,r,i);return true}}return false}function He(t,e){var r=e.markers;if(r){return r}r=e.markers=[];var i=["left","right"];var n=["top","bottom"];for(var a=0;a<4;a++){var s=document.createElement("div");var o=s.style;var u=a%2;var l=(a>>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;");t.appendChild(s);r.push(s)}return r}function Ie(t,e,r){var i=r?"invTrans":"trans";var n=e[i];var a=e.srcCoords;var s=[];var o=[];var u=true;for(var l=0;l<4;l++){var f=t[l].getBoundingClientRect();var h=2*l;var v=f.left;var c=f.top;s.push(v,c);u=u&&a&&v===a[h]&&c===a[h+1];o.push(t[l].offsetLeft,t[l].offsetTop)}return u&&n?n:(e.srcCoords=s,e[i]=r?Te(o,s):Te(s,o))}function ze(t){return t.nodeName.toUpperCase()==="CANVAS"}var Ce=/([&<>"'])/g;var Pe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ee(t){return t==null?"":(t+"").replace(Ce,(function(t,e){return Pe[e]}))}var We=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;var Re=[];var Fe=j.browser.firefox&&+j.browser.version.split(".")[0]<39;function Be(t,e,r,i){r=r||{};if(i){Ue(t,e,r)}else if(Fe&&e.layerX!=null&&e.layerX!==e.offsetX){r.zrX=e.layerX;r.zrY=e.layerY}else if(e.offsetX!=null){r.zrX=e.offsetX;r.zrY=e.offsetY}else{Ue(t,e,r)}return r}function Ue(t,e,r){if(j.domSupported&&t.getBoundingClientRect){var i=e.clientX;var n=e.clientY;if(ze(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left;r.zrY=n-a.top;return}else{if(je(Re,t,i,n)){r.zrX=Re[0];r.zrY=Re[1];return}}}r.zrX=r.zrY=0}function Je(t){return t||window.event}function Ve(t,e,r){e=Je(e);if(e.zrX!=null){return e}var i=e.type;var n=i&&i.indexOf("touch")>=0;if(!n){Be(t,e,e,r);var a=Ge(e);e.zrDelta=a?a/120:-(e.detail||0)/3}else{var s=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];s&&Be(t,s,e,r)}var o=e.button;if(e.which==null&&o!==undefined&&We.test(e.type)){e.which=o&1?1:o&2?3:o&4?2:0}return e}function Ge(t){var e=t.wheelDelta;if(e){return e}var r=t.deltaX;var i=t.deltaY;if(r==null||i==null){return e}var n=i!==0?Math.abs(i):Math.abs(r);var a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Ze(t,e,r,i){t.addEventListener(e,r,i)}function $e(t,e,r,i){t.removeEventListener(e,r,i)}var Xe=function(t){t.preventDefault();t.stopPropagation();t.cancelBubble=true};function qe(t){return t.which===2||t.which===3}var Ke=function(){function t(){this._track=[]}t.prototype.recognize=function(t,e,r){this._doTrack(t,e,r);return this._recognize(t)};t.prototype.clear=function(){this._track.length=0;return this};t.prototype._doTrack=function(t,e,r){var i=t.touches;if(!i){return}var n={points:[],touches:[],target:e,event:t};for(var a=0,s=i.length;a<s;a++){var o=i[a];var u=Be(r,o,{});n.points.push([u.zrX,u.zrY]);n.touches.push(o)}this._track.push(n)};t.prototype._recognize=function(t){for(var e in er){if(er.hasOwnProperty(e)){var r=er[e](this._track,t);if(r){return r}}}};return t}();function Qe(t){var e=t[1][0]-t[0][0];var r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function tr(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var er={pinch:function(t,e){var r=t.length;if(!r){return}var i=(t[r-1]||{}).points;var n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Qe(i)/Qe(n);!isFinite(a)&&(a=1);e.pinchScale=a;var s=tr(i);e.pinchX=s[0];e.pinchY=s[1];return{type:"pinch",target:t[0].target,event:e}}}};function rr(){return[1,0,0,1,0,0]}function ir(t){t[0]=1;t[1]=0;t[2]=0;t[3]=1;t[4]=0;t[5]=0;return t}function nr(t,e){t[0]=e[0];t[1]=e[1];t[2]=e[2];t[3]=e[3];t[4]=e[4];t[5]=e[5];return t}function ar(t,e,r){var i=e[0]*r[0]+e[2]*r[1];var n=e[1]*r[0]+e[3]*r[1];var a=e[0]*r[2]+e[2]*r[3];var s=e[1]*r[2]+e[3]*r[3];var o=e[0]*r[4]+e[2]*r[5]+e[4];var u=e[1]*r[4]+e[3]*r[5]+e[5];t[0]=i;t[1]=n;t[2]=a;t[3]=s;t[4]=o;t[5]=u;return t}function sr(t,e,r){t[0]=e[0];t[1]=e[1];t[2]=e[2];t[3]=e[3];t[4]=e[4]+r[0];t[5]=e[5]+r[1];return t}function or(t,e,r,i){if(i===void 0){i=[0,0]}var n=e[0];var a=e[2];var s=e[4];var o=e[1];var u=e[3];var l=e[5];var f=Math.sin(r);var h=Math.cos(r);t[0]=n*h+o*f;t[1]=-n*f+o*h;t[2]=a*h+u*f;t[3]=-a*f+h*u;t[4]=h*(s-i[0])+f*(l-i[1])+i[0];t[5]=h*(l-i[1])-f*(s-i[0])+i[1];return t}function ur(t,e,r){var i=r[0];var n=r[1];t[0]=e[0]*i;t[1]=e[1]*n;t[2]=e[2]*i;t[3]=e[3]*n;t[4]=e[4]*i;t[5]=e[5]*n;return t}function lr(t,e){var r=e[0];var i=e[2];var n=e[4];var a=e[1];var s=e[3];var o=e[5];var u=r*s-a*i;if(!u){return null}u=1/u;t[0]=s*u;t[1]=-a*u;t[2]=-i*u;t[3]=r*u;t[4]=(i*o-s*n)*u;t[5]=(a*n-r*o)*u;return t}function fr(t){var e=rr();nr(e,t);return e}var hr=function(){function t(t,e){this.x=t||0;this.y=e||0}t.prototype.copy=function(t){this.x=t.x;this.y=t.y;return this};t.prototype.clone=function(){return new t(this.x,this.y)};t.prototype.set=function(t,e){this.x=t;this.y=e;return this};t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y};t.prototype.add=function(t){this.x+=t.x;this.y+=t.y;return this};t.prototype.scale=function(t){this.x*=t;this.y*=t};t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e;this.y+=t.y*e};t.prototype.sub=function(t){this.x-=t.x;this.y-=t.y;return this};t.prototype.dot=function(t){return this.x*t.x+this.y*t.y};t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y};t.prototype.normalize=function(){var t=this.len();this.x/=t;this.y/=t;return this};t.prototype.distance=function(t){var e=this.x-t.x;var r=this.y-t.y;return Math.sqrt(e*e+r*r)};t.prototype.distanceSquare=function(t){var e=this.x-t.x;var r=this.y-t.y;return e*e+r*r};t.prototype.negate=function(){this.x=-this.x;this.y=-this.y;return this};t.prototype.transform=function(t){if(!t){return}var e=this.x;var r=this.y;this.x=t[0]*e+t[2]*r+t[4];this.y=t[1]*e+t[3]*r+t[5];return this};t.prototype.toArray=function(t){t[0]=this.x;t[1]=this.y;return t};t.prototype.fromArray=function(t){this.x=t[0];this.y=t[1]};t.set=function(t,e,r){t.x=e;t.y=r};t.copy=function(t,e){t.x=e.x;t.y=e.y};t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)};t.lenSquare=function(t){return t.x*t.x+t.y*t.y};t.dot=function(t,e){return t.x*e.x+t.y*e.y};t.add=function(t,e,r){t.x=e.x+r.x;t.y=e.y+r.y};t.sub=function(t,e,r){t.x=e.x-r.x;t.y=e.y-r.y};t.scale=function(t,e,r){t.x=e.x*r;t.y=e.y*r};t.scaleAndAdd=function(t,e,r,i){t.x=e.x+r.x*i;t.y=e.y+r.y*i};t.lerp=function(t,e,r,i){var n=1-i;t.x=n*e.x+i*r.x;t.y=n*e.y+i*r.y};return t}();const vr=hr;var cr=Math.min;var dr=Math.max;var mr=new vr;var pr=new vr;var yr=new vr;var _r=new vr;var gr=new vr;var br=new vr;var wr=function(){function t(t,e,r,i){if(r<0){t=t+r;r=-r}if(i<0){e=e+i;i=-i}this.x=t;this.y=e;this.width=r;this.height=i}t.prototype.union=function(t){var e=cr(t.x,this.x);var r=cr(t.y,this.y);if(isFinite(this.x)&&isFinite(this.width)){this.width=dr(t.x+t.width,this.x+this.width)-e}else{this.width=t.width}if(isFinite(this.y)&&isFinite(this.height)){this.height=dr(t.y+t.height,this.y+this.height)-r}else{this.height=t.height}this.x=e;this.y=r};t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)};t.prototype.calculateTransform=function(t){var e=this;var r=t.width/e.width;var i=t.height/e.height;var n=rr();sr(n,n,[-e.x,-e.y]);ur(n,n,[r,i]);sr(n,n,[t.x,t.y]);return n};t.prototype.intersect=function(e,r){if(!e){return false}if(!(e instanceof t)){e=t.create(e)}var i=this;var n=i.x;var a=i.x+i.width;var s=i.y;var o=i.y+i.height;var u=e.x;var l=e.x+e.width;var f=e.y;var h=e.y+e.height;var v=!(a<u||l<n||o<f||h<s);if(r){var c=Infinity;var d=0;var m=Math.abs(a-u);var p=Math.abs(l-n);var y=Math.abs(o-f);var _=Math.abs(h-s);var g=Math.min(m,p);var b=Math.min(y,_);if(a<u||l<n){if(g>d){d=g;if(m<p){vr.set(br,-m,0)}else{vr.set(br,p,0)}}}else{if(g<c){c=g;if(m<p){vr.set(gr,m,0)}else{vr.set(gr,-p,0)}}}if(o<f||h<s){if(b>d){d=b;if(y<_){vr.set(br,0,-y)}else{vr.set(br,0,_)}}}else{if(g<c){c=g;if(y<_){vr.set(gr,0,y)}else{vr.set(gr,0,-_)}}}}if(r){vr.copy(r,v?gr:br)}return v};t.prototype.contain=function(t,e){var r=this;return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height};t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)};t.prototype.copy=function(e){t.copy(this,e)};t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}};t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)};t.prototype.isZero=function(){return this.width===0||this.height===0};t.create=function(e){return new t(e.x,e.y,e.width,e.height)};t.copy=function(t,e){t.x=e.x;t.y=e.y;t.width=e.width;t.height=e.height};t.applyTransform=function(e,r,i){if(!i){if(e!==r){t.copy(e,r)}return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0];var a=i[3];var s=i[4];var o=i[5];e.x=r.x*n+s;e.y=r.y*a+o;e.width=r.width*n;e.height=r.height*a;if(e.width<0){e.x+=e.width;e.width=-e.width}if(e.height<0){e.y+=e.height;e.height=-e.height}return}mr.x=yr.x=r.x;mr.y=_r.y=r.y;pr.x=_r.x=r.x+r.width;pr.y=yr.y=r.y+r.height;mr.transform(i);_r.transform(i);pr.transform(i);yr.transform(i);e.x=cr(mr.x,pr.x,yr.x,_r.x);e.y=cr(mr.y,pr.y,yr.y,_r.y);var u=dr(mr.x,pr.x,yr.x,_r.x);var l=dr(mr.y,pr.y,yr.y,_r.y);e.width=u-e.x;e.height=l-e.y};return t}();const Mr=wr;var xr="silent";function Lr(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:false,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:kr}}function kr(){Xe(this.event)}var Yr=function(t){re(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.handler=null;return e}e.prototype.dispose=function(){};e.prototype.setCursor=function(){};return e}(Ye);var Sr=function(){function t(t,e){this.x=t;this.y=e}return t}();var Dr=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"];var Tr=new Mr(0,0,0,0);var Ar=function(t){re(e,t);function e(e,r,i,n,a){var s=t.call(this)||this;s._hovered=new Sr(0,0);s.storage=e;s.painter=r;s.painterRoot=n;s._pointerSize=a;i=i||new Yr;s.proxy=null;s.setHandlerProxy(i);s._draggingMgr=new Le(s);return s}e.prototype.setHandlerProxy=function(t){if(this.proxy){this.proxy.dispose()}if(t){vt(Dr,(function(e){t.on&&t.on(e,this[e],this)}),this);t.handler=this}this.proxy=t};e.prototype.mousemove=function(t){var e=t.zrX;var r=t.zrY;var i=jr(this,e,r);var n=this._hovered;var a=n.target;if(a&&!a.__zr){n=this.findHover(n.x,n.y);a=n.target}var s=this._hovered=i?new Sr(e,r):this.findHover(e,r);var o=s.target;var u=this.proxy;u.setCursor&&u.setCursor(o?o.cursor:"default");if(a&&o!==a){this.dispatchToElement(n,"mouseout",t)}this.dispatchToElement(s,"mousemove",t);if(o&&o!==a){this.dispatchToElement(s,"mouseover",t)}};e.prototype.mouseout=function(t){var e=t.zrEventControl;if(e!=="only_globalout"){this.dispatchToElement(this._hovered,"mouseout",t)}if(e!=="no_globalout"){this.trigger("globalout",{type:"globalout",event:t})}};e.prototype.resize=function(){this._hovered=new Sr(0,0)};e.prototype.dispatch=function(t,e){var r=this[t];r&&r.call(this,e)};e.prototype.dispose=function(){this.proxy.dispose();this.storage=null;this.proxy=null;this.painter=null};e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)};e.prototype.dispatchToElement=function(t,e,r){t=t||{};var i=t.target;if(i&&i.silent){return}var n="on"+e;var a=Lr(e,t,r);while(i){i[n]&&(a.cancelBubble=!!i[n].call(i,a));i.trigger(e,a);i=i.__hostTarget?i.__hostTarget:i.parent;if(a.cancelBubble){break}}if(!a.cancelBubble){this.trigger(e,a);if(this.painter&&this.painter.eachOtherLayer){this.painter.eachOtherLayer((function(t){if(typeof t[n]==="function"){t[n].call(t,a)}if(t.trigger){t.trigger(e,a)}}))}}};e.prototype.findHover=function(t,e,r){var i=this.storage.getDisplayList();var n=new Sr(t,e);Nr(i,n,t,e,r);if(this._pointerSize&&!n.target){var a=[];var s=this._pointerSize;var o=s/2;var u=new Mr(t-o,e-o,s,s);for(var l=i.length-1;l>=0;l--){var f=i[l];if(f!==r&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)){Tr.copy(f.getBoundingRect());if(f.transform){Tr.applyTransform(f.transform)}if(Tr.intersect(u)){a.push(f)}}}if(a.length){var h=4;var v=Math.PI/12;var c=Math.PI*2;for(var d=0;d<o;d+=h){for(var m=0;m<c;m+=v){var p=t+d*Math.cos(m);var y=e+d*Math.sin(m);Nr(a,n,p,y,r);if(n.target){return n}}}}}return n};e.prototype.processGesture=function(t,e){if(!this._gestureMgr){this._gestureMgr=new Ke}var r=this._gestureMgr;e==="start"&&r.clear();var i=r.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);e==="end"&&r.clear();if(i){var n=i.type;t.gestureEvent=n;var a=new Sr;a.target=i.target;this.dispatchToElement(a,n,i.event)}};return e}(Ye);vt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ar.prototype[t]=function(e){var r=e.zrX;var i=e.zrY;var n=jr(this,r,i);var a;var s;if(t!=="mouseup"||!n){a=this.findHover(r,i);s=a.target}if(t==="mousedown"){this._downEl=s;this._downPoint=[e.zrX,e.zrY];this._upEl=s}else if(t==="mouseup"){this._upEl=s}else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||me(this._downPoint,[e.zrX,e.zrY])>4){return}this._downPoint=null}this.dispatchToElement(a,t,e)}}));function Or(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){var i=t;var n=void 0;var a=false;while(i){if(i.ignoreClip){a=true}if(!a){var s=i.getClipPath();if(s&&!s.contain(e,r)){return false}}if(i.silent){n=true}var o=i.__hostTarget;i=o?o:i.parent}return n?xr:true}return false}function Nr(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var s=t[a];var o=void 0;if(s!==n&&!s.ignore&&(o=Or(s,r,i))){!e.topTarget&&(e.topTarget=s);if(o!==xr){e.target=s;break}}}}function jr(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}const Hr=Ar;var Ir=32;var zr=7;function Cr(t){var e=0;while(t>=Ir){e|=t&1;t>>=1}return t+e}function Pr(t,e,r,i){var n=e+1;if(n===r){return 1}if(i(t[n++],t[e])<0){while(n<r&&i(t[n],t[n-1])<0){n++}Er(t,e,n)}else{while(n<r&&i(t[n],t[n-1])>=0){n++}}return n-e}function Er(t,e,r){r--;while(e<r){var i=t[e];t[e++]=t[r];t[r--]=i}}function Wr(t,e,r,i,n){if(i===e){i++}for(;i<r;i++){var a=t[i];var s=e;var o=i;var u;while(s<o){u=s+o>>>1;if(n(a,t[u])<0){o=u}else{s=u+1}}var l=i-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(l>0){t[s+l]=t[s+l-1];l--}}t[s]=a}}function Rr(t,e,r,i,n,a){var s=0;var o=0;var u=1;if(a(t,e[r+n])>0){o=i-n;while(u<o&&a(t,e[r+n+u])>0){s=u;u=(u<<1)+1;if(u<=0){u=o}}if(u>o){u=o}s+=n;u+=n}else{o=n+1;while(u<o&&a(t,e[r+n-u])<=0){s=u;u=(u<<1)+1;if(u<=0){u=o}}if(u>o){u=o}var l=s;s=n-u;u=n-l}s++;while(s<u){var f=s+(u-s>>>1);if(a(t,e[r+f])>0){s=f+1}else{u=f}}return u}function Fr(t,e,r,i,n,a){var s=0;var o=0;var u=1;if(a(t,e[r+n])<0){o=n+1;while(u<o&&a(t,e[r+n-u])<0){s=u;u=(u<<1)+1;if(u<=0){u=o}}if(u>o){u=o}var l=s;s=n-u;u=n-l}else{o=i-n;while(u<o&&a(t,e[r+n+u])>=0){s=u;u=(u<<1)+1;if(u<=0){u=o}}if(u>o){u=o}s+=n;u+=n}s++;while(s<u){var f=s+(u-s>>>1);if(a(t,e[r+f])<0){u=f}else{s=f+1}}return u}function Br(t,e){var r=zr;var i;var n;var a=0;var s=[];i=[];n=[];function o(t,e){i[a]=t;n[a]=e;a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1]){if(n[t-1]<n[t+1]){t--}}else if(n[t]>n[t+1]){break}f(t)}}function l(){while(a>1){var t=a-2;if(t>0&&n[t-1]<n[t+1]){t--}f(t)}}function f(r){var s=i[r];var o=n[r];var u=i[r+1];var l=n[r+1];n[r]=o+l;if(r===a-3){i[r+1]=i[r+2];n[r+1]=n[r+2]}a--;var f=Fr(t[u],t,s,o,0,e);s+=f;o-=f;if(o===0){return}l=Rr(t[s+o-1],t,u,l,l-1,e);if(l===0){return}if(o<=l){h(s,o,u,l)}else{v(s,o,u,l)}}function h(i,n,a,o){var u=0;for(u=0;u<n;u++){s[u]=t[i+u]}var l=0;var f=a;var h=i;t[h++]=t[f++];if(--o===0){for(u=0;u<n;u++){t[h+u]=s[l+u]}return}if(n===1){for(u=0;u<o;u++){t[h+u]=t[f+u]}t[h+o]=s[l];return}var v=r;var c;var d;var m;while(1){c=0;d=0;m=false;do{if(e(t[f],s[l])<0){t[h++]=t[f++];d++;c=0;if(--o===0){m=true;break}}else{t[h++]=s[l++];c++;d=0;if(--n===1){m=true;break}}}while((c|d)<v);if(m){break}do{c=Fr(t[f],s,l,n,0,e);if(c!==0){for(u=0;u<c;u++){t[h+u]=s[l+u]}h+=c;l+=c;n-=c;if(n<=1){m=true;break}}t[h++]=t[f++];if(--o===0){m=true;break}d=Rr(s[l],t,f,o,0,e);if(d!==0){for(u=0;u<d;u++){t[h+u]=t[f+u]}h+=d;f+=d;o-=d;if(o===0){m=true;break}}t[h++]=s[l++];if(--n===1){m=true;break}v--}while(c>=zr||d>=zr);if(m){break}if(v<0){v=0}v+=2}r=v;r<1&&(r=1);if(n===1){for(u=0;u<o;u++){t[h+u]=t[f+u]}t[h+o]=s[l]}else if(n===0){throw new Error}else{for(u=0;u<n;u++){t[h+u]=s[l+u]}}}function v(i,n,a,o){var u=0;for(u=0;u<o;u++){s[u]=t[a+u]}var l=i+n-1;var f=o-1;var h=a+o-1;var v=0;var c=0;t[h--]=t[l--];if(--n===0){v=h-(o-1);for(u=0;u<o;u++){t[v+u]=s[u]}return}if(o===1){h-=n;l-=n;c=h+1;v=l+1;for(u=n-1;u>=0;u--){t[c+u]=t[v+u]}t[h]=s[f];return}var d=r;while(true){var m=0;var p=0;var y=false;do{if(e(s[f],t[l])<0){t[h--]=t[l--];m++;p=0;if(--n===0){y=true;break}}else{t[h--]=s[f--];p++;m=0;if(--o===1){y=true;break}}}while((m|p)<d);if(y){break}do{m=n-Fr(s[f],t,i,n,n-1,e);if(m!==0){h-=m;l-=m;n-=m;c=h+1;v=l+1;for(u=m-1;u>=0;u--){t[c+u]=t[v+u]}if(n===0){y=true;break}}t[h--]=s[f--];if(--o===1){y=true;break}p=o-Rr(t[l],s,0,o,o-1,e);if(p!==0){h-=p;f-=p;o-=p;c=h+1;v=f+1;for(u=0;u<p;u++){t[c+u]=s[v+u]}if(o<=1){y=true;break}}t[h--]=t[l--];if(--n===0){y=true;break}d--}while(m>=zr||p>=zr);if(y){break}if(d<0){d=0}d+=2}r=d;if(r<1){r=1}if(o===1){h-=n;l-=n;c=h+1;v=l+1;for(u=n-1;u>=0;u--){t[c+u]=t[v+u]}t[h]=s[f]}else if(o===0){throw new Error}else{v=h-(o-1);for(u=0;u<o;u++){t[v+u]=s[u]}}}return{mergeRuns:u,forceMergeRuns:l,pushRun:o}}function Ur(t,e,r,i){if(!r){r=0}if(!i){i=t.length}var n=i-r;if(n<2){return}var a=0;if(n<Ir){a=Pr(t,r,i,e);Wr(t,r,i,r+a,e);return}var s=Br(t,e);var o=Cr(n);do{a=Pr(t,r,i,e);if(a<o){var u=n;if(u>o){u=o}Wr(t,r,r+u,r+a,e);a=u}s.pushRun(r,a);s.mergeRuns();n-=a;r+=a}while(n!==0);s.forceMergeRuns()}var Jr=1;var Vr=2;var Gr=4;var Zr=false;function $r(){if(Zr){return}Zr=true;console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")}function Xr(t,e){if(t.zlevel===e.zlevel){if(t.z===e.z){return t.z2-e.z2}return t.z-e.z}return t.zlevel-e.zlevel}var qr=function(){function t(){this._roots=[];this._displayList=[];this._displayListLen=0;this.displayableSortFunc=Xr}t.prototype.traverse=function(t,e){for(var r=0;r<this._roots.length;r++){this._roots[r].traverse(t,e)}};t.prototype.getDisplayList=function(t,e){e=e||false;var r=this._displayList;if(t||!r.length){this.updateDisplayList(e)}return r};t.prototype.updateDisplayList=function(t){this._displayListLen=0;var e=this._roots;var r=this._displayList;for(var i=0,n=e.length;i<n;i++){this._updateAndAddDisplayable(e[i],null,t)}r.length=this._displayListLen;Ur(r,Xr)};t.prototype._updateAndAddDisplayable=function(t,e,r){if(t.ignore&&!r){return}t.beforeUpdate();t.update();t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip){e=null}else if(i){if(e){e=e.slice()}else{e=[]}var n=i;var a=t;while(n){n.parent=a;n.updateTransform();e.push(n);a=n;n=n.getClipPath()}}if(t.childrenRef){var s=t.childrenRef();for(var o=0;o<s.length;o++){var u=s[o];if(t.__dirty){u.__dirty|=Jr}this._updateAndAddDisplayable(u,e,r)}t.__dirty=0}else{var l=t;if(e&&e.length){l.__clipPaths=e}else if(l.__clipPaths&&l.__clipPaths.length>0){l.__clipPaths=[]}if(isNaN(l.z)){$r();l.z=0}if(isNaN(l.z2)){$r();l.z2=0}if(isNaN(l.zlevel)){$r();l.zlevel=0}this._displayList[this._displayListLen++]=l}var f=t.getDecalElement&&t.getDecalElement();if(f){this._updateAndAddDisplayable(f,e,r)}var h=t.getTextGuideLine();if(h){this._updateAndAddDisplayable(h,e,r)}var v=t.getTextContent();if(v){this._updateAndAddDisplayable(v,e,r)}};t.prototype.addRoot=function(t){if(t.__zr&&t.__zr.storage===this){return}this._roots.push(t)};t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,r=t.length;e<r;e++){this.delRoot(t[e])}return}var i=ut(this._roots,t);if(i>=0){this._roots.splice(i,1)}};t.prototype.delAllRoots=function(){this._roots=[];this._displayList=[];this._displayListLen=0;return};t.prototype.getRoots=function(){return this._roots};t.prototype.dispose=function(){this._displayList=null;this._roots=null};return t}();const Kr=qr;var Qr;Qr=j.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const ti=Qr;var ei={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){if((t*=2)<1){return.5*t*t}return-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){if((t*=2)<1){return.5*t*t*t}return.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){if((t*=2)<1){return.5*t*t*t*t}return-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){if((t*=2)<1){return.5*t*t*t*t*t}return.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){if(t===0){return 0}if(t===1){return 1}if((t*=2)<1){return.5*Math.pow(1024,t-1)}return.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){if((t*=2)<1){return-.5*(Math.sqrt(1-t*t)-1)}return.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e;var r=.1;var i=.4;if(t===0){return 0}if(t===1){return 1}if(!r||r<1){r=1;e=i/4}else{e=i*Math.asin(1/r)/(2*Math.PI)}return-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e;var r=.1;var i=.4;if(t===0){return 0}if(t===1){return 1}if(!r||r<1){r=1;e=i/4}else{e=i*Math.asin(1/r)/(2*Math.PI)}return r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1},elasticInOut:function(t){var e;var r=.1;var i=.4;if(t===0){return 0}if(t===1){return 1}if(!r||r<1){r=1;e=i/4}else{e=i*Math.asin(1/r)/(2*Math.PI)}if((t*=2)<1){return-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))}return r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=1.70158*1.525;if((t*=2)<1){return.5*(t*t*((e+1)*t-e))}return.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ei.bounceOut(1-t)},bounceOut:function(t){if(t<1/2.75){return 7.5625*t*t}else if(t<2/2.75){return 7.5625*(t-=1.5/2.75)*t+.75}else if(t<2.5/2.75){return 7.5625*(t-=2.25/2.75)*t+.9375}else{return 7.5625*(t-=2.625/2.75)*t+.984375}},bounceInOut:function(t){if(t<.5){return ei.bounceIn(t*2)*.5}return ei.bounceOut(t*2-1)*.5+.5}};const ri=ei;var ii=Math.pow;var ni=Math.sqrt;var ai=1e-8;var si=1e-4;var oi=ni(3);var ui=1/3;var li=ie();var fi=ie();var hi=ie();function vi(t){return t>-ai&&t<ai}function ci(t){return t>ai||t<-ai}function di(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function mi(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function pi(t,e,r,i,n,a){var s=i+3*(e-r)-t;var o=3*(r-e*2+t);var u=3*(e-t);var l=t-n;var f=o*o-3*s*u;var h=o*u-9*s*l;var v=u*u-3*o*l;var c=0;if(vi(f)&&vi(h)){if(vi(o)){a[0]=0}else{var d=-u/o;if(d>=0&&d<=1){a[c++]=d}}}else{var m=h*h-4*f*v;if(vi(m)){var p=h/f;var d=-o/s+p;var y=-p/2;if(d>=0&&d<=1){a[c++]=d}if(y>=0&&y<=1){a[c++]=y}}else if(m>0){var _=ni(m);var g=f*o+1.5*s*(-h+_);var b=f*o+1.5*s*(-h-_);if(g<0){g=-ii(-g,ui)}else{g=ii(g,ui)}if(b<0){b=-ii(-b,ui)}else{b=ii(b,ui)}var d=(-o-(g+b))/(3*s);if(d>=0&&d<=1){a[c++]=d}}else{var w=(2*f*o-3*s*h)/(2*ni(f*f*f));var M=Math.acos(w)/3;var x=ni(f);var L=Math.cos(M);var d=(-o-2*x*L)/(3*s);var y=(-o+x*(L+oi*Math.sin(M)))/(3*s);var k=(-o+x*(L-oi*Math.sin(M)))/(3*s);if(d>=0&&d<=1){a[c++]=d}if(y>=0&&y<=1){a[c++]=y}if(k>=0&&k<=1){a[c++]=k}}}return c}function yi(t,e,r,i,n){var a=6*r-12*e+6*t;var s=9*e+3*i-3*t-9*r;var o=3*e-3*t;var u=0;if(vi(s)){if(ci(a)){var l=-o/a;if(l>=0&&l<=1){n[u++]=l}}}else{var f=a*a-4*s*o;if(vi(f)){n[0]=-a/(2*s)}else if(f>0){var h=ni(f);var l=(-a+h)/(2*s);var v=(-a-h)/(2*s);if(l>=0&&l<=1){n[u++]=l}if(v>=0&&v<=1){n[u++]=v}}}return u}function _i(t,e,r,i,n,a){var s=(e-t)*n+t;var o=(r-e)*n+e;var u=(i-r)*n+r;var l=(o-s)*n+s;var f=(u-o)*n+o;var h=(f-l)*n+l;a[0]=t;a[1]=s;a[2]=l;a[3]=h;a[4]=h;a[5]=f;a[6]=u;a[7]=i}function gi(t,e,r,i,n,a,s,o,u,l,f){var h;var v=.005;var c=Infinity;var d;var m;var p;var y;li[0]=u;li[1]=l;for(var _=0;_<1;_+=.05){fi[0]=di(t,r,n,s,_);fi[1]=di(e,i,a,o,_);p=ye(li,fi);if(p<c){h=_;c=p}}c=Infinity;for(var g=0;g<32;g++){if(v<si){break}d=h-v;m=h+v;fi[0]=di(t,r,n,s,d);fi[1]=di(e,i,a,o,d);p=ye(fi,li);if(d>=0&&p<c){h=d;c=p}else{hi[0]=di(t,r,n,s,m);hi[1]=di(e,i,a,o,m);y=ye(hi,li);if(m<=1&&y<c){h=m;c=y}else{v*=.5}}}if(f){f[0]=di(t,r,n,s,h);f[1]=di(e,i,a,o,h)}return ni(c)}function bi(t,e,r,i,n,a,s,o,u){var l=t;var f=e;var h=0;var v=1/u;for(var c=1;c<=u;c++){var d=c*v;var m=di(t,r,n,s,d);var p=di(e,i,a,o,d);var y=m-l;var _=p-f;h+=Math.sqrt(y*y+_*_);l=m;f=p}return h}function wi(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function Mi(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function xi(t,e,r,i,n){var a=t-2*e+r;var s=2*(e-t);var o=t-i;var u=0;if(vi(a)){if(ci(s)){var l=-o/s;if(l>=0&&l<=1){n[u++]=l}}}else{var f=s*s-4*a*o;if(vi(f)){var l=-s/(2*a);if(l>=0&&l<=1){n[u++]=l}}else if(f>0){var h=ni(f);var l=(-s+h)/(2*a);var v=(-s-h)/(2*a);if(l>=0&&l<=1){n[u++]=l}if(v>=0&&v<=1){n[u++]=v}}}return u}function Li(t,e,r){var i=t+r-2*e;if(i===0){return.5}else{return(t-e)/i}}function ki(t,e,r,i,n){var a=(e-t)*i+t;var s=(r-e)*i+e;var o=(s-a)*i+a;n[0]=t;n[1]=a;n[2]=o;n[3]=o;n[4]=s;n[5]=r}function Yi(t,e,r,i,n,a,s,o,u){var l;var f=.005;var h=Infinity;li[0]=s;li[1]=o;for(var v=0;v<1;v+=.05){fi[0]=wi(t,r,n,v);fi[1]=wi(e,i,a,v);var c=ye(li,fi);if(c<h){l=v;h=c}}h=Infinity;for(var d=0;d<32;d++){if(f<si){break}var m=l-f;var p=l+f;fi[0]=wi(t,r,n,m);fi[1]=wi(e,i,a,m);var c=ye(fi,li);if(m>=0&&c<h){l=m;h=c}else{hi[0]=wi(t,r,n,p);hi[1]=wi(e,i,a,p);var y=ye(hi,li);if(p<=1&&y<h){l=p;h=y}else{f*=.5}}}if(u){u[0]=wi(t,r,n,l);u[1]=wi(e,i,a,l)}return ni(h)}function Si(t,e,r,i,n,a,s){var o=t;var u=e;var l=0;var f=1/s;for(var h=1;h<=s;h++){var v=h*f;var c=wi(t,r,n,v);var d=wi(e,i,a,v);var m=c-o;var p=d-u;l+=Math.sqrt(m*m+p*p);o=c;u=d}return l}var Di=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ti(t){var e=t&&Di.exec(t);if(e){var r=e[1].split(",");var i=+Wt(r[0]);var n=+Wt(r[1]);var a=+Wt(r[2]);var s=+Wt(r[3]);if(isNaN(i+n+a+s)){return}var o=[];return function(t){return t<=0?0:t>=1?1:pi(0,i,a,1,t,o)&&di(0,n,s,1,o[0])}}}var Ai=function(){function t(t){this._inited=false;this._startTime=0;this._pausedTime=0;this._paused=false;this._life=t.life||1e3;this._delay=t.delay||0;this.loop=t.loop||false;this.onframe=t.onframe||Qt;this.ondestroy=t.ondestroy||Qt;this.onrestart=t.onrestart||Qt;t.easing&&this.setEasing(t.easing)}t.prototype.step=function(t,e){if(!this._inited){this._startTime=t+this._delay;this._inited=true}if(this._paused){this._pausedTime+=e;return}var r=this._life;var i=t-this._startTime-this._pausedTime;var n=i/r;if(n<0){n=0}n=Math.min(n,1);var a=this.easingFunc;var s=a?a(n):n;this.onframe(s);if(n===1){if(this.loop){var o=i%r;this._startTime=t-o;this._pausedTime=0;this.onrestart()}else{return true}}return false};t.prototype.pause=function(){this._paused=true};t.prototype.resume=function(){this._paused=false};t.prototype.setEasing=function(t){this.easing=t;this.easingFunc=Mt(t)?t:ri[t]||Ti(t)};return t}();const Oi=Ai;var Ni=function(){function t(t){this.value=t}return t}();var ji=function(){function t(){this._len=0}t.prototype.insert=function(t){var e=new Ni(t);this.insertEntry(e);return e};t.prototype.insertEntry=function(t){if(!this.head){this.head=this.tail=t}else{this.tail.next=t;t.prev=this.tail;t.next=null;this.tail=t}this._len++};t.prototype.remove=function(t){var e=t.prev;var r=t.next;if(e){e.next=r}else{this.head=r}if(r){r.prev=e}else{this.tail=e}t.next=t.prev=null;this._len--};t.prototype.len=function(){return this._len};t.prototype.clear=function(){this.head=this.tail=null;this._len=0};return t}();var Hi=function(){function t(t){this._list=new ji;this._maxSize=10;this._map={};this._maxSize=t}t.prototype.put=function(t,e){var r=this._list;var i=this._map;var n=null;if(i[t]==null){var a=r.len();var s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var o=r.head;r.remove(o);delete i[o.key];n=o.value;this._lastRemovedEntry=o}if(s){s.value=e}else{s=new Ni(e)}s.key=t;r.insertEntry(s);i[t]=s}return n};t.prototype.get=function(t){var e=this._map[t];var r=this._list;if(e!=null){if(e!==r.tail){r.remove(e);r.insertEntry(e)}return e.value}};t.prototype.clear=function(){this._list.clear();this._map={}};t.prototype.len=function(){return this._list.len()};return t}();const Ii=Hi;var zi={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,