@antv/g2plot
Version:
An interactive and responsive charting library
1 lines • 999 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2Plot=e():t.G2Plot=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=157)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return r})),n.d(e,"includes",(function(){return r})),n.d(e,"difference",(function(){return a})),n.d(e,"find",(function(){return b})),n.d(e,"findIndex",(function(){return _})),n.d(e,"firstValue",(function(){return O})),n.d(e,"flatten",(function(){return w})),n.d(e,"flattenDeep",(function(){return j})),n.d(e,"getRange",(function(){return A})),n.d(e,"pull",(function(){return P})),n.d(e,"pullAt",(function(){return T})),n.d(e,"reduce",(function(){return L})),n.d(e,"remove",(function(){return k})),n.d(e,"sortBy",(function(){return B})),n.d(e,"union",(function(){return R})),n.d(e,"uniq",(function(){return N})),n.d(e,"valuesOfKey",(function(){return V})),n.d(e,"head",(function(){return z})),n.d(e,"last",(function(){return G})),n.d(e,"startsWith",(function(){return Y})),n.d(e,"endsWith",(function(){return X})),n.d(e,"filter",(function(){return o})),n.d(e,"every",(function(){return W})),n.d(e,"some",(function(){return H})),n.d(e,"group",(function(){return $})),n.d(e,"groupBy",(function(){return q})),n.d(e,"groupToMap",(function(){return Z})),n.d(e,"getWrapBehavior",(function(){return K})),n.d(e,"wrapBehavior",(function(){return Q})),n.d(e,"number2color",(function(){return tt})),n.d(e,"parseRadius",(function(){return et})),n.d(e,"clamp",(function(){return nt})),n.d(e,"fixedBase",(function(){return it})),n.d(e,"isDecimal",(function(){return ot})),n.d(e,"isEven",(function(){return at})),n.d(e,"isInteger",(function(){return st})),n.d(e,"isNegative",(function(){return lt})),n.d(e,"isNumberEqual",(function(){return ct})),n.d(e,"isOdd",(function(){return ut})),n.d(e,"isPositive",(function(){return ht})),n.d(e,"max",(function(){return S})),n.d(e,"maxBy",(function(){return ft})),n.d(e,"min",(function(){return M})),n.d(e,"minBy",(function(){return pt})),n.d(e,"mod",(function(){return dt})),n.d(e,"toDegree",(function(){return yt})),n.d(e,"toInteger",(function(){return vt})),n.d(e,"toRadian",(function(){return xt})),n.d(e,"forIn",(function(){return bt})),n.d(e,"has",(function(){return _t})),n.d(e,"hasKey",(function(){return Ot})),n.d(e,"hasValue",(function(){return jt})),n.d(e,"keys",(function(){return g})),n.d(e,"isMatch",(function(){return y})),n.d(e,"values",(function(){return wt})),n.d(e,"lowerCase",(function(){return Mt})),n.d(e,"lowerFirst",(function(){return At})),n.d(e,"substitute",(function(){return Ct})),n.d(e,"upperCase",(function(){return Et})),n.d(e,"upperFirst",(function(){return It})),n.d(e,"getType",(function(){return Ft})),n.d(e,"isArguments",(function(){return Tt})),n.d(e,"isArray",(function(){return h})),n.d(e,"isArrayLike",(function(){return i})),n.d(e,"isBoolean",(function(){return Lt})),n.d(e,"isDate",(function(){return kt})),n.d(e,"isError",(function(){return Dt})),n.d(e,"isFunction",(function(){return c})),n.d(e,"isFinite",(function(){return Bt})),n.d(e,"isNil",(function(){return u})),n.d(e,"isNull",(function(){return Nt})),n.d(e,"isNumber",(function(){return rt})),n.d(e,"isObject",(function(){return p})),n.d(e,"isObjectLike",(function(){return m})),n.d(e,"isPlainObject",(function(){return x})),n.d(e,"isPrototype",(function(){return Vt})),n.d(e,"isRegExp",(function(){return zt})),n.d(e,"isString",(function(){return D})),n.d(e,"isType",(function(){return l})),n.d(e,"isUndefined",(function(){return Gt})),n.d(e,"isElement",(function(){return Yt})),n.d(e,"requestAnimationFrame",(function(){return Xt})),n.d(e,"clearAnimationFrame",(function(){return Wt})),n.d(e,"augment",(function(){return qt})),n.d(e,"clone",(function(){return $t})),n.d(e,"debounce",(function(){return Kt})),n.d(e,"memoize",(function(){return Qt})),n.d(e,"deepMix",(function(){return te})),n.d(e,"each",(function(){return d})),n.d(e,"extend",(function(){return ee})),n.d(e,"indexOf",(function(){return ne})),n.d(e,"isEmpty",(function(){return re})),n.d(e,"isEqual",(function(){return oe})),n.d(e,"isEqualWith",(function(){return ae})),n.d(e,"map",(function(){return se})),n.d(e,"mapValues",(function(){return ce})),n.d(e,"mix",(function(){return Ut})),n.d(e,"assign",(function(){return Ut})),n.d(e,"get",(function(){return ue})),n.d(e,"set",(function(){return he})),n.d(e,"pick",(function(){return pe})),n.d(e,"omit",(function(){return de})),n.d(e,"throttle",(function(){return ge})),n.d(e,"toArray",(function(){return ye})),n.d(e,"toString",(function(){return St})),n.d(e,"uniqueId",(function(){return me})),n.d(e,"noop",(function(){return xe})),n.d(e,"identity",(function(){return be})),n.d(e,"size",(function(){return _e})),n.d(e,"measureTextWidth",(function(){return je})),n.d(e,"getEllipsisText",(function(){return Se})),n.d(e,"Cache",(function(){return Me}));var i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},r=function(t,e){return!!i(t)&&t.indexOf(e)>-1},o=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n},a=function(t,e){return void 0===e&&(e=[]),o(t,(function(t){return!r(e,t)}))},s={}.toString,l=function(t,e){return s.call(t)==="[object "+e+"]"},c=function(t){return l(t,"Function")},u=function(t){return null==t},h=function(t){return Array.isArray?Array.isArray(t):l(t,"Array")};function f(t){return(f="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)}var p=function(t){var e=f(t);return null!==t&&"object"===e||"function"===e};var d=function(t,e){if(t)if(h(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(p(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break},g=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return d(t,(function(n,i){c(t)&&"prototype"===i||e.push(i)})),e};var y=function(t,e){var n=g(e),i=n.length;if(u(t))return!i;for(var r=0;r<i;r+=1){var o=n[r];if(e[o]!==t[o]||!(o in t))return!1}return!0};function v(t){return(v="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)}var m=function(t){return"object"===v(t)&&null!==t},x=function(t){if(!m(t)||!l(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};var b=function(t,e){if(!h(t))return null;var n;if(c(e)&&(n=e),x(e)&&(n=function(t){return y(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null};var _=function(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1},O=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i][e];if(!u(r)){n=h(r)?r[0]:r;break}}return n},w=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},j=function t(e,n){if(void 0===n&&(n=[]),h(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n},S=function(t){if(h(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},M=function(t){if(h(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},A=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=S(e);return{min:M(e),max:r}},C=Array.prototype,E=C.splice,I=C.indexOf,P=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i++)for(var r=e[i],o=-1;(o=I.call(t,r))>-1;)E.call(t,o,1);return t},F=Array.prototype.splice,T=function(t,e){if(!i(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var o=void 0,a=e[n];n!==r&&a===o||(o=a,F.call(t,a,1))}return t},L=function(t,e,n){if(!h(t)&&!x(t))return t;var i=n;return d(t,(function(t,n){i=e(i,t,n)})),i},k=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,o=[],a=t.length;++r<a;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return T(t,o),n},D=function(t){return l(t,"String")};var B=function(t,e){var n;if(c(e))n=function(t,n){return e(t)-e(n)};else{var i=[];D(e)?i.push(e):h(e)&&(i=e),n=function(t,e){for(var n=0;n<i.length;n+=1){var r=i[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t};function N(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var i=0,r=t.length;i<r;i++){var o=t[i];e.has(o)||(n.push(o),e.set(o,!0))}return n}var R=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return N([].concat.apply([],t))},V=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r][e];if(!u(o)){h(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];i[s]||(n.push(s),i[s]=!0)}}}return n};function z(t){if(i(t))return t[0]}function G(t){if(i(t)){return t[t.length-1]}}var Y=function(t,e){return!(!h(t)&&!D(t))&&t[0]===e};var X=function(t,e){return!(!h(t)&&!D(t))&&t[t.length-1]===e},W=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},H=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},U=Object.prototype.hasOwnProperty;var q=function(t,e){if(!e||!h(t))return{};for(var n,i={},r=c(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=r(a),U.call(i,n)?i[n].push(a):i[n]=[a]}return i};function Z(t,e){if(!e)return{0:t};if(!c(e)){var n=h(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return q(t,e)}var $=function(t,e){if(!e)return[t];var n=Z(t,e),i=[];for(var r in n)i.push(n[r]);return i};var K=function(t,e){return t["_wrap_"+e]};var Q=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},J={};var tt=function(t){var e=J[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,J[t]=e}return e};var et=function(t){var e=0,n=0,i=0,r=0;return h(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}},nt=function(t,e,n){return t<e?e:t>n?n:t},it=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},rt=function(t){return l(t,"Number")},ot=function(t){return rt(t)&&t%1!=0},at=function(t){return rt(t)&&t%2==0},st=Number.isInteger?Number.isInteger:function(t){return rt(t)&&t%1==0},lt=function(t){return rt(t)&&t<0};function ct(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var ut=function(t){return rt(t)&&t%2!=0},ht=function(t){return rt(t)&&t>0},ft=function(t,e){if(h(t)){for(var n,i=-1/0,r=0;r<t.length;r++){var o=t[r],a=c(e)?e(o):o[e];a>i&&(n=o,i=a)}return n}},pt=function(t,e){if(h(t)){for(var n,i=1/0,r=0;r<t.length;r++){var o=t[r],a=c(e)?e(o):o[e];a<i&&(n=o,i=a)}return n}},dt=function(t,e){return(t%e+e)%e},gt=180/Math.PI,yt=function(t){return gt*t},vt=parseInt,mt=Math.PI/180,xt=function(t){return mt*t},bt=d,_t=function(t,e){return t.hasOwnProperty(e)},Ot=_t,wt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return d(t,(function(n,i){c(t)&&"prototype"===i||e.push(n)})),e},jt=function(t,e){return r(wt(t),e)},St=function(t){return u(t)?"":t.toString()},Mt=function(t){return St(t).toLowerCase()},At=function(t){var e=St(t);return e.charAt(0).toLowerCase()+e.substring(1)};var Ct=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t},Et=function(t){return St(t).toUpperCase()},It=function(t){var e=St(t);return e.charAt(0).toUpperCase()+e.substring(1)},Pt={}.toString,Ft=function(t){return Pt.call(t).replace(/^\[object /,"").replace(/]$/,"")},Tt=function(t){return l(t,"Arguments")},Lt=function(t){return l(t,"Boolean")},kt=function(t){return l(t,"Date")},Dt=function(t){return l(t,"Error")},Bt=function(t){return rt(t)&&isFinite(t)},Nt=function(t){return null===t},Rt=Object.prototype,Vt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)},zt=function(t){return l(t,"RegExp")},Gt=function(t){return void 0===t},Yt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Xt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Wt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Ht(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Ut(t,e,n,i){return e&&Ht(t,e),n&&Ht(t,n),i&&Ht(t,i),t}var qt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],i=1;i<t.length;i++){var r=t[i];c(r)&&(r=r.prototype),Ut(n.prototype,r)}};function Zt(t){return(Zt="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)}var $t=function t(e){if("object"!==Zt(e)||null===e)return e;var n;if(h(e)){n=[];for(var i=0,r=e.length;i<r;i++)"object"===Zt(e[i])&&null!=e[i]?n[i]=t(e[i]):n[i]=e[i]}else for(var o in n={},e)"object"===Zt(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o];return n};var Kt=function(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}},Qt=function(t,e){if(!c(t))throw new TypeError("Expected a function");var n=function n(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n};function Jt(t,e,n,i){for(var r in n=n||0,i=i||5,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&x(o)?(x(t[r])||(t[r]={}),n<i?Jt(t[r],o,n+1,i):t[r]=e[r]):h(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=o)}}var te=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)Jt(t,e[i]);return t},ee=function(t,e,n,i){c(e)||(n=e,e=t,t=function(){});var r=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},o=r(e.prototype,t);return t.prototype=Ut(o,t.prototype),t.superclass=r(e.prototype,e),Ut(o,n),Ut(t,i),t},ne=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r},ie=Object.prototype.hasOwnProperty;var re=function(t){if(u(t))return!0;if(i(t))return!t.length;var e=Ft(t);if("Map"===e||"Set"===e)return!t.size;if(Vt(t))return!Object.keys(t).length;for(var n in t)if(ie.call(t,n))return!1;return!0},oe=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(D(e)||D(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var r=!0,o=0;o<e.length&&(r=t(e[o],n[o]));o++);return r}if(m(e)||m(n)){var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(r=!0,o=0;o<a.length&&(r=t(e[a[o]],n[a[o]]));o++);return r}return!1},ae=function(t,e,n){return c(n)?!!n(t,e):oe(t,e)},se=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n},le=function(t){return t},ce=function(t,e){void 0===e&&(e=le);var n={};return p(t)&&!u(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n},ue=function(t,e,n){for(var i=0,r=D(e)?e.split("."):e;t&&i<r.length;)t=t[r[i++]];return void 0===t||i<r.length?n:t},he=function(t,e,n){var i=t,r=D(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(p(i[t])||(i[t]=rt(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},fe=Object.prototype.hasOwnProperty,pe=function(t,e){if(null===t||!x(t))return{};var n={};return d(e,(function(e){fe.call(t,e)&&(n[e]=t[e])})),n},de=function(t,e){return L(t,(function(t,n,i){return e.includes(i)||(t[i]=n),t}),{})},ge=function(t,e,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=e-(c-s);return r=this,o=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=c,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c},ye=function(t){return i(t)?Array.prototype.slice.call(t):[]},ve={},me=function(t){return ve[t=t||"g"]?ve[t]+=1:ve[t]=1,t+ve[t]},xe=function(){},be=function(t){return t};function _e(t){return u(t)?0:i(t)?t.length:Object.keys(t).length}var Oe,we=n(1),je=Qt((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Oe||(Oe=document.createElement("canvas").getContext("2d")),Oe.font=[o,a,r,n+"px",i].join(" "),Oe.measureText(D(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(we.__spreadArrays)([t],wt(e)).join("")})),Se=function(t,e,n,i){void 0===i&&(i="...");var r,o,a=je(i,n),s=D(t)?t:St(t),l=e,c=[];if(je(t,n)<=e)return t;for(;r=s.substr(0,16),!((o=je(r,n))+a>l&&o>l);)if(c.push(r),l-=o,!(s=s.substr(16)))return c.join("");for(;r=s.substr(0,1),!((o=je(r,n))+a>l);)if(c.push(r),l-=o,!(s=s.substr(1)))return c.join("");return""+c.join("")+i},Me=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){"use strict";function i(t){return(i="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)}n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return a})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return l})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return h})),n.d(e,"__generator",(function(){return f})),n.d(e,"__createBinding",(function(){return p})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return g})),n.d(e,"__read",(function(){return y})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__spreadArray",(function(){return x})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return O})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return j})),n.d(e,"__importStar",(function(){return M})),n.d(e,"__importDefault",(function(){return A})),n.d(e,"__classPrivateFieldGet",(function(){return C})),n.d(e,"__classPrivateFieldSet",(function(){return E})),n.d(e,"__classPrivateFieldIn",(function(){return I}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function l(t,e,n,r){var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":i(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function u(t,e){if("object"===("undefined"==typeof Reflect?"undefined":i(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function f(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var p=Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]};function d(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||p(e,t,n)}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function x(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof b?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(t){u(o[0][3],t)}var n}function l(t){s("next",t)}function c(t){s("throw",t)}function u(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function O(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,r,(e=t[n](e)).done,e.value)}))}}}function j(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function M(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&p(e,t,n);return S(e,t),e}function A(t){return t&&t.__esModule?t:{default:t}}function C(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)}function E(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n}function I(t,e){if(null===e||"object"!==i(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,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(166);Object.defineProperty(e,"flow",{enumerable:!0,get:function(){return r.flow}});var o=n(73);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return o.pick}});var a=n(167);Object.defineProperty(e,"template",{enumerable:!0,get:function(){return a.template}});var s=n(74);Object.defineProperty(e,"log",{enumerable:!0,get:function(){return s.log}}),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return s.invariant}}),Object.defineProperty(e,"LEVEL",{enumerable:!0,get:function(){return s.LEVEL}});var l=n(168);Object.defineProperty(e,"getContainerSize",{enumerable:!0,get:function(){return l.getContainerSize}}),i.__exportStar(n(169),e);var c=n(75);Object.defineProperty(e,"findViewById",{enumerable:!0,get:function(){return c.findViewById}}),Object.defineProperty(e,"getViews",{enumerable:!0,get:function(){return c.getViews}}),Object.defineProperty(e,"getSiblingViews",{enumerable:!0,get:function(){return c.getSiblingViews}});var u=n(170);Object.defineProperty(e,"transformLabel",{enumerable:!0,get:function(){return u.transformLabel}});var h=n(171);Object.defineProperty(e,"getSplinePath",{enumerable:!0,get:function(){return h.getSplinePath}});var f=n(76);Object.defineProperty(e,"deepAssign",{enumerable:!0,get:function(){return f.deepAssign}});var p=n(172);Object.defineProperty(e,"kebabCase",{enumerable:!0,get:function(){return p.kebabCase}});var d=n(77);Object.defineProperty(e,"renderStatistic",{enumerable:!0,get:function(){return d.renderStatistic}}),Object.defineProperty(e,"renderGaugeStatistic",{enumerable:!0,get:function(){return d.renderGaugeStatistic}});var g=n(173);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return g.measureTextWidth}});var y=n(54);Object.defineProperty(e,"isBetween",{enumerable:!0,get:function(){return y.isBetween}}),Object.defineProperty(e,"isRealNumber",{enumerable:!0,get:function(){return y.isRealNumber}}),i.__exportStar(n(47),e),i.__exportStar(n(32),e)},function(t,e,n){"use strict";n.r(e),n.d(e,"mat3",(function(){return r.a})),n.d(e,"vec2",(function(){return r.b})),n.d(e,"vec3",(function(){return r.c})),n.d(e,"ext",(function(){return i}));var i={};n.r(i),n.d(i,"leftTranslate",(function(){return o})),n.d(i,"leftRotate",(function(){return a})),n.d(i,"leftScale",(function(){return s})),n.d(i,"transform",(function(){return l})),n.d(i,"direction",(function(){return c})),n.d(i,"angleTo",(function(){return u})),n.d(i,"vertical",(function(){return h}));var r=n(16);function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.a.fromTranslation(i,n),r.a.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.a.fromRotation(i,n),r.a.multiply(t,i,e)}function s(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.a.fromScaling(i,n),r.a.multiply(t,i,e)}function l(t,e){for(var n,i,l,c=t?[].concat(t):[1,0,0,0,1,0,0,0,1],u=0,h=e.length;u<h;u++){var f=e[u];switch(f[0]){case"t":o(c,c,[f[1],f[2]]);break;case"s":s(c,c,[f[1],f[2]]);break;case"r":a(c,c,f[1]);break;case"m":n=c,i=c,l=f[1],r.a.multiply(n,l,i)}}return c}function c(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e,n){var i=r.b.angle(t,e),o=c(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i}function h(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"m",(function(){return d})),n.d(e,"l",(function(){return g})),n.d(e,"f",(function(){return y}));var i=n(0);function r(t){var e=0,n=0,r=0,o=0;return Object(i.isNumber)(t)?e=n=r=o=t:Object(i.isArray)(t)&&(e=t[0],r=Object(i.isNil)(t[1])?t[0]:t[1],o=Object(i.isNil)(t[2])?t[0]:t[2],n=Object(i.isNil)(t[3])?r:t[3]),[e,r,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function l(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),i=Math.min.apply(Math,e),r=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function c(t,e,n,i){var r=t+n,o=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var f=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function p(t){var e,n,r,o,a,s=t.getClip(),l=s&&s.getBBox();if(t.isGroup()){var u=1/0,h=-1/0,f=1/0,d=-1/0,g=t.getChildren();g.length>0?Object(i.each)(g,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=p(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),r=t.applyToMatrix([e.maxX,e.minY,1]),o=t.applyToMatrix([e.maxX,e.maxY,1]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),l=Math.min(n[1],i[1],r[1],o[1]),c=Math.max(n[1],i[1],r[1],o[1]);a<u&&(u=a),s>h&&(h=s),l<f&&(f=l),c>d&&(d=c)}})):(u=0,h=0,f=0,d=0),e=c(u,f,h-u,d-f)}else e=t.getBBox();return l?(n=e,r=l,o=Math.max(n.minX,r.minX),a=Math.max(n.minY,r.minY),c(o,a,Math.min(n.maxX,r.maxX)-o,Math.min(n.maxY,r.maxY)-a)):e}function d(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};t.setClip(i)}else t.setClip(null)}}function g(t){return t+"px"}function y(t,e,n,i){var r,o,a,s,l=i/(r=t,a=(o=e).x-r.x,s=o.y-r.y,Math.sqrt(a*a+s*s)),c=0;return"start"===n?c=0-l:"end"===n&&(c=1+l),{x:u(t.x,e.x,c),y:u(t.y,e.y,c)}}},function(t,e,n){"use strict";e.a={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plot=e.PLOT_CONTAINER_OPTIONS=void 0;var i=n(1),r=n(7),o=n(0),a=i.__importDefault(n(44)),s=n(177),l=n(2);e.PLOT_CONTAINER_OPTIONS=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"];var c=function(t){function n(e,n){var i=t.call(this)||this;return i.container="string"==typeof e?document.getElementById(e):e,i.options=l.deepAssign({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return i.__extends(n,t),n.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},n.prototype.createG2=function(){var t=this.options,n=t.width,o=t.height,a=t.defaultInteractions;this.chart=new r.Chart(i.__assign(i.__assign(i.__assign(i.__assign({container:this.container,autoFit:!1},this.getChartSize(n,o)),{localRefresh:!1}),l.pick(this.options,e.PLOT_CONTAINER_OPTIONS)),{defaultInteractions:a})),this.container.setAttribute("data-chart-source-type","G2Plot")},n.prototype.getChartSize=function(t,e){var n=l.getContainerSize(this.container);return{width:t||n.width||400,height:e||n.height||400}},n.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)}))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},n.prototype.update=function(t){this.updateOption(t),this.render()},n.prototype.updateOption=function(t){this.options=l.deepAssign({},this.options,t)},n.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=l.getAllElementsRecursively(this.chart);o.each(i,(function(i){e(i.getData())&&i.setState(t,n)}))},n.prototype.getStates=function(){var t=l.getAllElementsRecursively(this.chart),e=[];return o.each(t,(function(t){var n=t.getData(),i=t.getStates();o.each(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},n.prototype.changeData=function(t){this.update({data:t})},n.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},n.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=i.__spreadArrays(t),r=e.getController("annotation"),o=r.getComponents().map((function(t){return t.extra}));r.clear(!0);for(var a=function(t){var e=o[t],i=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==i&&(e=l.deepAssign({},e,n[i]),n.splice(i,1)),r.annotation(e)},s=0;s<o.length;s++)a(s);n.forEach((function(t){return r.annotation(t)})),e.render(!0)},n.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var i=function(i){var r=n[i];t.find((function(t){return t.id&&t.id===r.id}))||e.annotation(r)},r=0;r<n.length;r++)i(r);this.chart.render(!0)},n.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute("data-chart-source-type")},n.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,i=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=i,t({chart:this.chart,options:this.options})},n.prototype.triggerResize=function(){this.chart.forceFit()},n.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=s.bind(this.container,(function(){var e=l.getContainerSize(t.container),n=e.width,i=e.height;n===t.chart.width&&i===t.chart.height||t.triggerResize()})))}},n.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},n}(a.default);e.Plot=c},function(t,e,n){"use strict";n.r(e),n.d(e,"VIEW_LIFE_CIRCLE",(function(){return f})),n.d(e,"BRUSH_FILTER_EVENTS",(function(){return tl})),n.d(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return Is})),n.d(e,"VERSION",(function(){return bi})),n.d(e,"Chart",(function(){return vn})),n.d(e,"View",(function(){return yn})),n.d(e,"Event",(function(){return ln})),n.d(e,"ComponentController",(function(){return mn})),n.d(e,"TooltipController",(function(){return xn})),n.d(e,"Geometry",(function(){return Wn})),n.d(e,"Element",(function(){return Cn})),n.d(e,"GeometryLabel",(function(){return ti})),n.d(e,"Interaction",(function(){return xe})),n.d(e,"Action",(function(){return Nt})),n.d(e,"Facet",(function(){return Lt})),n.d(e,"InteractionAction",(function(){return Nt})),n.d(e,"registerComponentController",(function(){return an})),n.d(e,"registerGeometry",(function(){return gn})),n.d(e,"registerShape",(function(){return Rn})),n.d(e,"registerShapeFactory",(function(){return Nn})),n.d(e,"getShapeFactory",(function(){return Vn})),n.d(e,"registerGeometryLabel",(function(){return Fn})),n.d(e,"registerGeometryLabelLayout",(function(){return Ln})),n.d(e,"getGeometryLabel",(function(){return Pn})),n.d(e,"getGeometryLabelLayout",(function(){return Tn})),n.d(e,"getInteraction",(function(){return Ee})),n.d(e,"registerInteraction",(function(){return Ie})),n.d(e,"registerAction",(function(){return Gt})),n.d(e,"getActionClass",(function(){return zt})),n.d(e,"getFacet",(function(){return Dt})),n.d(e,"registerFacet",(function(){return Bt})),n.d(e,"getTheme",(function(){return He})),n.d(e,"registerTheme",(function(){return Ue})),n.d(e,"registerEngine",(function(){return O})),n.d(e,"getEngine",(function(){return _})),n.d(e,"registerAnimation",(function(){return On})),n.d(e,"getAnimation",(function(){return _n})),n.d(e,"LAYER",(function(){return s})),n.d(e,"DIRECTION",(function(){return l})),n.d(e,"Coordinate",(function(){return Y})),n.d(e,"Scale",(function(){return N.c})),n.d(e,"Util",(function(){return _i}));var i={};n.r(i),n.d(i,"Base",(function(){return gr})),n.d(i,"Circle",(function(){return yr})),n.d(i,"Ellipse",(function(){return mr})),n.d(i,"Image",(function(){return br})),n.d(i,"Line",(function(){return wr})),n.d(i,"Marker",(function(){return Sr})),n.d(i,"Path",(function(){return kr})),n.d(i,"Polygon",(function(){return Br})),n.d(i,"Polyline",(function(){return Nr})),n.d(i,"Rect",(function(){return Rr})),n.d(i,"Text",(function(){return Vr}));var r={};n.r(r),n.d(r,"Event",(function(){return A.e})),n.d(r,"Base",(function(){return A.d})),n.d(r,"AbstractCanvas",(function(){return A.a})),n.d(r,"AbstractGroup",(function(){return A.b})),n.d(r,"AbstractShape",(function(){return A.c})),n.d(r,"PathUtil",(function(){return A.f})),n.d(r,"getBBoxMethod",(function(){return A.h})),n.d(r,"registerBBox",(function(){return A.n})),n.d(r,"getTextHeight",(function(){return A.j})),n.d(r,"assembleFont",(function(){return A.g})),n.d(r,"isAllowCapture",(function(){return A.l})),n.d(r,"multiplyVec2",(function(){return A.m})),n.d(r,"invert",(function(){return A.k})),n.d(r,"getOffScreenContext",(function(){return A.i})),n.d(r,"registerEasing",(function(){return A.o})),n.d(r,"Canvas",(function(){return Yr})),n.d(r,"Group",(function(){return dr})),n.d(r,"Shape",(function(){return i})),n.d(r,"getArcParams",(function(){return qi})),n.d(r,"version",(function(){return Xr}));var o={};n.r(o),n.d(o,"Base",(function(){return eo})),n.d(o,"Circle",(function(){return no})),n.d(o,"Dom",(function(){return io})),n.d(o,"Ellipse",(function(){return ro})),n.d(o,"Image",(function(){return oo})),n.d(o,"Line",(function(){return ao})),n.d(o,"Marker",(function(){return co})),n.d(o,"Path",(function(){return uo})),n.d(o,"Polygon",(function(){return ho})),n.d(o,"Polyline",(function(){return fo})),n.d(o,"Rect",(function(){return po})),n.d(o,"Text",(function(){return xo}));var a={};n.r(a),n.d(a,"Event",(function(){return A.e})),n.d(a,"Base",(function(){return A.d})),n.d(a,"AbstractCanvas",(function(){return A.a})),n.d(a,"AbstractGroup",(function(){return A.b})),n.d(a,"AbstractShape",(function(){return A.c})),n.d(a,"PathUtil",(function(){return A.f})),n.d(a,"getBBoxMethod",(function(){return A.h})),n.d(a,"registerBBox",(function(){return A.n})),n.d(a,"getTextHeight",(function(){return A.j})),n.d(a,"assembleFont",(function(){return A.g})),n.d(a,"isAllowCapture",(function(){return A.l})),n.d(a,"multiplyVec2",(function(){return A.m})),n.d(a,"invert",(function(){return A.k})),n.d(a,"getOffScreenContext",(function(){return A.i})),n.d(a,"registerEasing",(function(){return A.o})),n.d(a,"Canvas",(function(){return To})),n.d(a,"Group",(function(){return to})),n.d(a,"Shape",(function(){return o})),n.d(a,"version",(function(){return Lo}));var s,l,c,u=n(1),h=n(0);!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(s||(s={})),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"}(l||(l={})),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"}(c||(c={}));var f,p,d,g,y=3,v=2,m=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"}(f||(f={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(p||(p={})),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"}(d||(d={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(g||(g={}));var x=["color","shape","size"],b={};function _(t){var e=b[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function O(t,e){b[t]=e}var w=n(9);function j(t){return"number"==typeof t&&!isNaN(t)}function S(t,e,n,i){var r=n,o=i;if(e){var a=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);r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(j(r)?r:1,1),height:Math.max(j(o)?o:1,1)}}var M=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible,r=void 0===i||i;return n.visible=r,n}return Object(u.__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(44).default),A=n(8),C=n(37),E=function(t,e){return Object(h.isString)(e)?e:t.invert(t.scale(e))},I=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n];return r+((n===e?r:this.values[n+1])-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,r=t.names,o=void 0===r?[]:r,a=t.scales,s=void 0===a?[]:a,l=t.values,c=void 0===l?[]:l,u=t.callback;this.type=i,this.scales=s,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(u){var i=u.apply(void 0,t);if(!Object(h.isNil)(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(h.isArray)(t)?t.map((function(t){return E(e,t)})):E(e,t)},t}(),P=n(17),F=n(26),T=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(h.isString)(n.values)&&(n.linear=!0),n.gradient=F.default.gradient(n.values),n}return Object(P.b)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(I),L=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(P.b)(e,t),e}(I),k=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(P.b)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,i=n[0],r=n[1];return Object(h.isNil)(t)||Object(h.isNil)(e)?[]:[Object(h.isArray)(t)?t.map((function(t){return i.scale(t)})):i.scale(t),Object(h.isArray)(e)?e.map((function(t){return r.scale(t)})):r.scale(e)]},e}(I),D=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(P.b)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(I),B=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(P.b)(e,t),e}(I),N=n(25),R={},V=function(t){return R[t.toLowerCase()]},z=function(t,e){if(V(t))throw new Error("Attribute type '"+t+"' existed.");R[t.toLowerCase()]=e};z("Color",T),z("Opacity",L),z("Position",k),z("Shape",D),z("Size",B);var G=n(3),Y=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,r=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=r,this.originalMatrix=Object(u.__spreadArray)([],r),this.isTransposed=a}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){Object(h.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(r=(n=[o,r])[0],o=n[1]),r+t*(o-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(r=(n=[o,r])[0],o=n[1]),(t-r)/(o-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=[t,e,n];return G.vec3.transformMat3(r,r,i),r},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=G.mat3.invert([0,0,0,0,0,0,0,0,0],i),o=[t,e,n];return r&&G.vec3.transformMat3(o,o,r),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return G.ext.leftTranslate(e,e,[-n.x,-n.y]),G.ext.leftRotate(e,e,t),G.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,i=this.center;return G.ext.leftTranslate(n,n,[-i.x,-i.y]),G.ext.leftScale(n,n,[t,e]),G