!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 r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=344)}([function(t,e,r){"use strict";function n(t){return(n="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.__classPrivateFieldIn=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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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 r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.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,r=1,n=arguments.length;r=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,r,s):a(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},e.__param=function(t,e){return function(r,n){e(r,n,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,r,n){return new(r||(r=Promise))((function(i,a){function o(t){try{u(n.next(t))}catch(t){a(t)}}function s(t){try{u(n.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,s)}u((n=n.apply(t,e||[])).next())}))},e.__generator=function(t,e){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=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++,n=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||u(t,e)}))})}function u(t,e){try{(r=i[t](e)).value instanceof s?Promise.resolve(r.value.v).then(l,c):f(a[0][2],r)}catch(t){f(a[0][3],t)}var r}function l(t){u("next",t)}function c(t){u("throw",t)}function f(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:s(t[n](e)),done:"return"===n}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=a(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,i,(e=t[r](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var u=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 r={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&(0,e.__createBinding)(r,t,n);return u(r,t),r},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!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"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},e.__classPrivateFieldIn=function(t,e){if(null===e||"object"!==n(e)&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},function(t,e,r){"use strict";function n(t){return(n="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.__classPrivateFieldIn=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.__setFunctionName=e.__propKey=e.__runInitializers=e.__esDecorate=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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(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 r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.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,r=1,n=arguments.length;r=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,r,s):a(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},e.__param=function(t,e){return function(r,n){e(r,n,t)}},e.__esDecorate=function(t,e,r,i,a,o){function s(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var u,l=i.kind,c="getter"===l?"get":"setter"===l?"set":"value",f=!e&&t?i.static?t:t.prototype:null,h=e||(f?Object.getOwnPropertyDescriptor(f,i.name):{}),p=!1,d=r.length-1;d>=0;d--){var g={};for(var v in i)g[v]="access"===v?{}:i[v];for(var v in i.access)g.access[v]=i.access[v];g.addInitializer=function(t){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(t||null))};var y=(0,r[d])("accessor"===l?{get:h.get,set:h.set}:h[c],g);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!==n(y))throw new TypeError("Object expected");(u=s(y.get))&&(h.get=u),(u=s(y.set))&&(h.set=u),(u=s(y.init))&&a.push(u)}else(u=s(y))&&("field"===l?a.push(u):h[c]=u)}f&&Object.defineProperty(f,i.name,h),p=!0},e.__runInitializers=function(t,e,r){for(var n=arguments.length>2,i=0;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]1||u(t,e)}))})}function u(t,e){try{(r=i[t](e)).value instanceof s?Promise.resolve(r.value.v).then(l,c):f(a[0][2],r)}catch(t){f(a[0][3],t)}var r}function l(t){u("next",t)}function c(t){u("throw",t)}function f(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:s(t[n](e)),done:!1}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=a(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,i,(e=t[r](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var u=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 r={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&(0,e.__createBinding)(r,t,n);return u(r,t),r},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!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"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},e.__classPrivateFieldIn=function(t,e){if(null===e||"object"!==n(e)&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},function(t,e,r){"use strict";var n=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=r(111);Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return n(i).default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return n(i).default}});var a=r(346);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return n(a).default}});var o=r(347);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return n(o).default}});var s=r(348);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return n(s).default}});var u=r(349);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return n(u).default}});var l=r(350);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return n(l).default}});var c=r(351);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return n(c).default}});var f=r(352);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return n(f).default}});var h=r(353);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return n(h).default}});var p=r(187);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return n(p).default}});var d=r(188);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return n(d).default}});var g=r(354);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return n(g).default}});var v=r(355);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return n(v).default}});var y=r(356);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return n(y).default}});var m=r(189);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return n(m).default}});var _=r(357);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return n(_).default}});var x=r(358);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return n(x).default}});var b=r(359);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return n(b).default}});var M=r(360);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return n(M).default}});var P=r(361);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return n(P).default}});var O=r(182);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return n(O).default}});var S=r(362);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return n(S).default}});var C=r(363);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return n(C).default}});var w=r(364);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return n(w).default}});var A=r(191);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return n(A).default}});var T=r(190);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return n(T).default}});var E=r(365);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return n(E).default}});var I=r(366);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return n(I).default}});var D=r(367);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return n(D).default}});var L=r(368);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return n(L).default}});var j=r(369);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return n(j).default}});var k=r(370);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return n(k).default}});var B=r(371);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return n(B).default}});var R=r(372);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return n(R).default}});var F=r(373);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return n(F).default}});var N=r(374);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return n(N).default}});var Y=r(375);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return n(Y).default}});var G=r(376);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return n(G).default}});var V=r(377);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return n(V).default}});var H=r(185);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return n(H).default}});var X=r(378);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return n(X).default}});var z=r(186);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return n(z).default}});var q=r(379);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return n(q).default}});var W=r(380);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return n(W).default}});var U=r(381);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return n(U).default}});var Z=r(382);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return n(Z).default}});var Q=r(383);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return n(Q).default}});var K=r(384);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return n(K).default}});var $=r(192);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return n($).default}});var J=r(385);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return n(J).default}});var tt=r(386);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return n(tt).default}});var et=r(184);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return n(et).default}});var rt=r(183);Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return n(rt).default}});var nt=r(113);Object.defineProperty(e,"values",{enumerable:!0,get:function(){return n(nt).default}});var it=r(387);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return n(it).default}});var at=r(388);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return n(at).default}});var ot=r(389);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return n(ot).default}});var st=r(390);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return n(st).default}});var ut=r(391);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return n(ut).default}});var lt=r(193);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return n(lt).default}});var ct=r(392);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return n(ct).default}});var ft=r(9);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return n(ft).default}});var ht=r(20);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return n(ht).default}});var pt=r(393);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return n(pt).default}});var dt=r(394);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return n(dt).default}});var gt=r(395);Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return n(gt).default}});var vt=r(21);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return n(vt).default}});var yt=r(396);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return n(yt).default}});var mt=r(45);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return n(mt).default}});var _t=r(397);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return n(_t).default}});var xt=r(38);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return n(xt).default}});var bt=r(86);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return n(bt).default}});var Mt=r(112);Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return n(Mt).default}});var Pt=r(71);Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return n(Pt).default}});var Ot=r(194);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return n(Ot).default}});var St=r(398);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return n(St).default}});var Ct=r(37);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return n(Ct).default}});var wt=r(29);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return n(wt).default}});var At=r(399);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return n(At).default}});var Tt=r(400);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return n(Tt).default}});var Et=r(401);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return n(Et).default}});var It=r(402);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return n(It).default}});var Dt=r(403);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return n(Dt).default}});var Lt=r(404);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return n(Lt).default}});var jt=r(405);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return n(jt).default}});var kt=r(195);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return n(kt).default}});var Bt=r(406);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return n(Bt).default}});var Rt=r(57);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return n(Rt).default}});var Ft=r(407);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return n(Ft).default}});var Nt=r(408);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return n(Nt).default}});var Yt=r(409);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return n(Yt).default}});var Gt=r(196);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return n(Gt).default}});var Vt=r(410);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return n(Vt).default}});var Ht=r(411);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return n(Ht).default}});var Xt=r(412);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return n(Xt).default}});var zt=r(114);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return n(zt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return n(zt).default}});var qt=r(413);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return n(qt).default}});var Wt=r(414);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return n(Wt).default}});var Ut=r(415);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return n(Ut).default}});var Zt=r(416);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return n(Zt).default}});var Qt=r(417);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return n(Qt).default}});var Kt=r(418);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return n(Kt).default}});var $t=r(58);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return n($t).default}});var Jt=r(419);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return n(Jt).default}});var te=r(420);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return n(te).default}});var ee=r(421);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return n(ee).default}});var re=r(422);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return n(re).default}});var ne=r(197);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return n(ne).default}});var ie=r(423);Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return n(ie).default}});var ae=r(424);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return n(ae).default}})},function(t,e,r){"use strict";var n=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=r(133);Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return n(i).default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return n(i).default}});var a=r(543);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return n(a).default}});var o=r(544);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return n(o).default}});var s=r(545);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return n(s).default}});var u=r(546);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return n(u).default}});var l=r(547);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return n(l).default}});var c=r(548);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return n(c).default}});var f=r(549);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return n(f).default}});var h=r(550);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return n(h).default}});var p=r(254);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return n(p).default}});var d=r(255);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return n(d).default}});var g=r(551);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return n(g).default}});var v=r(552);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return n(v).default}});var y=r(553);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return n(y).default}});var m=r(256);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return n(m).default}});var _=r(554);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return n(_).default}});var x=r(555);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return n(x).default}});var b=r(556);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return n(b).default}});var M=r(557);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return n(M).default}});var P=r(558);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return n(P).default}});var O=r(249);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return n(O).default}});var S=r(559);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return n(S).default}});var C=r(560);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return n(C).default}});var w=r(561);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return n(w).default}});var A=r(258);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return n(A).default}});var T=r(257);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return n(T).default}});var E=r(562);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return n(E).default}});var I=r(563);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return n(I).default}});var D=r(564);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return n(D).default}});var L=r(565);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return n(L).default}});var j=r(566);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return n(j).default}});var k=r(567);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return n(k).default}});var B=r(568);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return n(B).default}});var R=r(569);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return n(R).default}});var F=r(570);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return n(F).default}});var N=r(571);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return n(N).default}});var Y=r(572);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return n(Y).default}});var G=r(573);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return n(G).default}});var V=r(574);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return n(V).default}});var H=r(252);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return n(H).default}});var X=r(575);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return n(X).default}});var z=r(253);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return n(z).default}});var q=r(576);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return n(q).default}});var W=r(577);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return n(W).default}});var U=r(578);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return n(U).default}});var Z=r(579);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return n(Z).default}});var Q=r(580);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return n(Q).default}});var K=r(581);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return n(K).default}});var $=r(259);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return n($).default}});var J=r(582);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return n(J).default}});var tt=r(583);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return n(tt).default}});var et=r(251);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return n(et).default}});var rt=r(250);Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return n(rt).default}});var nt=r(135);Object.defineProperty(e,"values",{enumerable:!0,get:function(){return n(nt).default}});var it=r(584);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return n(it).default}});var at=r(585);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return n(at).default}});var ot=r(586);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return n(ot).default}});var st=r(587);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return n(st).default}});var ut=r(588);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return n(ut).default}});var lt=r(260);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return n(lt).default}});var ct=r(589);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return n(ct).default}});var ft=r(10);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return n(ft).default}});var ht=r(24);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return n(ht).default}});var pt=r(590);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return n(pt).default}});var dt=r(591);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return n(dt).default}});var gt=r(592);Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return n(gt).default}});var vt=r(25);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return n(vt).default}});var yt=r(593);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return n(yt).default}});var mt=r(46);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return n(mt).default}});var _t=r(594);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return n(_t).default}});var xt=r(41);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return n(xt).default}});var bt=r(94);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return n(bt).default}});var Mt=r(134);Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return n(Mt).default}});var Pt=r(75);Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return n(Pt).default}});var Ot=r(261);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return n(Ot).default}});var St=r(595);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return n(St).default}});var Ct=r(40);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return n(Ct).default}});var wt=r(30);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return n(wt).default}});var At=r(596);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return n(At).default}});var Tt=r(597);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return n(Tt).default}});var Et=r(598);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return n(Et).default}});var It=r(599);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return n(It).default}});var Dt=r(600);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return n(Dt).default}});var Lt=r(601);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return n(Lt).default}});var jt=r(602);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return n(jt).default}});var kt=r(262);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return n(kt).default}});var Bt=r(603);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return n(Bt).default}});var Rt=r(62);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return n(Rt).default}});var Ft=r(604);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return n(Ft).default}});var Nt=r(605);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return n(Nt).default}});var Yt=r(606);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return n(Yt).default}});var Gt=r(263);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return n(Gt).default}});var Vt=r(607);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return n(Vt).default}});var Ht=r(608);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return n(Ht).default}});var Xt=r(609);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return n(Xt).default}});var zt=r(136);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return n(zt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return n(zt).default}});var qt=r(610);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return n(qt).default}});var Wt=r(611);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return n(Wt).default}});var Ut=r(612);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return n(Ut).default}});var Zt=r(613);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return n(Zt).default}});var Qt=r(614);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return n(Qt).default}});var Kt=r(615);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return n(Kt).default}});var $t=r(63);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return n($t).default}});var Jt=r(616);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return n(Jt).default}});var te=r(617);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return n(te).default}});var ee=r(618);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return n(ee).default}});var re=r(619);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return n(re).default}});var ne=r(264);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return n(ne).default}});var ie=r(620);Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return n(ie).default}});var ae=r(621);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return n(ae).default}})},function(t,e,r){"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShapeFactory=e.registerShape=e.registerShapeFactory=void 0;var n=r(0),i=r(73),a=r(2),o=r(66),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var r=this.getShape(t);return r.getPoints?r.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 r=this.getShape(t);if(!r.getMarker){var n=this.defaultShapeType;r=this.getShape(n)}var i=this.theme,o=(0,a.get)(i,[t,"default"],{}),s=r.getMarker(e);return(0,a.deepMix)({},o,s)},drawShape:function(t,e,r){return this.getShape(t).draw(e,r)}},u={coordinate:null,parsePath:function(t){var e=this.coordinate,r=(0,i.parsePathString)(t);return r=e.isPolar?(0,o.convertPolarPath)(e,r):(0,o.convertNormalPath)(e,r)},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){}},l={};e.registerShapeFactory=function(t,e){var r=(0,a.upperFirst)(t),i=n.__assign(n.__assign(n.__assign({},s),e),{geometryType:t});return l[r]=i,i},e.registerShape=function(t,e,r){var i=(0,a.upperFirst)(t),o=l[i],s=n.__assign(n.__assign({},u),r);return o[e]=s,s},e.getShapeFactory=function(t){var e=(0,a.upperFirst)(t);return l[e]}},function(t,e,r){"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.isMultipleMask=e.isMask=e.isSlider=e.isList=e.isElementChange=e.getDelegationObject=e.getCurrentElement=void 0;var n=r(2),i=r(66),a=r(36),o=r(73);function s(t,e){return l(t.event.target,e)}function u(t,e){var r=t.getCanvasBBox(),n=r.width,i=r.height;return n>0&&i>0&&(n>=e||i>=e)}function l(t,e){var r=t.getCanvasBBox();return u(t,e)?r:null}function c(t,e){return t.event.maskShapes.map((function(t){return l(t,e)})).filter((function(t){return!!t}))}function f(t,e){return u(t,e)?t.attr("path"):null}function h(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function p(t,e,r){var n=e.view,i=x(n,r,{x:t.x,y:t.y}),a=x(n,r,{x:t.maxX,y:t.maxY});return y(r,{minX:i.x,minY:i.y,maxX:a.x,maxY:a.y})}function d(t){var e=t.geometries,r=[];return(0,n.each)(e,(function(t){var e=t.elements;r=r.concat(e)})),t.views&&t.views.length&&(0,n.each)(t.views,(function(t){r=r.concat(d(t))})),r}function g(t,e){var r=t.getModel().data;return(0,n.isArray)(r)?r[0][e]:r[e]}function v(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0?r.flatMap((function(e){return _(t.view,e)})):null}var n=c(t,e);if(n.length>0)return n.flatMap((function(e){return y(t.view,e)}));return null}(t,e);if("path"===r.get("type")){var n=function(t,e){return f(t.event.target,e)}(t,e);if(!n)return;return _(t.view,n)}var i=s(t,e);return i?y(t.view,i):null},e.getSiblingMaskElements=function(t,e,r){if(h(t))return function(t,e,r){var n=c(t,r);if(n.length>0)return n.flatMap((function(r){return p(r,t,e)}));return null}(t,e,r);var n=s(t,r);return n?p(n,t,e):null},e.getElements=d,e.getElementsByField=function(t,e,r){return d(t).filter((function(t){return g(t,e)===r}))},e.getElementsByState=function(t,e){var r=t.geometries,i=[];return(0,n.each)(r,(function(t){var r=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(r)})),i},e.getElementValue=g,e.intersectRect=v,e.getIntersectElements=y,e.getElementsByPath=_,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var r=e.x-t.x,n=e.y-t.y;return Math.sqrt(r*r+n*n)},e.getSpline=function(t,e){if(t.length<=2)return(0,i.getLinePath)(t,!1);var r=t[0],a=[];(0,n.each)(t,(function(t){a.push(t.x),a.push(t.y)}));var o=(0,i.catmullRom2bezier)(a,e,null);return o.unshift(["M",r.x,r.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,r=null;return e&&(r=e.views.filter((function(e){return e!==t}))),r},e.getSiblingPoint=x,e.isInRecords=function(t,e,r,i){var a=!1;return(0,n.each)(t,(function(t){if(t[r]===e[r]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,r){var i=e.getScaleByField(r);return!i&&e.views&&(0,n.each)(e.views,(function(e){if(i=t(e,r))return!1})),i}},function(t,e,r){"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 n(t){return(n="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 r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};e.__extends=function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.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,r=1,n=arguments.length;r=0;u--)(a=t[u])&&(s=(o<3?a(s):o>3?a(e,r,s):a(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},e.__param=function(t,e){return function(r,n){e(r,n,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,r,n){return new(r||(r=Promise))((function(i,a){function o(t){try{u(n.next(t))}catch(t){a(t)}}function s(t){try{u(n.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,s)}u((n=n.apply(t,e||[])).next())}))},e.__generator=function(t,e){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=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++,n=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||u(t,e)}))})}function u(t,e){try{(r=i[t](e)).value instanceof s?Promise.resolve(r.value.v).then(l,c):f(a[0][2],r)}catch(t){f(a[0][3],t)}var r}function l(t){u("next",t)}function c(t){u("throw",t)}function f(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:s(t[n](e)),done:"return"===n}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=a(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,i,(e=t[r](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 r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);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,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var n=r(0),i=r(2);e.getStyle=function(t,e,r,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,u=t.defaultStyle,l=t.color,c=t.size,f=n.__assign(n.__assign({},u),s);return l&&(e&&(s.stroke||(f.stroke=l)),r&&(s.fill||(f.fill=l))),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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(29));e.default=function(t){return Array.isArray?Array.isArray(t):(0,n.default)(t,"Array")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(30));e.default=function(t){return Array.isArray?Array.isArray(t):(0,n.default)(t,"Array")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=r(137),s=r(43),u=r(12),l=n.__importDefault(r(148)),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(r){r.get("name")===t&&e.push(r)})),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(),r=t.getTotalMatrix();return r&&(e=(0,s.applyMatrix2BBox)(r,e)),e},e.prototype.on=function(t,e,r){return this.get("group").on(t,e,r),this},e.prototype.off=function(t,e){var r=this.get("group");return r&&r.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 r=this.get("group");e.target=r,r.emit(t,e),(0,o.propagationDelegate)(r,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,u.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var r=t.addGroup(e);return this.get("isRegister")&&this.registerElement(r),r},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var r=t.addShape(e);return this.get("isRegister")&&this.registerElement(r),r},e.prototype.addComponent=function(t,e){var r=e.id,n=e.component,a=(0,i.__rest)(e,["id","component"]),o=new n((0,i.__assign)((0,i.__assign)({},a),{id:r,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 r=(0,s.getMatrixByTranslate)(e);t.attr("matrix",r)},e.prototype.addAnimation=function(t,e,r){var n=e.attr("opacity");(0,a.isNil)(n)&&(n=1),e.attr("opacity",0),e.animate({opacity:n},r)},e.prototype.removeAnimation=function(t,e,r){e.animate({opacity:0},r)},e.prototype.updateAnimation=function(t,e,r,n){e.animate(r,n)},e.prototype.updateElements=function(t,e){var r,n=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"),l=n.getElementById(s),h=t.get("name");if(l)if(t.get("isComponent")){var p=t.get("component"),d=l.get("component"),g=(0,a.pick)(p.cfg,(0,a.difference)((0,a.keys)(p.cfg),f));d.update(g),l.set("update_status","update")}else{var v=n.getReplaceAttrs(l,t);i&&o.update?n.updateAnimation(h,l,v,o.update):l.attr(v),t.isGroup()&&n.updateElements(t,l),(0,a.each)(c,(function(e){l.set(e,t.get(e))})),(0,u.updateClip)(l,t),r=l,l.set("update_status","update")}else{e.add(t);var y=e.getChildren();if(y.splice(y.length-1,1),r){var m=y.indexOf(r);y.splice(m+1,0,t)}else y.unshift(t);if(n.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(p=t.get("component")).set("container",e);else t.isGroup()&&n.registerNewGroup(t);if(r=t,i){var _=n.get("isInit")?o.appear:o.enter;_&&n.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 r=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,a.mix)(e.delegateObject,r)},e.prototype.getReplaceAttrs=function(t,e){var r=t.attr(),n=e.attr();return(0,a.each)(r,(function(t,e){void 0===n[e]&&(n[e]=void 0)})),n},e.prototype.registerNewGroup=function(t){var e=this,r=t.getChildren();(0,a.each)(r,(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"),r=[];(0,a.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?r.push([e,t]):t.set("update_status",null)}));var n=this.get("animate"),i=this.get("animateOption");(0,a.each)(r,(function(r){var o=r[0],s=r[1];if(!s.destroyed){var u=s.get("name");if(n&&i.leave){var l=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(u,s,l)}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}(l.default);e.default=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clipTextTwoLines=e.getTextWidth=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 n=r(138),i=r(3);function a(t,e,r,n){var i=t+r,a=e+n;return{x:t,y:e,width:r,height:n,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function o(t,e,r){return(1-r)*t+e*r}function s(t,e){var r=e.x-t.x,n=e.y-t.y;return Math.sqrt(r*r+n*n)}e.formatPadding=function(t){var e=0,r=0,n=0,a=0;return(0,i.isNumber)(t)?e=r=n=a=t:(0,i.isArray)(t)&&(e=t[0],n=(0,i.isNil)(t[1])?t[0]:t[1],a=(0,i.isNil)(t[2])?t[0]:t[2],r=(0,i.isNil)(t[3])?n:t[3]),[e,n,a,r]},e.clearDom=function(t){for(var e=t.childNodes,r=e.length-1;r>=0;r--)t.removeChild(e[r])},e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,r=t.end,n=Math.min(e.x,r.x),i=Math.min(e.y,r.y),a=Math.max(e.x,r.x),o=Math.max(e.y,r.y);return{x:n,y:i,minX:n,minY:i,maxX:a,maxY:o,width:a-n,height:o-i}},e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),r=t.map((function(t){return t.y})),n=Math.min.apply(Math,e),i=Math.min.apply(Math,r),a=Math.max.apply(Math,e),o=Math.max.apply(Math,r);return{x:n,y:i,minX:n,minY:i,maxX:a,maxY:o,width:a-n,height:o-i}},e.createBBox=a,e.getValueByPercent=o,e.getCirclePoint=function(t,e,r){return{x:t.x+Math.cos(r)*e,y:t.y+Math.sin(r)*e}},e.distance=s;e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))};function u(t,e){var r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY);return a(r,n,Math.min(t.maxX,e.maxX)-r,Math.min(t.maxY,e.maxY)-n)}function l(t,e){var r=(0,n.getOffScreenContext)(),a=0;if((0,i.isNil)(t)||""===t)return a;if(r.save(),r.font=e,(0,i.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,i.each)(o,(function(t){var e=r.measureText(t).width;a0?(0,i.each)(h,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var r=t(e),n=e.applyToMatrix([r.minX,r.minY,1]),i=e.applyToMatrix([r.minX,r.maxY,1]),a=e.applyToMatrix([r.maxX,r.minY,1]),o=e.applyToMatrix([r.maxX,r.maxY,1]),u=Math.min(n[0],i[0],a[0],o[0]),h=Math.max(n[0],i[0],a[0],o[0]),p=Math.min(n[1],i[1],a[1],o[1]),d=Math.max(n[1],i[1],a[1],o[1]);ul&&(l=h),pf&&(f=d)}})):(s=0,l=0,c=0,f=0),r=a(s,c,l-s,f-c)}else r=e.getBBox();return o?u(r,o):r},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var r=e.getClip();if(r){var n={type:r.get("type"),attrs:r.attr()};t.setClip(n)}else t.setClip(null)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,r,n){var i=n/s(t,e),a=0;return"start"===r?a=0-i:"end"===r&&(a=1+i),{x:o(t.x,e.x,a),y:o(t.y,e.y,a)}},e.getTextWidth=l,e.clipTextTwoLines=function(t,e,r){if(Date.parse(t))return t.split(" ").join("\n");function n(t,n){for(var i=0;ie)return void n(i)}}var i="",a="";return n(t,(function(e){i=t.slice(0,e),a=t.slice(e)})),n(a,(function(t){a=a.slice(0,t-1)+"..."})),i+"\n"+a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){(0,n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReplaceAttrs=e.getPolygonCentroid=e.getAngle=e.getArcPath=e.getSectorPath=e.polarToCartesian=void 0;var n=r(2);function i(t){return 1===Array.from(new Set(t)).length}function a(t){return((0,n.min)(t)+(0,n.max)(t))/2}function o(t,e,r,n){return{x:t+r*Math.cos(n),y:e+r*Math.sin(n)}}e.polarToCartesian=o,e.getSectorPath=function(t,e,r,n,i,a){void 0===a&&(a=0);var s=o(t,e,r,n),u=o(t,e,r,i),l=o(t,e,a,n),c=o(t,e,a,i);if(i-n==2*Math.PI){var f=o(t,e,r,n+Math.PI),h=o(t,e,a,n+Math.PI),p=[["M",s.x,s.y],["A",r,r,0,1,1,f.x,f.y],["A",r,r,0,1,1,u.x,u.y],["M",l.x,l.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-n<=Math.PI?0:1,g=[["M",s.x,s.y],["A",r,r,0,d,1,u.x,u.y],["L",c.x,c.y]];return a&&g.push(["A",a,a,0,d,0,l.x,l.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,r,i,a){var s=o(t,e,r,i),u=o(t,e,r,a);if((0,n.isNumberEqual)(a-i,2*Math.PI)){var l=o(t,e,r,i+Math.PI);return[["M",s.x,s.y],["A",r,r,0,1,1,l.x,l.y],["A",r,r,0,1,1,s.x,s.y],["A",r,r,0,1,0,l.x,l.y],["A",r,r,0,1,0,s.x,s.y],["Z"]]}var c=a-i<=Math.PI?0:1;return[["M",s.x,s.y],["A",r,r,0,c,1,u.x,u.y]]},e.getAngle=function(t,e){var r,i,a=function(t){if((0,n.isEmpty)(t))return null;var e=t[0].x,r=t[0].x,i=t[0].y,a=t[0].y;return(0,n.each)(t,(function(t){e=e>t.x?t.x:e,r=rt.y?t.y:i,a=a=t&&i<=t+r&&a>=e&&a<=e+n},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0&&(e?"stroke"in r?this._setColor(t,"stroke",a):"strokeStyle"in r&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),u&&f.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&f.setAttribute(l.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,r){var n=this.get("el");if(r)if(r=r.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(r))(i=t.find("gradient",r))||(i=t.addGradient(r)),n.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(r)){var i;(i=t.find("pattern",r))||(i=t.addPattern(r)),n.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else n.setAttribute(l.SVG_ATTR_MAP[e],r);else n.setAttribute(l.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var r=this.attr(),n=e||r,i=n.shadowOffsetX,a=n.shadowOffsetY,s=n.shadowBlur,u=n.shadowColor;(i||a||s||u)&&(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 r=this.get("el"),n=this.get("canvas").get("el").getBoundingClientRect(),i=t+n.left,a=e+n.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(r))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,r=t.lineAppendWidth;return this.isStroke()?e+r:0},e}(a.AbstractShape);e.default=p},function(t,e,r){"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 n=r(0);e.VERSION="4.2.10";var i=r(70);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=r(54);Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=r(319);Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return n.__importDefault(o).default}});var s=r(44);Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return n.__importDefault(s).default}});var u=r(160);Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return n.__importDefault(u).default}});var l=r(106);Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return n.__importDefault(l).default}});var c=r(157);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}});var f=r(116);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return f.Facet}});var h=r(13);Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return n.__importDefault(h).default}});var p=r(70);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var d=r(70);Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var g=r(5);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 v=r(162);Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return v.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return v.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return v.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return v.getGeometryLabelLayout}});var y=r(157);Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return y.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return y.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return y.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return y.getActionClass}});var m=r(116);Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return m.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return m.registerFacet}});var _=r(314);Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return _.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return _.registerTheme}});var x=r(198);Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return x.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return x.getEngine}});var b=r(320);Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return b.getAnimation}});var M=r(4);Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return M.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return M.DIRECTION}});n.__importStar(r(780));var P=r(22);Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return P.IGroup}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return P.ShapeAttrs}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return P.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return P.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return P.ScaleConfig}});var O=r(323),S=r(324),C=r(14),w=r(68),A=r(105),T=r(6),E=r(55),I=r(163);e.Util={getLegendItems:S.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:C.getAngle,getSectorPath:C.getSectorPath,polarToCartesian:C.polarToCartesian,getDelegationObject:T.getDelegationObject,getTooltipItems:A.getTooltipItems,getMappingValue:O.getMappingValue,getPath:I.getPath,getPathPoints:E.getPathPoints}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={}.toString;e.default=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={}.toString;e.default=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,r){"use strict";function n(t){return(n="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=r(0),a=r(2);e.isBetween=function(t,e,r){var n=Math.min(e,r),i=Math.max(e,r);return t>=n&&t<=i},e.padEnd=function(t,e,r){if((0,a.isString)(t))return t.padEnd(e,r);if((0,a.isArray)(t)){var n=t.length;if(n0&&((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 r=this.isStroke(),n=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,r,n,i)},e.prototype.isInStrokeOrPath=function(t,e,r,n,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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var n=r(2),i=r(19);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],r=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var n=a(e);if(t.get("id")&&(n.id=t.get("id")),t.set("el",n),t.set("attrs",{}),r){var o=r.get("el");o||(o=r.createDom(),r.set("el",o)),o.appendChild(n)}return n},e.sortDom=function(t,e){var r=t.get("el"),i=(0,n.toArray)(r.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),r.appendChild(a)},e.moveTo=function(t,e){var r=t.parentNode,n=Array.from(r.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=n[e],a=n.indexOf(t);if(i){if(a>e)r.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 r=e.start,n=e.end;return new o(t.x+t.width*r.x,t.y+t.height*r.y,t.width*Math.abs(n.x-r.x),t.height*Math.abs(n.y-r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(29));e.default=function(t){return(0,n.default)(t,"String")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(29));e.default=function(t){return(0,n.default)(t,"Number")}},function(t,e,r){"use strict";function n(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,r,n){var i=t-r,a=e-n;return Math.sqrt(i*i+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var r=n(t),a=n(e);return{x:r,y:a,width:i(t)-r,height:i(e)-a}},e.getBBoxRange=function(t,e,r,a){return{minX:n([t,r]),maxX:i([t,r]),minY:n([e,a]),maxY:i([e,a])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(30));e.default=function(t){return(0,n.default)(t,"String")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(30));e.default=function(t){return(0,n.default)(t,"Number")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0;var n=r(3);e.distance=function(t,e,r,n){var i=t-r,a=e-n;return Math.sqrt(i*i+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var r=(0,n.min)(t),i=(0,n.min)(e);return{x:r,y:i,width:(0,n.max)(t)-r,height:(0,n.max)(e)-i}},e.getBBoxRange=function(t,e,r,i){return{minX:(0,n.min)([t,r]),maxX:(0,n.max)([t,r]),minY:(0,n.min)([e,i]),maxY:(0,n.max)([e,i])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyTranslate=e.applyRotate=e.applyMatrix2BBox=e.getAngleByMatrix=e.getMatrixByTranslate=e.getMatrixByAngle=void 0;var n=r(76),i=[1,0,0,0,1,0,0,0,1];function a(t,e,r){return void 0===r&&(r=i),e?n.ext.transform(r,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?n.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var r=[0,0];return n.vec2.transformMat3(r,e,t),r}e.getMatrixByAngle=a,e.getMatrixByTranslate=o,e.getAngleByMatrix=function(t){var e=[0,0,0];return n.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.applyMatrix2BBox=function(t,e){var r=s(t,[e.minX,e.minY]),n=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(r[0],n[0],i[0],a[0]),u=Math.max(r[0],n[0],i[0],a[0]),l=Math.min(r[1],n[1],i[1],a[1]),c=Math.max(r[1],n[1],i[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:u,maxY:c,width:u-o,height:c-l}},e.applyRotate=function(t,e,r,n){if(e){var i=a({x:r,y:n},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,r){var n=o({x:e,y:r});t.attr("matrix",n)}},function(t,e,r){"use strict";function n(t){return(n="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=r(0),a=r(237),o=r(129),s=r(2),u=r(47),l=i.__importDefault(r(115)),c=r(4),f=r(31),h=i.__importDefault(r(160)),p=r(162),d=r(5),g=r(776),v=r(321),y=r(777),m=r(322),_=r(49),x=r(16),b=function(t){function e(e){var r=t.call(this,e)||this;r.type="base",r.attributes={},r.elements=[],r.elementsMap={},r.animateOption=!0,r.attributeOption={},r.lastElementsMap={},r.generatePoints=!1,r.beforeMappingData=null,r.adjusts={},r.idFields=[],r.hasSorted=!1,r.isCoordinateChanged=!1;var n=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,u=void 0!==s&&s,l=e.visible,c=void 0===l||l,f=e.theme,h=e.scales,p=void 0===h?{}:h,d=e.scaleDefs,g=void 0===d?{}:d,v=e.intervalPadding,y=e.dodgePadding,m=e.maxColumnWidth,_=e.minColumnWidth,x=e.columnWidthRatio,b=e.roseWidthRatio,M=e.multiplePieWidthRatio,P=e.zIndexReversed,O=e.sortZIndex,S=e.useDeferredLabel;return r.container=n,r.labelsContainer=i,r.coordinate=a,r.data=o,r.sortable=u,r.visible=c,r.userTheme=f,r.scales=p,r.scaleDefs=g,r.intervalPadding=v,r.dodgePadding=y,r.maxColumnWidth=m,r.minColumnWidth=_,r.columnWidthRatio=x,r.roseWidthRatio=b,r.multiplePieWidthRatio=M,r.zIndexReversed=P,r.sortZIndex=O,r.useDeferredLabel=S?"number"==typeof S?S:1/0:null,r}return i.__extends(e,t),e.prototype.position=function(t){var e=t;(0,s.isPlainObject)(t)||(e={fields:(0,y.parseFields)(t)});var r=(0,s.get)(e,"fields");return 1===r.length&&(r.unshift("1"),(0,s.set)(e,"fields",r)),(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,r){(0,s.isObject)(t)||(e[r]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,s.isString)(t)){var r=(0,y.parseFields)(t);this.styleOption={fields:r,callback:e}}else{var n=t,i=(r=n.fields,n.callback),a=n.cfg;this.styleOption=r||i||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,s.isString)(t)){var r=(0,y.parseFields)(t);this.tooltipOption={fields:r,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,r){if((0,s.isString)(t)){var n={},i=(0,y.parseFields)(t);n.fields=i,(0,s.isFunction)(e)?n.callback=e:(0,s.isPlainObject)(e)&&(n.cfg=e),r&&(n.cfg=r),this.labelOption=n}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,r=t.isDataChanged,n=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;(0,s.isEqual)(i,a)?!e||!r&&(0,s.isEqual)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=n},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,u.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var r=this.beforeMappingData,n=this.beforeMapping(r);this.dataArray=new Array(n.length);for(var a=0;a=0?e:r<=0?r:0},e.prototype.createAttrOption=function(t,e,r){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 n={};(0,s.isNumber)(e)?n.values=[e]:n.fields=(0,y.parseFields)(e),r&&((0,s.isFunction)(r)?n.callback=r:n.values=r),(0,s.set)(this.attributeOption,t,n)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,r=this.attributeOption,a=this.theme,u=this.shapeType;this.groupScales=[];var l={},f=function(n){if(r.hasOwnProperty(n)){var f=r[n];if(!f)return{value:void 0};var h=i.__assign({},f),p=h.callback,d=h.values,g=h.fields,v=(void 0===g?[]:g).map((function(e){var r=t.scales[e];!l[e]&&c.GROUP_ATTRS.includes(n)&&("cat"===(0,_.inferScaleType)(r,(0,s.get)(t.scaleDefs,e),n,t.type)&&(t.groupScales.push(r),l[e]=!0));return r}));h.scales=v,"position"!==n&&1===v.length&&"identity"===v[0].type?h.values=v[0].values:p||d||("size"===n?h.values=a.sizes:"shape"===n?h.values=a.shapes[u]||[]:"color"===n&&(v.length?h.values=v[0].values.length<=10?a.colors10:a.colors20:h.values=a.colors10));var y=(0,o.getAttribute)(n);e[n]=new y(h)}};for(var h in r){var p=f(h);if("object"===n(p))return p.value}},e.prototype.processData=function(t){var e,r;this.hasSorted=!1;for(var n=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),a=this.groupData(t),o=[],s=0,u=a.length;sa&&(a=c)}var f=this.scaleDefs,h={};it.max&&!(0,s.get)(f,[n,"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 r=0,n=e.length;r1)for(var h=0;h180||r<-180?r-360*Math.round(r/360):r):(0,n.default)(isNaN(t)?e:t)},e.gamma=function(t){return 1==(t=+t)?a:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):(0,n.default)(isNaN(e)?r:e)}},e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7).__importStar(r(2)),i=r(128),a=function(){function t(t){var e=t.xField,r=t.yField,n=t.adjustNames,i=void 0===n?["x","y"]:n,a=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=r,this.dimValuesMap=a}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,r){var n,i,a=this.yField,o=r.indexOf(e),s=r.length;return!a&&this.isAdjust("y")?(n=0,i=1):s>1?(n=r[0===o?0:o-1],i=r[o===s-1?s-1:o+1],0!==o?n+=(e-n)/2:n-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-r[s-2])/2):(n=0===e?0:e-.5,i=0===e?1:e+.5),{pre:n,next:i}},t.prototype.adjustData=function(t,e){var r=this,i=this.getDimValues(e);n.each(t,(function(t,e){n.each(i,(function(n,i){r.adjustDim(i,n,t,e)}))}))},t.prototype.groupData=function(t,e){return n.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),n.groupBy(t,e)},t.prototype.adjustDim=function(t,e,r,n){},t.prototype.getDimValues=function(t){var e=this.xField,r=this.yField,a=n.assign({},this.dimValuesMap),o=[];if(e&&this.isAdjust("x")&&o.push(e),r&&this.isAdjust("y")&&o.push(r),o.forEach((function(e){a&&a[e]||(a[e]=n.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!r&&this.isAdjust("y")){a.y=[i.DEFAULT_Y,1]}return a},t}();e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(10)),a=n.__importDefault(r(94));e.default=function(t,e){if(t)if((0,i.default)(t))for(var r=0,n=t.length;r180||r<-180?r-360*Math.round(r/360):r):(0,n.default)(isNaN(t)?e:t)},e.gamma=function(t){return 1==(t=+t)?a:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):(0,n.default)(isNaN(e)?r:e)}},e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var n=r(0),i=r(17),a=r(2),o=r(16);function s(t,e){for(var r=[t[0]],n=1,i=t.length;n=s[c]?1:0,p=f>Math.PI?1:0,d=r.convert(u),g=(0,o.getDistanceToCenter)(r,d);if(g>=.5)if(f===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},y=r.convert(v);l.push(["A",g,g,0,p,h,y.x,y.y]),l.push(["A",g,g,0,p,h,d.x,d.y])}else l.push(["A",g,g,0,p,h,d.x,d.y]);return l}(r,n,t)):l.push(s(a,t));break;case"a":l.push(u(a,t));break;case"z":default:l.push(a)}})),function(t){(0,a.each)(t,(function(e,r){if("a"===e[0].toLowerCase()){var n=t[r-1],i=t[r+1];i&&"a"===i[0].toLowerCase()?n&&"l"===n[0].toLowerCase()&&(n[0]="M"):n&&"a"===n[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(l),l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getLabelBackgroundInfo=e.findLabelTextShape=void 0;var n=r(2),i=r(68);function a(t,e,r){return void 0===r&&(r=0),Math.max(0,Math.min(t.x+t.width+r,e.x+e.width+r)-Math.max(t.x-r,e.x-r))*Math.max(0,Math.min(t.y+t.height+r,e.y+e.height+r)-Math.max(t.y-r,e.y-r))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getLabelBackgroundInfo=function(t,e,r){void 0===r&&(r=[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(),u=s.x,l=s.y,c=s.width,f=s.height;o.destroy();var h=r;return(0,n.isNil)(h)?h=[2,2,2,2]:(0,n.isNumber)(h)&&(h=new Array(4).fill(h)),{x:u-h[3],y:l-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 r=t.getBBox();return(0,n.some)(e,(function(t){var e=t.getBBox();return a(r,e,2)>0}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var n=r(17).ext.transform;function i(t,e){var r=t.attr(),i=r.x,a=r.y;return n(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=n,e.translate=function(t,e,r){var i=n(t.getMatrix(),[["t",e,r]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var r=i(t,e);t.setMatrix(r)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var r=t.getBBox(),i=(r.minX+r.maxX)/2,a=(r.minY+r.maxY)/2;t.applyToMatrix([i,a,1]);var o=n(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnglePoint=e.getFactTitleConfig=void 0;var n=r(4);e.getFactTitleConfig=function(t){return[n.DIRECTION.TOP,n.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===n.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===n.DIRECTION.TOP?"bottom":"top"}}:[n.DIRECTION.LEFT,n.DIRECTION.RIGHT].includes(t)?{offsetX:t===n.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===n.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,r){return{x:t.x+e*Math.cos(r),y:t.y+e*Math.sin(r)}}},function(t,e,r){"use strict";var n=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=r(345);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return n(i).default}});var a=r(201);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return n(a).default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return a.registerGeometry}});var o=r(159);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return n(o).default}});var s=r(317);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return s.registerComponentController}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(112)),a=n.__importDefault(r(29));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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n;try{n=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{n=void 0===n?r:n}return n}},function(t,e,r){"use strict";var n=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=r(230);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return n(i).default}});var a=r(488);Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return n(a).default}});var o=r(491);Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return n(o).default}});var s=r(492);Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return n(s).default}});var u=r(493);Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return n(u).default}});var l=r(494);Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return n(l).default}});var c=r(499);Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return n(c).default}});var f=r(234);Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return n(f).default}});var h=r(232);Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return n(h).default}});var p=r(233);Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return n(p).default}});var d=r(231);Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return n(d).default}});var g=r(127);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return n(g).default}});var v=r(500);Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return n(v).default}});var y=r(235);Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return n(y).default}});var m=r(501);Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return n(m).default}});var _=r(236);Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return n(_).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(241),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,n.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,n.map)(this.ticks,(function(e,r){return(0,n.isObject)(e)?e:{text:t.getText(e,r),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var r=this.formatter,i=r?r(t,e):t;return(0,n.isNil)(i)||!(0,n.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,n.assign)(this,this.__cfg__),this.setDomain(),(0,n.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,n.isString)(t)){var r=(0,i.getTickMethod)(t);if(!r)throw new Error("There is no method to to calculate ticks!");e=r(this)}else(0,n.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,r){return(0,n.isNumber)(t)?(t-e)/(r-e):NaN},t.prototype.calcValue=function(t,e,r){return e+t*(r-e)},t}();e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(134)),a=n.__importDefault(r(30));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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var n=r(1),i=r(95);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=n.__importStar(r(630));e.ext=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=e.testLabel=e.getLabelLength=e.getMaxLabelWidth=void 0;var n=r(3),i=r(695);function a(t,e){var r=e.getCanvasBBox();return t?r.width:r.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,n.isNil)(e)?"":""+e})),r=0,i=0,a=0;a=19968&&u<=40869?2:1}o>r&&(r=o,i=a)}return t[i].getBBox().width}(t);var e=0;return(0,n.each)(t,(function(t){var r=t.getBBox().width;e=0?(0,i.ellipsisString)(u,d,o):"…")&&(e.attr("text",g),p=!0)}return p?e.set("tip",u):e.set("tip",null),p}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.getWidth=e.getStyle=e.getRatio=e.getOuterWidth=e.getOuterHeight=e.getHeight=e.createDom=e.addEventListener=void 0;var i=r(705);Object.defineProperty(e,"addEventListener",{enumerable:!0,get:function(){return n(i).default}});var a=r(706);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return n(a).default}});var o=r(299);Object.defineProperty(e,"getHeight",{enumerable:!0,get:function(){return n(o).default}});var s=r(707);Object.defineProperty(e,"getOuterHeight",{enumerable:!0,get:function(){return n(s).default}});var u=r(708);Object.defineProperty(e,"getOuterWidth",{enumerable:!0,get:function(){return n(u).default}});var l=r(709);Object.defineProperty(e,"getRatio",{enumerable:!0,get:function(){return n(l).default}});var c=r(79);Object.defineProperty(e,"getStyle",{enumerable:!0,get:function(){return n(c).default}});var f=r(300);Object.defineProperty(e,"getWidth",{enumerable:!0,get:function(){return n(f).default}});var h=r(710);Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return n(h).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n;try{n=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{n=void 0===n?r:n}return n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),i=r(304),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,n.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,n.map)(this.ticks,(function(e,r){return(0,n.isObject)(e)?e:{text:t.getText(e,r),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var r=this.formatter,i=r?r(t,e):t;return(0,n.isNil)(i)||!(0,n.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,n.assign)(this,this.__cfg__),this.setDomain(),(0,n.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,n.isString)(t)){var r=(0,i.getTickMethod)(t);if(!r)throw new Error("There is no method to to calculate ticks!");e=r(this)}else(0,n.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,r){return(0,n.isNumber)(t)?(t-e)/(r-e):NaN},t.prototype.calcValue=function(t,e,r){return e+t*(r-e)},t}();e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,r){var n=r/2*Math.sqrt(3);return[["M",t,e-r],["L",t+n,e-r/2],["L",t+n,e+r/2],["L",t,e+r],["L",t-n,e+r/2],["L",t-n,e-r/2],["Z"]]},bowtie:function(t,e,r){var n=r-1.5;return[["M",t-r,e-n],["L",t+r,e+n],["L",t+r,e-n],["L",t-r,e+n],["Z"]]},cross:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e+r],["M",t+r,e-r],["L",t-r,e+r]]},tick:function(t,e,r){return[["M",t-r/2,e-r],["L",t+r/2,e-r],["M",t,e-r],["L",t,e+r],["M",t-r/2,e+r],["L",t+r/2,e+r]]},plus:function(t,e,r){return[["M",t-r,e],["L",t+r,e],["M",t,e-r],["L",t,e+r]]},hyphen:function(t,e,r){return[["M",t-r,e],["L",t+r,e]]},line:function(t,e,r){return[["M",t,e-r],["L",t,e+r]]}}},function(t,e,r){"use strict";var n=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=r(32);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return n(i).default}});var a=r(782);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return n(a).default}});var o=r(783);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return n(o).default}});var s=r(784);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return n(s).default}});var u=r(785);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return n(u).default}});var l=r(786);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return n(l).default}});var c=r(787);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return n(c).default}});var f=r(789);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return n(f).default}});var h=r(790);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return n(h).default}});var p=r(791);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return n(p).default}});var d=r(794);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return n(d).default}})},function(t,e,r){"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 n=r(0),i=r(2),a=r(327),o=n.__importDefault(r(328)),s=r(18),u=n.__importStar(r(107)),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){for(var r=0;rM?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,P,O,1-C),e.scale(1/A,1/T),e.rotate(-S),e.translate(-_,-x)}break;case"Z":e.closePath()}if("Z"===d)l=c;else{var E=p.length;l=[p[E-2],p[E-1]]}}}},e.refreshElement=function(t,e){var r=t.get("canvas");r&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(r.refreshElement(t,e,r),r.get("autoDraw")&&r.draw())))},e.getRefreshRegion=p,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],r=[],n=[],a=[];return(0,i.each)(t,(function(t){var i=p(t);i&&(e.push(i.minX),r.push(i.minY),n.push(i.maxX),a.push(i.maxY))})),{minX:(0,i.min)(e),minY:(0,i.min)(r),maxX:(0,i.max)(n),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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var n=r(33);e.setShadow=function(t,e){var r=t.cfg.el,n=t.attr(),i={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),r.setAttribute("filter","url(#"+a+")")}else r.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var r=t.cfg.el,n=[],i=0;i<9;i+=3)n.push(e[i]+","+e[i+1]);-1===(n=n.join(",")).indexOf("NaN")?r.setAttribute("transform","matrix("+n+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var r=t.getClip(),i=t.get("el");if(r){if(r&&!i.hasAttribute("clip-path")){(0,n.createDom)(r),r.createPath(e);var a=e.addClip(r);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,r){"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 n=r(0),i=r(2),a=r(14);function o(t,e){void 0===e&&(e=!0);var r=[],n=t[0];r.push(["M",n.x,n.y]);for(var i=1,a=t.length;ie&&(n=e-(r=r?e/(1+n/r):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[r||0,n||0,a||0,o||0]}function u(t,e){return[e,t]}e.getRectPoints=function(t){var e,r,a,o,s,u,l=t.x,c=t.y,f=t.y0,h=t.size;(0,i.isArray)(c)?(a=(e=n.__read(c,2))[0],o=e[1]):(a=f,o=c),(0,i.isArray)(l)?(s=(r=n.__read(l,2))[0],u=r[1]):(s=l-h/2,u=l+h/2);var p=[{x:s,y:a},{x:s,y:o}];return p.push({x:u,y:o},{x:u,y:a}),p},e.getRectPath=o,e.parseRadius=s,e.getBackgroundRectPath=function(t,e,r){var o=[];if(r.isRect){var u=r.isTransposed?{x:r.start.x,y:e[0].y}:{x:e[0].x,y:r.start.y},l=r.isTransposed?{x:r.end.x,y:e[2].y}:{x:e[3].x,y:r.end.y},c=(0,i.get)(t,["background","style","radius"]);if(c){var f=r.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=r.isTransposed?r.getWidth():r.getHeight(),p=n.__read(s(c,Math.min(f,h)),4),d=p[0],g=p[1],v=p[2],y=p[3],m=r.isTransposed&&r.isReflect("y"),_=m?0:1,x=function(t){return m?-t:t};o.push(["M",u.x,l.y+x(d)]),0!==d&&o.push(["A",d,d,0,0,_,u.x+d,l.y]),o.push(["L",l.x-g,l.y]),0!==g&&o.push(["A",g,g,0,0,_,l.x,l.y+x(g)]),o.push(["L",l.x,u.y-x(v)]),0!==v&&o.push(["A",v,v,0,0,_,l.x-v,u.y]),o.push(["L",u.x+y,u.y]),0!==y&&o.push(["A",y,y,0,0,_,u.x,u.y-x(y)])}else o.push(["M",u.x,u.y]),o.push(["L",l.x,u.y]),o.push(["L",l.x,l.y]),o.push(["L",u.x,l.y]),o.push(["L",u.x,u.y]);o.push(["z"])}if(r.isPolar){var b=r.getCenter(),M=(0,a.getAngle)(t,r),P=M.startAngle,O=M.endAngle;if("theta"===r.type||r.isTransposed){var S=function(t){return Math.pow(t,2)};d=Math.sqrt(S(b.x-e[0].x)+S(b.y-e[0].y)),g=Math.sqrt(S(b.x-e[2].x)+S(b.y-e[2].y));o=(0,a.getSectorPath)(b.x,b.y,d,r.startAngle,r.endAngle,g)}else o=(0,a.getSectorPath)(b.x,b.y,r.getRadius(),P,O)}return o},e.getIntervalRectPath=function(t,e,r){var n=r.getWidth(),i=r.getHeight(),a="rect"===r.type,s=[],u=(t[2].x-t[1].x)/2,l=r.isTransposed?u*i/n:u*n/i;return"round"===e?(a?(s.push(["M",t[0].x,t[0].y+l]),s.push(["L",t[1].x,t[1].y-l]),s.push(["A",u,u,0,0,1,t[2].x,t[2].y-l]),s.push(["L",t[3].x,t[3].y+l]),s.push(["A",u,u,0,0,1,t[0].x,t[0].y+l])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",u,u,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",u,u,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=o(t),s},e.getFunnelPath=function(t,e,r){var n=[];return(0,i.isNil)(e)?r?n.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"]):n.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"]):n.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"]),n},e.getRectWithCornerRadius=function(t,e,r){var i,a,o,l,c,f,h,p=n.__read(n.__spreadArray([],n.__read(t),!1),4),d=p[0],g=p[1],v=p[2],y=p[3],m=n.__read("number"==typeof r?Array(4).fill(r):r,4),_=m[0],x=m[1],b=m[2],M=m[3];e.isTransposed&&(g=(i=n.__read(u(g,y),2))[0],y=i[1]),e.isReflect("y")&&(d=(a=n.__read(u(d,g),2))[0],g=a[1],v=(o=n.__read(u(v,y),2))[0],y=o[1]),e.isReflect("x")&&(d=(l=n.__read(u(d,y),2))[0],y=l[1],g=(c=n.__read(u(g,v),2))[0],v=c[1]);var P=[],O=function(t){return Math.abs(t)};return _=(f=n.__read(s([_,x,b,M],Math.min(O(y.x-d.x),O(g.y-d.y))).map((function(t){return O(t)})),4))[0],x=f[1],b=f[2],M=f[3],e.isTransposed&&(_=(h=n.__read([M,_,x,b],4))[0],x=h[1],b=h[2],M=h[3]),d.y(r-t)*(r-t)+(n-e)*(n-e)?(0,i.distance)(r,n,a,o):this.pointToLine(t,e,r,n,a,o)},pointToLine:function(t,e,r,n,i,o){var s=[r-t,n-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var u=[-s[1],s[0]];a.normalize(u,u);var l=[i-t,o-e];return Math.abs(a.dot(l,u))},tangentAngle:function(t,e,r,n){return Math.atan2(n-e,r-t)}}},function(t,e,r){"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 n=r(0),i=r(2),a=n.__importDefault(r(243)),o=n.__importStar(r(243)),s=n.__importDefault(r(516));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 u=36e5;e.HOUR=u;var l=24*u;e.DAY=l;var c=31*l;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",u],["HH",6*u],["HH",12*u],["YYYY-MM-DD",l],["YYYY-MM-DD",4*l],["YYYY-WW",7*l],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*l]];e.getTickInterval=function(t,e,r){var n=(e-t)/r,a=(0,s.default)((function(t){return t[1]}))(f,n)-1,o=f[a];return a<0?o=f[0]:a>=f.length&&(o=(0,i.last)(f)),o}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),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(),r=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(r-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,r=(0,a.head)(e),n=(0,a.last)(e);rthis.max&&(this.max=n),(0,a.isNil)(this.minLimit)||(this.min=r),(0,a.isNil)(this.maxLimit)||(this.max=n)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,r=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(this.max)&&(this.max=r),this.min>this.max&&(this.min=e,this.max=r)},e.prototype.calculateTicks=function(){var e=this,r=t.prototype.calculateTicks.call(this);return this.nice||(r=(0,a.filter)(r,(function(t){return t>=e.min&&t<=e.max}))),r},e.prototype.getScalePercent=function(t){var e=this.max,r=this.min;return(t-r)/(e-r)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(n.__importDefault(r(74)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.precisionAdd=e.getLogPositiveMin=e.log=e.calBase=void 0;var n=r(2);function i(t){var e=t.toString().split(/[eE]/),r=(e[0].split(".")[1]||"").length-+(e[1]||0);return r>0?r:0}e.calBase=function(t,e){var r=Math.E;return e>=0?Math.pow(r,Math.log(e)/t):-1*Math.pow(r,Math.log(-e)/t)},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.getLogPositiveMin=function(t,e,r){(0,n.isNil)(r)&&(r=Math.max.apply(null,t));var i=r;return(0,n.each)(t,(function(t){t>0&&t1&&(i=1),i},e.precisionAdd=function(t,e){var r=i(t),n=i(e),a=Math.pow(10,Math.max(r,n));return(t*a+e*a)/a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(17),a=r(2),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,r=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=r,this.matrix=a,this.originalMatrix=(0,n.__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 r,n=this[e],i=n.start,a=n.end;return this.isReflect(e)&&(i=(r=[a,i])[0],a=r[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var r,n=this[e],i=n.start,a=n.end;return this.isReflect(e)&&(i=(r=[a,i])[0],a=r[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,r){void 0===r&&(r=0);var n=this.matrix,a=[t,e,r];return i.vec3.transformMat3(a,a,n),a},t.prototype.invertMatrix=function(t,e,r){void 0===r&&(r=0);var n=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],n),o=[t,e,r];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),r=e.x,n=e.y,i=this.applyMatrix(r,n,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,r=this.center;return i.ext.leftTranslate(e,e,[-r.x,-r.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[r.x,r.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 r=this.matrix,n=this.center;return i.ext.leftTranslate(r,r,[-n.x,-n.y]),i.ext.leftScale(r,r,[t,e]),i.ext.leftTranslate(r,r,[n.x,n.y]),this},t.prototype.translate=function(t,e){var r=this.matrix;return i.ext.leftTranslate(r,r,[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,n.__spreadArray)([],this.originalMatrix)},t}();e.default=o},function(t,e,r){"use strict";function n(t){return(n="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){var e=n(t);return null!==t&&"object"===e||"function"===e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vec4=e.vec3=e.vec2=e.quat2=e.quat=e.mat4=e.mat3=e.mat2d=e.mat2=e.glMatrix=void 0;var n=r(1),i=n.__importStar(r(35));e.glMatrix=i;var a=n.__importStar(r(627));e.mat2=a;var o=n.__importStar(r(628));e.mat2d=o;var s=n.__importStar(r(270));e.mat3=s;var u=n.__importStar(r(271));e.mat4=u;var l=n.__importStar(r(272));e.quat=l;var c=n.__importStar(r(629));e.quat2=c;var f=n.__importStar(r(275));e.vec2=f;var h=n.__importStar(r(273));e.vec3=h;var p=n.__importStar(r(274));e.vec4=p},function(t,e,r){"use strict";function n(t){return(n="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=r(1),a=r(64),o=i.__importDefault(r(277)),s=r(280),u=i.__importDefault(r(281)),l=i.__importDefault(r(97)),c=i.__importDefault(r(282)),f=i.__importDefault(r(283)),h=i.__importDefault(r(279)),p=i.__importStar(r(144));e.default=function(t,e){var r,i=n(e);return null==e||"boolean"===i?(0,h.default)(e):("number"===i?l.default:"string"===i?(r=(0,a.color)(e))?(e=r,o.default):f.default:e instanceof a.color?o.default:e instanceof Date?u.default:(0,p.isNumberArray)(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:l.default)(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(42),a=n.__importStar(r(275));e.default={box:function(t,e,r,n){return(0,i.getBBoxByArray)([t,r],[e,n])},length:function(t,e,r,n){return(0,i.distance)(t,e,r,n)},pointAt:function(t,e,r,n,i){return{x:(1-i)*t+i*r,y:(1-i)*e+i*n}},pointDistance:function(t,e,r,n,a,o){var s=(r-t)*(a-t)+(n-e)*(o-e);return s<0?(0,i.distance)(t,e,a,o):s>(r-t)*(r-t)+(n-e)*(n-e)?(0,i.distance)(r,n,a,o):this.pointToLine(t,e,r,n,a,o)},pointToLine:function(t,e,r,n,i,o){var s=[r-t,n-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var u=[-s[1],s[0]];a.normalize(u,u);var l=[i-t,o-e];return Math.abs(a.dot(l,u))},tangentAngle:function(t,e,r,n){return Math.atan2(n-e,r-t)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=void 0;var n=r(1),i=r(3),a=r(77),o=r(43),s=r(12);e.renderTag=function(t,e){var r=e.x,u=e.y,l=e.content,c=e.style,f=e.id,h=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,_=t.addGroup({id:f+"-group",name:h+"-group",attrs:{x:r,y:u}}),x=_.addShape({type:"text",id:f,name:h,attrs:(0,n.__assign)({x:0,y:0,text:l},c)}),b=(0,s.formatPadding)((0,i.get)(m,"padding",0));if(d&&g){var M=d-(b[1]+b[3]);(0,a.ellipsisLabel)(!v,x,M,y)}if(m){var P=(0,i.get)(m,"style",{}),O=x.getCanvasBBox(),S=O.minX,C=O.minY,w=O.width,A=O.height;_.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:(0,n.__assign)({x:S-b[3],y:C-b[0],width:w+b[1]+b[3],height:A+b[0]+b[2]},P)}).toBack()}(0,o.applyTranslate)(_,r,u),(0,o.applyRotate)(_,p,r,u)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(78),o=r(3),s=r(12),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),{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,r=parseFloat(t.style.top)||0;return(0,s.createBBox)(e,r,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 r=this.get("containerClassName");if(r&&(0,s.hasClass)(e,r)){var n=t[r];(0,a.modifyCSS)(e,n)}}},e.prototype.applyChildrenStyles=function(t,e){(0,o.each)(e,(function(e,r){var n=t.getElementsByClassName(r);(0,o.each)(n,(function(t){(0,a.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var r=this.get("domStyles");(0,a.modifyCSS)(e,r[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}(n.__importDefault(r(148)).default);e.default=u},function(t,e,r){"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 n=r(1),i=r(3),a=n.__importDefault(r(306)),o=n.__importStar(r(306)),s=n.__importDefault(r(740));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 u=36e5;e.HOUR=u;var l=24*u;e.DAY=l;var c=31*l;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",u],["HH",6*u],["HH",12*u],["YYYY-MM-DD",l],["YYYY-MM-DD",4*l],["YYYY-WW",7*l],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*l]];e.getTickInterval=function(t,e,r){var n=(e-t)/r,a=(0,s.default)((function(t){return t[1]}))(f,n)-1,o=f[a];return a<0?o=f[0]:a>=f.length&&(o=(0,i.last)(f)),o}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),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(),r=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(r-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,r=(0,a.head)(e),n=(0,a.last)(e);rthis.max&&(this.max=n),(0,a.isNil)(this.minLimit)||(this.min=r),(0,a.isNil)(this.maxLimit)||(this.max=n)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,r=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(this.max)&&(this.max=r),this.min>this.max&&(this.min=e,this.max=r)},e.prototype.calculateTicks=function(){var e=this,r=t.prototype.calculateTicks.call(this);return this.nice||(r=(0,a.filter)(r,(function(t){return t>=e.min&&t<=e.max}))),r},e.prototype.getScalePercent=function(t){var e=this.max,r=this.min;return(t-r)/(e-r)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(n.__importDefault(r(80)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.precisionAdd=e.getLogPositiveMin=e.log=e.calBase=void 0;var n=r(3);function i(t){var e=t.toString().split(/[eE]/),r=(e[0].split(".")[1]||"").length-+(e[1]||0);return r>0?r:0}e.calBase=function(t,e){var r=Math.E;return e>=0?Math.pow(r,Math.log(e)/t):-1*Math.pow(r,Math.log(-e)/t)},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.getLogPositiveMin=function(t,e,r){(0,n.isNil)(r)&&(r=Math.max.apply(null,t));var i=r;return(0,n.each)(t,(function(t){t>0&&t1&&(i=1),i},e.precisionAdd=function(t,e){var r=i(t),n=i(e),a=Math.pow(10,Math.max(r,n));return(t*a+e*a)/a}},function(t,e,r){"use strict";var n=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=r(13);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return n(i).default}});var a=r(312);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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var n=r(0),i=r(2),a=r(4),o=r(49);function s(t,e,r){var n=r.translate(t),a=r.translate(e);return(0,i.isNumberEqual)(n,a)}function u(t,e,r){var n=r.coordinate,o=r.getYScale(),s=o.field,u=n.invert(e),l=o.invert(u.y);return(0,i.find)(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=l&&e[s][1]>=l}))||t[t.length-1]}var l=(0,i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,r=e.length,n=t.translate(e[0]),i=n,a=0;ai&&(i=s)}return(i-n)/(r-1)}));function c(t){var e,r,s,u=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 l=n.__values(u),c=l.next();!c.done;c=l.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&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}var d=t.getXScale(),g=t.getYScale();return s||g||d}function f(t,e,r){if(0===e.length)return null;var n=r.type,o=r.getXScale(),c=r.getYScale(),f=o.field,h=c.field,p=null;if("heatmap"===n||"point"===n){for(var d=r.coordinate.invert(t),g=o.invert(d.x),v=c.invert(d.y),y=1/0,m=0;m(1+a)/2&&(s=o),n.translate(n.invert(s))}(t,r),S=M[a.FIELD_ORIGIN][f],C=M[a.FIELD_ORIGIN][h],w=P[a.FIELD_ORIGIN][f],A=c.isLinear&&(0,i.isArray)(C);if((0,i.isArray)(S)){for(m=0;m=O){if(!A){p=j;break}(0,i.isArray)(p)||(p=[]),p.push(j)}}(0,i.isArray)(p)&&(p=u(p,t,r))}else{var T=void 0;if(o.isLinear||"timeCat"===o.type){if((O>o.translate(w)||Oo.max||OMath.abs(o.translate(T[a.FIELD_ORIGIN][f])-O)&&(P=T)}var k=l(r.getXScale());return!p&&Math.abs(o.translate(P[a.FIELD_ORIGIN][f])-O)<=k/2&&(p=P),p}function h(t,e,r,s){var u,l;void 0===r&&(r=""),void 0===s&&(s=!1);var f,h=t[a.FIELD_ORIGIN],p=function(t,e,r){var n=e.getAttribute("position").getFields(),a=e.scales,o=(0,i.isFunction)(r)||!r?n[0]:r,s=a[o],u=s?s.getText(t[o]):t[o]||o;return(0,i.isFunction)(r)?r(u,t):u}(h,e,r),d=e.tooltipOption,g=e.theme.defaultColor,v=[];function y(e,r){if(s||!(0,i.isNil)(r)&&""!==r){var n={title:p,data:h,mappingData:t,name:e,value:r,color:t.color||g,marker:!0};v.push(n)}}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,n.__spreadArray([],n.__read(x),!1)),M=n.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:p,color:t.color||g,marker:!0},b);v.push(M)}else{var P=e.scales;try{for(var O=n.__values(m),S=O.next();!S.done;S=O.next()){var C=S.value;if(!(0,i.isNil)(h[C])){var w=P[C];y((0,o.getName)(w),f=w.getText(h[C]))}}}catch(t){u={error:t}}finally{try{S&&!S.done&&(l=O.return)&&l.call(O)}finally{if(u)throw u.error}}}}else{var A=c(e);f=function(t,e){var r=t[e.field];return(0,i.isArray)(r)?r.map((function(t){return e.getText(t)})).join("-"):e.getText(r)}(h,A),y(function(t,e){var r,n=e.getGroupScales();if(n.length&&(r=n[0]),r){var i=r.field;return r.getText(t[i])}var a=c(e);return(0,o.getName)(a)}(h,e),f)}return v}function p(t,e,r,a){var o,s,u=a.showNil,l=[],c=t.dataArray;if(!(0,i.isEmpty)(c)){t.sort(c);try{for(var p=n.__values(c),d=p.next();!d.done;d=p.next()){var g=f(e,d.value,t);if(g){var v=t.getElementId(g),y=t.elementsMap[v];if("heatmap"===t.type||y.visible){var m=h(g,t,r,u);m.length&&l.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 l}function d(t,e,r,n){var i=n.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,r,i);s.length&&a.push(s)}return a}function g(t,e,r){var i,a,o=[],s=t.geometries,u=r.shared,l=r.title,c=r.reversed;try{for(var f=n.__values(s),h=f.next();!h.done;h=f.next()){var g=h.value;if(g.visible&&!1!==g.tooltipOption){var v=g.type,y=void 0;(y=["point","edge","polygon"].includes(v)?d(g,e,l,r):["area","line","path","heatmap"].includes(v)||!1!==u?p(g,e,l,r):d(g,e,l,r)).length&&(c&&y.reverse(),o.push(y))}}}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,r){var i,a,o=g(t,e,r);try{for(var s=n.__values(t.views),u=s.next();!u.done;u=s.next()){var l=u.value;o=o.concat(g(l,e,r))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(4),o=r(47),s=r(14),u=n.__importDefault(r(778));function l(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,r=[],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))r.push(null);else{var u=(0,i.isArray)(s.content)?s.content:[s.content];s.content=u;var l=u.length;(0,i.each)(u,(function(a,o){if((0,i.isNil)(a)||""===a)r.push(null);else{var u=n.__assign(n.__assign({},s),e.getLabelPoint(s,t,o));u.textAlign||(u.textAlign=e.getLabelAlign(u,o,l)),u.offset<=0&&(u.labelLine=null),r.push(u)}}))}})),r},t.prototype.render=function(t,e){return void 0===e&&(e=!1),n.__awaiter(this,void 0,void 0,(function(){var r,i,a;return n.__generator(this,(function(n){switch(n.label){case 0:return r=this.getLabelItems(t),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(r,a,e)];case 1:return n.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 r=this.geometry,n=r.type,a=r.theme;return"polygon"===n||"interval"===n&&"middle"===e||t<0&&!["line","point","path"].includes(n)?(0,i.get)(a,"innerLabels",{}):(0,i.get)(a,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,r=this.getDefaultLabelCfg(),n=e.type,a=e.theme;return"polygon"===n||t.offset<0&&!["line","point","path"].includes(n)?(0,i.deepMix)({},r,a.innerLabels,t):(0,i.deepMix)({},r,a.labels,t)},t.prototype.setLabelPosition=function(t,e,r,n){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),r=this.getOffsetVector(t);return e.isTransposed?r[0]:r[1]},t.prototype.getLabelOffsetPoint=function(t,e,r){var n=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===r?n*o:n*o*-1,s},t.prototype.getLabelPoint=function(t,e,r){var n=this.getCoordinate(),a=t.content.length;function o(e,r,n){void 0===n&&(n=!1);var a=e;return(0,i.isArray)(a)&&(a=1===t.content.length?n?l(a):a.length<=2?a[e.length-1]:l(a):a[r]),a}var u={content:t.content[r],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);u.x=h[0],u.y=h[1]}else"interval"!==this.geometry.type||f?(u.x=o(e.x,r),u.y=o(e.y,r)):(u.x=o(e.x,r,!0),u.y=o(e.y,r));if(f){var p=(0,i.get)(e,"nextPoints"),d=(0,i.get)(e,"points");if(p){var g=n.convert(d[1]),v=n.convert(p[1]);u.x=(g.x+v.x)/2,u.y=(g.y+v.y)/2}else if("pyramid"===c){g=n.convert(d[1]),v=n.convert(d[2]);u.x=(g.x+v.x)/2,u.y=(g.y+v.y)/2}}t.position&&this.setLabelPosition(u,e,r,t.position);var y=this.getLabelOffsetPoint(t,r,a);return u.start={x:u.x,y:u.y},u.x+=y.x,u.y+=y.y,u.color=e.color,u},t.prototype.getLabelAlign=function(t,e,r){var n="center";if(this.getCoordinate().isTransposed){var i=t.offset;n=i<0?"right":0===i?"center":"left",r>1&&0===e&&("right"===n?n="left":"left"===n&&(n="right"))}return n},t.prototype.getLabelId=function(t){var e=this.geometry,r=e.type,n=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===r||"area"===r?s+=" ".concat(o[n.field]):"path"===r&&(s+=" ".concat(o[n.field],"-").concat(o[i.field])),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,r=t.labelOption,n=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new u.default({container:e,layout:(0,i.get)(r,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=n,l.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),l},t.prototype.getLabelCfgs=function(t){var e=this,r=this.geometry,o=r.labelOption,s=r.scales,u=r.coordinate,l=o,c=l.fields,f=l.callback,h=l.cfg,p=c.map((function(t){return s[t]})),d=[];return(0,i.each)(t,(function(t,r){var o,s=t[a.FIELD_ORIGIN],l=e.getLabelText(s,p);if(f){var g=c.map((function(t){return s[t]}));if(o=f.apply(void 0,n.__spreadArray([],n.__read(g),!1)),(0,i.isNil)(o))return void d.push(null)}var v=n.__assign(n.__assign({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:u},h),o);(0,i.isFunction)(v.position)&&(v.position=v.position(s,t,r));var y=e.getLabelOffset(v.offset||0),m=e.getDefaultLabelCfg(y,v.position);(v=(0,i.deepMix)({},m,v)).offset=e.getLabelOffset(v.offset||0);var _=v.content;(0,i.isFunction)(_)?v.content=_(s,t,r):(0,i.isUndefined)(_)&&(v.content=l[0]),d.push(v)})),d},t.prototype.getLabelText=function(t,e){var r=[];return(0,i.each)(e,(function(e){var n=t[e.field];n=(0,i.isArray)(n)?n.map((function(t){return e.getText(t)})):e.getText(n),(0,i.isNil)(n)||""===n?r.push(null):r.push(n)})),r},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),r=0;return(0,i.isNumber)(t)&&(r=t),e.isTransposed?e.applyMatrix(r,0):e.applyMatrix(0,r)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,i.each)(t.elementsMap,(function(t,r){e[r]=t.shape})),(0,i.each)(t.getOffscreenGroup().getChildren(),(function(r){var n=t.getElementId(r.get("origin").mappingData);e[n]=r})),e},t}();e.default=c},function(t,e,r){"use strict";function n(t){return(n="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=r(0),a=r(82),o=Math.sin,s=Math.cos,u=Math.atan2,l=Math.PI;function c(t,e,r,n,i,c,f){var h=e.stroke,p=e.lineWidth,d=u(n-c,r-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(l/6)+","+10*o(l/6)+" L0,0 L"+10*s(l/6)+",-"+10*o(l/6),stroke:h,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,d),t.set(f?"startArrowShape":"endArrowShape",g)}function f(t,e,r,n,l,c,f){var h=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,v=f?h:p,y=v.d,m=v.fill,_=v.stroke,x=v.lineWidth,b=(0,i.__rest)(v,["d","fill","stroke","lineWidth"]),M=u(n-c,r-l);y&&(l-=s(M)*y,c-=o(M)*y);var P=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})});P.translate(l,c),P.rotateAtPoint(l,c,M),t.set(f?"startArrowShape":"endArrowShape",P)}e.getShortenOffset=function(t,e,r,n,i){var a=u(n-e,r-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,r,i,a,o){"object"===n(e.startArrow)?f(t,e,r,i,a,o,!0):e.startArrow?c(t,e,r,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,r,i,a,o){"object"===n(e.endArrow)?f(t,e,r,i,a,o,!1):e.endArrow?c(t,e,r,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(23);e.default=function(t,e,r,i,a,o,s){var u=Math.min(t,r),l=Math.max(t,r),c=Math.min(e,i),f=Math.max(e,i),h=a/2;return o>=u-h&&o<=l+h&&s>=c-h&&s<=f+h&&n.Line.pointToLine(t,e,r,i,o,s)<=a/2}},function(t,e,r){"use strict";var n=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=r(27);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return n(i).default}});var a=r(798);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return n(a).default}});var o=r(799);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return n(o).default}});var s=r(800);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return n(s).default}});var u=r(801);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return n(u).default}});var l=r(802);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return n(l).default}});var c=r(803);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return n(c).default}});var f=r(805);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return n(f).default}});var h=r(806);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return n(h).default}});var p=r(807);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return n(p).default}});var d=r(808);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return n(d).default}});var g=r(810);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return n(g).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var n=r(2),i=r(55),a=r(8),o=r(66);function s(t,e,r,i,a){var s=[];if(t.length){for(var u=[],l=[],c=0,f=t.length;c0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,r,n,o){for(var u=(0,a.getStyle)(t,e,!e,"lineWidth"),l=t.connectNulls,c=t.isInCircle,f=t.points,h=t.showSinglePoint,p=(0,i.getPathPoints)(f,l,h),d=[],g=0,v=p.length;g-1}},function(t,e,r){"use strict";function n(t){return(n="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"===n(t)&&null!==t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(57)),a=n.__importDefault(r(21)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,(function(r,n){(0,a.default)(t)&&"prototype"===n||e.push(r)})),e};e.default=o},function(t,e,r){"use strict";function n(t,e){for(var r in e)e.hasOwnProperty(r)&&"constructor"!==r&&void 0!==e[r]&&(t[r]=e[r])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(e){var r=t.call(this)||this;r.destroyed=!1;var n=e.visible,i=void 0===n||n;return r.visible=i,r}return n.__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}(n.__importDefault(r(202)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var n=r(2),i=r(48);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[(0,n.lowerCase)(t)]};e.registerFacet=function(t,e){a[(0,n.lowerCase)(t)]=e}},function(t,e,r){"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 n=r(2),i=r(4),a=r(49),o=r(17);function s(t){var e,r;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},r={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},r={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},r={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},r={x:0,y:1};break;default:e=r={x:0,y:0}}return{start:e,end:r}}function u(t){var e,r;return t.isTransposed?(e={x:0,y:0},r={x:1,y:0}):(e={x:0,y:0},r={x:0,y:1}),{start:e,end:r}}function l(t){var e=t.start,r=t.end;return e.x===r.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=u,e.getAxisRegion=function(t,e){var r={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?r=s(e):t.isPolar&&(r=u(t));var n=r.start,i=r.end;return{start:t.convert(n),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=l,e.getAxisFactorByRegion=function(t,e){var r=t.start,n=t.end;return l(t)?(r.y-n.y)*(e.x-r.x)>0?1:-1:(n.x-r.x)*(r.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var r=(0,n.get)(t,["components","axis"],{});return(0,n.deepMix)({},(0,n.get)(r,["common"],{}),(0,n.deepMix)({},(0,n.get)(r,[e],{})))},e.getAxisTitleOptions=function(t,e,r){var i=(0,n.get)(t,["components","axis"],{});return(0,n.deepMix)({},(0,n.get)(i,["common","title"],{}),(0,n.deepMix)({},(0,n.get)(i,[e,"title"],{})),r)},e.getCircleAxisCenterRadius=function(t){var e=t.x,r=t.y,n=t.circleCenter,i=r.start>r.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-n.x,a.y-n.y],u=[1,0],l=a.y>n.y?o.vec2.angle(s,u):-1*o.vec2.angle(s,u),c=l+(e.end-e.start);return{center:n,radius:Math.sqrt(Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2)),startAngle:l,endAngle:c}},e.getAxisOption=function(t,e){return(0,n.isBoolean)(t)?!1!==t&&{}:(0,n.get)(t,[e])},e.getAxisDirection=function(t,e){return(0,n.get)(t,"position",e)},e.getAxisTitleText=function(t,e){return(0,n.get)(e,["title","text"],(0,a.getName)(t))}},function(t,e,r){"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 n,i=r(0).__importStar(r(34));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],r=t[1],n=t[2];return Math.hypot(e,r,n)}function s(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function u(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function l(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function c(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.hypot(r,n,i)}function f(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}function h(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}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,r){var n=new i.ARRAY_TYPE(3);return n[0]=t,n[1]=e,n[2]=r,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},e.subtract=s,e.multiply=u,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},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,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t},e.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[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,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},e.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,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 r=e[0],n=e[1],i=e[2],a=r*r+n*n+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,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],u=r[2];return t[0]=i*u-a*s,t[1]=a*o-n*u,t[2]=n*s-i*o,t},e.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t},e.hermite=function(t,e,r,n,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+r[0]*u+n[0]*l+i[0]*c,t[1]=e[1]*s+r[1]*u+n[1]*l+i[1]*c,t[2]=e[2]*s+r[2]*u+n[2]*l+i[2]*c,t},e.bezier=function(t,e,r,n,i,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,f=3*u*o,h=u*a;return t[0]=e[0]*l+r[0]*c+n[0]*f+i[0]*h,t[1]=e[1]*l+r[1]*c+n[1]*f+i[1]*h,t[2]=e[2]*l+r[2]*c+n[2]*f+i[2]*h,t},e.random=function(t,e){e=e||1;var r=2*i.RANDOM()*Math.PI,n=2*i.RANDOM()-1,a=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=n*e,t},e.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t},e.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},e.transformQuat=function(t,e,r){var n=r[0],i=r[1],a=r[2],o=r[3],s=e[0],u=e[1],l=e[2],c=i*l-a*u,f=a*s-n*l,h=n*u-i*s,p=i*h-a*f,d=a*c-n*h,g=n*f-i*c,v=2*o;return c*=v,f*=v,h*=v,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=u+f+d,t[2]=l+h+g,t},e.rotateX=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0],a[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),a[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},e.rotateY=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),a[1]=i[1],a[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},e.rotateZ=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),a[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),a[2]=i[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},e.angle=function(t,e){var r=t[0],n=t[1],i=t[2],a=e[0],o=e[1],s=e[2],u=Math.sqrt(r*r+n*n+i*i)*Math.sqrt(a*a+o*o+s*s),l=u&&p(t,e)/u;return Math.acos(Math.min(Math.max(l,-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 r=t[0],n=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},e.sub=s,e.mul=u,e.div=l,e.dist=c,e.sqrDist=f,e.len=o,e.sqrLen=h,e.forEach=(n=a(),function(t,e,r,i,a,o){var s,u;for(e||(e=3),r||(r=0),u=i?Math.min(i*e+r,t.length):t.length,s=r;s=0&&e._call.call(null,t),e=e._next;--o}function _(){c=(l=h.now())+f,o=s=0;try{m()}finally{o=0,function(){var t,e,r=i,n=1/0;for(;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:i=e);a=t,b(n)}(),c=0}}function x(){var t=h.now(),e=t-l;e>1e3&&(f-=e,l=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(_,t-h.now()-f)),u&&(u=clearInterval(u))):(u||(l=h.now(),u=setInterval(x,1e3)),o=1,p(_)))}e.now=d,e.Timer=v,v.prototype=y.prototype={constructor:v,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?d():+r)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=r,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.timer=y,e.timerFlush=m},function(t,e,r){"use strict";function n(t){return(n="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=r(0),a=r(59),o=i.__importDefault(r(216)),s=r(219),u=i.__importDefault(r(220)),l=i.__importDefault(r(88)),c=i.__importDefault(r(221)),f=i.__importDefault(r(222)),h=i.__importDefault(r(218)),p=i.__importStar(r(125));e.default=function(t,e){var r,i=n(e);return null==e||"boolean"===i?(0,h.default)(e):("number"===i?l.default:"string"===i?(r=(0,a.color)(e))?(e=r,o.default):f.default:e instanceof a.color?o.default:e instanceof Date?u.default:(0,p.isNumberArray)(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:l.default)(t,e)}},function(t,e,r){"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 n=r(0).__importStar(r(123));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*",u=/^#([0-9a-f]{3,8})$/,l=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 v(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function m(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?_(e):3===r?new P(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?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=l.exec(t))?new P(e[1],e[2],e[3],1):(e=c.exec(t))?new P(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 P(NaN,NaN,NaN,0):null}function _(t){return new P(t>>16&255,t>>8&255,255&t,1)}function x(t,e,r,n){return n<=0&&(t=e=r=NaN),new P(t,e,r,n)}function b(t){return t instanceof i||(t=m(t)),t?new P((t=t.rgb()).r,t.g,t.b,t.opacity):new P}function M(t,e,r,n){return 1===arguments.length?b(t):new P(t,e,r,null==n?1:n)}function P(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function O(){return"#"+C(this.r)+C(this.g)+C(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 C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function w(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,r,n)}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,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),o=Math.max(e,r,n),s=NaN,u=o-a,l=(o+a)/2;return u?(s=e===o?(r-n)/u+6*(r0&&l<1?0:s,new E(s,u,l,t.opacity)}function T(t,e,r,n){return 1===arguments.length?A(t):new E(t,e,r,null==n?1:n)}function E(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function I(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}(0,n.default)(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return A(this).formatHsl()},formatRgb:y,toString:y}),e.default=m,e.rgbConvert=b,e.rgb=M,e.Rgb=P,(0,n.default)(P,M,(0,n.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new P(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 P(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:O,formatHex:O,formatRgb:S,toString:S})),e.hslConvert=A,e.hsl=T,(0,n.default)(E,T,(0,n.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,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new P(I(t>=240?t-240:t+120,i,n),I(t,i,n),I(t<120?t+240:t-120,i,n),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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=void 0,e.default=function(t,e,r){t.prototype=e.prototype=r,r.constructor=t},e.extend=function(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}},function(t,e,r){"use strict";function n(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=void 0,e.basis=n,e.default=function(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i1&&(r*=Math.sqrt(y),i*=Math.sqrt(y));var m=r*r*(v*v)+i*i*(g*g),_=m?Math.sqrt((r*r*(i*i)-m)/m):1;l===c&&(_*=-1),isNaN(_)&&(_=0);var x=i?_*r*v/i:0,b=r?_*-i*g/r:0,M=(f+p)/2+Math.cos(u)*x-Math.sin(u)*b,P=(h+d)/2+Math.sin(u)*x+Math.cos(u)*b,O=[(g-x)/r,(v-b)/i],S=[(-1*g-x)/r,(-1*v-b)/i],C=o([1,0],O),w=o(O,S);return a(O,S)<=-1&&(w=Math.PI),a(O,S)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:M,cy:P,rx:s(t,[p,d])?0:r,ry:s(t,[p,d])?0:i,startAngle:C,endAngle:C+w,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,r){"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,r){"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 n=r(7),i=n.__importDefault(r(51));e.Attribute=i.default;var a=n.__importDefault(r(509));e.Color=a.default;var o=n.__importDefault(r(510));e.Opacity=o.default;var s=n.__importDefault(r(511));e.Position=s.default;var u=n.__importDefault(r(512));e.Shape=u.default;var l=n.__importDefault(r(513));e.Size=l.default;var c=r(514);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",u.default),(0,c.registerAttribute)("Size",l.default),n.__exportStar(r(239),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),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,u=function(t,e,r,n){return t[n]+(e[n]-t[n])*r};function l(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 r=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return r=l(i.exec(r)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:f,gradient:function(t){var e=(0,n.isString)(t)?t.split("-"):t,r=(0,n.map)(e,(function(t){return f(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var r=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=t.length-1,i=Math.floor(n*r),a=n*r-i,o=t[i],s=i===n?o:t[i+1];return l([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)])}(r,t)}},toRGB:(0,n.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,r=void 0;if("l"===t[0]){var i=+(u=a.exec(t))[1]+90;r=u[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var u;e="radial-gradient(",r=(u=o.exec(t))[4]}var l=r.match(s);return(0,n.each)(l,(function(t,r){var n=t.split(":");e+=n[1]+" "+100*n[0]+"%",r!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);function i(t,e,r){return("ceil"===r?Math.ceil(t/e):"floor"===r?Math.floor(t/e):Math.round(t/e))*e}e.default=function(t,e,r){var a=i(t,r,"floor"),o=i(e,r,"ceil");a=(0,n.fixedBase)(a,r),o=(0,n.fixedBase)(o,r);for(var s=[],u=Math.max((o-a)/(Math.pow(2,12)-1),r),l=a;l<=o;l+=u){var c=(0,n.fixedBase)(l,u);s.push(c)}return{min:a,max:o,ticks:s}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.default=function(t,e,r){var i,a=t.minLimit,o=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,f=(0,n.isNil)(a)?(0,n.isNil)(e)?s:e:a,h=(0,n.isNil)(o)?(0,n.isNil)(r)?u:r: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;g-1}},function(t,e,r){"use strict";function n(t){return(n="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"===n(t)&&null!==t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(62)),a=n.__importDefault(r(25)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,(function(r,n){(0,a.default)(t)&&"prototype"===n||e.push(r)})),e};e.default=o},function(t,e,r){"use strict";function n(t,e){for(var r in e)e.hasOwnProperty(r)&&"constructor"!==r&&void 0!==e[r]&&(t[r]=e[r])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentPoint=e.propagationDelegate=void 0;var n=r(138),i=r(3);e.propagationDelegate=function(t,e,r){var i=new n.Event(e,r);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var a=t.getParent();a;)a.emitDelegation(e,i),i.propagationPath.push(a),a=a.getParent()},e.getCurrentPoint=function(t){return{x:(0,i.get)(t,"touches.0.pageX",t.pageX),y:(0,i.get)(t,"touches.0.pageY",t.pageY)}}},function(t,e,r){"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 n=r(1),i=n.__importStar(r(265));e.PathUtil=i,n.__exportStar(r(622),e),n.__exportStar(r(623),e);var a=r(266);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return n.__importDefault(a).default}});var o=r(267);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return n.__importDefault(o).default}});var s=r(625);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return n.__importDefault(s).default}});var u=r(664);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return n.__importDefault(u).default}});var l=r(665);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return n.__importDefault(l).default}});var c=r(666);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}}),Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return c.registerBBox}});var f=r(289);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return f.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return f.assembleFont}});var h=r(53);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return h.isAllowCapture}});var p=r(139);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=r(290);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}});var g=r(284);Object.defineProperty(e,"registerEasing",{enumerable:!0,get:function(){return g.registerEasing}}),e.version="0.5.11"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var r=[],n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],_=e[7],x=e[8];return r[0]=h*n+p*o+d*l,r[1]=h*i+p*s+d*c,r[2]=h*a+p*u+d*f,r[3]=g*n+v*o+y*l,r[4]=g*i+v*s+y*c,r[5]=g*a+v*u+y*f,r[6]=m*n+_*o+x*l,r[7]=m*i+_*s+x*c,r[8]=m*a+_*u+x*f,r},e.multiplyVec2=function(t,e){var r=[],n=e[0],i=e[1];return r[0]=t[0]*n+t[3]*i+t[6],r[1]=t[1]*n+t[4]*i+t[7],r},e.invert=function(t){var e=[],r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],f=c*o-s*l,h=-c*a+s*u,p=l*a-o*u,d=r*f+n*h+i*p;return d?(d=1/d,e[0]=f*d,e[1]=(-c*n+i*l)*d,e[2]=(s*n-i*o)*d,e[3]=h*d,e[4]=(c*r-i*u)*d,e[5]=(-s*r+i*a)*d,e[6]=p*d,e[7]=(-l*r+n*u)*d,e[8]=(o*r-n*a)*d,e):null}},function(t,e,r){"use strict";function n(t){return(n="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.timerFlush=e.timer=e.Timer=e.now=void 0;var i,a,o=0,s=0,u=0,l=0,c=0,f=0,h="object"===("undefined"==typeof performance?"undefined":n(performance))&&performance.now?performance:Date,p="object"===("undefined"==typeof window?"undefined":n(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return c||(p(g),c=h.now()+f)}function g(){c=0}function v(){this._call=this._time=this._next=null}function y(t,e,r){var n=new v;return n.restart(t,e,r),n}function m(){d(),++o;for(var t,e=i;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function _(){c=(l=h.now())+f,o=s=0;try{m()}finally{o=0,function(){var t,e,r=i,n=1/0;for(;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:i=e);a=t,b(n)}(),c=0}}function x(){var t=h.now(),e=t-l;e>1e3&&(f-=e,l=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(_,t-h.now()-f)),u&&(u=clearInterval(u))):(u||(l=h.now(),u=setInterval(x,1e3)),o=1,p(_)))}e.now=d,e.Timer=v,v.prototype=y.prototype={constructor:v,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?d():+r)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=r,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.timer=y,e.timerFlush=m},function(t,e,r){"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 n=r(1).__importStar(r(142));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*",u=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\(".concat(a,",").concat(a,",").concat(a,"\\)$")),c=new RegExp("^rgb\\(".concat(s,",").concat(s,",").concat(s,"\\)$")),f=new RegExp("^rgba\\(".concat(a,",").concat(a,",").concat(a,",").concat(o,"\\)$")),h=new RegExp("^rgba\\(".concat(s,",").concat(s,",").concat(s,",").concat(o,"\\)$")),p=new RegExp("^hsl\\(".concat(o,",").concat(s,",").concat(s,"\\)$")),d=new RegExp("^hsla\\(".concat(o,",").concat(s,",").concat(s,",").concat(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 v(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function m(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?_(e):3===r?new P(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?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=l.exec(t))?new P(e[1],e[2],e[3],1):(e=c.exec(t))?new P(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))?T(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?T(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?_(g[t]):"transparent"===t?new P(NaN,NaN,NaN,0):null}function _(t){return new P(t>>16&255,t>>8&255,255&t,1)}function x(t,e,r,n){return n<=0&&(t=e=r=NaN),new P(t,e,r,n)}function b(t){return t instanceof i||(t=m(t)),t?new P((t=t.rgb()).r,t.g,t.b,t.opacity):new P}function M(t,e,r,n){return 1===arguments.length?b(t):new P(t,e,r,null==n?1:n)}function P(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function O(){return"#".concat(A(this.r)).concat(A(this.g)).concat(A(this.b))}function S(){var t=C(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(w(this.r),", ").concat(w(this.g),", ").concat(w(this.b)).concat(1===t?")":", ".concat(t,")"))}function C(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function w(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function A(t){return((t=w(t))<16?"0":"")+t.toString(16)}function T(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new D(t,e,r,n)}function E(t){if(t instanceof D)return new D(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new D;if(t instanceof D)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),o=Math.max(e,r,n),s=NaN,u=o-a,l=(o+a)/2;return u?(s=e===o?(r-n)/u+6*(r0&&l<1?0:s,new D(s,u,l,t.opacity)}function I(t,e,r,n){return 1===arguments.length?E(t):new D(t,e,r,null==n?1:n)}function D(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function L(t){return(t=(t||0)%360)<0?t+360:t}function j(t){return Math.max(0,Math.min(1,t||0))}function k(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}(0,n.default)(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return E(this).formatHsl()},formatRgb:y,toString:y}),e.default=m,e.rgbConvert=b,e.rgb=M,e.Rgb=P,(0,n.default)(P,M,(0,n.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new P(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 P(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new P(w(this.r),w(this.g),w(this.b),C(this.opacity))},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:O,formatHex:O,formatHex8:function(){return"#".concat(A(this.r)).concat(A(this.g)).concat(A(this.b)).concat(A(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:S,toString:S})),e.hslConvert=E,e.hsl=I,(0,n.default)(D,I,(0,n.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new D(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new D(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,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new P(k(t>=240?t-240:t+120,i,n),k(t,i,n),k(t<120?t+240:t-120,i,n),this.opacity)},clamp:function(){return new D(L(this.h),j(this.s),j(this.l),C(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=C(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(L(this.h),", ").concat(100*j(this.s),"%, ").concat(100*j(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=void 0,e.default=function(t,e,r){t.prototype=e.prototype=r,r.constructor=t},e.extend=function(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}},function(t,e,r){"use strict";function n(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=void 0,e.basis=n,e.default=function(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i1&&(r*=Math.sqrt(y),i*=Math.sqrt(y));var m=r*r*(v*v)+i*i*(g*g),_=m?Math.sqrt((r*r*(i*i)-m)/m):1;l===c&&(_*=-1),isNaN(_)&&(_=0);var x=i?_*r*v/i:0,b=r?_*-i*g/r:0,M=(f+p)/2+Math.cos(u)*x-Math.sin(u)*b,P=(h+d)/2+Math.sin(u)*x+Math.cos(u)*b,O=[(g-x)/r,(v-b)/i],S=[(-1*g-x)/r,(-1*v-b)/i],C=o([1,0],O),w=o(O,S);return a(O,S)<=-1&&(w=Math.PI),a(O,S)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:M,cy:P,rx:s(t,[p,d])?0:r,ry:s(t,[p,d])?0:i,startAngle:C,endAngle:C+w,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(138),a=r(3),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var r=t.call(this,e)||this;return r.initCfg(),r}return(0,n.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,r=this.get("defaultCfg")||{};(0,a.each)(t,(function(t,n){var i=t;e.get(n)!==t&&((0,a.isObject)(t)&&r[n]&&(i=(0,a.deepMix)({},r[n],t)),e.set(n,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,a.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,a.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=(0,n.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},r=this.get("locationType"),n=o[r];return(0,a.each)(n,(function(r){e[r]=t.get(r)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");(0,a.each)(e,(function(e,r){var n=t.get(r);if((0,a.isObject)(n)){var i=(0,a.deepMix)({},e,n);t.set(r,i)}}))},e}(i.Base);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(76),o=r(3),s=n.__importDefault(r(11)),u=r(43),l=r(301),c=n.__importDefault(r(26)),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:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:c.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:c.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:c.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:c.default.textColor,fontFamily:c.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:c.default.textColor,textBaseline:"middle",fontFamily:c.default.fontFamily,textAlign:"center"},iconStyle:{fill:c.default.descriptionIconFill,stroke:c.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:c.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){(0,o.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,r){t[e]=r,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),r=[];return(0,o.each)(e,(function(e,n){t[n]&&r.push(n)})),r},e.prototype.clearItemsState=function(t){var e=this,r=this.getItemsByState(t);(0,o.each)(r,(function(r){e.setItemState(r,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,r=this.getItems();return(0,o.filter)(r,(function(r){return e.hasState(r,t)}))},e.prototype.getSidePoint=function(t,e){var r=this.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},e.prototype.getTextAnchor=function(t){var e;return(0,o.isNumberEqual)(t[0],0)?e="center":t[0]>0?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(),r=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,o.mix)({path:e},r.style)})},e.prototype.getTickLineItems=function(t){var e=this,r=[],n=this.get("tickLine"),i=n.alignTick,a=n.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),(0,o.each)(t,(function(t){var n=t.point;i||(n=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(n,a);r.push({startPoint:n,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),r},e.prototype.getSubTickLineItems=function(t){var e=[],r=this.get("subTickLine"),n=r.count,i=t.length;if(i>=2)for(var a=0;a0){var r=(0,o.size)(e);if(r>t.threshold){var n=Math.ceil(r/t.threshold),i=e.filter((function(t,e){return e%n==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,r){var n=this.get("label"),i=n.offset,a=n.offsetX,s=n.offsetY,l=n.rotate,c=n.formatter,f=this.getSidePoint(t.point,i),h=this.getSideVector(i,f),p=c?c(t.name,t,e):t.name,d=n.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 l&&(g.matrix=(0,u.getMatrixByAngle)(f,l)),g},e.prototype.drawLabels=function(t){var e=this,r=this.get("ticks"),n=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,o.each)(r,(function(t,i){e.addShape(n,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,r),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(n);var i=n.getChildren(),a=(0,o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),u=s.style,l=s.formatter;if((0,o.isFunction)(u)){var c=i.map((function(t){return(0,o.get)(t.get("delegateObject"),"tick")}));(0,o.each)(i,(function(t,e){var r=t.get("delegateObject").tick,n=l?l(r.name,r,e):r.name,i=(0,o.mix)({},a,u(n,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,r=t.position,n=t.offset,i=t.spacing,s=void 0===i?0:i,l=t.autoRotate,c=e.fontSize,f=.5;"start"===r?f=0:"end"===r&&(f=1);var h=this.getTickPoint(f),p=this.getSidePoint(h,n||s+c/2),d=(0,o.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,v=g;if((0,o.isNil)(g)&&l){var y=this.getAxisVector(h);v=a.ext.angleTo(y,[1,0],!0)}if(v){var m=(0,u.getMatrixByAngle)(p,v);d.matrix=m}return d},e.prototype.drawTitle=function(t){var e,r=this.getTitleAttrs(),n=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:r});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,n,r.matrix)},e.prototype.drawDescriptionIcon=function(t,e,r){var n=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),a=e.getBBox(),o=a.maxX,s=a.maxY,u=a.height,l=this.get("title").iconStyle,c=u/2,f=c/6,h=o+4,p=s-u/2,d=[h+c,p-c],g=d[0],v=d[1],y=[g+c,v+c],m=y[0],_=y[1],x=[g,_+c],b=x[0],M=x[1],P=[h,v+c],O=P[0],S=P[1],C=[h+c,p-u/4],w=C[0],A=C[1],T=[w,A+f],E=T[0],I=T[1],D=[E,I+f],L=D[0],j=D[1],k=[L,j+3*c/4],B=k[0],R=k[1];this.addShape(n,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,i.__assign)({path:[["M",g,v],["A",c,c,0,0,1,m,_],["A",c,c,0,0,1,b,M],["A",c,c,0,0,1,O,S],["A",c,c,0,0,1,g,v],["M",w,A],["L",E,I],["M",L,j],["L",B,R]],lineWidth:f,matrix:r},l)}),this.addShape(n,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:p-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:r,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var r=this.get("tickStates"),n=this.getElementId("label-"+t.id),i=e.findById(n);if(i){var a=(0,l.getStatesStyle)(t,"label",r);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var u=(0,l.getStatesStyle)(t,"tickLine",r);u&&s.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),r=this.get("tickStates"),n=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,l.getStatesStyle)(t,"label",r);s&&i.attr(s)}if(o){var u=(0,l.getStatesStyle)(t,"tickLine",r);u&&o.attr(u)}}else i&&i.attr(n.style),o&&o.attr(a.style)},e}(s.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=r(43),u=n.__importDefault(r(26)),l=r(12),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:u.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:u.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:u.default.fontFamily}},textBackground:{padding:5,style:{stroke:u.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"),r=e.style,n=e.autoRotate,o=e.content;if(!(0,a.isNil)(o)){var u=this.getTextPoint(),l=null;if(n){var c=this.getRotateAngle();l=(0,s.getMatrixByAngle)(u,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},u),{text:o,matrix:l}),r)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),r=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,i.__assign)({path:e},r)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),r=t.findById(e),n=this.get("textBackground");if(n&&r){var a=r.getBBox(),o=(0,l.formatPadding)(n.padding),s=n.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:r.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=n.__importDefault(r(26)),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:"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 r=this.getGridPath(t),n=e.slice(0).reverse(),i=this.getGridPath(n,!0);return this.get("closed")?r=r.concat(i):(i[0][0]="L",(r=r.concat(i)).push(["Z"])),r},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,r=this.get("line"),n=this.get("items"),i=this.get("alternateColor"),o=null;(0,a.each)(n,(function(s,u){var l=s.id||u;if(r){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,u,n):c;var f=e.getElementId("line-"+l),h=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:(0,a.mix)({path:h},c)})}if(i&&u>0){var p=e.getElementId("region-"+l),d=u%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,r,n,i){var a=this.getAlternatePath(r,n);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=n.__importDefault(r(11)),o=r(12),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),r=this.get("maxWidth"),n=this.get("maxHeight"),i=e.width,a=e.height;return r&&(i=Math.min(i,r)),n&&(a=Math.min(a,n)),(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"),r=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+r,y:e+n})},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"),r=t.getBBox(),n=(0,o.formatPadding)(e.padding),a=(0,i.__assign)({x:0,y:0,width:r.width+n[1]+n[3],height:r.height+n[0]+n[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"),r=this.get("title"),n=r.spacing,a=r.style,o=r.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+n})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var r=(0,o.formatPadding)(t.padding);e.x=r[3],e.y=r[0]}this.set("currentPoint",e)},e}(a.default);e.default=s},function(t,e,r){"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3);function i(t,e,r){return("ceil"===r?Math.ceil(t/e):"floor"===r?Math.floor(t/e):Math.round(t/e))*e}e.default=function(t,e,r){var a=i(t,r,"floor"),o=i(e,r,"ceil");a=(0,n.fixedBase)(a,r),o=(0,n.fixedBase)(o,r);for(var s=[],u=Math.max((o-a)/(Math.pow(2,12)-1),r),l=a;l<=o;l+=u){var c=(0,n.fixedBase)(l,u);s.push(c)}return{min:a,max:o,ticks:s}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3);e.default=function(t,e,r){var i,a=t.minLimit,o=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,f=(0,n.isNil)(a)?(0,n.isNil)(e)?s:e:a,h=(0,n.isNil)(o)?(0,n.isNil)(r)?u:r: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;g-1)return;n.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===l)return;if(n.splice(l,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(u,o,this.getOffscreenGroup());n.length?this.syncShapeStyle(s,p,n,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,r={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(r=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();r.x=Math.min(e.x,r.x),r.y=Math.min(e.y,r.y),r.minX=Math.min(e.minX,r.minX),r.minY=Math.min(e.minY,r.minY),r.maxX=Math.max(e.maxX,r.maxX),r.maxY=Math.max(e.maxY,r.maxY)})),r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,r=this.shapeFactory,n=e.stateOption,a=r.defaultShapeType,o=r.theme[t]||r.theme[a];this.statesStyle=(0,i.deepMix)({},o,n)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var r=this.getStatesStyle(),n=(0,i.get)(r,[t,"style"],{}),a=n[e]||n;return(0,i.isFunction)(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,r=this.animate;if(r){var a=r[t];return a?n.__assign(n.__assign({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){var r;void 0===e&&(e=!1);var a=this.shapeFactory,s=this.container,u=this.shapeType;if(this.shape=a.drawShape(u,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===(r=this.geometry)||void 0===r||r.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,h,{coordinate:a.coordinate,toAttrs:n.__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 r=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){r.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,r,n,a){var s,f=this;if(void 0===r&&(r=[]),void 0===a&&(a=0),t&&e){var h=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(h,p,r,n),t.isGroup())for(var d=t.get("children"),g=e.get("children"),v=0;v1){o.sort();var y=function(t,e){var r=t.length,i=t;(0,n.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);u=(a.max-a.min)/y,o.length>u&&(u=o.length)}var m=a.range,_=1/u,x=1;if(r.isPolar?x=r.isTransposed&&u>1?g:v:(a.isLinear&&(_*=m[1]-m[0]),x=d),!(0,n.isNil)(c)&&c>=0?_=(1-(u-1)*(c/l))/u:_*=x,t.getAdjust("dodge")){var b=function(t,e){if(e){var r=(0,n.flatten)(t);return(0,n.valuesOfKey)(r,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!(0,n.isNil)(f)&&f>=0)_=(_-f/l*(b-1))/b;else!(0,n.isNil)(c)&&c>=0?(_*=x,_/=b):_/=b;_=_>=0?_:0}if(!(0,n.isNil)(h)&&h>=0){var M=h/l;_>M&&(_=M)}if(!(0,n.isNil)(p)&&p>=0){var P=p/l;_1){var p=r.addGroup();try{for(var d=n.__values(f),g=d.next();!g.done;g=d.next()){var v=g.value;p.addShape({type:"marker",attrs:n.__assign(n.__assign(n.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),v)})}}catch(t){u={error:t}}finally{try{g&&!g.done&&(l=d.return)&&l.call(d)}finally{if(u)throw u.error}}return p}return r.addShape({type:"marker",attrs:n.__assign(n.__assign(n.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),h)})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var n=r(4);function i(t){return t===n.DIRECTION.LEFT?n.DIRECTION.RIGHT:t===n.DIRECTION.RIGHT?n.DIRECTION.LEFT:t}function a(t){return t===n.DIRECTION.TOP?n.DIRECTION.BOTTOM:t===n.DIRECTION.BOTTOM?n.DIRECTION.TOP:t}e.directionToPosition=function(t,e,r){return r===n.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:r===n.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:r===n.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:r===n.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:r===n.DIRECTION.TOP_LEFT||r===n.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:r===n.DIRECTION.TOP_RIGHT||r===n.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:r===n.DIRECTION.BOTTOM_LEFT||r===n.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:r===n.DIRECTION.BOTTOM_RIGHT||r===n.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},e.getTranslateDirection=function(t,e){var r=t;return r=function(t,e){var r=t;return e.isReflect("x")&&(r=i(r)),e.isReflect("y")&&(r=a(r)),r}(r=function(t,e){var r=e.matrix[0],n=e.matrix[4],o=t;return r<0&&(o=i(o)),n<0&&(o=a(o)),o}(r=function(t,e){if(e.isTransposed)switch(t){case n.DIRECTION.BOTTOM:return n.DIRECTION.LEFT;case n.DIRECTION.LEFT:return n.DIRECTION.BOTTOM;case n.DIRECTION.RIGHT:return n.DIRECTION.TOP;case n.DIRECTION.TOP:return n.DIRECTION.RIGHT}return t}(r,e),e),e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(6);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 n.__extends(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(r){return e.hasState(t,r)})).length},e.prototype.setStateByComponent=function(t,e,r){var n=this.context.view,i=t.get("field"),o=(0,a.getElements)(n);this.setElementsStateByItem(o,i,e,r)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,r){var n=this.context.view,o=(0,a.getScaleByField)(n,e),s=(0,a.getElementValue)(t,e);return!(0,i.isNil)(s)&&r.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,r,n){var a=this;(0,i.each)(t,(function(t){a.isMathItem(t,e,r)&&t.setState(a.stateName,n)}))},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 r=(0,a.getDelegationObject)(this.context);if((0,a.isList)(r)){var n=r.item,i=r.component;if(n&&i&&!this.isItemIgnore(n,i)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(i,n,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}(n.__importDefault(r(173)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(13)),o=r(6),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return n.__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,r=(0,o.getElementsByState)(t,this.stateName);(0,i.each)(r,(function(t){e.setElementState(t,!1)}))},e}(a.default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(6),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 n.__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,r=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!r)return;var n={minX:Math.min(e.x,r.x),minY:Math.min(e.y,r.y),maxX:Math.max(e.x,r.x),maxY:Math.max(e.y,r.y)},i=this.context.view;t=(0,a.getIntersectElements)(i,n)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=(0,a.getElements)(this.context.view),r=this.getIntersectElements();r&&r.length?this.effectByRecord?this.setSiblingsStateByRecord(r,t):this.setElementsState(r,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var r=this,n=this.context.view,o=(0,a.getSilbings)(n),s=t.map((function(t){return t.getModel().data})),u=n.getXScale().field,l=n.getYScales()[0].field;(0,i.each)(o,(function(t){var n=(0,a.getElements)(t),i=n.filter((function(t){var e=t.getModel().data;return(0,a.isInRecords)(s,e,u,l)}));r.setElementsState(i,e,n)}))},e.prototype.setSiblingsState=function(t){var e=this,r=this.context.view,n=(0,a.getSilbings)(r);(0,a.isMask)(this.context)&&(0,i.each)(n,(function(r){var n=(0,a.getElements)(r),i=(0,a.getSiblingMaskElements)(e.context,r,10);i&&i.length?e.setElementsState(i,t,n):e.clearViewState(r)}))},e.prototype.setElementsState=function(t,e,r){var n=this;(0,i.each)(r,(function(r){t.includes(r)?n.setElementState(r,e):n.setElementState(r,!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 r=(0,a.getSilbings)(e);(0,i.each)(r,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(n.__importDefault(r(173)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(6),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__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}(n.__importDefault(r(173)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var n=r(0),i=r(2),a=r(6),o=r(177),s=n.__importDefault(r(172)),u=r(4);e.STATUS_UNACTIVE=u.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=u.ELEMENT_STATE.ACTIVE;var l=function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.stateName=e.STATUS_ACTIVE,r}return n.__extends(r,t),r.prototype.setElementsStateByItem=function(t,e,r,n){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,r)}),n)},r.prototype.setElementHighlight=function(t,r){r(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)},r.prototype.setHighlightBy=function(t,r,n){var o=this;if(n)(0,i.each)(t,(function(t){o.setElementHighlight(t,r)}));else{var s=(0,a.getElementsByState)(this.context.view,e.STATUS_ACTIVE),u=!0;(0,i.each)(s,(function(t){if(!r(t))return u=!1,!1})),u?this.clear():(0,i.each)(t,(function(t){r(t)&&(t.hasState(e.STATUS_ACTIVE)&&t.setState(e.STATUS_ACTIVE,!1),t.setState(e.STATUS_UNACTIVE,!0))}))}},r.prototype.setElementState=function(t,e){var r=this.context.view,n=(0,a.getElements)(r);this.setHighlightBy(n,(function(e){return t===e}),e)},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.context.view;(0,o.clearHighlight)(t)},r}(s.default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHighlightBy=e.clearHighlight=void 0;var n=r(2),i=r(6);e.clearHighlight=function(t){var e=(0,i.getElements)(t);(0,n.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.setHighlightBy=function(t,e,r){(0,n.each)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",r)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",r))}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),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 n.__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),r=this.context.view,n=this.context.event;r.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:n.x,y:n.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:n.__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,r=t.x-e.x,n=t.y-e.y,a=this.points;(0,i.each)(a,(function(t){t.x+=r,t.y+=n})),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}(n.__importDefault(r(13)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaskAttrs=e.getRegion=void 0;var n=r(0),i=r(2),a=n.__importDefault(r(178));function o(t){return{start:(0,i.head)(t),end:(0,i.last)(t)}}function s(t,e){return{x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}e.getRegion=o,e.getMaskAttrs=s;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return n.__extends(e,t),e.prototype.getRegion=function(){return o(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion();return s(t.start,t.end)},e}(a.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaskAttrs=e.getMaskPath=void 0;var n=r(0),i=r(2),a=n.__importDefault(r(178));function o(t){var e=[];return t.length&&((0,i.each)(t,(function(t,r){0===r?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e}function s(t){return{path:o(t)}}e.getMaskPath=o,e.getMaskAttrs=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getMaskPath=function(){return o(this.points)},e.prototype.getMaskAttrs=function(){return s(this.points)},e.prototype.addPoint=function(){this.resize()},e}(a.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShapes=[],e.starting=!1,e.moving=!1,e.recordPoints=null,e.preMovePoint=null,e.shapeType="path",e.maskType="multi-mask",e}return n.__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="".concat(this.maskType,":").concat(t),r=this.context.view,n=this.context.event,i={type:this.shapeType,name:this.maskType,get:function(t){return i.hasOwnProperty(t)?i[t]:void 0}};r.emit(e,{target:i,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:n.x,y:n.y})},e.prototype.createMask=function(t){var e=this.context.view,r=this.recordPoints[t],i=this.getMaskAttrs(r),a=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:n.__assign({fill:"#C5D4EB",opacity:.3},i)});this.maskShapes.push(a)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!1),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,r=t.x-e.x,n=t.y-e.y,i=this.getCurMaskShapeIndex();i>-1&&(this.recordPoints[i].forEach((function(t){t.x+=r,t.y+=n})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(r,n){var a=(0,i.deepMix)({},e.getMaskAttrs(r),t);e.maskShapes[n].attr(a)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return n.__spreadArray([],n.__read(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=n.__spreadArray(n.__spreadArray([],n.__read(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),r=t.splice(-1,1)[0]||[];r.push(e),this.recordPoints=n.__spreadArray(n.__spreadArray([],n.__read(t),!1),[r],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var r=e.attrs,n=r.width,i=r.height,a=r.r;return!(0===n||0===i||0===a)&&e.isHit(t.x,t.y)}))},e}(n.__importDefault(r(13)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(20));e.default=function(t,e){if(!(0,n.default)(t))return t;for(var r=[],i=0;i2&&(r.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&r.push([i,s[0]]),"r"===u)r.push([i].concat(s));else for(;s.length>=e[u]&&(r.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),r};e.parsePathString=s;var u=function(t,e){for(var r=[],n=0,i=t.length;i-2*!e>n;n+=2){var a=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?i-4===n?a[3]={x:+t[0],y:+t[1]}:i-2===n&&(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===n?a[3]=a[2]:n||(a[0]={x:+t[n],y:+t[n+1]}),r.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 r};e.catmullRomToBezier=u;var l=function(t,e,r,n,i){var a=[];if(null===i&&null===n&&(n=r),t=+t,e=+e,r=+r,n=+n,null!==i){var o=Math.PI/180,s=t+r*Math.cos(-n*o),u=t+r*Math.cos(-i*o);a=[["M",s,e+r*Math.sin(-n*o)],["A",r,r,0,+(i-n>180),0,u,e+r*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,r,n=[],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++,n[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,v=t.length;g1&&(n*=M=Math.sqrt(M),i*=M);var P=n*n,O=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((P*O-P*b*b-O*x*x)/(P*b*b+O*x*x)));d=S*n*b/i+(e+u)/2,g=S*-i*x/n+(r+l)/2,h=Math.asin(((r-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),h=ep&&(h-=2*Math.PI),!s&&p>h&&(p-=2*Math.PI)}var C=p-h;if(Math.abs(C)>v){var w=p,A=u,T=l;p=h+v*(s&&p>h?1:-1),m=t(u=d+n*Math.cos(p),l=g+i*Math.sin(p),n,i,a,0,s,A,T,[p,w,d,g])}C=p-h;var E=Math.cos(h),I=Math.sin(h),D=Math.cos(p),L=Math.sin(p),j=Math.tan(C/4),k=4/3*n*j,B=4/3*i*j,R=[e,r],F=[e+k*I,r-B*E],N=[u+k*L,l-B*D],Y=[u,l];if(F[0]=2*R[0]-F[0],F[1]=2*R[1]-F[1],c)return[F,N,Y].concat(m);for(var G=[],V=0,H=(m=[F,N,Y].concat(m).join().split(",")).length;V7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),r=Math.max(n.length,i&&i.length||0)}},y=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],r=Math.max(n.length,i&&i.length||0))};r=Math.max(n.length,i&&i.length||0);for(var m=0;m1?1:u<0?0:u)/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=l*c[p]+l,g=y(d,t,r,i,o),v=y(d,e,n,a,s),m=g*g+v*v;h+=f[p]*Math.sqrt(m)}return l*h},_=function(t,e,r,n,i,a,o,s){for(var u,l,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*r+6*i,u=-3*t+9*r-9*i+3*o,c=3*r-3*t):(l=6*e-12*n+6*a,u=-3*e+9*n-9*a+3*s,c=3*n-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(f=-c/l)>0&&f<1&&h.push(f)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-l-v)/(2*u);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*r+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*n+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,r,n,i,a,o,s){if(!(Math.max(t,r)Math.max(i,o)||Math.max(e,n)Math.max(a,s))){var u=(t-r)*(a-s)-(e-n)*(i-o);if(u){var l=((t*n-e*r)*(i-o)-(t-r)*(i*s-a*o))/u,c=((t*n-e*r)*(a-s)-(e-n)*(i*s-a*o))/u,f=+l.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},b=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},M=function(t,e,r,n,i){if(i)return[["M",+t+ +i,e],["l",r-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-r,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]];return a.parsePathArray=v,a};e.rectPath=M;var P=function(t,e,r,n){return null===t&&(t=e=r=n=0),null===e&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:M(t,e,r,n),vb:[t,e,r,n].join(" ")}},O=function(t,e,r,i,a,o,s,u){(0,n.isArray)(t)||(t=[t,e,r,i,a,o,s,u]);var l=_.apply(null,t);return P(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,r,n,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),f=Math.pow(l,2),h=u*u,p=h*u,d=t+2*u*(r-t)+h*(i-2*r+t),g=e+2*u*(n-e)+h*(a-2*n+e),v=r+2*u*(i-r)+h*(o-2*i+r),y=n+2*u*(a-n)+h*(s-2*a+n);return{x:c*t+3*f*u*r+3*l*u*u*i+p*o,y:c*e+3*f*u*n+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:l*t+u*r,y:l*e+u*n},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},C=function(t,e,r){if(!function(t,e){return t=P(t),e=P(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)}(O(t),O(e)))return r?0:[];for(var n=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},u=r?0:[],l=0;l=0&&M<=1&&C>=0&&C<=1&&(r?u+=1:u.push({x:_.x,y:_.y,t1:M,t2:C}))}}return u};function w(t,e){var r=[],n=[];return t.length&&function t(e,i){if(1===e.length)r.push(e[0]),n.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,r));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=r-1;a++)n.push(i)}return n};e.fillPath=function(t,e){if(1===t.length)return t;var r=t.length-1,n=e.length-1,i=r/n,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(n=t.length);if(n0)){t[n]=e[n];break}r=I(r,t[n-1],1)}t[n]=["Q"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[n]=["T"].concat(r[0]);break;case"C":if(r.length<3){if(!(n>0)){t[n]=e[n];break}r=I(r,t[n-1],2)}t[n]=["C"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(r.length<2){if(!(n>0)){t[n]=e[n];break}r=I(r,t[n-1],1)}t[n]=["S"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[n]=e[n]}return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=n.__importDefault(r(202)),o=r(50),s=function(t){function e(e){var r=t.call(this)||this;r.destroyed=!1;var n=r.getDefaultCfg();return r.cfg=(0,o.mix)(n,e),r}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,r){"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 r=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,a=e.length;i1)for(var r=1;r0)}));return u.length>0?((0,s.each)(u,(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),r=(0,a.min)(o),n=(0,a.max)(o)):(t=0,e=0,r=0,n=0),{x:t,y:r,minX:t,minY:r,maxX:e,maxY:n,width:e-t,height:n-r}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,r=1/0,n=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?((0,s.each)(u,(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),r=(0,a.min)(o),n=(0,a.max)(o)):(t=0,e=0,r=0,n=0),{x:t,y:r,minX:t,minY:r,maxX:e,maxY:n,width:e-t,height:n-r}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,r,n){if(t.prototype.onAttrChange.call(this,e,r,n),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var r=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var n=this.getTotalMatrix();n!==r&&this._applyChildrenMarix(n)},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,r,n):o.isHit(e,r)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),r=this.getChildren(),n=this.get("timeline"),i=t.getParent();i&&function(t,e,r){void 0===r&&(r=!0),r?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,r){if(e.set("canvas",r),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){t(e,r)}))}}(t,e),n&&function t(e,r){if(e.set("timeline",r),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){t(e,r)}))}}(t,n),r.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,r){var n=t(e,r);return 0===n?e._INDEX-r._INDEX:n})),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=[],r=this.getChildren();return(0,s.each)(r,(function(r){t(r)&&e.push(r),r.isGroup()&&(e=e.concat(r.findAll(t)))})),e},e.prototype.find=function(t){var e=null,r=this.getChildren();return(0,s.each)(r,(function(r){if(t(r)?e=r:r.isGroup()&&(e=r.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=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(17),s=r(50),u=r(119),l=n.__importDefault(r(205)),c=o.ext.transform,f=["zIndex","capture","visible","type"],h=["repeat"];function p(t,e){var r={},n=e.attrs;for(var i in t)r[i]=n[i];return r}function d(t,e){var r={},n=e.attr();return(0,a.each)(t,(function(t,e){-1!==h.indexOf(e)||(0,a.isEqual)(n[e],t)||(r[e]=t)})),r}function g(t,e){if(e.onFrame)return t;var r=e.startTime,n=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){r+nt.delay&&(0,a.each)(e.toAttrs,(function(e,r){o.call(t.toAttrs,r)&&(delete t.toAttrs[r],delete t.fromAttrs[r])}))})),t}var v=function(t){function e(e){var r=t.call(this,e)||this;r.attrs={};var n=r.getDefaultAttrs();return(0,a.mix)(n,e.attrs),r.attrs=n,r.initAttrs(n),r.initAnimate(),r}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=[],r=0;r0?n=g(n,M):r.addAnimator(this),n.push(M),this.set("animations",n),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var r=this.get("animations");(0,a.each)(r,(function(r){t&&(r.onFrame?e.attr(r.onFrame(1)):e.attr(r.toAttrs)),r.callback&&r.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),r=t.getTime();return(0,a.each)(e,(function(t){t._paused=!0,t._pauseTime=r,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:r}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),r=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-r),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 r,n=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?r=e.fromShape:"mouseleave"===t&&(r=e.toShape);for(var o=function(t){var o=i[t],l=o.get("name");if(l){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&r&&(0,s.isParent)(o,r))return"break";(0,a.isArray)(l)?(0,a.each)(l,(function(t){n.emitDelegateEvent(o,t,e)})):u.emitDelegateEvent(o,l,e)}},u=this,l=0;l0?(r[0]=2*(l*u+h*i+c*s-f*a)/p,r[1]=2*(c*u+h*a+f*i-l*s)/p,r[2]=2*(f*u+h*s+l*a-c*i)/p):(r[0]=2*(l*u+h*i+c*s-f*a),r[1]=2*(c*u+h*a+f*i-l*s),r[2]=2*(f*u+h*s+l*a-c*i)),o(t,e,r),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 r=new n.ARRAY_TYPE(3);s(r,e);var i=1/r[0],a=1/r[1],o=1/r[2],u=e[0]*i,l=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,v=e[10]*o,y=u+h+v,m=0;return y>0?(m=2*Math.sqrt(y+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(d-c)/m,t[2]=(l-f)/m):u>h&&u>v?(m=2*Math.sqrt(1+u-h-v),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(l+f)/m,t[2]=(d+c)/m):h>v?(m=2*Math.sqrt(1+h-u-v),t[3]=(d-c)/m,t[0]=(l+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+v-u-h),t[3]=(l-f)/m,t[0]=(d+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.fromRotationTranslationScale=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3],u=i+i,l=a+a,c=o+o,f=i*u,h=i*l,p=i*c,d=a*l,g=a*c,v=o*c,y=s*u,m=s*l,_=s*c,x=n[0],b=n[1],M=n[2];return t[0]=(1-(d+v))*x,t[1]=(h+_)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(h-_)*b,t[5]=(1-(f+v))*b,t[6]=(g+y)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-y)*M,t[10]=(1-(f+d))*M,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,r,n,i){var a=e[0],o=e[1],s=e[2],u=e[3],l=a+a,c=o+o,f=s+s,h=a*l,p=a*c,d=a*f,g=o*c,v=o*f,y=s*f,m=u*l,_=u*c,x=u*f,b=n[0],M=n[1],P=n[2],O=i[0],S=i[1],C=i[2],w=(1-(g+y))*b,A=(p+x)*b,T=(d-_)*b,E=(p-x)*M,I=(1-(h+y))*M,D=(v+m)*M,L=(d+_)*P,j=(v-m)*P,k=(1-(h+g))*P;return t[0]=w,t[1]=A,t[2]=T,t[3]=0,t[4]=E,t[5]=I,t[6]=D,t[7]=0,t[8]=L,t[9]=j,t[10]=k,t[11]=0,t[12]=r[0]+O-(w*O+E*S+L*C),t[13]=r[1]+S-(A*O+I*S+j*C),t[14]=r[2]+C-(T*O+D*S+k*C),t[15]=1,t},e.fromQuat=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,u=i+i,l=r*o,c=n*o,f=n*s,h=i*o,p=i*s,d=i*u,g=a*o,v=a*s,y=a*u;return t[0]=1-f-d,t[1]=c+y,t[2]=h-v,t[3]=0,t[4]=c-y,t[5]=1-l-d,t[6]=p+g,t[7]=0,t[8]=h+v,t[9]=p-g,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,r,n,i,a,o){var s=1/(r-e),u=1/(i-n),l=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*u,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*u,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t},e.perspectiveNO=u,e.perspective=u,e.perspectiveZO=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,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/(n-i),t[10]=i*a,t[14]=i*n*a):(t[10]=-1,t[14]=-n),t},e.perspectiveFromFieldOfView=function(t,e,r,n){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),u=2/(o+s),l=2/(i+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-s)*u*.5,t[9]=(i-a)*l*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},e.orthoNO=l,e.ortho=l,e.orthoZO=function(t,e,r,n,i,a,o){var s=1/(e-r),u=1/(n-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*u,t[14]=a*l,t[15]=1,t},e.lookAt=function(t,e,r,a){var o,s,u,l,c,f,h,p,d,g,v=e[0],y=e[1],m=e[2],_=a[0],x=a[1],b=a[2],M=r[0],P=r[1],O=r[2];return Math.abs(v-M)0&&(c*=p=1/Math.sqrt(p),f*=p,h*=p);var d=u*h-l*f,g=l*c-s*h,v=s*f-u*c;return(p=d*d+g*g+v*v)>0&&(d*=p=1/Math.sqrt(p),g*=p,v*=p),t[0]=d,t[1]=g,t[2]=v,t[3]=0,t[4]=f*v-h*g,t[5]=h*d-c*v,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,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},e.subtract=c,e.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},e.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,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 r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],g=t[12],v=t[13],y=t[14],m=t[15],_=e[0],x=e[1],b=e[2],M=e[3],P=e[4],O=e[5],S=e[6],C=e[7],w=e[8],A=e[9],T=e[10],E=e[11],I=e[12],D=e[13],L=e[14],j=e[15];return Math.abs(r-_)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(i-x)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-b)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-M)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-P)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(u-O)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(l-S)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-C)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(f-w)<=n.EPSILON*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(h-A)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-T)<=n.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-E)<=n.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-I)<=n.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-D)<=n.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(y-L)<=n.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(m-j)<=n.EPSILON*Math.max(1,Math.abs(m),Math.abs(j))},e.mul=a,e.sub=c},function(t,e,r){"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 n,i,a,o,s,u,l=r(0),c=l.__importStar(r(34)),f=l.__importStar(r(210)),h=l.__importStar(r(118)),p=l.__importStar(r(213));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,r){r*=.5;var n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function v(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],u=r[1],l=r[2],c=r[3];return t[0]=n*c+o*s+i*l-a*u,t[1]=i*c+o*u+a*s-n*l,t[2]=a*c+o*l+n*u-i*s,t[3]=o*c-n*s-i*u-a*l,t}function y(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sqrt(r*r+n*n+i*i),s=Math.exp(a),u=o>0?s*Math.sin(o)/o:0;return t[0]=r*u,t[1]=n*u,t[2]=i*u,t[3]=s*Math.cos(o),t}function m(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sqrt(r*r+n*n+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=r*s,t[1]=n*s,t[2]=i*s,t[3]=.5*Math.log(r*r+n*n+i*i+a*a),t}function _(t,e,r,n){var i,a,o,s,u,l=e[0],f=e[1],h=e[2],p=e[3],d=r[0],g=r[1],v=r[2],y=r[3];return(a=l*d+f*g+h*v+p*y)<0&&(a=-a,d=-d,g=-g,v=-v,y=-y),1-a>c.EPSILON?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,u=Math.sin(n*i)/o):(s=1-n,u=n),t[0]=s*l+u*d,t[1]=s*f+u*g,t[2]=s*h+u*v,t[3]=s*p+u*y,t}function x(t,e){var r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;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;r=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[3*a+o]-e[3*o+a])*r,t[a]=(e[3*a+i]+e[3*i+a])*r,t[o]=(e[3*o+i]+e[3*i+o])*r}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 r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>c.EPSILON?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r},e.getAngle=function(t,r){var n=(0,e.dot)(t,r);return Math.acos(2*n*n-1)},e.multiply=v,e.rotateX=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*s,t[1]=i*u+a*s,t[2]=a*u-i*s,t[3]=o*u-n*s,t},e.rotateY=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u-a*s,t[1]=i*u+o*s,t[2]=a*u+n*s,t[3]=o*u-i*s,t},e.rotateZ=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+i*s,t[1]=i*u-n*s,t[2]=a*u+o*s,t[3]=o*u-a*s,t},e.calculateW=function(t,e){var r=e[0],n=e[1],i=e[2];return t[0]=r,t[1]=n,t[2]=i,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),t},e.exp=y,e.ln=m,e.pow=function(t,r,n){return m(t,r),(0,e.scale)(t,t,n),y(t,t),t},e.slerp=_,e.random=function(t){var e=c.RANDOM(),r=c.RANDOM(),n=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=a*Math.sin(2*Math.PI*n),t[3]=a*Math.cos(2*Math.PI*n),t},e.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a,s=o?1/o:0;return t[0]=-r*s,t[1]=-n*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,r,n){var i=.5*Math.PI/180;e*=i,r*=i,n*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(r),u=Math.cos(r),l=Math.sin(n),c=Math.cos(n);return t[0]=a*u*c-o*s*l,t[1]=o*s*c+a*u*l,t[2]=o*u*l-a*s*c,t[3]=o*u*c+a*s*l,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=v,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=(n=h.create(),i=h.fromValues(1,0,0),a=h.fromValues(0,1,0),function(t,r,o){var s=h.dot(r,o);return s<-.999999?(h.cross(n,i,r),h.len(n)<1e-6&&h.cross(n,a,r),h.normalize(n,n),g(t,n,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(h.cross(n,r,o),t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=1+s,(0,e.normalize)(t,t))}),e.sqlerp=(o=d(),s=d(),function(t,e,r,n,i,a){return _(o,e,i,a),_(s,r,n,a),_(t,o,s,2*a*(1-a)),t}),e.setAxes=(u=f.create(),function(t,r,n,i){return u[0]=n[0],u[3]=n[1],u[6]=n[2],u[1]=i[0],u[4]=i[1],u[7]=i[2],u[2]=-r[0],u[5]=-r[1],u[8]=-r[2],(0,e.normalize)(t,x(t,u))})},function(t,e,r){"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 n,i=r(0).__importStar(r(34));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,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function s(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function u(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function l(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(r,n,i,a)}function c(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}function f(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.hypot(e,r,n,i)}function h(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+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,r,n){var a=new i.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=n,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,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t},e.subtract=o,e.multiply=s,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[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,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t},e.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[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,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},e.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},e.distance=l,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 r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=n*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,r,n){var i=r[0]*n[1]-r[1]*n[0],a=r[0]*n[2]-r[2]*n[0],o=r[0]*n[3]-r[3]*n[0],s=r[1]*n[2]-r[2]*n[1],u=r[1]*n[3]-r[3]*n[1],l=r[2]*n[3]-r[3]*n[2],c=e[0],f=e[1],h=e[2],p=e[3];return t[0]=f*l-h*u+p*s,t[1]=-c*l+h*o-p*a,t[2]=c*u-f*o+p*i,t[3]=-c*s+f*a-h*i,t},e.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t},e.random=function(t,e){var r,n,a,o,s,u;e=e||1;do{s=(r=2*i.RANDOM()-1)*r+(n=2*i.RANDOM()-1)*n}while(s>=1);do{u=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(u>=1);var l=Math.sqrt((1-s)/u);return t[0]=e*r,t[1]=e*n,t[2]=e*a*l,t[3]=e*o*l,t},e.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t},e.transformQuat=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],u=r[2],l=r[3],c=l*n+s*a-u*i,f=l*i+u*n-o*a,h=l*a+o*i-s*n,p=-o*n-s*i-u*a;return t[0]=c*l+p*-o+f*-u-h*-s,t[1]=f*l+p*-s+h*-o-c*-u,t[2]=h*l+p*-u+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 r=t[0],n=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-u)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.len=f,e.sqrLen=h,e.forEach=(n=a(),function(t,e,r,i,a,o){var s,u;for(e||(e=4),r||(r=0),u=i?Math.min(i*e+r,t.length):t.length,s=r;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,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},e.lerp=function(t,e,r,n){var i=e[0],a=e[1];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t},e.random=function(t,e){e=e||1;var r=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},e.transformMat2=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i,t[1]=r[1]*n+r[3]*i,t},e.transformMat2d=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t},e.transformMat3=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[3]*i+r[6],t[1]=r[1]*n+r[4]*i+r[7],t},e.transformMat4=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t},e.rotate=function(t,e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=Math.sin(n),s=Math.cos(n);return t[0]=i*s-a*o+r[0],t[1]=i*o+a*s+r[1],t},e.angle=function(t,e){var r=t[0],n=t[1],i=e[0],a=e[1],o=Math.sqrt(r*r+n*n)*Math.sqrt(i*i+a*a),s=o&&(r*i+n*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 r=t[0],n=t[1],a=e[0],o=e[1];return Math.abs(r-a)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))},e.len=f,e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.sqrLen=h,e.forEach=(n=a(),function(t,e,r,i,a,o){var s,u;for(e||(e=2),r||(r=0),u=i?Math.min(i*e+r,t.length):t.length,s=r;su&&(s=e.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,f.push({i:l,x:(0,n.default)(r,o)})),u=a.lastIndex;return u200&&(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,n.distance)(l[0],l[1],g[0],g[1]))=0&&_1||e<0||t.length<2)return null;var r=a(t),i=r.segments,o=r.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,l=0;l=s&&e<=s+p){var d=(e-s)/p;u=n.default.pointAt(f[0],f[1],h[0],h[1],d);break}s+=p}return u},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var r=a(t),n=r.segments,i=r.totalLength,o=0,s=0,u=0;u=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,r){for(var i=1/0,a=0;a1?e*i+a(e,r)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var r=(0,i.getOffScreenContext)(),a=0;if((0,n.isNil)(t)||""===t)return a;if(r.save(),r.font=e,(0,n.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,n.each)(o,(function(t){var e=r.measureText(t).width;a1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,n.each)(t,(function(e,r){isNaN(e)||(t[r]=+e)})),e[r]=t})),e):void 0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,n,i){return i?[["M",+t+ +i,e],["l",r-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-r,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(233)),i=r(495);function a(t,e,r){if(t[r].length>7){t[r].shift();for(var n=t[r],i=r;n.length;)e[r]="A",t.splice(i+=1,0,["C"].concat(n.splice(0,6)));t.splice(r,1)}}e.default=function(t,e){void 0===e&&(e=!1);for(var r,o,s=(0,n.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",f=s.length,h=[],p=0;p=0){r=!0;break}}if(!r)return e;var u=[],l=0,c=0,f=0,h=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(f=l=+d[1],h=c=+d[2],p++,u[0]=["M",l,c]),o=p;for(var g=e.length;o2&&(r.push([n].concat(a.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===a.length&&r.push([n,a[0]]),"r"===s)r.push([n].concat(a));else for(;a.length>=e[s]&&(r.push([n].concat(a.splice(0,e[s]))),e[s]););return""})),r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e,r){return t>=e&&t<=r};e.default=function(t,e,r,i){var a=r.x-t.x,o=r.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-r.x,c=i.y-r.y,f=s*c-u*l,h=null;if(f*f>.001*(s*s+u*u)*(l*l+c*c)){var p=(a*c-o*l)/f,d=(a*u-o*s)/f;n(p,0,1)&&n(d,0,1)&&(h={x:t.x+p*s,y:t.y+p*u})}return h}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,r){return(r[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(r[1]-t[1])&&Math.min(t[0],e[0])<=r[0]&&r[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=r[1]&&r[1]<=Math.max(t[1],e[1])}e.default=function(t,e,r){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s0!=n(l[1]-r)>0&&n(e-(r-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var n=r(7),i=r(504);Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}});var a=n.__importDefault(r(61));e.Adjust=a.default;var o=n.__importDefault(r(505)),s=n.__importDefault(r(506)),u=n.__importDefault(r(507)),l=n.__importDefault(r(508));(0,i.registerAdjust)("Dodge",o.default),(0,i.registerAdjust)("Jitter",s.default),(0,i.registerAdjust)("Stack",u.default),(0,i.registerAdjust)("Symmetric",l.default),n.__exportStar(r(238),e)},function(t,e){},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var n=r(240);Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return n.Scale}})},function(t,e,r){"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 n=r(0),i=n.__importDefault(r(74));e.Scale=i.default;var a=n.__importDefault(r(242));e.Category=a.default;var o=n.__importDefault(r(515));e.TimeCat=o.default;var s=n.__importDefault(r(244));e.Linear=s.default;var u=n.__importDefault(r(517));e.Log=u.default;var l=n.__importDefault(r(518));e.Pow=l.default;var c=n.__importDefault(r(519));e.Time=c.default;var f=n.__importDefault(r(245));e.Quantize=f.default;var h=n.__importDefault(r(520));e.Quantile=h.default;var p=r(521);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}});var d=n.__importDefault(r(522));e.Identity=d.default;var g=r(523);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",u.default),(0,p.registerScale)("pow",l.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var n={};e.getTickMethod=function(t){return n[t]},e.registerTickMethod=function(t,e){n[t]=e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),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[n]},e.prototype.getText=function(e){for(var r=[],n=1;n1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(n.__importDefault(r(74)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalDateMasks=e.setGlobalDateI18n=e.defaultI18n=e.parse=e.format=e.assign=void 0;var n=/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 r=[],n=0,i=t.length;n-1?n:null}};function u(t){for(var e=[],r=1;r3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=h;var p=u({},h),d=function(t){return p=u(p,t)};e.setGlobalDateI18n=d;var g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},v=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+v(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+v(Math.floor(Math.abs(e)/60),2)+":"+v(Math.abs(e)%60,2)}},m=function(t){return+t-1},_=[null,"\\d\\d?"],x=[null,i],b=["isPm",i,function(t,e){var r=t.toLowerCase();return r===e.amPm[0]?0:r===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 r=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?r:-r}return 0}],P={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},O={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 u(O,t)};e.setGlobalDateMasks=S;var C=function(t,e,r){if(void 0===e&&(e=O.default),void 0===r&&(r={}),"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=O[e]||e).replace(a,(function(t,e){return i.push(e),"@@@"}));var o=u(u({},p),r);return(e=e.replace(n,(function(e){return y[e](t,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function w(t,e,r){if(void 0===r&&(r={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=O[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=[],l=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},f={};l=g(l).replace(n,(function(t){var e=P[t],r=e[0],n=e[1],i=e[3];if(c[r])throw new Error("Invalid format. "+r+" specified twice in format");return c[r]=!0,i&&(f[i]=!0),o.push(e),"("+n+")"})),Object.keys(f).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),l=l.replace(/@@@/g,(function(){return s.shift()}));var h=t.match(new RegExp(l,"i"));if(!h)return null;for(var d,v=u(u({},p),r),y=1;y11||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=C,e.parse=w;var A={format:C,parse:w,defaultI18n:h,setGlobalDateI18n:d,setGlobalDateMasks:S};e.default=A},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(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}(n.__importDefault(r(91)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),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,r=e.length,n=this.getInvertPercent(t),i=Math.floor(n*(r-1));if(i>=r-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=i/(r-1);return o+(n-s)/((i+1)/(r-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 r=0;return(0,a.each)(e,(function(e,n){if(!(t>=e))return!1;r=n})),r/(e.length-1)},e}(n.__importDefault(r(91)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.default=function(t){var e=t.values,r=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,n.isNumber)(r)){var o=(0,n.filter)(e,(function(t,e){return e%r==0})),s=(0,n.last)(e);return a&&(0,n.last)(o)!==s&&o.push(s),o}var u=e.length,l=t.min,c=t.max;if((0,n.isNil)(l)&&(l=0),(0,n.isNil)(c)&&(c=e.length-1),!(0,n.isNumber)(i)||i>=u)return e.slice(l,c+1);if(i<=0||c<=0)return[];for(var f=1===i?u:Math.floor(u/(i-1)),h=[],p=l,d=0;d=c);d++)p=Math.min(l+d*f,c),d===i-1&&a?h.push(e[c]):h.push(e[p]);return h}},function(t,e,r){"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(247);e.default=function(t,e,r){if(void 0===r&&(r=5),t===e)return{max:e,min:t,ticks:[t]};var i=r<0?0:Math.round(r);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 u=Math.ceil(e/s),l=Math.floor(t/s),c=Math.max(u*s,e),f=Math.min(l*s,t),h=Math.floor((c-f)/s)+1,p=new Array(h),d=0;d2&&(r.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&r.push([i,s[0]]),"r"===u)r.push([i].concat(s));else for(;s.length>=e[u]&&(r.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),r};e.parsePathString=s;var u=function(t,e){for(var r=[],n=0,i=t.length;i-2*!e>n;n+=2){var a=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?i-4===n?a[3]={x:+t[0],y:+t[1]}:i-2===n&&(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===n?a[3]=a[2]:n||(a[0]={x:+t[n],y:+t[n+1]}),r.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 r};e.catmullRomToBezier=u;var l=function(t,e,r,n,i){var a=[];if(null===i&&null===n&&(n=r),t=+t,e=+e,r=+r,n=+n,null!==i){var o=Math.PI/180,s=t+r*Math.cos(-n*o),u=t+r*Math.cos(-i*o);a=[["M",s,e+r*Math.sin(-n*o)],["A",r,r,0,+(i-n>180),0,u,e+r*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,r,n=[],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++,n[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,v=t.length;g1&&(n*=M=Math.sqrt(M),i*=M);var P=n*n,O=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((P*O-P*b*b-O*x*x)/(P*b*b+O*x*x)));d=S*n*b/i+(e+u)/2,g=S*-i*x/n+(r+l)/2,h=Math.asin(((r-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),h=ep&&(h-=2*Math.PI),!s&&p>h&&(p-=2*Math.PI)}var C=p-h;if(Math.abs(C)>v){var w=p,A=u,T=l;p=h+v*(s&&p>h?1:-1),m=t(u=d+n*Math.cos(p),l=g+i*Math.sin(p),n,i,a,0,s,A,T,[p,w,d,g])}C=p-h;var E=Math.cos(h),I=Math.sin(h),D=Math.cos(p),L=Math.sin(p),j=Math.tan(C/4),k=4/3*n*j,B=4/3*i*j,R=[e,r],F=[e+k*I,r-B*E],N=[u+k*L,l-B*D],Y=[u,l];if(F[0]=2*R[0]-F[0],F[1]=2*R[1]-F[1],c)return[F,N,Y].concat(m);for(var G=[],V=0,H=(m=[F,N,Y].concat(m).join().split(",")).length;V7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),r=Math.max(n.length,i&&i.length||0)}},y=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],r=Math.max(n.length,i&&i.length||0))};r=Math.max(n.length,i&&i.length||0);for(var m=0;m1?1:u<0?0:u)/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=l*c[p]+l,g=y(d,t,r,i,o),v=y(d,e,n,a,s),m=g*g+v*v;h+=f[p]*Math.sqrt(m)}return l*h},_=function(t,e,r,n,i,a,o,s){for(var u,l,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*r+6*i,u=-3*t+9*r-9*i+3*o,c=3*r-3*t):(l=6*e-12*n+6*a,u=-3*e+9*n-9*a+3*s,c=3*n-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(f=-c/l)>0&&f<1&&h.push(f)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-l-v)/(2*u);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*r+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*n+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,r,n,i,a,o,s){if(!(Math.max(t,r)Math.max(i,o)||Math.max(e,n)Math.max(a,s))){var u=(t-r)*(a-s)-(e-n)*(i-o);if(u){var l=((t*n-e*r)*(i-o)-(t-r)*(i*s-a*o))/u,c=((t*n-e*r)*(a-s)-(e-n)*(i*s-a*o))/u,f=+l.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},b=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},M=function(t,e,r,n,i){if(i)return[["M",+t+ +i,e],["l",r-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-r,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]];return a.parsePathArray=v,a};e.rectPath=M;var P=function(t,e,r,n){return null===t&&(t=e=r=n=0),null===e&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:M(t,e,r,n),vb:[t,e,r,n].join(" ")}},O=function(t,e,r,i,a,o,s,u){(0,n.isArray)(t)||(t=[t,e,r,i,a,o,s,u]);var l=_.apply(null,t);return P(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,r,n,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),f=Math.pow(l,2),h=u*u,p=h*u,d=t+2*u*(r-t)+h*(i-2*r+t),g=e+2*u*(n-e)+h*(a-2*n+e),v=r+2*u*(i-r)+h*(o-2*i+r),y=n+2*u*(a-n)+h*(s-2*a+n);return{x:c*t+3*f*u*r+3*l*u*u*i+p*o,y:c*e+3*f*u*n+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:l*t+u*r,y:l*e+u*n},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},C=function(t,e,r){if(!function(t,e){return t=P(t),e=P(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)}(O(t),O(e)))return r?0:[];for(var n=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},u=r?0:[],l=0;l=0&&M<=1&&C>=0&&C<=1&&(r?u+=1:u.push({x:_.x,y:_.y,t1:M,t2:C}))}}return u};function w(t,e){var r=[],n=[];return t.length&&function t(e,i){if(1===e.length)r.push(e[0]),n.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,r));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=r-1;a++)n.push(i)}return n};e.fillPath=function(t,e){if(1===t.length)return t;var r=t.length-1,n=e.length-1,i=r/n,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(n=t.length);if(n0)){t[n]=e[n];break}r=I(r,t[n-1],1)}t[n]=["Q"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[n]=["T"].concat(r[0]);break;case"C":if(r.length<3){if(!(n>0)){t[n]=e[n];break}r=I(r,t[n-1],2)}t[n]=["C"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(r.length<2){if(!(n>0)){t[n]=e[n];break}r=I(r,t[n-1],1)}t[n]=["S"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[n]=e[n]}return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=n.__importDefault(r(624)),o=r(53),s=function(t){function e(e){var r=t.call(this)||this;r.destroyed=!1;var n=r.getDefaultCfg();return r.cfg=(0,o.mix)(n,e),r}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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(269)),s=r(53),u={};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,r=1/0,n=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?((0,s.each)(u,(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),r=(0,a.min)(o),n=(0,a.max)(o)):(t=0,e=0,r=0,n=0),{x:t,y:r,minX:t,minY:r,maxX:e,maxY:n,width:e-t,height:n-r}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,r=1/0,n=-1/0,i=[],o=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?((0,s.each)(u,(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),r=(0,a.min)(o),n=(0,a.max)(o)):(t=0,e=0,r=0,n=0),{x:t,y:r,minX:t,minY:r,maxX:e,maxY:n,width:e-t,height:n-r}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,r,n){if(t.prototype.onAttrChange.call(this,e,r,n),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var r=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var n=this.getTotalMatrix();n!==r&&this._applyChildrenMarix(n)},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,r,n):o.isHit(e,r)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),r=this.getChildren(),n=this.get("timeline"),i=t.getParent();i&&function(t,e,r){void 0===r&&(r=!0),r?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,r){if(e.set("canvas",r),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){t(e,r)}))}}(t,e),n&&function t(e,r){if(e.set("timeline",r),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){t(e,r)}))}}(t,n),r.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,r){var n=t(e,r);return 0===n?e._INDEX-r._INDEX:n})),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=[],r=this.getChildren();return(0,s.each)(r,(function(r){t(r)&&e.push(r),r.isGroup()&&(e=e.concat(r.findAll(t)))})),e},e.prototype.find=function(t){var e=null,r=this.getChildren();return(0,s.each)(r,(function(r){if(t(r)?e=r:r.isGroup()&&(e=r.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=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=r(76),s=r(53),u=r(139),l=n.__importDefault(r(267)),c=o.ext.transform,f=["zIndex","capture","visible","type"],h=["repeat"];function p(t,e){var r={},n=e.attrs;for(var i in t)r[i]=n[i];return r}function d(t,e){var r={},n=e.attr();return(0,a.each)(t,(function(t,e){-1!==h.indexOf(e)||(0,a.isEqual)(n[e],t)||(r[e]=t)})),r}function g(t,e){if(e.onFrame)return t;var r=e.startTime,n=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){r+nt.delay&&(0,a.each)(e.toAttrs,(function(e,r){o.call(t.toAttrs,r)&&(delete t.toAttrs[r],delete t.fromAttrs[r])}))})),t}var v=function(t){function e(e){var r=t.call(this,e)||this;r.attrs={};var n=r.getDefaultAttrs();return(0,a.mix)(n,e.attrs),r.attrs=n,r.initAttrs(n),r.initAnimate(),r}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=[],r=0;r0?n=g(n,M):r.addAnimator(this),n.push(M),this.set("animations",n),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var r=this.get("animations");(0,a.each)(r,(function(r){t&&(r.onFrame?e.attr(r.onFrame(1)):e.attr(r.toAttrs)),r.callback&&r.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),r=t.getTime();return(0,a.each)(e,(function(t){t._paused=!0,t._pauseTime=r,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:r}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),r=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-r),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 r,n=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?r=e.fromShape:"mouseleave"===t&&(r=e.toShape);for(var o=function(t){var o=i[t],l=o.get("name");if(l){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&r&&(0,s.isParent)(o,r))return"break";(0,a.isArray)(l)?(0,a.each)(l,(function(t){n.emitDelegateEvent(o,t,e)})):u.emitDelegateEvent(o,l,e)}},u=this,l=0;l0?(r[0]=2*(l*u+h*i+c*s-f*a)/p,r[1]=2*(c*u+h*a+f*i-l*s)/p,r[2]=2*(f*u+h*s+l*a-c*i)/p):(r[0]=2*(l*u+h*i+c*s-f*a),r[1]=2*(c*u+h*a+f*i-l*s),r[2]=2*(f*u+h*s+l*a-c*i)),o(t,e,r),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 r=new n.ARRAY_TYPE(3);s(r,e);var i=1/r[0],a=1/r[1],o=1/r[2],u=e[0]*i,l=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,v=e[10]*o,y=u+h+v,m=0;return y>0?(m=2*Math.sqrt(y+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(d-c)/m,t[2]=(l-f)/m):u>h&&u>v?(m=2*Math.sqrt(1+u-h-v),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(l+f)/m,t[2]=(d+c)/m):h>v?(m=2*Math.sqrt(1+h-u-v),t[3]=(d-c)/m,t[0]=(l+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+v-u-h),t[3]=(l-f)/m,t[0]=(d+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.fromRotationTranslationScale=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3],u=i+i,l=a+a,c=o+o,f=i*u,h=i*l,p=i*c,d=a*l,g=a*c,v=o*c,y=s*u,m=s*l,_=s*c,x=n[0],b=n[1],M=n[2];return t[0]=(1-(d+v))*x,t[1]=(h+_)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(h-_)*b,t[5]=(1-(f+v))*b,t[6]=(g+y)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-y)*M,t[10]=(1-(f+d))*M,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,r,n,i){var a=e[0],o=e[1],s=e[2],u=e[3],l=a+a,c=o+o,f=s+s,h=a*l,p=a*c,d=a*f,g=o*c,v=o*f,y=s*f,m=u*l,_=u*c,x=u*f,b=n[0],M=n[1],P=n[2],O=i[0],S=i[1],C=i[2],w=(1-(g+y))*b,A=(p+x)*b,T=(d-_)*b,E=(p-x)*M,I=(1-(h+y))*M,D=(v+m)*M,L=(d+_)*P,j=(v-m)*P,k=(1-(h+g))*P;return t[0]=w,t[1]=A,t[2]=T,t[3]=0,t[4]=E,t[5]=I,t[6]=D,t[7]=0,t[8]=L,t[9]=j,t[10]=k,t[11]=0,t[12]=r[0]+O-(w*O+E*S+L*C),t[13]=r[1]+S-(A*O+I*S+j*C),t[14]=r[2]+C-(T*O+D*S+k*C),t[15]=1,t},e.fromQuat=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,u=i+i,l=r*o,c=n*o,f=n*s,h=i*o,p=i*s,d=i*u,g=a*o,v=a*s,y=a*u;return t[0]=1-f-d,t[1]=c+y,t[2]=h-v,t[3]=0,t[4]=c-y,t[5]=1-l-d,t[6]=p+g,t[7]=0,t[8]=h+v,t[9]=p-g,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,r,n,i,a,o){var s=1/(r-e),u=1/(i-n),l=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*u,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*u,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t},e.perspectiveNO=u,e.perspective=u,e.perspectiveZO=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,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/(n-i),t[10]=i*a,t[14]=i*n*a):(t[10]=-1,t[14]=-n),t},e.perspectiveFromFieldOfView=function(t,e,r,n){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),u=2/(o+s),l=2/(i+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-s)*u*.5,t[9]=(i-a)*l*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},e.orthoNO=l,e.ortho=l,e.orthoZO=function(t,e,r,n,i,a,o){var s=1/(e-r),u=1/(n-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*u,t[14]=a*l,t[15]=1,t},e.lookAt=function(t,e,r,a){var o,s,u,l,c,f,h,p,d,g,v=e[0],y=e[1],m=e[2],_=a[0],x=a[1],b=a[2],M=r[0],P=r[1],O=r[2];return Math.abs(v-M)0&&(c*=p=1/Math.sqrt(p),f*=p,h*=p);var d=u*h-l*f,g=l*c-s*h,v=s*f-u*c;return(p=d*d+g*g+v*v)>0&&(d*=p=1/Math.sqrt(p),g*=p,v*=p),t[0]=d,t[1]=g,t[2]=v,t[3]=0,t[4]=f*v-h*g,t[5]=h*d-c*v,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,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},e.subtract=c,e.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},e.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,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 r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],g=t[12],v=t[13],y=t[14],m=t[15],_=e[0],x=e[1],b=e[2],M=e[3],P=e[4],O=e[5],S=e[6],C=e[7],w=e[8],A=e[9],T=e[10],E=e[11],I=e[12],D=e[13],L=e[14],j=e[15];return Math.abs(r-_)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(i-x)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-b)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-M)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-P)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(u-O)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(l-S)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-C)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(f-w)<=n.EPSILON*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(h-A)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-T)<=n.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-E)<=n.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-I)<=n.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-D)<=n.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(y-L)<=n.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(m-j)<=n.EPSILON*Math.max(1,Math.abs(m),Math.abs(j))},e.mul=a,e.sub=c},function(t,e,r){"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 n,i,a,o,s,u,l=r(1),c=l.__importStar(r(35)),f=l.__importStar(r(270)),h=l.__importStar(r(273)),p=l.__importStar(r(274));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,r){r*=.5;var n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function v(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],u=r[1],l=r[2],c=r[3];return t[0]=n*c+o*s+i*l-a*u,t[1]=i*c+o*u+a*s-n*l,t[2]=a*c+o*l+n*u-i*s,t[3]=o*c-n*s-i*u-a*l,t}function y(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sqrt(r*r+n*n+i*i),s=Math.exp(a),u=o>0?s*Math.sin(o)/o:0;return t[0]=r*u,t[1]=n*u,t[2]=i*u,t[3]=s*Math.cos(o),t}function m(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sqrt(r*r+n*n+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=r*s,t[1]=n*s,t[2]=i*s,t[3]=.5*Math.log(r*r+n*n+i*i+a*a),t}function _(t,e,r,n){var i,a,o,s,u,l=e[0],f=e[1],h=e[2],p=e[3],d=r[0],g=r[1],v=r[2],y=r[3];return(a=l*d+f*g+h*v+p*y)<0&&(a=-a,d=-d,g=-g,v=-v,y=-y),1-a>c.EPSILON?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,u=Math.sin(n*i)/o):(s=1-n,u=n),t[0]=s*l+u*d,t[1]=s*f+u*g,t[2]=s*h+u*v,t[3]=s*p+u*y,t}function x(t,e){var r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;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;r=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[3*a+o]-e[3*o+a])*r,t[a]=(e[3*a+i]+e[3*i+a])*r,t[o]=(e[3*o+i]+e[3*i+o])*r}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 r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>c.EPSILON?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r},e.getAngle=function(t,r){var n=(0,e.dot)(t,r);return Math.acos(2*n*n-1)},e.multiply=v,e.rotateX=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*s,t[1]=i*u+a*s,t[2]=a*u-i*s,t[3]=o*u-n*s,t},e.rotateY=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u-a*s,t[1]=i*u+o*s,t[2]=a*u+n*s,t[3]=o*u-i*s,t},e.rotateZ=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+i*s,t[1]=i*u-n*s,t[2]=a*u+o*s,t[3]=o*u-a*s,t},e.calculateW=function(t,e){var r=e[0],n=e[1],i=e[2];return t[0]=r,t[1]=n,t[2]=i,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),t},e.exp=y,e.ln=m,e.pow=function(t,r,n){return m(t,r),(0,e.scale)(t,t,n),y(t,t),t},e.slerp=_,e.random=function(t){var e=c.RANDOM(),r=c.RANDOM(),n=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=a*Math.sin(2*Math.PI*n),t[3]=a*Math.cos(2*Math.PI*n),t},e.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a,s=o?1/o:0;return t[0]=-r*s,t[1]=-n*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,r,n){var i=.5*Math.PI/180;e*=i,r*=i,n*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(r),u=Math.cos(r),l=Math.sin(n),c=Math.cos(n);return t[0]=a*u*c-o*s*l,t[1]=o*s*c+a*u*l,t[2]=o*u*l-a*s*c,t[3]=o*u*c+a*s*l,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=v,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=(n=h.create(),i=h.fromValues(1,0,0),a=h.fromValues(0,1,0),function(t,r,o){var s=h.dot(r,o);return s<-.999999?(h.cross(n,i,r),h.len(n)<1e-6&&h.cross(n,a,r),h.normalize(n,n),g(t,n,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(h.cross(n,r,o),t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=1+s,(0,e.normalize)(t,t))}),e.sqlerp=(o=d(),s=d(),function(t,e,r,n,i,a){return _(o,e,i,a),_(s,r,n,a),_(t,o,s,2*a*(1-a)),t}),e.setAxes=(u=f.create(),function(t,r,n,i){return u[0]=n[0],u[3]=n[1],u[6]=n[2],u[1]=i[0],u[4]=i[1],u[7]=i[2],u[2]=-r[0],u[5]=-r[1],u[8]=-r[2],(0,e.normalize)(t,x(t,u))})},function(t,e,r){"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 n,i=r(1).__importStar(r(35));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],r=t[1],n=t[2];return Math.hypot(e,r,n)}function s(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function u(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function l(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function c(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.hypot(r,n,i)}function f(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}function h(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}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,r){var n=new i.ARRAY_TYPE(3);return n[0]=t,n[1]=e,n[2]=r,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},e.subtract=s,e.multiply=u,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},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,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t},e.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[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,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},e.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,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 r=e[0],n=e[1],i=e[2],a=r*r+n*n+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,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],u=r[2];return t[0]=i*u-a*s,t[1]=a*o-n*u,t[2]=n*s-i*o,t},e.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t},e.hermite=function(t,e,r,n,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+r[0]*u+n[0]*l+i[0]*c,t[1]=e[1]*s+r[1]*u+n[1]*l+i[1]*c,t[2]=e[2]*s+r[2]*u+n[2]*l+i[2]*c,t},e.bezier=function(t,e,r,n,i,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,f=3*u*o,h=u*a;return t[0]=e[0]*l+r[0]*c+n[0]*f+i[0]*h,t[1]=e[1]*l+r[1]*c+n[1]*f+i[1]*h,t[2]=e[2]*l+r[2]*c+n[2]*f+i[2]*h,t},e.random=function(t,e){e=e||1;var r=2*i.RANDOM()*Math.PI,n=2*i.RANDOM()-1,a=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=n*e,t},e.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t},e.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},e.transformQuat=function(t,e,r){var n=r[0],i=r[1],a=r[2],o=r[3],s=e[0],u=e[1],l=e[2],c=i*l-a*u,f=a*s-n*l,h=n*u-i*s,p=i*h-a*f,d=a*c-n*h,g=n*f-i*c,v=2*o;return c*=v,f*=v,h*=v,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=u+f+d,t[2]=l+h+g,t},e.rotateX=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0],a[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),a[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},e.rotateY=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),a[1]=i[1],a[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},e.rotateZ=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),a[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),a[2]=i[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},e.angle=function(t,e){var r=t[0],n=t[1],i=t[2],a=e[0],o=e[1],s=e[2],u=Math.sqrt(r*r+n*n+i*i)*Math.sqrt(a*a+o*o+s*s),l=u&&p(t,e)/u;return Math.acos(Math.min(Math.max(l,-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 r=t[0],n=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},e.sub=s,e.mul=u,e.div=l,e.dist=c,e.sqrDist=f,e.len=o,e.sqrLen=h,e.forEach=(n=a(),function(t,e,r,i,a,o){var s,u;for(e||(e=3),r||(r=0),u=i?Math.min(i*e+r,t.length):t.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=n*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,r,n){var i=r[0]*n[1]-r[1]*n[0],a=r[0]*n[2]-r[2]*n[0],o=r[0]*n[3]-r[3]*n[0],s=r[1]*n[2]-r[2]*n[1],u=r[1]*n[3]-r[3]*n[1],l=r[2]*n[3]-r[3]*n[2],c=e[0],f=e[1],h=e[2],p=e[3];return t[0]=f*l-h*u+p*s,t[1]=-c*l+h*o-p*a,t[2]=c*u-f*o+p*i,t[3]=-c*s+f*a-h*i,t},e.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t},e.random=function(t,e){var r,n,a,o,s,u;e=e||1;do{s=(r=2*i.RANDOM()-1)*r+(n=2*i.RANDOM()-1)*n}while(s>=1);do{u=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(u>=1);var l=Math.sqrt((1-s)/u);return t[0]=e*r,t[1]=e*n,t[2]=e*a*l,t[3]=e*o*l,t},e.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t},e.transformQuat=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],u=r[2],l=r[3],c=l*n+s*a-u*i,f=l*i+u*n-o*a,h=l*a+o*i-s*n,p=-o*n-s*i-u*a;return t[0]=c*l+p*-o+f*-u-h*-s,t[1]=f*l+p*-s+h*-o-c*-u,t[2]=h*l+p*-u+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 r=t[0],n=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-u)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.len=f,e.sqrLen=h,e.forEach=(n=a(),function(t,e,r,i,a,o){var s,u;for(e||(e=4),r||(r=0),u=i?Math.min(i*e+r,t.length):t.length,s=r;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,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},e.lerp=function(t,e,r,n){var i=e[0],a=e[1];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t},e.random=function(t,e){e=e||1;var r=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},e.transformMat2=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i,t[1]=r[1]*n+r[3]*i,t},e.transformMat2d=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t},e.transformMat3=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[3]*i+r[6],t[1]=r[1]*n+r[4]*i+r[7],t},e.transformMat4=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t},e.rotate=function(t,e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=Math.sin(n),s=Math.cos(n);return t[0]=i*s-a*o+r[0],t[1]=i*o+a*s+r[1],t},e.angle=function(t,e){var r=t[0],n=t[1],i=e[0],a=e[1],o=Math.sqrt(r*r+n*n)*Math.sqrt(i*i+a*a),s=o&&(r*i+n*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 r=t[0],n=t[1],a=e[0],o=e[1];return Math.abs(r-a)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))},e.len=f,e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.sqrLen=h,e.forEach=(n=a(),function(t,e,r,i,a,o){var s,u;for(e||(e=2),r||(r=0),u=i?Math.min(i*e+r,t.length):t.length,s=r;su&&(s=e.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,f.push({i:l,x:(0,n.default)(r,o)})),u=a.lastIndex;return u200&&(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,n.distance)(l[0],l[1],g[0],g[1]))=0&&_1||e<0||t.length<2)return null;var r=a(t),i=r.segments,o=r.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,l=0;l=s&&e<=s+p){var d=(e-s)/p;u=n.default.pointAt(f[0],f[1],h[0],h[1],d);break}s+=p}return u},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var r=a(t),n=r.segments,i=r.totalLength,o=0,s=0,u=0;u=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,r){for(var i=1/0,a=0;a1?e*i+a(e,r)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var r=(0,i.getOffScreenContext)(),a=0;if((0,n.isNil)(t)||""===t)return a;if(r.save(),r.font=e,(0,n.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,n.each)(o,(function(t){var e=r.measureText(t).width;a1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,n.each)(t,(function(e,r){isNaN(e)||(t[r]=+e)})),e[r]=t})),e):void 0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,n,i){return i?[["M",+t+ +i,e],["l",r-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-r,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(295)),i=r(686);function a(t,e,r){if(t[r].length>7){t[r].shift();for(var n=t[r],i=r;n.length;)e[r]="A",t.splice(i+=1,0,["C"].concat(n.splice(0,6)));t.splice(r,1)}}e.default=function(t,e){void 0===e&&(e=!1);for(var r,o,s=(0,n.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",f=s.length,h=[],p=0;p=0){r=!0;break}}if(!r)return e;var u=[],l=0,c=0,f=0,h=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(f=l=+d[1],h=c=+d[2],p++,u[0]=["M",l,c]),o=p;for(var g=e.length;o2&&(r.push([n].concat(a.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===a.length&&r.push([n,a[0]]),"r"===s)r.push([n].concat(a));else for(;a.length>=e[s]&&(r.push([n].concat(a.splice(0,e[s]))),e[s]););return""})),r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e,r){return t>=e&&t<=r};e.default=function(t,e,r,i){var a=r.x-t.x,o=r.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-r.x,c=i.y-r.y,f=s*c-u*l,h=null;if(f*f>.001*(s*s+u*u)*(l*l+c*c)){var p=(a*c-o*l)/f,d=(a*u-o*s)/f;n(p,0,1)&&n(d,0,1)&&(h={x:t.x+p*s,y:t.y+p*u})}return h}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,r){return(r[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(r[1]-t[1])&&Math.min(t[0],e[0])<=r[0]&&r[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=r[1]&&r[1]<=Math.max(t[1],e[1])}e.default=function(t,e,r){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s0!=n(l[1]-r)>0&&n(e-(r-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(79));e.default=function(t,e){var r=(0,n.default)(t,"height",e);return"auto"===r&&(r=t.offsetHeight),parseFloat(r)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(79));e.default=function(t,e){var r=(0,n.default)(t,"width",e);return"auto"===r&&(r=t.offsetWidth),parseFloat(r)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStatesStyle=void 0;var n=r(3);e.getStatesStyle=function(t,e,r){var i=e+"Style",a=null;return(0,n.each)(r,(function(e,r){t[r]&&e[i]&&(a||(a={}),(0,n.mix)(a,e[i]))})),a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.autoEllipsis=e.autoRotate=e.autoHide=void 0;var n=r(1),i=n.__importStar(r(713));e.autoEllipsis=i;var a=n.__importStar(r(714));e.autoHide=a;var o=n.__importStar(r(715));e.autoRotate=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_TEXT=e.CROSSHAIR_LINE=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-crosshair",e.CROSSHAIR_LINE=e.CONTAINER_CLASS+"-line",e.CROSSHAIR_TEXT=e.CONTAINER_CLASS+"-text"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var n={};e.getTickMethod=function(t){return n[t]},e.registerTickMethod=function(t,e){n[t]=e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),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[n]},e.prototype.getText=function(e){for(var r=[],n=1;n1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(n.__importDefault(r(80)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalDateMasks=e.setGlobalDateI18n=e.defaultI18n=e.parse=e.format=e.assign=void 0;var n=/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 r=[],n=0,i=t.length;n-1?n:null}};function u(t){for(var e=[],r=1;r3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=h;var p=u({},h),d=function(t){return p=u(p,t)};e.setGlobalDateI18n=d;var g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},v=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+v(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+v(Math.floor(Math.abs(e)/60),2)+":"+v(Math.abs(e)%60,2)}},m=function(t){return+t-1},_=[null,"\\d\\d?"],x=[null,i],b=["isPm",i,function(t,e){var r=t.toLowerCase();return r===e.amPm[0]?0:r===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 r=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?r:-r}return 0}],P={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},O={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 u(O,t)};e.setGlobalDateMasks=S;var C=function(t,e,r){if(void 0===e&&(e=O.default),void 0===r&&(r={}),"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=O[e]||e).replace(a,(function(t,e){return i.push(e),"@@@"}));var o=u(u({},p),r);return(e=e.replace(n,(function(e){return y[e](t,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function w(t,e,r){if(void 0===r&&(r={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=O[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=[],l=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},f={};l=g(l).replace(n,(function(t){var e=P[t],r=e[0],n=e[1],i=e[3];if(c[r])throw new Error("Invalid format. "+r+" specified twice in format");return c[r]=!0,i&&(f[i]=!0),o.push(e),"("+n+")"})),Object.keys(f).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),l=l.replace(/@@@/g,(function(){return s.shift()}));var h=t.match(new RegExp(l,"i"));if(!h)return null;for(var d,v=u(u({},p),r),y=1;y11||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=C,e.parse=w;var A={format:C,parse:w,defaultI18n:h,setGlobalDateI18n:d,setGlobalDateMasks:S};e.default=A},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),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}(n.__importDefault(r(102)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),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,r=e.length,n=this.getInvertPercent(t),i=Math.floor(n*(r-1));if(i>=r-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=i/(r-1);return o+(n-s)/((i+1)/(r-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 r=0;return(0,a.each)(e,(function(e,n){if(!(t>=e))return!1;r=n})),r/(e.length-1)},e}(n.__importDefault(r(102)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3);e.default=function(t){var e=t.values,r=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,n.isNumber)(r)){var o=(0,n.filter)(e,(function(t,e){return e%r==0})),s=(0,n.last)(e);return a&&(0,n.last)(o)!==s&&o.push(s),o}var u=e.length,l=t.min,c=t.max;if((0,n.isNil)(l)&&(l=0),(0,n.isNil)(c)&&(c=e.length-1),!(0,n.isNumber)(i)||i>=u)return e.slice(l,c+1);if(i<=0||c<=0)return[];for(var f=1===i?u:Math.floor(u/(i-1)),h=[],p=l,d=0;d=c);d++)p=Math.min(l+d*f,c),d===i-1&&a?h.push(e[c]):h.push(e[p]);return h}},function(t,e,r){"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(310);e.default=function(t,e,r){if(void 0===r&&(r=5),t===e)return{max:e,min:t,ticks:[t]};var i=r<0?0:Math.round(r);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 u=Math.ceil(e/s),l=Math.floor(t/s),c=Math.max(u*s,e),f=Math.min(l*s,t),h=Math.floor((c-f)/s)+1,p=new Array(h),d=0;d1){var _=l[0],x=Math.abs(t.y-_[0].y);try{for(var b=n.__values(l),M=b.next();!M.done;M=b.next()){var P=M.value,O=Math.abs(t.y-P[0].y);O<=x&&(_=P,x=O)}}catch(t){s={error:t}}finally{try{M&&!M.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}l=[_]}return function(t){for(var e=[],r=function(r){var n=t[r];(0,i.find)(e,(function(t){return t.color===n.color&&t.name===n.name&&t.value===n.value&&t.title===n.title}))||e.push(n)},n=0;n'+n+"":n}})},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")}},r=this.getTooltipCfg(),i=new a.HtmlTooltip(n.__assign(n.__assign({parent:t.get("el").parentNode,region:e},r),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var r,a,s=this.getTooltipMarkersGroup(),u=this.view.getRootView(),l=u.limitInPlot;try{for(var c=n.__values(t),f=c.next();!f.done;f=c.next()){var h=f.value,p=h.x,d=h.y;if(l||(null==s?void 0:s.getClip())){var g=(0,o.getCoordinateClipCfg)(u.getCoordinate()),v=g.type,y=g.attrs;null==s||s.setClip({type:v,attrs:y})}else null==s||s.setClip(void 0);var m=this.view.getTheme(),_=(0,i.get)(m,["components","tooltip","marker"],{}),x=n.__assign(n.__assign({fill:h.color,symbol:"circle",shadowColor:h.color},(0,i.isFunction)(e)?n.__assign(n.__assign({},_),e(h)):e),{x:p,y:d});s.addShape("marker",{attrs:x})}}catch(t){r={error:t}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}},e.prototype.renderCrosshairs=function(t,e){var r=(0,i.get)(e,["crosshairs","type"],"x");"x"===r?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===r?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===r&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var r,n,u=this.getViewWithGeometry(this.view).getCoordinate();if(u.isRect)u.isTransposed?(r={x:u.start.x,y:t.y},n={x:u.end.x,y:t.y}):(r={x:t.x,y:u.end.y},n={x:t.x,y:u.start.y});else{var l=(0,o.getAngleByPoint)(u,t),c=u.getCenter(),f=u.getRadius();n=(0,s.polarToCartesian)(c.x,c.y,f,l),r=c}var h=(0,i.deepMix)({start:r,end:n,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 r,n,s=this.getViewWithGeometry(this.view).getCoordinate();if(s.isRect){var u=void 0,l=void 0;s.isTransposed?(u={x:t.x,y:s.end.y},l={x:t.x,y:s.start.y}):(u={x:s.start.x,y:t.y},l={x:s.end.x,y:t.y}),r={start:u,end:l},n="Line"}else r={center:s.getCenter(),radius:(0,o.getDistanceToCenter)(s,t),startAngle:s.startAngle,endAngle:s.endAngle},n="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?s.isRect&&"circle"===c.get("type")||!s.isRect&&"line"===c.get("type")?(c=new a.Crosshair[n](r)).init():c.update(r):(c=new a.Crosshair[n](r)).init(),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,r){var n=(0,i.get)(r,["crosshairs","text"]),a=(0,i.get)(r,["crosshairs","follow"]),o=this.items;if(n){var s=this.getViewWithGeometry(this.view),u=o[0],l=s.getXScale(),c=s.getYScales()[0],f=void 0,h=void 0;if(a){var p=this.view.getCoordinate().invert(e);f=l.invert(p.x),h=c.invert(p.y)}else f=u.data[l.field],h=u.data[c.field];var d="x"===t?f:h;return(0,i.isFunction)(n)?n=n(t,d,o,e):n.content=d,{text:n}}},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 r,i;if(!1===t.getOptions().tooltip)return[];var a=this.getTooltipCfg(),o=(0,u.findItemsFromView)(t,e,a);try{for(var s=n.__values(t.views),l=s.next();!l.done;l=s.next()){var c=l.value;o=o.concat(this.findItemsFromView(c,e))}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.getAnimation=void 0;var n={};e.getAnimation=function(t){return n[t.toLowerCase()]},e.registerAnimation=function(t,e){n[t.toLowerCase()]=e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelChange=void 0;var n=r(2);e.isModelChange=function(t,e){return(0,n.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(r){return!(0,n.isEqual)(t[r],e[r])}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diff=void 0,e.diff=function(t,e){for(var r=[],n=[],i=[],a=new Map,o=0;o1){var a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,n.__spreadArray([e],n.__read(a),!1)).join("")}else i=t.mapping(e).join("");return i||r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var n=r(0),i=r(2),a=r(4),o=r(323),s=r(31),u=r(81),l=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&u.MarkerSymbols[e]&&(t.symbol=u.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,r,a,u){var f=r.getScale(r.type);if(f.isCategory){var h=f.field,p=e.getAttribute("color"),d=e.getAttribute("shape"),g=t.getTheme().defaultColor,v=e.coordinate.isPolar;return f.getTicks().map((function(r,y){var m,_=r.text,x=r.value,b=_,M=f.invert(x),P=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||(P=!0)}));var O,S,C=(0,o.getMappingValue)(p,M,g),w=(0,o.getMappingValue)(d,M,"point"),A=e.getShapeMarker(w,{color:C,isInPolar:v}),T=u;return(0,i.isFunction)(T)&&(T=T(b,y,n.__assign({name:b,value:M},(0,i.deepMix)({},a,A)))),function(t,e){var r=t.symbol;if((0,i.isString)(r)&&-1!==l.indexOf(r)){var n=(0,i.get)(t,"style",{}),a=(0,i.get)(n,"lineWidth",1),o=n.stroke||n.fill||e;t.style=(0,i.deepMix)({},t.style,{lineWidth:a,stroke:o,fill:null})}}(A=(0,i.deepMix)({},a,A,(0,s.omit)(n.__assign({},T),["style"])),C),T&&T.style&&(A.style=(O=A.style,S=T.style,(0,i.isFunction)(S)?S(O):(0,i.deepMix)({},O,S))),c(A),{id:M,name:b,value:M,marker:A,unchecked:P}}))}return[]},e.getCustomLegendItems=function(t,e,r){return r.map((function(r,n){var a=e;(0,i.isFunction)(a)&&(a=a(r.name,n,(0,i.deepMix)({},t,r)));var o=(0,i.isFunction)(r.marker)?r.marker(r.name,n,(0,i.deepMix)({},t,r)):r.marker,s=(0,i.deepMix)({},t,a,o);return c(s),r.marker=s,r}))},e.getLegendThemeCfg=function(t,e){var r=(0,i.get)(t,["components","legend"],{});return(0,i.deepMix)({},(0,i.get)(r,["common"],{}),(0,i.deepMix)({},(0,i.get)(r,[e],{})))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLineMarker=void 0;var n={line:function(t,e,r){return[["M",t-r,e],["L",t+r,e]]},dot:function(t,e,r){return[["M",t-r,e],["L",t+r,e]]},dash:function(t,e,r){return[["M",t-r,e],["L",t+r,e]]},smooth:function(t,e,r){return[["M",t-r,e],["A",r/2,r/2,0,1,1,t,e],["A",r/2,r/2,0,1,0,t+r,e]]},hv:function(t,e,r){return[["M",t-r-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+r+1,e+2.5]]},vh:function(t,e,r){return[["M",t-r-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+r+1,e-2.5]]},hvh:function(t,e,r){return[["M",t-(r+1),e+2.5],["L",t-r/2,e+2.5],["L",t-r/2,e-2.5],["L",t+r/2,e-2.5],["L",t+r/2,e+2.5],["L",t+r+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 r=t.color;return{symbol:n[e],style:{lineWidth:2,r:6,stroke:r}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var n=r(0),i=n.__importStar(r(82));e.Shape=i,n.__exportStar(r(15),e);var a=r(795);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return n.__importDefault(a).default}});var o=r(165);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return n.__importDefault(o).default}});var s=r(328);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return n.__importDefault(s).default}}),e.version="0.5.12"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var n=r(18),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 u(t,e){var r=t.match(s);(0,n.each)(r,(function(t){var r=t.split(":");e.addColorStop(r[0],r[1])}))}function l(t,e,r){var n,a,o=i.exec(r),s=parseFloat(o[1])%360*(Math.PI/180),l=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(n={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s1&&(r*=Math.sqrt(v),i*=Math.sqrt(v));var y=r*r*(g*g)+i*i*(d*d),m=y?Math.sqrt((r*r*(i*i)-y)/y):1;u===l&&(m*=-1),isNaN(m)&&(m=0);var _=i?m*r*g/i:0,x=r?m*-i*d/r:0,b=(c+h)/2+Math.cos(s)*_-Math.sin(s)*x,M=(f+p)/2+Math.sin(s)*_+Math.cos(s)*x,P=[(d-_)/r,(g-x)/i],O=[(-1*d-_)/r,(-1*g-x)/i],S=o([1,0],P),C=o(P,O);return a(P,O)<=-1&&(C=Math.PI),a(P,O)>=1&&(C=0),0===l&&C>0&&(C-=2*Math.PI),1===l&&C<0&&(C+=2*Math.PI),{cx:b,cy:M,rx:(0,n.isSamePoint)(t,[h,p])?0:r,ry:(0,n.isSamePoint)(t,[h,p])?0:i,startAngle:S,endAngle:S+C,xRotation:s,arcFlag:u,sweepFlag:l}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(15);e.default=function(t,e,r){var i=(0,n.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,r)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,r){return(r[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(r[1]-t[1])&&Math.min(t[0],e[0])<=r[0]&&r[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=r[1]&&r[1]<=Math.max(t[1],e[1])}e.default=function(t,e,r){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s0!=n(l[1]-r)>0&&n(e-(r-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(a=!a)}return a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(18);e.default=function(t,e,r,i,a,o,s,u){var l=(Math.atan2(u-e,s-t)+2*Math.PI)%(2*Math.PI);if(la)return!1;var c={x:t+r*Math.cos(l),y:e+r*Math.sin(l)};return(0,n.distance)(c.x,c.y,s,u)<=o/2}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(108));e.default=function(t,e,r,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s0&&(n*=1-e.innerRadius),r=.01*parseFloat(t)*n}return r},e.prototype.getLabelItems=function(e){var r=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return(0,i.map)(r,(function(t){if(t&&a){var e=a.scale((0,i.get)(t.data,a.field));return n.__assign(n.__assign({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,r=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(r.isTransposed){var n=r.getCenter(),i=t.offset;e=Math.abs(t.x-n.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,r){var n,i=1,a=t.content[r];this.isToMiddle(e)?n=this.getMiddlePoint(e.points):(1===t.content.length&&0===r?r=1:0===r&&(i=-1),n=this.getArcPoint(e,r));var o=t.offset*i,s=this.getPointAngle(n),u=t.labelEmit,l=this.getCirclePoint(s,o,n,u);return 0===l.r?l.content="":(l.content=a,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,o,u):t.rotate,l.start={x:n.x,y:n.y},l},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,r,i){var o=this.getCoordinate(),s=o.getCenter(),u=(0,a.getDistanceToCenter)(o,r);if(0===u)return n.__assign(n.__assign({},s),{r:u});var l=t;o.isTransposed&&u>e&&!i?l=t+2*Math.asin(e/(2*u)):u+=e;return{x:s.x+u*Math.cos(l),y:s.y+u*Math.sin(l),r:u}},e.prototype.getLabelRotate=function(t,e,r){var n=t+u;return r&&(n-=u),n&&(n>u?n-=Math.PI:n<-u&&(n+=Math.PI)),n},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),r=t.length,n={x:0,y:0};return(0,i.each)(t,(function(t){n.x+=t.x,n.y+=t.y})),n.x/=r,n.y/=r,n=e.convert(n)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,r){var n=t.filter((function(t){return!t.invisible}));n.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=r.minY,s=r.maxY,u=Math.abs(o-s),l=0,c=Number.MIN_VALUE,f=n.map((function(t){return t.y>l&&(l=t.y),t.yu&&(u=l-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),u-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>u&&(h.pos=u-h.size),f.splice(i,1),a=!0)}i=0,f.forEach((function(t){var r=o+e/2;t.targets.forEach((function(){n[i].y=t.pos+r,r+=e,i++}))}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return n.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,r=t.view;if(!r.isTooltipLocked()){var n=this.timeStamp,a=+new Date;if(a-n>(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(r,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),r=this.context.event,n=r.clientX,i=r.clientY;e.isCursorEntered({x:n,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}(n.__importDefault(r(13)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaskAttrs=void 0;var n=r(0),i=r(2),a=r(6),o=n.__importDefault(r(178));function s(t){var e=(0,i.last)(t),r=0,n=0,o=0;if(t.length){var s=t[0];r=(0,a.distance)(s,e)/2,n=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:n,y:o,r:r}}e.getMaskAttrs=s;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return n.__extends(e,t),e.prototype.getMaskAttrs=function(){return s(this.points)},e}(o.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRegion=void 0;var n=r(0),i=r(2),a=n.__importDefault(r(179));function o(t){t.x=(0,i.clamp)(t.x,0,1),t.y=(0,i.clamp)(t.y,0,1)}function s(t,e,r,n){var a=null,s=null,u=n.invert((0,i.head)(t)),l=n.invert((0,i.last)(t));return r&&(o(u),o(l)),"x"===e?(a=n.convert({x:u.x,y:0}),s=n.convert({x:l.x,y:1})):(a=n.convert({x:0,y:u.y}),s=n.convert({x:1,y:l.y})),{start:a,end:s}}e.getRegion=s;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return n.__extends(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return s(this.points,this.dim,this.inPlot,t)},e}(a.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaskAttrs=e.getMaskPath=void 0;var n=r(0),i=r(6),a=n.__importDefault(r(180));function o(t){return(0,i.getSpline)(t,!0)}function s(t){return{path:o(t)}}e.getMaskPath=o,e.getMaskAttrs=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.getMaskPath=function(){return o(this.points)},e.prototype.getMaskAttrs=function(){return s(this.points)},e}(a.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(181)),a=r(179),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return n.__extends(e,t),e.prototype.getRegion=function(t){return(0,a.getRegion)(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t),r=e.start,n=e.end;return(0,a.getMaskAttrs)(r,n)},e}(i.default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(181)),a=r(180),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=a.getMaskPath,e.getMaskAttrs=a.getMaskAttrs,e}return n.__extends(e,t),e.prototype.addPoint=function(){this.resize()},e}(i.default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var n,i=r(0),a=r(70),o=i.__importDefault(r(13)),s=r(6);function u(t,e,r,n){var a=Math.min(r[e],n[e]),o=Math.max(r[e],n[e]),s=i.__read(t.range,2),u=s[0],l=s[1];if(al&&(o=l),a===l&&o===l)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"}(n||(n={})),e.BRUSH_FILTER_EVENTS=n;var l=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 r=this.context.event.target.getCanvasBBox();t={x:r.x,y:r.y},e={x:r.maxX,y:r.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,l={view:o,event:i.event,dims:this.dims};o.emit(n.BEFORE_FILTER,a.Event.fromData(o,n.BEFORE_FILTER,l));var c=o.getCoordinate(),f=c.invert(e),h=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),d=u(p,"x",f,h);this.filterView(o,p.field,d)}if(this.hasDim("y")){var g=o.getYScales()[0];d=u(g,"y",f,h);this.filterView(o,g.field,d)}this.reRender(o,{source:n.FILTER}),o.emit(n.AFTER_FILTER,a.Event.fromData(o,n.AFTER_FILTER,l))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(n.BEFORE_RESET,a.Event.fromData(t,n.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var r=t.getYScales()[0];this.filterView(t,r.field,null)}this.reRender(t,{source:n.RESET}),t.emit(n.AFTER_RESET,a.Event.fromData(t,n.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,r){t.filter(e,r)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(o.default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(104),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 n.__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 r=this.getScale(t);e.scale(r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=e.VIEW_LIFE_CIRCLE=void 0;var n=r(0),i=r(28),a=r(781),o=r(316);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=n.__importStar(r(326)),u=n.__importStar(r(797)),l=r(28);(0,l.registerEngine)("canvas",s),(0,l.registerEngine)("svg",u);var c=r(28),f=n.__importDefault(r(818)),h=n.__importDefault(r(820)),p=n.__importDefault(r(822)),d=n.__importDefault(r(823)),g=n.__importDefault(r(825)),v=n.__importDefault(r(168)),y=n.__importDefault(r(826)),m=n.__importDefault(r(828)),_=n.__importDefault(r(830)),x=n.__importDefault(r(832));(0,c.registerGeometry)("Polygon",m.default),(0,c.registerGeometry)("Interval",d.default),(0,c.registerGeometry)("Schema",_.default),(0,c.registerGeometry)("Path",v.default),(0,c.registerGeometry)("Point",y.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),r(834),r(835),r(836),r(837),r(838),r(839),r(840),r(841),r(842),r(843),r(844),r(845),r(846),r(847),r(848),r(849),r(850),r(851),r(852),r(853);var b=r(28),M=n.__importDefault(r(106)),P=n.__importDefault(r(854)),O=n.__importDefault(r(855)),S=n.__importDefault(r(334));(0,b.registerGeometryLabel)("base",M.default),(0,b.registerGeometryLabel)("interval",P.default),(0,b.registerGeometryLabel)("pie",O.default),(0,b.registerGeometryLabel)("polar",S.default);var C=r(28),w=r(856),A=r(857),T=r(858),E=r(859),I=r(860),D=r(861),L=r(862),j=r(866),k=r(868),B=r(869),R=r(870),F=r(871),N=r(872);(0,C.registerGeometryLabelLayout)("overlap",D.overlap),(0,C.registerGeometryLabelLayout)("distribute",w.distribute),(0,C.registerGeometryLabelLayout)("fixed-overlap",D.fixedOverlap),(0,C.registerGeometryLabelLayout)("hide-overlap",L.hideOverlap),(0,C.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,C.registerGeometryLabelLayout)("limit-in-canvas",E.limitInCanvas),(0,C.registerGeometryLabelLayout)("limit-in-plot",N.limitInPlot),(0,C.registerGeometryLabelLayout)("pie-outer",A.pieOuterLabelLayout),(0,C.registerGeometryLabelLayout)("adjust-color",j.adjustColor),(0,C.registerGeometryLabelLayout)("interval-adjust-position",k.intervalAdjustPosition),(0,C.registerGeometryLabelLayout)("interval-hide-overlap",B.intervalHideOverlap),(0,C.registerGeometryLabelLayout)("point-adjust-position",R.pointAdjustPosition),(0,C.registerGeometryLabelLayout)("pie-spider",T.pieSpiderLabelLayout),(0,C.registerGeometryLabelLayout)("path-adjust-position",F.pathAdjustPosition);var Y=r(875),G=r(876),V=r(878),H=r(879),X=r(880),z=r(881),q=r(882),W=r(883),U=r(28);(0,U.registerAnimation)("fade-in",Y.fadeIn),(0,U.registerAnimation)("fade-out",Y.fadeOut),(0,U.registerAnimation)("grow-in-x",G.growInX),(0,U.registerAnimation)("grow-in-xy",G.growInXY),(0,U.registerAnimation)("grow-in-y",G.growInY),(0,U.registerAnimation)("scale-in-x",X.scaleInX),(0,U.registerAnimation)("scale-in-y",X.scaleInY),(0,U.registerAnimation)("wave-in",q.waveIn),(0,U.registerAnimation)("zoom-in",W.zoomIn),(0,U.registerAnimation)("zoom-out",W.zoomOut),(0,U.registerAnimation)("position-update",H.positionUpdate),(0,U.registerAnimation)("sector-path-update",z.sectorPathUpdate),(0,U.registerAnimation)("path-in",V.pathIn);var Z=r(28),Q=n.__importDefault(r(884)),K=n.__importDefault(r(885)),$=n.__importDefault(r(886)),J=n.__importDefault(r(887)),tt=n.__importDefault(r(888)),et=n.__importDefault(r(889));(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 rt=r(28),nt=n.__importDefault(r(890)),it=n.__importDefault(r(893)),at=n.__importDefault(r(895)),ot=n.__importDefault(r(896)),st=n.__importDefault(r(319)),ut=n.__importDefault(r(897));(0,rt.registerComponentController)("axis",it.default),(0,rt.registerComponentController)("legend",at.default),(0,rt.registerComponentController)("tooltip",st.default),(0,rt.registerComponentController)("annotation",nt.default),(0,rt.registerComponentController)("slider",ot.default),(0,rt.registerComponentController)("scrollbar",ut.default);var lt=r(28),ct=n.__importDefault(r(898)),ft=n.__importDefault(r(899)),ht=n.__importDefault(r(336)),pt=n.__importDefault(r(900)),dt=n.__importDefault(r(901)),gt=n.__importDefault(r(902)),vt=n.__importDefault(r(903)),yt=n.__importDefault(r(904)),mt=n.__importDefault(r(176)),_t=n.__importDefault(r(905)),xt=n.__importDefault(r(906)),bt=n.__importStar(r(907));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return bt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Mt=n.__importDefault(r(908)),Pt=n.__importDefault(r(909)),Ot=n.__importDefault(r(910)),St=n.__importDefault(r(911)),Ct=n.__importDefault(r(912)),wt=n.__importDefault(r(913)),At=n.__importDefault(r(915)),Tt=n.__importDefault(r(916)),Et=n.__importDefault(r(917)),It=n.__importDefault(r(918)),Dt=n.__importDefault(r(919)),Lt=n.__importDefault(r(337)),jt=n.__importDefault(r(338)),kt=n.__importDefault(r(180)),Bt=n.__importDefault(r(179)),Rt=n.__importDefault(r(339)),Ft=n.__importDefault(r(340)),Nt=n.__importDefault(r(920)),Yt=n.__importDefault(r(921)),Gt=n.__importDefault(r(341)),Vt=n.__importDefault(r(922)),Ht=n.__importDefault(r(923)),Xt=n.__importDefault(r(924)),zt=n.__importStar(r(342));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return zt.BRUSH_FILTER_EVENTS}});var qt=n.__importDefault(r(925)),Wt=n.__importDefault(r(926)),Ut=n.__importDefault(r(927)),Zt=n.__importDefault(r(928)),Qt=n.__importDefault(r(929)),Kt=n.__importDefault(r(930)),$t=n.__importDefault(r(931)),Jt=n.__importDefault(r(932)),te=n.__importDefault(r(933)),ee=n.__importDefault(r(934));(0,lt.registerAction)("tooltip",ht.default),(0,lt.registerAction)("sibling-tooltip",ft.default),(0,lt.registerAction)("ellipsis-text",pt.default),(0,lt.registerAction)("element-active",dt.default),(0,lt.registerAction)("element-single-active",yt.default),(0,lt.registerAction)("element-range-active",vt.default),(0,lt.registerAction)("element-highlight",mt.default),(0,lt.registerAction)("element-highlight-by-x",xt.default),(0,lt.registerAction)("element-highlight-by-color",_t.default),(0,lt.registerAction)("element-single-highlight",Mt.default),(0,lt.registerAction)("element-range-highlight",bt.default),(0,lt.registerAction)("element-sibling-highlight",bt.default,{effectSiblings:!0,effectByRecord:!0}),(0,lt.registerAction)("element-selected",Ot.default),(0,lt.registerAction)("element-single-selected",St.default),(0,lt.registerAction)("element-range-selected",Pt.default),(0,lt.registerAction)("element-link-by-color",gt.default),(0,lt.registerAction)("active-region",ct.default),(0,lt.registerAction)("list-active",Ct.default),(0,lt.registerAction)("list-selected",At.default),(0,lt.registerAction)("list-highlight",wt.default),(0,lt.registerAction)("list-unchecked",Tt.default),(0,lt.registerAction)("list-checked",Et.default),(0,lt.registerAction)("list-focus",It.default),(0,lt.registerAction)("list-radio",Dt.default),(0,lt.registerAction)("legend-item-highlight",wt.default,{componentNames:["legend"]}),(0,lt.registerAction)("axis-label-highlight",wt.default,{componentNames:["axis"]}),(0,lt.registerAction)("axis-description",ee.default),(0,lt.registerAction)("rect-mask",Bt.default),(0,lt.registerAction)("x-rect-mask",jt.default,{dim:"x"}),(0,lt.registerAction)("y-rect-mask",jt.default,{dim:"y"}),(0,lt.registerAction)("circle-mask",Lt.default),(0,lt.registerAction)("path-mask",kt.default),(0,lt.registerAction)("smooth-path-mask",Rt.default),(0,lt.registerAction)("rect-multi-mask",Ft.default),(0,lt.registerAction)("x-rect-multi-mask",Nt.default,{dim:"x"}),(0,lt.registerAction)("y-rect-multi-mask",Nt.default,{dim:"y"}),(0,lt.registerAction)("circle-multi-mask",Yt.default),(0,lt.registerAction)("path-multi-mask",Gt.default),(0,lt.registerAction)("smooth-path-multi-mask",Vt.default),(0,lt.registerAction)("cursor",Ht.default),(0,lt.registerAction)("data-filter",Xt.default),(0,lt.registerAction)("brush",zt.default),(0,lt.registerAction)("brush-x",zt.default,{dims:["x"]}),(0,lt.registerAction)("brush-y",zt.default,{dims:["y"]}),(0,lt.registerAction)("sibling-filter",qt.default),(0,lt.registerAction)("sibling-x-filter",qt.default,{dims:"x"}),(0,lt.registerAction)("sibling-y-filter",qt.default,{dims:"y"}),(0,lt.registerAction)("element-filter",Wt.default),(0,lt.registerAction)("element-sibling-filter",Ut.default),(0,lt.registerAction)("element-sibling-filter-record",Ut.default,{byRecord:!0}),(0,lt.registerAction)("view-drag",Qt.default),(0,lt.registerAction)("view-move",Kt.default),(0,lt.registerAction)("scale-translate",$t.default),(0,lt.registerAction)("scale-zoom",Jt.default),(0,lt.registerAction)("reset-button",Zt.default,{name:"reset-button",text:"reset"}),(0,lt.registerAction)("mousewheel-scroll",te.default);var re=r(28),ne=r(6);function ie(t){return t.isInPlot()}function ae(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,re.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,re.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:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,re.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,re.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,re.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,re.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,re.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,re.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,re.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,re.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,re.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,re.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,re.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ie,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ie,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ie,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,re.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,re.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ie,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ie,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ie,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,re.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ie,action:"path-mask:start"},{trigger:"mousedown",isEnable:ie,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,re.registerInteraction)("brush-x-multi",{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:"mousedown",isEnable:ie,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!(0,ne.isMultipleMask)(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),(0,re.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,re.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:["legend-item-highlight:reset","element-highlight:reset","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,re.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,re.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,re.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:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),(0,re.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,re.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),(0,re.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return ae(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!ae(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,re.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,re.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var oe=r(4);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return oe.VIEW_LIFE_CIRCLE}}),n.__exportStar(r(28),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(4),o=r(198),s=r(425),u=function(t){function e(e){var r=this,u=e.container,l=e.width,c=e.height,f=e.autoFit,h=void 0!==f&&f,p=e.padding,d=e.appendPadding,g=e.renderer,v=void 0===g?"canvas":g,y=e.pixelRatio,m=e.localRefresh,_=void 0===m||m,x=e.visible,b=void 0===x||x,M=e.supportCSSTransform,P=void 0!==M&&M,O=e.defaultInteractions,S=void 0===O?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:O,C=e.options,w=e.limitInPlot,A=e.theme,T=e.syncViewPadding,E=(0,i.isString)(u)?document.getElementById(u):u,I=(0,s.createDom)('
');E.appendChild(I);var D=(0,s.getChartSize)(E,h,l,c),L=new((0,o.getEngine)(v).Canvas)(n.__assign({container:I,pixelRatio:y,localRefresh:_,supportCSSTransform:P},D));return(r=t.call(this,{parent:null,canvas:L,backgroundGroup:L.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:L.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:L.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:d,visible:b,options:C,limitInPlot:w,theme:A,syncViewPadding:T})||this).onResize=(0,i.debounce)((function(){r.forceFit()}),300),r.ele=E,r.canvas=L,r.width=D.width,r.height=D.height,r.autoFit=h,r.localRefresh=_,r.renderer=v,r.wrapperElement=I,r.updateCanvasStyle(),r.bindAutoFit(),r.initDefaultInteractions(S),r}return n.__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,r=t.height;this.changeSize(e,r)}},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}(n.__importDefault(r(201)).default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(182)),a=n.__importDefault(r(111));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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(21)),a=n.__importDefault(r(183)),o=n.__importDefault(r(9)),s=n.__importDefault(r(71));e.default=function(t,e){if(!(0,o.default)(t))return null;var r;if((0,i.default)(e)&&(r=e),(0,s.default)(e)&&(r=function(t){return(0,a.default)(t,e)}),r)for(var n=0;n-1;)i.call(t,s,1);return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(20)),a=n.__importDefault(r(187));e.default=function(t,e){var r=[];if(!(0,i.default)(t))return r;for(var n=-1,o=[],s=t.length;++ne[i])return 1;if(t[i]r?r:t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var r=e.toString(),n=r.indexOf(".");if(-1===n)return Math.round(t);var i=r.substr(n+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(38));e.default=function(t){return(0,n.default)(t)&&t%1!=0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(38));e.default=function(t){return(0,n.default)(t)&&t%2==0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(38)),i=Number.isInteger?Number.isInteger:function(t){return(0,n.default)(t)&&t%1==0};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(38));e.default=function(t){return(0,n.default)(t)&&t<0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,r){return void 0===r&&(r=1e-5),Math.abs(t-e)0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(9)),a=n.__importDefault(r(21));e.default=function(t,e){if((0,i.default)(t)){for(var r,n=-1/0,o=0;on&&(r=s,n=u)}return r}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(9)),a=n.__importDefault(r(21));e.default=function(t,e){if((0,i.default)(t)){for(var r,n=1/0,o=0;oe?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(i,a),n||(i=a=null)):n||!1===r.trailing||(n=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(n),s=0,n=i=a=null},l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0).__importDefault(r(20));e.default=function(t){return(0,n.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};e.default=function(t){return n[t=t||"g"]?n[t]+=1:n[t]=1,t+n[t]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(45)),a=n.__importDefault(r(20));e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(37)),a=n.__importDefault(r(58)),o=n.__importDefault(r(197));e.default=function(t,e,r,n){void 0===n&&(n="...");var s,u,l=(0,o.default)(n,r),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,h=[];if((0,o.default)(t,r)<=e)return t;for(;s=c.substr(0,16),!((u=(0,o.default)(s,r))+l>f&&u>f);)if(h.push(s),f-=u,!(c=c.substr(16)))return h.join("");for(;s=c.substr(0,1),!((u=(0,o.default)(s,r))+l>f);)if(h.push(s),f-=u,!(c=c.substr(1)))return h.join("");return""+h.join("")+n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var r=this.map[t];return void 0===r?e:r},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=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDom=e.removeDom=e.getChartSize=void 0;var n=r(4);function i(t){return"number"==typeof t&&!isNaN(t)}e.getChartSize=function(t,e,r,a){var o=r,s=a;if(e){var u=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=u.width?u.width:o,s=u.height?u.height:s}return{width:Math.max(i(o)?o:n.MIN_CHART_WIDTH,n.MIN_CHART_WIDTH),height:Math.max(i(s)?s:n.MIN_CHART_HEIGHT,n.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=r(426);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,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.getWidth=e.getStyle=e.getRatio=e.getOuterWidth=e.getOuterHeight=e.getHeight=e.createDom=e.addEventListener=void 0;var i=r(427);Object.defineProperty(e,"addEventListener",{enumerable:!0,get:function(){return n(i).default}});var a=r(428);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return n(a).default}});var o=r(199);Object.defineProperty(e,"getHeight",{enumerable:!0,get:function(){return n(o).default}});var s=r(429);Object.defineProperty(e,"getOuterHeight",{enumerable:!0,get:function(){return n(s).default}});var u=r(430);Object.defineProperty(e,"getOuterWidth",{enumerable:!0,get:function(){return n(u).default}});var l=r(431);Object.defineProperty(e,"getRatio",{enumerable:!0,get:function(){return n(l).default}});var c=r(72);Object.defineProperty(e,"getStyle",{enumerable:!0,get:function(){return n(c).default}});var f=r(200);Object.defineProperty(e,"getWidth",{enumerable:!0,get:function(){return n(f).default}});var h=r(432);Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return n(h).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,r,!1),{remove:function(){t.removeEventListener(e,r,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,r),{remove:function(){t.detachEvent("on"+e,r)}}}}},function(t,e,r){"use strict";var n,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){n||(n=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var r=o[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,r.innerHTML=""+t;var s=r.childNodes[0];return s&&r.contains(s)&&r.removeChild(s),s}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(72)),a=n.__importDefault(r(199));e.default=function(t,e){var r=(0,a.default)(t,e),n=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0;return r+n+(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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(72)),a=n.__importDefault(r(200));e.default=function(t,e){var r=(0,a.default)(t,e),n=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,u=parseFloat((0,i.default)(t,"borderRightWidth"))||0,l=parseFloat((0,i.default)(t,"marginRight"))||0;return r+n+u+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(206),o=n.__importDefault(r(208)),s=r(50),u=n.__importDefault(r(440)),l=n.__importDefault(r(472)),c=(0,a.detect)(),f=c&&"firefox"===c.name,h=function(t){function e(e){var r=t.call(this,e)||this;return r.initContainer(),r.initDom(),r.initEvents(),r.initTimeline(),r}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 l.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new u.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var r=this.get("el");s.isBrowser&&(r.style.width=t+"px",r.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),r=e.x,n=e.y;return this.getPointByClient(r,n)},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 r=this.get("el").getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var r=this.get("el").getBoundingClientRect();return{x:t+r.left,y:e+r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.multiplyScalarAndAdd=e.multiplyScalar=e.equals=e.exactEquals=e.subtract=e.add=e.LDU=e.frob=e.str=e.fromScaling=e.fromRotation=e.scale=e.rotate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var n=r(0).__importStar(r(34));function i(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],u=r[1],l=r[2],c=r[3];return t[0]=n*s+a*u,t[1]=i*s+o*u,t[2]=n*l+a*c,t[3]=i*l+o*c,t}function a(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}e.create=function(){var t=new n.ARRAY_TYPE(4);return n.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new n.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},e.fromValues=function(t,e,r,i){var a=new n.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=i,a},e.set=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t},e.transpose=function(t,e){if(t===e){var r=e[1];t[1]=e[2],t[2]=r}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},e.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*a-i*n;return o?(o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-i*o,t[3]=r*o,t):null},e.adjoint=function(t,e){var r=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=r,t},e.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},e.multiply=i,e.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+a*s,t[1]=i*u+o*s,t[2]=n*-s+a*u,t[3]=i*-s+o*u,t},e.scale=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],u=r[1];return t[0]=n*s,t[1]=i*s,t[2]=a*u,t[3]=o*u,t},e.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},e.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},e.LDU=function(t,e,r,n){return t[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-t[2]*r[1],[t,e,r]},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t},e.subtract=a,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 r=t[0],i=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(r-s)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-c)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},e.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},e.mul=i,e.sub=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.fromTranslation=e.fromScaling=e.fromRotation=e.translate=e.scale=e.rotate=e.multiply=e.determinant=e.invert=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var n=r(0).__importStar(r(34));function i(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=r[0],c=r[1],f=r[2],h=r[3],p=r[4],d=r[5];return t[0]=n*l+a*c,t[1]=i*l+o*c,t[2]=n*f+a*h,t[3]=i*f+o*h,t[4]=n*p+a*d+s,t[5]=i*p+o*d+u,t}function a(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t}e.create=function(){var t=new n.ARRAY_TYPE(6);return n.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new n.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},e.copy=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},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},e.fromValues=function(t,e,r,i,a,o){var s=new n.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=r,s[3]=i,s[4]=a,s[5]=o,s},e.set=function(t,e,r,n,i,a,o){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t},e.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=r*a-n*i;return u?(u=1/u,t[0]=a*u,t[1]=-n*u,t[2]=-i*u,t[3]=r*u,t[4]=(i*s-a*o)*u,t[5]=(n*o-r*s)*u,t):null},e.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},e.multiply=i,e.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=Math.sin(r),c=Math.cos(r);return t[0]=n*c+a*l,t[1]=i*c+o*l,t[2]=n*-l+a*c,t[3]=i*-l+o*c,t[4]=s,t[5]=u,t},e.scale=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=r[0],c=r[1];return t[0]=n*l,t[1]=i*l,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=u,t},e.translate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=r[0],c=r[1];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=n*l+a*c+s,t[5]=i*l+o*c+u,t},e.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t[4]=0,t[5]=0,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},e.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t},e.subtract=a,e.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t},e.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,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]},e.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=e[0],c=e[1],f=e[2],h=e[3],p=e[4],d=e[5];return Math.abs(r-l)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-c)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(o-h)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-p)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-d)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(d))},e.mul=i,e.sub=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.exactEquals=e.str=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.conjugate=e.invert=e.lerp=e.dot=e.scale=e.mul=e.multiply=e.add=e.rotateAroundAxis=e.rotateByQuatPrepend=e.rotateByQuatAppend=e.rotateZ=e.rotateY=e.rotateX=e.translate=e.getTranslation=e.setDual=e.setReal=e.getDual=e.getReal=e.set=e.identity=e.copy=e.fromMat4=e.fromRotation=e.fromTranslation=e.fromRotationTranslation=e.fromRotationTranslationValues=e.fromValues=e.clone=e.create=void 0;var n=r(0),i=n.__importStar(r(34)),a=n.__importStar(r(212)),o=n.__importStar(r(211));function s(t,e,r){var n=.5*r[0],i=.5*r[1],a=.5*r[2],o=e[0],s=e[1],u=e[2],l=e[3];return t[0]=o,t[1]=s,t[2]=u,t[3]=l,t[4]=n*l+i*u-a*s,t[5]=i*l+a*o-n*u,t[6]=a*l+n*s-i*o,t[7]=-n*o-i*s-a*u,t}function u(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}function l(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[4],u=r[5],l=r[6],c=r[7],f=e[4],h=e[5],p=e[6],d=e[7],g=r[0],v=r[1],y=r[2],m=r[3];return t[0]=n*m+o*g+i*y-a*v,t[1]=i*m+o*v+a*g-n*y,t[2]=a*m+o*y+n*v-i*g,t[3]=o*m-n*g-i*v-a*y,t[4]=n*c+o*s+i*l-a*u+f*m+d*g+h*y-p*v,t[5]=i*c+o*u+a*s-n*l+h*m+d*v+p*g-f*y,t[6]=a*c+o*l+n*u-i*s+p*m+d*y+f*v-h*g,t[7]=o*c-n*s-i*u-a*l+d*m-f*g-h*v-p*y,t}e.create=function(){var t=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},e.clone=function(t){var e=new i.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e},e.fromValues=function(t,e,r,n,a,o,s,u){var l=new i.ARRAY_TYPE(8);return l[0]=t,l[1]=e,l[2]=r,l[3]=n,l[4]=a,l[5]=o,l[6]=s,l[7]=u,l},e.fromRotationTranslationValues=function(t,e,r,n,a,o,s){var u=new i.ARRAY_TYPE(8);u[0]=t,u[1]=e,u[2]=r,u[3]=n;var l=.5*a,c=.5*o,f=.5*s;return u[4]=l*n+c*r-f*e,u[5]=c*n+f*t-l*r,u[6]=f*n+l*e-c*t,u[7]=-l*t-c*e-f*r,u},e.fromRotationTranslation=s,e.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},e.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.fromMat4=function(t,e){var r=a.create();o.getRotation(r,e);var n=new i.ARRAY_TYPE(3);return o.getTranslation(n,e),s(t,r,n),t},e.copy=u,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.set=function(t,e,r,n,i,a,o,s,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t},e.getReal=a.copy,e.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},e.setReal=a.copy,e.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},e.getTranslation=function(t,e){var r=e[4],n=e[5],i=e[6],a=e[7],o=-e[0],s=-e[1],u=-e[2],l=e[3];return t[0]=2*(r*l+a*o+n*u-i*s),t[1]=2*(n*l+a*s+i*o-r*u),t[2]=2*(i*l+a*u+r*s-n*o),t},e.translate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=.5*r[0],u=.5*r[1],l=.5*r[2],c=e[4],f=e[5],h=e[6],p=e[7];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=o*s+i*l-a*u+c,t[5]=o*u+a*s-n*l+f,t[6]=o*l+n*u-i*s+h,t[7]=-n*s-i*u-a*l+p,t},e.rotateX=function(t,e,r){var n=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],h=u*s+f*n+l*o-c*i,p=l*s+f*i+c*n-u*o,d=c*s+f*o+u*i-l*n,g=f*s-u*n-l*i-c*o;return a.rotateX(t,e,r),n=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*n+p*o-d*i,t[5]=p*s+g*i+d*n-h*o,t[6]=d*s+g*o+h*i-p*n,t[7]=g*s-h*n-p*i-d*o,t},e.rotateY=function(t,e,r){var n=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],h=u*s+f*n+l*o-c*i,p=l*s+f*i+c*n-u*o,d=c*s+f*o+u*i-l*n,g=f*s-u*n-l*i-c*o;return a.rotateY(t,e,r),n=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*n+p*o-d*i,t[5]=p*s+g*i+d*n-h*o,t[6]=d*s+g*o+h*i-p*n,t[7]=g*s-h*n-p*i-d*o,t},e.rotateZ=function(t,e,r){var n=-e[0],i=-e[1],o=-e[2],s=e[3],u=e[4],l=e[5],c=e[6],f=e[7],h=u*s+f*n+l*o-c*i,p=l*s+f*i+c*n-u*o,d=c*s+f*o+u*i-l*n,g=f*s-u*n-l*i-c*o;return a.rotateZ(t,e,r),n=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*n+p*o-d*i,t[5]=p*s+g*i+d*n-h*o,t[6]=d*s+g*o+h*i-p*n,t[7]=g*s-h*n-p*i-d*o,t},e.rotateByQuatAppend=function(t,e,r){var n=r[0],i=r[1],a=r[2],o=r[3],s=e[0],u=e[1],l=e[2],c=e[3];return t[0]=s*o+c*n+u*a-l*i,t[1]=u*o+c*i+l*n-s*a,t[2]=l*o+c*a+s*i-u*n,t[3]=c*o-s*n-u*i-l*a,s=e[4],u=e[5],l=e[6],c=e[7],t[4]=s*o+c*n+u*a-l*i,t[5]=u*o+c*i+l*n-s*a,t[6]=l*o+c*a+s*i-u*n,t[7]=c*o-s*n-u*i-l*a,t},e.rotateByQuatPrepend=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],u=r[1],l=r[2],c=r[3];return t[0]=n*c+o*s+i*l-a*u,t[1]=i*c+o*u+a*s-n*l,t[2]=a*c+o*l+n*u-i*s,t[3]=o*c-n*s-i*u-a*l,s=r[4],u=r[5],l=r[6],c=r[7],t[4]=n*c+o*s+i*l-a*u,t[5]=i*c+o*u+a*s-n*l,t[6]=a*c+o*l+n*u-i*s,t[7]=o*c-n*s-i*u-a*l,t},e.rotateAroundAxis=function(t,e,r,n){if(Math.abs(n)0){n=Math.sqrt(n);var i=r[0]/n,a=r[1]/n,o=r[2]/n,s=r[3]/n,u=r[4],l=r[5],c=r[6],f=r[7],h=i*u+a*l+o*c+s*f;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(u-i*h)/n,t[5]=(l-a*h)/n,t[6]=(c-o*h)/n,t[7]=(f-s*h)/n}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 r=t[0],n=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=e[0],h=e[1],p=e[2],d=e[3],g=e[4],v=e[5],y=e[6],m=e[7];return Math.abs(r-f)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(n-h)<=i.EPSILON*Math.max(1,Math.abs(n),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(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}},function(t,e,r){"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 n=r(87);function i(t,e,r){var i=[0,0,0,0,0,0,0,0,0];return n.mat3.fromTranslation(i,r),n.mat3.multiply(t,i,e)}function a(t,e,r){var i=[0,0,0,0,0,0,0,0,0];return n.mat3.fromRotation(i,r),n.mat3.multiply(t,i,e)}function o(t,e,r){var i=[0,0,0,0,0,0,0,0,0];return n.mat3.fromScaling(i,r),n.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 r,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c=0;return r?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importStar(r(441)),o=r(444),s=r(223),u=n.__importStar(r(203)),l=r(471),c=[1,0,0,0,1,0,0,0,1];function f(t,e,r){var n,a=e.startTime;if(rd.length?(p=u.parsePathString(s[h]),d=u.parsePathString(a[h]),d=u.fillPathByDiff(d,p),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=u.parsePathString(s[h]),d=u.parsePathString(a[h]),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),n[h]=[];for(var g=0;g0){for(var a=n.animators.length-1;a>=0;a--)if((t=n.animators[a]).destroyed)n.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)r=e[o],f(t,r,i)&&(e.splice(o,1),!1,r.callback&&r.callback());0===e.length&&n.removeAnimator(a)}n.canvas.get("autoDraw")||n.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,r){"use strict";var n=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=r(120);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=r(442);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return n(a).default}});var o=r(443);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return n(o).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(120);e.default=function(t,e,r){var i=new n.Timer;return e=null==e?0:+e,i.restart((function(r){i.stop(),t(r+e)}),e,r),i}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(120);e.default=function(t,e,r){var i=new n.Timer,a=e;return null==e?(i.restart(t,e,r),i):(e=+e,r=null==r?(0,n.now)():+r,i.restart((function n(o){o+=a,i.restart(n,a+=e,r),t(o)}),e,r),i)}},function(t,e,r){"use strict";var n=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=r(121);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return n(i).default}});var a=r(219);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return n(a).default}});var o=r(124);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return n(o).default}});var s=r(217);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return n(s).default}});var u=r(220);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return n(u).default}});var l=r(447);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return n(l).default}});var c=r(448);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return n(c).default}});var f=r(88);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return n(f).default}});var h=r(125);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return n(h).default}});var p=r(221);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return n(p).default}});var d=r(449);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return n(d).default}});var g=r(222);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return n(g).default}});var v=r(450);Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return v.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return v.interpolateTransformSvg}});var y=r(453);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return n(y).default}});var m=r(216);Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return n(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 _=r(454);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return n(_).default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return _.hslLong}});var x=r(455);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return n(x).default}});var b=r(456);Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return n(b).default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return b.hclLong}});var M=r(457);Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return n(M).default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return M.cubehelixLong}});var P=r(458);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return n(P).default}});var O=r(459);Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return n(O).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var n=r(0).__importStar(r(123)),i=r(122),a=r(215),o=6/29,s=3*o*o;function u(t){if(t instanceof c)return new c(t.l,t.a,t.b,t.opacity);if(t instanceof y)return m(t);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e,r,n=d(t.r),a=d(t.g),o=d(t.b),s=f((.2225045*n+.7168786*a+.0606169*o)/1);return n===a&&a===o?e=r=s:(e=f((.4360747*n+.3850649*a+.1430804*o)/.96422),r=f((.0139322*n+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-r),t.opacity)}function l(t,e,r,n){return 1===arguments.length?u(t):new c(t,e,r,null==n?1:n)}function c(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}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 y)return new y(t.h,t.c,t.l,t.opacity);if(t instanceof c||(t=u(t)),0===t.a&&0===t.b)return new y(NaN,0180?e+=360:e-t>180&&(t+=360),o.push({i:r.push(a(r)+"rotate(",null,i)-2,x:(0,n.default)(t,e)})):e&&r.push(a(r)+"rotate("+e+i)}(o.rotate,s.rotate,u,l),function(t,e,r,o){t!==e?o.push({i:r.push(a(r)+"skewX(",null,i)-2,x:(0,n.default)(t,e)}):e&&r.push(a(r)+"skewX("+e+i)}(o.skewX,s.skewX,u,l),function(t,e,r,i,o,s){if(t!==r||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:(0,n.default)(t,r)},{i:u-2,x:(0,n.default)(e,i)})}else 1===r&&1===i||o.push(a(o)+"scale("+r+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,l),o=s=null,function(t){for(var e,r=-1,n=l.length;++r120||l*l+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",r,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",r,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(r,t,i,e),this._emitEvent("mousemove",r,t,e)):(this._emitMouseoverEvents(r,t,i,e),this._emitEvent("mousemove",r,t,e))}else this._emitMouseoverEvents(r,t,i,e),this._emitEvent("mousemove",r,t,e)}},t.prototype._emitEvent=function(t,e,r,n,i,a){var u=this._getEventObj(t,e,r,n,i,a);if(n){u.shape=n,o(n,t,u);for(var l=n.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{o(this.canvas,t,u)}},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=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(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),r=this.getChildren(),n=0;n=t&&r.minY<=e&&r.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(),r=t.minX,n=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),u=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),l=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);r=Math.min(s[0],u[0],l[0],c[0]),i=Math.max(s[0],u[0],l[0],c[0]),n=Math.min(s[1],u[1],l[1],c[1]),a=Math.max(s[1],u[1],l[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,v=f.shadowOffsetY,y=void 0===v?0:v,m=r-p+g,_=i+p+g,x=n-p+y,b=a+p+y;r=Math.min(r,m),i=Math.max(i,_),n=Math.min(n,x),a=Math.max(a,b)}return{x:r,y:n,minX:r,minY:n,maxX:i,maxY:a,width:i-r,height:a-n}},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 r=this.get("startArrowShape"),n=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(r&&r.isHit(a,o))return!0;if(n&&n.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerBBox=e.getBBoxMethod=void 0;var n=r(0),i=r(476);Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=n.__importDefault(r(477)),o=n.__importDefault(r(478)),s=n.__importDefault(r(479)),u=n.__importDefault(r(485)),l=n.__importDefault(r(486)),c=n.__importDefault(r(487)),f=n.__importDefault(r(502)),h=n.__importDefault(r(503));(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",u.default),(0,i.register)("text",l.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",h.default)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var n=new Map;e.register=function(t,e){n.set(t,e)},e.getMethod=function(t){return n.get(t)}},function(t,e,r){"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),r=e.x,n=e.y,i=e.r;return{x:r-i,y:n-i,width:2*i,height:2*i}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(23),i=r(126);e.default=function(t){for(var e=t.attr().points,r=[],a=[],o=0;o=0?[a]:[]}function u(t,e,r,n){return 2*(1-n)*(e-t)+2*n*(r-e)}function l(t,e,r,i,a,s,u){var l=o(t,r,a,u),c=o(e,i,s,u),f=n.default.pointAt(t,e,r,i,u),h=n.default.pointAt(r,i,a,s,u);return[[t,e,f.x,f.y,l,c],[l,c,h.x,h.y,a,s]]}e.default={box:function(t,e,r,n,a,u){var l=s(t,r,a)[0],c=s(e,n,u)[0],f=[t,a],h=[e,u];return void 0!==l&&f.push(o(t,r,a,l)),void 0!==c&&h.push(o(e,n,u,c)),(0,i.getBBoxByArray)(f,h)},length:function(t,e,r,n,a,o){return function t(e,r,n,a,o,s,u){if(0===u)return((0,i.distance)(e,r,n,a)+(0,i.distance)(n,a,o,s)+(0,i.distance)(e,r,o,s))/2;var c=l(e,r,n,a,o,s,.5),f=c[0],h=c[1];return f.push(u-1),h.push(u-1),t.apply(null,f)+t.apply(null,h)}(t,e,r,n,a,o,3)},nearestPoint:function(t,e,r,n,i,s,u,l){return(0,a.nearestPoint)([t,r,i],[e,n,s],u,l,o)},pointDistance:function(t,e,r,n,a,o,s,u){var l=this.nearestPoint(t,e,r,n,a,o,s,u);return(0,i.distance)(l.x,l.y,s,u)},interpolationAt:o,pointAt:function(t,e,r,n,i,a,s){return{x:o(t,r,i,s),y:o(e,n,a,s)}},divide:function(t,e,r,n,i,a,o){return l(t,e,r,n,i,a,o)},tangentAngle:function(t,e,r,n,a,o,s){var l=u(t,r,a,s),c=u(e,n,o,s),f=Math.atan2(c,l);return(0,i.piMod)(f)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(39),a=n.__importDefault(r(89)),o=r(225);function s(t,e,r,n,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*r*i*i*a+n*i*i*i}function u(t,e,r,n,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(r-e)+i*i*(n-r))}function l(t,e,r,n){var a,o,s,u=-3*t+9*e-9*r+3*n,l=6*t-12*e+6*r,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(u,0))(0,i.isNumberEqual)(l,0)||(a=-c/l)>=0&&a<=1&&f.push(a);else{var h=l*l-4*u*c;(0,i.isNumberEqual)(h,0)?f.push(-l/(2*u)):h>0&&(o=(-l-(s=Math.sqrt(h)))/(2*u),(a=(-l+s)/(2*u))>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,r,n,i,o,u,l,c){var f=s(t,r,i,u,c),h=s(e,n,o,l,c),p=a.default.pointAt(t,e,r,n,c),d=a.default.pointAt(r,n,i,o,c),g=a.default.pointAt(i,o,u,l,c),v=a.default.pointAt(p.x,p.y,d.x,d.y,c),y=a.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,p.x,p.y,v.x,v.y,f,h],[f,h,y.x,y.y,g.x,g.y,u,l]]}e.default={extrema:l,box:function(t,e,r,n,a,o,u,c){for(var f=[t,u],h=[e,c],p=l(t,r,a,u),d=l(e,n,o,c),g=0;gf&&(f=g)}var v=function(t,e,r){return Math.atan(e/(t*Math.tan(r)))}(r,n,i),y=1/0,m=-1/0,_=[a,u];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=v+p;am&&(m=b)}return{x:c,y:y,width:f-c,height:m-y}},length:function(t,e,r,n,i,a,o){},nearestPoint:function(t,e,r,n,i,o,s,c,f){var h=l(c-t,f-e,-i),p=h[0],d=h[1],g=a.default.nearestPoint(0,0,r,n,p,d),v=function(t,e,r,n){return(Math.atan2(n*t,r*e)+2*Math.PI)%(2*Math.PI)}(r,n,g.x,g.y);vs&&(g=u(r,n,s));var y=l(g.x,g.y,i);return{x:y[0]+t,y:y[1]+e}},pointDistance:function(t,e,r,n,a,o,s,u,l){var c=this.nearestPoint(t,e,r,n,u,l);return(0,i.distance)(c.x,c.y,u,l)},pointAt:function(t,e,r,n,i,a,u,l){var c=(u-a)*l+a;return{x:o(t,0,r,n,i,c),y:s(0,e,r,n,i,c)}},tangentAngle:function(t,e,r,n,a,o,s,u){var l=(s-o)*u+o,c=function(t,e,r,n,i,a,o,s){return-1*r*Math.cos(i)*Math.sin(s)-n*Math.sin(i)*Math.cos(s)}(0,0,r,n,a,0,0,l),f=function(t,e,r,n,i,a,o,s){return-1*r*Math.sin(i)*Math.sin(s)+n*Math.cos(i)*Math.cos(s)}(0,0,r,n,a,0,0,l);return(0,i.piMod)(Math.atan2(f,c))}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(39);function i(t,e){var r=Math.abs(t);return e>0?r:-1*r}e.default={box:function(t,e,r,n){return{x:t-r,y:e-n,width:2*r,height:2*n}},length:function(t,e,r,n){return Math.PI*(3*(r+n)-Math.sqrt((3*r+n)*(r+3*n)))},nearestPoint:function(t,e,r,n,a,o){var s=r,u=n;if(0===s||0===u)return{x:t,y:e};for(var l,c,f=a-t,h=o-e,p=Math.abs(f),d=Math.abs(h),g=s*s,v=u*u,y=Math.PI/4,m=0;m<4;m++){l=s*Math.cos(y),c=u*Math.sin(y);var _=(g-v)*Math.pow(Math.cos(y),3)/s,x=(v-g)*Math.pow(Math.sin(y),3)/u,b=l-_,M=c-x,P=p-_,O=d-x,S=Math.hypot(M,b),C=Math.hypot(O,P);y+=S*Math.asin((b*O-M*P)/(S*C))/Math.sqrt(g+v-l*l-c*c),y=Math.min(Math.PI/2,Math.max(0,y))}return{x:t+i(l,f),y:e+i(c,h)}},pointDistance:function(t,e,r,i,a,o){var s=this.nearestPoint(t,e,r,i,a,o);return(0,n.distance)(s.x,s.y,a,o)},pointAt:function(t,e,r,n,i){var a=2*Math.PI*i;return{x:t+r*Math.cos(a),y:e+n*Math.sin(a)}},tangentAngle:function(t,e,r,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-r*Math.sin(o));return(0,n.piMod)(s)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(226),a=n.__importDefault(r(227));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,r){return(0,i.distanceAtSegment)(o(t),e,r)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(23);e.default=function(t){for(var e=t.attr().points,r=[],i=[],a=0;aMath.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(f-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),r=e.path,u=e.stroke?e.lineWidth:0,l=function(t,e){for(var r=[],i=[],o=[],u=0;u=0;return r?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,r){"use strict";function n(t,e){var r=[],n=[];return t.length&&function t(e,i){if(1===e.length)r.push(e[0]),n.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,r));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=r-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 r=t.length-1,n=e.length-1,a=r/n,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s=0;c--)u=s[c].index,"add"===s[c].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["Q"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(r[0]);break;case"C":if(r.length<3){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],2)}t[a]=["C"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(r.length<2){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["S"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(231)),o=n.__importDefault(r(232)),s=function(t,e,r,n,i){return t*(t*(-3*e+9*r-9*n+3*i)+6*e-12*r+6*n)-3*e+3*r},u=function(t,e,r,n,i,a,o,u,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/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,v=s(g,t,r,i,o),y=s(g,e,n,a,u),m=v*v+y*y;p+=h[d]*Math.sqrt(m)}return c*p},l=function(t,e,r,n,i,a,o,s){for(var u,l,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*r+6*i,u=-3*t+9*r-9*i+3*o,c=3*r-3*t):(l=6*e-12*n+6*a,u=-3*e+9*n-9*a+3*s,c=3*n-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(f=-c/l)>0&&f<1&&h.push(f)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-l-v)/(2*u);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*r+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*n+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,r,n,i,a,o,s){if(!(Math.max(t,r)Math.max(i,o)||Math.max(e,n)Math.max(a,s))){var u=(t-r)*(a-s)-(e-n)*(i-o);if(u){var l=((t*n-e*r)*(i-o)-(t-r)*(i*s-a*o))/u,c=((t*n-e*r)*(a-s)-(e-n)*(i*s-a*o))/u,f=+l.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},f=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},h=function(t,e,r,n){return null===t&&(t=e=r=n=0),null===e&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:(0,a.default)(t,e,r,n),vb:[t,e,r,n].join(" ")}},p=function(t,e,r,n,a,o,s,u){(0,i.isArray)(t)||(t=[t,e,r,n,a,o,s,u]);var c=l.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,r,n,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),f=Math.pow(l,2),h=u*u,p=h*u,d=t+2*u*(r-t)+h*(i-2*r+t),g=e+2*u*(n-e)+h*(a-2*n+e),v=r+2*u*(i-r)+h*(o-2*i+r),y=n+2*u*(a-n)+h*(s-2*a+n);return{x:c*t+3*f*u*r+3*l*u*u*i+p*o,y:c*e+3*f*u*n+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:l*t+u*r,y:l*e+u*n},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},g=function(t,e,r){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 r?0:[];for(var n=~~(u.apply(0,t)/8),i=~~(u.apply(0,e)/8),a=[],o=[],s={},l=r?0:[],g=0;g=0&&S<=1&&C>=0&&C<=1&&(r?l++:l.push({x:O.x,y:O.y,t1:S,t2:C}))}}return l};e.default=function(t,e){return function(t,e,r){var n,i,a,s,u,l,c,f,h,p;t=(0,o.default)(t),e=(0,o.default)(e);for(var d=r?0:[],v=0,y=t.length;v1&&(i=1),i<-1&&(i=-1),(t*n-e*r<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,r=t.py,s=t.cx,u=t.cy,l=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,v=void 0===g?0:g,y=[];if(0===l||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:u}];var m=Math.sin(h*n/360),_=Math.cos(h*n/360),x=_*(e-s)/2+m*(r-u)/2,b=-m*(e-s)/2+_*(r-u)/2;if(0===x&&0===b)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:u}];l=Math.abs(l),c=Math.abs(c);var M=Math.pow(x,2)/Math.pow(l,2)+Math.pow(b,2)/Math.pow(c,2);M>1&&(l*=Math.sqrt(M),c*=Math.sqrt(M));var P=function(t,e,r,i,a,s,u,l,c,f,h,p){var d=Math.pow(a,2),g=Math.pow(s,2),v=Math.pow(h,2),y=Math.pow(p,2),m=d*g-d*y-g*v;m<0&&(m=0),m/=d*y+g*v;var _=(m=Math.sqrt(m)*(u===l?-1:1))*a/s*p,x=m*-s/a*h,b=f*_-c*x+(t+r)/2,M=c*_+f*x+(e+i)/2,P=(h-_)/a,O=(p-x)/s,S=(-h-_)/a,C=(-p-x)/s,w=o(1,0,P,O),A=o(P,O,S,C);return 0===l&&A>0&&(A-=n),1===l&&A<0&&(A+=n),[b,M,w,A]}(e,r,s,u,l,c,d,v,m,_,x,b),O=P[0],S=P[1],C=P[2],w=P[3],A=Math.abs(w)/(n/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[r-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function u(t){var e=t.map((function(t){return t[0]})),r=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,r),maxY:Math.max.apply(null,r)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var r,n,l=u(t),c=u(e);if(r=l,(n=c).minX>r.maxX||n.maxXr.maxY||n.maxY=0)n=l+this.getIntervalOnlyOffset(r,e);else if(!a.isNil(u)&&a.isNil(s)&&u>=0){n=l+this.getDodgeOnlyOffset(r,e)}else if(!a.isNil(s)&&!a.isNil(u)&&s>=0&&u>=0){n=l+this.getIntervalAndDodgeOffset(r,e)}else{var h=f*i/r,p=o*h;n=(l+c)/2+(.5*(f-r*h-(r-1)*p)+((e+1)*h+e*p)-.5*h-.5*f)}return n},e.prototype.getIntervalOnlyOffset=function(t,e){var r=this,n=r.defaultSize,i=r.intervalPadding,o=r.xDimensionLegenth,s=r.groupNum,u=r.dodgeRatio,l=r.maxColumnWidth,c=r.minColumnWidth,f=r.columnWidthRatio,h=i/o,p=(1-(s-1)*h)/s*u/(t-1),d=((1-h*(s-1))/s-p*(t-1))/t;if(d=a.isNil(f)?d:1/s/t*f,!a.isNil(l)){var g=l/o;d=Math.min(d,g)}if(!a.isNil(c)){var v=c/o;d=Math.max(d,v)}return((.5+e)*(d=n?n/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 r=this,n=r.defaultSize,i=r.dodgePadding,o=r.xDimensionLegenth,s=r.groupNum,u=r.marginRatio,l=r.maxColumnWidth,c=r.minColumnWidth,f=r.columnWidthRatio,h=i/o,p=1*u/(s-1),d=((1-p*(s-1))/s-h*(t-1))/t;if(d=f?1/s/t*f:d,!a.isNil(l)){var g=l/o;d=Math.min(d,g)}if(!a.isNil(c)){var v=c/o;d=Math.max(d,v)}return((.5+e)*(d=n?n/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 r=this.intervalPadding,n=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=r/i,s=n/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,r=this.cacheMap,n=r[t];return n||(n={},a.each(e,(function(e,r){var i=a.valuesOfKey(e,t);i.length||i.push(0),a.each(i,(function(t){n[t]||(n[t]=[]),n[t].push(r)}))})),r[t]=n),n},e}(n.__importDefault(r(61)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=n.__importStar(r(2)),o=r(128);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),r=a.flatten(e);return this.adjustData(e,r),e},e.prototype.adjustDim=function(t,e,r){var n=this,i=this.groupData(r,t);return a.each(i,(function(r,i){return n.adjustGroup(r,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,r=t.pre,n=t.next,i=(n-r)*o.GAP;return(n-i-(e=r+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,r,n){var i=this,o=this.getAdjustRange(e,r,n);return a.each(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}(n.__importDefault(r(61)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=n.__importStar(r(2)),o=n.__importDefault(r(61)),s=a.Cache,u=function(t){function e(e){var r=t.call(this,e)||this,n=e.adjustNames,i=void 0===n?["y"]:n,a=e.height,o=void 0===a?NaN:a,s=e.size,u=void 0===s?10:s,l=e.reverseOrder,c=void 0!==l&&l;return r.adjustNames=i,r.height=o,r.size=u,r.reverseOrder=c,r}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,r=this.reverseOrder,n=e?this.processStack(t):this.processOneDimStack(t);return r?this.reverse(n):n},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,r=this.yField,n=this.reverseOrder?this.reverse(t):t,o=new s,u=new s;return n.map((function(t){return t.map((function(t){var n,s=a.get(t,e,0),l=a.get(t,[r]),c=s.toString();if(l=a.isArray(l)?l[1]:l,!a.isNil(l)){var f=l>=0?o:u;f.has(c)||f.set(c,0);var h=f.get(c),p=l+h;return f.set(c,p),(0,i.__assign)((0,i.__assign)({},t),((n={})[r]=[h,p],n))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,r=this.xField,n=this.height,a=this.reverseOrder,o=a?this.reverse(t):t,u=new s;return o.map((function(t){return t.map((function(t){var a,o=e.size,s=t[r],l=2*o/n;u.has(s)||u.set(s,l/2);var c=u.get(s);return u.set(s,c+l),(0,i.__assign)((0,i.__assign)({},t),((a={}).y=c,a))}))}))},e}(o.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=n.__importStar(r(2)),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),r=this.xField,n=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,u,l=t[n],c=t[r];if(a.isArray(l)){var f=(s-o[c])/2;return(0,i.__assign)((0,i.__assign)({},t),((e={})[n]=a.map(l,(function(t){return f+t})),e))}var h=(s-l)/2;return(0,i.__assign)((0,i.__assign)({},t),((u={})[n]=[h,l+h],u))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,r=this.xField,n=this.yField,i=a.groupBy(t,(function(t){return t[r]}));return a.mapValues(i,(function(t){return e.getDimMaxValue(t,n)}))},e.prototype.getDimMaxValue=function(t,e){var r=a.map(t,(function(t){return a.get(t,e,[])})),n=a.flatten(r);return Math.max.apply(Math,n)},e}(n.__importDefault(r(61)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=n.__importDefault(r(130)),o=r(2),s=function(t){function e(e){var r=t.call(this,e)||this;return r.type="color",r.names=["color"],(0,o.isString)(r.values)&&(r.linear=!0),r.gradient=a.default.gradient(r.values),r}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(n.__importDefault(r(51)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=function(t){function e(e){var r=t.call(this,e)||this;return r.type="opacity",r.names=["opacity"],r}return(0,i.__extends)(e,t),e}(n.__importDefault(r(51)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=r(2),o=function(t){function e(e){var r=t.call(this,e)||this;return r.names=["x","y"],r.type="position",r}return(0,i.__extends)(e,t),e.prototype.mapping=function(t,e){var r=this.scales,n=r[0],i=r[1];return(0,a.isNil)(t)||(0,a.isNil)(e)?[]:[(0,a.isArray)(t)?t.map((function(t){return n.scale(t)})):n.scale(t),(0,a.isArray)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(n.__importDefault(r(51)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=function(t){function e(e){var r=t.call(this,e)||this;return r.type="shape",r.names=["shape"],r}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}(n.__importDefault(r(51)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7),i=r(7),a=function(t){function e(e){var r=t.call(this,e)||this;return r.type="size",r.names=["size"],r}return(0,i.__extends)(e,t),e}(n.__importDefault(r(51)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.registerAttribute=e.getAttribute=void 0;var n=r(7),i=n.__importDefault(r(51));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},n.__exportStar(r(239),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(90),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 n=this.values[r],i=this.formatter;return n=i?i(n,e):(0,o.timeFormat)(n,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,r){e[r]=(0,o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(n.__importDefault(r(242)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.default=function(t){return function(e,r,i,a){for(var o=(0,n.isNil)(i)?0:i,s=(0,n.isNil)(a)?e.length:a;o>>1;t(e[u])>r?s=u:o=u+1}return o}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(92),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,r=this.base,n=(0,a.log)(r,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(n-(e=(0,a.log)(r,s/r)))*o;if(t=0?1:-1;return Math.pow(o,r)*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,r=this.min;if(e===r)return 0;var n=this.exponent;return((0,a.calBase)(n,t)-(0,a.calBase)(n,r))/((0,a.calBase)(n,e)-(0,a.calBase)(n,r))},e}(n.__importDefault(r(91)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(90),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 r=this.translate(t),n=this.formatter;return n?n(r,e):(0,o.timeFormat)(r,this.mask)},e.prototype.scale=function(e){var r=e;return((0,a.isString)(r)||(0,a.isDate)(r))&&(r=this.translate(r)),t.prototype.scale.call(this,r)},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"),r=this.getConfig("max");if((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(r)&&(0,a.isNumber)(r)||(this.max=this.translate(this.max)),t&&t.length){var n=[],i=1/0,s=i,u=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),u1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(r)&&(this.max=u)}},e}(n.__importDefault(r(244)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(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}(n.__importDefault(r(245)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerScale=e.getScale=e.Scale=void 0;var n=r(0).__importDefault(r(74));e.Scale=n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),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}(n.__importDefault(r(74)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var n=r(0),i=n.__importDefault(r(246)),a=n.__importDefault(r(524)),o=n.__importDefault(r(526)),s=n.__importDefault(r(528)),u=n.__importDefault(r(529)),l=n.__importDefault(r(530)),c=n.__importDefault(r(531)),f=r(241);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var h=n.__importDefault(r(532)),p=n.__importDefault(r(533)),d=n.__importDefault(r(534));(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",u.default),(0,f.registerTickMethod)("quantile",l.default),(0,f.registerTickMethod)("d3-linear",a.default)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(525)),o=n.__importDefault(r(131)),s=n.__importDefault(r(132));e.default=function(t){var e=t.min,r=t.max,n=t.tickInterval,u=t.minLimit,l=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(u)&&(0,i.isNil)(l)?n?(0,o.default)(e,r,n).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,r=t.max,n=t.nice,i=t.tickCount,a=new o;return a.domain([e,r]),n&&a.nice(i),a.ticks(i)};var n=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,r;void 0===t&&(t=5);var n,i=this._domain.slice(),a=0,o=this._domain.length-1,u=this._domain[a],l=this._domain[o];return l0?n=s(u=Math.floor(u/n)*n,l=Math.ceil(l/n)*n,t):n<0&&(n=s(u=Math.ceil(u*n)/n,l=Math.floor(l*n)/n,t)),n>0?(i[a]=Math.floor(u/n)*n,i[o]=Math.ceil(l/n)*n,this.domain(i)):n<0&&(i[a]=Math.ceil(u*n)/n,i[o]=Math.floor(l*n)/n,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,r){var n,i,a,o,u=-1;if(r=+r,(t=+t)===(e=+e)&&r>0)return[t];(n=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u=0?(u>=n?10:u>=i?5:u>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=n?10:u>=i?5:u>=a?2:1)}e.D3Linear=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(527)),o=n.__importDefault(r(131)),s=n.__importDefault(r(132));e.default=function(t){var e=t.min,r=t.max,n=t.tickCount,u=t.nice,l=t.tickInterval,c=t.minLimit,f=t.maxLimit,h=(0,a.default)(e,r,n,u).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?l?(0,o.default)(e,r,l).ticks:h:(0,s.default)(t,(0,i.head)(h),(0,i.last)(h))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_Q=e.DEFAULT_Q=void 0;var n=r(2),i=r(247);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,r,i,o,s){var u=(0,n.size)(e),l=(0,n.indexOf)(e,t),c=0,f=function(t,e){return(t%e+e)%e}(i,s);return(f=0&&(c=1),1-l/(u-1)-r+c}function s(t,e,r){var i=(0,n.size)(e);return 1-(0,n.indexOf)(e,t)/(i-1)-r+1}function u(t,e,r,n,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,n)-Math.min(r,i));return 2-Math.max(o/s,s/o)}function l(t,e){return t>=e?2-(t-1)/(e-1):1}function c(t,e,r,n){var i=e-t;return 1-.5*(Math.pow(e-n,2)+Math.pow(t-r,2))/Math.pow(.1*i,2)}function f(t,e,r){var n=e-t;if(r>n){var i=(r-n)/2;return 1-Math.pow(i,2)/Math.pow(.1*n,2)}return 1}e.default=function(t,r,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(r)||"number"!=typeof t||"number"!=typeof r||!g)return{min:0,max:0,ticks:[]};if(r-t<1e-15||1===g)return{min:t,max:r,ticks:[t]};if(r-t>1e148){var v=(r-t)/(E=a||5);return{min:t,max:r,ticks:Array(E).fill(null).map((function(e,r){return(0,i.prettyNumber)(t+v*r)}))}}for(var y={score:-2,lmin:0,lmax:0,lstep:0},m=1;m<1/0;){for(var _=0;_y.score&&(!h||D<=t&&L>=r)&&(y.lmin=D,y.lmax=L,y.lstep=j,y.score=F)}S+=1}M+=1}}m+=1}var N=(0,i.prettyNumber)(y.lmax),Y=(0,i.prettyNumber)(y.lmin),G=(0,i.prettyNumber)(y.lstep),V=Math.floor(function(t){return Math.round(1e12*t)/1e12}((N-Y)/G))+1,H=new Array(V);for(H[0]=(0,i.prettyNumber)(Y),_=1;_0)e=Math.floor((0,n.log)(r,a));else{var l=(0,n.getLogPositiveMin)(s,r,o);e=Math.floor((0,n.log)(r,l))}for(var c=u-e,f=Math.ceil(c/i),h=[],p=e;p=0?1:-1;return Math.pow(t,e)*r}))}},function(t,e,r){"use strict";function n(t,e){var r=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:r%1!=0?t[Math.ceil(r)-1]:t.length%2==0?(t[r-1]+t[r])/2:t[r]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,r=t.values;if(!r||!r.length)return[];for(var i=r.slice().sort((function(t,e){return t-e})),a=[],o=0;o1&&(a*=Math.ceil(s)),i&&an.YEAR)for(var p=i(r),d=Math.ceil(c/n.YEAR),g=h;g<=p+d;g+=d)f.push(a(g));else if(c>n.MONTH){var v=Math.ceil(c/n.MONTH),y=o(e),m=function(t,e){var r=i(t),n=i(e),a=o(t);return 12*(n-r)+(o(e)-a)%12}(e,r);for(g=0;g<=m+v;g+=v)f.push(s(h,g+y))}else if(c>n.DAY){var _=(O=new Date(e)).getFullYear(),x=O.getMonth(),b=O.getDate(),M=Math.ceil(c/n.DAY),P=function(t,e){return Math.ceil((e-t)/n.DAY)}(e,r);for(g=0;gn.HOUR){_=(O=new Date(e)).getFullYear(),x=O.getMonth(),M=O.getDate();var O,S=O.getHours(),C=Math.ceil(c/n.HOUR),w=function(t,e){return Math.ceil((e-t)/n.HOUR)}(e,r);for(g=0;g<=w+C;g+=C)f.push(new Date(_,x,M,S+g).getTime())}else if(c>n.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,r),T=Math.ceil(c/n.MINUTE);for(g=0;g<=A+T;g+=T)f.push(e+g*n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Coordinate=e.registerCoordinate=e.getCoordinate=void 0;var n=r(0),i=n.__importDefault(r(93));e.Coordinate=i.default;var a=n.__importDefault(r(536)),o=n.__importDefault(r(537)),s=n.__importDefault(r(538)),u=r(539);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return u.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return u.registerCoordinate}}),(0,u.registerCoordinate)("rect",a.default),(0,u.registerCoordinate)("cartesian",a.default),(0,u.registerCoordinate)("polar",s.default),(0,u.registerCoordinate)("helix",o.default)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=function(t){function e(e){var r=t.call(this,e)||this;return r.isRect=!0,r.type="cartesian",r.initial(),r}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,r=this.end;this.x={start:e.x,end:r.x},this.y={start:e.y,end:r.y}},e.prototype.convertPoint=function(t){var e,r=t.x,n=t.y;return this.isTransposed&&(r=(e=[n,r])[0],n=e[1]),{x:this.convertDim(r,"x"),y:this.convertDim(n,"y")}},e.prototype.invertPoint=function(t){var e,r=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed&&(r=(e=[n,r])[0],n=e[1]),{x:r,y:n}},e}(n.__importDefault(r(93)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(17),o=r(2),s=function(t){function e(e){var r=t.call(this,e)||this;r.isHelix=!0,r.type="helix";var n=e.startAngle,i=void 0===n?1.25*Math.PI:n,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,u=void 0===s?0:s,l=e.radius;return r.startAngle=i,r.endAngle=o,r.innerRadius=u,r.radius=l,r.initial(),r}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,r=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(r*=this.radius),this.d=Math.floor(r*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*r,end:this.innerRadius*r+.99*this.d}},e.prototype.convertPoint=function(t){var e,r=t.x,n=t.y;this.isTransposed&&(r=(e=[n,r])[0],n=e[1]);var i=this.convertDim(r,"x"),a=this.a*i,o=this.convertDim(n,"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,r=this.d+this.y.start,n=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(n,[1,0],!0),s=i*this.a;a.vec2.length(n)this.width/n?(e=this.width/n,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*n,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,r=this.getCenter(),n=t.x,i=t.y;return this.isTransposed&&(n=(e=[i,n])[0],i=e[1]),n=this.convertDim(n,"x"),i=this.convertDim(i,"y"),{x:r.x+Math.cos(n)*i,y:r.y+Math.sin(n)*i}},e.prototype.invertPoint=function(t){var e,r=this.getCenter(),n=[t.x-r.x,t.y-r.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var u=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(u,u,i);var l=[1,0,0];a.vec3.transformMat3(l,l,u);var c=[l[0],l[1]],f=a.ext.angleTo(c,n,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 r=[0,Math.cos(t),Math.cos(e)],n=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i1||n<0)&&(n=1),{x:(0,l.getValueByPercent)(t.x,e.x,n),y:(0,l.getValueByPercent)(t.y,e.y,n)}},e.prototype.renderLabel=function(t){var e=this.get("text"),r=this.get("start"),n=this.get("end"),i=e.position,a=e.content,o=e.style,u=e.offsetX,l=e.offsetY,c=e.autoRotate,f=e.maxLength,h=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(r,n,i),m=y.x+u,_=y.y+l,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:v};if(c){var b=[n.x-r.x,n.y-r.y];x.rotate=Math.atan2(b[1],b[0])}(0,s.renderTag)(t,x)},e}(o.default);e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(249)),a=n.__importDefault(r(133));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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(25)),a=n.__importDefault(r(250)),o=n.__importDefault(r(10)),s=n.__importDefault(r(75));e.default=function(t,e){if(!(0,o.default)(t))return null;var r;if((0,i.default)(e)&&(r=e),(0,s.default)(e)&&(r=function(t){return(0,a.default)(t,e)}),r)for(var n=0;n-1;)i.call(t,s,1);return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(24)),a=n.__importDefault(r(254));e.default=function(t,e){var r=[];if(!(0,i.default)(t))return r;for(var n=-1,o=[],s=t.length;++ne[i])return 1;if(t[i]r?r:t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var r=e.toString(),n=r.indexOf(".");if(-1===n)return Math.round(t);var i=r.substr(n+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(41));e.default=function(t){return(0,n.default)(t)&&t%1!=0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(41));e.default=function(t){return(0,n.default)(t)&&t%2==0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(41)),i=Number.isInteger?Number.isInteger:function(t){return(0,n.default)(t)&&t%1==0};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(41));e.default=function(t){return(0,n.default)(t)&&t<0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,r){return void 0===r&&(r=1e-5),Math.abs(t-e)0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(10)),a=n.__importDefault(r(25));e.default=function(t,e){if((0,i.default)(t)){for(var r,n=-1/0,o=0;on&&(r=s,n=u)}return r}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(10)),a=n.__importDefault(r(25));e.default=function(t,e){if((0,i.default)(t)){for(var r,n=1/0,o=0;oe?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(i,a),n||(i=a=null)):n||!1===r.trailing||(n=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(n),s=0,n=i=a=null},l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1).__importDefault(r(24));e.default=function(t){return(0,n.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};e.default=function(t){return n[t=t||"g"]?n[t]+=1:n[t]=1,t+n[t]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(46)),a=n.__importDefault(r(24));e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(40)),a=n.__importDefault(r(63)),o=n.__importDefault(r(264));e.default=function(t,e,r,n){void 0===n&&(n="...");var s,u,l=(0,o.default)(n,r),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,h=[];if((0,o.default)(t,r)<=e)return t;for(;s=c.substr(0,16),!((u=(0,o.default)(s,r))+l>f&&u>f);)if(h.push(s),f-=u,!(c=c.substr(16)))return h.join("");for(;s=c.substr(0,1),!((u=(0,o.default)(s,r))+l>f);)if(h.push(s),f-=u,!(c=c.substr(1)))return h.join("");return""+h.join("")+n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var r=this.map[t];return void 0===r?e:r},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=n},function(t,e){},function(t,e){},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this._events={}}return t.prototype.on=function(t,e,r){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!r}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,r=[],n=1;n0){n=Math.sqrt(n);var i=r[0]/n,a=r[1]/n,o=r[2]/n,s=r[3]/n,u=r[4],l=r[5],c=r[6],f=r[7],h=i*u+a*l+o*c+s*f;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(u-i*h)/n,t[5]=(l-a*h)/n,t[6]=(c-o*h)/n,t[7]=(f-s*h)/n}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 r=t[0],n=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=e[0],h=e[1],p=e[2],d=e[3],g=e[4],v=e[5],y=e[6],m=e[7];return Math.abs(r-f)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(n-h)<=i.EPSILON*Math.max(1,Math.abs(n),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(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}},function(t,e,r){"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 n=r(95);function i(t,e,r){var i=[0,0,0,0,0,0,0,0,0];return n.mat3.fromTranslation(i,r),n.mat3.multiply(t,i,e)}function a(t,e,r){var i=[0,0,0,0,0,0,0,0,0];return n.mat3.fromRotation(i,r),n.mat3.multiply(t,i,e)}function o(t,e,r){var i=[0,0,0,0,0,0,0,0,0];return n.mat3.fromScaling(i,r),n.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 r,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c=0;return r?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),a=n.__importStar(r(632)),o=r(635),s=r(284),u=n.__importStar(r(265)),l=r(662),c=[1,0,0,0,1,0,0,0,1];function f(t,e,r){var n,a=e.startTime;if(rd.length?(p=u.parsePathString(s[h]),d=u.parsePathString(a[h]),d=u.fillPathByDiff(d,p),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=u.parsePathString(s[h]),d=u.parsePathString(a[h]),d=u.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),n[h]=[];for(var g=0;g0){for(var a=n.animators.length-1;a>=0;a--)if((t=n.animators[a]).destroyed)n.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)r=e[o],f(t,r,i)&&(e.splice(o,1),!1,r.callback&&r.callback());0===e.length&&n.removeAnimator(a)}n.canvas.get("autoDraw")||n.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,r){"use strict";var n=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=r(140);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=r(633);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return n(a).default}});var o=r(634);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return n(o).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(140);e.default=function(t,e,r){var i=new n.Timer;return e=null==e?0:+e,i.restart((function(r){i.stop(),t(r+e)}),e,r),i}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(140);e.default=function(t,e,r){var i=new n.Timer,a=e;return null==e?(i.restart(t,e,r),i):(e=+e,r=null==r?(0,n.now)():+r,i.restart((function n(o){o+=a,i.restart(n,a+=e,r),t(o)}),e,r),i)}},function(t,e,r){"use strict";var n=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=r(96);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return n(i).default}});var a=r(280);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return n(a).default}});var o=r(143);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return n(o).default}});var s=r(278);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return n(s).default}});var u=r(281);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return n(u).default}});var l=r(638);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return n(l).default}});var c=r(639);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return n(c).default}});var f=r(97);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return n(f).default}});var h=r(144);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return n(h).default}});var p=r(282);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return n(p).default}});var d=r(640);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return n(d).default}});var g=r(283);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return n(g).default}});var v=r(641);Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return v.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return v.interpolateTransformSvg}});var y=r(644);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return n(y).default}});var m=r(277);Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return n(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 _=r(645);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return n(_).default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return _.hslLong}});var x=r(646);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return n(x).default}});var b=r(647);Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return n(b).default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return b.hclLong}});var M=r(648);Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return n(M).default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return M.cubehelixLong}});var P=r(649);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return n(P).default}});var O=r(650);Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return n(O).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var n=r(1).__importStar(r(142)),i=r(141),a=r(276),o=6/29,s=3*o*o;function u(t){if(t instanceof c)return new c(t.l,t.a,t.b,t.opacity);if(t instanceof y)return m(t);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e,r,n=d(t.r),a=d(t.g),o=d(t.b),s=f((.2225045*n+.7168786*a+.0606169*o)/1);return n===a&&a===o?e=r=s:(e=f((.4360747*n+.3850649*a+.1430804*o)/.96422),r=f((.0139322*n+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-r),t.opacity)}function l(t,e,r,n){return 1===arguments.length?u(t):new c(t,e,r,null==n?1:n)}function c(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}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 y)return new y(t.h,t.c,t.l,t.opacity);if(t instanceof c||(t=u(t)),0===t.a&&0===t.b)return new y(NaN,0180?e+=360:e-t>180&&(t+=360),o.push({i:r.push(a(r)+"rotate(",null,i)-2,x:(0,n.default)(t,e)})):e&&r.push(a(r)+"rotate("+e+i)}(o.rotate,s.rotate,u,l),function(t,e,r,o){t!==e?o.push({i:r.push(a(r)+"skewX(",null,i)-2,x:(0,n.default)(t,e)}):e&&r.push(a(r)+"skewX("+e+i)}(o.skewX,s.skewX,u,l),function(t,e,r,i,o,s){if(t!==r||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:(0,n.default)(t,r)},{i:u-2,x:(0,n.default)(e,i)})}else 1===r&&1===i||o.push(a(o)+"scale("+r+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,l),o=s=null,function(t){for(var e,r=-1,n=l.length;++r120||l*l+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",r,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",r,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(r,t,i,e),this._emitEvent("mousemove",r,t,e)):(this._emitMouseoverEvents(r,t,i,e),this._emitEvent("mousemove",r,t,e))}else this._emitMouseoverEvents(r,t,i,e),this._emitEvent("mousemove",r,t,e)}},t.prototype._emitEvent=function(t,e,r,n,i,a){var u=this._getEventObj(t,e,r,n,i,a);if(n){u.shape=n,o(n,t,u);for(var l=n.getParent();l;)l.emitDelegation(t,u),u.propagationStopped||s(l,t,u),u.propagationPath.push(l),l=l.getParent()}else{o(this.canvas,t,u)}},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=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),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),r=this.getChildren(),n=0;n=t&&r.minY<=e&&r.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(),r=t.minX,n=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),u=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),l=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);r=Math.min(s[0],u[0],l[0],c[0]),i=Math.max(s[0],u[0],l[0],c[0]),n=Math.min(s[1],u[1],l[1],c[1]),a=Math.max(s[1],u[1],l[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,v=f.shadowOffsetY,y=void 0===v?0:v,m=r-p+g,_=i+p+g,x=n-p+y,b=a+p+y;r=Math.min(r,m),i=Math.max(i,_),n=Math.min(n,x),a=Math.max(a,b)}return{x:r,y:n,minX:r,minY:n,maxX:i,maxY:a,width:i-r,height:a-n}},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 r=this.get("startArrowShape"),n=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(r&&r.isHit(a,o))return!0;if(n&&n.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerBBox=e.getBBoxMethod=void 0;var n=r(1),i=r(667);Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=n.__importDefault(r(668)),o=n.__importDefault(r(669)),s=n.__importDefault(r(670)),u=n.__importDefault(r(676)),l=n.__importDefault(r(677)),c=n.__importDefault(r(678)),f=n.__importDefault(r(693)),h=n.__importDefault(r(694));(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",u.default),(0,i.register)("text",l.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",h.default)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var n=new Map;e.register=function(t,e){n.set(t,e)},e.getMethod=function(t){return n.get(t)}},function(t,e,r){"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),r=e.x,n=e.y,i=e.r;return{x:r-i,y:n-i,width:2*i,height:2*i}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(145),i=r(146);e.default=function(t){for(var e=t.attr().points,r=[],a=[],o=0;o=0?[a]:[]}function u(t,e,r,n){return 2*(1-n)*(e-t)+2*n*(r-e)}function l(t,e,r,i,a,s,u){var l=o(t,r,a,u),c=o(e,i,s,u),f=n.default.pointAt(t,e,r,i,u),h=n.default.pointAt(r,i,a,s,u);return[[t,e,f.x,f.y,l,c],[l,c,h.x,h.y,a,s]]}e.default={box:function(t,e,r,n,a,u){var l=s(t,r,a)[0],c=s(e,n,u)[0],f=[t,a],h=[e,u];return void 0!==l&&f.push(o(t,r,a,l)),void 0!==c&&h.push(o(e,n,u,c)),(0,i.getBBoxByArray)(f,h)},length:function(t,e,r,n,a,o){return function t(e,r,n,a,o,s,u){if(0===u)return((0,i.distance)(e,r,n,a)+(0,i.distance)(n,a,o,s)+(0,i.distance)(e,r,o,s))/2;var c=l(e,r,n,a,o,s,.5),f=c[0],h=c[1];return f.push(u-1),h.push(u-1),t.apply(null,f)+t.apply(null,h)}(t,e,r,n,a,o,3)},nearestPoint:function(t,e,r,n,i,s,u,l){return(0,a.nearestPoint)([t,r,i],[e,n,s],u,l,o)},pointDistance:function(t,e,r,n,a,o,s,u){var l=this.nearestPoint(t,e,r,n,a,o,s,u);return(0,i.distance)(l.x,l.y,s,u)},interpolationAt:o,pointAt:function(t,e,r,n,i,a,s){return{x:o(t,r,i,s),y:o(e,n,a,s)}},divide:function(t,e,r,n,i,a,o){return l(t,e,r,n,i,a,o)},tangentAngle:function(t,e,r,n,a,o,s){var l=u(t,r,a,s),c=u(e,n,o,s),f=Math.atan2(c,l);return(0,i.piMod)(f)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(42),a=n.__importDefault(r(98)),o=r(286);function s(t,e,r,n,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*r*i*i*a+n*i*i*i}function u(t,e,r,n,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(r-e)+i*i*(n-r))}function l(t,e,r,n){var a,o,s,u=-3*t+9*e-9*r+3*n,l=6*t-12*e+6*r,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(u,0))(0,i.isNumberEqual)(l,0)||(a=-c/l)>=0&&a<=1&&f.push(a);else{var h=l*l-4*u*c;(0,i.isNumberEqual)(h,0)?f.push(-l/(2*u)):h>0&&(o=(-l-(s=Math.sqrt(h)))/(2*u),(a=(-l+s)/(2*u))>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,r,n,i,o,u,l,c){var f=s(t,r,i,u,c),h=s(e,n,o,l,c),p=a.default.pointAt(t,e,r,n,c),d=a.default.pointAt(r,n,i,o,c),g=a.default.pointAt(i,o,u,l,c),v=a.default.pointAt(p.x,p.y,d.x,d.y,c),y=a.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,p.x,p.y,v.x,v.y,f,h],[f,h,y.x,y.y,g.x,g.y,u,l]]}e.default={extrema:l,box:function(t,e,r,n,a,o,u,c){for(var f=[t,u],h=[e,c],p=l(t,r,a,u),d=l(e,n,o,c),g=0;gf&&(f=g)}var v=function(t,e,r){return Math.atan(e/(t*Math.tan(r)))}(r,n,i),y=1/0,m=-1/0,_=[a,u];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=v+p;am&&(m=b)}return{x:c,y:y,width:f-c,height:m-y}},length:function(t,e,r,n,i,a,o){},nearestPoint:function(t,e,r,n,i,o,s,c,f){var h=l(c-t,f-e,-i),p=h[0],d=h[1],g=a.default.nearestPoint(0,0,r,n,p,d),v=function(t,e,r,n){return(Math.atan2(n*t,r*e)+2*Math.PI)%(2*Math.PI)}(r,n,g.x,g.y);vs&&(g=u(r,n,s));var y=l(g.x,g.y,i);return{x:y[0]+t,y:y[1]+e}},pointDistance:function(t,e,r,n,a,o,s,u,l){var c=this.nearestPoint(t,e,r,n,u,l);return(0,i.distance)(c.x,c.y,u,l)},pointAt:function(t,e,r,n,i,a,u,l){var c=(u-a)*l+a;return{x:o(t,0,r,n,i,c),y:s(0,e,r,n,i,c)}},tangentAngle:function(t,e,r,n,a,o,s,u){var l=(s-o)*u+o,c=function(t,e,r,n,i,a,o,s){return-1*r*Math.cos(i)*Math.sin(s)-n*Math.sin(i)*Math.cos(s)}(0,0,r,n,a,0,0,l),f=function(t,e,r,n,i,a,o,s){return-1*r*Math.sin(i)*Math.sin(s)+n*Math.cos(i)*Math.cos(s)}(0,0,r,n,a,0,0,l);return(0,i.piMod)(Math.atan2(f,c))}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(42);function i(t,e){var r=Math.abs(t);return e>0?r:-1*r}e.default={box:function(t,e,r,n){return{x:t-r,y:e-n,width:2*r,height:2*n}},length:function(t,e,r,n){return Math.PI*(3*(r+n)-Math.sqrt((3*r+n)*(r+3*n)))},nearestPoint:function(t,e,r,n,a,o){var s=r,u=n;if(0===s||0===u)return{x:t,y:e};for(var l,c,f=a-t,h=o-e,p=Math.abs(f),d=Math.abs(h),g=s*s,v=u*u,y=Math.PI/4,m=0;m<4;m++){l=s*Math.cos(y),c=u*Math.sin(y);var _=(g-v)*Math.pow(Math.cos(y),3)/s,x=(v-g)*Math.pow(Math.sin(y),3)/u,b=l-_,M=c-x,P=p-_,O=d-x,S=Math.hypot(M,b),C=Math.hypot(O,P);y+=S*Math.asin((b*O-M*P)/(S*C))/Math.sqrt(g+v-l*l-c*c),y=Math.min(Math.PI/2,Math.max(0,y))}return{x:t+i(l,f),y:e+i(c,h)}},pointDistance:function(t,e,r,i,a,o){var s=this.nearestPoint(t,e,r,i,a,o);return(0,n.distance)(s.x,s.y,a,o)},pointAt:function(t,e,r,n,i){var a=2*Math.PI*i;return{x:t+r*Math.cos(a),y:e+n*Math.sin(a)}},tangentAngle:function(t,e,r,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-r*Math.sin(o));return(0,n.piMod)(s)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(287),a=n.__importDefault(r(288));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,r){return(0,i.distanceAtSegment)(o(t),e,r)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(145);e.default=function(t){for(var e=t.attr().points,r=[],i=[],a=0;aMath.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(f-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}e.default=function(t){var e=t.attr(),r=e.path,u=e.stroke?e.lineWidth:0,l=function(t,e){for(var r=[],i=[],o=[],u=0;u=0;return r?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,r){"use strict";function n(t,e){var r=[],n=[];return t.length&&function t(e,i){if(1===e.length)r.push(e[0]),n.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,r));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=r-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 r=t.length-1,n=e.length-1,a=r/n,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s=0;c--)u=s[c].index,"add"===s[c].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["Q"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(r[0]);break;case"C":if(r.length<3){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],2)}t[a]=["C"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(r.length<2){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["S"].concat(r.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),a=n.__importDefault(r(293)),o=n.__importDefault(r(294)),s=function(t,e,r,n,i){return t*(t*(-3*e+9*r-9*n+3*i)+6*e-12*r+6*n)-3*e+3*r},u=function(t,e,r,n,i,a,o,u,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/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,v=s(g,t,r,i,o),y=s(g,e,n,a,u),m=v*v+y*y;p+=h[d]*Math.sqrt(m)}return c*p},l=function(t,e,r,n,i,a,o,s){for(var u,l,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*r+6*i,u=-3*t+9*r-9*i+3*o,c=3*r-3*t):(l=6*e-12*n+6*a,u=-3*e+9*n-9*a+3*s,c=3*n-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(f=-c/l)>0&&f<1&&h.push(f)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-l-v)/(2*u);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*r+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*n+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,r,n,i,a,o,s){if(!(Math.max(t,r)Math.max(i,o)||Math.max(e,n)Math.max(a,s))){var u=(t-r)*(a-s)-(e-n)*(i-o);if(u){var l=((t*n-e*r)*(i-o)-(t-r)*(i*s-a*o))/u,c=((t*n-e*r)*(a-s)-(e-n)*(i*s-a*o))/u,f=+l.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,n).toFixed(2)||h>+Math.max(e,n).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},f=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},h=function(t,e,r,n){return null===t&&(t=e=r=n=0),null===e&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:(0,a.default)(t,e,r,n),vb:[t,e,r,n].join(" ")}},p=function(t,e,r,n,a,o,s,u){(0,i.isArray)(t)||(t=[t,e,r,n,a,o,s,u]);var c=l.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,r,n,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),f=Math.pow(l,2),h=u*u,p=h*u,d=t+2*u*(r-t)+h*(i-2*r+t),g=e+2*u*(n-e)+h*(a-2*n+e),v=r+2*u*(i-r)+h*(o-2*i+r),y=n+2*u*(a-n)+h*(s-2*a+n);return{x:c*t+3*f*u*r+3*l*u*u*i+p*o,y:c*e+3*f*u*n+3*l*u*u*a+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:l*t+u*r,y:l*e+u*n},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},g=function(t,e,r){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 r?0:[];for(var n=~~(u.apply(0,t)/8),i=~~(u.apply(0,e)/8),a=[],o=[],s={},l=r?0:[],g=0;g=0&&S<=1&&C>=0&&C<=1&&(r?l++:l.push({x:O.x,y:O.y,t1:S,t2:C}))}}return l};e.default=function(t,e){return function(t,e,r){var n,i,a,s,u,l,c,f,h,p;t=(0,o.default)(t),e=(0,o.default)(e);for(var d=r?0:[],v=0,y=t.length;v1&&(i=1),i<-1&&(i=-1),(t*n-e*r<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,r=t.py,s=t.cx,u=t.cy,l=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,v=void 0===g?0:g,y=[];if(0===l||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:u}];var m=Math.sin(h*n/360),_=Math.cos(h*n/360),x=_*(e-s)/2+m*(r-u)/2,b=-m*(e-s)/2+_*(r-u)/2;if(0===x&&0===b)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:u}];l=Math.abs(l),c=Math.abs(c);var M=Math.pow(x,2)/Math.pow(l,2)+Math.pow(b,2)/Math.pow(c,2);M>1&&(l*=Math.sqrt(M),c*=Math.sqrt(M));var P=function(t,e,r,i,a,s,u,l,c,f,h,p){var d=Math.pow(a,2),g=Math.pow(s,2),v=Math.pow(h,2),y=Math.pow(p,2),m=d*g-d*y-g*v;m<0&&(m=0),m/=d*y+g*v;var _=(m=Math.sqrt(m)*(u===l?-1:1))*a/s*p,x=m*-s/a*h,b=f*_-c*x+(t+r)/2,M=c*_+f*x+(e+i)/2,P=(h-_)/a,O=(p-x)/s,S=(-h-_)/a,C=(-p-x)/s,w=o(1,0,P,O),A=o(P,O,S,C);return 0===l&&A>0&&(A-=n),1===l&&A<0&&(A+=n),[b,M,w,A]}(e,r,s,u,l,c,d,v,m,_,x,b),O=P[0],S=P[1],C=P[2],w=P[3],A=Math.abs(w)/(n/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[r-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function u(t){var e=t.map((function(t){return t[0]})),r=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,r),maxY:Math.max.apply(null,r)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var r,n,l=u(t),c=u(e);if(r=l,(n=c).minX>r.maxX||n.maxXr.maxY||n.maxY0&&t.charCodeAt(e)<128?1:2}e.strLen=function(t){for(var e=0,r=0;rMath.PI?1:0,l=[["M",a.x,a.y]];if(i-n==2*Math.PI){var c=(0,o.getCirclePoint)(e,r,n+Math.PI);l.push(["A",r,r,0,u,1,c.x,c.y]),l.push(["A",r,r,0,u,1,s.x,s.y])}else l.push(["A",r,r,0,u,1,s.x,s.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),r=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,i.__assign)({path:e},r)})},e}(a.default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=n.__importDefault(r(11)),o=n.__importDefault(r(26)),s=r(12),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:"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"),r=this.get("end"),n=this.get("style"),a=(0,s.regionToBBox)({start:e,end:r});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},n)})},e}(a.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=n.__importDefault(r(11)),o=r(12),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"),r=this.get("style"),n=(0,o.regionToBBox)({start:t,end:e}),a=this.get("src");return(0,i.__assign)({x:n.x,y:n.y,img:a,width:n.width,height:n.height},r)},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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=r(99),u=r(43),l=n.__importDefault(r(26)),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:l.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:l.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:l.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,r=e.x,n=e.y,a=e.text,o=(0,i.__rest)(e,["x","y","text"]),u=this.get("text"),l=u.background,c=u.maxLength,f=u.autoEllipsis,h=u.isVertival,p=u.ellipsisPosition,d={x:r,y:n,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:l,maxLength:c,autoEllipsis:f,isVertival:h,ellipsisPosition:p};(0,s.renderTag)(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),r=this.get("x"),n=this.get("y"),i=(0,a.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),l=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(r+l<=o.minX){var v=o.minX-(r+l);(0,u.applyTranslate)(p,p.attr("x")+v,p.attr("y"))}if(r+c>=o.maxX){v=r+c-o.maxX;(0,u.applyTranslate)(p,p.attr("x")-v,p.attr("y"))}}if("upward"===e&&n+f<=o.minY||"upward"!==e&&n+h>=o.maxY){var y=void 0,m=void 0;"upward"===e&&n+f<=o.minY?(y="top",m=1):(y="bottom",m=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),(0,u.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",{}),r=(0,a.get)(this.get("line"),"style",{}),n=(0,a.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,a.get)(this.get("line"),"length",0):0,u="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*u]]},r),text:(0,i.__assign)({x:0,y:(s+2)*u,text:(0,a.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},n)}},e}(o.default);e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=n.__importDefault(r(26)),u=r(12),l=r(99),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",{}),r=((0,a.get)(this.get("text"),"style",{}),this.get("lineLength")||0),n=this.get("points");if(n.length){var o=(0,u.pointsToBBox)(n),s=[];s.push(["M",n[0].x,o.minY-r]),n.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",n[n.length-1].x,n[n.length-1].y-r]),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-r},this.get("text"));(0,l.renderTag)(t,c)}},e}(o.default);e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=r(12),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:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,r=this.get("start"),n=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,a.each)(this.get("shapes"),(function(t,r){var n=t.get("type"),o=(0,a.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+n+"-"+r),capture:!1,type:n,attrs:o})}));var o=(0,s.regionToBBox)({start:r,end:n});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=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),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}(n.__importDefault(r(11)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(78),o=r(3),s=n.__importDefault(r(100)),u=r(12),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:"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,u.clearDom)(t);var r=(0,o.isFunction)(e)?e(t):e;if((0,o.isElement)(r))t.appendChild(r);else if((0,o.isString)(r)||(0,o.isNumber)(r)){var n=(0,a.createDom)(""+r);n&&t.appendChild(n)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),r=e.x,n=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),u=this.get("offsetY"),l=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),f={x:r,y:n};"middle"===i?f.x-=Math.round(l/2):"right"===i&&(f.x-=Math.round(l)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),u&&(f.y+=u),(0,a.modifyCSS)(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,r,!1),{remove:function(){t.removeEventListener(e,r,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,r),{remove:function(){t.detachEvent("on"+e,r)}}}}},function(t,e,r){"use strict";var n,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){n||(n=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var r=o[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,r.innerHTML=""+t;var s=r.childNodes[0];return s&&r.contains(s)&&r.removeChild(s),s}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(79)),a=n.__importDefault(r(299));e.default=function(t,e){var r=(0,a.default)(t,e),n=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0;return r+n+(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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=n.__importDefault(r(79)),a=n.__importDefault(r(300));e.default=function(t,e){var r=(0,a.default)(t,e),n=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,u=parseFloat((0,i.default)(t,"borderRightWidth"))||0,l=parseFloat((0,i.default)(t,"marginRight"))||0;return r+n+u+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);return t}},function(t,e,r){"use strict";var n=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=r(712);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return n(i).default}});var a=r(716);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return n(a).default}});var o=r(149);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return n(o).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(76),o=r(3),s=n.__importDefault(r(149)),u=n.__importStar(r(302)),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),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),r=[];return r.push(["M",t.x,t.y]),r.push(["L",e.x,e.y]),r},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),r=this.get("end"),n=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,r.x,n.x),a=Math.min(e.y,r.y,n.y),o=Math.max(e.x,r.x,n.maxX),s=Math.max(e.y,r.y,n.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"),r=this.get("end"),n=r.x-e.x,i=r.y-e.y;return{x:e.x+n*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),r=a.vec2.normalize([0,0],e),n=this.get("verticalFactor"),i=[r[1],-1*r[0]];return a.vec2.scale([0,0],i,t*n)},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,r=this.isVertical(),n=this.isHorizontal();if(r||n){var i=this.get("label"),a=this.get("title"),s=this.get("verticalLimitLength"),u=i.offset,l=s,c=0,f=0;a&&(c=a.style.fontSize,f=a.spacing),l&&(l=l-u-f-c);var h=this.get("overlapOrder");if((0,o.each)(h,(function(r){i[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,i[r],t,l)})),a&&(0,o.isNil)(a.offset)){var p=t.getCanvasBBox(),d=r?p.width:p.height;a.offset=u+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,r,n){var i=this,a=this.isVertical(),s=!1,l=u[t];if(!0===e){this.get("label");s=l.getDefault()(a,r,n)}else if((0,o.isFunction)(e))s=e(a,r,n);else if((0,o.isObject)(e)){var c=e;l[c.type]&&(s=l[c.type](a,r,n,c.cfg))}else l[e]&&(s=l[e](a,r,n));if("autoRotate"===t){if(s){var f=r.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=r.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=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisMiddle=e.ellipsisTail=e.ellipsisHead=e.getDefault=void 0;var n=r(3),i=r(77);function a(t,e,r,a){var o=e.getChildren(),s=!1;return(0,n.each)(o,(function(e){var n=(0,i.ellipsisLabel)(t,e,r,a);s=s||n})),s}function o(t,e,r){return a(t,e,r,"tail")}e.getDefault=function(){return o},e.ellipsisHead=function(t,e,r){return a(t,e,r,"head")},e.ellipsisTail=o,e.ellipsisMiddle=function(t,e,r){return a(t,e,r,"middle")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistanceWithReverseBoth=e.equidistance=e.reserveBoth=e.reserveLast=e.reserveFirst=e.getDefault=void 0;var n=r(77),i=r(43),a=r(12);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,r,n){var i=!1,s=o(e),u=t?Math.abs(r.attr("y")-e.attr("y")):Math.abs(r.attr("x")-e.attr("x")),l=(t?r.attr("y")>e.attr("y"):r.attr("x")>e.attr("x"))?e.getBBox():r.getBBox();if(t){var c=Math.abs(Math.cos(s));i=(0,a.near)(c,0,Math.PI/180)?l.width+n>u:l.height/c+n>u}else{c=Math.abs(Math.sin(s));i=(0,a.near)(c,0,Math.PI/180)?l.width+n>u:l.height/c+n>u}return i}function u(t,e,r,n){var i=(null==n?void 0:n.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;r&&a.reverse();for(var u=a.length,l=a[0],c=1;c1){g=Math.ceil(g);for(var y=0;y2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),u(t,e,!1,n)&&(a=!0)),s.get("visible")||(s.show(),u(t,e,!0,n)&&(a=!0))}return a}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unfixedAngle=e.fixedAngle=e.getDefault=void 0;var n=r(1),i=r(3),a=r(77),o=r(43),s=n.__importDefault(r(26));function u(t,e,r,n){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var u=(0,a.getMaxLabelWidth)(s),l=!1;t?l=!!r&&u>r:l=u>Math.abs(s[1].attr("x")-s[0].attr("x"));l&&function(t,e){(0,i.each)(t,(function(t){var r=t.attr("x"),n=t.attr("y"),i=(0,o.getMatrixByAngle)({x:r,y:n},e);t.attr("matrix",i)}))}(s,n(r,u));return l}function l(t,e,r,n){return u(t,e,r,(function(){return(0,i.isNumber)(n)?n:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}e.getDefault=function(){return l},e.fixedAngle=l,e.unfixedAngle=function(t,e,r){return u(t,e,r,(function(e,r){if(!e)return t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate;if(t)return-Math.acos(e/r);var n=0;return(e>r||(n=Math.asin(e/r))>Math.PI/4)&&(n=Math.PI/4),n}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=r(76),s=n.__importDefault(r(149)),u=n.__importStar(r(302)),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),{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,r=t.y,n=this.get("radius"),i=n,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,r-i],["A",n,i,0,1,1,e,r+i],["A",n,i,0,1,1,e,r-i],["Z"]];else{var u=this.getCirclePoint(a),l=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;s=[["M",e,r],["L",u.x,u.y],["A",n,i,0,c,f,l.x,l.y],["L",e,r]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),r=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(r)},e.prototype.getSideVector=function(t,e){var r=this.get("center"),n=[e.x-r.x,e.y-r.y],i=this.get("verticalFactor"),a=o.vec2.length(n);return o.vec2.scale(n,n,i*t/a),n},e.prototype.getAxisVector=function(t){var e=this.get("center"),r=[t.x-e.x,t.y-e.y];return[r[1],-1*r[0]]},e.prototype.getCirclePoint=function(t,e){var r=this.get("center");return e=e||this.get("radius"),{x:r.x+Math.cos(t)*e,y:r.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,r=this.get("label"),n=this.get("title"),i=this.get("verticalLimitLength"),o=r.offset,s=i,u=0,l=0;n&&(u=n.style.fontSize,l=n.spacing),s&&(s=s-o-l-u);var c=this.get("overlapOrder");if((0,a.each)(c,(function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,s)})),n&&(0,a.isNil)(n.offset)){var f=t.getCanvasBBox().height;n.offset=o+f+l+u/2}},e.prototype.autoProcessOverlap=function(t,e,r,n){var i=this,o=!1,s=u[t];if(n>0)if(!0===e)o=s.getDefault()(!1,r,n);else if((0,a.isFunction)(e))o=e(!1,r,n);else if((0,a.isObject)(e)){var l=e;s[l.type]&&(o=s[l.type](!1,r,n,l.cfg))}else s[e]&&(o=s[e](!1,r,n));if("autoRotate"===t){if(o){var c=r.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=r.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=l},function(t,e,r){"use strict";var n=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=r(718);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return n(i).default}});var a=r(719);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return n(a).default}});var o=r(150);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return n(o).default}});var s=r(720);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return n(s).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(12),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,r=t.end,n=this.get("text").position,i=Math.atan2(r.y-e.y,r.x-e.x);return"start"===n?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,r=t.end,n=this.get("text"),i=n.position,o=n.offset;return(0,a.getTextPoint)(e,r,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,r=t.end;return[["M",e.x,e.y],["L",r.x,r.y]]},e}(n.__importDefault(r(150)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(12),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,r=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:r-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,r=t.offset,n=this.getLocation(),i=n.center,o=n.radius,s=n.startAngle,u=n.endAngle,l="start"===e?s:u,c=this.getRotateAngle()-Math.PI,f=(0,a.getCirclePoint)(i,o,l),h=Math.cos(c)*r,p=Math.sin(c)*r;return{x:f.x+h,y:f.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,r=t.radius,n=t.startAngle,i=t.endAngle,o=null;if(i-n==2*Math.PI){var s=e.x,u=e.y;o=[["M",s,u-r],["A",r,r,0,1,1,s,u+r],["A",r,r,0,1,1,s,u-r],["Z"]]}else{var l=(0,a.getCirclePoint)(e,r,n),c=(0,a.getCirclePoint)(e,r,i),f=Math.abs(i-n)>Math.PI?1:0,h=n>i?0:1;o=[["M",l.x,l.y],["A",r,r,0,f,h,c.x,c.y]]}return o},e}(n.__importDefault(r(150)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(78),o=r(3),s=r(12),u=n.__importDefault(r(100)),l=n.__importStar(r(303)),c=n.__importDefault(r(721)),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:l.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"),r=(0,a.createDom)(e);t.appendChild(r),this.applyStyle(l.CROSSHAIR_LINE,r),this.set("crosshairEl",r)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,r=t.end,n=this.get("text"),i=n.position,a=n.offset;return(0,s.getTextPoint)(e,r,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var r=t.content;if(!e){var n=this.getContainer(),i=(0,o.substitute)(this.get("textTpl"),t);e=(0,a.createDom)(i),n.appendChild(e),this.applyStyle(l.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=r}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"),r=this.get("end"),n=Math.min(e.x,r.x),i=Math.min(e.y,r.y);this.isVertical(e,r)?(0,a.modifyCSS)(t,{width:"1px",height:(0,s.toPx)(Math.abs(r.y-e.y))}):(0,a.modifyCSS)(t,{height:"1px",width:(0,s.toPx)(Math.abs(r.x-e.x))}),(0,a.modifyCSS)(t,{top:(0,s.toPx)(i),left:(0,s.toPx)(n)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,r=t.clientWidth,n=this.getTextPoint();switch(e){case"center":n.x=n.x-r/2;break;case"right":n.x=n.x-r}(0,a.modifyCSS)(t,{top:(0,s.toPx)(n.y),left:(0,s.toPx)(n.x)})}},e.prototype.updateInner=function(e){(0,o.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(u.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(1),a=i.__importDefault(r(26)),o=i.__importStar(r(303));e.default=((n={})[""+o.CONTAINER_CLASS]={position:"relative"},n[""+o.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},n[""+o.CROSSHAIR_TEXT]={position:"absolute",color:a.default.textColor,fontFamily:a.default.fontFamily},n)},function(t,e,r){"use strict";var n=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=r(151);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return n(i).default}});var a=r(723);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return n(a).default}});var o=r(724);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return n(o).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3);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 r,n,i,o,s,u,l=this.getLineType(),c=this.get("closed"),f=[];if(t.length)if("circle"===l){var h=this.get("center"),p=t[0],d=(r=h.x,n=h.y,i=p.x,o=p.y,s=i-r,u=o-n,Math.sqrt(s*s+u*u)),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}(n.__importDefault(r(151)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),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,r){0===r?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(n.__importDefault(r(151)).default);e.default=o},function(t,e,r){"use strict";var n=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=r(726);Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return n(i).default}});var a=r(727);Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return n(a).default}});var o=r(152);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return n(o).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=r(77),s=r(43),u=r(301),l=n.__importDefault(r(26)),c=n.__importDefault(r(152)),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},h={fill:l.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:l.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 r=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:r},100):t.attr({matrix:r})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndexg&&(g=m),"horizontal"===h?(v&&vu}(t,y))&&(1===m&&(_=y.x+h,r.moveElementTo(g,{x:S,y:y.y+p/2-v.height/2-v.minY})),m+=1,y.x=n,y.y+=O),r.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:i+h,height:p}}),y.x+=i+h}))}else{(0,a.each)(s,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),b=x,x+=h,u&&(x=Math.min(u,x),b=Math.min(u,b)),this.pageWidth=x,this.pageHeight=l-Math.max(v.height,p+M);var C=Math.floor(this.pageHeight/(p+M));(0,a.each)(s,(function(t,e){0!==e&&e%C==0&&(m+=1,y.x+=x,y.y=i),r.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:p}}),y.y+=p+M})),this.totalPagesCnt=m,this.moveElementTo(g,{x:n+b/2-v.width/2-v.minX,y:l-v.height-v.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,r,n){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),u=(0,a.get)(n.marker,"style",{}),l=u.size,c=void 0===l?12:l,f=(0,i.__rest)(u,["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:r,textBaseline:"middle"},(0,a.get)(n.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,r=e.fill,n=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,u=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=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");u.attr("text",s),l.attr("opacity",1===this.currentPageIndex?o:n),l.attr("fill",1===this.currentPageIndex?i:r),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:n),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:r),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var h=l.getBBox().maxX+2;u.attr("x",h),h+=u.getBBox().width+2,this.updateArrowPath(c,{x:h,y:0})},e.prototype.drawArrow=function(t,e,r,n,a,o){var u=e.x,l=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(r),name:r,attrs:(0,i.__assign)({size:a,direction:n,path:[["M",u+a/2,l],["L",u,l+a],["L",u+a,l+a],["Z"]],cursor:"pointer"},o)});return c.attr("matrix",(0,s.getMatrixByAngle)({x:u+a/2,y:l+a/2},p[n])),c},e.prototype.updateArrowPath=function(t,e){var r=e.x,n=e.y,i=t.attr(),a=i.size,o=i.direction,u=(0,s.getMatrixByAngle)({x:r+a/2,y:n+a/2},p[o]);t.attr("path",[["M",r+a/2,n],["L",r,n+a],["L",r+a,n+a],["Z"]]),t.attr("matrix",u)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,r=this.pageHeight,n="horizontal"===this.get("layout")?{x:0,y:r*(1-t)}:{x:e*(1-t),y:0};return(0,s.getMatrixByTranslate)(n)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var r=e.getChildren(),n=this.get("itemStates");(0,a.each)(r,(function(e){var r=e.get("name").split("-")[2],i=(0,u.getStatesStyle)(t,r,n);i&&(e.attr(i),"marker"!==r||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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(26)),s=r(12),u=n.__importDefault(r(152)),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),{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 r=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(r),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 r=e.getValueByCanvasPoint(t.x,t.y),n=e.getCurrentValue()[1];nr&&(n=r),e.setValue([n,r])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,r=null;t.on("legend-track:dragstart",(function(t){r={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(r){var n=e.getValueByCanvasPoint(r.x,r.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),u=i-n;u<0?a[0]+u>s.min?e.setValue([a[0]+u,a[1]+u]):e.setValue([s.min,s.min+o]):u>0&&(u>0&&a[1]+ua&&(c=a),c0&&this.changeRailLength(n,i,r[i]-c)}},e.prototype.changeRailLength=function(t,e,r){var n,i=t.getBBox();n="height"===e?this.getRailPath(i.x,i.y,i.width,r):this.getRailPath(i.x,i.y,r,i.height),t.attr("path",n)},e.prototype.changeRailPosition=function(t,e,r){var n=t.getBBox(),i=this.getRailPath(e,r,n.width,n.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,r,n){var i=this.get("label"),a=i.align,o=i.spacing,s=r.getBBox(),u=t.getBBox(),l=e.getBBox(),c=s.height;this.fitRailLength(u,l,s,r),s=r.getBBox(),"rail"===a?(t.attr({x:n.x,y:n.y+c/2}),this.changeRailPosition(r,n.x+u.width+o,n.y),e.attr({x:n.x+u.width+s.width+2*o,y:n.y+c/2})):"top"===a?(t.attr({x:n.x,y:n.y}),e.attr({x:n.x+s.width,y:n.y}),this.changeRailPosition(r,n.x,n.y+u.height+o)):(this.changeRailPosition(r,n.x,n.y),t.attr({x:n.x,y:n.y+s.height+o}),e.attr({x:n.x+s.width,y:n.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,r,n){var i=this.get("label"),a=i.align,o=i.spacing,s=r.getBBox(),u=t.getBBox(),l=e.getBBox();if(this.fitRailLength(u,l,s,r),s=r.getBBox(),"rail"===a)t.attr({x:n.x,y:n.y}),this.changeRailPosition(r,n.x,n.y+u.height+o),e.attr({x:n.x,y:n.y+u.height+s.height+2*o});else if("right"===a)t.attr({x:n.x+s.width+o,y:n.y}),this.changeRailPosition(r,n.x,n.y),e.attr({x:n.x+s.width+o,y:n.y+s.height});else{var c=Math.max(u.width,l.width);t.attr({x:n.x,y:n.y}),this.changeRailPosition(r,n.x+c+o,n.y),e.attr({x:n.x,y:n.y+s.height})}},e}(u.default);e.default=l},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=void 0;var i=r(729);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return n(i).default}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=n.__importDefault(r(730)),o=r(78),s=r(3),u=n.__importDefault(r(100)),l=r(12),c=n.__importStar(r(153)),f=n.__importDefault(r(731)),h=r(732);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",r=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");r&&(0,o.modifyCSS)(r,{display:e}),n&&(0,o.modifyCSS)(n,{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 r,n,i;this.get("customContent")?this.renderCustomContent():(r=e,n=["title","showTitle"],i=!1,(0,s.each)(n,(function(t){if((0,s.hasKey)(r,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"),r=this.get("y"),n=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,u=this.get("position"),c=this.get("region"),f=this.getContainer(),p=this.getBBox(),d=p.width,g=p.height;c&&(t=(0,l.regionToBBox)(c));var v=(0,h.getAlignPoint)(e,r,n,d,g,u,t);(0,o.modifyCSS)(f,{left:(0,l.toPx)(v.x+a),top:(0,l.toPx)(v.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),r=this.get("container");r&&r.parentNode===e?e.replaceChild(t,r):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var r=e(this.get("title"),this.get("items"));t=(0,s.isElement)(r)?r:(0,o.createDom)(r)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(c.TITLE_CLASS)[0],r=t.getElementsByClassName(c.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",r)},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 r=(0,l.regionToBBox)(t),n=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",r),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",r),n&&(n.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",r),this.resetCrosshair("y",r)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var r=this.checkCrosshair(t),n=this.get(t);"x"===t?(0,o.modifyCSS)(r,{left:(0,l.toPx)(n),top:(0,l.toPx)(e.y),height:(0,l.toPx)(e.height)}):(0,o.modifyCSS)(r,{top:(0,l.toPx)(n),left:(0,l.toPx)(e.x),width:(0,l.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",r=t+"CrosshairTpl",n="CROSSHAIR_"+t.toUpperCase(),i=c[n],a=this.get(e),s=this.get("parent");return a||(a=(0,o.createDom)(this.get(r)),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"),r=this.get("listDom");r&&((0,s.each)(t,(function(t){var n=a.default.toCSSGradient(t.color),u=(0,i.__assign)((0,i.__assign)({},t),{color:n}),l=(0,s.substitute)(e,u),c=(0,o.createDom)(l);r.appendChild(c)})),this.applyChildrenStyles(r,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,l.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}(u.default);e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),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,u=function(t,e,r,n){return t[n]+(e[n]-t[n])*r};function l(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 r=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return r=l(i.exec(r)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:f,gradient:function(t){var e=(0,n.isString)(t)?t.split("-"):t,r=(0,n.map)(e,(function(t){return f(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var r=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=t.length-1,i=Math.floor(n*r),a=n*r-i,o=t[i],s=i===n?o:t[i+1];return l([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)])}(r,t)}},toRGB:(0,n.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,r=void 0;if("l"===t[0]){var i=+(u=a.exec(t))[1]+90;r=u[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var u;e="radial-gradient(",r=(u=o.exec(t))[4]}var l=r.match(s);return(0,n.each)(l,(function(t,r){var n=t.split(":");e+=n[1]+" "+100*n[0]+"%",r!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(1),a=i.__importDefault(r(26)),o=i.__importStar(r(153));e.default=((n={})[""+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"},n[""+o.TITLE_CLASS]={marginBottom:"4px"},n[""+o.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},n[""+o.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},n[""+o.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},n[""+o.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},n[""+o.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},n[""+o.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},n)},function(t,e,r){"use strict";function n(t,e,r,n,i){return{left:ti.x+i.width,top:ei.y+i.height}}function i(t,e,r,n,i,a){var o=t,s=e;switch(a){case"left":o=t-n-r,s=e-i/2;break;case"right":o=t+r,s=e-i/2;break;case"top":o=t-n/2,s=e-i-r;break;case"bottom":o=t-n/2,s=e+r;break;default:o=t+r,s=e-i-r}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=e.getPointByPosition=e.getOutSides=void 0,e.getOutSides=n,e.getPointByPosition=i,e.getAlignPoint=function(t,e,r,a,o,s,u){var l=i(t,e,r,a,o,s);if(u){var c=n(l.x,l.y,a,o,u);"auto"===s?(c.right&&(l.x=Math.max(0,t-a-r)),c.top&&(l.y=Math.max(0,e-o-r))):"top"===s||"bottom"===s?(c.left&&(l.x=u.x),c.right&&(l.x=u.x+u.width-a),"top"===s&&c.top&&(l.y=e+r),"bottom"===s&&c.bottom&&(l.y=e-o-r)):(c.top&&(l.y=u.y),c.bottom&&(l.y=u.y+u.height-o),"left"===s&&c.left&&(l.x=t+r),"right"===s&&c.right&&(l.x=t-a-r))}return l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var n=r(734);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return n.Slider}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=r(735),u=r(759),l=r(156),c=r(760),f=r(12),h=r(761),p=r(137),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.brushPrevX=null,e.enableBrush=!1,e.brushMaskShape=null,e.onMouseDown=function(t){return function(r){e.currentTarget=t;var n=r.originalEvent;n.stopPropagation(),n.preventDefault();var i=(0,p.getCurrentPoint)(n),a=i.x,o=i.y;e.prevX=a,e.prevY=o;var s=e.getContainerDOM();if(["background","foreground-brush"].includes(t))return e.brushPrevX=n.offsetX,e.enableBrush=!0,s.addEventListener("mousemove",e.onBrushMouseMove),s.addEventListener("mouseup",e.onBrushMouseUp),void s.addEventListener("mouseleave",e.onBrushMouseUp);s.addEventListener("mousemove",e.onMouseMove),s.addEventListener("mouseup",e.onMouseUp),s.addEventListener("mouseleave",e.onMouseUp),s.addEventListener("touchmove",e.onMouseMove),s.addEventListener("touchend",e.onMouseUp),s.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var r=e.cfg.width,n=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,p.getCurrentPoint)(t),a=i.x,o=i.y,s=a-e.prevX,u=e.adjustOffsetRange(s/r);e.updateStartEnd(u),e.updateUI(e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=a,e.prevY=o,e.draw(),e.emit(l.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:n,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.cfg.handlerStyle;e.minHandler&&e.minHandler.cfg.style.stroke===t.highLightStroke&&(e.minHandler.update({style:t}),e.get("updateAutoRender")||e.minHandler.render()),e.maxHandler&&e.maxHandler.cfg.style.stroke===t.highLightStroke&&(e.maxHandler.update({style:t}),e.get("updateAutoRender")||e.maxHandler.render());var r=e.getContainerDOM();r&&(r.removeEventListener("mousemove",e.onMouseMove),r.removeEventListener("mouseup",e.onMouseUp),r.removeEventListener("mouseleave",e.onMouseUp),r.removeEventListener("touchmove",e.onMouseMove),r.removeEventListener("touchend",e.onMouseUp),r.removeEventListener("touchcancel",e.onMouseUp))},e.onBrushMouseMove=function(t){if(e.enableBrush){var r=e.getBBox().x,n=t.offsetX;(0,a.isNumber)(e.brushPrevX)||(e.brushPrevX=n);var i=(0,c.getRectMaskAttrs)({x:e.brushPrevX-r,y:0},{x:n-r,y:e.cfg.height});e.brushMaskShape?(0,c.updateMask)(e.brushMaskShape,i):e.brushMaskShape=(0,c.createMask)(e.get("group"),"rect",i)}},e.onBrushMouseUp=function(t){if(e.enableBrush){var r=t.offsetX;if(e.brushPrevX!==r){var n=e.getBBox().x,i=e.cfg.width,a=(Math.min(r,e.brushPrevX)-n)/i,o=(Math.max(r,e.brushPrevX)-n)/i,s=[e.get("start"),e.get("end")];e.set("start",a),e.set("end",o),e.updateUI(e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.draw(),e.emit(l.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:s,value:[e.get("start"),e.get("end")]}),e.cancelBrush()}else e.cancelBrush()}},e}return(0,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var r=this.get("start"),n=this.get("end"),i=(0,a.clamp)(r,t,e),o=(0,a.clamp)(n,t,e);this.get("isInit")||r===i&&n===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 r=[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:r,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:{},barStyle:{},defaultCfg:{backgroundStyle:l.BACKGROUND_STYLE,foregroundStyle:l.FOREGROUND_STYLE,handlerStyle:l.HANDLER_STYLE,textStyle:l.TEXT_STYLE,barStyle:l.BAR_STYLE}})},e.prototype.update=function(e){var r=e.start,n=e.end,o=(0,i.__assign)({},e);(0,a.isNil)(r)||(o.start=(0,a.clamp)(r,0,1)),(0,a.isNil)(n)||(o.end=(0,a.clamp)(n,0,1)),t.prototype.update.call(this,o),this.foreground=this.getChildComponentById(this.getElementId("foreground")),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("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,r=(e.start,e.end,e.width),n=e.height,o=e.trendCfg,c=void 0===o?{}:o,f=e.minText,p=e.maxText,d=e.backgroundStyle,g=void 0===d?{}:d,v=e.foregroundStyle,y=void 0===v?{}:v,m=e.textStyle,_=void 0===m?{}:m,x=e.barStyle,b=void 0===x?{}:x,M=(0,a.deepMix)({},l.DEFAULT_TREND_STYLE,c);(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:r,height:n},M))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:r,height:n,cursor:"crosshair"},g)}),this.foreground=this.addComponent(t,{component:h.Foreground,id:this.getElementId("foreground"),name:"foreground",height:n,foregroundStyle:y,barStyle:b});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,i.__assign)({y:n/2,textAlign:"right",text:f,silent:!1},_)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:n/2,textAlign:"left",text:p,silent:!1},_)});var P=(0,a.deepMix)({},l.HANDLER_STYLE,this.cfg.handlerStyle),O=(0,a.get)(P,"width",l.DEFAULT_HANDLER_WIDTH),S=(0,a.get)(P,"height",l.DEFAULT_HANDLER_HEIGHT);this.minHandler=this.addComponent(t,{component:u.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(n-S)/2,width:O,height:S,cursor:"ew-resize",style:P,sliderHeight:n}),this.maxHandler=this.addComponent(t,{component:u.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(n-S)/2,width:O,height:S,cursor:"ew-resize",style:P,sliderHeight:n})},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){var r=this.cfg,n=r.start,o=r.end,s=r.width,u=r.minText,c=r.maxText,f=r.handlerStyle,h=r.height,p=r.barStyle,d=n*s,g=o*s;if(this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),this.foreground){var v=["foreground-bar","foreground"].includes(this.currentTarget)?(0,i.__assign)((0,i.__assign)({},p),{fill:p.highLightFill}):p;this.foreground.update({x:d,width:g-d,barStyle:v}),this.get("updateAutoRender")||this.foreground.render()}var y=(0,a.get)(f,"width",l.DEFAULT_HANDLER_WIDTH);t.attr("text",u),e.attr("text",c);var m=this._dodgeText([d,g],t,e),_=m[0],x=m[1];if(this.minHandler){var b="minHandler"===this.currentTarget?(0,i.__assign)((0,i.__assign)({},f),{stroke:f.highLightStroke}):f;this.minHandler.update({x:d-y/2,style:b}),this.get("updateAutoRender")||this.minHandler.render()}if((0,a.each)(_,(function(e,r){return t.attr(r,e)})),this.maxHandler){b="maxHandler"===this.currentTarget?(0,i.__assign)((0,i.__assign)({},f),{stroke:f.highLightStroke}):f;this.maxHandler.update({x:g-y/2,style:b}),this.get("updateAutoRender")||this.maxHandler.render()}(0,a.each)(x,(function(t,r){return e.attr(r,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")),t.findById(this.getElementId("background")).on("mousedown",this.onMouseDown("background")),t.on("foreground-scroll:mousedown",this.onMouseDown("foreground")),t.on("foreground-bar:mousedown",this.onMouseDown("foreground")),t.on("foreground-brush:mousedown",this.onMouseDown("foreground-brush")),t.on("foreground:touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,r=e.start,n=e.end;switch(this.currentTarget){case"minHandler":var i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"maxHandler":i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"foreground-brush":case"foreground":i=0-r,a=1-n;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,r=e.start,n=e.end;switch(this.currentTarget){case"minHandler":r+=t;break;case"maxHandler":n+=t;break;case"foreground":case"foreground-brush":r+=t,n+=t}this.set("start",r),this.set("end",n)},e.prototype._dodgeText=function(t,e,r){var n,o,s,u=(0,a.get)(this.cfg.textStyle,"dodgeText",null);if(u)return u(this.cfg,t,e,r);var c=(0,a.get)(this.cfg.handlerStyle,"width",l.DEFAULT_HANDLER_WIDTH),f=(0,a.get)(this.cfg.textStyle,"padding"),h=t[0],p=t[1],d=!1;h>p&&(h=(n=[p,h])[0],p=n[1],e=(o=[r,e])[0],r=o[1],d=!0);var g=e.getBBox(),v=r.getBBox(),y=this.setTextAttrs(g,e,[h,p],"min"),m=y.attrs,_=y.textWidth,x=this.setTextAttrs(v,r,[h,p],"max"),b=x.attrs,M=x.textWidth;if(this.cfg.width-2*c-2*f-_-M<=l.TEXT_SAFE_WIDTH){var P=(0,i.__assign)((0,i.__assign)({},m),{text:""}),O=(0,i.__assign)((0,i.__assign)({},b),{text:""});return d?[O,P]:[P,O]}if("left"===m.textAlign||"right"===b.textAlign){var S=(null===(s=this.foreground)||void 0===s?void 0:s.get("width"))-c-2*f;if("left"===m.textAlign)return S<=_?d?[(0,i.__assign)({},b),(0,i.__assign)((0,i.__assign)({},m),{text:""})]:[(0,i.__assign)((0,i.__assign)({},m),{text:""}),(0,i.__assign)({},b)]:d?[b,m]:[m,b];if("right"===b.textAlign)return S<=M?d?[(0,i.__assign)((0,i.__assign)({},b),{text:""}),(0,i.__assign)({},m)]:[(0,i.__assign)({},m),(0,i.__assign)((0,i.__assign)({},b),{text:""})]:d?[b,m]:[m,b]}return d?[b,m]:[m,b]},e.prototype.setTextAttrs=function(t,e,r,n){var i=(0,a.get)(this.cfg.handlerStyle,"width",l.DEFAULT_HANDLER_WIDTH)/2+(0,a.get)(this.cfg.textStyle,"padding"),o=r[0],s=r[1],u=t.width,c=e.attr("text"),h=e.attr("font"),p=0,d={};return u>l.MAX_TEXT_WIDTH?(p=l.MAX_TEXT_WIDTH,d="min"===n?l.MAX_TEXT_WIDTH>o-i?{x:o+i,textAlign:"left",text:(0,f.clipTextTwoLines)(c,l.MAX_TEXT_WIDTH,h)}:{x:o-i,textAlign:"right",text:(0,f.clipTextTwoLines)(c,l.MAX_TEXT_WIDTH,h)}:l.MAX_TEXT_WIDTH>this.cfg.width-s-i?{x:s-i,textAlign:"right",text:(0,f.clipTextTwoLines)(c,l.MAX_TEXT_WIDTH,h)}:{x:s+i,textAlign:"left",text:(0,f.clipTextTwoLines)(c,l.MAX_TEXT_WIDTH,h)}):(p=u,d="min"===n?u>o-i?{x:o+i,textAlign:"left"}:{x:o-i,textAlign:"right"}:u>this.cfg.width-s-i?{x:s-i,textAlign:"right"}:{x:s+i,textAlign:"left"}),{attrs:d,textWidth:p}},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.prototype.cancelBrush=function(){this.brushMaskShape&&(this.brushMaskShape.remove(),this.brushMaskShape=null),this.enableBrush=!1,this.brushMaskShape=null},e}(o.default);e.Slider=d,e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trend=void 0;var n=r(1),i=r(1),a=n.__importDefault(r(11)),o=r(736),s=r(737),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:"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,r=e.width,n=e.height,a=e.data,o=e.smooth,u=e.isArea,l=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:r,height:n},l)});var h=(0,s.dataToPath)(a,r,n,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:h},c)}),u){var p=(0,s.linePathToAreaPath)(h,r,n,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,r=t.y;this.moveElementTo(this.get("group"),{x:e,y:r})},e}(a.default);e.Trend=u,e.default=u},function(t,e,r){"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linePathToAreaPath=e.getAreaLineY=e.dataToPath=e.getSmoothLinePath=e.getLinePath=void 0;var n=r(1),i=r(291),a=r(738),o=r(3);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 u(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 r=(0,i.catmullRom2Bezier)(e,!1),n=(0,o.head)(t),a=n[0],u=n[1];return r.unshift(["M",a,u]),r}function l(t,e){var r=new a.Linear({values:t}),n=r.max<0?r.max:Math.max(0,r.min);return e-r.scale(n)*e}e.getLinePath=s,e.getSmoothLinePath=u,e.dataToPath=function(t,e,r,n){void 0===n&&(n=!0);var i=new a.Linear({values:t}),l=new a.Category({values:(0,o.map)(t,(function(t,e){return e}))}),c=(0,o.map)(t,(function(t,n){return[l.scale(n)*e,r-i.scale(t)*r]}));return n?u(c):s(c)},e.getAreaLineY=l,e.linePathToAreaPath=function(t,e,r,i){var a=(0,n.__spreadArrays)(t),o=l(i,r);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}},function(t,e,r){"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 n=r(1),i=n.__importDefault(r(80));e.Scale=i.default;var a=n.__importDefault(r(305));e.Category=a.default;var o=n.__importDefault(r(739));e.TimeCat=o.default;var s=n.__importDefault(r(307));e.Linear=s.default;var u=n.__importDefault(r(741));e.Log=u.default;var l=n.__importDefault(r(742));e.Pow=l.default;var c=n.__importDefault(r(743));e.Time=c.default;var f=n.__importDefault(r(308));e.Quantize=f.default;var h=n.__importDefault(r(744));e.Quantile=h.default;var p=r(745);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}});var d=n.__importDefault(r(746));e.Identity=d.default;var g=r(747);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",u.default),(0,p.registerScale)("pow",l.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=r(101),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 n=this.values[r],i=this.formatter;return n=i?i(n,e):(0,o.timeFormat)(n,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,r){e[r]=(0,o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(n.__importDefault(r(305)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3);e.default=function(t){return function(e,r,i,a){for(var o=(0,n.isNil)(i)?0:i,s=(0,n.isNil)(a)?e.length:a;o>>1;t(e[u])>r?s=u:o=u+1}return o}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(103),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,r=this.base,n=(0,a.log)(r,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(n-(e=(0,a.log)(r,s/r)))*o;if(t=0?1:-1;return Math.pow(o,r)*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,r=this.min;if(e===r)return 0;var n=this.exponent;return((0,a.calBase)(n,t)-(0,a.calBase)(n,r))/((0,a.calBase)(n,e)-(0,a.calBase)(n,r))},e}(n.__importDefault(r(102)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),o=r(101),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 r=this.translate(t),n=this.formatter;return n?n(r,e):(0,o.timeFormat)(r,this.mask)},e.prototype.scale=function(e){var r=e;return((0,a.isString)(r)||(0,a.isDate)(r))&&(r=this.translate(r)),t.prototype.scale.call(this,r)},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"),r=this.getConfig("max");if((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(r)&&(0,a.isNumber)(r)||(this.max=this.translate(this.max)),t&&t.length){var n=[],i=1/0,s=i,u=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),u1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(r)&&(this.max=u)}},e}(n.__importDefault(r(307)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),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}(n.__importDefault(r(308)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerScale=e.getScale=e.Scale=void 0;var n=r(1).__importDefault(r(80));e.Scale=n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(1),a=r(3),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}(n.__importDefault(r(80)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var n=r(1),i=n.__importDefault(r(309)),a=n.__importDefault(r(748)),o=n.__importDefault(r(750)),s=n.__importDefault(r(752)),u=n.__importDefault(r(753)),l=n.__importDefault(r(754)),c=n.__importDefault(r(755)),f=r(304);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var h=n.__importDefault(r(756)),p=n.__importDefault(r(757)),d=n.__importDefault(r(758));(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",u.default),(0,f.registerTickMethod)("quantile",l.default),(0,f.registerTickMethod)("d3-linear",a.default)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),a=n.__importDefault(r(749)),o=n.__importDefault(r(154)),s=n.__importDefault(r(155));e.default=function(t){var e=t.min,r=t.max,n=t.tickInterval,u=t.minLimit,l=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(u)&&(0,i.isNil)(l)?n?(0,o.default)(e,r,n).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,r=t.max,n=t.nice,i=t.tickCount,a=new o;return a.domain([e,r]),n&&a.nice(i),a.ticks(i)};var n=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,r;void 0===t&&(t=5);var n,i=this._domain.slice(),a=0,o=this._domain.length-1,u=this._domain[a],l=this._domain[o];return l0?n=s(u=Math.floor(u/n)*n,l=Math.ceil(l/n)*n,t):n<0&&(n=s(u=Math.ceil(u*n)/n,l=Math.floor(l*n)/n,t)),n>0?(i[a]=Math.floor(u/n)*n,i[o]=Math.ceil(l/n)*n,this.domain(i)):n<0&&(i[a]=Math.ceil(u*n)/n,i[o]=Math.floor(l*n)/n,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,r){var n,i,a,o,u=-1;if(r=+r,(t=+t)===(e=+e)&&r>0)return[t];(n=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u=0?(u>=n?10:u>=i?5:u>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=n?10:u>=i?5:u>=a?2:1)}e.D3Linear=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),a=n.__importDefault(r(751)),o=n.__importDefault(r(154)),s=n.__importDefault(r(155));e.default=function(t){var e=t.min,r=t.max,n=t.tickCount,u=t.nice,l=t.tickInterval,c=t.minLimit,f=t.maxLimit,h=(0,a.default)(e,r,n,u).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?l?(0,o.default)(e,r,l).ticks:h:(0,s.default)(t,(0,i.head)(h),(0,i.last)(h))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_Q=e.DEFAULT_Q=void 0;var n=r(3),i=r(310);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,r,i,o,s){var u=(0,n.size)(e),l=(0,n.indexOf)(e,t),c=0,f=function(t,e){return(t%e+e)%e}(i,s);return(f=0&&(c=1),1-l/(u-1)-r+c}function s(t,e,r){var i=(0,n.size)(e);return 1-(0,n.indexOf)(e,t)/(i-1)-r+1}function u(t,e,r,n,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,n)-Math.min(r,i));return 2-Math.max(o/s,s/o)}function l(t,e){return t>=e?2-(t-1)/(e-1):1}function c(t,e,r,n){var i=e-t;return 1-.5*(Math.pow(e-n,2)+Math.pow(t-r,2))/Math.pow(.1*i,2)}function f(t,e,r){var n=e-t;if(r>n){var i=(r-n)/2;return 1-Math.pow(i,2)/Math.pow(.1*n,2)}return 1}e.default=function(t,r,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(r)||"number"!=typeof t||"number"!=typeof r||!g)return{min:0,max:0,ticks:[]};if(r-t<1e-15||1===g)return{min:t,max:r,ticks:[t]};if(r-t>1e148){var v=(r-t)/(E=a||5);return{min:t,max:r,ticks:Array(E).fill(null).map((function(e,r){return(0,i.prettyNumber)(t+v*r)}))}}for(var y={score:-2,lmin:0,lmax:0,lstep:0},m=1;m<1/0;){for(var _=0;_y.score&&(!h||D<=t&&L>=r)&&(y.lmin=D,y.lmax=L,y.lstep=j,y.score=F)}S+=1}M+=1}}m+=1}var N=(0,i.prettyNumber)(y.lmax),Y=(0,i.prettyNumber)(y.lmin),G=(0,i.prettyNumber)(y.lstep),V=Math.floor(function(t){return Math.round(1e12*t)/1e12}((N-Y)/G))+1,H=new Array(V);for(H[0]=(0,i.prettyNumber)(Y),_=1;_0)e=Math.floor((0,n.log)(r,a));else{var l=(0,n.getLogPositiveMin)(s,r,o);e=Math.floor((0,n.log)(r,l))}for(var c=u-e,f=Math.ceil(c/i),h=[],p=e;p=0?1:-1;return Math.pow(t,e)*r}))}},function(t,e,r){"use strict";function n(t,e){var r=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:r%1!=0?t[Math.ceil(r)-1]:t.length%2==0?(t[r-1]+t[r])/2:t[r]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,r=t.values;if(!r||!r.length)return[];for(var i=r.slice().sort((function(t,e){return t-e})),a=[],o=0;o1&&(a*=Math.ceil(s)),i&&an.YEAR)for(var p=i(r),d=Math.ceil(c/n.YEAR),g=h;g<=p+d;g+=d)f.push(a(g));else if(c>n.MONTH){var v=Math.ceil(c/n.MONTH),y=o(e),m=function(t,e){var r=i(t),n=i(e),a=o(t);return 12*(n-r)+(o(e)-a)%12}(e,r);for(g=0;g<=m+v;g+=v)f.push(s(h,g+y))}else if(c>n.DAY){var _=(O=new Date(e)).getFullYear(),x=O.getMonth(),b=O.getDate(),M=Math.ceil(c/n.DAY),P=function(t,e){return Math.ceil((e-t)/n.DAY)}(e,r);for(g=0;gn.HOUR){_=(O=new Date(e)).getFullYear(),x=O.getMonth(),M=O.getDate();var O,S=O.getHours(),C=Math.ceil(c/n.HOUR),w=function(t,e){return Math.ceil((e-t)/n.HOUR)}(e,r);for(g=0;g<=w+C;g+=C)f.push(new Date(_,x,M,S+g).getTime())}else if(c>n.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,r),T=Math.ceil(c/n.MINUTE);for(g=0;g<=A+T;g+=T)f.push(e+g*n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Handler=void 0;var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=r(156),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:"handler",x:0,y:0,width:s.DEFAULT_HANDLER_WIDTH,height:s.DEFAULT_HANDLER_HEIGHT,style:s.HANDLER_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,r=e.width,n=e.height,o=e.style,s=e.sliderHeight,u=o.stroke,l=o.cursor;this.addShape(t,{type:"line",id:this.getElementId("background-line"),attrs:{x1:.5*r,y1:-(s-n)/2,x2:.5*r,y2:(n+s)/2,stroke:u}}),this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:(0,i.__assign)({x:0,y:0,width:r,height:n},(0,a.omit)(o,["stroke"]))});var c=1/3*r,f=2/3*r,h=1/4*n,p=3/4*n;this.addShape(t,{id:this.getElementId("line-left"),name:"handler-line",type:"line",attrs:{x1:c,y1:h,x2:c,y2:p,stroke:u,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),name:"handler-line",type:"line",attrs:{x1:f,y1:h,x2:f,y2:p,stroke:u,cursor:l}})},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.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightStroke;t.getElementByLocalId("background-line").attr("stroke",e),t.getElementByLocalId("line-left").attr("stroke",e),t.getElementByLocalId("line-right").attr("stroke",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").stroke;t.getElementByLocalId("background-line").attr("stroke",e),t.getElementByLocalId("line-left").attr("stroke",e),t.getElementByLocalId("line-right").attr("stroke",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o.default);e.Handler=u,e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRectMaskAttrs=e.updateMask=e.createMask=void 0;var n=r(1);e.createMask=function(t,e,r){return t.addShape({type:e,name:"component-mask",attrs:(0,n.__assign)({fill:"#569CFF",opacity:.16},r)})},e.updateMask=function(t,e){return t.attr(e),t},e.getRectMaskAttrs=function(t,e){return{x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Foreground=void 0;var n=r(1),i=r(1),a=r(3),o=n.__importDefault(r(11)),s=r(156),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:"foreground",width:100,height:16,foregroundStyle:s.FOREGROUND_STYLE,barStyle:s.BAR_STYLE})},e.prototype.renderInner=function(t){var e=this,r=this.cfg,n=r.x,o=r.height,u=r.width,l=r.foregroundStyle,c=r.barStyle,f=l.brushRatio;this.addShape(t,{id:this.getElementId("foreground-scroll"),name:"foreground-scroll",type:"rect",attrs:(0,i.__assign)({x:n,y:0,width:u,height:o*(1-f),cursor:"move"},(0,a.omit)(l,["stroke"]))}),this.addShape(t,{id:this.getElementId("foreground-brush"),name:"foreground-brush",type:"rect",attrs:(0,i.__assign)({x:n,y:o*(1-f),width:u,height:o*f,cursor:"crosshair"},(0,a.omit)(l,["stroke"]))});var h=this.addGroup(t,{id:this.getElementId("foreground-bar"),name:"foreground-bar"});this.addShape(h,{id:this.getElementId("foreground-bar-rect"),name:"foreground-bar-rect",type:"rect",attrs:(0,i.__assign)({x:n,y:-c.height,width:u,height:c.height,cursor:"move"},(0,a.omit)(c,["stroke"]))});var p=u/2+n,d=p-s.SLIDER_BAR_LINE_GAP,g=p+s.SLIDER_BAR_LINE_GAP,v=-1/4*c.height,y=-3/4*c.height,m=(0,i.__assign)({y1:v,y2:y},c);[d,p,g].forEach((function(r){e.drawBarLine(t,r,m)})),this.addShape(t,{id:this.getElementId("foreground-border"),name:"foreground-border",type:"rect",attrs:{x:n,y:0,width:u,height:o,stroke:null==l?void 0:l.stroke,opacity:null==l?void 0:l.strokeOpacity,lineWidth:null==l?void 0:l.lineWidth}})},e.prototype.drawBarLine=function(t,e,r){this.addShape(t,{id:this.getElementId("line-"+e),name:"foreground-line",type:"line",attrs:(0,i.__assign)({x1:e,x2:e},r)})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this,e=this.get("barStyle"),r=e.highLightFill,n=e.fill,i=this.get("group").findById(this.getElementId("foreground-bar-rect"));this.get("group").on("foreground-bar:mouseenter",(function(){i.attr("fill",r),t.draw()})),this.get("group").on("foreground-scroll:mouseenter",(function(){i.attr("fill",r),t.draw()})),this.get("group").on("foreground-bar:mouseleave",(function(){i.attr("fill",n),t.draw()})),this.get("group").on("foreground-scroll:mouseleave",(function(){i.attr("fill",n),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o.default);e.Foreground=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(1).__exportStar(r(763),e)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var n=r(1),i=r(1),a=r(78),o=r(3),s=n.__importDefault(r(11));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 u=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(r){e.isMobile=t,r.originalEvent.preventDefault();var n=t?(0,o.get)(r.originalEvent,"touches.0.clientX"):r.clientX,i=t?(0,o.get)(r.originalEvent,"touches.0.clientY"):r.clientY;e.startPos=e.cfg.isHorizontal?n:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),r=[];r=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(){r.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var r=e.cfg,n=r.isHorizontal,i=r.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,u=n?a:s,l=u-e.startPos;e.startPos=u,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var r=e.cfg,n=r.isHorizontal,i=r.x,a=r.y,o=r.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),u=t.clientX,l=t.clientY,c=n?u-s.left-i-o/2:l-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)(r,t),r.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var r=this.getValue(),n=(0,o.clamp)(r,t,e);r===n||this.get("isInit")||this.setValue(n)},r.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},r.prototype.setValue=function(t){var e=this.getRange(),r=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:r,value:this.getValue()})},r.prototype.getValue=function(){return(0,o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},r.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},r),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:e.DEFAULT_THEME})},r.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.renderTrackShape=function(t){var r=this.cfg,n=r.trackLen,i=r.theme,a=void 0===i?{default:{}}:i,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,u=s.lineCap,l=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:n-f/2,y2:f/2,lineWidth:f,stroke:l,lineCap:u}:{x1:f/2,y1:0+f/2,x2:f/2,y2:n-f/2,lineWidth:f,stroke:l,lineCap:u};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},r.prototype.renderThumbShape=function(t){var r=this.cfg,n=r.thumbOffset,i=r.thumbLen,a=r.theme,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,u=s.size,l=s.lineCap,c=s.thumbColor,f=(0,o.get)(this.cfg,"size",u),h=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+i-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:l,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+i-f/2,lineWidth:f,stroke:c,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:h})},r.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)},r.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},r.prototype.validateRange=function(t){var e=this.cfg,r=e.thumbLen,n=e.trackLen,i=t;return t+r>n?i=n-r:t+r=0&&e.splice(r,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,n.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),r=this.getCurrentPoint();return!!r&&!!e.find((function(e){var n=e.getBBox();return t?e.get("name")===t&&(0,i.isInBox)(n,r):(0,i.isInBox)(n,r)}))},t.prototype.destroy=function(){(0,n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var n=r(0),i=r(2),a=r(316),o=r(770);e.createTheme=function(t){var e=t.styleSheet,r=void 0===e?{}:e,s=n.__rest(t,["styleSheet"]),u=(0,o.createLightStyleSheet)(r);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(u),s)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var n=r(0),i="#000",a="#595959",o="#8C8C8C",s="#BFBFBF",u="#D9D9D9",l="#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,r=void 0===e?h:e,g=t.paletteQualitative20,v=void 0===g?p:g,y=t.brandColor,m=void 0===y?r[0]:y,_={backgroundColor:"transparent",brandColor:m,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:r,paletteQualitative20:v,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:u,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:o,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:u,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:u,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:o,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:l,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:s,annotationArcBorderColor:u,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 n.__assign(n.__assign({},_),t)},e.antvLight=(0,e.createLightStyleSheet)()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(22),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 r=this.option,i=r.type,o=r.cfg,s="theta"===i,u=n.__assign({start:t,end:e},o),l=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new l(u),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 n.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,r=this.option.actions;(0,i.each)(r,(function(r){var a,o=n.__read(r),s=o[0],u=o.slice(1);(!!(0,i.isNil)(t)||t.includes(s))&&(a=e.coordinate)[s].apply(a,n.__spreadArray([],n.__read(u),!1))}))},t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),r=t.getController("legend"),n=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),r,n].forEach((function(t){t&&t.layout()}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var n=r(2),i=r(49),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,r,a){var o=r,s=this.getScaleMeta(a);if(0===e.length&&s){var u=s.scale,l={type:u.type};u.isCategory&&(l.values=u.values),o=(0,n.deepMix)(l,s.scaleDef,r)}var c=(0,i.createScaleByField)(t,e,o);return this.cacheScale(c,r,a),c},t.prototype.sync=function(t,e){var r=this;this.syncScales.forEach((function(a,o){var s=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER,l=[];(0,n.each)(a,(function(t){var e=r.getScale(t);u=(0,n.isNumber)(e.max)?Math.max(u,e.max):u,s=(0,n.isNumber)(e.min)?Math.min(s,e.min):s,(0,n.each)(e.values,(function(t){l.includes(t)||l.push(t)}))})),(0,n.each)(a,(function(a){var o=r.getScale(a);if(o.isContinuous)o.change({min:s,max:u,values:l});else if(o.isCategory){var c=o.range,f=r.getScaleMeta(a);l&&!(0,n.get)(f,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,n.deepMix)({},o,{values:l}),t,e)),o.change({values:l,range:c})}}))}))},t.prototype.cacheScale=function(t,e,r){var n=this.getScaleMeta(r);n&&n.scale.type===t.type?((0,i.syncScale)(n.scale,t),n.scaleDef=e):(n={key:r,scale:t,scaleDef:e},this.scales.set(r,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(r),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(r)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var r=(0,n.last)(t.split("-")),i=this.syncScales.get(r);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 r=e.syncKey,n=this.syncScales.get(r);if(n&&n.length){var i=n.indexOf(t);-1!==i&&n.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(r,n){var i=r.indexOf(t);if(-1!==i)return r.splice(i,1),0===r.length&&e.syncScales.delete(n),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,r=t.scaleDef,i=e.field,a=(0,n.get)(r,["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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var n=r(0),i=r(2),a=r(4),o=r(36),s=r(158),u=r(318);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(u.PaddingCal.bind.apply(u.PaddingCal,n.__spreadArray([void 0],n.__read((0,s.parsePadding)(e)),!1)));var r=t.viewBBox,l=new u.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(),n=new o.BBox(e.x,e.y,e.width,e.height).exceed(r);l.max(n)})),(0,i.each)(f,(function(t){var e=t.component,r=t.direction,n=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(n.x,n.y,n.width,n.height).expand(i);l.inc(a,r)})),(0,i.each)(h,(function(t){var e=t.component,r=t.direction,n=e.getLayoutBBox(),i=new o.BBox(n.x,n.y,n.width,n.height);l.inc(i,r)})),l}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,r){var n=r.instance();e.forEach((function(t){t.autoPadding=n.max(t.autoPadding.getPadding())}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var n=r(0),i=r(2);e.group=function(t,e,r){var a,o;if(void 0===r&&(r={}),!e)return[t];var s=(0,i.groupToMap)(t,e),u=[];if(1===e.length&&r[e[0]]){var l=r[e[0]];try{for(var c=n.__values(l),f=c.next();!f.done;f=c.next()){var h=f.value,p=s["_".concat(h)];p&&u.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];u.push(g)}return u}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseFields=void 0;var n=r(2);e.parseFields=function(t){return(0,n.isArray)(t)?t:t.split("*")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(47),o=r(162),s=r(67),u=r(14),l=r(68),c=r(4),f=r(779),h=function(){function t(t){this.shapesMap={};var e=t.layout,r=t.container;this.layout=e,this.container=r}return t.prototype.render=function(t,e,r){return void 0===r&&(r=!1),n.__awaiter(this,void 0,void 0,(function(){var o,s,u,l,c,h,p,d,g=this;return n.__generator(this,(function(v){switch(v.label){case 0:if(o={},s=this.createOffscreenGroup(),!t.length)return[3,2];try{for(u=n.__values(t),l=u.next();!l.done;l=u.next())(c=l.value)&&(o[c.id]=this.renderLabel(c,s))}catch(t){p={error:t}}finally{try{l&&!l.done&&(d=u.return)&&d.call(u)}finally{if(p)throw p.error}}return[4,this.doLayout(t,e,o)];case 1:v.sent(),this.renderLabelLine(t,o),this.renderLabelBackground(t,o),this.adjustLabel(t,o),v.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"),u=t.get("origin"),l=t.get("coordinate"),c=t.get("animateCfg"),p=h[e];(0,f.updateLabel)(p,o[e],{data:s,origin:u,animateCfg:c,coordinate:l}),o[e]=p}else{if(g.container.destroyed)return;g.container.add(t);var d=(0,i.get)(t.get("animateCfg"),r?"enter":"appear");d&&(0,a.doAnimate)(t,d,{toAttrs:n.__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 r,a=t.id,o=t.elementId,s=t.data,u=t.mappingData,f=t.coordinate,h=t.animate,p=t.content,d={id:a,elementId:o,capture:t.capture,data:s,origin:n.__assign(n.__assign({},u),{data:u[c.FIELD_ORIGIN]}),coordinate:f},g=e.addGroup(n.__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 v=p.getCanvasBBox(),y=v.width,m=v.height,_=(0,i.get)(t,"textAlign","left"),x=t.x,b=t.y-m/2;"center"===_?x-=y/2:"right"!==_&&"end"!==_||(x-=y),(0,l.translate)(p,x,b),r=p,g.add(p)}else{var M=(0,i.get)(t,["style","fill"]);r=g.addShape("text",n.__assign({attrs:n.__assign(n.__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,l.rotate)(r,t.rotate),g},t.prototype.doLayout=function(t,e,r){return n.__awaiter(this,void 0,void 0,(function(){var a,s=this;return n.__generator(this,(function(n){switch(n.label){case 0:return this.layout?(a=(0,i.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(a.map((function(n){var a=(0,o.getGeometryLabelLayout)((0,i.get)(n,"type",""));if(a){var u=[],l=[];return(0,i.each)(r,(function(t,r){u.push(t),l.push(e[t.get("elementId")])})),a(t,u,l,s.region,n.cfg)}})))]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){(0,i.each)(t,(function(t){var r=(0,i.get)(t,"coordinate");if(t&&r){var a=r.getCenter(),o=r.getRadius();if(t.labelLine){var s=(0,i.get)(t,"labelLine",{}),l=t.id,c=s.path;if(!c){var f=(0,u.polarToCartesian)(a.x,a.y,o,t.angle);c=[["M",f.x,f.y],["L",t.x,t.y]]}var h=e[l];h.destroyed||h.addShape("path",{capture:!1,attrs:n.__assign({path:c,stroke:t.color?t.color:(0,i.get)(t,["style","fill"],"#000"),fill:null},s.style),id:l,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){(0,i.each)(t,(function(t){var r=(0,i.get)(t,"coordinate"),a=(0,i.get)(t,"background");if(a&&r){var o=t.id,u=e[o];if(!u.destroyed){var l=u.getChildren()[0];if(l){var c=(0,s.getLabelBackgroundInfo)(u,t,a.padding),f=c.rotation,h=n.__rest(c,["rotation"]),p=u.addShape("rect",{attrs:n.__assign(n.__assign({},h),a.style||{}),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),f){var d=l.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 r=t.id,n=e[r];if(!n.destroyed){var a=n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateLabel=void 0;var n=r(2),i=r(47),a=r(14);e.updateLabel=function t(e,r,o){var s=o.data,u=o.origin,l=o.animateCfg,c=o.coordinate,f=(0,n.get)(l,"update");e.set("data",s),e.set("origin",u),e.set("animateCfg",l),e.set("coordinate",c),e.set("visible",r.get("visible")),(e.getChildren()||[]).forEach((function(n,h){var p=r.getChildByIndex(h);if(p){n.set("data",s),n.set("origin",u),n.set("animateCfg",l),n.set("coordinate",c);var d=(0,a.getReplaceAttrs)(n,p);f?(0,i.doAnimate)(n,f,{toAttrs:d,coordinate:c}):n.attr(d),p.isGroup()&&t(n,p,o)}else e.removeChild(n),n.remove(!0)})),(0,n.each)(r.getChildren(),(function(t,r){r>=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var n=r(0),i="#000",a="#262626",o="#BFBFBF",s="#F0F0F0",u="#FFFFFF",l="#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,r=void 0===e?p:e,v=t.paletteQualitative20,y=void 0===v?d:v,m=t.brandColor,_={backgroundColor:"#141414",brandColor:void 0===m?r[0]:m,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:r,paletteQualitative20:y,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:l,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:l,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:l,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:l,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:u,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:l,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:l,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:l,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:u,pointSelectedBorder:2,pointSelectedBorderColor:u,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:p[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:u,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:u,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:u,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:u,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:p[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:u,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:u,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:p[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:u,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:u,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return n.__assign(n.__assign({},_),t)},e.antvDark=(0,e.createDarkStyleSheet)()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=n.__importDefault(r(32)),o=r(18),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,r,n,i){var a=this.attr(),s=a.x,u=a.y,l=a.r,c=i/2,f=(0,o.distance)(s,u,t,e);return n&&r?f<=l+c:n?f<=l:!!r&&(f>=l-c&&f<=l+c)},e.prototype.createPath=function(t){var e=this.attr(),r=e.x,n=e.y,i=e.r;t.beginPath(),t.arc(r,n,i,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0);function a(t,e,r,n){return t/(r*r)+e/(n*n)}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,r,n,i){var o=this.attr(),s=i/2,u=o.x,l=o.y,c=o.rx,f=o.ry,h=(t-u)*(t-u),p=(e-l)*(e-l);return n&&r?a(h,p,c+s,f+s)<=1:n?a(h,p,c,f)<=1:!!r&&(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(),r=e.x,n=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(r,n,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,u=i>a?a/i:1;t.save(),t.translate(r,n),t.scale(s,u),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(n.__importDefault(r(32)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=n.__importDefault(r(32)),o=r(18);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var 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),{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,r=this.attrs;if((0,o.isString)(t)){var n=new Image;n.onload=function(){if(e.destroyed)return!1;e.attr("img",n),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},n.crossOrigin="Anonymous",n.src=t,this.set("loading",!0)}else t instanceof Image?(r.width||(r.width=t.width),r.height||(r.height=t.height)):s(t)&&(r.width||(r.width=Number(t.getAttribute("width"))),r.height||(r.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,r,n){t.prototype.onAttrChange.call(this,e,r,n),"img"===e&&this._setImage(r)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),r=e.x,n=e.y,i=e.width,a=e.height,u=e.sx,l=e.sy,c=e.swidth,f=e.sheight,h=e.img;(h instanceof Image||s(h))&&((0,o.isNil)(u)||(0,o.isNil)(l)||(0,o.isNil)(c)||(0,o.isNil)(f)?t.drawImage(h,r,n,i,a):t.drawImage(h,u,l,c,f,r,n,i,a))},e}(a.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(23),o=n.__importDefault(r(32)),s=n.__importDefault(r(108)),u=n.__importStar(r(107)),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),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,r,n){t.prototype.onAttrChange.call(this,e,r,n),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,r=t.y1,n=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&u.addStartArrow(this,t,n,i,e,r),o&&u.addEndArrow(this,t,e,r,n,i)},e.prototype.isInStrokeOrPath=function(t,e,r,n,i){if(!r||!i)return!1;var a=this.attr(),o=a.x1,u=a.y1,l=a.x2,c=a.y2;return(0,s.default)(o,u,l,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),r=e.x1,n=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(l=u.getShortenOffset(r,n,i,a,e.startArrow.d)),s&&s.d&&(c=u.getShortenOffset(r,n,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(r+l.dx,n+l.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),r=this.get("endArrowShape");e&&e.draw(t),r&&r.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,r=t.y1,n=t.x2,i=t.y2;return a.Line.length(e,r,n,i)},e.prototype.getPoint=function(t){var e=this.attr(),r=e.x1,n=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(r,n,i,o,t)},e}(o.default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(73),s=n.__importDefault(r(32)),u=r(18),l=r(83),c={circle:function(t,e,r){return[["M",t-r,e],["A",r,r,0,1,0,t+r,e],["A",r,r,0,1,0,t-r,e]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(1/3*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["Z"]]},"triangle-down":function(t,e,r){var n=r*Math.sin(1/3*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["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,r,n){t.prototype.onAttrChange.call(this,e,r,n),-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,r,n=this.attr(),i=n.x,a=n.y,s=n.symbol||"circle",l=this._getR(n);if((0,u.isFunction)(s))r=(t=s)(i,a,l),r=(0,o.path2Absolute)(r);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;r=t(i,a,l)}return r},e.prototype.createPath=function(t){var e=this._getPath(),r=this.get("paramsCache");(0,l.drawPath)(this,t,{path:e},r)},e.Symbols=c,e}(s.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(23),o=r(2),s=n.__importDefault(r(32)),u=r(73),l=r(83),c=n.__importDefault(r(329)),f=n.__importDefault(r(330)),h=n.__importDefault(r(788)),p=n.__importStar(r(107));function d(t,e,r){for(var n=!1,i=0;i=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),r=i)}));var s=i[r];if((0,o.isNil)(s)||(0,o.isNil)(r))return null;var u=s.length,l=i[r+1];return a.Cubic.pointAt(s[u-2],s[u-1],l[1],l[2],l[3],l[4],l[5],l[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,r,n,i=0,s=0,u=[],l=this.get("curve");l&&((0,o.each)(l,(function(t,e){r=l[e+1],n=t.length,r&&(i+=a.Cubic.length(t[n-2],t[n-1],r[1],r[2],r[3],r[4],r[5],r[6])||0)})),this.set("totalLength",i),0!==i?((0,o.each)(l,(function(o,c){r=l[c+1],n=o.length,r&&((t=[])[0]=s/i,e=a.Cubic.length(o[n-2],o[n-1],r[1],r[2],r[3],r[4],r[5],r[6]),s+=e||0,t[1]=s/i,u.push(t))})),this.set("tCache",u)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var r=e[0].currentPoint,n=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([r[0]-i[0],r[1]-i[1]]),t.push([r[0],r[1]])):(t.push([n[0],n[1]]),t.push([r[0],r[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),r=e.length;if(r>1){var n=e[r-2].currentPoint,i=e[r-1].currentPoint,a=e[r-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([n[0],n[1]]),t.push([i[0],i[1]]))}return t},e}(s.default);e.default=g},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(15),o=r(23),s=r(23),u=r(17),l=n.__importStar(r(118)),c=r(18),f=n.__importDefault(r(108)),h=n.__importDefault(r(331)),p=u.ext.transform;e.default=(0,i.__assign)({hasArc:function(t){for(var e=!1,r=t.length,n=0;n0&&n.push(i),{polygons:r,polylines:n}},isPointInStroke:function(t,e,r,n,i){for(var a=!1,u=e/2,d=0;dO?P:O,E=p(null,[["t",-b,-M],["r",-w],["s",1/(P>O?1:P/O),1/(P>O?O/P:1)]]);l.transformMat3(A,A,E),a=(0,h.default)(0,0,T,S,C,e,A[0],A[1])}if(a)break}}return a}},a.PathUtil)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=n.__importDefault(r(32)),o=n.__importDefault(r(332)),s=n.__importDefault(r(330)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,r,n,i){var a=this.attr().points,u=!1;return r&&(u=(0,o.default)(a,i,t,e,!0)),!u&&n&&(u=(0,s.default)(a,t,e)),u},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var r=0;r=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),r=i)})),a.Line.pointAt(n[r][0],n[r][1],n[r+1][0],n[r+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 r,n,i=0,o=[];(0,s.each)(t,(function(s,u){t[u+1]&&((r=[])[0]=i/e,n=a.Line.length(s[0],s[1],t[u+1][0],t[u+1][1]),i+=n,r[1]=i/e,o.push(r))})),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,r=[];return r.push([t[e-1][0],t[e-1][1]]),r.push([t[e][0],t[e][1]]),r},e}(u.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=n.__importDefault(r(32)),o=r(327),s=r(18),u=n.__importDefault(r(792)),l=n.__importDefault(r(793)),c=n.__importDefault(r(329)),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,r,n,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 r&&(g=(0,l.default)(o,f,h,p,d,i,t,e)),!g&&n&&(g=(0,c.default)(this,t,e)),g}var v=i/2;return n&&r?(0,s.inBox)(o-v,f-v,h+v,p+v,t,e):n?(0,s.inBox)(o,f,h,p,t,e):r?(0,u.default)(o,f,h,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),r=e.x,n=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(r,n,i,a);else{var u=(0,o.parseRadius)(s),l=u[0],c=u[1],f=u[2],h=u[3];t.moveTo(r+l,n),t.lineTo(r+i-c,n),0!==c&&t.arc(r+i-c,n+c,c,-Math.PI/2,0),t.lineTo(r+i,n+a-f),0!==f&&t.arc(r+i-f,n+a-f,f,0,Math.PI/2),t.lineTo(r+h,n+a),0!==h&&t.arc(r+h,n+a-h,h,Math.PI/2,Math.PI),t.lineTo(r,n+l),0!==l&&t.arc(r+l,n+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(18);e.default=function(t,e,r,i,a,o,s){var u=a/2;return(0,n.inBox)(t-u,e-u,r,a,o,s)||(0,n.inBox)(t+r-u,e-u,a,i,o,s)||(0,n.inBox)(t+u,e+i-u,r,a,o,s)||(0,n.inBox)(t-u,e+u,a,i,o,s)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(108)),a=n.__importDefault(r(331));e.default=function(t,e,r,n,o,s,u,l){return(0,i.default)(t+o,e,t+r-o,e,s,u,l)||(0,i.default)(t+r,e+o,t+r,e+n-o,s,u,l)||(0,i.default)(t+r-o,e+n,t+o,e+n,s,u,l)||(0,i.default)(t,e+n-o,t,e+o,s,u,l)||(0,a.default)(t+r-o,e+o,o,1.5*Math.PI,2*Math.PI,s,u,l)||(0,a.default)(t+r-o,e+n-o,o,0,.5*Math.PI,s,u,l)||(0,a.default)(t+o,e+n-o,o,.5*Math.PI,Math.PI,s,u,l)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,u,l)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=n.__importDefault(r(32)),o=r(18),s=r(15),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),{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,r,n){t.prototype.onAttrChange.call(this,e,r,n),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(r)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,r=1*t.fontSize;return e?e-r:.14*r},e.prototype._drawTextArr=function(t,e,r){var n,i=this.attrs,a=i.textBaseline,u=i.x,l=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){n=l+i*(f+c)-h+c,"middle"===a&&(n+=h-c-(h-c)/2),"top"===a&&(n+=h-c),(0,o.isNil)(e)||(r?t.fillText(e,u,n):t.strokeText(e,u,n))}))},e.prototype._drawText=function(t,e){var r=this.attr(),n=r.x,i=r.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=r.text;(0,o.isNil)(s)||(e?t.fillText(s,n,i):t.strokeText(s,n,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,r=e.lineWidth,n=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&r>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=n),this.stroke(t)),this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=n)),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=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(15),o=r(796),s=n.__importStar(r(82)),u=n.__importDefault(r(165)),l=r(18),c=r(83),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 u.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,l.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,r){t.prototype.setDOMSize.call(this,e,r);var n=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*r,a>1&&n.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),r=this.get("el");e.clearRect(0,0,r.width,r.height)},e.prototype.getShape=function(e,r){return this.get("quickHit")?(0,o.getShape)(this,e,r):t.prototype.getShape.call(this,e,r,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),r=this.getViewRange();e.length&&e[0]===this?t=r:(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,r)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,l.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"),r=this.getChildren();t.clearRect(0,0,e.width,e.height),(0,c.applyAttrsToContext)(t,this),(0,c.drawChildren)(t,r),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),r=this.getChildren(),n=this._getRefreshRegion();n?(t.clearRect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.save(),t.beginPath(),t.rect(n.minX,n.minY,n.maxX-n.minX,n.maxY-n.minY),t.clip(),(0,c.applyAttrsToContext)(t,this),(0,c.checkRefresh)(this,r,n),(0,c.drawChildren)(t,r,n),t.restore()):e.length&&(0,c.clearChanged)(e),(0,l.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,l.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var n=r(15);function i(t,e,r){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var r=(0,n.invert)(e);return(0,n.multiplyVec2)(r,t)}return t}([e,r,1],i);return[a[0],a[1]]}return[e,r]}function a(t,e,r){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,n.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,r),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var u=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=u.minX&&e<=u.maxX&&r>=u.minY&&r<=u.maxY}e.getShape=function t(e,r,n){if(!a(e,r,n))return null;for(var o=null,s=e.getChildren(),u=s.length-1;u>=0;u--){var l=s[u];if(l.isGroup())o=t(l,r,n);else if(a(l,r,n)){var c=l,f=i(l,r,n),h=f[0],p=f[1];c.isInShape(h,p)&&(o=l)}if(o)break}return o}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=e.Group=e.Canvas=void 0;var n=r(0),i=n.__importStar(r(109));e.Shape=i,n.__exportStar(r(15),e);var a=r(811);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return n.__importDefault(a).default}});var o=r(167);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return n.__importDefault(o).default}}),e.version="0.5.6"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(19),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 r=this.attr(),n=this.get("el");(0,a.each)(e||r,(function(t,e){"x"===e||"y"===e?n.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&n.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n.__importDefault(r(27)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(19),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 r=this.attr(),n=this.get("el");if((0,a.each)(e||r,(function(t,e){o.SVG_ATTR_MAP[e]&&n.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof r.html){var i=r.html.call(this,r);if(i instanceof Element||i instanceof HTMLDocument){for(var s=n.childNodes,u=s.length-1;u>=0;u--)n.removeChild(s[u]);n.appendChild(i)}else n.innerHTML=i}else n.innerHTML=r.html},e}(n.__importDefault(r(27)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(19),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 r=this.attr(),n=this.get("el");(0,a.each)(e||r,(function(t,e){"x"===e||"y"===e?n.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&n.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n.__importDefault(r(27)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(19),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 r=this,n=this.attr(),i=this.get("el");(0,a.each)(e||n,(function(t,e){"img"===e?r._setImage(n.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(),r=this.get("el");if((0,a.isString)(t))r.setAttribute("href",t);else if(t instanceof window.Image)e.width||(r.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(r.setAttribute("height",t.height),this.attr("height",t.height)),r.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())r.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var n=document.createElement("canvas");n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.getContext("2d").putImageData(t,0,0),e.width||(r.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(r.setAttribute("height",""+t.height),this.attr("height",t.height)),r.setAttribute("href",n.toDataURL())}},e}(n.__importDefault(r(27)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(23),o=r(2),s=r(19),u=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 r=this.attr(),n=this.get("el");(0,o.each)(e||r,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=(0,o.isObject)(e)?t.addArrow(r,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(r,s.SVG_ATTR_MAP[i]);n.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else n.removeAttribute(s.SVG_ATTR_MAP[i]);else s.SVG_ATTR_MAP[i]&&n.setAttribute(s.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,r=t.y1,n=t.x2,i=t.y2;return a.Line.length(e,r,n,i)},e.prototype.getPoint=function(t){var e=this.attr(),r=e.x1,n=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(r,n,i,o,t)},e}(n.__importDefault(r(27)).default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=n.__importDefault(r(27)),s=n.__importDefault(r(804)),u=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(),r=e.x,n=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,a.isFunction)(o)?o:s.default.get(o))?t(r,n,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={circle:function(t,e,r){return[["M",t,e],["m",-r,0],["a",r,r,0,1,0,2*r,0],["a",r,r,0,1,0,2*-r,0]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(1/3*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["z"]]},triangleDown:function(t,e,r){var n=r*Math.sin(1/3*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["Z"]]}};e.default={get:function(t){return n[t]},register:function(t,e){n[t]=e},remove:function(t){delete n[t]},getAll:function(){return n}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(19),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 r=this,n=this.attr(),i=this.get("el");(0,a.each)(e||n,(function(e,s){if("path"===s&&(0,a.isArray)(e))i.setAttribute("d",r._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var u=(0,a.isObject)(e)?t.addArrow(n,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(n,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+u+")")}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"),r=this.getTotalLength();if(0===r)return null;var n=e?e.getPointAtLength(t*r):null;return n?{x:n.x,y:n.y}:null},e}(n.__importDefault(r(27)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(19),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 r=this.attr(),n=this.get("el");(0,a.each)(e||r,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?n.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&n.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n.__importDefault(r(27)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(23),o=r(23),s=r(2),u=r(19),l=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,r,n){t.prototype.onAttrChange.call(this,e,r,n),-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 r=this.attr(),n=this.get("el");(0,s.each)(e||r,(function(t,e){"points"===e&&(0,s.isArray)(t)&&t.length>=2?n.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u.SVG_ATTR_MAP[e]&&n.setAttribute(u.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,r,n=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(n,i){t>=n[0]&&t<=n[1]&&(e=(t-n[0])/(n[1]-n[0]),r=i)})),o.Line.pointAt(n[r][0],n[r][1],n[r+1][0],n[r+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 r,n,i=0,a=[];(0,s.each)(t,(function(s,u){t[u+1]&&((r=[])[0]=i/e,n=o.Line.length(s[0],s[1],t[u+1][0],t[u+1][1]),i+=n,r[1]=i/e,a.push(r))})),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,r=[];return r.push([t[e-1][0],t[e-1][1]]),r.push([t[e][0],t[e][1]]),r},e}(n.__importDefault(r(27)).default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=n.__importDefault(r(27)),s=r(19),u=r(809),l=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 r=this,n=this.attr(),i=this.get("el"),o=!1,u=["x","y","width","height","radius"];(0,a.each)(e||n,(function(t,e){-1===u.indexOf(e)||o?-1===u.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",r._assembleRect(n)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+r+" l "+n+",0 l 0,"+i+" l"+-n+" 0 z";var s=(0,u.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)+","+r],["l "+(n-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-n)+",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=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var n=r(2),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,r=0,i=0,a=0;return(0,n.isArray)(t)?1===t.length?e=r=i=a=t[0]:2===t.length?(e=i=t[0],r=a=t[1]):3===t.length?(e=t[0],r=a=t[1],i=t[2]):(e=t[0],r=t[1],i=t[2],a=t[3]):e=r=i=a=t,{r1:e,r2:r,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],(0,n.isArray)(t)?t:(0,n.isString)(t)?(t=t.match(i),(0,n.each)(t,(function(e,r){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,n.each)(e,(function(t,r){isNaN(t)||(e[r]=+t)})),t[r]=e})),t):void 0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(2),o=r(206),s=r(84),u=r(19),l=n.__importDefault(r(27)),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 r=this,n=this.attr(),i=this.get("el");this._setFont(),(0,a.each)(e||n,(function(t,e){"text"===e?r._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(r):u.SVG_ATTR_MAP[e]&&i.setAttribute(u.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(),r=e.textBaseline,n=e.textAlign,i=(0,o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",f[r]||"alphabetic"):t.setAttribute("alignment-baseline",c[r]||"baseline"),t.setAttribute("text-anchor",h[n]||"left")},e.prototype._setText=function(t){var e=this.get("el"),r=this.attr(),n=r.x,i=r.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),u=s.length-1,l="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?l+=''+t+"":"top"===o?l+=''+t+"":"middle"===o?l+=''+t+"":"bottom"===o?l+=''+t+"":"hanging"===o&&(l+=''+t+""):l+=''+t+""})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(l.default);e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(0),a=r(15),o=r(19),s=r(166),u=r(84),l=r(33),c=n.__importStar(r(109)),f=n.__importDefault(r(167)),h=n.__importDefault(r(812)),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,r){var n=r.target||r.srcElement;if(!o.SHAPE_TO_TAGS[n.tagName]){for(var i=n.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;n=i}return this.find((function(t){return t.get("el")===n}))},e.prototype.createDom=function(){var t=(0,l.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"),r=this.get("el");if("sort"===t){var n=this.get("children");n&&n.length&&(0,l.sortDom)(this,(function(t,e){return n.indexOf(t)-n.indexOf(e)?1:0}))}else if("clear"===t){if(r){r.innerHTML="";var i=e.el;i.innerHTML="",r.appendChild(i)}}else"matrix"===t?(0,u.setTransform)(this):"clip"===t?(0,u.setClip)(this,e):"changeSize"===t&&(r.setAttribute("width",""+this.get("width")),r.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();(0,u.setClip)(this,t),e.length&&(0,s.drawChildren)(t,e)},e}(a.AbstractCanvas);e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(813)),o=n.__importDefault(r(814)),s=n.__importDefault(r(815)),u=n.__importDefault(r(816)),l=n.__importDefault(r(817)),c=r(33),f=function(){function t(t){var e=(0,c.createSVGElement)("defs"),r=(0,i.uniqueId)("defs_");e.id=r,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var r=this.children,n=null,i=0;i'})),r}var l=function(){function t(t){this.cfg={};var e=null,r=(0,n.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var r,i,o=a.exec(t),s=(0,n.mod)((0,n.toRadian)(parseFloat(o[1])),2*Math.PI),l=o[2];s>=0&&s<.5*Math.PI?(r={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s';e.innerHTML=r},t}();e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(33),a=function(){function t(t,e){this.cfg={};var r=(0,i.createSVGElement)("marker"),a=(0,n.uniqueId)("marker_");r.setAttribute("id",a);var o=(0,i.createSVGElement)("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),r.appendChild(o),r.setAttribute("overflow","visible"),r.setAttribute("orient","auto-start-reverse"),this.el=r,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 r=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),r.setAttribute("refX",""+10*Math.cos(Math.PI/6)),r.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var r=this.el,i=this.cfg.path,a=this.cfg.d;(0,n.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),r.appendChild(e),a&&r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(33),a=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,n.uniqueId)("clip_"),e.id=this.id;var r=t.cfg.el;return e.appendChild(r),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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(33),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 r=(0,i.createSVGElement)("image");e.appendChild(r);var o=(0,n.uniqueId)("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];r.setAttribute("href",s);var u=new Image;function l(){e.setAttribute("width",""+u.width),e.setAttribute("height",""+u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?l():(u.onload=l,u.src=u.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(4),a=n.__importDefault(r(168));r(819);var o=function(t){function e(e){var r=t.call(this,e)||this;r.type="area",r.shapeType="area",r.generatePoints=!0,r.startOnZero=!0;var n=e.startOnZero,i=void 0===n||n,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,u=void 0!==s&&s;return r.startOnZero=i,r.sortable=o,r.showSinglePoint=u,r}return n.__extends(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],r=[],n=0,a=t.length;nn&&(n=i),i=e[0]})));var g=this.scales[p];try{for(var v=n.__values(t),y=v.next();!y.done;y=v.next()){var m=y.value,_=this.getDrawCfg(m),x=_.x,b=_.y,M=g.scale(m[o.FIELD_ORIGIN][p]);this.drawGrayScaleBlurredCircle(x-l.x,b-c.y,r+i,M,d)}}catch(t){a={error:t}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}var P=d.getImageData(0,0,f,h);this.clearShadowCanvasCtx(),this.colorize(P),d.putImageData(P,0,0);var O=this.getImageShape();O.attr("x",l.x),O.attr("y",c.y),O.attr("width",f),O.attr("height",h),O.attr("img",d.canvas),O.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,r,n,i){var a=this.getGrayScaleBlurredCanvas();i.globalAlpha=n,i.drawImage(a,t-r,e-r)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),r=t.data,n=this.paletteCache,o=3;o0&&!(0,i.get)(r,[n,"min"])&&e.change({min:0}),o<=0&&!(0,i.get)(r,[n,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var r=t.prototype.getDrawCfg.call(this,e);return r.background=this.background,r},e}(o.default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(161),o=r(8),s=r(85),u=(0,i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return(0,s.getRectPoints)(t)}});(0,i.registerShape)("interval","rect",{draw:function(t,e){var r,i=(0,o.getStyle)(t,!1,!0),u=e,l=null==t?void 0:t.background;if(l){u=e.addGroup({name:"interval-group"});var c=(0,o.getBackgroundRectStyle)(t),f=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);u.addShape("path",{attrs:n.__assign(n.__assign({},c),{path:f}),capture:!1,zIndex:-1,name:a.BACKGROUND_SHAPE})}r=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=u.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:r}),name:"interval"});return l?u: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=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(168));r(163);var a=function(t){function e(e){var r=t.call(this,e)||this;r.type="line";var n=e.sortable,i=void 0!==n&&n;return r.sortable=i,r}return n.__extends(e,t),e}(i.default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(44));r(827);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 n.__extends(e,t),e.prototype.getDrawCfg=function(e){var r=t.prototype.getDrawCfg.call(this,e);return n.__assign(n.__assign({},r),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(81),a=r(5),o=r(164),s=r(170),u=(0,a.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return(0,o.splitPoints)(t)}});(0,n.each)(s.SHAPES,(function(t){(0,a.registerShape)("point","hollow-".concat(t),{draw:function(e,r){return(0,s.drawPoints)(this,e,r,t,!0)},getMarker:function(e){var r=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:r,fill:null}}}})})),e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(44));r(829);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 n.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var r,n=t.prototype.createShapePointsCfg.call(this,e),a=n.x,o=n.y;if(!(0,i.isArray)(a)||!(0,i.isArray)(o)){var s=this.getXScale(),u=this.getYScale(),l=.5/s.values.length,c=.5/u.values.length;s.isCategory&&u.isCategory?(a=[a-l,a-l,a+l,a+l],o=[o-c,o+c,o+c,o-c]):(0,i.isArray)(a)?(a=[(r=a)[0],r[0],r[1],r[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):(0,i.isArray)(o)&&(o=[(r=o)[0],r[1],r[1],r[0]],a=[a-l/2,a-l/2,a+l/2,a+l/2]),n.x=a,n.y=o}return n},e}(a.default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(5),o=r(8);var s=(0,a.registerShapeFactory)("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return(0,i.each)(t.x,(function(r,n){var i=t.y[n];e.push({x:r,y:i})})),e}});(0,a.registerShape)("polygon","polygon",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var r=(0,o.getStyle)(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],r=1,n=[["M",e.x,e.y]];r2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===l?r=function(t,e,r){var n=(0,s.getQPath)(e,r),i=[["M",t.x,t.y]];return i.push(n),i}(u[0],u[1],c):(a.fill=a.stroke,r=function(t,e){var r=(0,s.getQPath)(t[1],e),n=(0,s.getQPath)(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(n),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(r),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(u,c)),r=this.parsePath(r),e.addShape("path",{attrs:n.__assign(n.__assign({},a),{path:r})})}if("normal"===l)return u=this.parsePoints(u),r=(0,i.getArcPath)((u[1].x+u[0].x)/2,u[0].y,Math.abs(u[1].x-u[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:n.__assign(n.__assign({},a),{path:r})});var f=(0,s.getCPath)(u[1],u[3]),h=(0,s.getCPath)(u[2],u[0]);return r=[["M",u[0].x,u[0].y],["L",u[1].x,u[1].y],f,["L",u[3].x,u[3].y],["L",u[2].x,u[2].y],h,["Z"]],r=this.parsePath(r),a.fill=a.stroke,e.addShape("path",{attrs:n.__assign(n.__assign({},a),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(8),o=r(333);(0,i.registerShape)("edge","smooth",{draw:function(t,e){var r=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var r=(0,o.getCPath)(t,e),n=[["M",t.x,t.y]];return n.push(r),n}(i[0],i[1]));return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(5),o=r(8);(0,a.registerShape)("edge","vhv",{draw:function(t,e){var r=(0,o.getStyle)(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var r=[];r.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),r.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),r.push(e);var n=[["M",t.x,t.y]];return(0,i.each)(r,(function(t){n.push(["L",t.x,t.y])})),n}(a[0],a[1]));return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(8),o=r(85);(0,i.registerShape)("interval","funnel",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var r=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(161),o=r(8),s=r(85);(0,i.registerShape)("interval","hollow-rect",{draw:function(t,e){var r=(0,o.getStyle)(t,!0,!1),i=e,u=null==t?void 0:t.background;if(u){i=e.addGroup();var l=(0,o.getBackgroundRectStyle)(t),c=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:n.__assign(n.__assign({},l),{path:c}),capture:!1,zIndex:-1,name:a.BACKGROUND_SHAPE})}var f=this.parsePath((0,s.getRectPath)(t.points)),h=i.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:f}),name:"interval"});return u?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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(5),o=r(8),s=r(85),u=r(31);(0,a.registerShape)("interval","line",{getPoints:function(t){return r=(e=t).x,n=e.y,a=e.y0,(0,i.isArray)(n)?n.map((function(t,e){return{x:(0,i.isArray)(r)?r[e]:r,y:t}})):[{x:r,y:a},{x:r,y:n}];var e,r,n,a},draw:function(t,e){var r=(0,o.getStyle)(t,!0,!1,"lineWidth"),i=(0,u.omit)(n.__assign({},r),["fill"]),a=this.parsePath((0,s.getRectPath)(t.points,!1));return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,r){return[["M",t,e-r],["L",t,e+r]]},style:{r:5,stroke:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(8),o=r(85);(0,i.registerShape)("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var r=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(5),o=r(8);(0,a.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,r,a,o=t.x,s=t.y,u=t.y0,l=t.size;(0,i.isArray)(s)?(r=(e=n.__read(s,2))[0],a=e[1]):(r=u,a=s);var c=o+l/2,f=o-l/2;return[{x:o,y:r},{x:o,y:a},{x:f,y:r},{x:c,y:r},{x:f,y:a},{x:c,y:a}]}(t)},draw:function(t,e){var r,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(r=t.points)[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],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y]]);return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,r){return[["M",t-r/2,e-r],["L",t+r/2,e-r],["M",t,e-r],["L",t,e+r],["M",t-r/2,e+r],["L",t+r/2,e+r]]},style:{r:5,stroke:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(5),o=r(55),s=r(8),u=r(325);function l(t,e){var r=(0,o.getPathPoints)(t.points,t.connectNulls,t.showSinglePoint),a=[];return(0,i.each)(r,(function(t){var r=function(t,e){var r=[];return(0,i.each)(t,(function(n,i){var a=t[i+1];if(r.push(n),a){var o=function(t,e,r){var n,i=t.x,a=t.y,o=e.x,s=e.y;switch(r){case"hv":n=[{x:o,y:a}];break;case"vh":n=[{x:i,y:s}];break;case"hvh":var u=(o+i)/2;n=[{x:u,y:a},{x:u,y:s}];break;case"vhv":var l=(a+s)/2;n=[{x:i,y:l},{x:o,y:l}]}return n}(n,a,e);r=r.concat(o)}})),r}(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]}))}(r))})),n.__assign(n.__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,r){var n=l(e,t);return r.addShape({type:"path",attrs:n,name:"line"})},getMarker:function(e){return(0,u.getLineMarker)(e,t)}})}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(81),a=r(5),o=r(170);(0,n.each)(o.HOLLOW_SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,r){return(0,o.drawPoints)(this,e,r,t,!0)},getMarker:function(e){var r=e.color;return{symbol:i.MarkerSymbols[t],style:{r:4.5,stroke:r,fill:null}}}})}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(8);(0,i.registerShape)("point","image",{draw:function(t,e){var r,i,o=(0,a.getStyle)(t,!1,!1,"r").r,s=this.parsePoints(t.points),u=s[0];if(t.isStack)u=s[1];else if(s.length>1){var l=e.addGroup();try{for(var c=n.__values(s),f=c.next();!f.done;f=c.next()){var h=f.value;l.addShape("image",{attrs:{x:h.x-o/2,y:h.y-o,width:o,height:o,img:t.shape[1]}})}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return l}return e.addShape("image",{attrs:{x:u.x-o/2,y:u.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(81),a=r(5),o=r(170);(0,n.each)(o.SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,r){return(0,o.drawPoints)(this,e,r,t,!1)},getMarker:function(e){var r=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,fill:r}}}})}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(5),o=r(8);function s(t){var e=(0,i.isArray)(t)?t:[t],r=e[0],n=e[e.length-1],a=e.length>1?e[1]:r;return{min:r,max:n,min1:a,max1:e.length>3?e[3]:n,median:e.length>2?e[2]:a}}function u(t,e,r){var n,a=r/2;if((0,i.isArray)(e)){var o=s(e),u=o.min,l=o.max,c=o.median,f=o.min1,h=t-a,p=t+a;n=[[h,l],[p,l],[t,l],[t,d=o.max1],[h,f],[h,d],[p,d],[p,f],[t,f],[t,u],[h,u],[p,u],[h,c],[p,c]]}else{e=(0,i.isNil)(e)?.5:e;var d,g=s(t),v=(u=g.min,l=g.max,c=g.median,e-a),y=e+a;n=[[u,v],[u,y],[u,e],[f=g.min1,e],[f,v],[f,y],[d=g.max1,y],[d,v],[d,e],[l,e],[l,v],[l,y],[c,v],[c,y]]}return n.map((function(t){return{x:t[0],y:t[1]}}))}(0,a.registerShape)("schema","box",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var r,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(r=t.points)[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],["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,r[10].y],["L",r[11].x,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]);return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,r){var n=u(t,[e-6,e-3,e,e+3,e+6],r);return[["M",n[0].x+1,n[0].y],["L",n[1].x-1,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+1,n[10].y],["L",n[11].x-1,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(31),o=r(5),s=r(8);function u(t,e,r){var n,o,s=(n=e,o=((0,i.isArray)(n)?n:[n]).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-r/2,y:s[2]},{x:t-r/2,y:s[1]},{x:t+r/2,y:s[1]},{x:t+r/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}(0,o.registerShape)("schema","candle",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var r,i=(0,s.getStyle)(t,!0,!0),a=this.parsePath([["M",(r=t.points)[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]]);return e.addShape("path",{attrs:n.__assign(n.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,r){var n=u(t,[e+7.5,e+3,e-3,e-7.5],r);return[["M",n[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]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(5),o=r(8);function s(t,e){var r=Math.abs(t[0].x-t[2].x),n=Math.abs(t[0].y-t[2].y),a=Math.min(r,n);return e&&(a=(0,i.clamp)(e,0,Math.min(r,n))),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 r=(0,o.getStyle)(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:n.__assign(n.__assign({},r),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(55),o=r(8);(0,i.registerShape)("violin","smooth",{draw:function(t,e){var r=(0,o.getStyle)(t,!0,!0),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(5),a=r(55),o=r(8);(0,i.registerShape)("violin","hollow",{draw:function(t,e){var r=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getViolinPath)(t.points));return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{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 r=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:n.__assign(n.__assign({},r),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__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,r,i,a){var o,s=t.prototype.getLabelOffsetPoint.call(this,e,r,i),u=this.getCoordinate(),l=u.isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return s=n.__assign(n.__assign({},s),((o={})[l]=s[l]*c,o)),u.isReflect("x")&&(s=n.__assign(n.__assign({},s),{x:-1*s.x})),u.isReflect("y")&&(s=n.__assign(n.__assign({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,r=this.getDefaultLabelCfg(),n=e.theme;return(0,i.deepMix)({},r,n.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,r,n){var a,o,s,u,l=this.getCoordinate(),c=l.isTransposed,f=e.points,h=l.convert(f[0]),p=l.convert(f[2]),d=this.getLabelValueDir(e),g=(0,i.isArray)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=(0,i.get)(e,"nextPoints"),y=(0,i.get)(e,"points");if(v){var m=l.convert(y[0]),_=l.convert(y[1]),x=l.convert(v[0]),b=l.convert(v[1]);c?(a=Math.min(x.y,m.y),s=Math.max(x.y,m.y),o=(_.x+b.x)/2,u=(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,u=m.x)}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,u=h.x}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,u=h.x;switch(n){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=u,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"bottom":c&&(t.x=(o+u)/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+u)/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+u)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top")}},e}(n.__importDefault(r(106)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(16),o=r(14),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return n.__extends(e,t),e.prototype.getDefaultLabelCfg=function(e,r){var n=t.prototype.getDefaultLabelCfg.call(this,e,r);return(0,i.deepMix)({},n,(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,r){var n;return e<0&&((n=t)>Math.PI/2&&(n-=Math.PI),n<-Math.PI/2&&(n+=Math.PI)),n},e.prototype.getLabelAlign=function(t){var e,r=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=r.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,r=this.getCoordinate(),n={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)(r,n);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var u=(0,a.getAngleByPoint)(r,o);s>=u&&(u+=2*Math.PI),e=s+(u-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var r=this.getCoordinate(),i=r.getCenter(),a=r.getRadius()+e;return n.__assign(n.__assign({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}(n.__importDefault(r(334)).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var n=r(0),i=r(2),a=r(14);e.distribute=function(t,e,r,o){if(t.length&&e.length){var s=t[0]?t[0].offset:0,u=e[0].get("coordinate"),l=u.getRadius(),c=u.getCenter();if(s>0){var f=2*(l+s)+28,h={start:u.start,end:u.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,r){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,r,a,o,s){var u,l,c,f=!0,h=a.start,p=a.end,d=Math.min(h.y,p.y),g=Math.abs(h.y-p.y),v=0,y=Number.MIN_VALUE,m=e.map((function(t){return t.y>v&&(v=t.y),t.yg&&(g=v-d);f;)for(m.forEach((function(t){var e=(Math.min.apply(y,t.targets)+Math.max.apply(y,t.targets))/2;t.pos=Math.min(Math.max(y,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 n=d+r/2;t.targets.forEach((function(){e[c].y=t.pos+n,n+=r,c++}))}));var b={};try{for(var M=n.__values(t),P=M.next();!P.done;P=M.next()){var O=P.value;b[O.get("id")]=O}}catch(t){u={error:t}}finally{try{P&&!P.done&&(l=M.return)&&l.call(M)}finally{if(u)throw u.error}}e.forEach((function(t){var e=t.r*t.r,r=Math.pow(Math.abs(t.y-o.y),2);if(er&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e+1>r&&(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 r="right"===e,n=d[t.id].getChildByIndex(0);if(n){var o=p+_,s=t.y-h.y,u=Math.pow(o,2),l=Math.pow(s,2),c=u-l>0?u-l:0,g=Math.sqrt(c),v=Math.abs(Math.cos(t.angle)*o);t.x=r?h.x+Math.max(g,v):h.x-Math.max(g,v)}n&&(n.attr("y",t.y),n.attr("x",t.x)),function(t,e){var r=e.getCenter(),n=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,u=(0,a.polarToCartesian)(r.x,r.y,n,o),l=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:l-4*Math.cos(o),y:c-4*Math.sin(o)},h=t.labelLine.smooth,p=[],d=f.x-r.x,g=f.y-r.y,v=Math.atan(g/d);if(d<0&&(v+=Math.PI),!1===h){(0,i.isObject)(t.labelLine)||(t.labelLine={});var y=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&f.y>u.y&&(y=1),o>=0&&ou.y&&(y=1),o>=Math.PI/2&&of.y&&(y=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&u.y>f.y&&(y=1);var m=s/2>4?4:Math.max(s/2-1,0),_=(0,a.polarToCartesian)(r.x,r.y,n+m,o),x=(0,a.polarToCartesian)(r.x,r.y,n+s/2,v);p.push("M ".concat(u.x," ").concat(u.y)),p.push("L ".concat(_.x," ").concat(_.y)),p.push("A ".concat(r.x," ").concat(r.y," 0 ").concat(0," ").concat(y," ").concat(x.x," ").concat(x.y)),p.push("L ".concat(f.x," ").concat(f.y))}else{_=(0,a.polarToCartesian)(r.x,r.y,n+(s/2>4?4:Math.max(s/2-1,0)),o);var b=u.xMath.pow(Math.E,-16)&&p.push.apply(p,["C",f.x+4*b,f.y,2*_.x-u.x,2*_.y-u.y,u.x,u.y]),p.push("L ".concat(u.x," ").concat(u.y))}t.labelLine.path=p.join(" ")}}(t,f)}))}))}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var n=r(0),i=r(2),a=r(14),o=r(335),s=r(68);e.pieSpiderLabelLayout=function(t,e,r,u){var l,c,f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=n.__values(e),v=g.next();!v.done;v=g.next()){var y=v.value;d[y.get("id")]=y}}catch(t){l={error:t}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(l)throw l.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,r=(0,i.isNil)(t.offsetX)?4:t.offsetX,n=(0,a.polarToCartesian)(h.x,h.y,p+4,t.angle),o=_+r;t.x=h.x+(e?1:-1)*(p+o),t.y=n.y}}));var x=f.start,b=f.end,M=(0,i.groupBy)(t,(function(t){return t.xP&&(P=Math.min(e,Math.abs(x.y-b.y)))}));var O={minX:x.x,maxX:b.x,minY:h.y-P/2,maxY:h.y+P/2};(0,i.each)(M,(function(t,e){var r=P/m;t.length>r&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e>r&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,O)}));var S=O.minY,C=O.maxY;(0,i.each)(M,(function(t,e){var r="right"===e;(0,i.each)(t,(function(t){var e=(0,i.get)(d,t&&[t.id]);if(e)if(t.yC)e.set("visible",!1);else{var n=e.getChildByIndex(0),o=n.getCanvasBBox(),u=r?o.x:o.maxX,l=o.y+o.height/2;(0,s.translate)(n,t.x-u,t.y-l),t.labelLine&&function(t,e,r){var n,o=e.getCenter(),s=e.getRadius(),u={x:t.x-(r?4:-4),y:t.y},l=(0,a.polarToCartesian)(o.x,o.y,s+4,t.angle),c={x:u.x,y:u.y},f={x:l.x,y:l.y},h=(0,a.polarToCartesian)(o.x,o.y,s,t.angle);if(u.y!==l.y){var p=r?4:-4;c.y=u.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(l.x,u.x-p),u.y0&&t.anglel.y?f.y=c.y:(f.y=l.y,f.x=Math.max(f.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(l.x,u.x-p),u.y>l.y?f.y=c.y:(f.y=l.y,f.x=Math.min(f.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(l.x,u.x-p),u.yn?v=n-d:c>n&&(v-=c-n),l>o?y=o-g:f>o&&(y-=f-o),v===h&&y===p||(0,i.translate)(t,v-h,y-p)}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var n=r(2);e.limitInShape=function(t,e,r,i){(0,n.each)(e,(function(t,e){var n=t.getCanvasBBox(),i=r[e].getBBox();(n.minXi.maxX||n.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var n=r(2),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,r=void 0===e?1:e,n=t.yGap,i=void 0===n?8:n;this.xGap=r,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,r=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=n;s<=i;s+=1)if(r[s]){if(s===n||s===i){for(var u=a;u<=o;u++)if(r[s][u]){e=!1;break}}else if(r[s][a]||r[s][o]){e=!1;break}}else r[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,r=Math.round(t.minX),n=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=r;o<=n;o+=1)e[o]||(e[o]={});for(o=r;o<=n;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[r][o]=!0,e[n][o]=!0;if(1!==this.xGap)for(o=r;o<=n;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,r,n){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:r,textAlign:"center"};switch(n){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,r,a){var o=new i;(0,n.each)(e,(function(t){(function(t,e,r){void 0===r&&(r=100);var n,i=t.attr(),a=i.x,o=i.y,s=t.getCanvasBBox(),u=Math.sqrt(s.width*s.width+s.height*s.height),l=1,c=0,f=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var h,p,d=!1,g=0,v={};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,r){void 0===e&&(e=0),void 0===r&&(r={x:0,y:0});var n=t.x,i=t.y;return{x:(n-r.x)*Math.cos(-e)+(i-r.y)*Math.sin(-e)+r.x,y:(r.x-n)*Math.sin(-e)+(i-r.y)*Math.cos(-e)+r.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}],r=t.rotation;return r?[a(e[0],r,e[0]),a(e[1],r,e[0]),a(e[2],r,e[0]),a(e[3],r,e[0])]:e}function s(t,e){if(t.length>4)return{min:0,max:0};var r=[];return t.forEach((function(t){var n,i;r.push((n=[t.x,t.y],i=e,(n[0]||0)*(i[0]||0)+(n[1]||0)*(i[1]||0)+(n[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,n.__spreadArray([],n.__read(r),!1)),max:Math.max.apply(Math,n.__spreadArray([],n.__read(r),!1))}}function u(t,e){return t.max>e.min&&t.mint.x+t.width+r||e.x+e.widtht.y+t.height+r||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,r){void 0===e&&(e=0),void 0===r&&(r={x:0,y:0});var n=t.x,i=t.y;return{x:(n-r.x)*Math.cos(-e)+(i-r.y)*Math.sin(-e)+r.x,y:(r.x-n)*Math.sin(-e)+(i-r.y)*Math.cos(-e)+r.y}}function r(t){var r=[{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?[e(r[0],n,r[0]),e(r[1],n,r[0]),e(r[2],n,r[0]),e(r[3],n,r[0])]:r}function n(t,e){if(t.length>4)return{min:0,max:0};var r=[];return t.forEach((function(t){var n,i;r.push((n=[t.x,t.y],i=e,(n[0]||0)*(i[0]||0)+(n[1]||0)*(i[1]||0)+(n[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,r),max:Math.max.apply(null,r)}}function i(t,e){return t.max>e.min&&t.mint.x+t.width+r||e.x+e.widtht.y+t.height+r||e.y+e.height=s.height:u.width>=s.width}(t,e,o)}))}e.intervalAdjustPosition=function(t,e,r){var o;if(0!==r.length){var s=null===(o=r[0])||void 0===o?void 0:o.get("element"),u=null==s?void 0:s.geometry;if(u&&"interval"===u.type)a(u,e,r)&&r.forEach((function(t,r){var a=e[r];!function(t,e,r){var a=t.coordinate,o=n.BBox.fromObject(r.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"})}(u,a,t)}))}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var n=r(0),i=r(2),a=r(67);e.intervalHideOverlap=function(t,e,r){var o;if(0!==r.length){var s=null===(o=r[0])||void 0===o?void 0:o.get("element"),u=null==s?void 0:s.geometry;if(u&&"interval"===u.type){var l,c=function(t){var e=[],r=Math.max(Math.floor(t.length/500),1);return(0,i.each)(t,(function(t,n){n%r==0?e.push(t):t.set("visible",!1)})),e}(e),f=n.__read(u.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 v=function(t){t&&(t.length&&p.push(t.pop()),p.push.apply(p,n.__spreadArray([],n.__read(t),!1)))};for((0,i.size)(g)>0&&(l=g.shift(),v(d[l])),(0,i.size)(g)>0&&(l=g.pop(),v(d[l])),(0,i.each)(g.reverse(),(function(t){v(d[t])}));p.length>0;){var y=p.shift();y.get("visible")&&((0,a.checkShapeOverlap)(y,h)?y.set("visible",!1):h.push(y))}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var n=r(0),i=r(2),a=r(67);function o(t,e,r){return t.some((function(t){return r(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var r,n,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return r=o.getCanvasBBox(),n=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(r.x+r.width+i,n.x+n.width+i)-Math.max(r.x-i,n.x-i))*Math.max(0,Math.min(r.y+r.height+i,n.y+n.height+i)-Math.max(r.y-i,n.y-i))>0}))}e.pointAdjustPosition=function(t,e,r,u,l){var c,f;if(0!==r.length){var h=null===(c=r[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&"point"===p.type){var d=n.__read(p.getXYFields(),2),g=d[0],v=d[1],y=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=l&&l.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(y).reverse(),(function(t){for(var e=function(t,e){var r=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[r]-t.get("data")[r]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,n.__spreadArray([],n.__read(a),!1)),i}(p,y[t]);e.length;){var r=e.shift(),i=(0,a.findLabelTextShape)(r);if(o(m,r,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[v]===e.get("data")[v]})))i.set("visible",!1);else{var u=!1;s(m,r)&&(i.attr("y",i.attr("y")+2*_),u=s(m,r)),u?i.set("visible",!1):m.push(r)}}}))}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var n=r(0),i=r(2),a=r(67);function o(t,e,r){return t.some((function(t){return r(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var r,n,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return r=o.getCanvasBBox(),n=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(r.x+r.width+i,n.x+n.width+i)-Math.max(r.x-i,n.x-i))*Math.max(0,Math.min(r.y+r.height+i,n.y+n.height+i)-Math.max(r.y-i,n.y-i))>0}))}e.pathAdjustPosition=function(t,e,r,u,l){var c,f;if(0!==r.length){var h=null===(c=r[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=n.__read(p.getXYFields(),2),g=d[0],v=d[1],y=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=l&&l.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(y).reverse(),(function(t){for(var e=function(t,e){var r=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[r]-t.get("data")[r]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,n.__spreadArray([],n.__read(a),!1)),i}(p,y[t]);e.length;){var r=e.shift(),i=(0,a.findLabelTextShape)(r);if(o(m,r,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[v]===e.get("data")[v]})))i.set("visible",!1);else{var u=!1;s(m,r)&&(i.attr("y",i.attr("y")+2*_),u=s(m,r)),u?i.set("visible",!1):m.push(r)}}}))}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var n=r(2),i=r(16),a=r(873),o=r(68);e.limitInPlot=function(t,e,r,s,u){if(!(e.length<=0)){var l=(null==u?void 0:u.direction)||["top","right","bottom","left"],c=(null==u?void 0:u.action)||"translate",f=(null==u?void 0:u.margin)||0,h=e[0].get("coordinate");if(h){var p=(0,i.getCoordinateBBox)(h,f),d=p.minX,g=p.minY,v=p.maxX,y=p.maxY;(0,n.each)(e,(function(t){var e=t.getCanvasBBox(),r=e.minX,i=e.minY,s=e.maxX,u=e.maxY,f=e.x,h=e.y,p=e.width,m=e.height,_=f,x=h;if(l.indexOf("left")>=0&&(r=0&&(i=0&&(r>v?_=v-p:s>v&&(_-=s-v)),l.indexOf("bottom")>=0&&(i>y?x=y-m:u>y&&(x-=u-y)),_!==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,n.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),r=t.getCanvasBBox(),i=(0,a.getEllipsisText)(t.attr("text"),r.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var n=r(0),i=r(2),a=r(874);e.measureTextWidth=(0,i.memoize)((function(t,e){void 0===e&&(e={});var r=e.fontSize,n=e.fontFamily,o=e.fontWeight,s=e.fontStyle,u=e.fontVariant,l=(0,a.getCanvasContext)();return l.font=[s,u,o,"".concat(r,"px"),n].join(" "),l.measureText((0,i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),n.__spreadArray([t],n.__read((0,i.values)(e)),!1).join("")}));e.getEllipsisText=function(t,r,n){var a,o=(0,e.measureTextWidth)("...",n);a=(0,i.isString)(t)?t:(0,i.toString)(t);var s,u,l=r,c=[];if((0,e.measureTextWidth)(t,n)<=r)return t;for(;s=a.substr(0,16),!((u=(0,e.measureTextWidth)(s,n))+o>l&&u>l);)if(c.push(s),l-=u,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((u=(0,e.measureTextWidth)(s,n))+o>l);)if(c.push(s),l-=u,!(a=a.substr(1)))return c.join("");return"".concat(c.join(""),"...")}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return n||(n=document.createElement("canvas").getContext("2d")),n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOut=e.fadeIn=void 0;var n=r(2);e.fadeIn=function(t,e,r){var i={fillOpacity:(0,n.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,n.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,n.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,r){var n=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,n,(function(){t.remove(!0)}),a)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var n=r(877);e.growInX=function(t,e,r){var i=r.coordinate,a=r.minYPoint;(0,n.doScaleAnimate)(t,e,i,a,"x")},e.growInY=function(t,e,r){var i=r.coordinate,a=r.minYPoint;(0,n.doScaleAnimate)(t,e,i,a,"y")},e.growInXY=function(t,e,r){var i=r.coordinate,a=r.minYPoint;(0,n.doScaleAnimate)(t,e,i,a,"xy")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var n=r(0),i=r(17);function a(t,e,r){var a,o=n.__read(e,2),s=o[0],u=o[1];return t.applyToMatrix([s,u,1]),"x"===r?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",.01,1],["t",s,u]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",100,1],["t",s,u]])):"y"===r?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",1,.01],["t",s,u]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",1,100],["t",s,u]])):"xy"===r&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",.01,.01],["t",s,u]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",100,100],["t",s,u]])),a}e.transformShape=a,e.doScaleAnimate=function(t,e,r,n,i){var o,s,u=r.start,l=r.end,c=r.getWidth(),f=r.getHeight();"y"===i?(o=u.x+c/2,s=n.yu.x?n.x:u.x,s=u.y+f/2):"xy"===i&&(r.isPolar?(o=r.getCenter().x,s=r.getCenter().y):(o=(u.x+l.x)/2,s=(u.y+l.y)/2));var h=a(t,[o,s],i);t.animate({matrix:h},e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathIn=void 0,e.pathIn=function(t,e,r){var n=t.getTotalLength();t.attr("lineDash",[n]),t.animate((function(t){return{lineDashOffset:(1-t)*n}}),e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,r){var n=r.toAttrs,i=n.x,a=n.y;delete n.x,delete n.y,t.attr(n),t.animate({x:i,y:a},e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleInY=e.scaleInX=void 0;var n=r(17);e.scaleInX=function(t,e,r){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 u=n.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(u),t.animate({matrix:n.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,r){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,u=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,u,1]);var l=n.ext.transform(t.getMatrix(),[["t",-o,-u],["s",1,.01],["t",o,u]]);t.setMatrix(l),t.animate({matrix:n.ext.transform(t.getMatrix(),[["t",-o,-u],["s",1,100],["t",o,u]])},e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=e.getArcInfo=void 0;var n=r(0),i=r(326),a=r(2),o=r(14);function s(t,e){var r,o=(0,i.getArcParams)(t,e),s=o.startAngle,u=o.endAngle;return!(0,a.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),!(0,a.isNumberEqual)(u,.5*-Math.PI)&&u<.5*-Math.PI&&(u+=2*Math.PI),0===e[5]&&(s=(r=n.__read([u,s],2))[0],u=r[1]),(0,a.isNumberEqual)(s,1.5*Math.PI)&&(s=-.5*Math.PI),(0,a.isNumberEqual)(u,-.5*Math.PI)&&!(0,a.isNumberEqual)(s,u)&&(u=1.5*Math.PI),{startAngle:s,endAngle:u}}function u(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 l(t){var e,r,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 l=o[0],c=o.length>1?o[1]:o[0],f=t.indexOf(l),h=t.indexOf(c),p=u(t[f-1]),d=u(t[h-1]),g=s(p,l),v=g.startAngle,y=g.endAngle,m=s(d,c),_=m.startAngle,x=m.endAngle;(0,a.isNumberEqual)(v,_)&&(0,a.isNumberEqual)(y,x)?(r=v,i=y):(r=Math.min(v,_),i=Math.max(y,x));var b=l[1],M=o[o.length-1][1];return b=0;s--){var u=this.getFacetsByLevel(t,s);try{for(var l=(e=void 0,n.__values(u)),c=l.next();!c.done;c=l.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&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var r=[];return t.forEach((function(t){t.rowIndex===e&&r.push(t)})),r},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,r){var n=this,i=this.cfg.fields;if(!(i.length=r){var i=n.parsePosition([t[u],t[s.field]]);i&&h.push(i)}if(t[u]===f)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,r=parseFloat(t[1])/100,n=this.view.getCoordinate(),i=n.start,a=n.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:n.getWidth()*e+o,y:n.getHeight()*r+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,r=t.end,n=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,r.x),y:Math.min(e.y,r.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+n,maxY:a.y+i,width:n,height:i}},e.prototype.getAnnotationCfg=function(t,e,r){var a=this,s=this.view.getCoordinate(),l=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),v=this.parsePosition(p);if(!(!["arc","image","line","region","regionFilter"].includes(t)||d&&g))return null;if(["text","dataMarker","html"].includes(t)&&!v)return null;if("arc"===t){var y=e,m=(y.start,y.end,n.__rest(y,["start","end"])),_=(0,u.getAngleByPoint)(s,d),x=(0,u.getAngleByPoint)(s,g);_>x&&(x=2*Math.PI+x),c=n.__assign(n.__assign({},m),{center:s.getCenter(),radius:(0,u.getDistanceToCenter)(s,d),startAngle:_,endAngle:x})}else if("image"===t){var b=e;b.start,b.end,m=n.__rest(b,["start","end"]);c=n.__assign(n.__assign({},m),{start:d,end:g,src:e.src})}else if("line"===t){var M=e;M.start,M.end,m=n.__rest(M,["start","end"]);c=n.__assign(n.__assign({},m),{start:d,end:g,text:(0,i.get)(e,"text",null)})}else if("region"===t){var P=e;P.start,P.end,m=n.__rest(P,["start","end"]);c=n.__assign(n.__assign({},m),{start:d,end:g})}else if("text"===t){var O=this.view.getData(),S=e,C=(S.position,S.content),w=(m=n.__rest(S,["position","content"]),C);(0,i.isFunction)(C)&&(w=C(O)),c=n.__assign(n.__assign(n.__assign({},v),m),{content:w})}else if("dataMarker"===t){var A=e,T=(A.position,A.point),E=A.line,I=A.text,D=A.autoAdjust,L=A.direction;m=n.__rest(A,["position","point","line","text","autoAdjust","direction"]);c=n.__assign(n.__assign(n.__assign({},m),v),{coordinateBBox:this.getCoordinateBBox(),point:T,line:E,text:I,autoAdjust:D,direction:L})}else if("dataRegion"===t){var j=e,k=j.start,B=j.end,R=j.region,F=(I=j.text,j.lineLength);m=n.__rest(j,["start","end","region","text","lineLength"]);c=n.__assign(n.__assign({},m),{points:this.getRegionPoints(k,B),region:R,text:I,lineLength:F})}else if("regionFilter"===t){var N=e,Y=(N.start,N.end,N.apply),G=N.color,V=(m=n.__rest(N,["start","end","apply","color"]),this.view.geometries),H=[],X=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):H.push(e))};(0,i.each)(V,(function(t){Y?(0,i.contains)(Y,t.type)&&(0,i.each)(t.elements,(function(t){X(t.shape)})):(0,i.each)(t.elements,(function(t){X(t.shape)}))})),c=n.__assign(n.__assign({},m),{color:G,shapes:H,start:d,end:g})}else if("shape"===t){var z=e,q=z.render,W=n.__rest(z,["render"]);c=n.__assign(n.__assign({},W),{render:function(t){if((0,i.isFunction)(e.render))return q(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var U=e,Z=U.html;U.position,W=n.__rest(U,["html","position"]);c=n.__assign(n.__assign(n.__assign({},W),v),{parent:l.get("el").parentNode,html:function(t){return(0,i.isFunction)(Z)?Z(t,a.view):Z}})}var Q=(0,i.deepMix)({},r,n.__assign(n.__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 r=t.type,a=this.getAnnotationTheme(r),o=this.getAnnotationCfg(r,t,a);o&&(0,l.omit)(o,["container"]),e.component.update(n.__assign(n.__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,r=new Map(this.cache);return t.forEach((function(t,e){r.set(e,t)})),r.forEach((function(t,n){(0,i.find)(e.option,(function(t){return n===e.getCacheKey(t)}))||(t.component.destroy(),r.delete(n))})),r},e.prototype.getCacheKey=function(t){return t},e}(f.Controller);e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedValue=void 0;var n=r(892);e.getNormalizedValue=function(t,e){if(!e)return null;var r;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":r=e.isCategory?(0,n.getMedian)(e.values.map((function(t,e){return e}))):(0,n.getMedian)(e.values);break;case"mean":r=e.isCategory?(e.values.length-1)/2:(0,n.getMean)(e.values);break;case"min":r=e.isCategory?0:e[t];break;case"max":r=e.isCategory?e.values.length-1:e[t];break;default:r=t}return e.scale(r)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMean=e.getMedian=void 0;var n=r(0),i=r(2);e.getMedian=function(t){var e=n.__spreadArray([],n.__read(t),!1);e.sort((function(t,e){return t-e}));var r=e.length;return 0===r?0:r%2==1?e[(r-1)/2]:(e[r/2]+e[r/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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(4),o=r(22),s=r(47),u=r(117),l=r(117),c=r(894),f=r(31),h=r(54),p=["container"],d=n.__assign(n.__assign({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var r=t.call(this,e)||this;return r.cache=new Map,r.gridContainer=r.view.getLayer(a.LAYER.BG).addGroup(),r.gridForeContainer=r.view.getLayer(a.LAYER.FORE).addGroup(),r.axisContainer=r.view.getLayer(a.LAYER.BG).addGroup(),r.axisForeContainer=r.view.getLayer(a.LAYER.FORE).addGroup(),r}return n.__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(r){var n,i=r.component,o=r.direction,s=r.type,l=r.extra,f=l.dim,h=l.scale,p=l.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===f?n=e.isTransposed?(0,u.getAxisRegion)(e,o):(0,u.getCircleAxisCenterRadius)(e):"y"===f&&(n=e.isTransposed?(0,u.getCircleAxisCenterRadius)(e):(0,u.getAxisRegion)(e,o)):n=(0,u.getAxisRegion)(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){n={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 n={items:(0,c.getLineGridItems)(e,h,f,p)};i.update(n)}))},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(r,n){t.has(n)?e.set(n,r):r.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 r=(0,l.getAxisOption)(this.option,e.field);if(!1!==r){var n=(0,u.getAxisDirection)(r,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,r,n);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else g=this.createLineAxis(e,r,o,n,"x"),this.cache.set(c,g),t.set(c,g);if(v=this.cache.get(h)){d=this.getLineGridCfg(e,r,n,"x");(0,f.omit)(d,p),v.component.update(d),t.set(h,v)}else(v=this.createLineGrid(e,r,o,n,"x"))&&(this.cache.set(h,v),t.set(h,v))}else if(s.isPolar){var g,v;if(g=this.cache.get(c)){d=s.isTransposed?this.getLineAxisCfg(e,r,a.DIRECTION.RADIUS):this.getCircleAxisCfg(e,r,n);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else{if(s.isTransposed){if((0,i.isUndefined)(r))return;g=this.createLineAxis(e,r,o,a.DIRECTION.RADIUS,"x")}else g=this.createCircleAxis(e,r,o,n,"x");this.cache.set(c,g),t.set(c,g)}if(v=this.cache.get(h)){d=s.isTransposed?this.getCircleGridCfg(e,r,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,r,a.DIRECTION.CIRCLE,"x");(0,f.omit)(d,p),v.component.update(d),t.set(h,v)}else{if(s.isTransposed){if((0,i.isUndefined)(r))return;v=this.createCircleGrid(e,r,o,a.DIRECTION.RADIUS,"x")}else v=this.createLineGrid(e,r,o,a.DIRECTION.CIRCLE,"x");v&&(this.cache.set(h,v),t.set(h,v))}}}}},e.prototype.updateYAxes=function(t){var e=this,r=this.view.getYScales();(0,i.each)(r,(function(r,n){if(r&&!r.isIdentity){var o=r.field,s=(0,l.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 v=(0,u.getAxisDirection)(s,0===n?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(h)){var y=e.getLineAxisCfg(r,s,v);(0,f.omit)(y,p),m.component.update(y),t.set(h,m)}else m=e.createLineAxis(r,s,c,v,"y"),e.cache.set(h,m),t.set(h,m);if(_=e.cache.get(d)){y=e.getLineGridCfg(r,s,v,"y");(0,f.omit)(y,p),_.component.update(y),t.set(d,_)}else(_=e.createLineGrid(r,s,c,v,"y"))&&(e.cache.set(d,_),t.set(d,_))}else if(g.isPolar){var m,_;if(m=e.cache.get(h)){y=g.isTransposed?e.getCircleAxisCfg(r,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(r,s,a.DIRECTION.RADIUS);(0,f.omit)(y,p),m.component.update(y),t.set(h,m)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;m=e.createCircleAxis(r,s,c,a.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(r,s,c,a.DIRECTION.RADIUS,"y");e.cache.set(h,m),t.set(h,m)}if(_=e.cache.get(d)){y=g.isTransposed?e.getLineGridCfg(r,s,a.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(r,s,a.DIRECTION.RADIUS,"y");(0,f.omit)(y,p),_.component.update(y),t.set(d,_)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;_=e.createLineGrid(r,s,c,a.DIRECTION.CIRCLE,"y")}else _=e.createCircleGrid(r,s,c,a.DIRECTION.RADIUS,"y");_&&(e.cache.set(d,_),t.set(d,_))}}}}}))},e.prototype.createLineAxis=function(t,e,r,n,i){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,n)),layer:r,direction:n===a.DIRECTION.RADIUS?a.DIRECTION.NONE:n,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,r,n,s){var u=this.getLineGridCfg(t,e,n,s);if(u){var l={component:new o.LineGrid(u),layer:r,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,r,n,i){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,n)),layer:r,direction:n,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,r,n,s){var u=this.getCircleGridCfg(t,e,n,s);if(u){var l={component:new o.CircleGrid(u),layer:r,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(u,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,r){var a=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=(0,u.getAxisRegion)(o,r),l=(0,u.getAxisTitleText)(t,e),c=(0,u.getAxisThemeCfg)(this.view.getTheme(),r),f=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:l}}},{title:(0,u.getAxisTitleOptions)(this.view.getTheme(),r,e.title)},e):e,h=(0,i.deepMix)(n.__assign(n.__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,u.getAxisFactorByRegion)(s,o.getCenter()):(0,u.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 v=(0,u.isVertical)(s),y=(0,i.get)(h,"verticalLimitLength",v?1/3:.5);if(y<=1){var m=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");h.verticalLimitLength=y*(v?m:_)}return h},e.prototype.getLineGridCfg=function(t,e,r,n){if((0,c.showGrid)((0,u.getAxisThemeCfg)(this.view.getTheme(),r),e)){var a=(0,c.getGridThemeCfg)(this.view.getTheme(),r),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,n,(0,i.get)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,r){var o=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,s=this.view.getCoordinate(),l=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||l.length&&(l[l.length-1].name="");var c=(0,u.getAxisTitleText)(t,e),f=(0,u.getAxisThemeCfg)(this.view.getTheme(),a.DIRECTION.CIRCLE),h=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:c}}},{title:(0,u.getAxisTitleOptions)(this.view.getTheme(),r,e.title)},e):e,p=(0,i.deepMix)(n.__assign(n.__assign({container:o},(0,u.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:l,verticalFactor:1,theme:f}),f,h),d=this.getAnimateCfg(p),g=d.animate,v=d.animateOption;return p.animate=g,p.animateOption=v,p},e.prototype.getCircleGridCfg=function(t,e,r,n){if((0,c.showGrid)((0,u.getAxisThemeCfg)(this.view.getTheme(),r),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)),l=(0,i.get)(s,"alignTick",!0),f="x"===n?this.view.getYScales()[0]:this.view.getXScale();return s.items=(0,c.getCircleGridItems)(this.view.getCoordinate(),f,t,l,n),s}},e.prototype.getId=function(t,e){var r=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var n=r(2);e.getGridThemeCfg=function(t,e){var r=(0,n.deepMix)({},(0,n.get)(t,["components","axis","common"]),(0,n.get)(t,["components","axis",e]));return(0,n.get)(r,["grid"],{})},e.getLineGridItems=function(t,e,r,n){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(n)i.push({points:[t.convert("y"===r?{x:0,y:s}:{x:s,y:0}),t.convert("y"===r?{x:1,y:s}:{x:s,y:1})]});else if(o){var u=(e.value+s)/2;i.push({points:[t.convert("y"===r?{x:0,y:u}:{x:u,y:0}),t.convert("y"===r?{x:1,y:u}:{x:u,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,r,i,a){var o=e.values.length,s=[],u=r.getTicks();return u.reduce((function(e,r){var u=e?e.value:r.value,l=r.value,c=(u+l)/2;return"x"===a?s.push({points:[t.convert({x:i?l:c,y:0}),t.convert({x:i?l:c,y:1})]}):s.push({points:(0,n.map)(Array(o+1),(function(e,r){return t.convert({x:r/o,y:i?l:c})}))}),r}),u[0]),s},e.showGrid=function(t,e){var r=(0,n.get)(e,"grid");if(null===r)return!1;var i=(0,n.get)(t,"grid");return!(void 0===r&&null===i)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(4),o=r(22),s=r(47),u=r(36),l=r(171),c=r(31),f=r(324),h=r(49);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 r=t.call(this,e)||this;return r.container=r.view.getLayer(a.LAYER.FORE).addGroup(),r}return n.__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 r=e.component,i=e.direction,a=(0,f.getLegendLayout)(i),o=r.get("maxWidthRatio"),s=r.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(a,o,s),h=r.get("maxWidth"),p=r.get("maxHeight");r.update({maxWidth:Math.min(c.maxWidth,h||0),maxHeight:Math.min(c.maxHeight,p||0)});var d=r.get("padding"),g=r.getLayoutBBox(),v=new u.BBox(g.x,g.y,g.width,g.height).expand(d),y=n.__read((0,l.directionToPosition)(t.view.viewBBox,v,i),2),m=y[0],_=y[1],x=n.__read((0,l.directionToPosition)(t.layoutBBox,v,i),2),b=x[0],M=x[1],P=0,O=0;i.startsWith("top")||i.startsWith("bottom")?(P=m,O=M):(P=b,O=_),r.setLocation({x:P+d[3],y:O+d[0]}),t.layoutBBox=t.layoutBBox.cut(v,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if((0,i.get)(this.option,"custom")){var r="global-custom",n=this.getComponentById(r);if(n){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,c.omit)(o,["container"]),n.component.update(o),e[r]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var u=a.LAYER.FORE,l=d(this.option);this.components.push({id:r,component:s,layer:u,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[r]=!0}}}else this.loopLegends((function(r,n,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var u=void 0,l=p(t.option,a.field);!1!==l&&((0,i.get)(l,"custom")?u=t.getCategoryCfg(r,n,a,l,!0):a.isLinear?u=t.getContinuousCfg(r,n,a,l):a.isCategory&&(u=t.getCategoryCfg(r,n,a,l))),u&&((0,c.omit)(u,["container"]),s.direction=d(l),s.component.update(u),e[o]=!0)}else{var f=t.createFieldLegend(r,n,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,r=t.geometries;return(0,i.each)(t.views,(function(t){r=r.concat(e.getGeometries(t))})),r},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),r={};(0,i.each)(e,(function(e){var n=e.getGroupAttributes();(0,i.each)(n,(function(n){var i=n.getScale(n.type);i&&"identity"!==i.type&&!r[i.field]&&(t(e,n,i),r[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,r){var n,o=p(this.option,r.field),s=a.LAYER.FORE,u=d(o);if(!1!==o&&((0,i.get)(o,"custom")?n=this.createCustomLegend(t,e,r,o):r.isLinear?n=this.createContinuousLegend(t,e,r,o):r.isCategory&&(n=this.createCategoryLegend(t,e,r,o))),n)return n.set("field",r.field),{id:this.getId(r.field),component:n,layer:s,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:r}}},e.prototype.createCustomLegend=function(t,e,r,n){var i=this.getCategoryCfg(t,e,r,n,!0);return new o.CategoryLegend(i)},e.prototype.createContinuousLegend=function(t,e,r,n){var i=this.getContinuousCfg(t,e,r,(0,c.omit)(n,["value"]));return new o.ContinuousLegend(i)},e.prototype.createCategoryLegend=function(t,e,r,n){var i=this.getCategoryCfg(t,e,r,n);return new o.CategoryLegend(i)},e.prototype.getContinuousCfg=function(t,e,r,n){var a=r.getTicks(),o=(0,i.find)(a,(function(t){return 0===t.value})),u=(0,i.find)(a,(function(t){return 1===t.value})),l=a.map((function(t){var n=t.value,i=t.tickValue,a=e.mapping(r.invert(n)).join("");return{value:i,attrValue:a,color:a,scaleValue:n}}));o||l.push({value:r.min,attrValue:e.mapping(r.invert(0)).join(""),color:e.mapping(r.invert(0)).join(""),scaleValue:0}),u||l.push({value:r.max,attrValue:e.mapping(r.invert(1)).join(""),color:e.mapping(r.invert(1)).join(""),scaleValue:1}),l.sort((function(t,e){return t.value-e.value}));var c={min:(0,i.head)(l).value,max:(0,i.last)(l).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=l.map((function(t){return t.attrValue})));var p=this.container,g=d(n),v=(0,f.getLegendLayout)(g),y=(0,i.get)(n,"title");return y&&(y=(0,i.deepMix)({text:(0,h.getName)(r)},y)),c.container=p,c.layout=v,c.title=y,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,n,"continuous")},e.prototype.getCategoryCfg=function(t,e,r,n,o){var u=this.container,l=(0,i.get)(n,"position",a.DIRECTION.BOTTOM),c=(0,f.getLegendThemeCfg)(this.view.getTheme(),l),p=(0,i.get)(c,["marker"]),d=(0,i.get)(n,"marker"),g=(0,f.getLegendLayout)(l),v=(0,i.get)(c,["pageNavigator"]),y=(0,i.get)(n,"pageNavigator"),m=o?(0,f.getCustomLegendItems)(p,d,n.items):(0,f.getLegendItems)(this.view,t,e,p,d),_=(0,i.get)(n,"title");_&&(_=(0,i.deepMix)({text:r?(0,h.getName)(r):""},_));var x=(0,i.get)(n,"maxWidthRatio"),b=(0,i.get)(n,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(g,x,b);M.container=u,M.layout=g,M.items=m,M.title=_,M.animateOption=s.DEFAULT_ANIMATE_CFG,M.pageNavigator=(0,i.deepMix)({},v,y);var P=this.mergeLegendCfg(M,n,l);P.reversed&&P.items.reverse();var O=(0,i.get)(P,"maxItemWidth");return O&&O<=1&&(P.maxItemWidth=this.view.viewBBox.width*O),P},e.prototype.mergeLegendCfg=function(t,e,r){var n=r.split("-")[0],a=(0,f.getLegendThemeCfg)(this.view.getTheme(),n);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,r){void 0===e&&(e=a.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===r&&(r=a.COMPONENT_MAX_VIEW_PERCENTAGE);var n=this.view.viewBBox,i=n.width,o=n.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*r}},e}(r(54).Controller);e.default=g},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(4),o=r(22),s=r(36),u=r(171),l=r(31),c=function(t){function e(e){var r=t.call(this,e)||this;return r.onChangeFn=i.noop,r.resetMeasure=function(){r.clear()},r.onValueChange=function(t){var e=n.__read(t,2),i=e[0],a=e[1];r.start=i,r.end=a,r.changeViewData(i,a)},r.container=r.view.getLayer(a.LAYER.FORE).addGroup(),r.onChangeFn=(0,i.throttle)(r.onValueChange,20,{leading:!0}),r.width=0,r.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return n.__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,r=t.end;(0,i.isNil)(this.start)&&(this.start=e,this.end=r);var n=this.view.getOptions().data;this.option&&!(0,i.isEmpty)(n)?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,r=this.slider.component.get("padding"),i=n.__read(r,4),o=i[0],l=(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(r),h=this.getMinMaxText(this.start,this.end),p=h.minText,d=h.maxText,g=n.__read((0,u.directionToPosition)(this.view.viewBBox,f,a.DIRECTION.BOTTOM),2),v=(g[0],g[1]),y=n.__read((0,u.directionToPosition)(this.view.coordinateBBox,f,a.DIRECTION.BOTTOM),2),m=y[0];y[1];this.slider.component.update(n.__assign(n.__assign({},this.getSliderCfg()),{x:m+l,y:v+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(n.__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),r=e.minText,i=e.maxText;t=n.__assign(n.__assign({},t),{width:this.width,start:this.start,end:this.end,minText:r,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=n.__assign({data:this.getData()},(0,i.get)(this.option,"trendCfg",{}));t=(0,i.deepMix)({},t,this.getThemeOptions(),this.option),t=n.__assign(n.__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=n.__read(this.view.getYScales(),1)[0],r=this.view.getGroupScales();if(r.length){var i=r[0],a=i.field,o=i.ticks;return t.reduce((function(t,r){return r[a]===o[0]&&t.push(r[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 r=this.view.getOptions().data,n=this.view.getXScale(),a=(0,i.valuesOfKey)(r,n.field);n.isLinear&&(a=a.sort());var o=a,s=(0,i.size)(r);if(!n||!s)return{};var u=(0,i.size)(o),l=Math.round(t*(u-1)),c=Math.round(e*(u-1)),f=(0,i.get)(o,[l]),h=(0,i.get)(o,[c]),p=this.getSliderCfg().formatter;return p&&(f=p(f,r[l],l),h=p(h,r[c],c)),{minText:f,maxText:h}},e.prototype.changeViewData=function(t,e){var r=this.view.getOptions().data,n=this.view.getXScale(),a=(0,i.size)(r);if(n&&a){var o=(0,i.valuesOfKey)(r,n.field),s=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,u=s,c=(0,i.size)(u),f=Math.round(t*(c-1)),h=Math.round(e*(c-1));this.view.filter(n.field,(function(t,e){var r=u.indexOf(t);return!(r>-1)||(0,l.isBetween)(r,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}(r(54).Controller);e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(54),a=r(22),o=r(36),s=r(171),u=r(4),l=r(2),c=r(31),f=function(t){function e(e){var r=t.call(this,e)||this;return r.onChangeFn=l.noop,r.resetMeasure=function(){r.clear()},r.onValueChange=function(t){var e=t.ratio,n=r.getValidScrollbarCfg().animate;r.ratio=(0,l.clamp)(e,0,1);var i=r.view.getOptions().animate;n||r.view.animate(!1),r.changeViewData(r.getScrollRange(),!0),r.view.animate(i)},r.container=r.view.getLayer(u.LAYER.FORE).addGroup(),r.onChangeFn=(0,l.throttle)(r.onValueChange,20,{leading:!0}),r.trackLen=0,r.thumbLen=0,r.ratio=0,r.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return n.__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(u.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(u.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,r=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(r),l=this.getScrollbarComponentCfg(),c=void 0,f=void 0;if(l.isHorizontal){var h=n.__read((0,s.directionToPosition)(this.view.viewBBox,a,u.DIRECTION.BOTTOM),2),p=(h[0],h[1]),d=n.__read((0,s.directionToPosition)(this.view.coordinateBBox,a,u.DIRECTION.BOTTOM),2),g=d[0];d[1];c=g,f=p}else{var v=n.__read((0,s.directionToPosition)(this.view.viewBBox,a,u.DIRECTION.RIGHT),2),y=(v[0],p=v[1],n.__read((0,s.directionToPosition)(this.view.viewBBox,a,u.DIRECTION.RIGHT),2));g=y[0],y[1];c=g,f=p}c+=r[3],f+=r[0],this.trackLen?this.scrollbar.component.update(n.__assign(n.__assign({},l),{x:c,y:f,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(n.__assign(n.__assign({},l),{x:c,y:f})),this.view.viewBBox=this.view.viewBBox.cut(a,l.isHorizontal?u.DIRECTION.BOTTOM:u.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,l.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,l.get)(this.view.getTheme(),["components","scrollbar"]),r=t||{},i=r.thumbHighlightColor,a=n.__rest(r,["thumbHighlightColor"]);return{default:(0,l.deepMix)({},(0,l.get)(e,["default","style"],{}),a),hover:(0,l.deepMix)({},(0,l.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 r=this.getScrollbarComponentCfg(),n=r.trackLen,i=r.thumbLen;this.trackLen=n,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,l.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var r=this,i=n.__read(t,2),a=i[0],o=i[1],s="vertical"!==this.getValidScrollbarCfg().type,u=(0,l.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?u.sort((function(t,e){return Number(t)-Number(e)})):u,h=s?f:f.reverse();this.yScalesCfg.forEach((function(t){r.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(n.__assign(n.__assign({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:u.LAYER.FORE,direction:t?u.DIRECTION.BOTTOM:u.DIRECTION.RIGHT,type:u.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?n.__assign(n.__assign({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):n.__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(),r=e.type,n=e.categorySize,i="vertical"!==r;return Math.floor((i?t.width:t.height)/n)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),r=(0,l.valuesOfKey)(e,t.field);return(0,l.size)(r)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,r=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,u=i.height,c=i.style,f="vertical"!==a,h=n.__read(o,4),p=h[0],d=h[1],g=h[2],v=h[3],y=f?{x:e.minX+v,y:r.maxY-u-g}:{x:r.maxX-s-d,y:e.minY+p},m=this.getStep(),_=this.getCnt(),x=f?e.width-v-d:e.height-p-g,b=Math.max(x*(0,l.clamp)(m/_,0,1),20);return n.__assign(n.__assign({},this.getThemeOptions()),{x:y.x,y:y.y,size:f?u: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,l.isObject)(this.option)&&(t=n.__assign(n.__assign({},t),this.option)),(0,l.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(),r=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(r=n.__spreadArray([],n.__read(r),!1).reverse()),r},e}(i.Controller);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var n=r(0),i=r(2),a=r(105),o=r(14),s=n.__importDefault(r(13)),u={fill:"#CCD6EC",opacity:.3};function l(t,e,r){var o,s,u,l,c,f,h=(0,a.findItemsFromViewRecurisive)(t,e,r);if(h.length){h=(0,i.flatten)(h);try{for(var p=n.__values(h),d=p.next();!d.done;d=p.next()){var g=d.value;try{for(var v=(u=void 0,n.__values(g)),y=v.next();!y.done;y=v.next()){var m=y.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){u={error:t}}finally{try{y&&!y.done&&(l=v.return)&&l.call(v)}finally{if(u)throw u.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===r.shared&&h.length>1){var M=h[0],P=Math.abs(e.y-M[0].y);try{for(var O=n.__values(h),S=O.next();!S.done;S=O.next()){var C=S.value,w=Math.abs(e.y-C[0].y);w<=P&&(M=C,P=w)}}catch(t){c={error:t}}finally{try{S&&!S.done&&(f=O.return)&&f.call(O)}finally{if(c)throw c.error}}h=[M]}return(0,i.uniq)((0,i.flatten)(h))}return[]}e.getItemsOfView=l;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.show=function(t){var e=this.context.view,r=this.context.event,a=e.getController("tooltip").getTooltipCfg(),s=l(e,{x:r.x,y:r.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(),v=h[0].shape.getCanvasBBox(),y=g;(0,i.each)(h,(function(t){var e=t.shape.getCanvasBBox();d.isTransposed?(e.minYv.maxY&&(v=e)):(e.minXv.maxX&&(v=e)),y.x=Math.min(e.minX,y.minX),y.y=Math.min(e.minY,y.minY),y.width=Math.max(e.maxX,y.maxX)-y.x,y.height=Math.max(e.maxY,y.maxY)-y.y}));var m=e.backgroundGroup,_=e.coordinateBBox,x=void 0;if(d.isRect){var b=e.getXScale(),M=t||{},P=M.appendRatio,O=M.appendWidth;(0,i.isNil)(O)&&(P=(0,i.isNil)(P)?b.isLinear?0:.25:P,O=d.isTransposed?P*v.height:P*g.width);var S=void 0,C=void 0,w=void 0,A=void 0;d.isTransposed?(S=_.minX,C=Math.min(v.minY,g.minY)-O,w=_.width,A=y.height+2*O):(S=Math.min(g.minX,v.minX)-O,C=_.minY,w=y.width+2*O,A=_.height),x=[["M",S,C],["L",S+w,C],["L",S+w,C+A],["L",S,C+A],["Z"]]}else{var T=(0,i.head)(h),E=(0,i.last)(h),I=(0,o.getAngle)(T.getModel(),d).startAngle,D=(0,o.getAngle)(E.getModel(),d).endAngle,L=d.getCenter(),j=d.getRadius(),k=d.innerRadius*j;x=(0,o.getSectorPath)(L.x,L.y,j,I,D,k)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var B=(0,i.get)(t,"style",u);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:n.__assign(n.__assign({},B),{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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(6),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.showTooltip=function(t,e){var r=(0,a.getSilbings)(t);(0,i.each)(r,(function(r){var n=(0,a.getSiblingPoint)(t,r,e);r.showTooltip(n)}))},e.prototype.hideTooltip=function(t){var e=(0,a.getSilbings)(t);(0,i.each)(e,(function(t){t.hideTooltip()}))},e}(n.__importDefault(r(336)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(52),o=n.__importDefault(r(13)),s=r(22),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return n.__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,r=+new Date;if(r-e>16){var n=this.location,a={x:t.x,y:t.y};n&&(0,i.isEqual)(n,a)||this.showTooltip(a),this.timeStamp=r,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 r=e.get("tip");this.tooltip.update(n.__assign({title:r},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,r=e.canvas,o={start:{x:0,y:0},end:{x:r.get("width"),y:r.get("height")}},u=e.getTheme(),l=(0,i.get)(u,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:r.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:n.__assign({},(0,i.deepMix)({},l,(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=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.active=function(){this.setState()},e}(n.__importDefault(r(172)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(13)),a=r(6),o=r(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return n.__extends(e,t),e.prototype.getColorScale=function(t,e){var r=e.geometry.getAttribute("color");return r?t.getScaleByField(r.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var r=this.context.view.getCoordinate().isTransposed,n=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return r?[["M",n.minX,n.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",n.maxX,n.minY],["Z"]]:[["M",n.maxX,n.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",n.maxX,n.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,r,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:n.__assign(n.__assign({},(0,o.deepMix)({},a,(0,o.isFunction)(i)?i(a,e):i)),{path:this.getLinkPath(e,r)})})},e.prototype.linkByElement=function(t,e){var r=this,n=this.context.view,i=this.getColorScale(n,t);if(i){var s=(0,a.getElementValue)(t,i.field);if(!this.cache[s]){var u=(0,a.getElementsByField)(n,i.field,s),l=this.linkGroup.addGroup();this.cache[s]=l;var c=u.length;(0,o.each)(u,(function(t,n){if(n=0}),e)},e}(s.default);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(6),a=r(177),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var r=this.context.view,n=(0,i.getElements)(r);(0,a.setHighlightBy)(n,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;(0,a.clearHighlight)(t)},e}(n.__importDefault(r(175)).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(r(174)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(r(172)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(r(175)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return n.__extends(e,t),e.prototype.active=function(){this.setState()},e}(n.__importDefault(r(56)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(914),o=n.__importDefault(r(56)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return n.__extends(e,t),e.prototype.setItemsState=function(t,e,r){this.setHighlightBy(t,(function(t){return t.name===e}),r)},e.prototype.setItemState=function(t,e,r){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),r)},e.prototype.setHighlightBy=function(t,e,r){var n=t.getItems();if(r)(0,i.each)(n,(function(r){e(r)?(t.hasState(r,"inactive")&&t.setItemState(r,"inactive",!1),t.setItemState(r,"active",!0)):t.hasState(r,"active")||t.setItemState(r,"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)(n,(function(r){e(r)&&(t.hasState(r,"active")&&t.setItemState(r,"active",!1),t.setItemState(r,"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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var n=r(2);e.clearList=function(t){var e=t.getItems();(0,n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return n.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(n.__importDefault(r(56)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return n.__extends(e,t),e.prototype.unchecked=function(){this.setState()},e}(n.__importDefault(r(56)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(56)),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return n.__extends(e,t),e.prototype.setItemState=function(t,e,r){this.setCheckedBy(t,(function(t){return t===e}),r)},e.prototype.setCheckedBy=function(t,e,r){var n=t.getItems();r&&(0,i.each)(n,(function(r){e(r)?(t.hasState(r,"unchecked")&&t.setItemState(r,"unchecked",!1),t.setItemState(r,"checked",!0)):t.hasState(r,"checked")||t.setItemState(r,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,r=t.item;!(0,i.some)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(r,"unchecked")?this.setItemState(e,r,!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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(56)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.toggle=function(){var t,e,r,i,a,o,s,u,l=this.getTriggerListInfo();if(null==l?void 0:l.item){var c=l.list,f=l.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 v=n.__values(h),y=v.next();!y.done;y=v.next()){var m=y.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(h.length-d.length==1)if(g.id===f.id)try{for(var _=n.__values(h),x=_.next();!x.done;x=_.next()){m=x.value;c.setItemState(m,"unchecked",!1)}}catch(t){r={error:t}}finally{try{x&&!x.done&&(i=_.return)&&i.call(_)}finally{if(r)throw r.error}}else try{for(var b=n.__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 P=n.__values(h),O=P.next();!O.done;O=P.next()){m=O.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){s={error:t}}finally{try{O&&!O.done&&(u=P.return)&&u.call(P)}finally{if(s)throw s.error}}}},e}(i.default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(56)),a=r(2),o=r(52),s=r(22),u="legend-radio-tip",l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return n.__extends(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,r=t.item;e.setItemState(r,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,r=t.item;e.setItemState(r,"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,r=+new Date,n=this.context.event.target;if(r-e>16&&"legend-item-radio"===n.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=r,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,r=e.event.target;if(r&&r.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),a=i.x,o=i.y;this.tooltip.update(n.__assign(n.__assign({title:r.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(u)&&document.body.removeChild(document.getElementById(u));var r=new s.HtmlTooltip({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:u});r.init(),r.setCapture(!1),this.tooltip=r},e}(i.default);e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(340)),a=r(338),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return n.__extends(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return(0,a.getRegion)(t,this.dim,this.inPlot,e)},e}(i.default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(181)),a=r(337),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=a.getMaskAttrs,e}return n.__extends(e,t),e}(i.default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(341)),a=r(339),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=a.getMaskPath,e.getMaskAttrs=a.getMaskAttrs,e}return n.__extends(e,t),e}(i.default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__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.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(n.__importDefault(r(13)).default);e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(13)),o=r(6),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.filterView=function(t,e,r){var n=this;t.getScaleByField(e)&&t.filter(e,r),t.views&&t.views.length&&(0,i.each)(t.views,(function(t){n.filterView(t,e,r)}))},e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context);if(t){var e=this.context.view,r=t.component,i=r.get("field");if((0,o.isList)(t)){if(i){var a=r.getItemsByState("unchecked"),s=(0,o.getScaleByField)(e,i),u=a.map((function(t){return t.name}));u.length?this.filterView(e,i,(function(t){var e=s.getText(t);return!u.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if((0,o.isSlider)(t)){var l=r.getValue(),c=n.__read(l,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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(342)),o=r(6),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.filterView=function(t,e,r){var n=(0,o.getSilbings)(t);(0,i.each)(n,(function(t){t.filter(e,r)}))},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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(13)),o=r(6),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context),e=this.context.view,r=(0,o.getElements)(e);if((0,o.isMask)(this.context)){var a=(0,o.getMaskedElements)(this.context,10);a&&(0,i.each)(r,(function(t){a.includes(t)?t.show():t.hide()}))}else if(t){var s=t.component,u=s.get("field");if((0,o.isList)(t)){if(u){var l=s.getItemsByState("unchecked"),c=(0,o.getScaleByField)(e,u),f=l.map((function(t){return t.name}));(0,i.each)(r,(function(t){var e=(0,o.getElementValue)(t,u),r=c.getText(e);f.indexOf(r)>=0?t.hide():t.show()}))}}else if((0,o.isSlider)(t)){var h=s.getValue(),p=n.__read(h,2),d=p[0],g=p[1];(0,i.each)(r,(function(t){var e=(0,o.getElementValue)(t,u);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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=n.__importDefault(r(13)),o=r(6),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return n.__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 r=t.getXScale().field,n=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,r,n)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,r=(0,o.getSilbings)(e);(0,i.each)(r,(function(e){var r=(0,o.getSiblingMaskElements)(t.context,e,10),n=(0,o.getElements)(e);r&&(0,i.each)(n,(function(t){r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(17),a=r(2),o=r(158),s=n.__importDefault(r(13)),u=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 n.__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}),r=e.addShape({type:"text",name:"button-text",attrs:n.__assign({text:t.text},t.textStyle)}).getBBox(),i=(0,o.parsePadding)(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:n.__assign({x:r.x-i[3],y:r.y-i[0],width:r.width+i[1]+i[3],height:r.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,r=e.getBBox(),n=i.ext.transform(null,[["t",t.x-r.width-10,t.y+r.height+5]]);e.setMatrix(n)},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=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=n.__importDefault(r(13)),a=r(6),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return n.__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,r=this.context.event;this.dragStart?e.emit("drag",{target:r.target,x:r.x,y:r.y}):(0,a.distance)(t,this.startPoint)>4&&(e.emit("dragstart",{target:r.target,x:r.x,y:r.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(17),a=r(104),o=r(6),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 n.__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 r=this.context.view,n=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);r.backgroundGroup.setMatrix(n),r.foregroundGroup.setMatrix(n),r.middleGroup.setMatrix(n)}}},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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),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 n.__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 r=t.getScale(e),n=r.min,i=r.max,a=r.values;t.startCache[e]={min:n,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,r=this.context.view.getCoordinate(),n=this.context.getCurrentPoint(),a=r.invert(e),o=r.invert(n),s=o.x-a.x,u=o.y-a.y,l=this.context.view,c=this.dims;(0,i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*u})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var r=this.getScale(t);r.isLinear&&this.translateLinear(t,r,e)}},e.prototype.translateLinear=function(t,e,r){var n=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,u=r[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),n.scale(e.field,{nice:!1,min:a+u,max:o+u})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(n.__importDefault(r(343)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return n.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,r=this.dims;(0,i.each)(r,(function(r){e.zoomDim(r,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 r=this.getScale(t);r.isLinear&&this.zoomLinear(t,r,e)}},e.prototype.zoomLinear=function(t,e,r){var n=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,u=r*a,l=o-u,c=s+u,f=(c-l)/a;c>l&&f<100&&f>.01&&n.scale(e.field,{nice:!1,min:o-u,max:s+u})},e}(n.__importDefault(r(343)).default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(2),a=r(104);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.scroll=function(t){var e=this.context,r=e.view,n=e.event;if(r.getOptions().scrollbar){var a=(null==t?void 0:t.wheelDelta)||1,o=r.getController("scrollbar"),s=r.getXScale(),u=r.getOptions().data,l=(0,i.size)((0,i.valuesOfKey)(u,s.field)),c=(0,i.size)(s.values),f=o.getValue(),h=Math.floor((l-c)*f)+(function(t){return t.gEvent.originalEvent.deltaY>0}(n)?a:-a),p=a/(l-c)/1e4,d=(0,i.clamp)(h/(l-c)+p,0,1);o.setValue(d)}},e}(a.Action);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(52),a=r(2),o=r(22),s=n.__importDefault(r(13)),u=r(6),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.show=function(){var t=this.context,e=(0,u.getDelegationObject)(t).axis.cfg.title,r=e.description,n=e.text,a=e.descriptionTooltipStyle,o=t.event,s=o.x,l=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:n||"",customContent:function(){return'\n
    \n
    \n 字段说明:').concat(r,"\n
    \n
    \n ")},x:s,y:l}),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,r={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},s=new o.HtmlTooltip({parent:e.get("el").parentNode,region:r,visible:!1,containerId:"aixs-description-tooltip",domStyles:n.__assign({},(0,a.deepMix)({},(t={},t[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(s.default);e.default=l}])})); //# sourceMappingURL=g2.min.js.map