!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2=e():t.G2=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=232)}([function(t,e,n){"use strict"; /*! ***************************************************************************** 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. ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArray=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var l=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};e.__importStar=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&(0,e.__createBinding)(n,t,r);return l(n,t),n},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.has=e.forIn=e.toRadian=e.toInteger=e.toDegree=e.mod=e.minBy=e.min=e.maxBy=e.max=e.isPositive=e.isOdd=e.isNumberEqual=e.isNegative=e.isInteger=e.isEven=e.isDecimal=e.fixedBase=e.clamp=e.parseRadius=e.number2color=e.wrapBehavior=e.getWrapBehavior=e.groupToMap=e.groupBy=e.group=e.some=e.every=e.filter=e.endsWith=e.startsWith=e.last=e.head=e.valuesOfKey=e.uniq=e.union=e.sortBy=e.remove=e.reduce=e.pullAt=e.pull=e.getRange=e.flattenDeep=e.flatten=e.firstValue=e.findIndex=e.find=e.difference=e.includes=e.contains=void 0,e.set=e.get=e.assign=e.mix=e.mapValues=e.map=e.isEqualWith=e.isEqual=e.isEmpty=e.indexOf=e.extend=e.each=e.deepMix=e.memoize=e.debounce=e.clone=e.augment=e.clearAnimationFrame=e.requestAnimationFrame=e.isElement=e.isUndefined=e.isType=e.isString=e.isRegExp=e.isPrototype=e.isPlainObject=e.isObjectLike=e.isObject=e.isNumber=e.isNull=e.isNil=e.isFinite=e.isFunction=e.isError=e.isDate=e.isBoolean=e.isArrayLike=e.isArray=e.isArguments=e.getType=e.upperFirst=e.upperCase=e.substitute=e.lowerFirst=e.lowerCase=e.values=e.isMatch=e.keys=e.hasValue=e.hasKey=void 0,e.Cache=e.getEllipsisText=e.measureTextWidth=e.size=e.identity=e.noop=e.uniqueId=e.toString=e.toArray=e.throttle=e.omit=e.pick=void 0;var i=n(84);Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return r(i).default}});var a=n(234);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return r(a).default}});var o=n(235);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return r(o).default}});var s=n(236);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return r(s).default}});var l=n(237);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return r(l).default}});var u=n(238);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return r(u).default}});var c=n(239);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return r(c).default}});var f=n(240);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r(f).default}});var h=n(241);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return r(h).default}});var p=n(139);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return r(p).default}});var d=n(140);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return r(d).default}});var g=n(242);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return r(g).default}});var y=n(243);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return r(y).default}});var v=n(244);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return r(v).default}});var m=n(141);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return r(m).default}});var _=n(245);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return r(_).default}});var x=n(246);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return r(x).default}});var b=n(247);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return r(b).default}});var M=n(248);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return r(M).default}});var C=n(249);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return r(C).default}});var P=n(134);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return r(P).default}});var S=n(250);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return r(S).default}});var O=n(251);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return r(O).default}});var w=n(252);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return r(w).default}});var A=n(143);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return r(A).default}});var T=n(142);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return r(T).default}});var E=n(253);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return r(E).default}});var I=n(254);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return r(I).default}});var L=n(255);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return r(L).default}});var D=n(256);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return r(D).default}});var B=n(257);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return r(B).default}});var j=n(258);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return r(j).default}});var R=n(259);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return r(R).default}});var k=n(260);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return r(k).default}});var F=n(261);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return r(F).default}});var N=n(262);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return r(N).default}});var G=n(263);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r(G).default}});var Y=n(264);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return r(Y).default}});var V=n(265);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return r(V).default}});var H=n(137);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r(H).default}});var z=n(266);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return r(z).default}});var X=n(138);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r(X).default}});var W=n(267);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return r(W).default}});var q=n(268);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r(q).default}});var U=n(269);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return r(U).default}});var Z=n(270);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return r(Z).default}});var Q=n(271);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r(Q).default}});var K=n(272);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return r(K).default}});var $=n(144);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return r($).default}});var J=n(273);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return r(J).default}});var tt=n(274);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return r(tt).default}});var et=n(136);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return r(et).default}});var nt=n(135);Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return r(nt).default}});var rt=n(86);Object.defineProperty(e,"values",{enumerable:!0,get:function(){return r(rt).default}});var it=n(275);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return r(it).default}});var at=n(276);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return r(at).default}});var ot=n(277);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return r(ot).default}});var st=n(278);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return r(st).default}});var lt=n(279);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r(lt).default}});var ut=n(145);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return r(ut).default}});var ct=n(280);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return r(ct).default}});var ft=n(7);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r(ft).default}});var ht=n(17);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return r(ht).default}});var pt=n(281);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return r(pt).default}});var dt=n(282);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return r(dt).default}});var gt=n(283);Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return r(gt).default}});var yt=n(18);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r(yt).default}});var vt=n(284);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return r(vt).default}});var mt=n(35);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r(mt).default}});var _t=n(285);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return r(_t).default}});var xt=n(31);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return r(xt).default}});var bt=n(66);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r(bt).default}});var Mt=n(85);Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return r(Mt).default}});var Ct=n(57);Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return r(Ct).default}});var Pt=n(146);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return r(Pt).default}});var St=n(286);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return r(St).default}});var Ot=n(30);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r(Ot).default}});var wt=n(24);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return r(wt).default}});var At=n(287);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return r(At).default}});var Tt=n(288);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return r(Tt).default}});var Et=n(289);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r(Et).default}});var It=n(290);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r(It).default}});var Lt=n(291);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return r(Lt).default}});var Dt=n(292);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return r(Dt).default}});var Bt=n(293);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return r(Bt).default}});var jt=n(147);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return r(jt).default}});var Rt=n(294);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return r(Rt).default}});var kt=n(45);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r(kt).default}});var Ft=n(295);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return r(Ft).default}});var Nt=n(296);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return r(Nt).default}});var Gt=n(297);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return r(Gt).default}});var Yt=n(148);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return r(Yt).default}});var Vt=n(298);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return r(Vt).default}});var Ht=n(299);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r(Ht).default}});var zt=n(300);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return r(zt).default}});var Xt=n(87);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r(Xt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return r(Xt).default}});var Wt=n(301);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return r(Wt).default}});var qt=n(302);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return r(qt).default}});var Ut=n(303);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return r(Ut).default}});var Zt=n(304);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return r(Zt).default}});var Qt=n(305);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return r(Qt).default}});var Kt=n(306);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return r(Kt).default}});var $t=n(46);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return r($t).default}});var Jt=n(307);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return r(Jt).default}});var te=n(308);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return r(te).default}});var ee=n(309);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return r(ee).default}});var ne=n(310);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return r(ne).default}});var re=n(149);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return r(re).default}});var ie=n(311);Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return r(ie).default}});var ae=n(312);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return r(ae).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(e.LAYER||(e.LAYER={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(e.DIRECTION||(e.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(e.GEOMETRY_LIFE_CIRCLE||(e.GEOMETRY_LIFE_CIRCLE={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(e.ELEMENT_STATE||(e.ELEMENT_STATE={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShapeFactory=e.registerShape=e.registerShapeFactory=void 0;var r=n(0),i=n(50),a=n(1),o=n(52),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return(0,a.get)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=(0,a.get)(i,[t,"default"],{}),s=n.getMarker(e);return(0,a.deepMix)({},o,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},l={coordinate:null,parsePath:function(t){var e=this.coordinate,n=(0,i.parsePathString)(t);return n=e.isPolar?(0,o.convertPolarPath)(e,n):(0,o.convertNormalPath)(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},u={};e.registerShapeFactory=function(t,e){var n=(0,a.upperFirst)(t),i=r.__assign(r.__assign(r.__assign({},s),e),{geometryType:t});return u[n]=i,i},e.registerShape=function(t,e,n){var i=(0,a.upperFirst)(t),o=u[i],s=r.__assign(r.__assign({},l),n);return o[e]=s,s},e.getShapeFactory=function(t){var e=(0,a.upperFirst)(t);return u[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScaleByField=e.isInRecords=e.getSiblingPoint=e.getSilbings=e.isInBox=e.getSpline=e.distance=e.getComponents=e.getElementsByPath=e.getIntersectElements=e.intersectRect=e.getElementValue=e.getElementsByState=e.getElementsByField=e.getElements=e.getSiblingMaskElements=e.getMaskedElements=e.isMask=e.isSlider=e.isList=e.isElementChange=e.getDelegationObject=e.getCurrentElement=void 0;var r=n(1),i=n(52),a=n(29),o=n(50);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function l(t){var e=t.geometries,n=[];return(0,r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&(0,r.each)(t.views,(function(t){n=n.concat(l(t))})),n}function u(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]}function c(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return p(t.view,n)}var r=s(t,e);return r?f(t.view,r):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,a=d(i,e,{x:r.x,y:r.y}),o=d(i,e,{x:r.maxX,y:r.maxY});return f(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=l,e.getElementsByField=function(t,e,n){return l(t).filter((function(t){return u(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return(0,r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=u,e.intersectRect=c,e.getIntersectElements=f,e.getElementsByPath=p,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return(0,i.getLinePath)(t,!1);var n=t[0],a=[];(0,r.each)(t,(function(t){a.push(t.x),a.push(t.y)}));var o=(0,i.catmullRom2bezier)(a,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=d,e.isInRecords=function(t,e,n,i){var a=!1;return(0,r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&(0,r.each)(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict"; /*! ***************************************************************************** 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. ***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var r=n(0),i=n(1);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,l=t.defaultStyle,u=t.color,c=t.size,f=r.__assign(r.__assign({},l),s);return u&&(e&&(s.stroke||(f.stroke=u)),n&&(s.fill||(f.fill=u))),a&&(0,i.isNil)(s[a])&&!(0,i.isNil)(c)&&(f[a]=c),f},e.getBackgroundRectStyle=function(t){return(0,i.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,i.get)(t,["background","style"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return Array.isArray?Array.isArray(t):(0,r.default)(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var r=n(0),i=n(67);Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var a=r.__importStar(n(327));e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(199),s=n(33),l=n(10),u=r.__importDefault(n(106)),c=["visible","tip","delegateObject"],f=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return(0,a.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=(0,s.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),(0,o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",(0,l.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,a=(0,i.__rest)(e,["id","component"]),o=new r((0,i.__assign)((0,i.__assign)({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=(0,s.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");(0,a.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,a.each)(s,(function(t){var s=t.get("id"),u=r.getElementById(s),h=t.get("name");if(u)if(t.get("isComponent")){var p=t.get("component"),d=u.get("component"),g=(0,a.pick)(p.cfg,(0,a.difference)((0,a.keys)(p.cfg),f));d.update(g),u.set("update_status","update")}else{var y=r.getReplaceAttrs(u,t);i&&o.update?r.updateAnimation(h,u,y,o.update):u.attr(y),t.isGroup()&&r.updateElements(t,u),(0,a.each)(c,(function(e){u.set(e,t.get(e))})),(0,l.updateClip)(u,t),n=u,u.set("update_status","update")}else{e.add(t);var v=e.getChildren();if(v.splice(v.length-1,1),n){var m=v.indexOf(n);v.splice(m+1,0,t)}else v.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(p=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var _=r.get("isInit")?o.appear:o.enter;_&&r.addAnimation(h,t,_)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,a.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,a.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return(0,a.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,a.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,a.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),i=this.get("animateOption");(0,a.each)(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var l=s.get("name");if(r&&i.leave){var u=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(l,s,u)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(u.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTextPoint=e.toPx=e.updateClip=e.getBBoxWithClip=e.mergeBBox=e.intersectBBox=e.near=e.wait=e.distance=e.getCirclePoint=e.getValueByPercent=e.createBBox=e.pointsToBBox=e.regionToBBox=e.hasClass=e.clearDom=e.formatPadding=void 0;var r=n(1);function i(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function a(t,e,n){return(1-n)*t+e*n}function o(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}e.formatPadding=function(t){var e=0,n=0,i=0,a=0;return(0,r.isNumber)(t)?e=n=i=a=t:(0,r.isArray)(t)&&(e=t[0],i=(0,r.isNil)(t[1])?t[0]:t[1],a=(0,r.isNil)(t[2])?t[0]:t[2],n=(0,r.isNil)(t[3])?i:t[3]),[e,i,a,n]},e.clearDom=function(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])},e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.createBBox=i,e.getValueByPercent=a,e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.distance=o;e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))};function s(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return i(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}e.near=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?(0,r.each)(h,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),h=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),d=Math.max(r[1],i[1],a[1],o[1]);su&&(u=h),pf&&(f=d)}})):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-c)}else n=e.getBBox();return o?s(n,o):n},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){(0,r.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.registerEasing=e.getOffScreenContext=e.invert=e.multiplyVec2=e.isAllowCapture=e.assembleFont=e.getTextHeight=e.registerBBox=e.getBBoxMethod=e.PathUtil=e.AbstractShape=e.AbstractGroup=e.AbstractCanvas=e.Base=e.Event=void 0;var r=n(0),i=r.__importStar(n(155));e.PathUtil=i,r.__exportStar(n(320),e),r.__exportStar(n(321),e);var a=n(156);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(157);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(322);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(361);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(362);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(363);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}}),Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return c.registerBBox}});var f=n(179);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return f.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return f.assembleFont}});var h=n(39);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return h.isAllowCapture}});var p=n(92);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=n(180);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}});var g=n(174);Object.defineProperty(e,"registerEasing",{enumerable:!0,get:function(){return g.registerEasing}}),e.version="0.5.11"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReplaceAttrs=e.getPolygonCentroid=e.getAngle=e.getArcPath=e.getSectorPath=e.polarToCartesian=void 0;var r=n(1);function i(t){return 1===Array.from(new Set(t)).length}function a(t){return((0,r.min)(t)+(0,r.max)(t))/2}function o(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}e.polarToCartesian=o,e.getSectorPath=function(t,e,n,r,i,a){void 0===a&&(a=0);var s=o(t,e,n,r),l=o(t,e,n,i),u=o(t,e,a,r),c=o(t,e,a,i);if(i-r==2*Math.PI){var f=o(t,e,n,r+Math.PI),h=o(t,e,a,r+Math.PI),p=[["M",s.x,s.y],["A",n,n,0,1,1,f.x,f.y],["A",n,n,0,1,1,l.x,l.y],["M",u.x,u.y]];return a&&(p.push(["A",a,a,0,1,0,h.x,h.y]),p.push(["A",a,a,0,1,0,c.x,c.y])),p.push(["M",s.x,s.y]),p.push(["Z"]),p}var d=i-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,d,1,l.x,l.y],["L",c.x,c.y]];return a&&g.push(["A",a,a,0,d,0,u.x,u.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,n,i,a){var s=o(t,e,n,i),l=o(t,e,n,a);if((0,r.isNumberEqual)(a-i,2*Math.PI)){var u=o(t,e,n,i+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,u.x,u.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=a-i<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,l.x,l.y]]},e.getAngle=function(t,e){var n,i,a=function(t){if((0,r.isEmpty)(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;return(0,r.each)(t,(function(t){e=e>t.x?t.x:e,n=nt.y?t.y:i,a=a=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),l&&f.setAttribute(u.SVG_ATTR_MAP.strokeOpacity,l),c&&f.setAttribute(u.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(u.SVG_ATTR_MAP[e],n);else r.setAttribute(u.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,l=r.shadowColor;(i||a||s||l)&&(0,o.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&(0,o.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a.AbstractShape);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.ScaleConfig=e.Scale=e.Coordinate=e.ShapeAttrs=e.IGroup=e.DIRECTION=e.LAYER=e.getAnimation=e.registerAnimation=e.getEngine=e.registerEngine=e.registerTheme=e.getTheme=e.registerFacet=e.getFacet=e.getActionClass=e.registerAction=e.registerInteraction=e.getInteraction=e.getGeometryLabelLayout=e.getGeometryLabel=e.registerGeometryLabelLayout=e.registerGeometryLabel=e.getShapeFactory=e.registerShapeFactory=e.registerShape=e.registerGeometry=e.registerComponentController=e.InteractionAction=e.Facet=e.Action=e.Interaction=e.GeometryLabel=e.Element=e.Geometry=e.TooltipController=e.ComponentController=e.Event=e.View=e.Chart=e.VERSION=void 0;var r=n(0);e.VERSION="4.2.0";var i=n(56);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return i.Chart}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return i.View}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return i.Event}});var a=n(42);Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=n(210);Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(34);Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(115);Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(79);Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(112);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}});var f=n(89);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return f.Facet}});var h=n(11);Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return r.__importDefault(h).default}});var p=n(56);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var d=n(56);Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var g=n(3);Object.defineProperty(e,"registerShape",{enumerable:!0,get:function(){return g.registerShape}}),Object.defineProperty(e,"registerShapeFactory",{enumerable:!0,get:function(){return g.registerShapeFactory}}),Object.defineProperty(e,"getShapeFactory",{enumerable:!0,get:function(){return g.getShapeFactory}});var y=n(117);Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return y.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return y.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return y.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return y.getGeometryLabelLayout}});var v=n(112);Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return v.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return v.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return v.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return v.getActionClass}});var m=n(89);Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return m.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return m.registerFacet}});var _=n(205);Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return _.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return _.registerTheme}});var x=n(150);Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return x.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return x.getEngine}});var b=n(211);Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return b.getAnimation}});var M=n(2);Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return M.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return M.DIRECTION}});r.__importStar(n(487));var C=n(19);Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return C.IGroup}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return C.ShapeAttrs}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return C.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return C.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return C.ScaleConfig}});var P=n(214),S=n(215),O=n(13),w=n(54),A=n(78),T=n(4),E=n(43),I=n(118);e.Util={getLegendItems:S.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:O.getAngle,getSectorPath:O.getSectorPath,polarToCartesian:O.polarToCartesian,getDelegationObject:T.getDelegationObject,getTooltipItems:A.getTooltipItems,getMappingValue:P.getMappingValue,getPath:I.getPath,getPathPoints:E.getPathPoints}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.uniq=e.omit=e.padEnd=e.isBetween=void 0;var i=n(0),a=n(1);e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.padEnd=function(t,e,n){if((0,a.isString)(t))return t.padEnd(e,n);if((0,a.isArray)(t)){var r=t.length;if(r0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(a.AbstractShape);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(1),i=n(16);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=a,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=(0,r.toArray)(n.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),n.appendChild(a)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();e.BBox=o;e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new o(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Number")}},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var n=r(t),a=r(e);return{x:n,y:a,width:i(t)-n,height:i(e)-a}},e.getBBoxRange=function(t,e,n,a){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,a]),maxY:i([e,a])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyTranslate=e.applyRotate=e.applyMatrix2BBox=e.getAngleByMatrix=e.getMatrixByTranslate=e.getMatrixByAngle=void 0;var r=n(8),i=[1,0,0,0,1,0,0,0,1];function a(t,e,n){return void 0===n&&(n=i),e?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}e.getMatrixByAngle=a,e.getMatrixByTranslate=o,e.getAngleByMatrix=function(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.applyMatrix2BBox=function(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),l=Math.max(n[0],r[0],i[0],a[0]),u=Math.min(n[1],r[1],i[1],a[1]),c=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:u,minX:o,minY:u,maxX:l,maxY:c,width:l-o,height:c-u}},e.applyRotate=function(t,e,n,r){if(e){var i=a({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,n){var r=o({x:e,y:n});t.attr("matrix",r)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(188),o=n(102),s=n(1),l=n(36),u=i.__importDefault(n(88)),c=n(2),f=n(25),h=i.__importDefault(n(115)),p=n(117),d=n(3),g=n(483),y=n(212),v=n(484),m=n(213),_=n(38),x=n(14),b=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,f=e.theme,h=e.scales,p=void 0===h?{}:h,d=e.scaleDefs,g=void 0===d?{}:d,y=e.intervalPadding,v=e.dodgePadding,m=e.maxColumnWidth,_=e.minColumnWidth,x=e.columnWidthRatio,b=e.roseWidthRatio,M=e.multiplePieWidthRatio,C=e.zIndexReversed,P=e.sortZIndex,S=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=l,n.visible=c,n.userTheme=f,n.scales=p,n.scaleDefs=g,n.intervalPadding=y,n.dodgePadding=v,n.maxColumnWidth=m,n.minColumnWidth=_,n.columnWidthRatio=x,n.roseWidthRatio=b,n.multiplePieWidthRatio=M,n.zIndexReversed=C,n.sortZIndex=P,n.useDeferredLabel=S?"number"==typeof S?S:1/0:null,n}return i.__extends(e,t),e.prototype.position=function(t){var e=t;(0,s.isPlainObject)(t)||(e={fields:(0,v.parseFields)(t)});var n=(0,s.get)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,s.set)(e,"fields",n)),(0,s.set)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return((0,s.isString)(t)||(0,s.isPlainObject)(t))&&(e=[t]),(0,s.each)(e,(function(t,n){(0,s.isObject)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),a=r.cfg;this.styleOption=n||i||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if((0,s.isString)(t)){var r={},i=(0,v.parseFields)(t);r.fields=i,(0,s.isFunction)(e)?r.callback=e:(0,s.isPlainObject)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;(0,s.isEqual)(i,a)?!e||!n&&(0,s.isEqual)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,l.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var a=0;a=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if((0,s.isNil)(e)||(0,s.isObject)(e))(0,s.isObject)(e)&&(0,s.isEqual)(Object.keys(e),["values"])?(0,s.set)(this.attributeOption,t,{fields:e.values}):(0,s.set)(this.attributeOption,t,e);else{var r={};(0,s.isNumber)(e)?r.values=[e]:r.fields=(0,v.parseFields)(e),n&&((0,s.isFunction)(n)?r.callback=n:r.values=n),(0,s.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,a=this.theme,l=this.shapeType;this.groupScales=[];var u={},f=function(r){if(n.hasOwnProperty(r)){var f=n[r];if(!f)return{value:void 0};var h=i.__assign({},f),p=h.callback,d=h.values,g=h.fields,y=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!u[e]&&c.GROUP_ATTRS.includes(r)&&("cat"===(0,_.inferScaleType)(n,(0,s.get)(t.scaleDefs,e),r,t.type)&&(t.groupScales.push(n),u[e]=!0));return n}));h.scales=y,"position"!==r&&1===y.length&&"identity"===y[0].type?h.values=y[0].values:p||d||("size"===r?h.values=a.sizes:"shape"===r?h.values=a.shapes[l]||[]:"color"===r&&(y.length?h.values=y[0].values.length<=10?a.colors10:a.colors20:h.values=a.colors10));var v=(0,o.getAttribute)(r);e[r]=new v(h)}};for(var h in n){var p=f(h);if("object"===r(p))return p.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),a=this.groupData(t),o=[],s=0,l=a.length;sa&&(a=c)}var f=this.scaleDefs,h={};it.max&&!(0,s.get)(f,[r,"max"])&&(h.max=a),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n1)for(var h=0;h180||n<-180?n-360*Math.round(n/360):n):(0,r.default)(isNaN(t)?e:t)},e.gamma=function(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.default)(isNaN(e)?n:e)}},e.default=a},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPointInPolygon=e.isPolygonsIntersect=e.getLineIntersect=e.path2Segments=e.getArcParams=e.reactPath=e.path2Absolute=e.path2Curve=e.parsePathString=e.parsePathArray=e.pathIntersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRom2Bezier=e.parsePath=void 0;var i=n(181);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r(i).default}});var a=n(376);Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return r(a).default}});var o=n(379);Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return r(o).default}});var s=n(380);Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return r(s).default}});var l=n(381);Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return r(l).default}});var u=n(382);Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return r(u).default}});var c=n(387);Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return r(c).default}});var f=n(185);Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return r(f).default}});var h=n(183);Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return r(h).default}});var p=n(184);Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return r(p).default}});var d=n(182);Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return r(d).default}});var g=n(100);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r(g).default}});var y=n(388);Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return r(y).default}});var v=n(186);Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return r(v).default}});var m=n(389);Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return r(m).default}});var _=n(187);Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return r(_).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5).__importStar(n(1)),i=n(101),a=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,a=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=a}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,a=r.assign({},this.dimValuesMap),o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a&&a[e]||(a[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){a.y=[i.DEFAULT_Y,1]}return a},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(0),i=n(8),a=n(1),o=n(14);function s(t,e){for(var n=[t[0]],r=1,i=t.length;r=s[c]?1:0,p=f>Math.PI?1:0,d=n.convert(l),g=(0,o.getDistanceToCenter)(n,d);if(g>=.5)if(f===2*Math.PI){var y={x:(l.x+s.x)/2,y:(l.y+s.y)/2},v=n.convert(y);u.push(["A",g,g,0,p,h,v.x,v.y]),u.push(["A",g,g,0,p,h,d.x,d.y])}else u.push(["A",g,g,0,p,h,d.x,d.y]);return u}(n,r,t)):u.push(s(a,t));break;case"a":u.push(l(a,t));break;case"z":default:u.push(a)}})),function(t){(0,a.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(u),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(1),i=n(54);function a(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t&&t.getChildren()[0];if(a){var o=a.clone();(null==e?void 0:e.rotate)&&(0,i.rotate)(o,-e.rotate);var s=o.getCanvasBBox(),l=s.x,u=s.y,c=s.width,f=s.height;o.destroy();var h=n;return(0,r.isNil)(h)?h=[2,2,2,2]:(0,r.isNumber)(h)&&(h=new Array(4).fill(h)),{x:l-h[3],y:u-h[0],width:c+h[1]+h[3],height:f+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}},e.getOverlapArea=a,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return(0,r.some)(e,(function(t){var e=t.getBBox();return a(n,e,2)>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(8).ext.transform;function i(t,e){var n=t.attr(),i=n.x,a=n.y;return r(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([i,a,1]);var o=r(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnglePoint=e.getFactTitleConfig=void 0;var r=n(2);e.getFactTitleConfig=function(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var i=n(233);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r(i).default}});var a=n(153);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return a.registerGeometry}});var o=n(114);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r(o).default}});var s=n(208);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return s.registerComponentController}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(85)),a=r.__importDefault(n(24));e.default=function(t){if(!(0,i.default)(t)||!(0,a.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(191),a=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){(0,r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,r.map)(this.ticks,(function(e,n){return(0,r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return(0,r.isNil)(i)||!(0,r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,r.isString)(t)){var n=(0,i.getTickMethod)(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,r.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return(0,r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=e.testLabel=e.getLabelLength=e.getMaxLabelWidth=void 0;var r=n(1),i=n(431);function a(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}e.getMaxLabelWidth=function(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return(0,r.isNil)(e)?"":""+e})),n=0,i=0,a=0;a=19968&&l<=40869?2:1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return(0,r.each)(t,(function(t){var n=t.getBBox().width;e=0?(0,i.ellipsisString)(l,d,o):"…")&&(e.attr("text",g),p=!0)}return p?e.set("tip",l):e.set("tip",null),p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Circle=e.Base=void 0;var i=n(26);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(489);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(490);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(o).default}});var s=n(491);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(s).default}});var l=n(492);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(l).default}});var u=n(493);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(u).default}});var c=n(494);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(c).default}});var f=n(496);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(f).default}});var h=n(497);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(h).default}});var p=n(498);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(p).default}});var d=n(501);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(d).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.clearChanged=e.checkChildrenRefresh=e.checkRefresh=e.drawChildren=e.applyAttrsToContext=void 0;var r=n(0),i=n(1),a=n(218),o=r.__importDefault(n(219)),s=n(15),l=r.__importStar(n(80)),u={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){for(var n=0;nM?b:M,A=b>M?1:b/M,T=b>M?M/b:1;e.translate(_,x),e.rotate(S),e.scale(A,T),e.arc(0,0,w,C,P,1-O),e.scale(1/A,1/T),e.rotate(-S),e.translate(-_,-x)}break;case"Z":e.closePath()}if("Z"===d)u=c;else{var E=p.length;u=[p[E-2],p[E-1]]}}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=p,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return(0,i.each)(t,(function(t){var i=p(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:(0,i.min)(e),minY:(0,i.min)(n),maxX:(0,i.max)(r),maxY:(0,i.max)(a)}},e.mergeView=function(t,e){return t&&e&&(0,s.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(27);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){(0,r.createDom)(n),n.createPath(e);var a=e.addClip(n);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRectWithCornerRadius=e.getFunnelPath=e.getIntervalRectPath=e.getBackgroundRectPath=e.parseRadius=e.getRectPath=e.getRectPoints=void 0;var r=n(0),i=n(1),a=n(13);function o(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,a=t.length;ie&&(r=e-(n=n?e/(1+r/n):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[n||0,r||0,a||0,o||0]}function l(t,e){return[e,t]}e.getRectPoints=function(t){var e,n,a,o,s,l,u=t.x,c=t.y,f=t.y0,h=t.size;(0,i.isArray)(c)?(a=(e=r.__read(c,2))[0],o=e[1]):(a=f,o=c),(0,i.isArray)(u)?(s=(n=r.__read(u,2))[0],l=n[1]):(s=u-h/2,l=u+h/2);var p=[{x:s,y:a},{x:s,y:o}];return p.push({x:l,y:o},{x:l,y:a}),p},e.getRectPath=o,e.parseRadius=s,e.getBackgroundRectPath=function(t,e,n){var o=[];if(n.isRect){var l=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},u=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=(0,i.get)(t,["background","style","radius"]);if(c){var f=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=n.isTransposed?n.getWidth():n.getHeight(),p=r.__read(s(c,Math.min(f,h)),4),d=p[0],g=p[1],y=p[2],v=p[3];o.push(["M",l.x,u.y+d]),0!==d&&o.push(["A",d,d,0,0,1,l.x+d,u.y]),o.push(["L",u.x-g,u.y]),0!==g&&o.push(["A",g,g,0,0,1,u.x,u.y+g]),o.push(["L",u.x,l.y-y]),0!==y&&o.push(["A",y,y,0,0,1,u.x-y,l.y]),o.push(["L",l.x+v,l.y]),0!==v&&o.push(["A",v,v,0,0,1,l.x,l.y-v])}else o.push(["M",l.x,l.y]),o.push(["L",u.x,l.y]),o.push(["L",u.x,u.y]),o.push(["L",l.x,u.y]),o.push(["L",l.x,l.y]);o.push(["z"])}if(n.isPolar){var m=n.getCenter(),_=(0,a.getAngle)(t,n),x=_.startAngle,b=_.endAngle;if("theta"===n.type||n.isTransposed){var M=function(t){return Math.pow(t,2)};d=Math.sqrt(M(m.x-e[0].x)+M(m.y-e[0].y)),g=Math.sqrt(M(m.x-e[2].x)+M(m.y-e[2].y));o=(0,a.getSectorPath)(m.x,m.y,d,n.startAngle,n.endAngle,g)}else o=(0,a.getSectorPath)(m.x,m.y,n.getRadius(),x,b)}return o},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),a="rect"===n.type,s=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(a?(s.push(["M",t[0].x,t[0].y+u]),s.push(["L",t[1].x,t[1].y-u]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),s.push(["L",t[3].x,t[3].y+u]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=o(t),s},e.getFunnelPath=function(t,e,n){var r=[];return(0,i.isNil)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r},e.getRectWithCornerRadius=function(t,e,n){var i,a,o,u,c,f,h,p=r.__read(r.__spreadArray([],r.__read(t),!1),4),d=p[0],g=p[1],y=p[2],v=p[3],m=r.__read("number"==typeof n?Array(4).fill(n):n,4),_=m[0],x=m[1],b=m[2],M=m[3];e.isTransposed&&(g=(i=r.__read(l(g,v),2))[0],v=i[1]),e.isReflect("y")&&(d=(a=r.__read(l(d,g),2))[0],g=a[1],y=(o=r.__read(l(y,v),2))[0],v=o[1]),e.isReflect("x")&&(d=(u=r.__read(l(d,v),2))[0],v=u[1],g=(c=r.__read(l(g,y),2))[0],y=c[1]);var C=[],P=function(t){return Math.abs(t)};return _=(f=r.__read(s([_,x,b,M],Math.min(P(v.x-d.x),P(g.y-d.y))).map((function(t){return P(t)})),4))[0],x=f[1],b=f[2],M=f[3],e.isTransposed&&(_=(h=r.__read([M,_,x,b],4))[0],x=h[1],b=h[2],M=h[3]),d.y(n-t)*(n-t)+(r-e)*(r-e)?(0,i.distance)(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,r,i,o){var s=[n-t,r-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var l=[-s[1],s[0]];a.normalize(l,l);var u=[i-t,o-e];return Math.abs(a.dot(u,l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,l=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+h(t[0])+h(t[1])+h(t[2])}var c,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},h=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=u(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:f,gradient:function(t){var e=(0,r.isString)(t)?t.split("-"):t,n=(0,r.map)(e,(function(t){return f(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return u([l(o,s,a,0),l(o,s,a,1),l(o,s,a,2)])}(n,t)}},toRGB:(0,r.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(l=a.exec(t))[1]+90;n=l[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",n=(l=o.exec(t))[4]}var u=n.match(s);return(0,r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickInterval=e.YEAR=e.MONTH=e.DAY=e.HOUR=e.MINUTE=e.SECOND=e.toTimeStamp=e.timeFormat=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(193)),o=r.__importStar(n(193)),s=r.__importDefault(n(404));e.timeFormat=function(t,e){return(o.format||a.default.format)(t,e)},e.toTimeStamp=function(t){return(0,i.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,i.isDate)(t)&&(t=t.getTime()),t};e.SECOND=1e3;e.MINUTE=6e4;var l=36e5;e.HOUR=l;var u=24*l;e.DAY=u;var c=31*u;e.MONTH=c;e.YEAR=31536e6;var f=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",l],["HH",6*l],["HH",12*l],["YYYY-MM-DD",u],["YYYY-MM-DD",4*u],["YYYY-WW",7*u],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*u]];e.getTickInterval=function(t,e,n){var r=(e-t)/n,a=(0,s.default)((function(t){return t[1]}))(f,r)-1,o=f[a];return a<0?o=f[0]:a>=f.length&&(o=(0,i.last)(f)),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,i.__extends)(e,t),e.prototype.scale=function(t){if((0,a.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,a.head)(e),r=(0,a.last)(e);nthis.max&&(this.max=r),(0,a.isNil)(this.minLimit)||(this.min=n),(0,a.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,n=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,a.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.precisionAdd=e.getLogPositiveMin=e.log=e.calBase=void 0;var r=n(1);function i(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}e.calBase=function(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.getLogPositiveMin=function(t,e,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,r.each)(t,(function(t){t>0&&t1&&(i=1),i},e.precisionAdd=function(t,e){var n=i(t),r=i(e),a=Math.pow(10,Math.max(n,r));return(t*a+e*a)/a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,a=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=(0,r.__spreadArray)([],a),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){(0,a.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=[t,e,n];return i.vec3.transformMat3(a,a,r),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||(0,r.__spreadArray)([],this.originalMatrix)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=void 0;var r=n(0),i=n(1),a=n(60),o=n(33),s=n(10);e.renderTag=function(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,f=e.id,h=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,_=t.addGroup({id:f+"-group",name:h+"-group",attrs:{x:n,y:l}}),x=_.addShape({type:"text",id:f,name:h,attrs:(0,r.__assign)({x:0,y:0,text:u},c)}),b=(0,s.formatPadding)((0,i.get)(m,"padding",0));if(d&&g){var M=d-(b[1]+b[3]);(0,a.ellipsisLabel)(!y,x,M,v)}if(m){var C=(0,i.get)(m,"style",{}),P=x.getCanvasBBox(),S=P.minX,O=P.minY,w=P.width,A=P.height;_.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:(0,r.__assign)({x:S-b[3],y:O-b[0],width:w+b[1]+b[3],height:A+b[0]+b[2]},C)}).toBack()}(0,o.applyTranslate)(_,n,l),(0,o.applyRotate)(_,p,n,l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return(0,s.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");(0,s.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,o.isNil)(t)){t=this.createDom();var e=this.get("parent");(0,o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?(0,o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&(0,s.hasClass)(e,n)){var r=t[n];(0,a.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){(0,o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);(0,o.each)(r,(function(t){(0,a.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");(0,a.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return(0,a.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(r.__importDefault(n(106)).default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var i=n(11);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r(i).default}});var a=n(203);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return a.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return a.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return a.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(0),i=n(1),a=n(2),o=n(38);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return(0,i.isNumberEqual)(r,a)}function l(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,l=r.invert(e),u=o.invert(l.y);return(0,i.find)(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=(0,i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(n-1)}));function c(t){var e,n,s,l=function(t){var e=(0,i.values)(t.attributes);return(0,i.filter)(e,(function(t){return(0,i.contains)(a.GROUP_ATTRS,t.type)}))}(t);try{for(var u=r.__values(l),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.getScale(f.type);if(h&&h.isLinear){var p=(0,i.get)(t.scaleDefs,h.field);if("cat"!==(0,o.inferScaleType)(h,p,f.type,t.type)){s=h;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var d=t.getXScale(),g=t.getYScale();return s||g||d}function f(t,e,n){if(0===e.length)return null;var r=n.type,o=n.getXScale(),c=n.getYScale(),f=o.field,h=c.field,p=null;if("heatmap"===r||"point"===r){for(var d=n.coordinate.invert(t),g=o.invert(d.x),y=c.invert(d.y),v=1/0,m=0;m(1+a)/2&&(s=o),r.translate(r.invert(s))}(t,n),S=M[a.FIELD_ORIGIN][f],O=M[a.FIELD_ORIGIN][h],w=C[a.FIELD_ORIGIN][f],A=c.isLinear&&(0,i.isArray)(O);if((0,i.isArray)(S)){for(m=0;m=P){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}}(0,i.isArray)(p)&&(p=l(p,t,n))}else{var T=void 0;if(o.isLinear||"timeCat"===o.type){if((P>o.translate(w)||Po.max||PMath.abs(o.translate(T[a.FIELD_ORIGIN][f])-P)&&(C=T)}var j=u(n.getXScale());return!p&&Math.abs(o.translate(C[a.FIELD_ORIGIN][f])-P)<=j/2&&(p=C),p}function h(t,e,n,s){var l,u;void 0===n&&(n=""),void 0===s&&(s=!1);var f,h=t[a.FIELD_ORIGIN],p=function(t,e,n){var r=e.getAttribute("position").getFields(),a=e.scales,o=(0,i.isFunction)(n)||!n?r[0]:n,s=a[o],l=s?s.getText(t[o]):t[o]||o;return(0,i.isFunction)(n)?n(l,t):l}(h,e,n),d=e.tooltipOption,g=e.theme.defaultColor,y=[];function v(e,n){if(s||!(0,i.isNil)(n)&&""!==n){var r={title:p,data:h,mappingData:t,name:e,value:n,color:t.color||g,marker:!0};y.push(r)}}if((0,i.isObject)(d)){var m=d.fields,_=d.callback;if(_){var x=m.map((function(e){return t[a.FIELD_ORIGIN][e]})),b=_.apply(void 0,r.__spreadArray([],r.__read(x),!1)),M=r.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:p,color:t.color||g,marker:!0},b);y.push(M)}else{var C=e.scales;try{for(var P=r.__values(m),S=P.next();!S.done;S=P.next()){var O=S.value;if(!(0,i.isNil)(h[O])){var w=C[O];v((0,o.getName)(w),f=w.getText(h[O]))}}}catch(t){l={error:t}}finally{try{S&&!S.done&&(u=P.return)&&u.call(P)}finally{if(l)throw l.error}}}}else{var A=c(e);f=function(t,e){var n=t[e.field];return(0,i.isArray)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(h,A),v(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var a=c(e);return(0,o.getName)(a)}(h,e),f)}return y}function p(t,e,n,a){var o,s,l=a.showNil,u=[],c=t.dataArray;if(!(0,i.isEmpty)(c)){t.sort(c);try{for(var p=r.__values(c),d=p.next();!d.done;d=p.next()){var g=f(e,d.value,t);if(g){var y=t.getElementId(g),v=t.elementsMap[y];if("heatmap"===t.type||v.visible){var m=h(g,t,n,l);m.length&&u.push(m)}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}}return u}function d(t,e,n,r){var i=r.showNil,a=[],o=t.container.getShape(e.x,e.y);if(o&&o.get("visible")&&o.get("origin")){var s=h(o.get("origin").mappingData,t,n,i);s.length&&a.push(s)}return a}function g(t,e,n){var i,a,o=[],s=t.geometries,l=n.shared,u=n.title,c=n.reversed;try{for(var f=r.__values(s),h=f.next();!h.done;h=f.next()){var g=h.value;if(g.visible&&!1!==g.tooltipOption){var y=g.type,v=void 0;(v=["point","edge","polygon"].includes(y)?d(g,e,u,n):["area","line","path","heatmap"].includes(y)||!1!==l?p(g,e,u,n):d(g,e,u,n)).length&&(c&&v.reverse(),o.push(v))}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return o}e.findDataByPoint=f,e.getTooltipItems=h,e.findItemsFromView=g,e.findItemsFromViewRecurisive=function(t,e,n){var i,a,o=g(t,e,n);try{for(var s=r.__values(t.views),l=s.next();!l.done;l=s.next()){var u=l.value;o=o.concat(g(u,e,n))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(36),s=n(13),l=r.__importDefault(n(485));function u(t){var e=0;return(0,i.each)(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],a=this.getLabelCfgs(t);return(0,i.each)(t,(function(t,o){var s=a[o];if(!s||(0,i.isNil)(t.x)||(0,i.isNil)(t.y))n.push(null);else{var l=(0,i.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,i.each)(l,(function(a,o){if((0,i.isNil)(a)||""===a)n.push(null);else{var l=r.__assign(r.__assign({},s),e.getLabelPoint(s,t,o));l.textAlign||(l.textAlign=e.getLabelAlign(l,o,u)),l.offset<=0&&(l.labelLine=null),n.push(l)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),r.__awaiter(this,void 0,void 0,(function(){var n,i,a;return r.__generator(this,(function(r){switch(r.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(n,a,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,a=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?(0,i.get)(a,"innerLabels",{}):(0,i.get)(a,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,a=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?(0,i.deepMix)({},n,a.innerLabels,t):(0,i.deepMix)({},n,a.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),a=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var a=e;return(0,i.isArray)(a)&&(a=1===t.content.length?r?u(a):a.length<=2?a[e.length-1]:u(a):a[n]),a}var l={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=(0,i.isArray)(e.shape)?e.shape[0]:e.shape,f="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var h=(0,s.getPolygonCentroid)(e.x,e.y);l.x=h[0],l.y=h[1]}else"interval"!==this.geometry.type||f?(l.x=o(e.x,n),l.y=o(e.y,n)):(l.x=o(e.x,n,!0),l.y=o(e.y,n));if(f){var p=(0,i.get)(e,"nextPoints"),d=(0,i.get)(e,"points");if(p){var g=r.convert(d[1]),y=r.convert(p[1]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}else if("pyramid"===c){g=r.convert(d[1]),y=r.convert(d[2]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}}t.position&&this.setLabelPosition(l,e,n,t.position);var v=this.getLabelOffsetPoint(t,n,a);return l.start={x:l.x,y:l.y},l.x+=v.x,l.y+=v.y,l.color=e.color,l},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" ".concat(o[r.field]):"path"===n&&(s+=" ".concat(o[r.field],"-").concat(o[i.field])),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:(0,i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,l=n.coordinate,u=o,c=u.fields,f=u.callback,h=u.cfg,p=c.map((function(t){return s[t]})),d=[];return(0,i.each)(t,(function(t,n){var o,s=t[a.FIELD_ORIGIN],u=e.getLabelText(s,p);if(f){var g=c.map((function(t){return s[t]}));if(o=f.apply(void 0,r.__spreadArray([],r.__read(g),!1)),(0,i.isNil)(o))return void d.push(null)}var y=r.__assign(r.__assign({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:l},h),o);(0,i.isFunction)(y.position)&&(y.position=y.position(s,t,n));var v=e.getLabelOffset(y.offset||0),m=e.getDefaultLabelCfg(v,y.position);(y=(0,i.deepMix)({},m,y)).offset=e.getLabelOffset(y.offset||0);var _=y.content;(0,i.isFunction)(_)?y.content=_(s,t,n):(0,i.isUndefined)(_)&&(y.content=u[0]),d.push(y)})),d},t.prototype.getLabelText=function(t,e){var n=[];return(0,i.each)(e,(function(e){var r=t[e.field];r=(0,i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),(0,i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),(0,i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var i=n(0),a=n(62),o=Math.sin,s=Math.cos,l=Math.atan2,u=Math.PI;function c(t,e,n,r,i,c,f){var h=e.stroke,p=e.lineWidth,d=l(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(u/6)+","+10*o(u/6)+" L0,0 L"+10*s(u/6)+",-"+10*o(u/6),stroke:h,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,d),t.set(f?"startArrowShape":"endArrowShape",g)}function f(t,e,n,r,u,c,f){var h=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=f?h:p,v=y.d,m=y.fill,_=y.stroke,x=y.lineWidth,b=(0,i.__rest)(y,["d","fill","stroke","lineWidth"]),M=l(r-c,n-u);v&&(u-=s(M)*v,c-=o(M)*v);var C=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,i.__assign)((0,i.__assign)({},b),{stroke:_||d,lineWidth:x||g,fill:m})});C.translate(u,c),C.rotateAtPoint(u,c,M),t.set(f?"startArrowShape":"endArrowShape",C)}e.getShortenOffset=function(t,e,n,r,i){var a=l(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,n,i,a,o){"object"===r(e.startArrow)?f(t,e,n,i,a,o,!0):e.startArrow?c(t,e,n,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,i,a,o){"object"===r(e.endArrow)?f(t,e,n,i,a,o,!1):e.endArrow?c(t,e,n,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20);e.default=function(t,e,n,i,a,o,s){var l=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,i),f=Math.max(e,i),h=a/2;return o>=l-h&&o<=u+h&&s>=c-h&&s<=f+h&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Dom=e.Circle=e.Base=void 0;var i=n(22);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(505);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(506);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return r(o).default}});var s=n(507);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(s).default}});var l=n(508);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(l).default}});var u=n(509);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(u).default}});var c=n(510);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(c).default}});var f=n(512);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(f).default}});var h=n(513);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(h).default}});var p=n(514);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(p).default}});var d=n(515);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(d).default}});var g=n(517);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(g).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(1),i=n(43),a=n(6),o=n(52);function s(t,e,n,i,a){var s=[];if(t.length){for(var l=[],u=[],c=0,f=t.length;c0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,n,r,o){for(var l=(0,a.getStyle)(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,f=t.points,h=t.showSinglePoint,p=(0,i.getPathPoints)(f,u,h),d=[],g=0,y=p.length;g-1}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return"object"===r(t)&&null!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(18)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return r.__extends(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(r.__importDefault(n(154)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var r=n(1),i=n(37);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[(0,r.lowerCase)(t)]};e.registerFacet=function(t,e){a[(0,r.lowerCase)(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisTitleOptions=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(1),i=n(2),a=n(38),o=n(8);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function l(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function u(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=l,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=l(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=u,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return u(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var n=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(n,["common"],{}),(0,r.deepMix)({},(0,r.get)(n,[e],{})))},e.getAxisTitleOptions=function(t,e,n){var i=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(i,["common","title"],{}),(0,r.deepMix)({},(0,r.get)(i,[e,"title"],{})),n)},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-r.x,a.y-r.y],l=[1,0],u=a.y>r.y?o.vec2.angle(s,l):-1*o.vec2.angle(s,l),c=u+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:u,endAngle:c}},e.getAxisOption=function(t,e){return(0,r.isBoolean)(t)?!1!==t&&{}:(0,r.get)(t,[e])},e.getAxisDirection=function(t,e){return(0,r.get)(t,"position",e)},e.getAxisTitleText=function(t,e){return(0,r.get)(e,["title","text"],(0,a.getName)(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotateZ=e.rotateY=e.rotateX=e.transformQuat=e.transformMat3=e.transformMat4=e.random=e.bezier=e.hermite=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.length=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function h(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=function(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=s,e.multiply=l,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=c,e.squaredDistance=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=i*l-a*s,t[1]=a*o-r*l,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,f=3*l*o,h=l*a;return t[0]=e[0]*u+n[0]*c+r[0]*f+i[0]*h,t[1]=e[1]*u+n[1]*c+r[1]*f+i[1]*h,t[2]=e[2]*u+n[2]*c+r[2]*f+i[2]*h,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=i*u-a*l,f=a*s-r*u,h=r*l-i*s,p=i*h-a*f,d=a*c-r*h,g=r*f-i*c,y=2*o;return c*=y,f*=y,h*=y,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=l+f+d,t[2]=u+h+g,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2],l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),u=l&&p(t,e)/l;return Math.acos(Math.min(Math.max(u,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},e.sub=s,e.mul=l,e.div=u,e.dist=c,e.sqrDist=f,e.len=o,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=3),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s=0&&e._call.call(null,t),e=e._next;--o}function _(){c=(u=h.now())+f,o=s=0;try{m()}finally{o=0,function(){var t,e,n=i,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);a=t,b(r)}(),c=0}}function x(){var t=h.now(),e=t-u;e>1e3&&(f-=e,u=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(_,t-h.now()-f)),l&&(l=clearInterval(l))):(l||(u=h.now(),l=setInterval(x,1e3)),o=1,p(_)))}e.now=d,e.Timer=y,y.prototype=v.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.timer=v,e.timerFlush=m},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(48),o=i.__importDefault(n(167)),s=n(170),l=i.__importDefault(n(171)),u=i.__importDefault(n(68)),c=i.__importDefault(n(172)),f=i.__importDefault(n(173)),h=i.__importDefault(n(169)),p=i.__importStar(n(98));e.default=function(t,e){var n,i=r(e);return null==e||"boolean"===i?(0,h.default)(e):("number"===i?u.default:"string"===i?(n=(0,a.color)(e))?(e=n,o.default):f.default:e instanceof a.color?o.default:e instanceof Date?l.default:(0,p.isNumberArray)(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:u.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hsl=e.hslConvert=e.Rgb=e.rgb=e.rgbConvert=e.brighter=e.darker=e.Color=void 0;var r=n(0).__importStar(n(96));function i(){}e.Color=i,e.darker=.7,e.brighter=1/e.darker;var a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,u=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),c=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),h=new RegExp("^rgba\\("+[s,s,s,o]+"\\)$"),p=new RegExp("^hsl\\("+[o,s,s]+"\\)$"),d=new RegExp("^hsla\\("+[o,s,s,o]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function m(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=u.exec(t))?new C(e[1],e[2],e[3],1):(e=c.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?x(e[1],e[2],e[3],e[4]):(e=h.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?w(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?w(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?_(g[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function _(t){return new C(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function b(t){return t instanceof i||(t=m(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function M(t,e,n,r){return 1===arguments.length?b(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+O(this.r)+O(this.g)+O(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function w(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function A(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,l=o-a,u=(o+a)/2;return l?(s=e===o?(n-r)/l+6*(n0&&u<1?0:s,new E(s,l,u,t.opacity)}function T(t,e,n,r){return 1===arguments.length?A(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function I(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.default)(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),e.default=m,e.rgbConvert=b,e.rgb=M,e.Rgb=C,(0,r.default)(C,M,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:S,toString:S})),e.hslConvert=A,e.hsl=T,(0,r.default)(E,T,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=void 0,e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},e.extend=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=void 0,e.basis=r,e.default=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(y*y)+i*i*(g*g),_=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===c&&(_*=-1),isNaN(_)&&(_=0);var x=i?_*n*y/i:0,b=n?_*-i*g/n:0,M=(f+p)/2+Math.cos(l)*x-Math.sin(l)*b,C=(h+d)/2+Math.sin(l)*x+Math.cos(l)*b,P=[(g-x)/n,(y-b)/i],S=[(-1*g-x)/n,(-1*y-b)/i],O=o([1,0],P),w=o(P,S);return a(P,S)<=-1&&(w=Math.PI),a(P,S)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:M,cy:C,rx:s(t,[p,d])?0:n,ry:s(t,[p,d])?0:i,startAngle:O,endAngle:O+w,xRotation:l,arcFlag:u,sweepFlag:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GAP=e.DODGE_RATIO=e.MARGIN_RATIO=e.DEFAULT_Y=void 0,e.DEFAULT_Y=0,e.MARGIN_RATIO=.5,e.DODGE_RATIO=.5,e.GAP=.05},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=e.Shape=e.Position=e.Opacity=e.Color=e.Attribute=e.getAttribute=e.registerAttribute=void 0;var r=n(5),i=r.__importDefault(n(40));e.Attribute=i.default;var a=r.__importDefault(n(397));e.Color=a.default;var o=r.__importDefault(n(398));e.Opacity=o.default;var s=r.__importDefault(n(399));e.Position=s.default;var l=r.__importDefault(n(400));e.Shape=l.default;var u=r.__importDefault(n(401));e.Size=u.default;var c=n(402);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return c.getAttribute}}),Object.defineProperty(e,"registerAttribute",{enumerable:!0,get:function(){return c.registerAttribute}}),(0,c.registerAttribute)("Color",a.default),(0,c.registerAttribute)("Opacity",o.default),(0,c.registerAttribute)("Position",s.default),(0,c.registerAttribute)("Shape",l.default),(0,c.registerAttribute)("Size",u.default),r.__exportStar(n(190),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=e.registerScale=e.getScale=e.Scale=e.Quantize=e.Quantile=e.TimeCat=e.Time=e.Pow=e.Log=e.Linear=e.Identity=e.Category=void 0;var r=n(0),i=r.__importDefault(n(59));e.Scale=i.default;var a=r.__importDefault(n(192));e.Category=a.default;var o=r.__importDefault(n(403));e.TimeCat=o.default;var s=r.__importDefault(n(194));e.Linear=s.default;var l=r.__importDefault(n(405));e.Log=l.default;var u=r.__importDefault(n(406));e.Pow=u.default;var c=r.__importDefault(n(407));e.Time=c.default;var f=r.__importDefault(n(195));e.Quantize=f.default;var h=r.__importDefault(n(408));e.Quantile=h.default;var p=n(409);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}});var d=r.__importDefault(n(410));e.Identity=d.default;var g=n(411);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}}),(0,p.registerScale)("cat",a.default),(0,p.registerScale)("category",a.default),(0,p.registerScale)("identity",d.default),(0,p.registerScale)("linear",s.default),(0,p.registerScale)("log",l.default),(0,p.registerScale)("pow",u.default),(0,p.registerScale)("time",c.default),(0,p.registerScale)("timeCat",o.default),(0,p.registerScale)("quantize",f.default),(0,p.registerScale)("quantile",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}e.default=function(t,e,n){var a=i(t,n,"floor"),o=i(e,n,"ceil");a=(0,r.fixedBase)(a,n),o=(0,r.fixedBase)(o,n);for(var s=[],l=Math.max((o-a)/(Math.pow(2,12)-1),n),u=a;u<=o;u+=l){var c=(0,r.fixedBase)(u,l);s.push(c)}return{min:a,max:o,ticks:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,l=t.max,u=t.tickCount,c=void 0===u?5:u,f=(0,r.isNil)(a)?(0,r.isNil)(e)?s:e:a,h=(0,r.isNil)(o)?(0,r.isNil)(n)?l:n:o;if(f>h&&(h=(i=[f,h])[0],f=i[1]),c<=2)return[f,h];for(var p=(h-f)/(c-1),d=[],g=0;g0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),(0,o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a0){var n=(0,o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,s=r.offsetY,u=r.rotate,c=r.formatter,f=this.getSidePoint(t.point,i),h=this.getSideVector(i,f),p=c?c(t.name,t,e):t.name,d=r.style;d=(0,o.isFunction)(d)?(0,o.get)(this.get("theme"),["label","style"],{}):d;var g=(0,o.mix)({x:f.x+a,y:f.y+s,text:p,textAlign:this.getTextAnchor(h),textBaseline:this.getTextBaseline(h)},d);return u&&(g.matrix=(0,l.getMatrixByAngle)(f,u)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=(0,o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),l=s.style,u=s.formatter;if((0,o.isFunction)(l)){var c=i.map((function(t){return(0,o.get)(t.get("delegateObject"),"tick")}));(0,o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=u?u(n.name,n,e):n.name,i=(0,o.mix)({},a,l(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,s=void 0===i?0:i,u=t.autoRotate,c=e.fontSize,f=.5;"start"===n?f=0:"end"===n&&(f=1);var h=this.getTickPoint(f),p=this.getSidePoint(h,r||s+c/2),d=(0,o.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,y=g;if((0,o.isNil)(g)&&u){var v=this.getAxisVector(h);y=a.ext.angleTo(v,[1,0],!0)}if(y){var m=(0,l.getMatrixByAngle)(p,y);d.matrix=m}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),a=e.getBBox(),o=a.maxX,s=a.maxY,l=a.height,u=this.get("title").iconStyle,c=l/2,f=c/6,h=o+4,p=s-l/2,d=[h+c,p-c],g=d[0],y=d[1],v=[g+c,y+c],m=v[0],_=v[1],x=[g,_+c],b=x[0],M=x[1],C=[h,y+c],P=C[0],S=C[1],O=[h+c,p-l/4],w=O[0],A=O[1],T=[w,A+f],E=T[0],I=T[1],L=[E,I+f],D=L[0],B=L[1],j=[D,B+3*c/4],R=j[0],k=j[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,i.__assign)({path:[["M",g,y],["A",c,c,0,0,1,m,_],["A",c,c,0,0,1,b,M],["A",c,c,0,0,1,P,S],["A",c,c,0,0,1,g,y],["M",w,A],["L",E,I],["M",D,B],["L",R,k]],lineWidth:f,matrix:n},u)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:p-l/2,width:l,height:l,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=(0,u.getStatesStyle)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=(0,u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(o){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&o.attr(l)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(33),l=r.__importDefault(n(21)),u=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}},textBackground:{padding:5,style:{stroke:l.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,o=e.content;if(!(0,a.isNil)(o)){var l=this.getTextPoint(),u=null;if(r){var c=this.getRotateAngle();u=(0,s.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},l),{text:o,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,i.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),o=(0,u.formatPadding)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,i.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(21)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:s.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;(0,a.each)(r,(function(s,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,l,r):c;var f=e.getElementId("line-"+u),h=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:(0,a.mix)({path:h},c)})}if(i&&l>0){var p=e.getElementId("region-"+u),d=l%2==0;if((0,a.isString)(i))d&&e.drawAlternateRegion(p,t,o.points,s.points,i);else{var g=d?i[1]:i[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),(0,o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=(0,o.formatPadding)(e.padding),a=(0,i.__assign)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,i.__assign)({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=(0,o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_Y=e.CROSSHAIR_X=e.NAME_CLASS=e.VALUE_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.TITLE_CLASS=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(473)),o={};function s(t){return o[(0,i.lowerCase)(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[(0,i.lowerCase)(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if((0,i.isPlainObject)(r)){var o=(0,i.mix)((0,i.clone)(r),n);return new a.default(e,o)}return new r(e,n)};var l=n(204);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(77);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return u.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.isAutoPadding=void 0;var r=n(0),i=n(1);e.isAutoPadding=function(t){return!(0,i.isNumber)(t)&&!(0,i.isArray)(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=(0,i.isArray)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(e),!1);break;case 3:e=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new r.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(41),o=n(36),s=r.__importDefault(n(88)),l=n(13),u=n(2),c=n(116),f=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=l,n.elementIndex=o,n}return r.__extends(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?(0,o.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:r.__assign({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,s=n.shape,l=n.shapeType,u=r.indexOf(t);if(e){if(u>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===u)return;if(r.splice(u,1),"active"===t||"selected"===t){var c=this.geometry,f=c.sortZIndex,h=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?s.setZIndex(h):s.set("zIndex",h)}}var p=i.drawShape(l,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,p,r,null):this.syncShapeStyle(s,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),(0,a.propagationDelegate)(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,i.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,a=n.defaultShapeType,o=n.theme[t]||n.theme[a];this.statesStyle=(0,i.deepMix)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=(0,i.get)(n,[t,"style"],{}),a=r[e]||r;return(0,i.isFunction)(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a?r.__assign(r.__assign({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var a=this.shapeFactory,s=this.container,l=this.shapeType;if(this.shape=a.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?(0,i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=e?"enter":"appear",h=this.getAnimateCfg(f);h&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,h,{coordinate:a.coordinate,toAttrs:r.__assign({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,a){var s,f=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var h=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(h,p,n,r),t.isGroup())for(var d=t.get("children"),g=e.get("children"),y=0;y1){o.sort();var v=function(t,e){var n=t.length,i=t;(0,r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var a=i[1]-i[0],o=2;os&&(a=s)}return a}(o,a);l=(a.max-a.min)/v,o.length>l&&(l=o.length)}var m=a.range,_=1/l,x=1;if(n.isPolar?x=n.isTransposed&&l>1?g:y:(a.isLinear&&(_*=m[1]-m[0]),x=d),!(0,r.isNil)(c)&&c>=0?_=(1-(l-1)*(c/u))/l:_*=x,t.getAdjust("dodge")){var b=function(t,e){if(e){var n=(0,r.flatten)(t);return(0,r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!(0,r.isNil)(f)&&f>=0)_=(_-f/u*(b-1))/b;else!(0,r.isNil)(c)&&c>=0?(_*=x,_/=b):_/=b;_=_>=0?_:0}if(!(0,r.isNil)(h)&&h>=0){var M=h/u;_>M&&(_=M)}if(!(0,r.isNil)(p)&&p>=0){var C=p/u;_1){var p=n.addGroup();try{for(var d=r.__values(f),g=d.next();!g.done;g=d.next()){var y=g.value;p.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),y)})}}catch(t){l={error:t}}finally{try{g&&!g.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return p}return n.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),h)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var r=n(2);function i(t){return t===r.DIRECTION.LEFT?r.DIRECTION.RIGHT:t===r.DIRECTION.RIGHT?r.DIRECTION.LEFT:t}function a(t){return t===r.DIRECTION.TOP?r.DIRECTION.BOTTOM:t===r.DIRECTION.BOTTOM?r.DIRECTION.TOP:t}e.directionToPosition=function(t,e,n){return n===r.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.TOP_LEFT||n===r.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.DIRECTION.TOP_RIGHT||n===r.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.DIRECTION.BOTTOM_LEFT||n===r.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.DIRECTION.BOTTOM_RIGHT||n===r.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},e.getTranslateDirection=function(t,e){var n=t;return n=function(t,e){var n=t;return e.isReflect("x")&&(n=i(n)),e.isReflect("y")&&(n=a(n)),n}(n=function(t,e){var n=e.matrix[0],r=e.matrix[4],o=t;return n<0&&(o=i(o)),r<0&&(o=a(o)),o}(n=function(t,e){if(e.isTransposed)switch(t){case r.DIRECTION.BOTTOM:return r.DIRECTION.LEFT;case r.DIRECTION.LEFT:return r.DIRECTION.BOTTOM;case r.DIRECTION.RIGHT:return r.DIRECTION.TOP;case r.DIRECTION.TOP:return r.DIRECTION.RIGHT}return t}(n,e),e),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4);function o(t){return(0,i.get)(t.get("delegateObject"),"item")}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=(0,a.getElements)(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=this.context.view,o=(0,a.getScaleByField)(r,e),s=(0,a.getElementValue)(t,e);return!(0,i.isNil)(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,n,r){var a=this;(0,i.each)(t,(function(t){a.isMathItem(t,e,n)&&t.setState(a.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=(0,a.getCurrentElement)(this.context);if(e)(0,a.isElementChange)(this.context)&&this.setStateByElement(e,t);else{var n=(0,a.getDelegationObject)(this.context);if((0,a.isList)(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=(0,a.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(128)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return r.__extends(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=(0,o.getElementsByState)(t,this.stateName);(0,i.each)(n,(function(t){e.setElementState(t,!1)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if((0,a.isMask)(this.context))t=(0,a.getMaskedElements)(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i=this.context.view;t=(0,a.getIntersectElements)(i,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=(0,a.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,o=(0,a.getSilbings)(r),s=t.map((function(t){return t.getModel().data})),l=r.getXScale().field,u=r.getYScales()[0].field;(0,i.each)(o,(function(t){var r=(0,a.getElements)(t),i=r.filter((function(t){var e=t.getModel().data;return(0,a.isInRecords)(s,e,l,u)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,r=(0,a.getSilbings)(n);(0,a.isMask)(this.context)&&(0,i.each)(r,(function(n){var r=(0,a.getElements)(n),i=(0,a.getSiblingMaskElements)(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;(0,i.each)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=(0,a.getSilbings)(e);(0,i.each)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(r.__importDefault(n(128)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setStateEnable=function(t){var e=(0,i.getCurrentElement)(this.context);if(e){if(!(0,i.isElementChange)(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=(0,i.getCurrentElement)(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(128)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var r=n(0),i=n(1),a=n(4),o=n(132),s=r.__importDefault(n(127)),l=n(2);e.STATUS_UNACTIVE=l.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=l.ELEMENT_STATE.ACTIVE;var u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.stateName=e.STATUS_ACTIVE,n}return r.__extends(n,t),n.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},n.prototype.setElementHighlight=function(t,n){n(t)?(t.hasState(e.STATUS_UNACTIVE)&&t.setState(e.STATUS_UNACTIVE,!1),t.setState(e.STATUS_ACTIVE,!0)):t.hasState(e.STATUS_ACTIVE)||t.setState(e.STATUS_UNACTIVE,!0)},n.prototype.setHighlightBy=function(t,n,r){var o=this;if(r)(0,i.each)(t,(function(t){o.setElementHighlight(t,n)}));else{var s=(0,a.getElementsByState)(this.context.view,e.STATUS_ACTIVE),l=!0;(0,i.each)(s,(function(t){if(!n(t))return l=!1,!1})),l?this.clear():(0,i.each)(t,(function(t){n(t)&&(t.hasState(e.STATUS_ACTIVE)&&t.setState(e.STATUS_ACTIVE,!1),t.setState(e.STATUS_UNACTIVE,!0))}))}},n.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,a.getElements)(n);this.setHighlightBy(r,(function(e){return t===e}),e)},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var t=this.context.view;(0,o.clearHighlight)(t)},n}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHighlightBy=e.clearHighlight=void 0;var r=n(1),i=n(4);e.clearHighlight=function(t){var e=(0,i.getElements)(t);(0,r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.setHighlightBy=function(t,e,n){(0,r.each)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:r.__assign({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,a=this.points;(0,i.each)(a,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=(0,i.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n};e.parsePathString=s;var l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=l;var u=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),l=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,f=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],f++,r[0]=["M",i,a]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=f,y=t.length;g1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*x*x)/(C*b*b+P*x*x)));d=S*r*b/i+(e+l)/2,g=S*-i*x/r+(n+u)/2,h=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((u-g)/i).toFixed(9)),h=ep&&(h-=2*Math.PI),!s&&p>h&&(p-=2*Math.PI)}var O=p-h;if(Math.abs(O)>y){var w=p,A=l,T=u;p=h+y*(s&&p>h?1:-1),m=t(l=d+r*Math.cos(p),u=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-h;var E=Math.cos(h),I=Math.sin(h),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,R=4/3*i*B,k=[e,n],F=[e+j*I,n-R*E],N=[l+j*D,u-R*L],G=[l,u];if(F[0]=2*k[0]-F[0],F[1]=2*k[1]-F[1],c)return[F,N,G].concat(m);for(var Y=[],V=0,H=(m=[F,N,G].concat(m).join().split(",")).length;V7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var d=u*c[p]+u,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;h+=f[p]*Math.sqrt(m)}return u*h},_=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=M;var C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,l){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,l]);var u=_.apply(null,t);return C(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},S=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(P(t),P(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},l=n?0:[],u=0;u=0&&M<=1&&O>=0&&O<=1&&(n?l+=1:l.push({x:_.x,y:_.y,t1:M,t2:O}))}}return l};function w(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(r=t.length);if(r0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(154)),o=n(39),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.mix)(r,e),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeVersion=e.detectOS=e.parseUserAgent=e.browserName=e.detect=e.ReactNativeInfo=e.BotInfo=e.SearchBotDeviceInfo=e.NodeInfo=e.BrowserInfo=void 0;var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,s.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var o=t[a];if((0,s.isAllowCapture)(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,s.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();(0,s.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,s.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,s.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=n(39),l=n(92),u=r.__importDefault(n(157)),c=o.ext.transform,f=["zIndex","capture","visible","type"],h=["repeat"];function p(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return(0,a.each)(t,(function(t,e){-1!==h.indexOf(e)||(0,a.isEqual)(r[e],t)||(n[e]=t)})),n}function g(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){n+rt.delay&&(0,a.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var y=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,a.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?r=g(r,M):n.addAnimator(this),r.push(M),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,a.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,a.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],u=o.get("name");if(u){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&(0,s.isParent)(o,n))return"break";(0,a.isArray)(u)?(0,a.each)(u,(function(t){r.emitDelegateEvent(o,t,e)})):l.emitDelegateEvent(o,u,e)}},l=this,u=0;u0?(n[0]=2*(u*l+h*i+c*s-f*a)/p,n[1]=2*(c*l+h*a+f*i-u*s)/p,n[2]=2*(f*l+h*s+u*a-c*i)/p):(n[0]=2*(u*l+h*i+c*s-f*a),n[1]=2*(c*l+h*a+f*i-u*s),n[2]=2*(f*l+h*s+u*a-c*i)),o(t,e,n),t},e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.getScaling=s,e.getRotation=function(t,e){var n=new r.ARRAY_TYPE(3);s(n,e);var i=1/n[0],a=1/n[1],o=1/n[2],l=e[0]*i,u=e[1]*a,c=e[2]*o,f=e[4]*i,h=e[5]*a,p=e[6]*o,d=e[8]*i,g=e[9]*a,y=e[10]*o,v=l+h+y,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(d-c)/m,t[2]=(u-f)/m):l>h&&l>y?(m=2*Math.sqrt(1+l-h-y),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(u+f)/m,t[2]=(d+c)/m):h>y?(m=2*Math.sqrt(1+h-l-y),t[3]=(d-c)/m,t[0]=(u+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+y-l-h),t[3]=(u-f)/m,t[0]=(d+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.fromRotationTranslationScale=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],l=i+i,u=a+a,c=o+o,f=i*l,h=i*u,p=i*c,d=a*u,g=a*c,y=o*c,v=s*l,m=s*u,_=s*c,x=r[0],b=r[1],M=r[2];return t[0]=(1-(d+y))*x,t[1]=(h+_)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(h-_)*b,t[5]=(1-(f+y))*b,t[6]=(g+v)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-v)*M,t[10]=(1-(f+d))*M,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,c=o+o,f=s+s,h=a*u,p=a*c,d=a*f,g=o*c,y=o*f,v=s*f,m=l*u,_=l*c,x=l*f,b=r[0],M=r[1],C=r[2],P=i[0],S=i[1],O=i[2],w=(1-(g+v))*b,A=(p+x)*b,T=(d-_)*b,E=(p-x)*M,I=(1-(h+v))*M,L=(y+m)*M,D=(d+_)*C,B=(y-m)*C,j=(1-(h+g))*C;return t[0]=w,t[1]=A,t[2]=T,t[3]=0,t[4]=E,t[5]=I,t[6]=L,t[7]=0,t[8]=D,t[9]=B,t[10]=j,t[11]=0,t[12]=n[0]+P-(w*P+E*S+D*O),t[13]=n[1]+S-(A*P+I*S+B*O),t[14]=n[2]+O-(T*P+L*S+j*O),t[15]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,f=r*s,h=i*o,p=i*s,d=i*l,g=a*o,y=a*s,v=a*l;return t[0]=1-f-d,t[1]=c+v,t[2]=h-y,t[3]=0,t[4]=c-v,t[5]=1-u-d,t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,n,r,i,a,o){var s=1/(n-e),l=1/(i-r),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},e.perspectiveNO=l,e.perspective=l,e.perspectiveZO=function(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=i*a,t[14]=i*r*a):(t[10]=-1,t[14]=-r),t},e.perspectiveFromFieldOfView=function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},e.orthoNO=u,e.ortho=u,e.orthoZO=function(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=a*u,t[15]=1,t},e.lookAt=function(t,e,n,a){var o,s,l,u,c,f,h,p,d,g,y=e[0],v=e[1],m=e[2],_=a[0],x=a[1],b=a[2],M=n[0],C=n[1],P=n[2];return Math.abs(y-M)0&&(c*=p=1/Math.sqrt(p),f*=p,h*=p);var d=l*h-u*f,g=u*c-s*h,y=s*f-l*c;return(p=d*d+g*g+y*y)>0&&(d*=p=1/Math.sqrt(p),g*=p,y*=p),t[0]=d,t[1]=g,t[2]=y,t[3]=0,t[4]=f*y-h*g,t[5]=h*d-c*y,t[6]=c*g-f*d,t[7]=0,t[8]=c,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},e.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},e.subtract=c,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],g=t[12],y=t[13],v=t[14],m=t[15],_=e[0],x=e[1],b=e[2],M=e[3],C=e[4],P=e[5],S=e[6],O=e[7],w=e[8],A=e[9],T=e[10],E=e[11],I=e[12],L=e[13],D=e[14],B=e[15];return Math.abs(n-_)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-b)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-C)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-P)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(u-S)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-O)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-w)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(h-A)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-T)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-E)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-I)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(v-D)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(m-B)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(B))},e.mul=a,e.sub=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setAxes=e.sqlerp=e.rotationTo=e.equals=e.exactEquals=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.lerp=e.dot=e.scale=e.mul=e.add=e.set=e.copy=e.fromValues=e.clone=e.str=e.fromEuler=e.fromMat3=e.conjugate=e.invert=e.random=e.slerp=e.pow=e.ln=e.exp=e.calculateW=e.rotateZ=e.rotateY=e.rotateX=e.multiply=e.getAngle=e.getAxisAngle=e.setAxisAngle=e.identity=e.create=void 0;var r,i,a,o,s,l,u=n(0),c=u.__importStar(n(28)),f=u.__importStar(n(161)),h=u.__importStar(n(91)),p=u.__importStar(n(164));function d(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function g(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,t}function v(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),l=o>0?s*Math.sin(o)/o:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,t[3]=s*Math.cos(o),t}function m(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function _(t,e,n,r){var i,a,o,s,l,u=e[0],f=e[1],h=e[2],p=e[3],d=n[0],g=n[1],y=n[2],v=n[3];return(a=u*d+f*g+h*y+p*v)<0&&(a=-a,d=-d,g=-g,y=-y,v=-v),1-a>c.EPSILON?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-r)*i)/o,l=Math.sin(r*i)/o):(s=1-r,l=r),t[0]=s*u+l*d,t[1]=s*f+l*g,t[2]=s*h+l*y,t[3]=s*p+l*v,t}function x(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}e.create=d,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.setAxisAngle=g,e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>c.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},e.getAngle=function(t,n){var r=(0,e.dot)(t,n);return Math.acos(2*r*r-1)},e.multiply=y,e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-a*s,t[1]=i*l+o*s,t[2]=a*l+r*s,t[3]=o*l-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.exp=v,e.ln=m,e.pow=function(t,n,r){return m(t,n),(0,e.scale)(t,t,r),v(t,t),t},e.slerp=_,e.random=function(t){var e=c.RANDOM(),n=c.RANDOM(),r=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.fromMat3=x,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,t},e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.clone=p.clone,e.fromValues=p.fromValues,e.copy=p.copy,e.set=p.set,e.add=p.add,e.mul=y,e.scale=p.scale,e.dot=p.dot,e.lerp=p.lerp,e.length=p.length,e.len=e.length,e.squaredLength=p.squaredLength,e.sqrLen=e.squaredLength,e.normalize=p.normalize,e.exactEquals=p.exactEquals,e.equals=p.equals,e.rotationTo=(r=h.create(),i=h.fromValues(1,0,0),a=h.fromValues(0,1,0),function(t,n,o){var s=h.dot(n,o);return s<-.999999?(h.cross(r,i,n),h.len(r)<1e-6&&h.cross(r,a,n),h.normalize(r,r),g(t,r,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(h.cross(r,n,o),t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=1+s,(0,e.normalize)(t,t))}),e.sqlerp=(o=d(),s=d(),function(t,e,n,r,i,a){return _(o,e,i,a),_(s,n,r,a),_(t,o,s,2*a*(1-a)),t}),e.setAxes=(l=f.create(),function(t,n,r,i){return l[0]=r[0],l[3]=r[1],l[6]=r[2],l[1]=i[0],l[4]=i[1],l[7]=i[2],l[2]=-n[0],l[5]=-n[1],l[8]=-n[2],(0,e.normalize)(t,x(t,l))})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.transformQuat=e.transformMat4=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(n,r,i,a)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.fromValues=function(t,e,n,r){var a=new i.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=o,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.distance=u,e.squaredDistance=c,e.length=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.cross=function(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],f=e[1],h=e[2],p=e[3];return t[0]=f*u-h*l+p*s,t[1]=-c*u+h*o-p*a,t[2]=c*l-f*o+p*i,t[3]=-c*s+f*a-h*i,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t},e.random=function(t,e){var n,r,a,o,s,l;e=e||1;do{s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r}while(s>=1);do{l=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*r,t[2]=e*a*u,t[3]=e*o*u,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*i,f=u*i+l*r-o*a,h=u*a+o*i-s*r,p=-o*r-s*i-l*a;return t[0]=c*u+p*-o+f*-l-h*-s,t[1]=f*u+p*-s+h*-o-c*-l,t[2]=h*u+p*-l+c*-s-f*-o,t[3]=e[3],t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.len=f,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=4),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+a*a),s=o&&(n*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))},e.len=f,e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=2),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;sl&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,f.push({i:u,x:(0,r.default)(n,o)})),l=a.lastIndex;return l200&&(c=o/10);for(var f=1/c,h=f/10,p=0;p<=c;p++){var d=p*f,g=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))];(_=(0,r.distance)(u[0],u[1],g[0],g[1]))=0&&_1||e<0||t.length<2)return null;var n=a(t),i=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,u=0;u=s&&e<=s+p){var d=(e-s)/p;l=r.default.pointAt(f[0],f[1],h[0],h[1],d);break}s+=p}return l},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=a(t),r=n.segments,i=n.totalLength,o=0,s=0,l=0;l=o&&e<=o+h){s=Math.atan2(f[1]-c[1],f[0]-c[0]);break}o+=h}return s},e.distanceAtSegment=function(t,e,n){for(var i=1/0,a=0;a1?e*i+a(e,n)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=(0,i.getOffScreenContext)(),a=0;if((0,r.isNil)(t)||""===t)return a;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,r.each)(o,(function(t){var e=n.measureText(t).width;a1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(184)),i=n(383);function a(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}e.default=function(t,e){void 0===e&&(e=!1);for(var n,o,s=(0,r.default)(t),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],c="",f=s.length,h=[],p=0;p=0){n=!0;break}}if(!n)return e;var l=[],u=0,c=0,f=0,h=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(f=u=+d[1],h=c=+d[2],p++,l[0]=["M",u,c]),o=p;for(var g=e.length;o2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){return t>=e&&t<=n};e.default=function(t,e,n,i){var a=n.x-t.x,o=n.y-t.y,s=e.x-t.x,l=e.y-t.y,u=i.x-n.x,c=i.y-n.y,f=s*c-l*u,h=null;if(f*f>.001*(s*s+l*l)*(u*u+c*c)){var p=(a*c-o*u)/f,d=(a*l-o*s)/f;r(p,0,1)&&r(d,0,1)&&(h={x:t.x+p*s,y:t.y+p*l})}return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(5),i=n(392);Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}});var a=r.__importDefault(n(51));e.Adjust=a.default;var o=r.__importDefault(n(393)),s=r.__importDefault(n(394)),l=r.__importDefault(n(395)),u=r.__importDefault(n(396));(0,i.registerAdjust)("Dodge",o.default),(0,i.registerAdjust)("Jitter",s.default),(0,i.registerAdjust)("Stack",l.default),(0,i.registerAdjust)("Symmetric",u.default),r.__exportStar(n(189),e)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var r=n(103);Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return r.Scale}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r={};e.getTickMethod=function(t){return r[t]},e.registerTickMethod=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,i.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalDateMasks=e.setGlobalDateI18n=e.defaultI18n=e.parse=e.format=e.assign=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",a=/\[([^]*?)\]/gm;function o(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function l(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=h;var p=l({},h),d=function(t){return p=l(p,t)};e.setGlobalDateI18n=d;var g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+y(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(Math.floor(Math.abs(e)/60),2)+":"+y(Math.abs(e)%60,2)}},m=function(t){return+t-1},_=[null,"\\d\\d?"],x=[null,i],b=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],C={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",m],MM:["month","\\d\\d",m],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:x,dddd:x,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:b,A:b,ZZ:M,Z:M},P={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},S=function(t){return l(P,t)};e.setGlobalDateMasks=S;var O=function(t,e,n){if(void 0===e&&(e=P.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=P[e]||e).replace(a,(function(t,e){return i.push(e),"@@@"}));var o=l(l({},p),n);return(e=e.replace(r,(function(e){return v[e](t,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function w(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=P[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],u=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},f={};u=g(u).replace(r,(function(t){var e=C[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(f[i]=!0),o.push(e),"("+r+")"})),Object.keys(f).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return s.shift()}));var h=t.match(new RegExp(u,"i"));if(!h)return null;for(var d,y=l(l({},p),n),v=1;v11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return d}e.format=O,e.parse=w;var A={format:O,parse:w,defaultI18n:h,setGlobalDateI18n:d,setGlobalDateMasks:S};e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(r.__importDefault(n(72)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=i/(n-1);return o+(r-s)/((i+1)/(n-1)-s)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,a.last)(e)!==this.max&&e.push(this.max),(0,a.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,a.head)(e))return 0;if(t>(0,a.last)(e))return 1;var n=0;return(0,a.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,r.isNumber)(n)){var o=(0,r.filter)(e,(function(t,e){return e%n==0})),s=(0,r.last)(e);return a&&(0,r.last)(o)!==s&&o.push(s),o}var l=e.length,u=t.min,c=t.max;if((0,r.isNil)(u)&&(u=0),(0,r.isNil)(c)&&(c=e.length-1),!(0,r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var f=1===i?l:Math.floor(l/(i-1)),h=[],p=u,d=0;d=c);d++)p=Math.min(u+d*f,c),d===i-1&&a?h.push(e[c]):h.push(e[p]);return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prettyNumber=void 0,e.prettyNumber=function(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(197);e.default=function(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var a=(e-t)/i,o=Math.pow(10,Math.floor(Math.log10(a))),s=o;2*o-a<1.5*(a-s)&&5*o-a<2.75*(a-(s=2*o))&&10*o-a<1.5*(a-(s=5*o))&&(s=10*o);for(var l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),f=Math.min(u*s,t),h=Math.floor((c-f)/s)+1,p=new Array(h),d=0;d1){var _=u[0],x=Math.abs(t.y-_[0].y);try{for(var b=r.__values(u),M=b.next();!M.done;M=b.next()){var C=M.value,P=Math.abs(t.y-C[0].y);P<=x&&(_=C,x=P)}}catch(t){s={error:t}}finally{try{M&&!M.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}u=[_]}return function(t){for(var e=[],n=function(n){var r=t[n];(0,i.find)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r'+r+"":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new a.HtmlTooltip(r.__assign(r.__assign({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,a=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=r.__values(t),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.x,p=f.y;if(l||(null==a?void 0:a.getClip())){var d=(0,o.getCoordinateClipCfg)(s.getCoordinate()),g=d.type,y=d.attrs;null==a||a.setClip({type:g,attrs:y})}else null==a||a.setClip(void 0);var v=r.__assign(r.__assign({fill:f.color,symbol:"circle",shadowColor:f.color},e),{x:h,y:p});a.addShape("marker",{attrs:v})}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=(0,i.get)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,l;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y});else{var u=(0,o.getAngleByPoint)(n,t),c=n.getCenter(),f=n.getRadius();l=(0,s.polarToCartesian)(c.x,c.y,f,u),r=c}var h=(0,i.deepMix)({start:r,end:l,container:this.getTooltipCrosshairsGroup()},(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete h.type;var p=this.xCrosshair;p?p.update(h):(p=new a.Crosshair.Line(h)).init(),p.render(),p.show(),this.xCrosshair=p}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,s;if(n.isRect){var l=void 0,u=void 0;n.isTransposed?(l={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y}):(l={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}),r={start:l,end:u},s="Line"}else r={center:n.getCenter(),radius:(0,o.getDistanceToCenter)(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(r=(0,i.deepMix)({container:this.getTooltipCrosshairsGroup()},r,(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new a.Crosshair[s](r)).init():c.update(r):(c=new a.Crosshair[s](r)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,n){var r=(0,i.get)(n,["crosshairs","text"]),a=(0,i.get)(n,["crosshairs","follow"]),o=this.items;if(r){var s=this.getViewWithGeometry(this.view),l=o[0],u=s.getXScale(),c=s.getYScales()[0],f=void 0,h=void 0;if(a){var p=this.view.getCoordinate().invert(e);f=u.invert(p.x),h=c.invert(p.y)}else f=l.data[u.field],h=l.data[c.field];var d="x"===t?f:h;return(0,i.isFunction)(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var a=this.getTooltipCfg(),o=(0,l.findItemsFromView)(t,e,a);try{for(var s=r.__values(t.views),u=s.next();!u.done;u=s.next()){var c=u.value;o=o.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:(0,i.find)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.getAnimation=void 0;var r={};e.getAnimation=function(t){return r[t.toLowerCase()]},e.registerAnimation=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelChange=void 0;var r=n(1);e.isModelChange=function(t,e){return(0,r.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,r.isEqual)(t[n],e[n])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diff=void 0,e.diff=function(t,e){for(var n=[],r=[],i=[],a=new Map,o=0;o1){var a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,r.__spreadArray([e],r.__read(a),!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var r=n(0),i=n(1),a=n(2),o=n(214),s=n(25),l=n(61),u=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&l.MarkerSymbols[e]&&(t.symbol=l.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,a,l){var f=n.getScale(n.type);if(f.isCategory){var h=f.field,p=e.getAttribute("color"),d=e.getAttribute("shape"),g=t.getTheme().defaultColor,y=e.coordinate.isPolar;return f.getTicks().map((function(n,v){var m,_=n.text,x=n.value,b=_,M=f.invert(x),C=0===t.filterFieldData(h,[(m={},m[h]=M,m)]).length;(0,i.each)(t.views,(function(t){var e;t.filterFieldData(h,[(e={},e[h]=M,e)]).length||(C=!0)}));var P,S,O=(0,o.getMappingValue)(p,M,g),w=(0,o.getMappingValue)(d,M,"point"),A=e.getShapeMarker(w,{color:O,isInPolar:y}),T=l;return(0,i.isFunction)(T)&&(T=T(b,v,r.__assign({name:b,value:M},(0,i.deepMix)({},a,A)))),function(t,e){var n=t.symbol;if((0,i.isString)(n)&&-1!==u.indexOf(n)){var r=(0,i.get)(t,"style",{}),a=(0,i.get)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=(0,i.deepMix)({},t.style,{lineWidth:a,stroke:o,fill:null})}}(A=(0,i.deepMix)({},a,A,(0,s.omit)(r.__assign({},T),["style"])),O),T&&T.style&&(A.style=(P=A.style,S=T.style,(0,i.isFunction)(S)?S(P):(0,i.deepMix)({},P,S))),c(A),{id:M,name:b,value:M,marker:A,unchecked:C}}))}return[]},e.getCustomLegendItems=function(t,e,n){return n.map((function(n,r){var a=e;(0,i.isFunction)(a)&&(a=a(n.name,r,(0,i.deepMix)({},t,n)));var o=(0,i.isFunction)(n.marker)?n.marker(n.name,r,(0,i.deepMix)({},t,n)):n.marker,s=(0,i.deepMix)({},t,a,o);return c(s),n.marker=s,n}))},e.getLegendThemeCfg=function(t,e){var n=(0,i.get)(t,["components","legend"],{});return(0,i.deepMix)({},(0,i.get)(n,["common"],{}),(0,i.deepMix)({},(0,i.get)(n,[e],{})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLineMarker=void 0;var r={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};e.getLineMarker=function(t,e){var n=t.color;return{symbol:r[e],style:{lineWidth:2,r:6,stroke:n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=r.__importStar(n(62));e.Shape=i,r.__exportStar(n(12),e);var a=n(502);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(120);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(219);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r.__importDefault(s).default}}),e.version="0.5.12"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n(15),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);(0,r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function u(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),u=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var v=n*n*(g*g)+i*i*(d*d),m=v?Math.sqrt((n*n*(i*i)-v)/v):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var _=i?m*n*g/i:0,x=n?m*-i*d/n:0,b=(c+h)/2+Math.cos(s)*_-Math.sin(s)*x,M=(f+p)/2+Math.sin(s)*_+Math.cos(s)*x,C=[(d-_)/n,(g-x)/i],P=[(-1*d-_)/n,(-1*g-x)/i],S=o([1,0],C),O=o(C,P);return a(C,P)<=-1&&(O=Math.PI),a(C,P)>=1&&(O=0),0===u&&O>0&&(O-=2*Math.PI),1===u&&O<0&&(O+=2*Math.PI),{cx:b,cy:M,rx:(0,r.isSamePoint)(t,[h,p])?0:n,ry:(0,r.isSamePoint)(t,[h,p])?0:i,startAngle:S,endAngle:S+O,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);e.default=function(t,e,n){var i=(0,r.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(ua)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return(0,r.distance)(c.x,c.y,s,l)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(81));e.default=function(t,e,n,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return(0,i.map)(n,(function(t){if(t&&a){var e=a.scale((0,i.get)(t.data,a.field));return r.__assign(r.__assign({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,o,r,l);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),(0,i.isArray)(t.x)||(0,i.isArray)(t.y)?{x:(0,i.isArray)(t.x)?t.x[e]:t.x,y:(0,i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return(0,o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var o=this.getCoordinate(),s=o.getCenter(),l=(0,a.getDistanceToCenter)(o,n);if(0===l)return r.__assign(r.__assign({},s),{r:l});var u=t;o.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,n){var r=t+l;return n&&(r-=l),r&&(r>l?r-=Math.PI:r<-l&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return(0,i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=n.minY,s=n.maxY,l=Math.abs(o-s),u=0,c=Number.MIN_VALUE,f=r.map((function(t){return t.y>u&&(u=t.y),t.yl&&(l=u-o);a;)for(f.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),a=!1,i=f.length;i--;)if(i>0){var h=f[i-1],p=f[i];h.pos+h.size>p.pos&&(h.size+=p.size,h.targets=h.targets.concat(p.targets),h.pos+h.size>l&&(h.pos=l-h.size),f.splice(i,1),a=!0)}i=0,f.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,a=+new Date;if(a-r>(0,i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:e.x,y:e.y};o&&(0,i.isEqual)(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,i.head)(t),end:(0,i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var r,i=n(0),a=n(56),o=i.__importDefault(n(11)),s=n(4);function l(t,e,n,r){var a=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),s=i.__read(t.range,2),l=s[0],u=s[1];if(au&&(o=u),a===u&&o===u)return null;var c=t.invert(a),f=t.invert(o);if(t.isCategory){var h=t.values.indexOf(c),p=t.values.indexOf(f),d=t.values.slice(h,p+1);return function(t){return d.includes(t)}}return function(t){return t>=c&&t<=f}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={})),e.BRUSH_FILTER_EVENTS=r;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return i.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if((0,s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,o=i.view,u={view:o,event:i.event,dims:this.dims};o.emit(r.BEFORE_FILTER,a.Event.fromData(o,r.BEFORE_FILTER,u));var c=o.getCoordinate(),f=c.invert(e),h=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),d=l(p,"x",f,h);this.filterView(o,p.field,d)}if(this.hasDim("y")){var g=o.getYScales()[0];d=l(g,"y",f,h);this.filterView(o,g.field,d)}this.reRender(o,{source:r.FILTER}),o.emit(r.AFTER_FILTER,a.Event.fromData(o,r.AFTER_FILTER,u))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,a.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,a.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(77),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=e.VIEW_LIFE_CIRCLE=void 0;var r=n(0),i=n(23),a=n(488),o=n(207);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=r.__importStar(n(217)),l=r.__importStar(n(504)),u=n(23);(0,u.registerEngine)("canvas",s),(0,u.registerEngine)("svg",l);var c=n(23),f=r.__importDefault(n(525)),h=r.__importDefault(n(527)),p=r.__importDefault(n(529)),d=r.__importDefault(n(530)),g=r.__importDefault(n(532)),y=r.__importDefault(n(123)),v=r.__importDefault(n(533)),m=r.__importDefault(n(535)),_=r.__importDefault(n(537)),x=r.__importDefault(n(539));(0,c.registerGeometry)("Polygon",m.default),(0,c.registerGeometry)("Interval",d.default),(0,c.registerGeometry)("Schema",_.default),(0,c.registerGeometry)("Path",y.default),(0,c.registerGeometry)("Point",v.default),(0,c.registerGeometry)("Line",g.default),(0,c.registerGeometry)("Area",f.default),(0,c.registerGeometry)("Edge",h.default),(0,c.registerGeometry)("Heatmap",p.default),(0,c.registerGeometry)("Violin",x.default),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560);var b=n(23),M=r.__importDefault(n(79)),C=r.__importDefault(n(561)),P=r.__importDefault(n(562)),S=r.__importDefault(n(225));(0,b.registerGeometryLabel)("base",M.default),(0,b.registerGeometryLabel)("interval",C.default),(0,b.registerGeometryLabel)("pie",P.default),(0,b.registerGeometryLabel)("polar",S.default);var O=n(23),w=n(563),A=n(564),T=n(565),E=n(566),I=n(567),L=n(568),D=n(569),B=n(573),j=n(575),R=n(576),k=n(577),F=n(578),N=n(579);(0,O.registerGeometryLabelLayout)("overlap",L.overlap),(0,O.registerGeometryLabelLayout)("distribute",w.distribute),(0,O.registerGeometryLabelLayout)("fixed-overlap",L.fixedOverlap),(0,O.registerGeometryLabelLayout)("hide-overlap",D.hideOverlap),(0,O.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,O.registerGeometryLabelLayout)("limit-in-canvas",E.limitInCanvas),(0,O.registerGeometryLabelLayout)("limit-in-plot",N.limitInPlot),(0,O.registerGeometryLabelLayout)("pie-outer",A.pieOuterLabelLayout),(0,O.registerGeometryLabelLayout)("adjust-color",B.adjustColor),(0,O.registerGeometryLabelLayout)("interval-adjust-position",j.intervalAdjustPosition),(0,O.registerGeometryLabelLayout)("interval-hide-overlap",R.intervalHideOverlap),(0,O.registerGeometryLabelLayout)("point-adjust-position",k.pointAdjustPosition),(0,O.registerGeometryLabelLayout)("pie-spider",T.pieSpiderLabelLayout),(0,O.registerGeometryLabelLayout)("path-adjust-position",F.pathAdjustPosition);var G=n(582),Y=n(583),V=n(585),H=n(586),z=n(587),X=n(588),W=n(589),q=n(590),U=n(23);(0,U.registerAnimation)("fade-in",G.fadeIn),(0,U.registerAnimation)("fade-out",G.fadeOut),(0,U.registerAnimation)("grow-in-x",Y.growInX),(0,U.registerAnimation)("grow-in-xy",Y.growInXY),(0,U.registerAnimation)("grow-in-y",Y.growInY),(0,U.registerAnimation)("scale-in-x",z.scaleInX),(0,U.registerAnimation)("scale-in-y",z.scaleInY),(0,U.registerAnimation)("wave-in",W.waveIn),(0,U.registerAnimation)("zoom-in",q.zoomIn),(0,U.registerAnimation)("zoom-out",q.zoomOut),(0,U.registerAnimation)("position-update",H.positionUpdate),(0,U.registerAnimation)("sector-path-update",X.sectorPathUpdate),(0,U.registerAnimation)("path-in",V.pathIn);var Z=n(23),Q=r.__importDefault(n(591)),K=r.__importDefault(n(592)),$=r.__importDefault(n(593)),J=r.__importDefault(n(594)),tt=r.__importDefault(n(595)),et=r.__importDefault(n(596));(0,Z.registerFacet)("rect",tt.default),(0,Z.registerFacet)("mirror",J.default),(0,Z.registerFacet)("list",K.default),(0,Z.registerFacet)("matrix",$.default),(0,Z.registerFacet)("circle",Q.default),(0,Z.registerFacet)("tree",et.default);var nt=n(23),rt=r.__importDefault(n(597)),it=r.__importDefault(n(600)),at=r.__importDefault(n(602)),ot=r.__importDefault(n(603)),st=r.__importDefault(n(210)),lt=r.__importDefault(n(604));(0,nt.registerComponentController)("axis",it.default),(0,nt.registerComponentController)("legend",at.default),(0,nt.registerComponentController)("tooltip",st.default),(0,nt.registerComponentController)("annotation",rt.default),(0,nt.registerComponentController)("slider",ot.default),(0,nt.registerComponentController)("scrollbar",lt.default);var ut=n(23),ct=r.__importDefault(n(605)),ft=r.__importDefault(n(606)),ht=r.__importDefault(n(227)),pt=r.__importDefault(n(607)),dt=r.__importDefault(n(608)),gt=r.__importDefault(n(609)),yt=r.__importDefault(n(610)),vt=r.__importDefault(n(611)),mt=r.__importDefault(n(131)),_t=r.__importDefault(n(612)),xt=r.__importDefault(n(613)),bt=r.__importStar(n(614));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return bt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Mt=r.__importDefault(n(615)),Ct=r.__importDefault(n(616)),Pt=r.__importDefault(n(617)),St=r.__importDefault(n(618)),Ot=r.__importDefault(n(619)),wt=r.__importDefault(n(620)),At=r.__importDefault(n(622)),Tt=r.__importDefault(n(623)),Et=r.__importDefault(n(624)),It=r.__importDefault(n(625)),Lt=r.__importDefault(n(626)),Dt=r.__importDefault(n(627)),Bt=r.__importDefault(n(628)),jt=r.__importDefault(n(229)),Rt=r.__importDefault(n(228)),kt=r.__importDefault(n(629)),Ft=r.__importDefault(n(630)),Nt=r.__importDefault(n(631)),Gt=r.__importStar(n(230));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Gt.BRUSH_FILTER_EVENTS}});var Yt=r.__importDefault(n(632)),Vt=r.__importDefault(n(633)),Ht=r.__importDefault(n(634)),zt=r.__importDefault(n(635)),Xt=r.__importDefault(n(636)),Wt=r.__importDefault(n(637)),qt=r.__importDefault(n(638)),Ut=r.__importDefault(n(639)),Zt=r.__importDefault(n(640)),Qt=r.__importDefault(n(641));(0,ut.registerAction)("tooltip",ht.default),(0,ut.registerAction)("sibling-tooltip",ft.default),(0,ut.registerAction)("ellipsis-text",pt.default),(0,ut.registerAction)("element-active",dt.default),(0,ut.registerAction)("element-single-active",vt.default),(0,ut.registerAction)("element-range-active",yt.default),(0,ut.registerAction)("element-highlight",mt.default),(0,ut.registerAction)("element-highlight-by-x",xt.default),(0,ut.registerAction)("element-highlight-by-color",_t.default),(0,ut.registerAction)("element-single-highlight",Mt.default),(0,ut.registerAction)("element-range-highlight",bt.default),(0,ut.registerAction)("element-sibling-highlight",bt.default,{effectSiblings:!0,effectByRecord:!0}),(0,ut.registerAction)("element-selected",Pt.default),(0,ut.registerAction)("element-single-selected",St.default),(0,ut.registerAction)("element-range-selected",Ct.default),(0,ut.registerAction)("element-link-by-color",gt.default),(0,ut.registerAction)("active-region",ct.default),(0,ut.registerAction)("list-active",Ot.default),(0,ut.registerAction)("list-selected",At.default),(0,ut.registerAction)("list-highlight",wt.default),(0,ut.registerAction)("list-unchecked",Tt.default),(0,ut.registerAction)("list-checked",Et.default),(0,ut.registerAction)("list-focus",It.default),(0,ut.registerAction)("list-radio",Lt.default),(0,ut.registerAction)("legend-item-highlight",wt.default,{componentNames:["legend"]}),(0,ut.registerAction)("axis-label-highlight",wt.default,{componentNames:["axis"]}),(0,ut.registerAction)("axis-description",Qt.default),(0,ut.registerAction)("rect-mask",Rt.default),(0,ut.registerAction)("x-rect-mask",Bt.default,{dim:"x"}),(0,ut.registerAction)("y-rect-mask",Bt.default,{dim:"y"}),(0,ut.registerAction)("circle-mask",Dt.default),(0,ut.registerAction)("path-mask",jt.default),(0,ut.registerAction)("smooth-path-mask",kt.default),(0,ut.registerAction)("cursor",Ft.default),(0,ut.registerAction)("data-filter",Nt.default),(0,ut.registerAction)("brush",Gt.default),(0,ut.registerAction)("brush-x",Gt.default,{dims:["x"]}),(0,ut.registerAction)("brush-y",Gt.default,{dims:["y"]}),(0,ut.registerAction)("sibling-filter",Yt.default),(0,ut.registerAction)("sibling-x-filter",Yt.default),(0,ut.registerAction)("sibling-y-filter",Yt.default),(0,ut.registerAction)("element-filter",Vt.default),(0,ut.registerAction)("element-sibling-filter",Ht.default),(0,ut.registerAction)("element-sibling-filter-record",Ht.default,{byRecord:!0}),(0,ut.registerAction)("view-drag",Xt.default),(0,ut.registerAction)("view-move",Wt.default),(0,ut.registerAction)("scale-translate",qt.default),(0,ut.registerAction)("scale-zoom",Ut.default),(0,ut.registerAction)("reset-button",zt.default,{name:"reset-button",text:"reset"}),(0,ut.registerAction)("mousewheel-scroll",Zt.default);var Kt=n(23);function $t(t){return t.isInPlot()}function Jt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,Kt.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,Kt.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,Kt.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,Kt.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,Kt.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,Kt.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,Kt.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),(0,Kt.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,Kt.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),(0,Kt.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),(0,Kt.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),(0,Kt.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,Kt.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:"path-mask:start"},{trigger:"mousedown",isEnable:$t,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),(0,Kt.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,Kt.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),(0,Kt.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,Kt.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,Kt.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),(0,Kt.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,Kt.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),(0,Kt.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Jt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Jt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,Kt.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,Kt.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var te=n(2);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return te.VIEW_LIFE_CIRCLE}}),r.__exportStar(n(23),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(150),s=n(313),l=function(t){function e(e){var n=this,l=e.container,u=e.width,c=e.height,f=e.autoFit,h=void 0!==f&&f,p=e.padding,d=e.appendPadding,g=e.renderer,y=void 0===g?"canvas":g,v=e.pixelRatio,m=e.localRefresh,_=void 0===m||m,x=e.visible,b=void 0===x||x,M=e.supportCSSTransform,C=void 0!==M&&M,P=e.defaultInteractions,S=void 0===P?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:P,O=e.options,w=e.limitInPlot,A=e.theme,T=e.syncViewPadding,E=(0,i.isString)(l)?document.getElementById(l):l,I=(0,s.createDom)('
');E.appendChild(I);var L=(0,s.getChartSize)(E,h,u,c),D=new((0,o.getEngine)(y).Canvas)(r.__assign({container:I,pixelRatio:v,localRefresh:_,supportCSSTransform:C},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:d,visible:b,options:O,limitInPlot:w,theme:A,syncViewPadding:T})||this).onResize=(0,i.debounce)((function(){n.forceFit()}),300),n.ele=E,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=h,n.localRefresh=_,n.renderer=y,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(S),n}return r.__extends(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,i.each)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,s.removeDom)(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=(0,s.getChartSize)(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){(0,s.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(r.__importDefault(n(153)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(134)),a=r.__importDefault(n(84));e.default=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,(function(t){return!(0,a.default)(e,t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(18)),a=r.__importDefault(n(135)),o=r.__importDefault(n(7)),s=r.__importDefault(n(57));e.default=function(t,e){if(!(0,o.default)(t))return null;var n;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,a.default)(t,e)}),n)for(var r=0;r-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(17)),a=r.__importDefault(n(139));e.default=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,o=[],s=t.length;++re[i])return 1;if(t[i]n?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%1!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%2==0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31)),i=Number.isInteger?Number.isInteger:function(t){return(0,r.default)(t)&&t%1==0};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t<0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,o=0;or&&(n=s,r=l)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,o=0;oe?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t){return(0,r.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(17));e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(30)),a=r.__importDefault(n(46)),o=r.__importDefault(n(149));e.default=function(t,e,n,r){void 0===r&&(r="...");var s,l,u=(0,o.default)(r,n),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,h=[];if((0,o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((l=(0,o.default)(s,n))+u>f&&l>f);)if(h.push(s),f-=l,!(c=c.substr(16)))return h.join("");for(;s=c.substr(0,1),!((l=(0,o.default)(s,n))+u>f);)if(h.push(s),f-=l,!(c=c.substr(1)))return h.join("");return""+h.join("")+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDom=e.removeDom=e.getChartSize=void 0;var r=n(2);function i(t){return"number"==typeof t&&!isNaN(t)}e.getChartSize=function(t,e,n,a){var o=n,s=a;if(e){var l=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);o=l.width?l.width:o,s=l.height?l.height:s}return{width:Math.max(i(o)?o:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(i(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=n(47);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return a.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return a.modifyCSS}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){"use strict";var r,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r||(r=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var n=o[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(58)),a=r.__importDefault(n(151));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0;return n+r+(parseFloat((0,i.default)(t,"borderBottomWidth"))||0)+o+s+(parseFloat((0,i.default)(t,"marginTop"))||0)+(parseFloat((0,i.default)(t,"marginBottom"))||0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(58)),a=r.__importDefault(n(152));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,l=parseFloat((0,i.default)(t,"borderRightWidth"))||0,u=parseFloat((0,i.default)(t,"marginRight"))||0;return n+r+l+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(158),o=r.__importDefault(n(159)),s=n(39),l=r.__importDefault(n(328)),u=r.__importDefault(n(360)),c=(0,a.detect)(),f=c&&"firefox"===c.name,h=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new u.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new l.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(f&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=h},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var l,u=[],c=!1,f=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++f1)for(var n=1;n0){r=Math.sqrt(r);var i=n[0]/r,a=n[1]/r,o=n[2]/r,s=n[3]/r,l=n[4],u=n[5],c=n[6],f=n[7],h=i*l+a*u+o*c+s*f;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(l-i*h)/r,t[5]=(u-a*h)/r,t[6]=(c-o*h)/r,t[7]=(f-s*h)/r}return t},e.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=e[0],h=e[1],p=e[2],d=e[3],g=e[4],y=e[5],v=e[6],m=e[7];return Math.abs(n-f)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-h)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-d)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-g)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.angleTo=e.direction=e.transform=e.leftScale=e.leftRotate=e.leftTranslate=void 0;var r=n(67);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=a,e.leftScale=o,e.transform=function(t,e){for(var n,s,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importStar(n(329)),o=n(332),s=n(174),l=r.__importStar(n(155)),u=n(359),c=[1,0,0,0,1,0,0,0,1];function f(t,e,n){var r,a=e.startTime;if(nd.length?(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.fillPathByDiff(d,p),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[h]=[];for(var g=0;g0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],f(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=h},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.timeout=e.timerFlush=e.timer=e.now=void 0;var i=n(93);Object.defineProperty(e,"now",{enumerable:!0,get:function(){return i.now}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return i.timer}}),Object.defineProperty(e,"timerFlush",{enumerable:!0,get:function(){return i.timerFlush}});var a=n(330);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return r(a).default}});var o=n(331);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?(0,r.now)():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.quantize=e.piecewise=e.interpolateCubehelixLong=e.interpolateCubehelix=e.interpolateHclLong=e.interpolateHcl=e.interpolateLab=e.interpolateHslLong=e.interpolateHsl=e.interpolateRgbBasisClosed=e.interpolateRgbBasis=e.interpolateRgb=e.interpolateZoom=e.interpolateTransformSvg=e.interpolateTransformCss=e.interpolateString=e.interpolateRound=e.interpolateObject=e.interpolateNumberArray=e.interpolateNumber=e.interpolateHue=e.interpolateDiscrete=e.interpolateDate=e.interpolateBasisClosed=e.interpolateBasis=e.interpolateArray=e.interpolate=void 0;var i=n(94);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return r(i).default}});var a=n(170);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return r(a).default}});var o=n(97);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return r(o).default}});var s=n(168);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return r(s).default}});var l=n(171);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return r(l).default}});var u=n(335);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return r(u).default}});var c=n(336);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return r(c).default}});var f=n(68);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return r(f).default}});var h=n(98);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return r(h).default}});var p=n(172);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return r(p).default}});var d=n(337);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return r(d).default}});var g=n(173);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return r(g).default}});var y=n(338);Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return y.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return y.interpolateTransformSvg}});var v=n(341);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return r(v).default}});var m=n(167);Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return r(m).default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return m.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return m.rgbBasisClosed}});var _=n(342);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return r(_).default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return _.hslLong}});var x=n(343);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return r(x).default}});var b=n(344);Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return r(b).default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return b.hclLong}});var M=n(345);Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return r(M).default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return M.cubehelixLong}});var C=n(346);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return r(C).default}});var P=n(347);Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return r(P).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(166),o=6/29,s=3*o*o;function l(t){if(t instanceof c)return new c(t.l,t.a,t.b,t.opacity);if(t instanceof v)return m(t);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e,n,r=d(t.r),a=d(t.g),o=d(t.b),s=f((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?e=n=s:(e=f((.4360747*r+.3850649*a+.1430804*o)/.96422),n=f((.0139322*r+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-n),t.opacity)}function u(t,e,n,r){return 1===arguments.length?l(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function f(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function h(t){return t>o?t*t*t:s*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function d(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof v)return new v(t.h,t.c,t.l,t.opacity);if(t instanceof c||(t=l(t)),0===t.a&&0===t.b)return new v(NaN,0180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:(0,r.default)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,l,u),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:(0,r.default)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,l,u),function(t,e,n,i,o,s){if(t!==n||e!==i){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:(0,r.default)(t,n)},{i:l-2,x:(0,r.default)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,l,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++n120||u*u+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var l=this._getEventObj(t,e,n,r,i,a);if(r){l.shape=r,o(r,t,l);for(var u=r.getParent();u;)u.emitDelegation(t,l),l.propagationStopped||s(u,t,l),l.propagationPath.push(u),u=u.getParent()}else{o(this.canvas,t,l)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),l=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),u=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var h=f.shadowBlur,p=void 0===h?0:h,d=f.shadowOffsetX,g=void 0===d?0:d,y=f.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,_=i+p+g,x=r-p+v,b=a+p+v;n=Math.min(n,m),i=Math.max(i,_),r=Math.min(r,x),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerBBox=e.getBBoxMethod=void 0;var r=n(0),i=n(364);Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=r.__importDefault(n(365)),o=r.__importDefault(n(366)),s=r.__importDefault(n(367)),l=r.__importDefault(n(373)),u=r.__importDefault(n(374)),c=r.__importDefault(n(375)),f=r.__importDefault(n(390)),h=r.__importDefault(n(391));(0,i.register)("rect",a.default),(0,i.register)("image",a.default),(0,i.register)("circle",o.default),(0,i.register)("marker",o.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",l.default),(0,i.register)("text",u.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var r=new Map;e.register=function(t,e){r.set(t,e)},e.getMethod=function(t){return r.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(99);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o=0?[a]:[]}function l(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function u(t,e,n,i,a,s,l){var u=o(t,n,a,l),c=o(e,i,s,l),f=r.default.pointAt(t,e,n,i,l),h=r.default.pointAt(n,i,a,s,l);return[[t,e,f.x,f.y,u,c],[u,c,h.x,h.y,a,s]]}e.default={box:function(t,e,n,r,a,l){var u=s(t,n,a)[0],c=s(e,r,l)[0],f=[t,a],h=[e,l];return void 0!==u&&f.push(o(t,n,a,u)),void 0!==c&&h.push(o(e,r,l,c)),(0,i.getBBoxByArray)(f,h)},length:function(t,e,n,r,a,o){return function t(e,n,r,a,o,s,l){if(0===l)return((0,i.distance)(e,n,r,a)+(0,i.distance)(r,a,o,s)+(0,i.distance)(e,n,o,s))/2;var c=u(e,n,r,a,o,s,.5),f=c[0],h=c[1];return f.push(l-1),h.push(l-1),t.apply(null,f)+t.apply(null,h)}(t,e,n,r,a,o,3)},nearestPoint:function(t,e,n,r,i,s,l,u){return(0,a.nearestPoint)([t,n,i],[e,r,s],l,u,o)},pointDistance:function(t,e,n,r,a,o,s,l){var u=this.nearestPoint(t,e,n,r,a,o,s,l);return(0,i.distance)(u.x,u.y,s,l)},interpolationAt:o,pointAt:function(t,e,n,r,i,a,s){return{x:o(t,n,i,s),y:o(e,r,a,s)}},divide:function(t,e,n,r,i,a,o){return u(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,a,o,s){var u=l(t,n,a,s),c=l(e,r,o,s),f=Math.atan2(c,u);return(0,i.piMod)(f)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importDefault(n(69)),o=n(176);function s(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function l(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function u(t,e,n,r){var a,o,s,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(l,0))(0,i.isNumberEqual)(u,0)||(a=-c/u)>=0&&a<=1&&f.push(a);else{var h=u*u-4*l*c;(0,i.isNumberEqual)(h,0)?f.push(-u/(2*l)):h>0&&(o=(-u-(s=Math.sqrt(h)))/(2*l),(a=(-u+s)/(2*l))>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i,o,l,u,c){var f=s(t,n,i,l,c),h=s(e,r,o,u,c),p=a.default.pointAt(t,e,n,r,c),d=a.default.pointAt(n,r,i,o,c),g=a.default.pointAt(i,o,l,u,c),y=a.default.pointAt(p.x,p.y,d.x,d.y,c),v=a.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,p.x,p.y,y.x,y.y,f,h],[f,h,v.x,v.y,g.x,g.y,l,u]]}e.default={extrema:u,box:function(t,e,n,r,a,o,l,c){for(var f=[t,l],h=[e,c],p=u(t,n,a,l),d=u(e,r,o,c),g=0;gf&&(f=g)}var y=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),v=1/0,m=-1/0,_=[a,l];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=y+p;am&&(m=b)}return{x:c,y:v,width:f-c,height:m-v}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,f){var h=u(c-t,f-e,-i),p=h[0],d=h[1],g=a.default.nearestPoint(0,0,n,r,p,d),y=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);ys&&(g=l(n,r,s));var v=u(g.x,g.y,i);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,a,o,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return(0,i.distance)(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,a,l,u){var c=(l-a)*u+a;return{x:o(t,0,n,r,i,c),y:s(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,a,o,s,l){var u=(s-o)*l+o,c=function(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,a,0,0,u),f=function(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,a,0,0,u);return(0,i.piMod)(Math.atan2(f,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,a,o){var s=n,l=r;if(0===s||0===l)return{x:t,y:e};for(var u,c,f=a-t,h=o-e,p=Math.abs(f),d=Math.abs(h),g=s*s,y=l*l,v=Math.PI/4,m=0;m<4;m++){u=s*Math.cos(v),c=l*Math.sin(v);var _=(g-y)*Math.pow(Math.cos(v),3)/s,x=(y-g)*Math.pow(Math.sin(v),3)/l,b=u-_,M=c-x,C=p-_,P=d-x,S=Math.hypot(M,b),O=Math.hypot(P,C);v+=S*Math.asin((b*P-M*C)/(S*O))/Math.sqrt(g+y-u*u-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+i(u,f),y:e+i(c,h)}},pointDistance:function(t,e,n,i,a,o){var s=this.nearestPoint(t,e,n,i,a,o);return(0,r.distance)(s.x,s.y,a,o)},pointAt:function(t,e,n,r,i){var a=2*Math.PI*i;return{x:t+n*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(t,e,n,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return(0,r.piMod)(s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(177),a=r.__importDefault(n(178));function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}e.default={box:function(t){return a.default.box(t)},length:function(t){return(0,i.lengthOfSegment)(o(t))},pointAt:function(t,e){return(0,i.pointAtSegments)(o(t),e)},pointDistance:function(t,e,n){return(0,i.distanceAtSegment)(o(t),e,n)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20);e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;aMath.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(f-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,l=e.stroke?e.lineWidth:0,u=function(t,e){for(var n=[],i=[],o=[],l=0;l=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";function r(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s=0;c--)l=s[c].index,"add"===s[c].type?t.splice(l,0,[].concat(t[l])):t.splice(l,1)}if((a=t.length)0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],2)}t[a]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(182)),o=r.__importDefault(n(183)),s=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},l=function(t,e,n,r,i,a,o,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var g=c*f[d]+c,y=s(g,t,n,i,o),v=s(g,e,r,a,l),m=y*y+v*v;p+=h[d]*Math.sqrt(m)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},f=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},h=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:(0,a.default)(t,e,n,r),vb:[t,e,n,r].join(" ")}},p=function(t,e,n,r,a,o,s,l){(0,i.isArray)(t)||(t=[t,e,n,r,a,o,s,l]);var c=u.apply(null,t);return h(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},d=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=h(t),e=h(e),f(e,t.x,t.y)||f(e,t.x2,t.y)||f(e,t.x,t.y2)||f(e,t.x2,t.y2)||f(t,e.x,e.y)||f(t,e.x2,e.y)||f(t,e.x,e.y2)||f(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(p(t),p(e)))return n?0:[];for(var r=~~(l.apply(0,t)/8),i=~~(l.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],g=0;g=0&&S<=1&&O>=0&&O<=1&&(n?u++:u.push({x:P.x,y:P.y,t1:S,t2:O}))}}return u};e.default=function(t,e){return function(t,e,n){var r,i,a,s,l,u,c,f,h,p;t=(0,o.default)(t),e=(0,o.default)(e);for(var d=n?0:[],y=0,v=t.length;y1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,n=t.py,s=t.cx,l=t.cy,u=t.rx,c=t.ry,f=t.xAxisRotation,h=void 0===f?0:f,p=t.largeArcFlag,d=void 0===p?0:p,g=t.sweepFlag,y=void 0===g?0:g,v=[];if(0===u||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];var m=Math.sin(h*r/360),_=Math.cos(h*r/360),x=_*(e-s)/2+m*(n-l)/2,b=-m*(e-s)/2+_*(n-l)/2;if(0===x&&0===b)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];u=Math.abs(u),c=Math.abs(c);var M=Math.pow(x,2)/Math.pow(u,2)+Math.pow(b,2)/Math.pow(c,2);M>1&&(u*=Math.sqrt(M),c*=Math.sqrt(M));var C=function(t,e,n,i,a,s,l,u,c,f,h,p){var d=Math.pow(a,2),g=Math.pow(s,2),y=Math.pow(h,2),v=Math.pow(p,2),m=d*g-d*v-g*y;m<0&&(m=0),m/=d*v+g*y;var _=(m=Math.sqrt(m)*(l===u?-1:1))*a/s*p,x=m*-s/a*h,b=f*_-c*x+(t+n)/2,M=c*_+f*x+(e+i)/2,C=(h-_)/a,P=(p-x)/s,S=(-h-_)/a,O=(-p-x)/s,w=o(1,0,C,P),A=o(C,P,S,O);return 0===u&&A>0&&(A-=r),1===u&&A<0&&(A+=r),[b,M,w,A]}(e,n,s,l,u,c,d,y,m,_,x,b),P=C[0],S=C[1],O=C[2],w=C[3],A=Math.abs(w)/(r/4);Math.abs(1-A)<1e-7&&(A=1);var T=Math.max(Math.ceil(A),1);w/=T;for(var E=0;E1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function l(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var n,r,u=l(t),c=l(e);if(n=u,(r=c).minX>n.maxX||r.maxXn.maxY||r.maxY=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!a.isNil(l)&&a.isNil(s)&&l>=0){r=u+this.getDodgeOnlyOffset(n,e)}else if(!a.isNil(s)&&!a.isNil(l)&&s>=0&&l>=0){r=u+this.getIntervalAndDodgeOffset(n,e)}else{var h=f*i/n,p=o*h;r=(u+c)/2+(.5*(f-n*h-(n-1)*p)+((e+1)*h+e*p)-.5*h-.5*f)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.dodgeRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=(1-(s-1)*h)/s*l/(t-1),d=((1-h*(s-1))/s-p*(t-1))/t;if(d=a.isNil(f)?d:1/s/t*f,!a.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*(p=((1-(s-1)*h)/s-t*d)/(t-1))+.5*h)*s-h/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.marginRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=1*l/(s-1),d=((1-p*(s-1))/s-h*(t-1))/t;if(d=f?1/s/t*f:d,!a.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*h+.5*(p=(1-(d*t+h*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=n/i,s=r/i;return((.5+e)*(((1-o*(a-1))/a-s*(t-1))/t)+e*s+.5*o)*a-o/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},a.each(e,(function(e,n){var i=a.valuesOfKey(e,t);i.length||i.push(0),a.each(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(r.__importDefault(n(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=n(101);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return a.each(i,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.GAP;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var i=this,o=this.getAdjustRange(e,n,r);return a.each(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}(r.__importDefault(n(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=r.__importDefault(n(51)),s=a.Cache,l=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,a=e.height,o=void 0===a?NaN:a,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=o,n.size=l,n.reverseOrder=c,n}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=this.reverseOrder?this.reverse(t):t,o=new s,l=new s;return r.map((function(t){return t.map((function(t){var r,s=a.get(t,e,0),u=a.get(t,[n]),c=s.toString();if(u=a.isArray(u)?u[1]:u,!a.isNil(u)){var f=u>=0?o:l;f.has(c)||f.set(c,0);var h=f.get(c),p=u+h;return f.set(c,p),(0,i.__assign)((0,i.__assign)({},t),((r={})[n]=[h,p],r))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,r=this.height,a=this.reverseOrder,o=a?this.reverse(t):t,l=new s;return o.map((function(t){return t.map((function(t){var a,o=e.size,s=t[n],u=2*o/r;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),(0,i.__assign)((0,i.__assign)({},t),((a={}).y=c,a))}))}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.flatten(t),n=this.xField,r=this.yField,o=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return a.map(t,(function(t){return a.map(t,(function(t){var e,l,u=t[r],c=t[n];if(a.isArray(u)){var f=(s-o[c])/2;return(0,i.__assign)((0,i.__assign)({},t),((e={})[r]=a.map(u,(function(t){return f+t})),e))}var h=(s-u)/2;return(0,i.__assign)((0,i.__assign)({},t),((l={})[r]=[h,u+h],l))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,i=a.groupBy(t,(function(t){return t[n]}));return a.mapValues(i,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=a.map(t,(function(t){return a.get(t,e,[])})),r=a.flatten(n);return Math.max.apply(Math,r)},e}(r.__importDefault(n(51)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importDefault(n(70)),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,o.isString)(n.values)&&(n.linear=!0),n.gradient=a.default.gradient(n.values),n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(r.__importDefault(n(40)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return(0,i.__extends)(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=n(1),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return(0,i.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return(0,a.isNil)(t)||(0,a.isNil)(e)?[]:[(0,a.isArray)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),(0,a.isArray)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(r.__importDefault(n(40)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return(0,i.__extends)(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.registerAttribute=e.getAttribute=void 0;var r=n(5),i=r.__importDefault(n(40));e.Attribute=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAttribute=o;e.registerAttribute=function(t,e){if(o(t))throw new Error("Attribute type '"+t+"' existed.");a[t.toLowerCase()]=e},r.__exportStar(n(190),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,i.__extends)(e,t),e.prototype.translate=function(t){t=(0,o.toTimeStamp)(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,a.isNumber)(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):(0,o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,a.each)(e,(function(t,n){e[n]=(0,o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(r.__importDefault(n(192)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){return function(e,n,i,a){for(var o=(0,r.isNil)(i)?0:i,s=(0,r.isNil)(a)?e.length:a;o>>1;t(e[l])>n?s=l:o=l+1}return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(73),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=(0,a.log)(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var l=1/(r-(e=(0,a.log)(n,s/n)))*o;if(t=0?1:-1;return Math.pow(o,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return((0,a.calBase)(r,t)-(0,a.calBase)(r,n))/((0,a.calBase)(r,e)-(0,a.calBase)(r,n))},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,i.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):(0,o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,a.isString)(n)||(0,a.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return(0,o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(n)&&(0,a.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=i,l=0;(0,a.each)(t,(function(t){var e=(0,o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),l1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=l)}},e}(r.__importDefault(n(194)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,i.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(r.__importDefault(n(195)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerScale=e.getScale=e.Scale=void 0;var r=n(0).__importDefault(n(59));e.Scale=r.default;var i={};function a(t){return i[t]}e.getScale=a,e.registerScale=function(t,e){if(a(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,i.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,a.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r=n(0),i=r.__importDefault(n(196)),a=r.__importDefault(n(412)),o=r.__importDefault(n(414)),s=r.__importDefault(n(416)),l=r.__importDefault(n(417)),u=r.__importDefault(n(418)),c=r.__importDefault(n(419)),f=n(191);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var h=r.__importDefault(n(420)),p=r.__importDefault(n(421)),d=r.__importDefault(n(422));(0,f.registerTickMethod)("cat",i.default),(0,f.registerTickMethod)("time-cat",p.default),(0,f.registerTickMethod)("wilkinson-extended",o.default),(0,f.registerTickMethod)("r-pretty",c.default),(0,f.registerTickMethod)("time",h.default),(0,f.registerTickMethod)("time-pretty",d.default),(0,f.registerTickMethod)("log",s.default),(0,f.registerTickMethod)("pow",l.default),(0,f.registerTickMethod)("quantile",u.default),(0,f.registerTickMethod)("d3-linear",a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(413)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickInterval,l=t.minLimit,u=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(l)&&(0,i.isNil)(u)?r?(0,o.default)(e,n,r).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,a=new o;return a.domain([e,n]),r&&a.nice(i),a.ticks(i)};var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2),o=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),a=0,o=this._domain.length-1,l=this._domain[a],u=this._domain[o];return u0?r=s(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=s(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}e.D3Linear=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(415)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,f=t.maxLimit,h=(0,a.default)(e,n,r,l).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?u?(0,o.default)(e,n,u).ticks:h:(0,s.default)(t,(0,i.head)(h),(0,i.last)(h))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_Q=e.DEFAULT_Q=void 0;var r=n(1),i=n(197);e.DEFAULT_Q=[1,5,2,2.5,4,3],e.ALL_Q=[1,5,2,2.5,4,3,1.5,7,6,8,9];var a=100*Number.EPSILON;function o(t,e,n,i,o,s){var l=(0,r.size)(e),u=(0,r.indexOf)(e,t),c=0,f=function(t,e){return(t%e+e)%e}(i,s);return(f=0&&(c=1),1-u/(l-1)-n+c}function s(t,e,n){var i=(0,r.size)(e);return 1-(0,r.indexOf)(e,t)/(i-1)-n+1}function l(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function u(t,e){return t>=e?2-(t-1)/(e-1):1}function c(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function f(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}e.default=function(t,n,a,h,p,d){void 0===a&&(a=5),void 0===h&&(h=!0),void 0===p&&(p=e.DEFAULT_Q),void 0===d&&(d=[.25,.2,.5,.05]);var g=a<0?0:Math.round(a);if(Number.isNaN(t)||Number.isNaN(n)||"number"!=typeof t||"number"!=typeof n||!g)return{min:0,max:0,ticks:[]};if(n-t<1e-15||1===g)return{min:t,max:n,ticks:[t]};for(var y={score:-2,lmin:0,lmax:0,lstep:0},v=1;v<1/0;){for(var m=0;my.score&&(!h||I<=t&&L>=n)&&(y.lmin=I,y.lmax=L,y.lstep=D,y.score=k)}P+=1}b+=1}}v+=1}var F=(0,i.prettyNumber)(y.lmax),N=(0,i.prettyNumber)(y.lmin),G=(0,i.prettyNumber)(y.lstep),Y=Math.floor(function(t){return Math.round(1e12*t)/1e12}((F-N)/G))+1,V=new Array(Y);for(V[0]=(0,i.prettyNumber)(N),m=1;m0)e=Math.floor((0,r.log)(n,a));else{var u=(0,r.getLogPositiveMin)(s,n,o);e=Math.floor((0,r.log)(n,u))}for(var c=l-e,f=Math.ceil(c/i),h=[],p=e;p=0?1:-1;return Math.pow(t,e)*n}))}},function(t,e,n){"use strict";function r(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),a=[],o=0;o1&&(a*=Math.ceil(s)),i&&ar.YEAR)for(var p=i(n),d=Math.ceil(c/r.YEAR),g=h;g<=p+d;g+=d)f.push(a(g));else if(c>r.MONTH){var y=Math.ceil(c/r.MONTH),v=o(e),m=function(t,e){var n=i(t),r=i(e),a=o(t);return 12*(r-n)+(o(e)-a)%12}(e,n);for(g=0;g<=m+y;g+=y)f.push(s(h,g+v))}else if(c>r.DAY){var _=(P=new Date(e)).getFullYear(),x=P.getMonth(),b=P.getDate(),M=Math.ceil(c/r.DAY),C=function(t,e){return Math.ceil((e-t)/r.DAY)}(e,n);for(g=0;gr.HOUR){_=(P=new Date(e)).getFullYear(),x=P.getMonth(),M=P.getDate();var P,S=P.getHours(),O=Math.ceil(c/r.HOUR),w=function(t,e){return Math.ceil((e-t)/r.HOUR)}(e,n);for(g=0;g<=w+O;g+=O)f.push(new Date(_,x,M,S+g).getTime())}else if(c>r.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),T=Math.ceil(c/r.MINUTE);for(g=0;g<=A+T;g+=T)f.push(e+g*r.MINUTE)}else{var E=c;E=512&&console.warn("Notice: current ticks length("+f.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Coordinate=e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i=r.__importDefault(n(74));e.Coordinate=i.default;var a=r.__importDefault(n(424)),o=r.__importDefault(n(425)),s=r.__importDefault(n(426)),l=n(427);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return l.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return l.registerCoordinate}}),(0,l.registerCoordinate)("rect",a.default),(0,l.registerCoordinate)("cartesian",a.default),(0,l.registerCoordinate)("polar",s.default),(0,l.registerCoordinate)("helix",o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(r.__importDefault(n(74)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(r,[1,0],!0),s=i*this.a;a.vec2.length(r)this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var l=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(l,l,i);var u=[1,0,0];a.vec3.transformMat3(u,u,l);var c=[u[0],u[1]],f=a.ext.angleTo(c,r,s0?p:-p;var d=this.invertDim(h,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i1||r<0)&&(r=1),{x:(0,u.getValueByPercent)(t.x,e.x,r),y:(0,u.getValueByPercent)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,l=e.offsetX,u=e.offsetY,c=e.autoRotate,f=e.maxLength,h=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,y=void 0!==g&&g,v=this.getLabelPoint(n,r,i),m=v.x+l,_=v.y+u,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:_,content:a,style:o,maxLength:f,autoEllipsis:h,ellipsisPosition:p,background:d,isVertical:y};if(c){var b=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(b[1],b[0])}(0,s.renderTag)(t,x)},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisString=e.charAtLength=e.strLen=void 0;function r(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}e.strLen=function(t){for(var e=0,n=0;nMath.PI?1:0,u=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=(0,o.getCirclePoint)(e,n,r+Math.PI);u.push(["A",n,n,0,l,1,c.x,c.y]),u.push(["A",n,n,0,l,1,s.x,s.y])}else u.push(["A",n,n,0,l,1,s.x,s.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,i.__assign)({path:e},n)})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=r.__importDefault(n(21)),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),a=(0,s.regionToBBox)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=(0,o.regionToBBox)({start:t,end:e}),a=this.get("src");return(0,i.__assign)({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(75),l=n(33),u=r.__importDefault(n(21)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.default.fontFamily}}}})},e.prototype.renderInner=function(t){(0,a.get)(this.get("line"),"display")&&this.renderLine(t),(0,a.get)(this.get("text"),"display")&&this.renderText(t),(0,a.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=(0,i.__rest)(e,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,h=l.isVertival,p=l.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:u,maxLength:c,autoEllipsis:f,isVertival:h,ellipsisPosition:p};(0,s.renderTag)(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=(0,a.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),u=s.minX,c=s.maxX,f=s.minY,h=s.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+u<=o.minX){var y=o.minX-(n+u);(0,l.applyTranslate)(p,p.attr("x")+y,p.attr("y"))}if(n+c>=o.maxX){y=n+c-o.maxX;(0,l.applyTranslate)(p,p.attr("x")-y,p.attr("y"))}}if("upward"===e&&r+f<=o.minY||"upward"!==e&&r+h>=o.maxY){var v=void 0,m=void 0;"upward"===e&&r+f<=o.minY?(v="top",m=1):(v="bottom",m=-1),d.attr("textBaseline",v),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),(0,l.applyTranslate)(p,p.attr("x"),(i+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=(0,a.get)(this.get("line"),"display"),e=(0,a.get)(this.get("point"),"style",{}),n=(0,a.get)(this.get("line"),"style",{}),r=(0,a.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,a.get)(this.get("line"),"length",0):0,l="upward"===o?-1:1;return{point:(0,i.__assign)({x:0,y:0},e),line:(0,i.__assign)({path:[["M",0,0],["L",0,s*l]]},n),text:(0,i.__assign)({x:0,y:(s+2)*l,text:(0,a.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},r)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(21)),l=n(10),u=n(75),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:s.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:s.default.textColor,fontFamily:s.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,a.get)(this.get("region"),"style",{}),n=((0,a.get)(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var o=(0,l.pointsToBBox)(r),s=[];s.push(["M",r[0].x,o.minY-n]),r.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({path:s},e)});var c=(0,i.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));(0,u.renderTag)(t,c)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,a.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),o=(0,a.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=(0,s.regionToBBox)({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"shape",draw:a.noop})},e.prototype.renderInner=function(t){var e=this.get("render");(0,a.isFunction)(e)&&e(t)},e}(r.__importDefault(n(9)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=r.__importDefault(n(76)),l=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");(0,l.clearDom)(t);var n=(0,o.isFunction)(e)?e(t):e;if((0,o.isElement)(n))t.appendChild(n);else if((0,o.isString)(n)||(0,o.isNumber)(n)){var r=(0,a.createDom)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),l=this.get("offsetY"),u=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),f={x:n,y:r};"middle"===i?f.x-=Math.round(u/2):"right"===i&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),(0,a.modifyCSS)(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Circle=e.Line=void 0;var i=n(442);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(446);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(107);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=a.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return a.vec2.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),s=this.get("verticalLimitLength"),l=i.offset,u=s,c=0,f=0;a&&(c=a.style.fontSize,f=a.spacing),u&&(u=u-l-f-c);var h=this.get("overlapOrder");if((0,o.each)(h,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,u)})),a&&(0,o.isNil)(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=l+d+f+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,o.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),s=!1,u=l[t];if(!0===e){this.get("label");s=u.getDefault()(a,n,r)}else if((0,o.isFunction)(e))s=e(a,n,r);else if((0,o.isObject)(e)){var c=e;u[c.type]&&(s=u[c.type](a,n,r,c.cfg))}else u[e]&&(s=u[e](a,n,r));if("autoRotate"===t){if(s){var f=n.getChildren(),h=this.get("verticalFactor");(0,o.each)(f,(function(t){if("center"===t.attr("textAlign")){var e=h>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);(0,o.each)(p,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisMiddle=e.ellipsisTail=e.ellipsisHead=e.getDefault=void 0;var r=n(1),i=n(60);function a(t,e,n,a){var o=e.getChildren(),s=!1;return(0,r.each)(o,(function(e){var r=(0,i.ellipsisLabel)(t,e,n,a);s=s||r})),s}function o(t,e,n){return a(t,e,n,"tail")}e.getDefault=function(){return o},e.ellipsisHead=function(t,e,n){return a(t,e,n,"head")},e.ellipsisTail=o,e.ellipsisMiddle=function(t,e,n){return a(t,e,n,"middle")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistanceWithReverseBoth=e.equidistance=e.reserveBoth=e.reserveLast=e.reserveFirst=e.getDefault=void 0;var r=n(60),i=n(33),a=n(10);function o(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?(0,i.getAngleByMatrix)(t.attr("matrix")):0)%360}function s(t,e,n,r){var i=!1,s=o(e),l=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),u=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}else{c=Math.abs(Math.sin(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}return i}function l(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var l=a.length,u=a[0],c=1;c1){g=Math.ceil(g);for(var v=0;v2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),l(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),l(t,e,!0,r)&&(a=!0))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unfixedAngle=e.fixedAngle=e.getDefault=void 0;var r=n(0),i=n(1),a=n(60),o=n(33),s=r.__importDefault(n(21));function l(t,e,n,r){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var l=(0,a.getMaxLabelWidth)(s),u=!1;t?u=!!n&&l>n:u=l>Math.abs(s[1].attr("x")-s[0].attr("x"));u&&function(t,e){(0,i.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=(0,o.getMatrixByAngle)({x:n,y:r},e);t.attr("matrix",i)}))}(s,r(n,l));return u}function u(t,e,n,r){return l(t,e,n,(function(){return(0,i.isNumber)(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}e.getDefault=function(){return u},e.fixedAngle=u,e.unfixedAngle=function(t,e,n){return l(t,e,n,(function(e,n){if(!e)return t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var l=this.getCirclePoint(a),u=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,f,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),a=o.vec2.length(r);return o.vec2.scale(r,r,i*t/a),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,a.isNil)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,s=i,l=0,u=0;r&&(l=r.style.fontSize,u=r.spacing),s&&(s=s-o-u-l);var c=this.get("overlapOrder");if((0,a.each)(c,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,s)})),r&&(0,a.isNil)(r.offset)){var f=t.getCanvasBBox().height;r.offset=o+f+u+l/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,s=l[t];if(r>0)if(!0===e)o=s.getDefault()(!1,n,r);else if((0,a.isFunction)(e))o=e(!1,n,r);else if((0,a.isObject)(e)){var u=e;s[u.type]&&(o=s[u.type](!1,n,r,u.cfg))}else s[e]&&(o=s[e](!1,n,r));if("autoRotate"===t){if(o){var c=n.getChildren(),f=this.get("verticalFactor");(0,a.each)(c,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);(0,a.each)(h,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=e.Base=e.Circle=e.Line=void 0;var i=n(448);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(449);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(108);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}});var s=n(450);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(s).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return(0,a.getTextPoint)(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(r.__importDefault(n(108)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,l=r.endAngle,u="start"===e?s:l,c=this.getRotateAngle()-Math.PI,f=(0,a.getCirclePoint)(i,o,u),h=Math.cos(c)*n,p=Math.sin(c)*n;return{x:f.x+h,y:f.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var s=e.x,l=e.y;o=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var u=(0,a.getCirclePoint)(e,n,r),c=(0,a.getCirclePoint)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;o=[["M",u.x,u.y],["A",n,n,0,f,h,c.x,c.y]]}return o},e}(r.__importDefault(n(108)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=n(10),l=r.__importDefault(n(76)),u=r.__importStar(n(202)),c=r.__importDefault(n(451)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:u.CONTAINER_CLASS,defaultStyles:c.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=(0,a.createDom)(e);t.appendChild(n),this.applyStyle(u.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return(0,s.getTextPoint)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=(0,o.substitute)(this.get("textTpl"),t);e=(0,a.createDom)(i),r.appendChild(e),this.applyStyle(u.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?(0,a.modifyCSS)(t,{width:"1px",height:(0,s.toPx)(Math.abs(n.y-e.y))}):(0,a.modifyCSS)(t,{height:"1px",width:(0,s.toPx)(Math.abs(n.x-e.x))}),(0,a.modifyCSS)(t,{top:(0,s.toPx)(i),left:(0,s.toPx)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}(0,a.modifyCSS)(t,{top:(0,s.toPx)(r.y),left:(0,s.toPx)(r.x)})}},e.prototype.updateInner=function(e){(0,o.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(21)),o=i.__importStar(n(202));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"relative"},r[""+o.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_TEXT]={position:"absolute",color:a.default.textColor,fontFamily:a.default.fontFamily},r)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Line=e.Circle=e.Base=void 0;var i=n(109);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(453);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(454);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,i,o,s,l,u=this.getLineType(),c=this.get("closed"),f=[];if(t.length)if("circle"===u){var h=this.get("center"),p=t[0],d=(n=h.x,r=h.y,i=p.x,o=p.y,s=i-n,l=o-r,Math.sqrt(s*s+l*l)),g=e?0:1;c?(f.push(["M",h.x,h.y-d]),f.push(["A",d,d,0,0,g,h.x,h.y+d]),f.push(["A",d,d,0,0,g,h.x,h.y-d]),f.push(["Z"])):(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["A",d,d,0,0,g,t.x,t.y])}))}else(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["L",t.x,t.y])})),c&&f.push(["Z"]);return f},e}(r.__importDefault(n(109)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,a.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(r.__importDefault(n(109)).default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Continuous=e.Category=void 0;var i=n(456);Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return r(i).default}});var a=n(457);Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return r(a).default}});var o=n(110);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(60),s=n(33),l=n(200),u=r.__importDefault(n(21)),c=r.__importDefault(n(110)),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},h={fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal",lineHeight:12},p={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndexg&&(g=m),"horizontal"===h?(y&&yx&&(x=e.width)})),b=x,x+=h,l&&(x=Math.min(l,x),b=Math.min(l,b)),this.pageWidth=x,this.pageHeight=u-Math.max(y.height,p+M);var S=Math.floor(this.pageHeight/(p+M));(0,a.each)(s,(function(t,e){0!==e&&e%S==0&&(m+=1,v.x+=x,v.y=i),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:x,height:p}}),v.y+=p+M})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+b/2-y.width/2-y.minX,y:u-y.height-y.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,a.get)(r.marker,"style",{}),u=l.size,c=void 0===u?12:u,f=(0,i.__rest)(l,["size"]),h=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",c,f);h.on("click",this.onNavigationBack);var p=h.getBBox();o.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,i.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,a.get)(r.text,"style"))}).getBBox();return o.x+=d.width+2,this.drawArrow(s,o,"navigation-arrow-right","horizontal"===e?"down":"right",c,f).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=(0,a.deepMix)({},f,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),c=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right");l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?o:r),u.attr("fill",1===this.currentPageIndex?i:n),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var h=u.getBBox().maxX+2;l.attr("x",h),h+=l.getBBox().width+2,this.updateArrowPath(c,{x:h,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,o){var l=e.x,u=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,i.__assign)({size:a,direction:r,path:[["M",l+a/2,u],["L",l,u+a],["L",l+a,u+a],["Z"]],cursor:"pointer"},o)});return c.attr("matrix",(0,s.getMatrixByAngle)({x:l+a/2,y:u+a/2},p[r])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),a=i.size,o=i.direction,l=(0,s.getMatrixByAngle)({x:n+a/2,y:r+a/2},p[o]);t.attr("path",[["M",n+a/2,r],["L",n,r+a],["L",n+a,r+a],["Z"]]),t.attr("matrix",l)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return(0,s.getMatrixByTranslate)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");(0,a.each)(n,(function(e){var n=e.get("name").split("-")[2],i=(0,l.getStatesStyle)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(c.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(21)),s=n(10),l=r.__importDefault(n(110)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:o.default.textColor,textBaseline:"middle",fontFamily:o.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:o.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];rn&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),l=i-r;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+la&&(c=a),c0&&this.changeRailLength(r,i,n[i]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+o,r.y),e.attr({x:r.x+l.width+s.width+2*o,y:r.y+c/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o),e.attr({x:r.x,y:r.y+l.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(l.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=void 0;var i=n(459);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(i).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(70)),o=n(47),s=n(1),l=r.__importDefault(n(76)),u=n(10),c=r.__importStar(n(111)),f=r.__importDefault(n(460)),h=n(461);var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:c.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f.default})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),(0,o.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),(0,o.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&(0,o.modifyCSS)(n,{display:e}),r&&(0,o.modifyCSS)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,r,i;this.get("customContent")?this.renderCustomContent():(n=e,r=["title","showTitle"],i=!1,(0,s.each)(r,(function(t){if((0,s.hasKey)(n,t))return i=!0,!1})),i&&this.resetTitle(),(0,s.hasKey)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,l=this.get("position"),c=this.get("region"),f=this.getContainer(),p=this.getBBox(),d=p.width,g=p.height;c&&(t=(0,u.regionToBBox)(c));var y=(0,h.getAlignPoint)(e,n,r,d,g,l,t);(0,o.modifyCSS)(f,{left:(0,u.toPx)(y.x+a),top:(0,u.toPx)(y.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=(0,s.isElement)(n)?n:(0,o.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(c.TITLE_CLASS)[0],n=t.getElementsByClassName(c.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=(0,u.regionToBBox)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?(0,o.modifyCSS)(n,{left:(0,u.toPx)(r),top:(0,u.toPx)(e.y),height:(0,u.toPx)(e.height)}):(0,o.modifyCSS)(n,{top:(0,u.toPx)(r),left:(0,u.toPx)(e.x),width:(0,u.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=c[r],a=this.get(e),s=this.get("parent");return a||(a=(0,o.createDom)(this.get(n)),this.applyStyle(i,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,s.each)(t,(function(t){var r=a.default.toCSSGradient(t.color),l=(0,i.__assign)((0,i.__assign)({},t),{color:r}),u=(0,s.substitute)(e,l),c=(0,o.createDom)(u);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,u.clearDom)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(l.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(21)),o=i.__importStar(n(111));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+o.TITLE_CLASS]={marginBottom:"4px"},r[""+o.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+o.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+o.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+o.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+o.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r)},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:ti.x+i.width,top:ei.y+i.height}}function i(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=e.getPointByPosition=e.getOutSides=void 0,e.getOutSides=r,e.getPointByPosition=i,e.getAlignPoint=function(t,e,n,a,o,s,l){var u=i(t,e,n,a,o,s);if(l){var c=r(u.x,u.y,a,o,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-a-n)),c.top&&(u.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-a),"top"===s&&c.top&&(u.y=e+n),"bottom"===s&&c.bottom&&(u.y=e-o-n)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-o),"left"===s&&c.left&&(u.x=t+n),"right"===s&&c.right&&(u.x=t-a-n))}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(463);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(464),l=n(467),u=n(468),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,a.get)(r,"touches.0.pageX",r.pageX),e.prevY=(0,a.get)(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,a.get)(t,"touches.0.pageX",t.pageX),o=(0,a.get)(t,"touches.0.pageY",t.pageY),s=i-e.prevX,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(u.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return(0,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=(0,a.clamp)(n,t,e),o=(0,a.clamp)(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if((0,a.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,a.clamp)(t[0],e.min,e.max),end:(0,a.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:u.BACKGROUND_STYLE,foregroundStyle:u.FOREGROUND_STYLE,handlerStyle:u.HANDLER_STYLE,textStyle:u.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,r=e.end,o=(0,i.__assign)({},e);(0,a.isNil)(n)||(o.start=(0,a.clamp)(n,0,1)),(0,a.isNil)(r)||(o.end=(0,a.clamp)(r,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",(0,a.clamp)(this.get("start"),0,1)),this.set("end",(0,a.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),r=e.height,o=e.trendCfg,c=void 0===o?{}:o,f=e.minText,h=e.maxText,p=e.backgroundStyle,d=void 0===p?{}:p,g=e.foregroundStyle,y=void 0===g?{}:g,v=e.textStyle,m=void 0===v?{}:v,_=(0,a.deepMix)({},l.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);(0,a.size)((0,a.get)(c,"data"))&&(this.trend=this.addComponent(t,(0,i.__assign)({component:s.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},d)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"right",text:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"left",text:h,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,i.__assign)({y:0,height:r},y)});var x=(0,a.get)(_,"width",u.DEFAULT_HANDLER_WIDTH),b=(0,a.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_}),this.maxHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,s=r.width,l=r.minText,c=r.maxText,f=r.handlerStyle,h=r.height,p=i*s,d=o*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",d-p);var g=(0,a.get)(f,"width",u.DEFAULT_HANDLER_WIDTH);e.attr("text",l),n.attr("text",c);var y=this._dodgeText([p,d],e,n),v=y[0],m=y[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,a.each)(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,a.each)(m,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"foreground":i=0-n,a=1-r;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,s=o.handlerStyle,l=o.width,c=(0,a.get)(s,"width",u.DEFAULT_HANDLER_WIDTH),f=t[0],h=t[1],p=!1;f>h&&(f=(r=[h,f])[0],h=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>f-2?{x:f+c/2+2,textAlign:"left"}:{x:f-c/2-2,textAlign:"right"},v=g.width>l-h-2?{x:h-c/2-2,textAlign:"right"}:{x:h+c/2+2,textAlign:"left"};return p?[v,y]:[y,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.default);e.Slider=c,e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trend=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(465),s=n(466),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,l=e.isArea,u=e.backgroundStyle,c=e.lineStyle,f=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},u)});var h=(0,s.dataToPath)(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:h},c)}),l){var p=(0,s.linePathToAreaPath)(h,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,i.__assign)({path:p},f)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.default);e.Trend=l,e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AREA_STYLE=e.LINE_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={opacity:0},e.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},e.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linePathToAreaPath=e.getAreaLineY=e.dataToPath=e.getSmoothLinePath=e.getLinePath=void 0;var r=n(0),i=n(50),a=n(103),o=n(1);function s(t){return function(t){return(0,o.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function l(t){if(t.length<=2)return s(t);var e=[];(0,o.each)(t,(function(t){(0,o.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=(0,i.catmullRom2Bezier)(e,!1),r=(0,o.head)(t),a=r[0],l=r[1];return n.unshift(["M",a,l]),n}function u(t,e){var n=new a.Linear({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}e.getLinePath=s,e.getSmoothLinePath=l,e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),u=new a.Category({values:(0,o.map)(t,(function(t,e){return e}))}),c=(0,o.map)(t,(function(t,r){return[u.scale(r)*e,n-i.scale(t)*n]}));return r?l(c):s(c)},e.getAreaLineY=u,e.linePathToAreaPath=function(t,e,n,i){var a=(0,r.__spreadArrays)(t),o=u(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Handler=e.DEFAULT_HANDLER_STYLE=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9));e.DEFAULT_HANDLER_STYLE={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"};var o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(n,t),n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"handler",x:0,y:0,width:10,height:24,style:e.DEFAULT_HANDLER_STYLE})},n.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:l,cursor:u}});var c=1/3*n,f=2/3*n,h=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:h,x2:c,y2:p,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:p,stroke:o,cursor:u}})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},n.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},n}(a.default);e.Handler=o,e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLIDER_CHANGE=e.TEXT_STYLE=e.HANDLER_STYLE=e.DEFAULT_HANDLER_WIDTH=e.FOREGROUND_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={fill:"#416180",opacity:.05},e.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},e.DEFAULT_HANDLER_WIDTH=10,e.HANDLER_STYLE={width:e.DEFAULT_HANDLER_WIDTH,height:24},e.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},e.SLIDER_CHANGE="sliderchange"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(0).__exportStar(n(470),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var r=n(0),i=n(0),a=n(47),o=n(1),s=r.__importDefault(n(9));e.DEFAULT_THEME={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};var l=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?(0,o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?(0,o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[(0,a.addEventListener)(t,"touchmove",e.onMouseMove),(0,a.addEventListener)(t,"touchend",e.onMouseUp),(0,a.addEventListener)(t,"touchcancel",e.onMouseUp)]:[(0,a.addEventListener)(t,"mousemove",e.onMouseMove),(0,a.addEventListener)(t,"mouseup",e.onMouseUp),(0,a.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?(0,o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?(0,o.get)(t,"touches.0.clientY"):t.clientY,l=r?a:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(i+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-o/2:u-s.top-a-o/2,f=e.validateRange(c);e.updateThumbOffset(f)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return(0,i.__extends)(n,t),n.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=(0,o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},n.prototype.getValue=function(){return(0,o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:e.DEFAULT_THEME})},n.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.renderTrackShape=function(t){var n=this.cfg,r=n.trackLen,i=n.theme,a=void 0===i?{default:{}}:i,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,l=s.lineCap,u=s.trackColor,c=s.size,f=(0,o.get)(this.cfg,"size",c),h=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:r-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:r-f/2,lineWidth:f,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},n.prototype.renderThumbShape=function(t){var n=this.cfg,r=n.thumbOffset,i=n.thumbLen,a=n.theme,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,l=s.size,u=s.lineCap,c=s.thumbColor,f=(0,o.get)(this.cfg,"size",l),h=this.get("isHorizontal")?{x1:r+f/2,y1:f/2,x2:r+i-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:r+f/2,x2:f/2,y2:r+i-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:h})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},n.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},n.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return(0,r.get)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=(0,i.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&(0,i.isInBox)(r,n):(0,i.isInBox)(r,n)}))},t.prototype.destroy=function(){(0,r.each)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(0),i=n(1),a=n(207),o=n(477);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=r.__rest(t,["styleSheet"]),l=(0,o.createLightStyleSheet)(n);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(l),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var r=n(0),i="#000",a="#595959",o="#8C8C8C",s="#BFBFBF",l="#D9D9D9",u="#F0F0F0",c="#FFFFFF",f="#D9D9D9",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],p=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],d=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createLightStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?h:e,g=t.paletteQualitative20,y=void 0===g?p:g,v=t.brandColor,m=void 0===v?n[0]:v,_={backgroundColor:"transparent",brandColor:m,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:y,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:d,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:s,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:a,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:f,axisTickLineBorderColor:s,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:l,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:o,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:l,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:o,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:m,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:a,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:i,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:i,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:o,legendPageNavigatorTextFontSize:12,sliderRailFillColor:l,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:o,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:s,annotationArcBorderColor:l,annotationArcBorder:1,annotationLineBorderColor:s,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:a,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:i,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:s,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:a,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:a,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:c,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:a,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:c,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:s,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:m,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:c,pointBorderOpacity:1,pointActiveBorderColor:i,pointSelectedBorder:2,pointSelectedBorderColor:i,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:m,hollowPointBorderOpacity:.95,hollowPointFillColor:c,hollowPointActiveBorder:1,hollowPointActiveBorderColor:i,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:i,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:m,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:m,areaFillOpacity:.25,areaActiveFillColor:m,areaActiveFillOpacity:.5,areaSelectedFillColor:m,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:m,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:i,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:i,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:m,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:i,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:i,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:m,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:c,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:i,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:i,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},e.antvLight=(0,e.createLightStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(19),o=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return(0,i.some)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,o=n.cfg,s="theta"===i,l=r.__assign({start:t,end:e},o),u=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new u(l),this.coordinate.type=i,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return r.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,i.each)(n,(function(n){var a,o=r.__read(n),s=o[0],l=o.slice(1);(!!(0,i.isNil)(t)||t.includes(s))&&(a=e.coordinate)[s].apply(a,r.__spreadArray([],r.__read(l),!1))}))},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(1),i=n(38),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),o=(0,r.deepMix)(u,s.scaleDef,n)}var c=(0,i.createScaleByField)(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(a,o){var s=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER,u=[];(0,r.each)(a,(function(t){var e=n.getScale(t);l=(0,r.isNumber)(e.max)?Math.max(l,e.max):l,s=(0,r.isNumber)(e.min)?Math.min(s,e.min):s,(0,r.each)(e.values,(function(t){u.includes(t)||u.push(t)}))})),(0,r.each)(a,(function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:l,values:u});else if(o.isCategory){var c=o.range,f=n.getScaleMeta(a);u&&!(0,r.get)(f,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,r.deepMix)({},o,{values:u}),t,e)),o.change({values:u,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?((0,i.syncScale)(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var a=this.getSyncKey(r);if(r.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,r.last)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,a=(0,r.get)(n,["sync"]);return!0===a?i:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(0),i=n(1),a=n(2),o=n(29),s=n(113),l=n(209);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(l.PaddingCal.bind.apply(l.PaddingCal,r.__spreadArray([void 0],r.__read((0,s.parsePadding)(e)),!1)));var n=t.viewBBox,u=new l.PaddingCal,c=[],f=[],h=[];return(0,i.each)(t.getComponents(),(function(t){var e=t.type;e===a.COMPONENT_TYPE.AXIS?c.push(t):[a.COMPONENT_TYPE.LEGEND,a.COMPONENT_TYPE.SLIDER,a.COMPONENT_TYPE.SCROLLBAR].includes(e)?f.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&h.push(t)})),(0,i.each)(c,(function(t){var e=t.component.getLayoutBBox(),r=new o.BBox(e.x,e.y,e.width,e.height).exceed(n);u.max(r)})),(0,i.each)(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(r.x,r.y,r.width,r.height).expand(i);u.inc(a,n)})),(0,i.each)(h,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);u.inc(i,n)})),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(0),i=n(1);e.group=function(t,e,n){var a,o;if(void 0===n&&(n={}),!e)return[t];var s=(0,i.groupToMap)(t,e),l=[];if(1===e.length&&n[e[0]]){var u=n[e[0]];try{for(var c=r.__values(u),f=c.next();!f.done;f=c.next()){var h=f.value,p=s["_".concat(h)];p&&l.push(p)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}}else for(var d in s)if(s.hasOwnProperty(d)){var g=s[d];l.push(g)}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseFields=void 0;var r=n(1);e.parseFields=function(t){return(0,r.isArray)(t)?t:t.split("*")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(36),o=n(117),s=n(53),l=n(13),u=n(54),c=n(2),f=n(486),h=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),r.__awaiter(this,void 0,void 0,(function(){var o,s,l,u,c,h,p,d,g=this;return r.__generator(this,(function(y){switch(y.label){case 0:if(o={},s=this.createOffscreenGroup(),!t.length)return[3,2];try{for(l=r.__values(t),u=l.next();!u.done;u=l.next())(c=u.value)&&(o[c.id]=this.renderLabel(c,s))}catch(t){p={error:t}}finally{try{u&&!u.done&&(d=l.return)&&d.call(l)}finally{if(p)throw p.error}}return[4,this.doLayout(t,e,o)];case 1:y.sent(),this.renderLabelLine(t,o),this.renderLabelBackground(t,o),this.adjustLabel(t,o),y.label=2;case 2:return h=this.shapesMap,(0,i.each)(o,(function(t,e){if(t.destroyed)delete o[e];else{if(h[e]){var s=t.get("data"),l=t.get("origin"),u=t.get("coordinate"),c=t.get("animateCfg"),p=h[e];(0,f.updateLabel)(p,o[e],{data:s,origin:l,animateCfg:c,coordinate:u}),o[e]=p}else{if(g.container.destroyed)return;g.container.add(t);var d=(0,i.get)(t.get("animateCfg"),n?"enter":"appear");d&&(0,a.doAnimate)(t,d,{toAttrs:r.__assign({},t.attr()),coordinate:t.get("coordinate")})}delete h[e]}})),(0,i.each)(h,(function(t){var e=(0,i.get)(t.get("animateCfg"),"leave");e?(0,a.doAnimate)(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=o,s.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,a=t.id,o=t.elementId,s=t.data,l=t.mappingData,f=t.coordinate,h=t.animate,p=t.content,d={id:a,elementId:o,data:s,origin:r.__assign(r.__assign({},l),{data:l[c.FIELD_ORIGIN]}),coordinate:f},g=e.addGroup(r.__assign({name:"label",animateCfg:!1!==this.animate&&null!==h&&!1!==h&&(0,i.deepMix)({},this.animate,h)},d));if(p.isGroup&&p.isGroup()||p.isShape&&p.isShape()){var y=p.getCanvasBBox(),v=y.width,m=y.height,_=(0,i.get)(t,"textAlign","left"),x=t.x,b=t.y-m/2;"center"===_?x-=v/2:"right"!==_&&"end"!==_||(x-=v),(0,u.translate)(p,x,b),n=p,g.add(p)}else{var M=(0,i.get)(t,["style","fill"]);n=g.addShape("text",r.__assign({attrs:r.__assign(r.__assign({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:(0,i.get)(t,"textBaseline","middle"),text:t.content},t.style),{fill:(0,i.isNull)(M)?t.color:M})},d))}return t.rotate&&(0,u.rotate)(n,t.rotate),g},t.prototype.doLayout=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var a,s=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.layout?(a=(0,i.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(a.map((function(r){var a=(0,o.getGeometryLabelLayout)((0,i.get)(r,"type",""));if(a){var l=[],u=[];return(0,i.each)(n,(function(t,n){l.push(t),u.push(e[t.get("elementId")])})),a(t,l,u,s.region,r.cfg)}})))]):[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate");if(t&&n){var a=n.getCenter(),o=n.getRadius();if(t.labelLine){var s=(0,i.get)(t,"labelLine",{}),u=t.id,c=s.path;if(!c){var f=(0,l.polarToCartesian)(a.x,a.y,o,t.angle);c=[["M",f.x,f.y],["L",t.x,t.y]]}var h=e[u];h.destroyed||h.addShape("path",{capture:!1,attrs:r.__assign({path:c,stroke:t.color?t.color:(0,i.get)(t,["style","fill"],"#000"),fill:null},s.style),id:u,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate"),a=(0,i.get)(t,"background");if(a&&n){var o=t.id,l=e[o];if(!l.destroyed){var u=l.getChildren()[0];if(u){var c=(0,s.getLabelBackgroundInfo)(l,t,a.padding),f=c.rotation,h=r.__rest(c,["rotation"]),p=l.addShape("rect",{attrs:r.__assign(r.__assign({},h),a.style||{}),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),f){var d=u.getMatrix();p.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){(0,i.each)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var a=r.findAll((function(t){return"path"!==t.get("type")}));(0,i.each)(a,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateLabel=void 0;var r=n(1),i=n(36),a=n(13);e.updateLabel=function t(e,n,o){var s=o.data,l=o.origin,u=o.animateCfg,c=o.coordinate,f=(0,r.get)(u,"update");e.set("data",s),e.set("origin",l),e.set("animateCfg",u),e.set("coordinate",c),e.set("visible",n.get("visible")),e.getChildren().forEach((function(r,h){var p=n.getChildByIndex(h);if(p){r.set("data",s),r.set("origin",l),r.set("animateCfg",u),r.set("coordinate",c);var d=(0,a.getReplaceAttrs)(r,p);f?(0,i.doAnimate)(r,f,{toAttrs:d,coordinate:c}):r.attr(d),p.isGroup()&&t(r,p,o)}else e.removeChild(r),r.remove(!0)})),(0,r.each)(n.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var r=n(0),i="#000",a="#262626",o="#BFBFBF",s="#F0F0F0",l="#FFFFFF",u="#A6A6A6",c="#737373",f="#404040",h="#262626",p=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],d=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],g=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createDarkStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?p:e,y=t.paletteQualitative20,v=void 0===y?d:y,m=t.brandColor,_={backgroundColor:"#141414",brandColor:void 0===m?n[0]:m,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:v,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:g,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:f,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:u,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:a,axisTickLineBorderColor:f,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:h,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:h,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:p[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:u,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:c,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:c,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:u,legendPageNavigatorTextFontSize:12,sliderRailFillColor:h,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:c,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:s,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:h,annotationArcBorder:1,annotationLineBorderColor:f,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:u,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:l,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:f,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:u,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:u,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:i,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:u,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:i,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:f,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:p[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:i,pointBorderOpacity:1,pointActiveBorderColor:l,pointSelectedBorder:2,pointSelectedBorderColor:l,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:p[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:l,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:l,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:p[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:p[0],areaFillOpacity:.25,areaActiveFillColor:p[0],areaActiveFillOpacity:.5,areaSelectedFillColor:p[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:p[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:l,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:l,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:p[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:l,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:l,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:p[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:l,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:l,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},e.antvDark=(0,e.createDarkStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,l=a.y,u=a.r,c=i/2,f=(0,o.distance)(s,l,t,e);return r&&n?f<=u+c:r?f<=u:!!n&&(f>=u-c&&f<=u+c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0);function a(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=i/2,l=o.x,u=o.y,c=o.rx,f=o.ry,h=(t-l)*(t-l),p=(e-u)*(e-u);return r&&n?a(h,p,c+s,f+s)<=1:r?a(h,p,c,f)<=1:!!n&&(a(h,p,c-s,f-s)>=1&&a(h,p,c+s,f+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(r.__importDefault(n(26)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,o.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,h=e.img;(h instanceof Image||s(h))&&((0,o.isNil)(l)||(0,o.isNil)(u)||(0,o.isNil)(c)||(0,o.isNil)(f)?t.drawImage(h,n,r,i,a):t.drawImage(h,l,u,c,f,n,r,i,a))},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=r.__importDefault(n(26)),s=r.__importDefault(n(81)),l=r.__importStar(n(80)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&l.addStartArrow(this,t,r,i,e,n),o&&l.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,l=a.y1,u=a.x2,c=a.y2;return(0,s.default)(o,l,u,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(u=l.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=l.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(50),s=r.__importDefault(n(26)),l=n(15),u=n(63),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,a.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",u=this._getR(r);if((0,l.isFunction)(s))n=(t=s)(i,a,u),n=(0,o.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,u.drawPath)(this,t,{path:e},n)},e.Symbols=c,e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(1),s=r.__importDefault(n(26)),l=n(50),u=n(63),c=r.__importDefault(n(220)),f=r.__importDefault(n(221)),h=r.__importDefault(n(495)),p=r.__importStar(n(80));function d(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=i[n];if((0,o.isNil)(s)||(0,o.isNil)(n))return null;var l=s.length,u=i[n+1];return a.Cubic.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,s=0,l=[],u=this.get("curve");u&&((0,o.each)(u,(function(t,e){n=u[e+1],r=t.length,n&&(i+=a.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,o.each)(u,(function(o,c){n=u[c+1],r=o.length,n&&((t=[])[0]=s/i,e=a.Cubic.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/i,l.push(t))})),this.set("tCache",l)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(20),s=n(20),l=n(8),u=r.__importStar(n(91)),c=n(15),f=r.__importDefault(n(81)),h=r.__importDefault(n(222)),p=l.ext.transform;e.default=(0,i.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,l=e/2,d=0;dP?C:P,E=p(null,[["t",-b,-M],["r",-w],["s",1/(C>P?1:C/P),1/(C>P?P/C:1)]]);u.transformMat3(A,A,E),a=(0,h.default)(0,0,T,S,O,e,A[0],A[1])}if(a)break}}return a}},a.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=r.__importDefault(n(223)),s=r.__importDefault(n(221)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr().points,l=!1;return n&&(l=(0,o.default)(a,i,t,e,!0)),!l&&r&&(l=(0,s.default)(a,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,s.each)(t,(function(s,l){t[l+1]&&((n=[])[0]=i/e,r=a.Line.length(s[0],s[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(218),s=n(15),l=r.__importDefault(n(499)),u=r.__importDefault(n(500)),c=r.__importDefault(n(220)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=a.x,f=a.y,h=a.width,p=a.height,d=a.radius;if(d){var g=!1;return n&&(g=(0,u.default)(o,f,h,p,d,i,t,e)),!g&&r&&(g=(0,c.default)(this,t,e)),g}var y=i/2;return r&&n?(0,s.inBox)(o-y,f-y,h+y,p+y,t,e):r?(0,s.inBox)(o,f,h,p,t,e):n?(0,l.default)(o,f,h,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var l=(0,o.parseRadius)(s),u=l[0],c=l[1],f=l[2],h=l[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-f),0!==f&&t.arc(n+i-f,r+a-f,f,0,Math.PI/2),t.lineTo(n+h,r+a),0!==h&&t.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s){var l=a/2;return(0,r.inBox)(t-l,e-l,n,a,o,s)||(0,r.inBox)(t+n-l,e-l,a,i,o,s)||(0,r.inBox)(t+l,e+i-l,n,a,o,s)||(0,r.inBox)(t-l,e+l,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(81)),a=r.__importDefault(n(222));e.default=function(t,e,n,r,o,s,l,u){return(0,i.default)(t+o,e,t+n-o,e,s,l,u)||(0,i.default)(t+n,e+o,t+n,e+r-o,s,l,u)||(0,i.default)(t+n-o,e+r,t+o,e+r,s,l,u)||(0,i.default)(t,e+r-o,t,e+o,s,l,u)||(0,a.default)(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||(0,a.default)(t+n-o,e+r-o,o,0,.5*Math.PI,s,l,u)||(0,a.default)(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,l,u)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15),s=n(12),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,s.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,o.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,a=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),h=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,o.each)(e,(function(e,i){r=u+i*(f+c)-h+c,"middle"===a&&(r+=h-c-(h-c)/2),"top"===a&&(r+=h-c),(0,o.isNil)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;(0,o.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(503),s=r.__importStar(n(62)),l=r.__importDefault(n(120)),u=n(15),c=n(63),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return l.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,u.getPixelRatio)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?(0,o.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=(0,c.getMergedRegion)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=(0,c.mergeView)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,u.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),(0,c.applyAttrsToContext)(t,this),(0,c.drawChildren)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),(0,c.applyAttrsToContext)(t,this),(0,c.checkRefresh)(this,n,r),(0,c.drawChildren)(t,n,r),t.restore()):e.length&&(0,c.clearChanged)(e),(0,u.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,u.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(a.AbstractCanvas);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(12);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=(0,r.invert)(e);return(0,r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())o=t(u,n,r);else if(a(u,n,r)){var c=u,f=i(u,n,r),h=f[0],p=f[1];c.isInShape(h,p)&&(o=u)}if(o)break}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=r.__importStar(n(82));e.Shape=i,r.__exportStar(n(12),e);var a=n(518);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(122);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,a.each)(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,a.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(1),s=n(16),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=(0,o.isObject)(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else r.removeAttribute(s.SVG_ATTR_MAP[i]);else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(r.__importDefault(n(22)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(22)),s=r.__importDefault(n(511)),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,a.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,a.isFunction)(o)?o:s.default.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(e,s){if("path"===s&&(0,a.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var l=(0,a.isObject)(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+l+")")}else i.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&i.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(20),s=n(1),l=n(16),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,s.each)(e||n,(function(t,e){"points"===e&&(0,s.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.SVG_ATTR_MAP[e]&&r.setAttribute(l.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,a=[];(0,s.each)(t,(function(s,l){t[l+1]&&((n=[])[0]=i/e,r=o.Line.length(s[0],s[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r.__importDefault(n(22)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(22)),s=n(16),l=n(516),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,l=["x","y","width","height","radius"];(0,a.each)(e||r,(function(t,e){-1===l.indexOf(e)||o?-1===l.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=(0,l.parseRadius)(o);return(0,a.isArray)(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],(0,r.isArray)(t)?t:(0,r.isString)(t)?(t=t.match(i),(0,r.each)(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,r.each)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(158),s=n(64),l=n(16),u=r.__importDefault(n(22)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,a.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(n):l.SVG_ATTR_MAP[e]&&i.setAttribute(l.SVG_ATTR_MAP[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",f[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",h[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?u+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(u.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(16),s=n(121),l=n(64),u=n(27),c=r.__importStar(n(82)),f=r.__importDefault(n(122)),h=r.__importDefault(n(519)),p=function(t){function e(e){return t.call(this,(0,i.__assign)((0,i.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,i.__extends)(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=(0,u.createSVGElement)("svg"),e=new h.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&(0,u.sortDom)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?(0,l.setTransform)(this):"clip"===t?(0,l.setClip)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();(0,l.setClip)(this,t),e.length&&(0,s.drawChildren)(t,e)},e}(a.AbstractCanvas);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(520)),o=r.__importDefault(n(521)),s=r.__importDefault(n(522)),l=r.__importDefault(n(523)),u=r.__importDefault(n(524)),c=n(27),f=function(){function t(t){var e=(0,c.createSVGElement)("defs"),n=(0,i.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i'})),n}var u=function(){function t(t){this.cfg={};var e=null,n=(0,r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,o=a.exec(t),s=(0,r.mod)((0,r.toRadian)(parseFloat(o[1])),2*Math.PI),u=o[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t,e){this.cfg={};var n=(0,i.createSVGElement)("marker"),a=(0,r.uniqueId)("marker_");n.setAttribute("id",a);var o=(0,i.createSVGElement)("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;(0,r.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,r.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=(0,i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=(0,i.createSVGElement)("image");e.appendChild(n);var o=(0,r.uniqueId)("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(123));n(526);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=o,n.showSinglePoint=l,n}return r.__extends(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;rr&&(r=i),i=e[0]})));var g=this.scales[p];try{for(var y=r.__values(t),v=y.next();!v.done;v=y.next()){var m=v.value,_=this.getDrawCfg(m),x=_.x,b=_.y,M=g.scale(m[o.FIELD_ORIGIN][p]);this.drawGrayScaleBlurredCircle(x-u.x,b-c.y,n+i,M,d)}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}var C=d.getImageData(0,0,f,h);this.clearShadowCanvasCtx(),this.colorize(C),d.putImageData(C,0,0);var P=this.getImageShape();P.attr("x",u.x),P.attr("y",c.y),P.attr("width",f),P.attr("height",h),P.attr("img",d.canvas),P.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,o=3;o0&&!(0,i.get)(n,[r,"min"])&&e.change({min:0}),o<=0&&!(0,i.get)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(116),o=n(6),s=n(65),l=(0,i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return(0,s.getRectPoints)(t)}});(0,i.registerShape)("interval","rect",{draw:function(t,e){var n,i=(0,o.getStyle)(t,!1,!0),l=e,u=null==t?void 0:t.background;if(u){l=e.addGroup();var c=(0,o.getBackgroundRectStyle)(t),f=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);l.addShape("path",{attrs:r.__assign(r.__assign({},c),{path:f}),zIndex:-1,name:a.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?(0,s.getRectWithCornerRadius)(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath((0,s.getIntervalRectPath)(t.points,i.lineCap,this.coordinate));var h=l.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:n}),name:"interval"});return u?l:h},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(123));n(118);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return r.__extends(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34));n(534);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return r.__assign(r.__assign({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(119),s=n(125),l=(0,a.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return(0,o.splitPoints)(t)}});(0,r.each)(s.SHAPES,(function(t){(0,a.registerShape)("point","hollow-".concat(t),{draw:function(e,n){return(0,s.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(34));n(536);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!(0,i.isArray)(a)||!(0,i.isArray)(o)){var s=this.getXScale(),l=this.getYScale(),u=.5/s.values.length,c=.5/l.values.length;s.isCategory&&l.isCategory?(a=[a-u,a-u,a+u,a+u],o=[o-c,o+c,o+c,o-c]):(0,i.isArray)(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):(0,i.isArray)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-u/2,a-u/2,a+u/2,a+u/2]),r.x=a,r.y=o}return r},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);var s=(0,a.registerShapeFactory)("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return(0,i.each)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});(0,a.registerShape)("polygon","polygon",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===u?n=function(t,e,n){var r=(0,s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(l[0],l[1],c):(a.fill=a.stroke,n=function(t,e){var n=(0,s.getQPath)(t[1],e),r=(0,s.getQPath)(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(l,c)),n=this.parsePath(n),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})}if("normal"===u)return l=this.parsePoints(l),n=(0,i.getArcPath)((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})});var f=(0,s.getCPath)(l[1],l[3]),h=(0,s.getCPath)(l[2],l[0]);return n=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],f,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],h,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(224);(0,i.registerShape)("edge","smooth",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=(0,o.getCPath)(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);(0,a.registerShape)("edge","vhv",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return(0,i.each)(n,(function(t){r.push(["L",t.x,t.y])})),r}(a[0],a[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);(0,i.registerShape)("interval","funnel",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(116),o=n(6),s=n(65);(0,i.registerShape)("interval","hollow-rect",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=e,l=null==t?void 0:t.background;if(l){i=e.addGroup();var u=(0,o.getBackgroundRectStyle)(t),c=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:r.__assign(r.__assign({},u),{path:c}),zIndex:-1,name:a.BACKGROUND_SHAPE})}var f=this.parsePath((0,s.getRectPath)(t.points)),h=i.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:f}),name:"interval"});return l?i:h},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6),s=n(65),l=n(25);(0,a.registerShape)("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,a=e.y0,(0,i.isArray)(r)?r.map((function(t,e){return{x:(0,i.isArray)(n)?n[e]:n,y:t}})):[{x:n,y:a},{x:n,y:r}];var e,n,r,a},draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),i=(0,l.omit)(r.__assign({},n),["fill"]),a=this.parsePath((0,s.getRectPath)(t.points,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);(0,i.registerShape)("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);(0,a.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,n,a,o=t.x,s=t.y,l=t.y0,u=t.size;(0,i.isArray)(s)?(n=(e=r.__read(s,2))[0],a=e[1]):(n=l,a=s);var c=o+u/2,f=o-u/2;return[{x:o,y:n},{x:o,y:a},{x:f,y:n},{x:c,y:n},{x:f,y:a},{x:c,y:a}]}(t)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(43),s=n(6),l=n(216);function u(t,e){var n=(0,o.getPathPoints)(t.points,t.connectNulls,t.showSinglePoint),a=[];return(0,i.each)(n,(function(t){var n=function(t,e){var n=[];return(0,i.each)(t,(function(r,i){var a=t[i+1];if(n.push(r),a){var o=function(t,e,n){var r,i=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":r=[{x:o,y:a}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var l=(o+i)/2;r=[{x:l,y:a},{x:l,y:s}];break;case"vhv":var u=(a+s)/2;r=[{x:i,y:u},{x:o,y:u}]}return r}(r,a,e);n=n.concat(o)}})),n}(t,e);a=a.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),r.__assign(r.__assign({},(0,s.getStyle)(t,!0,!1,"lineWidth")),{path:a})}(0,i.each)(["hv","vh","hvh","vhv"],(function(t){(0,a.registerShape)("line",t,{draw:function(e,n){var r=u(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return(0,l.getLineMarker)(e,t)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(125);(0,r.each)(o.HOLLOW_SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t],style:{r:4.5,stroke:n,fill:null}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6);(0,i.registerShape)("point","image",{draw:function(t,e){var n,i,o=(0,a.getStyle)(t,!1,!1,"r").r,s=this.parsePoints(t.points),l=s[0];if(t.isStack)l=s[1];else if(s.length>1){var u=e.addGroup();try{for(var c=r.__values(s),f=c.next();!f.done;f=c.next()){var h=f.value;u.addShape("image",{attrs:{x:h.x-o/2,y:h.y-o,width:o,height:o,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return u}return e.addShape("image",{attrs:{x:l.x-o/2,y:l.y-o,width:o,height:o,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(125);(0,r.each)(o.SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,fill:n}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t){var e=(0,i.isArray)(t)?t:[t],n=e[0],r=e[e.length-1],a=e.length>1?e[1]:n;return{min:n,max:r,min1:a,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:a}}function l(t,e,n){var r,a=n/2;if((0,i.isArray)(e)){var o=s(e),l=o.min,u=o.max,c=o.median,f=o.min1,h=t-a,p=t+a;r=[[h,u],[p,u],[t,u],[t,d=o.max1],[h,f],[h,d],[p,d],[p,f],[t,f],[t,l],[h,l],[p,l],[h,c],[p,c]]}else{e=(0,i.isNil)(e)?.5:e;var d,g=s(t),y=(l=g.min,u=g.max,c=g.median,e-a),v=e+a;r=[[l,y],[l,v],[l,e],[f=g.min1,e],[f,y],[f,v],[d=g.max1,v],[d,y],[d,e],[u,e],[u,y],[u,v],[c,y],[c,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}(0,a.registerShape)("schema","box",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=l(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(25),o=n(3),s=n(6);function l(t,e,n){var r,o,s=(r=e,o=((0,i.isArray)(r)?r:[r]).sort((function(t,e){return e-t})),(0,a.padEnd)(o,4,o[o.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-n/2,y:s[2]},{x:t-n/2,y:s[1]},{x:t+n/2,y:s[1]},{x:t+n/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}(0,o.registerShape)("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,s.getStyle)(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=l(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),a=Math.min(n,r);return e&&(a=(0,i.clamp)(e,0,Math.min(n,r))),a/=2,{x:(t[0].x+t[2].x)/2-a,y:(t[0].y+t[2].y)/2-a,width:2*a,height:2*a}}(0,a.registerShape)("polygon","square",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:r.__assign(r.__assign({},n),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(43),o=n(6);(0,i.registerShape)("violin","smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!0),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(43),o=n(6);(0,i.registerShape)("violin","hollow",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),(0,i.registerShape)("violin","hollow-smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,a){var o,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),l=this.getCoordinate(),u=l.isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return s=r.__assign(r.__assign({},s),((o={})[u]=s[u]*c,o)),l.isReflect("x")&&(s=r.__assign(r.__assign({},s),{x:-1*s.x})),l.isReflect("y")&&(s=r.__assign(r.__assign({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return(0,i.deepMix)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var a,o,s,l,u=this.getCoordinate(),c=u.isTransposed,f=e.points,h=u.convert(f[0]),p=u.convert(f[2]),d=this.getLabelValueDir(e),g=(0,i.isArray)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var y=(0,i.get)(e,"nextPoints"),v=(0,i.get)(e,"points");if(y){var m=u.convert(v[0]),_=u.convert(v[1]),x=u.convert(y[0]),b=u.convert(y[1]);c?(a=Math.min(x.y,m.y),s=Math.max(x.y,m.y),o=(_.x+b.x)/2,l=(m.x+x.x)/2):(a=Math.min((_.y+b.y)/2,(m.y+x.y)/2),s=Math.max((_.y+b.y)/2,(m.y+x.y)/2),o=b.x,l=m.x)}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.x}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.x;switch(r){case"right":t.x=o,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"left":t.x=l,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"bottom":c&&(t.x=(o+l)/2),t.y=s,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":c&&(t.x=(o+l)/2),t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline","middle");break;case"top":c&&(t.x=(o+l)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top")}},e}(r.__importDefault(n(79)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=n(13),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r.__extends(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,i.deepMix)({},r,(0,i.get)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:(0,i.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:(0,i.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},s=(0,a.getAngleByPoint)(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var l=(0,a.getAngleByPoint)(n,o);s>=l&&(l+=2*Math.PI),e=s+(l-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),a=n.getRadius()+e;return r.__assign(r.__assign({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}(r.__importDefault(n(225)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(0),i=n(1),a=n(13);e.distribute=function(t,e,n,o){if(t.length&&e.length){var s=t[0]?t[0].offset:0,l=e[0].get("coordinate"),u=l.getRadius(),c=l.getCenter();if(s>0){var f=2*(u+s)+28,h={start:l.start,end:l.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var a=f/14;t.length>a&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(a,t.length-a)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,a,o,s){var l,u,c,f=!0,h=a.start,p=a.end,d=Math.min(h.y,p.y),g=Math.abs(h.y-p.y),y=0,v=Number.MIN_VALUE,m=e.map((function(t){return t.y>y&&(y=t.y),t.yg&&(g=y-d);f;)for(m.forEach((function(t){var e=(Math.min.apply(v,t.targets)+Math.max.apply(v,t.targets))/2;t.pos=Math.min(Math.max(v,e-t.size/2),g-t.size)})),f=!1,c=m.length;c--;)if(c>0){var _=m[c-1],x=m[c];_.pos+_.size>x.pos&&(_.size+=x.size,_.targets=_.targets.concat(x.targets),_.pos+_.size>g&&(_.pos=g-_.size),m.splice(c,1),f=!0)}c=0,m.forEach((function(t){var r=d+n/2;t.targets.forEach((function(){e[c].y=t.pos+r,r+=n,c++}))}));var b={};try{for(var M=r.__values(t),C=M.next();!C.done;C=M.next()){var P=C.value;b[P.get("id")]=P}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=M.return)&&u.call(M)}finally{if(l)throw l.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-o.y),2);if(en&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e+1>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,S)})),(0,i.each)(x,(function(t,e){(0,i.each)(t,(function(t){var n="right"===e,r=d[t.id].getChildByIndex(0);if(r){var o=p+_,s=t.y-h.y,l=Math.pow(o,2),u=Math.pow(s,2),c=l-u>0?l-u:0,g=Math.sqrt(c),y=Math.abs(Math.cos(t.angle)*o);t.x=n?h.x+Math.max(g,y):h.x-Math.max(g,y)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,l=(0,a.polarToCartesian)(n.x,n.y,r,o),u=t.x+(0,i.get)(t,"offsetX",0)*(Math.cos(o)>0?1:-1),c=t.y+(0,i.get)(t,"offsetY",0)*(Math.sin(o)>0?1:-1),f={x:u-4*Math.cos(o),y:c-4*Math.sin(o)},h=t.labelLine.smooth,p=[],d=f.x-n.x,g=f.y-n.y,y=Math.atan(g/d);if(d<0&&(y+=Math.PI),!1===h){(0,i.isObject)(t.labelLine)||(t.labelLine={});var v=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&f.y>l.y&&(v=1),o>=0&&ol.y&&(v=1),o>=Math.PI/2&&of.y&&(v=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&l.y>f.y&&(v=1);var m=s/2>4?4:Math.max(s/2-1,0),_=(0,a.polarToCartesian)(n.x,n.y,r+m,o),x=(0,a.polarToCartesian)(n.x,n.y,r+s/2,y);p.push("M ".concat(l.x," ").concat(l.y)),p.push("L ".concat(_.x," ").concat(_.y)),p.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(v," ").concat(x.x," ").concat(x.y)),p.push("L ".concat(f.x," ").concat(f.y))}else{_=(0,a.polarToCartesian)(n.x,n.y,r+(s/2>4?4:Math.max(s/2-1,0)),o);var b=l.xMath.pow(Math.E,-16)&&p.push.apply(p,["C",f.x+4*b,f.y,2*_.x-l.x,2*_.y-l.y,l.x,l.y]),p.push("L ".concat(l.x," ").concat(l.y))}t.labelLine.path=p.join(" ")}}(t,f)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(0),i=n(1),a=n(13),o=n(226),s=n(54);e.pieSpiderLabelLayout=function(t,e,n,l){var u,c,f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=r.__values(e),y=g.next();!y.done;y=g.next()){var v=y.value;d[v.get("id")]=v}}catch(t){u={error:t}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(u)throw u.error}}var m=(0,i.get)(t[0],"labelHeight",14),_=Math.max((0,i.get)(t[0],"offset",0),4);(0,i.each)(t,(function(t){if(t&&(0,i.get)(d,[t.id])){var e=t.x>h.x||t.x===h.x&&t.y>h.y,n=(0,i.isNil)(t.offsetX)?4:t.offsetX,r=(0,a.polarToCartesian)(h.x,h.y,p+4,t.angle),o=_+n;t.x=h.x+(e?1:-1)*(p+o),t.y=r.y}}));var x=f.start,b=f.end,M=(0,i.groupBy)(t,(function(t){return t.xC&&(C=Math.min(e,Math.abs(x.y-b.y)))}));var P={minX:x.x,maxX:b.x,minY:h.y-C/2,maxY:h.y+C/2};(0,i.each)(M,(function(t,e){var n=C/m;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,P)}));var S=P.minY,O=P.maxY;(0,i.each)(M,(function(t,e){var n="right"===e;(0,i.each)(t,(function(t){var e=(0,i.get)(d,t&&[t.id]);if(e)if(t.yO)e.set("visible",!1);else{var r=e.getChildByIndex(0),o=r.getCanvasBBox(),l=n?o.x:o.maxX,u=o.y+o.height/2;(0,s.translate)(r,t.x-l,t.y-u),t.labelLine&&function(t,e,n){var r,o=e.getCenter(),s=e.getRadius(),l={x:t.x-(n?4:-4),y:t.y},u=(0,a.polarToCartesian)(o.x,o.y,s+4,t.angle),c={x:l.x,y:l.y},f={x:u.x,y:u.y},h=(0,a.polarToCartesian)(o.x,o.y,s,t.angle);if(l.y!==u.y){var p=n?4:-4;c.y=l.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(u.x,l.x-p),l.y0&&t.angleu.y?f.y=c.y:(f.y=u.y,f.x=Math.max(f.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.y>u.y?f.y=c.y:(f.y=u.y,f.x=Math.min(f.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.yr?y=r-d:c>r&&(y-=c-r),u>o?v=o-g:f>o&&(v-=f-o),y===h&&v===p||(0,i.translate)(t,y-h,v-p)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(1);e.limitInShape=function(t,e,n,i){(0,r.each)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minXi.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var r=n(1),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var l=a;l<=o;l++)if(n[s][l]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,n,r){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}e.fixedOverlap=function(t,e,n,a){var o=new i;(0,r.each)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),a=i.x,o=i.y,s=t.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,f=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var h,p,d=!1,g=0,y={};Math.min(Math.abs(c),Math.abs(f))4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function a(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function o(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[a(e[0],n,e[0]),a(e[1],n,e[0]),a(e[2],n,e[0]),a(e[3],n,e[0])]:e}function s(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,r.__spreadArray([],r.__read(n),!1)),max:Math.max.apply(Math,r.__spreadArray([],r.__read(n),!1))}}function l(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height=s.height:l.width>=s.width}(t,e,o)}))}e.intervalAdjustPosition=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type)a(l,e,n)&&n.forEach((function(t,n){var a=e[n];!function(t,e,n){var a=t.coordinate,o=r.BBox.fromObject(n.getBBox()),s=(0,i.findLabelTextShape)(e);a.isTransposed?s.attr({x:o.minX+o.width/2,textAlign:"center"}):s.attr({y:o.minY+o.height/2,textBaseline:"middle"})}(l,a,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(0),i=n(1),a=n(53);e.intervalHideOverlap=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type){var u,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return(0,i.each)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),f=r.__read(l.getXYFields(),1)[0],h=[],p=[],d=(0,i.groupBy)(c,(function(t){return t.get("data")[f]})),g=(0,i.uniq)((0,i.map)(c,(function(t){return t.get("data")[f]})));c.forEach((function(t){t.set("visible",!0)}));var y=function(t){t&&(t.length&&p.push(t.pop()),p.push.apply(p,r.__spreadArray([],r.__read(t),!1)))};for((0,i.size)(g)>0&&(u=g.shift(),y(d[u])),(0,i.size)(g)>0&&(u=g.pop(),y(d[u])),(0,i.each)(g.reverse(),(function(t){y(d[t])}));p.length>0;){var v=p.shift();v.get("visible")&&((0,a.checkShapeOverlap)(v,h)?v.set("visible",!1):h.push(v))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pointAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&"point"===p.type){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pathAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&!(["path","line","area"].indexOf(p.type)<0)){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(1),i=n(14),a=n(580),o=n(54);e.limitInPlot=function(t,e,n,s,l){if(!(e.length<=0)){var u=(null==l?void 0:l.direction)||["top","right","bottom","left"],c=(null==l?void 0:l.action)||"translate",f=(null==l?void 0:l.margin)||0,h=e[0].get("coordinate");if(h){var p=(0,i.getCoordinateBBox)(h,f),d=p.minX,g=p.minY,y=p.maxX,v=p.maxY;(0,r.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,l=e.maxY,f=e.x,h=e.y,p=e.width,m=e.height,_=f,x=h;if(u.indexOf("left")>=0&&(n=0&&(i=0&&(n>y?_=y-p:s>y&&(_-=s-y)),u.indexOf("bottom")>=0&&(i>v?x=v-m:l>v&&(x-=l-v)),_!==f||x!==h){var b=_-f;if("translate"===c)(0,o.translate)(t,b,x-h);else if("ellipsis"===c){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=(0,r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=(0,a.getEllipsisText)(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(0),i=n(1),a=n(581);e.measureTextWidth=(0,i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,s=e.fontStyle,l=e.fontVariant,u=(0,a.getCanvasContext)();return u.font=[s,l,o,"".concat(n,"px"),r].join(" "),u.measureText((0,i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),r.__spreadArray([t],r.__read((0,i.values)(e)),!1).join("")}));e.getEllipsisText=function(t,n,r){var a,o=(0,e.measureTextWidth)("...",r);a=(0,i.isString)(t)?t:(0,i.toString)(t);var s,l,u=n,c=[];if((0,e.measureTextWidth)(t,r)<=n)return t;for(;s=a.substr(0,16),!((l=(0,e.measureTextWidth)(s,r))+o>u&&l>u);)if(c.push(s),u-=l,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((l=(0,e.measureTextWidth)(s,r))+o>u);)if(c.push(s),u-=l,!(a=a.substr(1)))return c.join("");return"".concat(c.join(""),"...")}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOut=e.fadeIn=void 0;var r=n(1);e.fadeIn=function(t,e,n){var i={fillOpacity:(0,r.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,r.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,r.isNil)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)},e.fadeOut=function(t,e,n){var r=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(584);e.growInX=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"x")},e.growInY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(0),i=n(8);function a(t,e,n){var a,o=r.__read(e,2),s=o[0],l=o[1];return t.applyToMatrix([s,l,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),a}e.transformShape=a,e.doScaleAnimate=function(t,e,n,r,i){var o,s,l=n.start,u=n.end,c=n.getWidth(),f=n.getHeight();"y"===i?(o=l.x+c/2,s=r.yl.x?r.x:l.x,s=l.y+f/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(l.x+u.x)/2,s=(l.y+u.y)/2));var h=a(t,[o,s],i);t.animate({matrix:h},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathIn=void 0,e.pathIn=function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleInY=e.scaleInX=void 0;var r=n(8);e.scaleInX=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var l=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,.01],["t",o,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,100],["t",o,l]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=void 0;var r=n(0),i=n(217),a=n(1),o=n(13);function s(t,e){var n,o=(0,i.getArcParams)(t,e),s=o.startAngle,l=o.endAngle;return!(0,a.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),!(0,a.isNumberEqual)(l,.5*-Math.PI)&&l<.5*-Math.PI&&(l+=2*Math.PI),0===e[5]&&(s=(n=r.__read([l,s],2))[0],l=n[1]),(0,a.isNumberEqual)(s,1.5*Math.PI)&&(s=-.5*Math.PI),(0,a.isNumberEqual)(l,-.5*Math.PI)&&(l=1.5*Math.PI),{startAngle:s,endAngle:l}}function l(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function u(t){var e,n,i,o=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===o.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var u=o[0],c=o.length>1?o[1]:o[0],f=t.indexOf(u),h=t.indexOf(c),p=l(t[f-1]),d=l(t[h-1]),g=s(p,u),y=g.startAngle,v=g.endAngle,m=s(d,c),_=m.startAngle,x=m.endAngle;(0,a.isNumberEqual)(y,_)&&(0,a.isNumberEqual)(v,x)?(n=y,i=v):(n=Math.min(y,_),i=Math.max(v,x));var b=u[1],M=o[o.length-1][1];return b=0;s--){var l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,r.__values(l)),c=u.next();!c.done;c=u.next()){var f=c.value;this.isLeaf(f)||(f.originColIndex=f.columnIndex,f.columnIndex=this.getRegionIndex(f.children),f.columnValuesLength=a.length)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length=n){var i=r.parsePosition([t[l],t[s.field]]);i&&h.push(i)}if(t[l]===f)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:r.getWidth()*e+o,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this,s=this.view.getCoordinate(),u=this.view.getCanvas(),c={};if((0,i.isNil)(e))return null;var f=e.start,h=e.end,p=e.position,d=this.parsePosition(f),g=this.parsePosition(h),y=this.parsePosition(p);if(!(!["arc","image","line","region","regionFilter"].includes(t)||d&&g))return null;if(["text","dataMarker","html"].includes(t)&&!y)return null;if("arc"===t){var v=e,m=(v.start,v.end,r.__rest(v,["start","end"])),_=(0,l.getAngleByPoint)(s,d),x=(0,l.getAngleByPoint)(s,g);_>x&&(x=2*Math.PI+x),c=r.__assign(r.__assign({},m),{center:s.getCenter(),radius:(0,l.getDistanceToCenter)(s,d),startAngle:_,endAngle:x})}else if("image"===t){var b=e;b.start,b.end,m=r.__rest(b,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,src:e.src})}else if("line"===t){var M=e;M.start,M.end,m=r.__rest(M,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,text:(0,i.get)(e,"text",null)})}else if("region"===t){var C=e;C.start,C.end,m=r.__rest(C,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g})}else if("text"===t){var P=this.view.getData(),S=e,O=(S.position,S.content),w=(m=r.__rest(S,["position","content"]),O);(0,i.isFunction)(O)&&(w=O(P)),c=r.__assign(r.__assign(r.__assign({},y),m),{content:w})}else if("dataMarker"===t){var A=e,T=(A.position,A.point),E=A.line,I=A.text,L=A.autoAdjust,D=A.direction;m=r.__rest(A,["position","point","line","text","autoAdjust","direction"]);c=r.__assign(r.__assign(r.__assign({},m),y),{coordinateBBox:this.getCoordinateBBox(),point:T,line:E,text:I,autoAdjust:L,direction:D})}else if("dataRegion"===t){var B=e,j=B.start,R=B.end,k=B.region,F=(I=B.text,B.lineLength);m=r.__rest(B,["start","end","region","text","lineLength"]);c=r.__assign(r.__assign({},m),{points:this.getRegionPoints(j,R),region:k,text:I,lineLength:F})}else if("regionFilter"===t){var N=e,G=(N.start,N.end,N.apply),Y=N.color,V=(m=r.__rest(N,["start","end","apply","color"]),this.view.geometries),H=[],z=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):H.push(e))};(0,i.each)(V,(function(t){G?(0,i.contains)(G,t.type)&&(0,i.each)(t.elements,(function(t){z(t.shape)})):(0,i.each)(t.elements,(function(t){z(t.shape)}))})),c=r.__assign(r.__assign({},m),{color:Y,shapes:H,start:d,end:g})}else if("shape"===t){var X=e,W=X.render,q=r.__rest(X,["render"]);c=r.__assign(r.__assign({},q),{render:function(t){if((0,i.isFunction)(e.render))return W(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var U=e,Z=U.html;U.position,q=r.__rest(U,["html","position"]);c=r.__assign(r.__assign(r.__assign({},q),y),{parent:u.get("el").parentNode,html:function(t){return(0,i.isFunction)(Z)?Z(t,a.view):Z}})}var Q=(0,i.deepMix)({},n,r.__assign(r.__assign({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Q.container=this.getComponentContainer(Q)),Q.animate=this.view.getOptions().animate&&Q.animate&&(0,i.get)(e,"animate",Q.animate),Q.animateOption=(0,i.deepMix)({},o.DEFAULT_ANIMATE_CFG,Q.animateOption,e.animateOption),Q},e.prototype.isTop=function(t){return(0,i.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,i.get)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&(0,u.omit)(o,["container"]),e.component.update(r.__assign(r.__assign({},o||{}),{visible:!!o})),(0,i.includes)(h,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),(0,i.includes)(h,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){(0,i.find)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(f.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedValue=void 0;var r=n(599);e.getNormalizedValue=function(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?(0,r.getMedian)(e.values.map((function(t,e){return e}))):(0,r.getMedian)(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(0,r.getMean)(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMean=e.getMedian=void 0;var r=n(0),i=n(1);e.getMedian=function(t){var e=r.__spreadArray([],r.__read(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},e.getMean=function(t){var e=(0,i.reduce)(t,(function(t,e){return t+(isNaN(e)||!(0,i.isNumber)(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(36),l=n(90),u=n(90),c=n(601),f=n(25),h=n(42),p=["container"],d=r.__assign(r.__assign({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();(0,i.each)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,u=n.extra,f=u.dim,h=u.scale,p=u.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===f?r=e.isTransposed?(0,l.getAxisRegion)(e,o):(0,l.getCircleAxisCenterRadius)(e):"y"===f&&(r=e.isTransposed?(0,l.getCircleAxisCenterRadius)(e):(0,l.getAxisRegion)(e,o)):r=(0,l.getAxisRegion)(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===f?(0,c.getCircleGridItems)(e,t.view.getYScales()[0],h,p,f):(0,c.getLineGridItems)(e,h,f,p):"x"===f?(0,c.getLineGridItems)(e,h,f,p):(0,c.getCircleGridItems)(e,t.view.getXScale(),h,p,f),center:t.view.getCoordinate().getCenter()}}else r={items:(0,c.getLineGridItems)(e,h,f,p)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=(0,u.getAxisOption)(this.option,e.field);if(!1!==n){var r=(0,l.getAxisDirection)(n,a.DIRECTION.BOTTOM),o=a.LAYER.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),h=this.getId("grid",e.field);if(s.isRect){if(g=this.cache.get(c)){var d=this.getLineAxisCfg(e,n,r);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else g=this.createLineAxis(e,n,o,r,"x"),this.cache.set(c,g),t.set(c,g);if(y=this.cache.get(h)){d=this.getLineGridCfg(e,n,r,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,y)}else(y=this.createLineGrid(e,n,o,r,"x"))&&(this.cache.set(h,y),t.set(h,y))}else if(s.isPolar){var g,y;if(g=this.cache.get(c)){d=s.isTransposed?this.getLineAxisCfg(e,n,a.DIRECTION.RADIUS):this.getCircleAxisCfg(e,n,r);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;g=this.createLineAxis(e,n,o,a.DIRECTION.RADIUS,"x")}else g=this.createCircleAxis(e,n,o,r,"x");this.cache.set(c,g),t.set(c,g)}if(y=this.cache.get(h)){d=s.isTransposed?this.getCircleGridCfg(e,n,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,a.DIRECTION.CIRCLE,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,y)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;y=this.createCircleGrid(e,n,o,a.DIRECTION.RADIUS,"x")}else y=this.createLineGrid(e,n,o,a.DIRECTION.CIRCLE,"x");y&&(this.cache.set(h,y),t.set(h,y))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();(0,i.each)(n,(function(n,r){if(n&&!n.isIdentity){var o=n.field,s=(0,u.getAxisOption)(e.option,o);if(!1!==s){var c=a.LAYER.BG,h=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var y=(0,l.getAxisDirection)(s,0===r?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(h)){var v=e.getLineAxisCfg(n,s,y);(0,f.omit)(v,p),m.component.update(v),t.set(h,m)}else m=e.createLineAxis(n,s,c,y,"y"),e.cache.set(h,m),t.set(h,m);if(_=e.cache.get(d)){v=e.getLineGridCfg(n,s,y,"y");(0,f.omit)(v,p),_.component.update(v),t.set(d,_)}else(_=e.createLineGrid(n,s,c,y,"y"))&&(e.cache.set(d,_),t.set(d,_))}else if(g.isPolar){var m,_;if(m=e.cache.get(h)){v=g.isTransposed?e.getCircleAxisCfg(n,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(n,s,a.DIRECTION.RADIUS);(0,f.omit)(v,p),m.component.update(v),t.set(h,m)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;m=e.createCircleAxis(n,s,c,a.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(n,s,c,a.DIRECTION.RADIUS,"y");e.cache.set(h,m),t.set(h,m)}if(_=e.cache.get(d)){v=g.isTransposed?e.getLineGridCfg(n,s,a.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(n,s,a.DIRECTION.RADIUS,"y");(0,f.omit)(v,p),_.component.update(v),t.set(d,_)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;_=e.createLineGrid(n,s,c,a.DIRECTION.CIRCLE,"y")}else _=e.createCircleGrid(n,s,c,a.DIRECTION.RADIUS,"y");_&&(e.cache.set(d,_),t.set(d,_))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===a.DIRECTION.RADIUS?a.DIRECTION.NONE:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,s){var l=this.getLineGridCfg(t,e,r,s);if(l){var u={component:new o.LineGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.createCircleAxis=function(t,e,n,r,i){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,n,r,s){var l=this.getCircleGridCfg(t,e,r,s);if(l){var u={component:new o.CircleGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.getLineAxisCfg=function(t,e,n){var a=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=(0,l.getAxisRegion)(o,n),u=(0,l.getAxisTitleText)(t,e),c=(0,l.getAxisThemeCfg)(this.view.getTheme(),n),f=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:u}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,h=(0,i.deepMix)(r.__assign(r.__assign({container:a},s),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*(0,l.getAxisFactorByRegion)(s,o.getCenter()):(0,l.getAxisFactorByRegion)(s,o.getCenter()),theme:c}),c,f),p=this.getAnimateCfg(h),d=p.animate,g=p.animateOption;h.animateOption=g,h.animate=d;var y=(0,l.isVertical)(s),v=(0,i.get)(h,"verticalLimitLength",y?1/3:.5);if(v<=1){var m=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");h.verticalLimitLength=v*(y?m:_)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var a=(0,c.getGridThemeCfg)(this.view.getTheme(),n),o=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer},a,(0,i.get)(e,"grid"),this.getAnimateCfg(e));return o.items=(0,c.getLineGridItems)(this.view.getCoordinate(),t,r,(0,i.get)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var o=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,s=this.view.getCoordinate(),u=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||u.pop();var c=(0,l.getAxisTitleText)(t,e),f=(0,l.getAxisThemeCfg)(this.view.getTheme(),a.DIRECTION.CIRCLE),h=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:c}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,p=(0,i.deepMix)(r.__assign(r.__assign({container:o},(0,l.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:u,verticalFactor:1,theme:f}),f,h),d=this.getAnimateCfg(p),g=d.animate,y=d.animateOption;return p.animate=g,p.animateOption=y,p},e.prototype.getCircleGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var o=(0,c.getGridThemeCfg)(this.view.getTheme(),a.DIRECTION.RADIUS),s=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,i.get)(e,"grid"),this.getAnimateCfg(e)),u=(0,i.get)(s,"alignTick",!0),f="x"===r?this.view.getYScales()[0]:this.view.getXScale();return s.items=(0,c.getCircleGridItems)(this.view.getCoordinate(),f,t,u,r),s}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,i.get)(t,"animate"),animateOption:t&&t.animateOption?(0,i.deepMix)({},d,t.animateOption):d}},e}(h.Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(1);e.getGridThemeCfg=function(t,e){var n=(0,r.deepMix)({},(0,r.get)(t,["components","axis","common"]),(0,r.get)(t,["components","axis",e]));return(0,r.get)(n,["grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],l=n.getTicks();return l.reduce((function(e,n){var l=e?e.value:n.value,u=n.value,c=(l+u)/2;return"x"===a?s.push({points:[t.convert({x:i?u:c,y:0}),t.convert({x:i?u:c,y:1})]}):s.push({points:(0,r.map)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?u:c})}))}),n}),l[0]),s},e.showGrid=function(t,e){var n=(0,r.get)(e,"grid");if(null===n)return!1;var i=(0,r.get)(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(36),l=n(29),u=n(126),c=n(25),f=n(215),h=n(38);function p(t,e){return(0,i.isBoolean)(t)?!1!==t&&{}:(0,i.get)(t,[e],t)}function d(t){return(0,i.get)(t,"position",a.DIRECTION.BOTTOM)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,i.each)(this.components,(function(e){var n=e.component,i=e.direction,a=(0,f.getLegendLayout)(i),o=n.get("maxWidthRatio"),s=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(a,o,s),h=n.get("maxWidth"),p=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,h||0),maxHeight:Math.min(c.maxHeight,p||0)});var d=n.get("padding"),g=n.getLayoutBBox(),y=new l.BBox(g.x,g.y,g.width,g.height).expand(d),v=r.__read((0,u.directionToPosition)(t.view.viewBBox,y,i),2),m=v[0],_=v[1],x=r.__read((0,u.directionToPosition)(t.layoutBBox,y,i),2),b=x[0],M=x[1],C=0,P=0;i.startsWith("top")||i.startsWith("bottom")?(C=m,P=M):(C=b,P=_),n.setLocation({x:C+d[3],y:P+d[0]}),t.layoutBBox=t.layoutBBox.cut(y,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if((0,i.get)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,c.omit)(o,["container"]),r.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var l=a.LAYER.FORE,u=d(this.option);this.components.push({id:n,component:s,layer:l,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var l=void 0,u=p(t.option,a.field);!1!==u&&((0,i.get)(u,"custom")?l=t.getCategoryCfg(n,r,a,u,!0):a.isLinear?l=t.getContinuousCfg(n,r,a,u):a.isCategory&&(l=t.getCategoryCfg(n,r,a,u))),l&&((0,c.omit)(l,["container"]),s.direction=d(u),s.component.update(l),e[o]=!0)}else{var f=t.createFieldLegend(n,r,a);f&&(f.component.init(),t.components.push(f),e[o]=!0)}}));var f=[];(0,i.each)(this.getComponents(),(function(t){e[t.id]?f.push(t):t.component.destroy()})),this.components=f},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return(0,i.each)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};(0,i.each)(e,(function(e){var r=e.getGroupAttributes();(0,i.each)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=p(this.option,n.field),s=a.LAYER.FORE,l=d(o);if(!1!==o&&((0,i.get)(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new o.CategoryLegend(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,(0,c.omit)(r,["value"]));return new o.ContinuousLegend(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new o.CategoryLegend(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var a=n.getTicks(),o=(0,i.find)(a,(function(t){return 0===t.value})),l=(0,i.find)(a,(function(t){return 1===t.value})),u=a.map((function(t){var r=t.value,i=t.tickValue,a=e.mapping(n.invert(r)).join("");return{value:i,attrValue:a,color:a,scaleValue:r}}));o||u.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort((function(t,e){return t.value-e.value}));var c={min:(0,i.head)(u).value,max:(0,i.last)(u).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=u.map((function(t){return t.attrValue})));var p=this.container,g=d(r),y=(0,f.getLegendLayout)(g),v=(0,i.get)(r,"title");return v&&(v=(0,i.deepMix)({text:(0,h.getName)(n)},v)),c.container=p,c.layout=y,c.title=v,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,o){var l=this.container,u=(0,i.get)(r,"position",a.DIRECTION.BOTTOM),c=(0,f.getLegendThemeCfg)(this.view.getTheme(),u),p=(0,i.get)(c,["marker"]),d=(0,i.get)(r,"marker"),g=(0,f.getLegendLayout)(u),y=(0,i.get)(c,["pageNavigator"]),v=(0,i.get)(r,"pageNavigator"),m=o?(0,f.getCustomLegendItems)(p,d,r.items):(0,f.getLegendItems)(this.view,t,e,p,d),_=(0,i.get)(r,"title");_&&(_=(0,i.deepMix)({text:n?(0,h.getName)(n):""},_));var x=(0,i.get)(r,"maxWidthRatio"),b=(0,i.get)(r,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(g,x,b);M.container=l,M.layout=g,M.items=m,M.title=_,M.animateOption=s.DEFAULT_ANIMATE_CFG,M.pageNavigator=(0,i.deepMix)({},y,v);var C=this.mergeLegendCfg(M,r,u);C.reversed&&C.items.reverse();var P=(0,i.get)(C,"maxItemWidth");return P&&P<=1&&(C.maxItemWidth=this.view.viewBBox.width*P),C},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],a=(0,f.getLegendThemeCfg)(this.view.getTheme(),r);return(0,i.deepMix)({},a,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return(0,i.find)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=a.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===n&&(n=a.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(n(42).Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(29),l=n(126),u=n(25),c=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=i.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=r.__read(t,2),i=e[0],a=e[1];n.start=i,n.end=a,n.changeViewData(i,a)},n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n.onChangeFn=(0,i.throttle)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;(0,i.isNil)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!(0,i.isEmpty)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=r.__read(n,4),o=i[0],u=(i[1],i[2],i[3]),c=this.slider.component.getLayoutBBox(),f=new s.BBox(c.x,c.y,Math.min(c.width,e),c.height).expand(n),h=this.getMinMaxText(this.start,this.end),p=h.minText,d=h.maxText,g=r.__read((0,l.directionToPosition)(this.view.viewBBox,f,a.DIRECTION.BOTTOM),2),y=(g[0],g[1]),v=r.__read((0,l.directionToPosition)(this.view.coordinateBBox,f,a.DIRECTION.BOTTOM),2),m=v[0];v[1];this.slider.component.update(r.__assign(r.__assign({},this.getSliderCfg()),{x:m+u,y:y+o,width:this.width,start:this.start,end:this.end,minText:p,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(f,a.DIRECTION.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new o.Slider(r.__assign({container:this.container},t));return e.init(),{component:e,layer:a.LAYER.FORE,direction:a.DIRECTION.BOTTOM,type:a.COMPONENT_TYPE.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=r.__assign(r.__assign({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,i.isObject)(this.option)){var e=r.__assign({data:this.getData()},(0,i.get)(this.option,"trendCfg",{}));t=(0,i.deepMix)({},t,this.getThemeOptions(),this.option),t=r.__assign(r.__assign({},t),{trendCfg:e})}return t.start=(0,i.clamp)(Math.min((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t.end=(0,i.clamp)(Math.max((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=r.__read(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var i=n[0],a=i.field,o=i.ticks;return t.reduce((function(t,n){return n[a]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,i.get)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.valuesOfKey)(n,r.field);r.isLinear&&(a=a.sort());var o=a,s=(0,i.size)(n);if(!r||!s)return{};var l=(0,i.size)(o),u=Math.floor(t*(l-1)),c=Math.floor(e*(l-1)),f=(0,i.get)(o,[u]),h=(0,i.get)(o,[c]),p=this.getSliderCfg().formatter;return p&&(f=p(f,n[u],u),h=p(h,n[c],c)),{minText:f,maxText:h}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.size)(n);if(r&&a){var o=(0,i.valuesOfKey)(n,r.field),s=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,l=s,c=(0,i.size)(l),f=Math.floor(t*(c-1)),h=Math.floor(e*(c-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||(0,u.isBetween)(n,f,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(42).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(42),a=n(19),o=n(29),s=n(126),l=n(2),u=n(1),c=n(25),f=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=u.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,u.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(l.LAYER.FORE).addGroup(),n.onChangeFn=(0,u.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),a=new o.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),u=this.getScrollbarComponentCfg(),c=void 0,f=void 0;if(u.isHorizontal){var h=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.BOTTOM),2),p=(h[0],h[1]),d=r.__read((0,s.directionToPosition)(this.view.coordinateBBox,a,l.DIRECTION.BOTTOM),2),g=d[0];d[1];c=g,f=p}else{var y=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2),v=(y[0],p=y[1],r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2));g=v[0],v[1];c=g,f=p}c+=n[3],f+=n[0],this.trackLen?this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f})),this.view.viewBBox=this.view.viewBBox.cut(a,u.isHorizontal?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,u.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,u.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=r.__rest(n,["thumbHighlightColor"]);return{default:(0,u.deepMix)({},(0,u.get)(e,["default","style"],{}),a),hover:(0,u.deepMix)({},(0,u.get)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,u.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,i=r.__read(t,2),a=i[0],o=i[1],s="vertical"!==this.getValidScrollbarCfg().type,l=(0,u.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,h=s?f:f.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=h.indexOf(t);return!(e>-1)||(0,c.isBetween)(e,a,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new a.Scrollbar(r.__assign(r.__assign({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:l.LAYER.FORE,direction:t?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT,type:l.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?r.__assign(r.__assign({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):r.__assign({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=(0,u.valuesOfKey)(e,t.field);return(0,u.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,l=i.height,c=i.style,f="vertical"!==a,h=r.__read(o,4),p=h[0],d=h[1],g=h[2],y=h[3],v=f?{x:e.minX+y,y:n.maxY-l-g}:{x:n.maxX-s-d,y:e.minY+p},m=this.getStep(),_=this.getCnt(),x=f?e.width-y-d:e.height-p-g,b=Math.max(x*(0,u.clamp)(m/_,0,1),20);return r.__assign(r.__assign({},this.getThemeOptions()),{x:v.x,y:v.y,size:f?l:s,isHorizontal:f,trackLen:x,thumbLen:b,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,u.isObject)(this.option)&&(t=r.__assign(r.__assign({},t),this.option)),(0,u.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=r.__spreadArray([],r.__read(n),!1).reverse()),n},e}(i.Controller);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var r=n(0),i=n(1),a=n(78),o=n(13),s=r.__importDefault(n(11)),l={fill:"#CCD6EC",opacity:.3};function u(t,e,n){var o,s,l,u,c,f,h=(0,a.findItemsFromViewRecurisive)(t,e,n);if(h.length){h=(0,i.flatten)(h);try{for(var p=r.__values(h),d=p.next();!d.done;d=p.next()){var g=d.value;try{for(var y=(l=void 0,r.__values(g)),v=y.next();!v.done;v=y.next()){var m=v.value,_=m.mappingData,x=_.x,b=_.y;m.x=(0,i.isArray)(x)?x[x.length-1]:x,m.y=(0,i.isArray)(b)?b[b.length-1]:b}}catch(t){l={error:t}}finally{try{v&&!v.done&&(u=y.return)&&u.call(y)}finally{if(l)throw l.error}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}if(!1===n.shared&&h.length>1){var M=h[0],C=Math.abs(e.y-M[0].y);try{for(var P=r.__values(h),S=P.next();!S.done;S=P.next()){var O=S.value,w=Math.abs(e.y-O[0].y);w<=C&&(M=O,C=w)}}catch(t){c={error:t}}finally{try{S&&!S.done&&(f=P.return)&&f.call(P)}finally{if(c)throw c.error}}h=[M]}return(0,i.uniq)((0,i.flatten)(h))}return[]}e.getItemsOfView=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,a=e.getController("tooltip").getTooltipCfg(),s=u(e,{x:n.x,y:n.y},a);if(!(0,i.isEqual)(s,this.items)&&(this.items=s,s.length)){var c=e.getXScale().field,f=s[0].data[c],h=[],p=e.geometries;if((0,i.each)(p,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[c]===f}));h=h.concat(e)}})),h.length){var d=e.getCoordinate(),g=h[0].shape.getCanvasBBox(),y=h[0].shape.getCanvasBBox(),v=g;(0,i.each)(h,(function(t){var e=t.shape.getCanvasBBox();d.isTransposed?(e.minYy.maxY&&(y=e)):(e.minXy.maxX&&(y=e)),v.x=Math.min(e.minX,v.minX),v.y=Math.min(e.minY,v.minY),v.width=Math.max(e.maxX,v.maxX)-v.x,v.height=Math.max(e.maxY,v.maxY)-v.y}));var m=e.backgroundGroup,_=e.coordinateBBox,x=void 0;if(d.isRect){var b=e.getXScale(),M=t||{},C=M.appendRatio,P=M.appendWidth;(0,i.isNil)(P)&&(C=(0,i.isNil)(C)?b.isLinear?0:.25:C,P=d.isTransposed?C*y.height:C*g.width);var S=void 0,O=void 0,w=void 0,A=void 0;d.isTransposed?(S=_.minX,O=Math.min(y.minY,g.minY)-P,w=_.width,A=v.height+2*P):(S=Math.min(g.minX,y.minX)-P,O=_.minY,w=v.width+2*P,A=_.height),x=[["M",S,O],["L",S+w,O],["L",S+w,O+A],["L",S,O+A],["Z"]]}else{var T=(0,i.head)(h),E=(0,i.last)(h),I=(0,o.getAngle)(T.getModel(),d).startAngle,L=(0,o.getAngle)(E.getModel(),d).endAngle,D=d.getCenter(),B=d.getRadius(),j=d.innerRadius*B;x=(0,o.getSectorPath)(D.x,D.y,B,I,L,j)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var R=(0,i.get)(t,"style",l);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:r.__assign(r.__assign({},R),{path:x})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.showTooltip=function(t,e){var n=(0,a.getSilbings)(t);(0,i.each)(n,(function(n){var r=(0,a.getSiblingPoint)(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=(0,a.getSilbings)(t);(0,i.each)(e,(function(t){t.hideTooltip()}))},e}(r.__importDefault(n(227)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(41),o=r.__importDefault(n(11)),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,a={x:t.x,y:t.y};r&&(0,i.isEqual)(r,a)||this.showTooltip(a),this.timeStamp=n,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(r.__assign({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,o={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},l=e.getTheme(),u=(0,i.get)(l,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:r.__assign({},(0,i.deepMix)({},u,(t={},t[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(127)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(4),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r.__extends(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:r.__assign(r.__assign({},(0,o.deepMix)({},a,(0,o.isFunction)(i)?i(a,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=(0,a.getElementValue)(t,i.field);if(!this.cache[s]){var l=(0,a.getElementsByField)(r,i.field,s),u=this.linkGroup.addGroup();this.cache[s]=u;var c=l.length;(0,o.each)(l,(function(t,r){if(r=0}),e)},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=n(132),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,i.getElements)(n);(0,a.setHighlightBy)(r,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;(0,a.clearHighlight)(t)},e}(r.__importDefault(n(130)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(129)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(127)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(130)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(621),o=r.__importDefault(n(44)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var a=t.getItemsByState("active"),o=!0;(0,i.each)(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,i.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)(0,a.clearList)(t.list);else{var e=this.getAllowComponents();(0,i.each)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(1);e.clearList=function(t){var e=t.getItems();(0,r.each)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return r.__extends(e,t),e.prototype.unchecked=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(44)),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return r.__extends(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!(0,i.some)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,i.each)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(44)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.toggle=function(){var t,e,n,i,a,o,s,l,u=this.getTriggerListInfo();if(null==u?void 0:u.item){var c=u.list,f=u.item,h=c.getItems(),p=h.filter((function(t){return!c.hasState(t,"unchecked")})),d=h.filter((function(t){return c.hasState(t,"unchecked")})),g=p[0];if(h.length===p.length)try{for(var y=r.__values(h),v=y.next();!v.done;v=y.next()){var m=v.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=y.return)&&e.call(y)}finally{if(t)throw t.error}}else if(h.length-d.length==1)if(g.id===f.id)try{for(var _=r.__values(h),x=_.next();!x.done;x=_.next()){m=x.value;c.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(i=_.return)&&i.call(_)}finally{if(n)throw n.error}}else try{for(var b=r.__values(h),M=b.next();!M.done;M=b.next()){m=M.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){a={error:t}}finally{try{M&&!M.done&&(o=b.return)&&o.call(b)}finally{if(a)throw a.error}}else try{for(var C=r.__values(h),P=C.next();!P.done;P=C.next()){m=P.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){s={error:t}}finally{try{P&&!P.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}}},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(44)),a=n(1),o=n(41),s=n(19),l="legend-radio-tip",u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&(0,a.isEqual)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),a=i.x,o=i.y;this.tooltip.update(r.__assign(r.__assign({title:n.get("tip")},t),{x:t.x+a,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[o.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[o.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(l)&&document.body.removeChild(document.getElementById(l));var n=new s.HtmlTooltip({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:l});n.init(),n.setCapture(!1),this.tooltip=n},e}(i.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r.__extends(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,i.last)(this.points),n=0,r=0,o=0;if(t.length){var s=t[0];n=(0,a.distance)(s,e)/2,r=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:r,y:o,r:n}},e}(r.__importDefault(n(133)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1);function a(t){t.x=(0,i.clamp)(t.x,0,1),t.y=(0,i.clamp)(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,o=this.context.view.getCoordinate(),s=o.invert((0,i.head)(n)),l=o.invert((0,i.last)(n));return this.inPlot&&(a(s),a(l)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},e}(r.__importDefault(n(228)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return(0,i.getSpline)(t,!0)},e}(r.__importDefault(n(229)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(r.__importDefault(n(11)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&(0,i.each)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if((0,o.isList)(t)){if(i){var a=n.getItemsByState("unchecked"),s=(0,o.getScaleByField)(e,i),l=a.map((function(t){return t.name}));l.length?this.filterView(e,i,(function(t){var e=s.getText(t);return!l.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if((0,o.isSlider)(t)){var u=n.getValue(),c=r.__read(u,2),f=c[0],h=c[1];this.filterView(e,i,(function(t){return t>=f&&t<=h})),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(230)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=(0,o.getSilbings)(t);(0,i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=(0,o.getSilbings)(t);(0,i.each)(e,(function(t){t.render(!0)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context),e=this.context.view,n=(0,o.getElements)(e);if((0,o.isMask)(this.context)){var a=(0,o.getMaskedElements)(this.context,10);a&&(0,i.each)(n,(function(t){a.includes(t)?t.show():t.hide()}))}else if(t){var s=t.component,l=s.get("field");if((0,o.isList)(t)){if(l){var u=s.getItemsByState("unchecked"),c=(0,o.getScaleByField)(e,l),f=u.map((function(t){return t.name}));(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l),n=c.getText(e);f.indexOf(n)>=0?t.hide():t.show()}))}}else if((0,o.isSlider)(t)){var h=s.getValue(),p=r.__read(h,2),d=p[0],g=p[1];(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l);e>=d&&e<=g?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=(0,o.getElements)(this.context.view);(0,i.each)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r.__extends(e,t),e.prototype.filter=function(){(0,o.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=(0,o.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=(0,o.getSilbings)(t);(0,i.each)(s,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){var e=t.getModel().data;(0,o.isInRecords)(a,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=(0,o.getSilbings)(e);(0,i.each)(n,(function(e){var n=(0,o.getSiblingMaskElements)(t.context,e,10),r=(0,o.getElements)(e);n&&(0,i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=(0,o.getSilbings)(this.context.view);(0,i.each)(t,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){t.show()}))}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=n(113),s=r.__importDefault(n(11)),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return r.__extends(e,t),e.prototype.getButtonCfg=function(){return(0,a.deepMix)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:r.__assign({text:t.text},t.textStyle)}).getBBox(),i=(0,o.parsePadding)(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):(0,a.distance)(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(77),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if((0,o.distance)(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r.__extends(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,i.each)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(r),s=o.x-a.x,l=o.y-a.y,u=this.context.view,c=this.dims;(0,i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*l})})),u.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+l,max:o+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(r.__importDefault(n(231)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,i.each)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,l=n*a,u=o-l,c=s+l,f=(c-u)/a;c>u&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}(r.__importDefault(n(231)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(77);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var a=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),s=n.getXScale(),l=n.getOptions().data,u=(0,i.size)((0,i.valuesOfKey)(l,s.field)),c=(0,i.size)(s.values),f=o.getValue(),h=Math.floor((u-c)*f)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?a:-a),p=a/(u-c)/1e4,d=(0,i.clamp)(h/(u-c)+p,0,1);o.setValue(d)}},e}(a.Action);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(41),a=n(1),o=n(19),s=r.__importDefault(n(11)),l=n(4),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=(0,l.getDelegationObject)(t).axis.cfg.title,n=e.description,r=e.text,a=t.event,o=a.x,s=a.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n
    \n
    \n ').concat(r,'\n
    \n
    \n ').concat(n,"\n
    \n
    \n ")},x:o,y:s}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},s=new o.HtmlTooltip({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:r.__assign({},(0,a.deepMix)({},(t={},t[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"5px","line-height":"15px"},t[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","font-size":"14px","margin-bottom":"3px"},t[i.TOOLTIP_CSS_CONST.LIST_CLASS]={"word-break":"break-all",opacity:".5"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(s.default);e.default=u}])})); //# sourceMappingURL=g2.min.js.map