@pisell/charts-materials 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ !function t(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ChartsMaterials=n():e.ChartsMaterials=n()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function e(){return t.default}:function e(){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=111)}([function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"A",(function(){return a})),n.d(e,"i",(function(){return u})),n.d(e,"m",(function(){return T})),n.d(e,"n",(function(){return I})),n.d(e,"o",(function(){return L})),n.d(e,"q",(function(){return D})),n.d(e,"u",(function(){return G})),n.d(e,"ib",(function(){return Q})),n.d(e,"jb",(function(){return tt})),n.d(e,"ob",(function(){return rt})),n.d(e,"ub",(function(){return it})),n.d(e,"yb",(function(){return ct})),n.d(e,"z",(function(){return st})),n.d(e,"U",(function(){return lt})),n.d(e,"l",(function(){return s})),n.d(e,"k",(function(){return gt})),n.d(e,"nb",(function(){return vt})),n.d(e,"v",(function(){return jt})),n.d(e,"w",(function(){return xt})),n.d(e,"x",(function(){return Ot})),n.d(e,"c",(function(){return Ft})),n.d(e,"p",(function(){return Bt})),n.d(e,"N",(function(){return $t})),n.d(e,"Y",(function(){return N})),n.d(e,"Z",(function(){return Qt})),n.d(e,"bb",(function(){return z})),n.d(e,"cb",(function(){return Jt})),n.d(e,"eb",(function(){return ee})),n.d(e,"sb",(function(){return se})),n.d(e,"r",(function(){return le})),n.d(e,"y",(function(){return he})),n.d(e,"T",(function(){return j})),n.d(e,"J",(function(){return M})),n.d(e,"xb",(function(){return pe})),n.d(e,"V",(function(){return ve})),n.d(e,"pb",(function(){return Oe})),n.d(e,"wb",(function(){return Se})),n.d(e,"C",(function(){return v})),n.d(e,"D",(function(){return Ie})),n.d(e,"E",(function(){return Le})),n.d(e,"I",(function(){return d})),n.d(e,"K",(function(){return y})),n.d(e,"L",(function(){return Ne})),n.d(e,"M",(function(){return Rt})),n.d(e,"O",(function(){return m})),n.d(e,"P",(function(){return E})),n.d(e,"Q",(function(){return et})),n.d(e,"R",(function(){return p})),n.d(e,"S",(function(){return Xe})),n.d(e,"F",(function(){return qe})),n.d(e,"kb",(function(){return Ue})),n.d(e,"d",(function(){return Ke})),n.d(e,"e",(function(){return nn})),n.d(e,"g",(function(){return on})),n.d(e,"ab",(function(){return an})),n.d(e,"h",(function(){return un})),n.d(e,"j",(function(){return x})),n.d(e,"B",(function(){return dn})),n.d(e,"G",(function(){return vn})),n.d(e,"H",(function(){return bn})),n.d(e,"W",(function(){return jn})),n.d(e,"X",(function(){return Mn})),n.d(e,"db",(function(){return Qe})),n.d(e,"b",(function(){return Qe})),n.d(e,"s",(function(){return Sn})),n.d(e,"lb",(function(){return Cn})),n.d(e,"hb",(function(){return En})),n.d(e,"gb",(function(){return kn})),n.d(e,"qb",(function(){return Tn})),n.d(e,"rb",(function(){return Pn})),n.d(e,"tb",(function(){return ge})),n.d(e,"vb",(function(){return Fn})),n.d(e,"fb",(function(){return Ln})),n.d(e,"mb",(function(){return Dn})),n.d(e,"t",(function(){return zn})),n.d(e,"a",(function(){return Gn}));var r,i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},o,a=function(t,e){return!!i(t)&&t.indexOf(e)>-1},c,s=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},l,u=function(t,e){return void 0===e&&(e=[]),s(t,(function(t){return!a(e,t)}))},h={}.toString,f,p=function(t,e){return h.call(t)==="[object "+e+"]"},d=function(t){return p(t,"Function")},g,y=function(t){return null==t},v=function(t){return Array.isArray?Array.isArray(t):p(t,"Array")},m=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(v(t))for(var r=0,i=t.length;r<i&&!1!==(n=e(t[r],r));r++);else if(m(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===(n=e(t[o],o)))break}var x=b,O,j=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(r)})),e};function w(t,e){var n=j(e),r=n.length;if(y(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0}var M=w,S,C=function(t){return"object"==typeof t&&null!==t},A,E=function(t){if(!C(t)||!p(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 k(t,e){if(!v(t))return null;var n;if(d(e)&&(n=e),E(e)&&(n=function(t){return M(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}var T=k;function P(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}var I=P,F,L=function(t,e){for(var n=null,r=0;r<t.length;r++){var i,o=t[r][e];if(!y(o)){n=v(o)?o[0]:o;break}}return n},B,D=function(t){if(!v(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},R=function(t,e){if(void 0===e&&(e=[]),v(t))for(var n=0;n<t.length;n+=1)R(t[n],e);else e.push(t);return e},_=R,N=function(t){if(v(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},z=function(t){if(v(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},Y,G=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(v(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=N(e),o;return{min:z(e),max:i}},H=Array.prototype,V=H.splice,W=H.indexOf,X,$=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var i=e[r],o=-1;(o=W.call(t,i))>-1;)V.call(t,o,1);return t},q=Array.prototype.splice,U,K=function t(e,n){if(!i(e))return[];for(var r=e?n.length:0,o=r-1;r--;){var a=void 0,c=n[r];r!==o&&c===a||(a=c,q.call(e,c,1))}return e},Z,Q=function(t,e,n){if(!v(t)&&!E(t))return t;var r=n;return x(t,(function(t,n){r=e(r,t,n)})),r},J,tt=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,o=[],a=t.length;++r<a;){var c=t[r];e(c,r,t)&&(n.push(c),o.push(r))}return K(t,o),n},et=function(t){return p(t,"String")};function nt(t,e){var n;if(d(e))n=function(t,n){return e(t)-e(n)};else{var r=[];et(e)?r.push(e):v(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}var rt=nt;function it(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var ot,at=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return it([].concat.apply([],t))},ct=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o,a=t[i][e];if(!y(a)){v(a)||(a=[a]);for(var c=0;c<a.length;c++){var s=a[c];r[s]||(n.push(s),r[s]=!0)}}}return n};function st(t){if(i(t))return t[0]}function lt(t){if(i(t)){var e=t;return t[t.length-1]}}function ut(t,e){return!(!v(t)&&!et(t))&&t[0]===e}var ht=ut;function ft(t,e){return!(!v(t)&&!et(t))&&t[t.length-1]===e}var pt=ft,dt,gt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},yt,vt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},mt=Object.prototype.hasOwnProperty;function bt(t,e){if(!e||!v(t))return{};for(var n={},r=d(e)?e:function(t){return t[e]},i,o=0;o<t.length;o++){var a=t[o];i=r(a),mt.call(n,i)?n[i].push(a):n[i]=[a]}return n}var xt=bt;function Ot(t,e){if(!e)return{0:t};if(!d(e)){var n=v(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return xt(t,e)}var jt=function(t,e){if(!e)return[t];var n=Ot(t,e),r=[];for(var i in n)r.push(n[i]);return r};function wt(t,e){return t["_wrap_"+e]}var Mt=wt;function St(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}var Ct=St,At={};function Et(t){var e=At[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,At[t]=e}return e}var kt=Et;function Tt(t){var e=0,n=0,r=0,i=0;return v(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}var Pt=Tt,It,Ft=function(t,e,n){return t<e?e:t>n?n:t},Lt,Bt=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},Dt,Rt=function(t){return p(t,"Number")},_t,Nt=function(t){return Rt(t)&&t%1!=0},zt,Yt=function(t){return Rt(t)&&t%2==0},Gt,Ht=Number.isInteger?Number.isInteger:function(t){return Rt(t)&&t%1==0},Vt,Wt=function(t){return Rt(t)&&t<0},Xt=1e-5;function $t(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var qt,Ut=function(t){return Rt(t)&&t%2!=0},Kt,Zt=function(t){return Rt(t)&&t>0},Qt=function(t,e){if(v(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},Jt=function(t,e){if(v(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},te,ee=function(t,e){return(t%e+e)%e},ne=180/Math.PI,re,ie=function(t){return ne*t},oe=parseInt,ae=Math.PI/180,ce,se=function(t){return ae*t},le=x,ue,he=function(t,e){return t.hasOwnProperty(e)},fe,pe=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(n)})),e},de=function(t,e){return a(pe(t),e)},ge=function(t){return y(t)?"":t.toString()},ye,ve=function(t){return ge(t).toLowerCase()},me,be=function(t){var e=ge(t);return e.charAt(0).toLowerCase()+e.substring(1)};function xe(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}var Oe=xe,je,we=function(t){return ge(t).toUpperCase()},Me,Se=function(t){var e=ge(t);return e.charAt(0).toUpperCase()+e.substring(1)},Ce={}.toString,Ae,Ee=function(t){return Ce.call(t).replace(/^\[object /,"").replace(/]$/,"")},ke,Te=function(t){return p(t,"Arguments")},Pe,Ie=function(t){return p(t,"Boolean")},Fe,Le=function(t){return p(t,"Date")},Be,De=function(t){return p(t,"Error")},Re=function(t){return Rt(t)&&isFinite(t)},_e,Ne=function(t){return null===t},ze=Object.prototype,Ye,Ge=function(t){var e=t&&t.constructor,n;return t===("function"==typeof e&&e.prototype||ze)},He,Ve=function(t){return p(t,"RegExp")},We,Xe=function(t){return void 0===t},$e,qe=function(t){return t instanceof Element||t instanceof HTMLDocument};function Ue(t){var e;return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Ke(t){var e;(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Ze(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Qe(t,e,n,r){return e&&Ze(t,e),n&&Ze(t,n),r&&Ze(t,r),t}var Je,tn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var i=t[r];d(i)&&(i=i.prototype),Qe(n.prototype,i)}},en=function(t){if("object"!=typeof t||null===t)return t;var e;if(v(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=en(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=en(t[i]):e[i]=t[i];return e},nn=en;function rn(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},c=n&&!r;clearTimeout(r),r=setTimeout(a,e),c&&t.apply(i,o)}}var on=rn,an=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var c=t.apply(this,r);return a.set(o,c),c};return n.cache=new Map,n},cn=5;function sn(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&E(o)?(E(t[i])||(t[i]={}),n<r?sn(t[i],o,n+1,r):t[i]=e[i]):v(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var ln,un=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)sn(t,e[r]);return t},hn,fn=function(t,e,n,r){d(e)||(n=e,e=t,t=function(){});var i=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},o=i(e.prototype,t);return t.prototype=Qe(o,t.prototype),t.superclass=i(e.prototype,e),Qe(o,n),Qe(t,r),t},pn,dn=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},gn=Object.prototype.hasOwnProperty;function yn(t){if(y(t))return!0;if(i(t))return!t.length;var e=Ee(t);if("Map"===e||"Set"===e)return!t.size;if(Ge(t))return!Object.keys(t).length;for(var n in t)if(gn.call(t,n))return!1;return!0}var vn=yn,mn=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(et(t)||et(e))return!1;if(i(t)||i(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=mn(t[r],e[r]));r++);return n}if(C(t)||C(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var n=!0,r=0;r<o.length&&(n=mn(t[o[r]],e[o[r]]));r++);return n}return!1},bn=mn,xn=function(t,e,n){return d(n)?!!n(t,e):bn(t,e)},On,jn=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},wn=function(t){return t},Mn=function(t,e){void 0===e&&(e=wn);var n={};return m(t)&&!y(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},Sn=function(t,e,n){for(var r=0,i=et(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Cn=function(t,e,n){var r=t,i=et(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(m(r[t])||(r[t]=Rt(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},An=Object.prototype.hasOwnProperty,En=function(t,e){if(null===t||!E(t))return{};var n={};return x(e,(function(e){An.call(t,e)&&(n[e]=t[e])})),n},kn=function(t,e){return Q(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},Tn=function(t,e,n){var r,i,o,a,c=0;n||(n={});var s=function(){c=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();c||!1!==n.leading||(c=l);var u=e-(l-c);return i=this,o=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),c=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(s,u)),a};return l.cancel=function(){clearTimeout(r),c=0,r=i=o=null},l},Pn=function(t){return i(t)?Array.prototype.slice.call(t):[]},In={},Fn=function(t){return In[t=t||"g"]?In[t]+=1:In[t]=1,t+In[t]},Ln=function(){},Bn=function(t){return t};function Dn(t){return y(t)?0:i(t)?t.length:Object.keys(t).length}var Rn=n(2),_n,Nn=an((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return _n||(_n=document.createElement("canvas").getContext("2d")),_n.font=[o,a,i,n+"px",r].join(" "),_n.measureText(et(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Rn.e)([t],pe(e)).join("")})),zn=function(t,e,n,r){void 0===r&&(r="...");var i=16,o=Nn(r,n),a=et(t)?t:ge(t),c=e,s=[],l,u;if(Nn(t,n)<=e)return t;for(;l=a.substr(0,16),!((u=Nn(l,n))+o>c&&u>c);)if(s.push(l),c-=u,!(a=a.substr(16)))return s.join("");for(;l=a.substr(0,1),!((u=Nn(l,n))+o>c);)if(s.push(l),c-=u,!(a=a.substr(1)))return s.join("");return""+s.join("")+r},Yn,Gn=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";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return g})),n.d(e,"i",(function(){return m})),n.d(e,"e",(function(){return b})),n.d(e,"h",(function(){return O})),n.d(e,"g",(function(){return j}));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 i(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 o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function c(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var c=r.kind,s="getter"===c?"get":"setter"===c?"set":"value",l=!e&&t?r.static?t:t.prototype:null,u=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),h,f=!1,p=n.length-1;p>=0;p--){var d={};for(var g in r)d[g]="access"===g?{}:r[g];for(var g in r.access)d.access[g]=r.access[g];d.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var y=(0,n[p])("accessor"===c?{get:u.get,set:u.set}:u[s],d);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(h=a(y.get))&&(u.get=h),(h=a(y.set))&&(u.set=h),(h=a(y.init))&&i.unshift(h)}else(h=a(y))&&("field"===c?i.unshift(h):u[s]=h)}l&&Object.defineProperty(l,r.name,u),f=!0}function u(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function h(t){return"symbol"==typeof t?t:"".concat(t)}function f(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function p(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function c(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function g(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=2&c[0]?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){n=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(6===c[0]&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t],i=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var y=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function v(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||y(e,t,n)}function m(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function O(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}function j(t,e,n){if(n||2===arguments.length)for(var r=0,i=e.length,o;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function M(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(t){return function(e){return Promise.resolve(e).then(t,h)}}function c(t,e){r[t]&&(i[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))},e&&(i[t]=e(i[t])))}function s(t,e){try{l(r[t](e))}catch(t){f(o[0][3],t)}}function l(t){t.value instanceof w?Promise.resolve(t.value.v).then(u,h):f(o[0][2],t)}function u(t){s("next",t)}function h(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:w(t[r](e)),done:!1}:i?i(e):e}:i}}function C(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=m(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function A(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},k=function(t){return(k=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e})(t)};function T(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=k(t),r=0;r<n.length;r++)"default"!==n[r]&&y(e,t,n[r]);return E(e,t),e}function P(t){return t&&t.__esModule?t:{default:t}}function I(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function F(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function L(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function B(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var D="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function R(t){function e(e){t.error=t.hasError?new D(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,(function(t){return e(t),i()}))}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return i()}function _(t,e){return"string"==typeof t&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(t,n,r,i,o){return n?e?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":t})):t}var N=i,z=o,Y=a,G=c,H=s,V=l,W=u,X=h,$=f,q=p,U=d,K=g,Z=y,Q=v,J=m,tt=b,et=x,nt=O,rt=j,it=w,ot=M,at=S,ct=C,st=A,lt=T,ut=P,ht=I,ft=F,pt=L,dt=B,gt=R,yt=_},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return O})),n.d(e,"d",(function(){return j}));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 i(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 o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function c(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var c=r.kind,s="getter"===c?"get":"setter"===c?"set":"value",l=!e&&t?r.static?t:t.prototype:null,u=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),h,f=!1,p=n.length-1;p>=0;p--){var d={};for(var g in r)d[g]="access"===g?{}:r[g];for(var g in r.access)d.access[g]=r.access[g];d.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var y=(0,n[p])("accessor"===c?{get:u.get,set:u.set}:u[s],d);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(h=a(y.get))&&(u.get=h),(h=a(y.set))&&(u.set=h),(h=a(y.init))&&i.unshift(h)}else(h=a(y))&&("field"===c?i.unshift(h):u[s]=h)}l&&Object.defineProperty(l,r.name,u),f=!0}function u(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function h(t){return"symbol"==typeof t?t:"".concat(t)}function f(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function p(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function c(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function g(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=2&c[0]?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){n=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(6===c[0]&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t],i=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var y=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function v(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||y(e,t,n)}function m(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function O(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}function j(t,e,n){if(n||2===arguments.length)for(var r=0,i=e.length,o;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function M(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(t){return function(e){return Promise.resolve(e).then(t,h)}}function c(t,e){r[t]&&(i[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))},e&&(i[t]=e(i[t])))}function s(t,e){try{l(r[t](e))}catch(t){f(o[0][3],t)}}function l(t){t.value instanceof w?Promise.resolve(t.value.v).then(u,h):f(o[0][2],t)}function u(t){s("next",t)}function h(t){s("throw",t)}function f(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:w(t[r](e)),done:!1}:i?i(e):e}:i}}function C(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=m(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function A(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},k=function(t){return(k=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e})(t)};function T(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=k(t),r=0;r<n.length;r++)"default"!==n[r]&&y(e,t,n[r]);return E(e,t),e}function P(t){return t&&t.__esModule?t:{default:t}}function I(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function F(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function L(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function B(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var D="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function R(t){function e(e){t.error=t.hasError?new D(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,(function(t){return e(t),i()}))}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return i()}function _(t,e){return"string"==typeof t&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(t,n,r,i,o){return n?e?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":t})):t}var N=i,z=o,Y=a,G=c,H=s,V=l,W=u,X=h,$=f,q=p,U=d,K=g,Z=y,Q=v,J=m,tt=b,et=x,nt=O,rt=j,it=w,ot=M,at=S,ct=C,st=A,lt=T,ut=P,ht=I,ft=F,pt=L,dt=B,gt=R,yt=_},function(t,e){t.exports=window.React},function(t,e,n){"use strict";n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return i.b})),n.d(e,"d",(function(){return i.c})),n.d(e,"a",(function(){return r}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return o})),n.d(r,"leftRotate",(function(){return a})),n.d(r,"leftScale",(function(){return c})),n.d(r,"transform",(function(){return l})),n.d(r,"direction",(function(){return u})),n.d(r,"angleTo",(function(){return h})),n.d(r,"vertical",(function(){return f}));var i=n(8);function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromTranslation(r,n),i.a.multiply(t,r,e)}function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromRotation(r,n),i.a.multiply(t,r,e)}function c(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromScaling(r,n),i.a.multiply(t,r,e)}function s(t,e,n){return i.a.multiply(t,n,e)}function l(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var l=e[r];switch(l[0]){case"t":o(n,n,[l[1],l[2]]);break;case"s":c(n,n,[l[1],l[2]]);break;case"r":a(n,n,l[1]);break;case"m":s(n,n,l[1])}}return n}function u(t,e){return t[0]*e[1]-e[0]*t[1]}function h(t,e,n){var r=i.b.angle(t,e),o=u(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function f(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 i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return c})),n.d(e,"j",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return v})),n.d(e,"m",(function(){return m})),n.d(e,"l",(function(){return b})),n.d(e,"f",(function(){return x}));var r=n(0);function i(t){var e=0,n=0,i=0,o=0;return Object(r.M)(t)?e=n=i=o=t:Object(r.C)(t)&&(e=t[0],i=Object(r.K)(t[1])?t[0]:t[1],o=Object(r.K)(t[2])?t[0]:t[2],n=Object(r.K)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n,r=e.length-1;r>=0;r--)t.removeChild(e[r])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function c(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function s(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,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}}function f(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}var p=function(t){return new Promise((function(e){setTimeout(e,t)}))},d=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 g(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i,o;return l(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}function y(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i,o;return l(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)}function v(t){var e=t.getClip(),n=e&&e.getBBox(),i;if(t.isGroup()){var o=1/0,a=-1/0,c=1/0,s=-1/0,u=t.getChildren();u.length>0?Object(r.j)(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=v(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],r[0],i[0],l[0]),h=Math.max(n[0],r[0],i[0],l[0]),f=Math.min(n[1],r[1],i[1],l[1]),p=Math.max(n[1],r[1],i[1],l[1]);u<o&&(o=u),h>a&&(a=h),f<c&&(c=f),p>s&&(s=p)}})):(o=0,a=0,c=0,s=0),i=l(o,c,a-o,s-c)}else i=t.getBBox();return n?g(i,n):i}function m(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function b(t){return t+"px"}function x(t,e,n,r){var i,o=r/f(t,e),a=0;return"start"===n?a=0-o:"end"===n&&(a=1+o),{x:u(t.x,e.x,a),y:u(t.y,e.y,a)}}},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";n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"j",(function(){return l}));var r=n(0);function i(){return window?window.devicePixelRatio:1}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function c(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function s(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return r.K})),n.d(e,"k",(function(){return r.Q})),n.d(e,"h",(function(){return r.I})),n.d(e,"g",(function(){return r.C})),n.d(e,"c",(function(){return r.j})),n.d(e,"o",(function(){return r.sb})),n.d(e,"m",(function(){return r.eb})),n.d(e,"n",(function(){return r.kb})),n.d(e,"a",(function(){return r.d}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return R})),n.d(e,"c",(function(){return _}));var r={};n.r(r),n.d(r,"create",(function(){return o})),n.d(r,"fromMat4",(function(){return a})),n.d(r,"clone",(function(){return c})),n.d(r,"copy",(function(){return s})),n.d(r,"fromValues",(function(){return l})),n.d(r,"set",(function(){return u})),n.d(r,"identity",(function(){return h})),n.d(r,"transpose",(function(){return f})),n.d(r,"invert",(function(){return p})),n.d(r,"adjoint",(function(){return d})),n.d(r,"determinant",(function(){return g})),n.d(r,"multiply",(function(){return y})),n.d(r,"translate",(function(){return v})),n.d(r,"rotate",(function(){return m})),n.d(r,"scale",(function(){return b})),n.d(r,"fromTranslation",(function(){return x})),n.d(r,"fromRotation",(function(){return O})),n.d(r,"fromScaling",(function(){return j})),n.d(r,"fromMat2d",(function(){return w})),n.d(r,"fromQuat",(function(){return M})),n.d(r,"normalFromMat4",(function(){return S})),n.d(r,"projection",(function(){return C})),n.d(r,"str",(function(){return A})),n.d(r,"frob",(function(){return E})),n.d(r,"add",(function(){return k})),n.d(r,"subtract",(function(){return T})),n.d(r,"multiplyScalar",(function(){return P})),n.d(r,"multiplyScalarAndAdd",(function(){return I})),n.d(r,"exactEquals",(function(){return F})),n.d(r,"equals",(function(){return L})),n.d(r,"mul",(function(){return B})),n.d(r,"sub",(function(){return D}));var i=n(17);function o(){var t=new i.a(9);return i.a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function c(t){var e=new i.a(9);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[8]=t[8],e}function s(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}function l(t,e,n,r,o,a,c,s,l){var u=new i.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=c,u[7]=s,u[8]=l,u}function u(t,e,n,r,i,o,a,c,s,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=c,t[7]=s,t[8]=l,t}function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function f(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8],h=u*a-c*l,f=-u*o+c*s,p=l*o-a*s,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-u*r+i*l)*d,t[2]=(c*r-i*a)*d,t[3]=f*d,t[4]=(u*n-i*s)*d,t[5]=(-c*n+i*o)*d,t[6]=p*d,t[7]=(-l*n+r*s)*d,t[8]=(a*n-r*o)*d,t):null}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8];return t[0]=a*u-c*l,t[1]=i*l-r*u,t[2]=r*c-i*a,t[3]=c*s-o*u,t[4]=n*u-i*s,t[5]=i*o-n*c,t[6]=o*l-a*s,t[7]=r*s-n*l,t[8]=n*a-r*o,t}function g(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],c=t[6],s=t[7],l=t[8];return e*(l*o-a*s)+n*(-l*i+a*c)+r*(s*i-o*c)}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],b=n[7],x=n[8];return t[0]=f*r+p*a+d*l,t[1]=f*i+p*c+d*u,t[2]=f*o+p*s+d*h,t[3]=g*r+y*a+v*l,t[4]=g*i+y*c+v*u,t[5]=g*o+y*s+v*h,t[6]=m*r+b*a+x*l,t[7]=m*i+b*c+x*u,t[8]=m*o+b*s+x*h,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=c,t[5]=s,t[6]=f*r+p*a+l,t[7]=f*i+p*c+u,t[8]=f*o+p*s+h,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*a,t[1]=p*i+f*c,t[2]=p*o+f*s,t[3]=p*a-f*r,t[4]=p*c-f*i,t[5]=p*s-f*o,t[6]=l,t[7]=u,t[8]=h,t}function b(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function x(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function O(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function j(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function M(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,c=r+r,s=i+i,l=n*a,u=r*a,h=r*c,f=i*a,p=i*c,d=i*s,g=o*a,y=o*c,v=o*s;return t[0]=1-h-d,t[3]=u-v,t[6]=f+y,t[1]=u+v,t[4]=1-l-d,t[7]=p-g,t[2]=f-y,t[5]=p+g,t[8]=1-l-h,t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*c-r*a,b=n*s-i*a,x=n*l-o*a,O=r*s-i*c,j=r*l-o*c,w=i*l-o*s,M=u*g-h*d,S=u*y-f*d,C=u*v-p*d,A=h*y-f*g,E=h*v-p*g,k=f*v-p*y,T=m*k-b*E+x*A+O*C-j*S+w*M;return T?(T=1/T,t[0]=(c*k-s*E+l*A)*T,t[1]=(s*C-a*k-l*S)*T,t[2]=(a*E-c*C+l*M)*T,t[3]=(i*E-r*k-o*A)*T,t[4]=(n*k-i*C+o*S)*T,t[5]=(r*C-n*E-o*M)*T,t[6]=(g*w-y*j+v*O)*T,t[7]=(y*x-d*w-v*b)*T,t[8]=(d*j-g*x+v*m)*T,t):null}function C(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function A(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function E(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function k(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function T(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function P(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function I(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function F(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]}function L(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],c=t[4],s=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-f)<=i.b*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-p)<=i.b*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(o-d)<=i.b*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-g)<=i.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(c-y)<=i.b*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(s-v)<=i.b*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-m)<=i.b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=i.b*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=i.b*Math.max(1,Math.abs(h),Math.abs(x))}var B=y,D=T,R=n(49),_=n(57)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},o=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return x}));var r=n(33);n.d(e,"PathUtil",(function(){return r}));var i=n(71),o=n.n(i);for(var a in i)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var c=n(72),s=n.n(c);for(var a in c)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(a);var l=n(55);n.d(e,"Event",(function(){return l.a}));var u=n(56);n.d(e,"Base",(function(){return u.a}));var h=n(81);n.d(e,"AbstractCanvas",(function(){return h.a}));var f=n(73);n.d(e,"AbstractGroup",(function(){return f.a}));var p=n(74);n.d(e,"AbstractShape",(function(){return p.a}));var d=n(68);n.d(e,"getBBoxMethod",(function(){return d.a})),n.d(e,"registerBBox",(function(){return d.b}));var g=n(38);n.d(e,"getTextHeight",(function(){return g.b})),n.d(e,"assembleFont",(function(){return g.a}));var y=n(15);n.d(e,"isAllowCapture",(function(){return y.b}));var v=n(26);n.d(e,"multiplyVec2",(function(){return v.c})),n.d(e,"invert",(function(){return v.a}));var m=n(58);n.d(e,"getOffScreenContext",(function(){return m.a}));var b=n(60);n.d(e,"registerEasing",(function(){return b.b}));var x="0.5.11"},function(t,e,n){"use strict";function r(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var i,o,a,c;function s(){i=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,c={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")}}function l(t){i||s();var e=a.test(t)&&RegExp.$1;e&&e in c||(e="*");var n=c[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function u(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}function h(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function f(t,e){var n=h(t,e),r=parseFloat(u(t,"borderTopWidth"))||0,i=parseFloat(u(t,"paddingTop"))||0,o=parseFloat(u(t,"paddingBottom"))||0,a,c,s;return n+r+(parseFloat(u(t,"borderBottomWidth"))||0)+i+o+(parseFloat(u(t,"marginTop"))||0)+(parseFloat(u(t,"marginBottom"))||0)}function p(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=p(t,e),r=parseFloat(u(t,"borderLeftWidth"))||0,i=parseFloat(u(t,"paddingLeft"))||0,o=parseFloat(u(t,"paddingRight"))||0,a=parseFloat(u(t,"borderRightWidth"))||0,c=parseFloat(u(t,"marginRight"))||0,s;return n+r+a+i+o+(parseFloat(u(t,"marginLeft"))||0)+c}function g(){return window.devicePixelRatio?window.devicePixelRatio:2}function y(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return y}))},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(59),a=n(20),c=n(5),s=n(44),l="update_status",u=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){var t;this.clear(),this.get("group").remove()},e.prototype.clear=function(){var t;this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n;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 Object(i.j)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t;this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){var t;this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e;this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a.a)(n,e)),e},e.prototype.on=function(t,e,n){var r;return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){var n;this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o.a)(n,t,e)},e.prototype.createOffScreenGroup=function(){var t,e,n;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",Object(c.d)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,o=Object(r.f)(e,["id","component"]),a=new i(Object(r.a)(Object(r.a)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t;this.get("group").off()},e.prototype.getElementId=function(t){var e,n;return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a.f)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.K)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n=this,r=this.get("animate"),o=this.get("animateOption"),a=t.getChildren().slice(0),s;Object(i.j)(a,(function(t){var a=t.get("id"),f=n.getElementById(a),p=t.get("name");if(f)if(t.get("isComponent")){var d=t.get("component"),g=f.get("component"),y=Object(i.hb)(d.cfg,Object(i.i)(Object(i.T)(d.cfg),h));g.update(y),f.set(l,"update")}else{var v=n.getReplaceAttrs(f,t);r&&o.update?n.updateAnimation(p,f,v,o.update):f.attr(v),t.isGroup()&&n.updateElements(t,f),Object(i.j)(u,(function(e){f.set(e,t.get(e))})),Object(c.m)(f,t),s=f,f.set(l,"update")}else{e.add(t);var m=e.getChildren(),d;if(m.splice(m.length-1,1),s){var b=m.indexOf(s);m.splice(b+1,0,t)}else m.unshift(t);if(n.registerElement(t),t.set(l,"add"),t.get("isComponent"))(d=t.get("component")).set("container",e);else t.isGroup()&&n.registerNewGroup(t);if(s=t,r){var x=n.get("isInit")?o.appear:o.enter;x&&n.addAnimation(p,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.j)(e,(function(t){t.set(l,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,e,n;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(i.db)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.j)(n,(function(t){e.registerElement(t),t.set(l,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.j)(e,(function(t,e){!t.get(l)||t.destroyed?n.push([e,t]):t.set(l,null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.j)(n,(function(n){var a=n[0],c=n[1];if(!c.destroyed){var s=c.get("name");if(r&&o.leave){var l=Object(i.db)({callback:function(){t.removeElement(c)}},o.leave);t.removeAnimation(s,c,l)}else t.removeElement(c)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(s.a);e.a=f},,function(t,e,n){"use strict";var r=n(82);n.d(e,"Annotation",(function(){return r}));var i=n(83);n.d(e,"Axis",(function(){return i}));var o=n(85);n.d(e,"Crosshair",(function(){return o}));var a=n(87);n.d(e,"Grid",(function(){return a}));var c=n(88);n.d(e,"Legend",(function(){return c}));var s=n(89);n.d(e,"Tooltip",(function(){return s}));var l=n(44),u=n(12),h=n(35),f=n(86);n.d(e,"Slider",(function(){return f.a}));var p=n(91);n.d(e,"Scrollbar",(function(){return p.a}));var d=n(75),g=n.n(d),y=n(76),v=n.n(y),m=n(59);n.d(e,"propagationDelegate",(function(){return m.a}));var b=n(19);n.d(e,"TOOLTIP_CSS_CONST",(function(){return b}))},function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n(0);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return r.K})),n.d(e,"d",(function(){return r.I})),n.d(e,"h",(function(){return r.Q})),n.d(e,"f",(function(){return r.O})),n.d(e,"i",(function(){return r.db})),n.d(e,"a",(function(){return r.j})),n.d(e,"k",(function(){return r.wb}));var o="undefined"!=typeof window&&void 0!==window.document;function a(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function c(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";n.d(e,"e",(function(){return x})),n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return H})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return U})),n.d(e,"f",(function(){return r}));var r={};n.r(r),n.d(r,"distance",(function(){return o})),n.d(r,"isNumberEqual",(function(){return a})),n.d(r,"getBBoxByArray",(function(){return c})),n.d(r,"getBBoxRange",(function(){return s})),n.d(r,"piMod",(function(){return l}));var i=n(0);function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function c(t,e){var n=Object(i.bb)(t),r=Object(i.bb)(e),o,a;return{x:n,y:r,width:Object(i.Y)(t)-n,height:Object(i.Y)(e)-r}}function s(t,e,n,r){return{minX:Object(i.bb)([t,n]),maxX:Object(i.Y)([t,n]),minY:Object(i.bb)([e,r]),maxY:Object(i.Y)([e,r])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var u=n(49),h={box:function(t,e,n,r){return c([t,n],[e,r])},length:function(t,e,n,r){return o(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,a){var c=(n-t)*(i-t)+(r-e)*(a-e),s;return c<0?o(t,e,i,a):c>(n-t)*(n-t)+(r-e)*(r-e)?o(n,r,i,a):this.pointToLine(t,e,n,r,i,a)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(u.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var c=[-a[1],a[0]];u.normalize(c,c);var s=[i-t,o-e];return Math.abs(u.dot(s,c))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}},f=1e-4;function p(t,e,n,r,i,a){var c,s=1/0,l=[n,r],u=20;a&&a>200&&(u=a/10);for(var h=1/u,f=h/10,p=0;p<=u;p++){var d=p*h,g=[i.apply(null,t.concat([d])),i.apply(null,e.concat([d]))],y;(y=o(l[0],l[1],g[0],g[1]))<s&&(c=d,s=y)}if(0===c)return{x:t[0],y:e[0]};if(1===c){var v=t.length;return{x:t[v-1],y:e[v-1]}}s=1/0;for(var p=0;p<32&&!(f<1e-4);p++){var m=c-f,b=c+f,g=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],y=o(l[0],l[1],g[0],g[1]);if(m>=0&&y<s)c=m,s=y;else{var x=[i.apply(null,t.concat([b])),i.apply(null,e.concat([b]))],O=o(l[0],l[1],x[0],x[1]);b<=1&&O<s?(c=b,s=O):f*=.5}}return{x:i.apply(null,t.concat([c])),y:i.apply(null,e.concat([c]))}}function d(t,e){for(var n=0,r=t.length,i=0;i<r;i++){var a,c,s,l;n+=o(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}function g(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function y(t,e,n){var r=t+n-2*e;if(a(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function m(t,e,n,r,i,o,a){var c=g(t,n,i,a),s=g(e,r,o,a),l=h.pointAt(t,e,n,r,a),u=h.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,c,s],[c,s,u.x,u.y,i,o]]}function b(t,e,n,r,i,a,c){if(0===c)return(o(t,e,n,r)+o(n,r,i,a)+o(t,e,i,a))/2;var s=m(t,e,n,r,i,a,.5),l=s[0],u=s[1];return l.push(c-1),u.push(c-1),b.apply(null,l)+b.apply(null,u)}var x={box:function(t,e,n,r,i,o){var a=y(t,n,i)[0],s=y(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(g(t,n,i,a)),void 0!==s&&u.push(g(e,r,o,s)),c(l,u)},length:function(t,e,n,r,i,o){return b(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,c){return p([t,n,i],[e,r,o],a,c,g)},pointDistance:function(t,e,n,r,i,a,c,s){var l=this.nearestPoint(t,e,n,r,i,a,c,s);return o(l.x,l.y,c,s)},interpolationAt:g,pointAt:function(t,e,n,r,i,o,a){return{x:g(t,n,i,a),y:g(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return m(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var c=v(t,n,i,a),s=v(e,r,o,a),u;return l(Math.atan2(s,c))}};function O(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function j(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function w(t,e,n,r){var i=-3*t+9*e-9*n+3*r,o=6*t-12*e+6*n,c=3*e-3*t,s=[],l,u,h;if(a(i,0))a(o,0)||(l=-c/o)>=0&&l<=1&&s.push(l);else{var f=o*o-4*i*c;a(f,0)?s.push(-o/(2*i)):f>0&&(u=(-o-(h=Math.sqrt(f)))/(2*i),(l=(-o+h)/(2*i))>=0&&l<=1&&s.push(l),u>=0&&u<=1&&s.push(u))}return s}function M(t,e,n,r,i,o,a,c,s){var l=O(t,n,i,a,s),u=O(e,r,o,c,s),f=h.pointAt(t,e,n,r,s),p=h.pointAt(n,r,i,o,s),d=h.pointAt(i,o,a,c,s),g=h.pointAt(f.x,f.y,p.x,p.y,s),y=h.pointAt(p.x,p.y,d.x,d.y,s);return[[t,e,f.x,f.y,g.x,g.y,l,u],[l,u,y.x,y.y,d.x,d.y,a,c]]}function S(t,e,n,r,i,o,a,c,s){if(0===s)return d([t,n,i,a],[e,r,o,c]);var l=M(t,e,n,r,i,o,a,c,.5),u=l[0],h=l[1];return u.push(s-1),h.push(s-1),S.apply(null,u)+S.apply(null,h)}var C={extrema:w,box:function(t,e,n,r,i,o,a,s){for(var l=[t,a],u=[e,s],h=w(t,n,i,a),f=w(e,r,o,s),p=0;p<h.length;p++)l.push(O(t,n,i,a,h[p]));for(var p=0;p<f.length;p++)u.push(O(e,r,o,s,f[p]));return c(l,u)},length:function(t,e,n,r,i,o,a,c){return S(t,e,n,r,i,o,a,c,3)},nearestPoint:function(t,e,n,r,i,o,a,c,s,l,u){return p([t,n,i,a],[e,r,o,c],s,l,O,u)},pointDistance:function(t,e,n,r,i,a,c,s,l,u,h){var f=this.nearestPoint(t,e,n,r,i,a,c,s,l,u,h);return o(f.x,f.y,l,u)},interpolationAt:O,pointAt:function(t,e,n,r,i,o,a,c,s){return{x:O(t,n,i,a,s),y:O(e,r,o,c,s)}},divide:function(t,e,n,r,i,o,a,c,s){return M(t,e,n,r,i,o,a,c,s)},tangentAngle:function(t,e,n,r,i,o,a,c,s){var u=j(t,n,i,a,s),h=j(e,r,o,c,s);return l(Math.atan2(h,u))}};function A(t,e){var n=Math.abs(t);return e>0?n:-1*n}var E=function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},k=function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},T=function(t,e,n,r,i,o){var a=n,c=r;if(0===a||0===c)return{x:t,y:e};for(var s=i-t,l=o-e,u=Math.abs(s),h=Math.abs(l),f=a*a,p=c*c,d=Math.PI/4,g,y,v=0;v<4;v++){g=a*Math.cos(d),y=c*Math.sin(d);var m=(f-p)*Math.pow(Math.cos(d),3)/a,b=(p-f)*Math.pow(Math.sin(d),3)/c,x=g-m,O=y-b,j=u-m,w=h-b,M=Math.hypot(O,x),S=Math.hypot(w,j),C,E;d+=M*Math.asin((x*w-O*j)/(M*S))/Math.sqrt(f+p-g*g-y*y),d=Math.min(Math.PI/2,Math.max(0,d))}return{x:t+A(g,s),y:e+A(y,l)}},P=function(t,e,n,r,i,a){var c=this.nearestPoint(t,e,n,r,i,a);return o(c.x,c.y,i,a)},I=function(t,e,n,r,i){var o=2*Math.PI*i;return{x:t+n*Math.cos(o),y:e+r*Math.sin(o)}},F=function(t,e,n,r,i){var o=2*Math.PI*i,a;return l(Math.atan2(r*Math.cos(o),-n*Math.sin(o)))};function L(t,e,n,r,i,o,a,c){return-1*n*Math.cos(i)*Math.sin(c)-r*Math.sin(i)*Math.cos(c)}function B(t,e,n,r,i,o,a,c){return-1*n*Math.sin(i)*Math.sin(c)+r*Math.cos(i)*Math.cos(c)}function D(t,e,n){return Math.atan(-e/t*Math.tan(n))}function R(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function _(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function N(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function z(t,e,n,r){var i;return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}function Y(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function G(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var H={box:function(t,e,n,r,i,o,a){for(var c=D(n,r,i),s=1/0,l=-1/0,u=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=c+h;o<a?o<f&&f<a&&u.push(f):a<f&&f<o&&u.push(f)}for(var h=0;h<u.length;h++){var p=_(t,e,n,r,i,u[h]);p<s&&(s=p),p>l&&(l=p)}for(var d=R(n,r,i),g=1/0,y=-1/0,v=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;o<a?o<m&&m<a&&v.push(m):a<m&&m<o&&v.push(m)}for(var h=0;h<v.length;h++){var b=N(t,e,n,r,i,v[h]);b<g&&(g=b),b>y&&(y=b)}return{x:s,y:g,width:l-s,height:y-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,c,s){var l=G(c-t,s-e,-i),u=l[0],h=l[1],f=T(0,0,n,r,u,h),p=z(n,r,f.x,f.y);p<o?f=Y(n,r,o):p>a&&(f=Y(n,r,a));var d=G(f.x,f.y,i);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,r,i,a,c,s,l){var u=this.nearestPoint(t,e,n,r,s,l);return o(u.x,u.y,s,l)},pointAt:function(t,e,n,r,i,o,a,c){var s=(a-o)*c+o;return{x:_(t,e,n,r,i,s),y:N(t,e,n,r,i,s)}},tangentAngle:function(t,e,n,r,i,o,a,c){var s=(a-o)*c+o,u=L(t,e,n,r,i,o,a,s),h=B(t,e,n,r,i,o,a,s);return l(Math.atan2(h,u))}};function V(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],a=t[r+1],c=o(i[0],i[1],a[0],a[1]),s={from:i,to:a,length:c};n.push(s),e+=c}return{segments:n,totalLength:e}}function W(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=o(r[0],r[1],i[0],i[1])}return e}function X(t,e){if(e>1||e<0||t.length<2)return null;var n=V(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,c=0;c<r.length;c++){var s=r[c],l=s.from,u=s.to,f=s.length/i;if(e>=o&&e<=o+f){var p=(e-o)/f;a=h.pointAt(l[0],l[1],u[0],u[1],p);break}o+=f}return a}function $(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=V(t),r=n.segments,i=n.totalLength,o=0,a=0,c=0;c<r.length;c++){var s=r[c],l=s.from,u=s.to,h=s.length/i;if(e>=o&&e<=o+h){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=h}return a}function q(t,e,n){for(var r=1/0,i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],c=h.pointDistance(o[0],o[1],a[0],a[1],e,n);c<r&&(r=c)}return r}var U={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return c(e,n)},length:function(t){return W(t)},pointAt:function(t,e){return X(t,e)},pointDistance:function(t,e,n){return q(t,e,n)},tangentAngle:function(t,e){return $(t,e)}};function K(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}var Z=function(t){return U.box(t)},Q=function(t){return W(K(t))},J=function(t,e){return X(K(t),e)},tt=function(t,e,n){return q(K(t),e,n)},et=function(t,e){return $(K(t),e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var c=Math.PI/180;function s(t){return t*c}function l(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return s}));var r=n(0),i=n(9);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.a[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function c(t,e){var n=t.get("el"),i=Object(r.rb)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function s(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"TITLE_CLASS",(function(){return i})),n.d(e,"LIST_CLASS",(function(){return o})),n.d(e,"LIST_ITEM_CLASS",(function(){return a})),n.d(e,"MARKER_CLASS",(function(){return c})),n.d(e,"VALUE_CLASS",(function(){return s})),n.d(e,"NAME_CLASS",(function(){return l})),n.d(e,"CROSSHAIR_X",(function(){return u})),n.d(e,"CROSSHAIR_Y",(function(){return h}));var r="g2-tooltip",i="g2-tooltip-title",o="g2-tooltip-list",a="g2-tooltip-list-item",c="g2-tooltip-marker",s="g2-tooltip-value",l="g2-tooltip-name",u="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h}));var r=n(4),i=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=i),e?r.a.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null;var o}function a(t,e){return t.x||t.y?r.a.transform(e||i,[["t",t.x,t.y]]):null}function c(t){var e=[1,0,0],n=[0,0,0];return r.d.transformMat3(n,e,t),Math.atan2(n[1],n[0])}function s(t,e){var n=[0,0];return r.c.transformMat3(n,e,t),n}function l(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),o=s(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),c=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:c,maxY:u,width:c-a,height:u-l}}function u(t,e,n,r){if(e){var i=o({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function h(t,e,n){var r=a({x:e,y:n});t.attr("matrix",r)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return y})),n.d(e,"h",(function(){return v})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return x}));var r=n(0),i=n(65),o=n(51),a=n(7),c=n(23),s={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],c=s[o]?s[o]:o;"matrix"===c&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===c&&t.setLineDash?Object(r.C)(a)&&t.setLineDash(a):("strokeStyle"===c||"fillStyle"===c?a=Object(i.b)(t,e,a):"globalAlpha"===c&&(a*=t.globalAlpha),t[c]=a)}}function u(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function h(t,e,n){var i=t.get("refreshElements");Object(r.j)(i,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),i[0]===t?d(e,n):f(e,n)}function f(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&d(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&f(r.cfg.children,e);else{var i=g(r,e);r.cfg.refresh=i,i&&r.isGroup()&&f(r.cfg.children,e)}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&p(n.cfg.children)}}function d(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&d(r.get("children"),e))}}function g(t,e){var n=t.cfg.cacheCanvasBBox,r;return t.cfg.isInView&&n&&Object(a.f)(n,e)}function y(t,e,n,r){var i=n.path,a=n.startArrow,s=n.endArrow;if(i){var l=[0,0],u=[0,0],h={dx:0,dy:0};e.beginPath();for(var f=0;f<i.length;f++){var p=i[f],d=p[0];if(0===f&&a&&a.d){var g=t.getStartTangent();h=c.c(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(f===i.length-2&&"Z"===i[f+1][0]&&s&&s.d){var y;if("Z"===i[f+1][0]){var g=t.getEndTangent();h=c.c(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}}else if(f===i.length-1&&s&&s.d&&"Z"!==i[0]){var g=t.getEndTangent();h=c.c(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}var v=h.dx,m=h.dy;switch(d){case"M":e.moveTo(p[1]-v,p[2]-m),u=[p[1],p[2]];break;case"L":e.lineTo(p[1]-v,p[2]-m);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-v,p[4]-m);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-v,p[6]-m);break;case"A":var b=void 0;r?(b=r[f])||(b=Object(o.a)(l,p),r[f]=b):b=Object(o.a)(l,p);var x=b.cx,O=b.cy,j=b.rx,w=b.ry,M=b.startAngle,S=b.endAngle,C=b.xRotation,A=b.sweepFlag;if(e.ellipse)e.ellipse(x,O,j,w,C,M,S,1-A);else{var E=j>w?j:w,k=j>w?1:j/w,T=j>w?w/j:1;e.translate(x,O),e.rotate(C),e.scale(k,T),e.arc(0,0,E,M,S,1-A),e.scale(1/k,1/T),e.rotate(-C),e.translate(-x,-O)}break;case"Z":e.closePath()}if("Z"===d)l=u;else{var P=p.length;l=[p[P-2],p[P-1]]}}}}function v(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function m(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.l)(n,i):r?e=n:o&&(e=i)}return e}function b(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.j)(t,(function(t){var r=m(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Object(r.bb)(e),minY:Object(r.bb)(n),maxX:Object(r.Y)(i),maxY:Object(r.Y)(o)}}function x(t,e){return t&&e&&Object(a.f)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";var r=n(66),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var r=n(1),i=n(34),o=Math.sin,a=Math.cos,c=Math.atan2,s=Math.PI;function l(t,e,n,r,l,u,h){var f=e.stroke,p=e.lineWidth,d,g,y=c(r-u,n-l),v=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(s/6)+","+10*o(s/6)+" L0,0 L"+10*a(s/6)+",-"+10*o(s/6),stroke:f,lineWidth:p}});v.translate(l,u),v.rotateAtPoint(l,u,y),t.set(h?"startArrowShape":"endArrowShape",v)}function u(t,e,n,s,l,u,h){var f=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=h?f:p,v=y.d,m=y.fill,b=y.stroke,x=y.lineWidth,O=Object(r.f)(y,["d","fill","stroke","lineWidth"]),j,w,M=c(s-u,n-l);v&&(l-=a(M)*v,u-=o(M)*v);var S=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.a)(Object(r.a)({},O),{stroke:b||d,lineWidth:x||g,fill:m})});S.translate(l,u),S.rotateAtPoint(l,u,M),t.set(h?"startArrowShape":"endArrowShape",S)}function h(t,e,n,r,i){var s=c(r-e,n-t);return{dx:a(s)*i,dy:o(s)*i}}function f(t,e,n,r,i,o){"object"==typeof e.startArrow?u(t,e,n,r,i,o,!0):e.startArrow?l(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function p(t,e,n,r,i,o){"object"==typeof e.endArrow?u(t,e,n,r,i,o,!1):e.endArrow?l(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(18);function i(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function a(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){Object(r.a)(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */
16
+ 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)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function c(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function c(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function h(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(a){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t],i=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t}function v(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,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,r){o.push([t,e,n,r])>1||c(t,e)}))})}function c(t,e){try{s(r[t](e))}catch(t){h(o[0][3],t)}}function s(t){t.value instanceof m?Promise.resolve(t.value.v).then(l,u):h(o[0][2],t)}function l(t){c("next",t)}function u(t){c("throw",t)}function h(t,e){t(e),o.shift(),o.length&&c(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:m(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=d(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function j(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function M(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function C(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],c=t[4],s=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],b=e[7],x=e[8];return n[0]=f*r+p*a+d*l,n[1]=f*i+p*c+d*u,n[2]=f*o+p*s+d*h,n[3]=g*r+y*a+v*l,n[4]=g*i+y*c+v*u,n[5]=g*o+y*s+v*h,n[6]=m*r+b*a+x*l,n[7]=m*i+b*c+x*u,n[8]=m*o+b*s+x*h,n}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],c=t[5],s=t[6],l=t[7],u=t[8],h=u*a-c*l,f=-u*o+c*s,p=l*o-a*s,d=n*h+r*f+i*p;return d?(d=1/d,e[0]=h*d,e[1]=(-u*r+i*l)*d,e[2]=(c*r-i*a)*d,e[3]=f*d,e[4]=(u*n-i*s)*d,e[5]=(-c*n+i*o)*d,e[6]=p*d,e[7]=(-l*n+r*s)*d,e[8]=(a*n-r*o)*d,e):null}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return L})),n.d(e,"d",(function(){return R})),n.d(e,"e",(function(){return yt})),n.d(e,"b",(function(){return At}));var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return Object(r.C)(e)?e:Object(r.Q)(e)?(e=e.match(i),Object(r.j)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.j)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var c=a,s=n(8);function l(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return s.a.fromTranslation(r,n),s.a.multiply(t,r,e)}function u(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return s.a.fromRotation(r,n),s.a.multiply(t,r,e)}function h(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return s.a.fromScaling(r,n),s.a.multiply(t,r,e)}function f(t,e,n){return s.a.multiply(t,n,e)}function p(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var o=e[r];switch(o[0]){case"t":l(n,n,[o[1],o[2]]);break;case"s":h(n,n,[o[1],o[2]]);break;case"r":u(n,n,o[1]);break;case"m":f(n,n,o[1])}}return n}function d(t,e){return t[0]*e[1]-e[0]*t[1]}function g(t,e,n){var r=s.b.angle(t,e),i=d(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function y(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 v(t,e,n,r){var i=[],o=!!r,a,c,l,u,h,f,p;if(o){l=r[0],u=r[1];for(var d=0,g=t.length;d<g;d+=1){var y=t[d];l=s.b.min([0,0],l,y),u=s.b.max([0,0],u,y)}}for(var d=0,v=t.length;d<v;d+=1){var y=t[d];if(0!==d||n)if(d!==v-1||n){var m;a=t[[d?d-1:v-1,d-1][n?0:1]],c=t[n?(d+1)%v:d+1];var b=[0,0];b=s.b.sub(b,c,a),b=s.b.scale(b,b,e);var x=s.b.distance(y,a),O=s.b.distance(y,c),j=x+O;0!==j&&(x/=j,O/=j);var w=s.b.scale([0,0],b,-x),M=s.b.scale([0,0],b,O);f=s.b.add([0,0],y,w),h=s.b.add([0,0],y,M),h=s.b.min([0,0],h,s.b.max([0,0],c,y)),h=s.b.max([0,0],h,s.b.min([0,0],c,y)),w=s.b.sub([0,0],h,y),w=s.b.scale([0,0],w,-x/O),f=s.b.add([0,0],y,w),f=s.b.min([0,0],f,s.b.max([0,0],a,y)),f=s.b.max([0,0],f,s.b.min([0,0],a,y)),M=s.b.sub([0,0],y,f),M=s.b.scale([0,0],M,O/x),h=s.b.add([0,0],y,M),o&&(f=s.b.max([0,0],f,l),f=s.b.min([0,0],f,u),h=s.b.max([0,0],h,l),h=s.b.min([0,0],h,u)),i.push(p),i.push(f),p=h}else f=y,i.push(p),i.push(f);else p=y}return n&&i.push(i.shift()),i}function m(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var c=v(i,.4,r,n),s=i.length,l=[],u,h,f,o=0;o<s-1;o+=1)u=c[2*o],h=c[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=c[s],h=c[s+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}var b=m;function x(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function O(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[],o;"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,c=1/n,s=0;s<n-1;s++){var l,u=x(a,c/(1-c*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=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])}))}function j(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(O(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r}function w(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var a=0;a<r;a++){var c=Math.floor(i*a);o[c]=(o[c]||0)+1}var s=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(j(t[i],t[i+1],r))}),[]);return s.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||s.push("Z"),s}function M(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var S=function(t,e){var n=t.length,i=e.length,o,a,c=0;if(0===n||0===i)return null;for(var s=[],l=0;l<=n;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=i;u++)s[0][u]={min:u};for(var l=1;l<=n;l++){o=t[l-1];for(var u=1;u<=i;u++){a=e[u-1],c=Object(r.H)(o,a)?0:1;var h=s[l-1][u].min+1,f=s[l][u-1].min+1,p=s[l-1][u-1].min+c;s[l][u]=M(h,f,p)}}return s};function C(t,e){var n=S(t,e),r=t.length,i=e.length,o=[],a=1,c=1;if(n[r][i]!==r){for(var s=1;s<=r;s++){var l=n[s][s].min;c=s;for(var u=a;u<=i;u++)n[s][u].min<l&&(l=n[s][u].min,c=u);a=c,n[s][a].type&&o.push({index:s-1,type:n[s][a].type})}for(var s=o.length-1;s>=0;s--)a=o[s].index,"add"===o[s].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}if((r=t.length)<i)for(var s=0;s<i-r;s++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}function A(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function E(t,e,n){for(var r=[].concat(t),i,o=1/(n+1),a=A(e)[0],c=1;c<=n;c++)o*=c,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function k(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=A(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=E(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=E(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=E(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}function T(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}var P="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",I=new RegExp("([a-z])["+P+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+P+"]*,?["+P+"]*)+)","ig"),F=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+P+"]*,?["+P+"]*","ig");function L(t){if(!t)return null;if(Object(r.C)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(I,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(F,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var B=/[a-z]/;function D(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function R(t){var e=L(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(B.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,c=0,s=0,l=0,u=0,h,f,p=e[0];"M"!==p[0]&&"m"!==p[0]||(s=a=+p[1],l=c=+p[2],u++,o[0]=["M",a,c]);for(var r=u,d=e.length;r<d;r++){var g=e[r],y=o[r-1],v=[],i,m=(i=g[0]).toUpperCase();if(i!==m)switch(v[0]=m,m){case"A":v[1]=g[1],v[2]=g[2],v[3]=g[3],v[4]=g[4],v[5]=g[5],v[6]=+g[6]+a,v[7]=+g[7]+c;break;case"V":v[1]=+g[1]+c;break;case"H":v[1]=+g[1]+a;break;case"M":s=+g[1]+a,l=+g[2]+c,v[1]=s,v[2]=l;break;default:for(var b=1,x=g.length;b<x;b++)v[b]=+g[b]+(b%2?a:c)}else v=e[r];switch(m){case"Z":a=+s,c=+l;break;case"H":v=["L",a=v[1],c];break;case"V":v=["L",a,c=v[1]];break;case"T":a=v[1],c=v[2];var O=D([y[1],y[2]],[y[3],y[4]]);v=["Q",O[0],O[1],a,c];break;case"S":a=v[v.length-2],c=v[v.length-1];var j=y.length,w=D([y[j-4],y[j-3]],[y[j-2],y[j-1]]);v=["C",w[0],w[1],v[1],v[2],a,c];break;case"M":s=v[v.length-2],l=v[v.length-1];break;default:a=v[v.length-2],c=v[v.length-1]}o.push(v)}return o}var _=2*Math.PI,N=function(t,e,n,r,i,o,a){var c=t.x,s=t.y,l,u;return{x:r*(c*=e)-i*(s*=n)+o,y:i*c+r*s+a}},z=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:o+a*n,y:a-o*n},{x:o,y:a}]},Y=function(t,e,n,r){var i,o=t*n+e*r;return o>1&&(o=1),o<-1&&(o=-1),(t*r-e*n<0?-1:1)*Math.acos(o)},G=function(t,e,n,r,i,o,a,c,s,l,u,h){var f=Math.pow(i,2),p=Math.pow(o,2),d=Math.pow(u,2),g=Math.pow(h,2),y=f*p-f*g-p*d;y<0&&(y=0),y/=f*g+p*d;var v=(y=Math.sqrt(y)*(a===c?-1:1))*i/o*h,m=y*-o/i*u,b=l*v-s*m+(t+n)/2,x=s*v+l*m+(e+r)/2,O=(u-v)/i,j=(h-m)/o,w=(-u-v)/i,M=(-h-m)/o,S=Y(1,0,O,j),C=Y(O,j,w,M);return 0===c&&C>0&&(C-=_),1===c&&C<0&&(C+=_),[b,x,S,C]},H=function(t){var e=t.px,n=t.py,r=t.cx,i=t.cy,o=t.rx,a=t.ry,c=t.xAxisRotation,s=void 0===c?0:c,l=t.largeArcFlag,u=void 0===l?0:l,h=t.sweepFlag,f=void 0===h?0:h,p=[];if(0===o||0===a)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var d=Math.sin(s*_/360),g=Math.cos(s*_/360),y=g*(e-r)/2+d*(n-i)/2,v=-d*(e-r)/2+g*(n-i)/2;if(0===y&&0===v)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];o=Math.abs(o),a=Math.abs(a);var m=Math.pow(y,2)/Math.pow(o,2)+Math.pow(v,2)/Math.pow(a,2);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));var b=G(e,n,r,i,o,a,u,f,d,g,y,v),x=b[0],O=b[1],j=b[2],w=b[3],M=Math.abs(w)/(_/4);Math.abs(1-M)<1e-7&&(M=1);var S=Math.max(Math.ceil(M),1);w/=S;for(var C=0;C<S;C++)p.push(z(j,w)),j+=w;return p.map((function(t){var e=N(t[0],o,a,g,d,x,O),n=e.x,r=e.y,i=N(t[1],o,a,g,d,x,O),c=i.x,s=i.y,l=N(t[2],o,a,g,d,x,O),u,h;return{x1:n,y1:r,x2:c,y2:s,x:l.x,y:l.y}}))};function V(t,e,n,r,i,o,a,c,s){var l;return H({px:t,py:e,cx:c,cy:s,rx:n,ry:r,xAxisRotation:i,largeArcFlag:o,sweepFlag:a}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.x,c=e.y;return t.push(n,r,i,o,a,c),t}),[])}function W(t,e,n,r,i,o){var a=1/3,c=2/3;return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}function X(t,e,n,r){return[t,e,n,r,n,r]}function $(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),r=n[0],i=n[1];switch(t[0]){case"M":return e.x=r,e.y=i,t;case"A":return["C"].concat(V.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=r,e.qy=i,["C"].concat(W.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(X(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat(X(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat(X(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat(X(e.x1,e.y1,e.x,e.y))}return t}function q(t,e){void 0===e&&(e=!1);for(var n=R(t),r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],o="",a=n.length,c,s,l=[],u=0;u<a;u+=1)n[u]&&(o=n[u][0]),i[u]=o,n[u]=$(n[u],r),U(n,i,u),a=n.length,"Z"===o&&l.push(u),s=(c=n[u]).length,r.x1=+c[s-2],r.y1=+c[s-1],r.x2=+c[s-4]||r.x1,r.y2=+c[s-3]||r.y1;return e?[n,l]:n}function U(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var K=function(t,e,n,r,i){var o,a;return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},Z=function(t,e,n,r,i,o,a,c,s){null===s&&(s=1);for(var l=(s=s>1?1:s<0?0:s)/2,u=12,h=[-.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],p=0,d=0;d<u;d++){var g=l*h[d]+l,y=K(g,t,n,i,a),v=K(g,e,r,o,c),m=y*y+v*v;p+=f[d]*Math.sqrt(m)}return l*p},Q=function(t,e,n,r,i,o,a,c){for(var s=[],l=[[],[]],u,h,f,p,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(h=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*c,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&s.push(p)}else{var g=h*h-4*f*u,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*u);v>0&&v<1&&s.push(v);var m=(-h-y)/(2*u);m>0&&m<1&&s.push(m)}}for(var b=s.length,x=b,O;b--;)O=1-(p=s[b]),l[0][b]=O*O*O*t+3*O*O*p*n+3*O*p*p*i+p*p*p*a,l[1][b]=O*O*O*e+3*O*O*p*r+3*O*p*p*o+p*p*p*c;return l[0][x]=t,l[1][x]=e,l[0][x+1]=a,l[1][x+1]=c,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},J=function(t,e,n,r,i,o,a,c){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,c)||Math.min(e,r)>Math.max(o,c))){var s,l,u=(t-n)*(o-c)-(e-r)*(i-a);if(u){var h=((t*r-e*n)*(i-a)-(t-n)*(i*c-o*a))/u,f=((t*r-e*n)*(o-c)-(e-r)*(i*c-o*a))/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,a).toFixed(2)||p>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,c).toFixed(2)||d>+Math.max(o,c).toFixed(2)))return{x:h,y:f}}}},tt=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},et=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:T(t,e,n,r),vb:[t,e,n,r].join(" ")}},nt=function(t,e){return t=et(t),e=et(e),tt(e,t.x,t.y)||tt(e,t.x2,t.y)||tt(e,t.x,t.y2)||tt(e,t.x2,t.y2)||tt(t,e.x,e.y)||tt(t,e.x2,e.y)||tt(t,e.x,e.y2)||tt(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},rt=function(t,e,n,i,o,a,c,s){Object(r.C)(t)||(t=[t,e,n,i,o,a,c,s]);var l=Q.apply(null,t);return et(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},it=function(t,e,n,r,i,o,a,c,s){var l=1-s,u=Math.pow(l,3),h=Math.pow(l,2),f=s*s,p=f*s,d,g,y=t+2*s*(n-t)+f*(i-2*n+t),v=e+2*s*(r-e)+f*(o-2*r+e),m=n+2*s*(i-n)+f*(a-2*i+n),b=r+2*s*(o-r)+f*(c-2*o+r),x,O,j,w,M;return{x:u*t+3*h*s*n+3*l*s*s*i+p*a,y:u*e+3*h*s*r+3*l*s*s*o+p*c,m:{x:y,y:v},n:{x:m,y:b},start:{x:l*t+s*n,y:l*e+s*r},end:{x:l*i+s*a,y:l*o+s*c},alpha:90-180*Math.atan2(y-m,v-b)/Math.PI}},ot=function(t,e,n){var r=rt(t),i=rt(e);if(!nt(r,i))return n?0:[];for(var o,a,c=~~(Z.apply(0,t)/8),s=~~(Z.apply(0,e)/8),l=[],u=[],h={},f=n?0:[],p=0;p<c+1;p++){var d=it.apply(0,t.concat(p/c));l.push({x:d.x,y:d.y,t:p/c})}for(var p=0;p<s+1;p++){var d=it.apply(0,e.concat(p/s));u.push({x:d.x,y:d.y,t:p/s})}for(var p=0;p<c;p++)for(var g=0;g<s;g++){var y=l[p],v=l[p+1],m=u[g],b=u[g+1],x=Math.abs(v.x-y.x)<.001?"y":"x",O=Math.abs(b.x-m.x)<.001?"y":"x",j=J(y.x,y.y,v.x,v.y,m.x,m.y,b.x,b.y);if(j){if(h[j.x.toFixed(4)]===j.y.toFixed(4))continue;h[j.x.toFixed(4)]=j.y.toFixed(4);var w=y.t+Math.abs((j[x]-y[x])/(v[x]-y[x]))*(v.t-y.t),M=m.t+Math.abs((j[O]-m[O])/(b[O]-m[O]))*(b.t-m.t);w>=0&&w<=1&&M>=0&&M<=1&&(n?f++:f.push({x:j.x,y:j.y,t1:w,t2:M}))}}return f},at=function(t,e,n){var r,i,o,a,c,s,l,u,h,f;t=q(t),e=q(e);for(var p=n?0:[],d=0,g=t.length;d<g;d++){var y=t[d];if("M"===y[0])r=c=y[1],i=s=y[2];else{"C"===y[0]?(h=[r,i].concat(y.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,c,s,c,s],r=c,i=s);for(var v=0,m=e.length;v<m;v++){var b=e[v];if("M"===b[0])o=l=b[1],a=u=b[2];else{"C"===b[0]?(f=[o,a].concat(b.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);var x=ot(h,f,n);if(n)p+=x;else{for(var O=0,j=x.length;O<j;O++)x[O].segment1=d,x[O].segment2=v,x[O].bez1=h,x[O].bez2=f;p=p.concat(x)}}}}}return p};function ct(t,e){return at(t,e)}var st=/,?([a-z]),?/gi;function lt(t){return t.join(",").replace(st,"$1")}function ut(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ht(t,e){return ut(t)*ut(e)?(t[0]*e[0]+t[1]*e[1])/(ut(t)*ut(e)):1}function ft(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ht(t,e))}function pt(t,e){return t[0]===e[0]&&t[1]===e[1]}function dt(t,e){var n=e[1],i=e[2],o=Object(r.eb)(Object(r.sb)(e[3]),2*Math.PI),a=e[4],c=e[5],s=t[0],l=t[1],u=e[6],h=e[7],f=Math.cos(o)*(s-u)/2+Math.sin(o)*(l-h)/2,p=-1*Math.sin(o)*(s-u)/2+Math.cos(o)*(l-h)/2,d=f*f/(n*n)+p*p/(i*i);d>1&&(n*=Math.sqrt(d),i*=Math.sqrt(d));var g=n*n*(p*p)+i*i*(f*f),y=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===c&&(y*=-1),isNaN(y)&&(y=0);var v=i?y*n*p/i:0,m=n?y*-i*f/n:0,b=(s+u)/2+Math.cos(o)*v-Math.sin(o)*m,x=(l+h)/2+Math.sin(o)*v+Math.cos(o)*m,O=[(f-v)/n,(p-m)/i],j=[(-1*f-v)/n,(-1*p-m)/i],w=ft([1,0],O),M=ft(O,j);return ht(O,j)<=-1&&(M=Math.PI),ht(O,j)>=1&&(M=0),0===c&&M>0&&(M-=2*Math.PI),1===c&&M<0&&(M+=2*Math.PI),{cx:b,cy:x,rx:pt(t,[u,h])?0:n,ry:pt(t,[u,h])?0:i,startAngle:w,endAngle:w+M,xRotation:o,arcFlag:a,sweepFlag:c}}function gt(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function yt(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=c(t)).length,s=0;s<a;s++){var l=t[s];r=t[s+1];var u=l[0],h={command:u,prePoint:n,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],o=s;break;case"A":var f=dt(n,l);h.arcParams=f}if("Z"===u)n=i,r=t[o+1];else{var p=l.length;n=[l[p-2],l[p-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),h.currentPoint=n,e[o]&&pt(n,e[o].currentPoint)&&(e[o].prePoint=h.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;h.nextPoint=d;var g=h.prePoint;if(["L","H","V"].includes(u))h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===u){var y=[l[1],l[2]];h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]]}else if("T"===u){var v,y=gt((v=e[s-1]).currentPoint,g);"Q"===v.command?(h.command="Q",h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]]):(h.command="TL",h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===u){var m=[l[1],l[2]],b=[l[3],l[4]];h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]],0===h.startTangent[0]&&0===h.startTangent[1]&&(h.startTangent=[m[0]-b[0],m[1]-b[1]]),0===h.endTangent[0]&&0===h.endTangent[1]&&(h.endTangent=[b[0]-m[0],b[1]-m[1]])}else if("S"===u){var v,m=gt((v=e[s-1]).currentPoint,g),b=[l[1],l[2]];"C"===v.command?(h.command="C",h.startTangent=[g[0]-m[0],g[1]-m[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]]):(h.command="SQ",h.startTangent=[g[0]-b[0],g[1]-b[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===u){var x=.001,O=h.arcParams||{},j=O.cx,w=void 0===j?0:j,M=O.cy,S=void 0===M?0:M,C=O.rx,A=void 0===C?0:C,E=O.ry,k=void 0===E?0:E,T=O.sweepFlag,P=void 0===T?0:T,I=O.startAngle,F=void 0===I?0:I,L=O.endAngle,B=void 0===L?0:L;0===P&&(x*=-1);var D=A*Math.cos(F-x)+w,R=k*Math.sin(F-x)+S;h.startTangent=[D-i[0],R-i[1]];var _=A*Math.cos(F+B+x)+w,N=k*Math.sin(F+B-x)+S;h.endTangent=[g[0]-_,g[1]-N]}e.push(h)}return e}var vt=function(t,e,n){return t>=e&&t<=n};function mt(t,e,n,r){var i=.001,o=n.x-t.x,a=n.y-t.y,c=e.x-t.x,s=e.y-t.y,l=r.x-n.x,u=r.y-n.y,h=c*u-s*l,f,p,d,g=null;if(h*h>.001*(c*c+s*s)*(l*l+u*u)){var y=(o*u-a*l)/h,v=(o*s-a*c)/h;vt(y,0,1)&&vt(v,0,1)&&(g={x:t.x+y*c,y:t.y+y*s})}return g}var bt=1e-6;function xt(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Ot(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function jt(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],c=t[(o+1)%i];if(Ot(a,c,[e,n]))return!0;xt(a[1]-n)>0!=xt(c[1]-n)>0&&xt(e-(n-a[1])*(a[0]-c[0])/(a[1]-c[1])-a[0])<0&&(r=!r)}return r}function wt(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],c=t[n-1];e.push({from:{x:c[0],y:c[1]},to:{x:a[0],y:a[1]}})}return e}function Mt(t,e){var n=!1;return Object(r.j)(t,(function(t){if(mt(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function St(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function Ct(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function At(t,e){if(t.length<2||e.length<2)return!1;var n,i;if(!Ct(St(t),St(e)))return!1;var o=!1;if(Object(r.j)(e,(function(e){if(jt(t,e[0],e[1]))return o=!0,!1})),o)return!0;if(Object(r.j)(t,(function(t){if(jt(e,t[0],t[1]))return o=!0,!1})),o)return!0;var a=wt(t),c=wt(e),s=!1;return Object(r.j)(c,(function(t){if(Mt(a,t))return s=!0,!1})),s}},function(t,e,n){"use strict";var r=n(0),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,s=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},l=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},u=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function h(t){return"#"+p(t[0])+p(t[1])+p(t[2])}var f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},p=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},d=function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],c=i===r?a:t[i+1];return h([u(a,c,o,0),u(a,c,o,1),u(a,c,o,2)])},g,y=function(t){if("#"===t[0]&&7===t.length)return t;g||(g=l()),g.style.color=t;var e=document.defaultView.getComputedStyle(g,"").getPropertyValue("color"),n,r;return e=h(i.exec(e)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))},v=function(t){var e=Object(r.Q)(t)?t.split("-"):t,n=Object(r.W)(e,(function(t){return f(-1===t.indexOf("#")?y(t):t)}));return function(t){return d(n,t)}},m=function(t){if(s(t)){var e,n=void 0;if("l"===t[0]){var i,l=+(i=o.exec(t))[1]+90;n=i[2],e="linear-gradient("+l+"deg, "}else if("r"===t[0]){var i;e="radial-gradient(",n=(i=a.exec(t))[4]}var u=n.match(c);return Object(r.j)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t};e.a={rgb2arr:f,gradient:v,toRGB:Object(r.ab)(y),toCSSGradient:m}},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return g}));var r=n(0),i="\u2026";function o(t){for(var e=0,n=0;n<t.length;n++)e+=a(t,n);return e}function a(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function c(t,e,n){void 0===n&&(n="tail");var r=t.length,i="";if("tail"===n){for(var o=0,c=0;o<e;){var s;if(!(o+(s=a(t,c))<=e))break;i+=t[c],o+=a(t,c),c++}i+="\u2026"}else if("head"===n){for(var o=0,c=r-1;o<e;){var s;if(!(o+(s=a(t,c))<=e))break;i+=t[c],o+=a(t,c),c--}i="\u2026"+i}else{for(var l="",u="",o=0,h=0,f=r-1;o<e;){var p=a(t,h),d=!1;p+o<=e&&(l+=t[h],h++,o+=p,d=!0);var g=a(t,f);if(g+o<=e&&(u=t[f]+u,o+=g,f--,d=!0),!d)break}i=l+"\u2026"+u}return i}var s="\u2026",l=2,u=400;function h(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.K)(e)?"":""+e})),n=0,i=0,o=0;o<e.length;o+=1){for(var a=0,c=0;c<=e[o].length;c+=1){var s=e[o].charCodeAt(c);a+=s>=19968&&s<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}function f(t){if(t.length>400)return h(t);var e=0;return Object(r.j)(t,(function(t){var n,r=t.getBBox().width;e<r&&(e=r)})),e}function p(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function d(t,e){return t.getBBox().width<e}function g(t,e,n,i){var a;void 0===i&&(i="tail");var s=null!==(a=e.attr("text"))&&void 0!==a?a:"";if("tail"===i){var l=Object(r.hb)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),u=Object(r.t)(s,n,l,"\u2026");return s!==u?(e.attr("text",u),e.set("tip",s),!0):(e.set("tip",null),!1)}var h=p(t,e),f=o(s),d=!1;if(n<h){var g=Math.floor(n/h*f)-2,y=void 0;(y=g>=0?c(s,g,i):"\u2026")&&(e.attr("text",y),d=!0)}return d?e.set("tip",s):e.set("tip",null),d}},function(t,e,n){"use strict";var r=n(0),i=n(36),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r=this.yField,i=n.indexOf(e),o=n.length,a,c;return!r&&this.isAdjust("y")?(a=0,c=1):o>1?(a=n[0===i?0:i-1],c=n[i===o-1?o-1:i+1],0!==i?a+=(e-a)/2:a-=(c-e)/2,i!==o-1?c-=(c-e)/2:c+=(e-n[o-2])/2):(a=0===e?0:e-.5,c=0===e?1:e+.5),{pre:a,next:c}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.j(t,(function(t,e){r.j(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.j(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.w(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,o=e.yField,a=r.b({},this.dimValuesMap),c=[];if(n&&this.isAdjust("x")&&c.push(n),o&&this.isAdjust("y")&&c.push(o),c.forEach((function(e){a&&a[e]||(a[e]=r.yb(t,e).sort((function(t,e){return t-e})))})),!o&&this.isAdjust("y")){var s="y";a.y=[i.a,1]}return a},t}();e.a=o},function(t,e,n){var r,i;r=this,(i=function(t){"use strict";function e(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),c=t(n),s=n-e;if(a*c>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===c)return n;for(var l=0;l<i;++l){var u=e+(s/=2),h=t(u);if(h*a>=0&&(e=u),Math.abs(s)<o||0===h)return u}return e+s}function n(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function r(t,e){return n(t).map((function(){return n(e)}))}function i(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function o(t){return Math.sqrt(i(t,t))}function a(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function c(t,e,n,r,i){for(var o=0;o<t.length;++o)t[o]=e*n[o]+r*i[o]}function s(t,e,n){var r=(n=n||{}).maxIterations||200*e.length,i=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,a=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,u=void 0!==n.chi?n.chi:2,h=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5,p,d=e.length,g=new Array(d+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var y=0;y<d;++y){var v=e.slice();v[y]=v[y]?v[y]*i:o,g[y+1]=v,g[y+1].fx=t(v),g[y+1].id=y+1}function m(t){for(var e=0;e<t.length;e++)g[d][e]=t[e];g[d].fx=t.fx}for(var b=function(t,e){return t.fx-e.fx},x=e.slice(),O=e.slice(),j=e.slice(),w=e.slice(),M=0;M<r;++M){if(g.sort(b),n.history){var S=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));S.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:S})}for(p=0,y=0;y<d;++y)p=Math.max(p,Math.abs(g[0][y]-g[1][y]));if(Math.abs(g[0].fx-g[d].fx)<a&&p<s)break;for(y=0;y<d;++y){x[y]=0;for(var C=0;C<d;++C)x[y]+=g[C][y];x[y]/=d}var A=g[d];if(c(O,1+l,x,-l,A),O.fx=t(O),O.fx<g[0].fx)c(w,1+u,x,-u,A),w.fx=t(w),w.fx<O.fx?m(w):m(O);else if(O.fx>=g[d-1].fx){var E=!1;if(O.fx>A.fx?(c(j,1+h,x,-h,A),j.fx=t(j),j.fx<A.fx?m(j):E=!0):(c(j,1-h*l,x,h*l,A),j.fx=t(j),j.fx<O.fx?m(j):E=!0),E){if(f>=1)break;for(y=1;y<g.length;++y)c(g[y],1-f,g[0],f,g[y]),g[y].fx=t(g[y])}}else m(O)}return g.sort(b),{fx:g[0].fx,x:g[0]}}function l(t,e,n,r,o,a,s){var l=n.fx,u=i(n.fxprime,e),h=l,f=l,p=u,d=0;function g(f,d,g){for(var y=0;y<16;++y)if(o=(f+d)/2,c(r.x,1,n.x,o,e),h=r.fx=t(r.x,r.fxprime),p=i(r.fxprime,e),h>l+a*o*u||h>=g)d=o;else{if(Math.abs(p)<=-s*u)return o;p*(d-f)>=0&&(d=f),f=o,g=h}return 0}o=o||1,a=a||1e-6,s=s||.1;for(var y=0;y<10;++y){if(c(r.x,1,n.x,o,e),h=r.fx=t(r.x,r.fxprime),p=i(r.fxprime,e),h>l+a*o*u||y&&h>=f)return g(d,o,f);if(Math.abs(p)<=-s*u)return o;if(p>=0)return g(o,d,h);f=h,d=o,o*=2}return o}function u(t,e,n){var r={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),h,f,p=1,d;d=(n=n||{}).maxIterations||20*e.length,r.fx=t(r.x,r.fxprime),a(h=r.fxprime.slice(),r.fxprime,-1);for(var g=0;g<d;++g){if(p=l(t,h,r,s,p),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:p}),p){c(u,1,s.fxprime,-1,r.fxprime);var y=i(r.fxprime,r.fxprime),v;c(h,Math.max(0,i(u,s.fxprime)/y),h,-1,s.fxprime),f=r,r=s,s=f}else a(h,r.fxprime,-1);if(o(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:p}),r}function h(t,e,n){for(var r=(n=n||{}).maxIterations||100*e.length,i=n.learnRate||.001,a={x:e.slice(),fx:0,fxprime:e.slice()},s=0;s<r&&(a.fx=t(a.x,a.fxprime),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice()}),c(a.x,1,a.x,-i,a.fxprime),!(o(a.fxprime)<=1e-5));++s);return a}function f(t,e,n){n=n||{};var r={x:e.slice(),fx:0,fxprime:e.slice()},i={x:e.slice(),fx:0,fxprime:e.slice()},c=n.maxIterations||100*e.length,s=n.learnRate||1,u=e.slice(),h=n.c1||.001,f=n.c2||.1,p,d=[];if(n.history){var g=t;t=function(t,e){return d.push(t.slice()),g(t,e)}}r.fx=t(r.x,r.fxprime);for(var y=0;y<c&&(a(u,r.fxprime,-1),s=l(t,u,r,i,s,h,f),n.history&&(n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),functionCalls:d,learnRate:s,alpha:s}),d=[]),p=r,r=i,i=p,!(0===s||o(r.fxprime)<1e-5));++y);return r}t.bisect=e,t.nelderMead=s,t.conjugateGradient=u,t.gradientDescent=h,t.gradientDescentLineSearch=f,t.zeros=n,t.zerosM=r,t.norm2=o,t.weightedSum=c,t.scale=a})(e)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return st})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return St}));var r={};n.r(r),n.d(r,"default",(function(){return V})),n.d(r,"assign",(function(){return j})),n.d(r,"format",(function(){return Y})),n.d(r,"parse",(function(){return G})),n.d(r,"defaultI18n",(function(){return A})),n.d(r,"setGlobalDateI18n",(function(){return k})),n.d(r,"setGlobalDateMasks",(function(){return z}));var i=n(0),o={};function a(t){return o[t]}function c(t,e){o[t]=e}var s,l=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){Object(i.b)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(i.W)(this.ticks,(function(e,n){return Object(i.O)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return Object(i.K)(r)||!Object(i.I)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(i.b)(this,this.__cfg__),this.setDomain(),Object(i.G)(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(Object(i.Q)(t)){var n=a(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(i.I)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(i.M)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),u=n(1),h,f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(u.c)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Object(i.M)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=e;return Object(i.M)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,Object(u.h)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(i.K)(this.getConfig("min"))&&(this.min=0),Object(i.K)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(l),p=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,d="\\d\\d?",g="\\d\\d",y="\\d{3}",v="\\d{4}",m="[^\\s]+",b=/\[([^]*?)\]/gm;function x(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var O=function(t){return function(e,n){var r,i=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return i>-1?i:null}};function j(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}var w=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],M=["January","February","March","April","May","June","July","August","September","October","November","December"],S=x(M,3),C,A={dayNamesShort:x(w,3),dayNames:w,monthNamesShort:S,monthNames:M,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},E=j({},A),k=function(t){return E=j(E,t)},T=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},P=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},I={D:function(t){return String(t.getDate())},DD:function(t){return P(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return P(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return P(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return P(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return P(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return P(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return P(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return P(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return P(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return P(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return P(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+P(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+P(Math.floor(Math.abs(e)/60),2)+":"+P(Math.abs(e)%60,2)}},F=function(t){return+t-1},L=[null,"\\d\\d?"],B=[null,m],D=["isPm",m,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],R=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],_={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+m,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",F],MM:["month","\\d\\d",F],YY:["year","\\d\\d",function(t){var e,n=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+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:L,dd:L,ddd:B,dddd:B,MMM:["month",m,O("monthNamesShort")],MMMM:["month",m,O("monthNames")],a:D,A:D,ZZ:R,Z:R},N={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"},z=function(t){return j(N,t)},Y=function(t,e,n){if(void 0===e&&(e=N.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=N[e]||e).replace(b,(function(t,e){return r.push(e),"@@@"}));var i=j(j({},E),n);return(e=e.replace(p,(function(e){return I[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function G(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=N[e]||e,t.length>1e3)return null;var r,i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],c=e.replace(b,(function(t,e){return a.push(T(e)),"@@@"})),s={},l={};c=T(c).replace(p,(function(t){var e=_[t],n=e[0],r=e[1],i=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,i&&(l[i]=!0),o.push(e),"("+r+")"})),Object.keys(l).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),c=c.replace(/@@@/g,(function(){return a.shift()}));var u=t.match(new RegExp(c,"i"));if(!u)return null;for(var h=j(j({},E),n),f=1,d;f<u.length;f++){var g=o[f-1],y=g[0],v=g[2],m=v?v(u[f],h):+u[f];if(null==m)return null;i[y]=m}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){d=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var x=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],f=0,O=x.length;f<O;f++)if(s[x[f][0]]&&i[x[f][0]]!==d[x[f][1]]())return null}else if(d=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||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}var H,V={format:Y,parse:G,defaultI18n:A,setGlobalDateI18n:k,setGlobalDateMasks:z},W=function(t){return function(e,n,r,o){for(var a=Object(i.K)(r)?0:r,c=Object(i.K)(o)?e.length:o;a<c;){var s=a+c>>>1;t(e[s])>n?c=s:a=s+1}return a}},X="format";function $(t,e){var n;return(r.format||V.format)(t,e)}function q(t){return Object(i.Q)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.E)(t)&&(t=t.getTime()),t}var U=1e3,K=6e4,Z=36e5,Q=24*Z,J=31*Q,tt=365*Q,et=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",Z],["HH",6*Z],["HH",12*Z],["YYYY-MM-DD",Q],["YYYY-MM-DD",4*Q],["YYYY-WW",7*Q],["YYYY-MM",J],["YYYY-MM",4*J],["YYYY-MM",6*J],["YYYY",380*Q]];function nt(t,e,n){var r=(e-t)/n,o=W((function(t){return t[1]}))(et,r)-1,a=et[o];return o<0?a=et[0]:o>=et.length&&(a=Object(i.U)(et)),a}var rt,it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(u.c)(e,t),e.prototype.translate=function(t){t=q(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.M)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):$(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(i.j)(e,(function(t,n){e[n]=q(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(f),ot,at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(u.c)(e,t),e.prototype.scale=function(t){if(Object(i.K)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),r,o,a;return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(i.z)(e),r=Object(i.U)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(i.K)(this.minLimit)||(this.min=n),Object(i.K)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.u)(this.values),e=t.min,n=t.max;Object(i.K)(this.min)&&(this.min=e),Object(i.K)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(i.l)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(l),ct,st=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(u.c)(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}(at);function lt(t,e){var n=Math.E,r;return r=e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function ut(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function ht(t,e,n){Object(i.K)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.j)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}function ft(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function pt(t,e){var n=ft(t),r=ft(e),i=Math.pow(10,Math.max(n,r));return(t*i+e*i)/i}var dt,gt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(u.c)(e,t),e.prototype.invert=function(t){var e=this.base,n=ut(e,this.max),r=this.rangeMin(),i=this.rangeMax()-r,o,a=this.positiveMin;if(a){if(0===t)return 0;var c=1/(n-(o=ut(e,a/e)))*i;if(t<c)return t/c*a}else o=ut(e,this.min);var s,l=(t-r)/i*(n-o)+o;return Math.pow(e,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=ht(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin,o;return i&&(n=1*i/r),o=t<i?t/i/(ut(r,e)-ut(r,n)):(ut(r,t)-ut(r,n))/(ut(r,e)-ut(r,n))},e}(at),yt,vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(u.c)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=lt(n,this.max),i=lt(n,this.min),o=e*(r-i)+i,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent,i;return(lt(r,t)-lt(r,n))/(lt(r,e)-lt(r,n))},e}(at),mt,bt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(u.c)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):$(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.Q)(n)||Object(i.E)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return q(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(i.K)(e)&&Object(i.M)(e)||(this.min=this.translate(this.min)),Object(i.K)(n)&&Object(i.M)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],o=1/0,a=o,c=0;Object(i.j)(t,(function(t){var e=q(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),c<e&&(c=e),r.push(e)})),t.length>1&&(this.minTickInterval=a-o),Object(i.K)(e)&&(this.min=o),Object(i.K)(n)&&(this.max=c)}},e}(st),xt,Ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(u.c)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.U)(e);if(o<0)return Object(i.z)(e);var a=e[o],c,s=o/(n-1),l;return a+(r-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},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||(Object(i.U)(e)!==this.max&&e.push(this.max),Object(i.z)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(i.z)(e))return 0;if(t>Object(i.U)(e))return 1;var n=0;return Object(i.j)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(at),jt,wt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(u.c)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ot),Mt={};function St(t){return Mt[t]}function Ct(t,e){if(St(t))throw new Error("type '"+t+"' existed.");Mt[t]=e}var At,Et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(u.c)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.M)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(l);function kt(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=t.showLast;if(Object(i.M)(n)){var a=Object(i.l)(e,(function(t,e){return e%n==0})),c=Object(i.U)(e);return o&&Object(i.U)(a)!==c&&a.push(c),a}var s=e.length,l=t.min,u=t.max;if(Object(i.K)(l)&&(l=0),Object(i.K)(u)&&(u=e.length-1),!Object(i.M)(r)||r>=s)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var h=1===r?s:Math.floor(s/(r-1)),f=[],p=l,d=0;d<r&&!(p>=u);d++)p=Math.min(l+d*h,u),d===r-1&&o?f.push(e[u]):f.push(e[p]);return f}function Tt(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new Bt;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}var Pt=5,It=Math.sqrt(50),Ft=Math.sqrt(10),Lt=Math.sqrt(2),Bt=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r=this._domain.slice(),i=0,o=this._domain.length-1,a=this._domain[i],c=this._domain[o],s;return c<a&&(a=(e=[c,a])[0],c=e[1],i=(n=[o,i])[0],o=n[1]),(s=Rt(a,c,t))>0?s=Rt(a=Math.floor(a/s)*s,c=Math.ceil(c/s)*s,t):s<0&&(s=Rt(a=Math.ceil(a*s)/s,c=Math.floor(c*s)/s,t)),s>0?(r[i]=Math.floor(a/s)*s,r[o]=Math.ceil(c/s)*s,this.domain(r)):s<0&&(r[i]=Math.ceil(a*s)/s,r[o]=Math.floor(c*s)/s,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),Dt(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function Dt(t,e,n){var r,i=-1,o,a,c;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(c=Rt(t,e,n))||!isFinite(c))return[];if(c>0)for(t=Math.ceil(t/c),e=Math.floor(e/c),a=new Array(o=Math.ceil(e-t+1));++i<o;)a[i]=(t+i)*c;else for(t=Math.floor(t*c),e=Math.ceil(e*c),a=new Array(o=Math.ceil(t-e+1));++i<o;)a[i]=(t-i)/c;return r&&a.reverse(),a}function Rt(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=It?10:o>=Ft?5:o>=Lt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=It?10:o>=Ft?5:o>=Lt?2:1)}function _t(t,e,n){var r;return(r="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function Nt(t,e,n){var r=_t(t,n,"floor"),o=_t(e,n,"ceil");r=Object(i.p)(r,n),o=Object(i.p)(o,n);for(var a=[],c=Math.max((o-r)/(Math.pow(2,12)-1),n),s=r;s<=o;s+=c){var l=Object(i.p)(s,c);a.push(l)}return{min:r,max:o,ticks:a}}function zt(t,e,n){var r,o=t.minLimit,a=t.maxLimit,c=t.min,s=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(i.K)(o)?Object(i.K)(e)?c:e:o,f=Object(i.K)(a)?Object(i.K)(n)?s:n:a;if(h>f&&(f=(r=[h,f])[0],h=r[1]),u<=2)return[h,f];for(var p=(f-h)/(u-1),d=[],g=0;g<u;g++)d.push(h+p*g);return d}function Yt(t){var e=t.min,n=t.max,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,c=Tt(t);return Object(i.K)(o)&&Object(i.K)(a)?r?Nt(e,n,r).ticks:c:zt(t,Object(i.z)(c),Object(i.U)(c))}function Gt(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var Ht=[1,5,2,2.5,4,3],Vt=[1,5,2,2.5,4,3,1.5,7,6,8,9],Wt=100*Number.EPSILON;function Xt(t,e){return(t%e+e)%e}function $t(t){return Math.round(1e12*t)/1e12}function qt(t,e,n,r,o,a){var c=Object(i.mb)(e),s=Object(i.B)(e,t),l=0,u=Xt(r,a);return(u<Wt||a-u<Wt)&&r<=0&&o>=0&&(l=1),1-s/(c-1)-n+l}function Ut(t,e,n){var r=Object(i.mb)(e),o,a=1;return 1-Object(i.B)(e,t)/(r-1)-n+1}function Kt(t,e,n,r,i,o){var a=(t-1)/(o-i),c=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/c,c/a)}function Zt(t,e){return t>=e?2-(t-1)/(e-1):1}function Qt(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function Jt(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function te(){return 1}function ee(t,e,n,r,o,a){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===o&&(o=Ht),void 0===a&&(a=[.25,.2,.5,.05]);var c=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!c)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===c)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s,l=(e-t)/(s=n||5);return{min:t,max:e,ticks:Array(s).fill(null).map((function(e,n){return Gt(t+l*n)}))}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},h=1;h<1/0;){for(var f=0;f<o.length;f+=1){var p=o[f],d=Ut(p,o,h);if(a[0]*d+a[1]+a[2]+a[3]<u.score){h=1/0;break}for(var g=2;g<1/0;){var y=Zt(g,c);if(a[0]*d+a[1]+a[2]*y+a[3]<u.score)break;for(var v=(e-t)/(g+1)/h/p,m=Math.ceil(Math.log10(v));m<1/0;){var b=h*p*Math.pow(10,m),x=Jt(t,e,b*(g-1));if(a[0]*d+a[1]*x+a[2]*y+a[3]<u.score)break;var O=Math.floor(e/b)*h-(g-1)*h,j=Math.ceil(t/b)*h;if(O<=j)for(var s=j-O,w=0;w<=s;w+=1){var M,S=(O+w)*(b/h),C=S+b*(g-1),A=b,E=qt(p,o,h,S,C,A),k=Qt(t,e,S,C),T=Kt(g,c,t,e,S,C),P=1,I=a[0]*E+a[1]*k+a[2]*T+1*a[3];I>u.score&&(!r||S<=t&&C>=e)&&(u.lmin=S,u.lmax=C,u.lstep=A,u.score=I)}m+=1}g+=1}}h+=1}var F=Gt(u.lmax),L=Gt(u.lmin),B=Gt(u.lstep),D=Math.floor($t((F-L)/B))+1,R=new Array(D);R[0]=Gt(L);for(var f=1;f<D;f++)R[f]=Gt(R[f-1]+B);return{min:Math.min(t,Object(i.z)(R)),max:Math.max(e,Object(i.U)(R)),ticks:R}}function ne(t){var e=t.min,n=t.max,r=t.tickCount,o=t.nice,a=t.tickInterval,c=t.minLimit,s=t.maxLimit,l=ee(e,n,r,o).ticks;return Object(i.K)(c)&&Object(i.K)(s)?a?Nt(e,n,a).ticks:l:zt(t,Object(i.z)(l),Object(i.U)(l))}function re(t){var e=t.base,n=t.tickCount,r=t.min,i=t.max,o=t.values,a,c=ut(e,i);if(r>0)a=Math.floor(ut(e,r));else{var s=ht(o,e,i);a=Math.floor(ut(e,s))}for(var l=c-a,u=Math.ceil(l/n),h=[],f=a;f<c+u;f+=u)h.push(Math.pow(e,f));return r<=0&&h.unshift(0),h}function ie(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=1.5,o=2.75,a,c=(e-t)/r,s=Math.pow(10,Math.floor(Math.log10(c))),l=s;2*s-c<i*(c-l)&&5*s-c<o*(c-(l=2*s))&&10*s-c<i*(c-(l=5*s))&&(l=10*s);for(var u=Math.ceil(e/l),h=Math.floor(t/l),f=Math.max(u*l,e),p=Math.min(h*l,t),d=Math.floor((f-p)/l)+1,g=new Array(d),y=0;y<d;y++)g[y]=Gt(p+y*l);return{min:p,max:f,ticks:g}}function oe(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(lt(e,t.max)),i,o;return ie(Math.floor(lt(e,t.min)),r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function ae(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function ce(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(ae(r,a))}return i}function se(t){var e=t.min,n=t.max,r=t.tickCount,o=t.tickInterval,a=t.minLimit,c=t.maxLimit,s=ie(e,n,r).ticks;return Object(i.K)(a)&&Object(i.K)(c)?o?Nt(e,n,o).ticks:s:zt(t,Object(i.z)(s),Object(i.U)(s))}function le(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickInterval,o=t.tickCount;if(i)o=Math.ceil((n-e)/i);else{var a,c=(n-e)/(i=nt(e,n,o)[1])/o;c>1&&(i*=Math.ceil(c)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var s=[],l=e;l<n+i;l+=i)s.push(l);return s}function ue(t){var e;return kt(Object(u.a)({showLast:!0},t))}function he(t){return new Date(t).getFullYear()}function fe(t){return new Date(t,0,1).getTime()}function pe(t){return new Date(t).getMonth()}function de(t,e){var n=he(t),r=he(e),i=pe(t),o;return 12*(r-n)+(pe(e)-i)%12}function ge(t,e){return new Date(t,e,1).getTime()}function ye(t,e){return Math.ceil((e-t)/Q)}function ve(t,e){return Math.ceil((e-t)/Z)}function me(t,e){return Math.ceil((e-t)/6e4)}function be(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/i,r&&o<r&&(o=r)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var c=he(e);if(o>tt)for(var s=he(n),l=Math.ceil(o/tt),u=c;u<=s+l;u+=l)a.push(fe(u));else if(o>J)for(var h=Math.ceil(o/J),f=pe(e),p=de(e,n),u=0;u<=p+h;u+=h)a.push(ge(c,u+f));else if(o>Q)for(var d,g=(d=new Date(e)).getFullYear(),y=d.getMonth(),v=d.getDate(),m=Math.ceil(o/Q),b=ye(e,n),u=0;u<b+m;u+=m)a.push(new Date(g,y,v+u).getTime());else if(o>Z)for(var d,g=(d=new Date(e)).getFullYear(),y=d.getMonth(),m=d.getDate(),x=d.getHours(),O=Math.ceil(o/Z),j=ve(e,n),u=0;u<=j+O;u+=O)a.push(new Date(g,y,m,x+u).getTime());else if(o>6e4)for(var w=me(e,n),M=Math.ceil(o/6e4),u=0;u<=w+M;u+=M)a.push(e+6e4*u);else{var S=o;S<1e3&&(S=1e3);for(var C=1e3*Math.floor(e/1e3),A=Math.ceil((n-e)/1e3),E=Math.ceil(S/1e3),u=0;u<A+E;u+=E)a.push(C+1e3*u)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a}c("cat",kt),c("time-cat",ue),c("wilkinson-extended",ne),c("r-pretty",se),c("time",le),c("time-pretty",be),c("log",re),c("pow",oe),c("quantile",ce),c("d3-linear",Yt),Ct("cat",f),Ct("category",f),Ct("identity",Et),Ct("linear",st),Ct("log",gt),Ct("pow",vt),Ct("time",bt),Ct("timeCat",it),Ct("quantize",Ot),Ct("quantile",wt)},function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return s})),n.d(e,"fillPath",(function(){return F})),n.d(e,"fillPathByDiff",(function(){return R})),n.d(e,"formatPath",(function(){return z})),n.d(e,"intersection",(function(){return k})),n.d(e,"parsePathArray",(function(){return y})),n.d(e,"parsePathString",(function(){return c})),n.d(e,"pathToAbsolute",(function(){return u})),n.d(e,"pathToCurve",(function(){return d})),n.d(e,"rectPath",(function(){return j}));var r=n(0),i="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),c=function(t){if(!t)return null;if(Object(r.C)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(r,i,o){var c=[],s=i.toLowerCase();if(o.replace(a,(function(t,e){e&&c.push(+e)})),"m"===s&&c.length>2&&(n.push([i].concat(c.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===c.length&&n.push([i,c[0]]),"r"===s)n.push([i].concat(c));else for(;c.length>=e[s]&&(n.push([i].concat(c.splice(0,e[s]))),e[s]););return t})),n},s=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,c=t+n*Math.cos(-r*a),s=t+n*Math.cos(-i*a),l,u;o=[["M",c,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,s,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},u=function(t){if(!(t=c(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,i=0,o=0,a=0,u,h;"M"===t[0][0]&&(i=n=+t[0][1],o=r=+t[0][2],a++,e[0]=["M",n,r]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=a,y=t.length;g<y;g++){if(e.push(p=[]),(u=(d=t[g])[0])!==u.toUpperCase())switch(p[0]=u.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+n,p[7]=+d[7]+r;break;case"V":p[1]=+d[1]+r;break;case"H":p[1]=+d[1]+n;break;case"R":for(var v=2,m=(h=[n,r].concat(d.slice(1))).length;v<m;v++)h[v]=+h[v]+n,h[++v]=+h[v]+r;e.pop(),e=e.concat(s(h,f));break;case"O":e.pop(),(h=l(n,r,d[1],d[2])).push(h[0]),e=e.concat(h);break;case"U":e.pop(),e=e.concat(l(n,r,d[1],d[2],d[3])),p=["U"].concat(e[e.length-1].slice(-2));break;case"M":i=+d[1]+n,o=+d[2]+r;break;default:for(var v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?n:r)}else if("R"===u)h=[n,r].concat(d.slice(1)),e.pop(),e=e.concat(s(h,f)),p=["R"].concat(d.slice(-2));else if("O"===u)e.pop(),(h=l(n,r,d[1],d[2])).push(h[0]),e=e.concat(h);else if("U"===u)e.pop(),e=e.concat(l(n,r,d[1],d[2],d[3])),p=["U"].concat(e[e.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)p[b]=d[b];if("O"!==(u=u.toUpperCase()))switch(p[0]){case"Z":n=+i,r=+o;break;case"H":n=p[1];break;case"V":r=p[1];break;case"M":i=p[p.length-2],o=p[p.length-1];break;default:n=p[p.length-2],r=p[p.length-1]}}return e},h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,o){var a=1/3,c=2/3;return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},p=function(t,e,n,r,i,o,a,c,s,l){n===r&&(n+=1);var u=120*Math.PI/180,h=Math.PI/180*(+i||0),f=[],d,g,y,v,m,b=function(t,e,n){var r,i;return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)g=l[0],y=l[1],v=l[2],m=l[3];else{t=(d=b(t,e,-h)).x,e=d.y,c=(d=b(c,s,-h)).x,s=d.y,t===c&&e===s&&(c+=1,s+=1);var x=(t-c)/2,O=(e-s)/2,j=x*x/(n*n)+O*O/(r*r);j>1&&(n*=j=Math.sqrt(j),r*=j);var w=n*n,M=r*r,S=(o===a?-1:1)*Math.sqrt(Math.abs((w*M-w*O*O-M*x*x)/(w*O*O+M*x*x)));v=S*n*O/r+(t+c)/2,m=S*-r*x/n+(e+s)/2,g=Math.asin(((e-m)/r).toFixed(9)),y=Math.asin(((s-m)/r).toFixed(9)),g=t<v?Math.PI-g:g,y=c<v?Math.PI-y:y,g<0&&(g=2*Math.PI+g),y<0&&(y=2*Math.PI+y),a&&g>y&&(g-=2*Math.PI),!a&&y>g&&(y-=2*Math.PI)}var C=y-g;if(Math.abs(C)>u){var A=y,E=c,k=s;y=g+u*(a&&y>g?1:-1),c=v+n*Math.cos(y),s=m+r*Math.sin(y),f=p(c,s,n,r,i,0,a,E,k,[y,A,v,m])}C=y-g;var T=Math.cos(g),P=Math.sin(g),I=Math.cos(y),F=Math.sin(y),L=Math.tan(C/4),B=4/3*n*L,D=4/3*r*L,R=[t,e],_=[t+B*P,e-D*T],N=[c+B*F,s-D*I],z=[c,s];if(_[0]=2*R[0]-_[0],_[1]=2*R[1]-_[1],l)return[_,N,z].concat(f);for(var Y=[],G=0,H=(f=[_,N,z].concat(f).join().split(",")).length;G<H;G++)Y[G]=G%2?b(f[G-1],f[G],h).y:b(f[G],f[G+1],h).x;return Y},d=function(t,e){var n=u(t),r=e&&u(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a=[],c=[],s="",l="",d,g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)a[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),d=Math.max(n.length,r&&r.length||0)}},v=function(t,e,i,o,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],d=Math.max(n.length,r&&r.length||0))};d=Math.max(n.length,r&&r.length||0);for(var m=0;m<d;m++){n[m]&&(s=n[m][0]),"C"!==s&&(a[m]=s,m&&(l=a[m-1])),n[m]=g(n[m],i,l),"A"!==a[m]&&"C"===s&&(a[m]="C"),y(n,m),r&&(r[m]&&(s=r[m][0]),"C"!==s&&(c[m]=s,m&&(l=c[m-1])),r[m]=g(r[m],o,l),"A"!==c[m]&&"C"===s&&(c[m]="C"),y(r,m)),v(n,r,i,o,m),v(r,n,o,i,m);var b=n[m],x=r&&r[m],O=b.length,j=r&&x.length;i.x=b[O-2],i.y=b[O-1],i.bx=parseFloat(b[O-4])||i.x,i.by=parseFloat(b[O-3])||i.y,o.bx=r&&(parseFloat(x[j-4])||o.x),o.by=r&&(parseFloat(x[j-3])||o.y),o.x=r&&x[j-2],o.y=r&&x[j-1]}return r?[n,r]:n},g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")},v=function(t,e,n,r,i){var o,a;return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,o,a,c,s){null===s&&(s=1);for(var l=(s=s>1?1:s<0?0:s)/2,u=12,h=[-.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],p=0,d=0;d<u;d++){var g=l*h[d]+l,y=v(g,t,n,i,a),m=v(g,e,r,o,c),b=y*y+m*m;p+=f[d]*Math.sqrt(b)}return l*p},b=function(t,e,n,r,i,o,a,c){for(var s=[],l=[[],[]],u,h,f,p,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(h=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*c,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&s.push(p)}else{var g=h*h-4*f*u,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*u);v>0&&v<1&&s.push(v);var m=(-h-y)/(2*u);m>0&&m<1&&s.push(m)}}for(var b=s.length,x=b,O;b--;)O=1-(p=s[b]),l[0][b]=O*O*O*t+3*O*O*p*n+3*O*p*p*i+p*p*p*a,l[1][b]=O*O*O*e+3*O*O*p*r+3*O*p*p*o+p*p*p*c;return l[0][x]=t,l[1][x]=e,l[0][x+1]=a,l[1][x+1]=c,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},x=function(t,e,n,r,i,o,a,c){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,c)||Math.min(e,r)>Math.max(o,c))){var s,l,u=(t-n)*(o-c)-(e-r)*(i-a);if(u){var h=((t*r-e*n)*(i-a)-(t-n)*(i*c-o*a))/u,f=((t*r-e*n)*(o-c)-(e-r)*(i*c-o*a))/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,a).toFixed(2)||p>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,c).toFixed(2)||d>+Math.max(o,c).toFixed(2)))return{x:h,y:f}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},j=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=y,o},w=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:j(t,e,n,r),vb:[t,e,n,r].join(" ")}},M=function(t,e){return t=w(t),e=w(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},S=function(t,e,n,i,o,a,c,s){Object(r.C)(t)||(t=[t,e,n,i,o,a,c,s]);var l=b.apply(null,t);return w(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},C=function(t,e,n,r,i,o,a,c,s){var l=1-s,u=Math.pow(l,3),h=Math.pow(l,2),f=s*s,p=f*s,d,g,y=t+2*s*(n-t)+f*(i-2*n+t),v=e+2*s*(r-e)+f*(o-2*r+e),m=n+2*s*(i-n)+f*(a-2*i+n),b=r+2*s*(o-r)+f*(c-2*o+r),x,O,j,w,M;return{x:u*t+3*h*s*n+3*l*s*s*i+p*a,y:u*e+3*h*s*r+3*l*s*s*o+p*c,m:{x:y,y:v},n:{x:m,y:b},start:{x:l*t+s*n,y:l*e+s*r},end:{x:l*i+s*a,y:l*o+s*c},alpha:90-180*Math.atan2(y-m,v-b)/Math.PI}},A=function(t,e,n){var r=S(t),i=S(e);if(!M(r,i))return n?0:[];for(var o,a,c=~~(m.apply(0,t)/8),s=~~(m.apply(0,e)/8),l=[],u=[],h={},f=n?0:[],p=0;p<c+1;p++){var d=C.apply(0,t.concat(p/c));l.push({x:d.x,y:d.y,t:p/c})}for(var p=0;p<s+1;p++){var d=C.apply(0,e.concat(p/s));u.push({x:d.x,y:d.y,t:p/s})}for(var p=0;p<c;p++)for(var g=0;g<s;g++){var y=l[p],v=l[p+1],b=u[g],O=u[g+1],j=Math.abs(v.x-y.x)<.001?"y":"x",w=Math.abs(O.x-b.x)<.001?"y":"x",A=x(y.x,y.y,v.x,v.y,b.x,b.y,O.x,O.y);if(A){if(h[A.x.toFixed(4)]===A.y.toFixed(4))continue;h[A.x.toFixed(4)]=A.y.toFixed(4);var E=y.t+Math.abs((A[j]-y[j])/(v[j]-y[j]))*(v.t-y.t),k=b.t+Math.abs((A[w]-b[w])/(O[w]-b[w]))*(O.t-b.t);E>=0&&E<=1&&k>=0&&k<=1&&(n?f+=1:f.push({x:A.x,y:A.y,t1:E,t2:k}))}}return f},E=function(t,e,n){var r,i,o,a,c,s,l,u,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,y=t.length;g<y;g++){var v=t[g];if("M"===v[0])r=c=v[1],i=s=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,c,s,c,s],r=c,i=s);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])o=l=x[1],a=u=x[2];else{"C"===x[0]?(f=[o,a].concat(x.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);var O=A(h,f,n);if(n)p+=O;else{for(var j=0,w=O.length;j<w;j++)O[j].segment1=g,O[j].segment2=m,O[j].bez1=h,O[j].bez2=f;p=p.concat(O)}}}}}return p},k=function(t,e){return E(t,e)};function T(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function P(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[],o;"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,c=1/n,s=0;s<n-1;s++){var l,u=T(a,c/(1-c*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=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])}))}var I=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(P(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},F=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var a=0;a<r;a++){var c=Math.floor(i*a);o[c]=(o[c]||0)+1}var s=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(I(t[i],t[i+1],r))}),[]);return s.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||s.push("Z"),s},L=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(r.j)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function B(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var D=function(t,e){var n=t.length,r=e.length,i,o,a=0;if(0===n||0===r)return null;for(var c=[],s=0;s<=n;s++)c[s]=[],c[s][0]={min:s};for(var l=0;l<=r;l++)c[0][l]={min:l};for(var s=1;s<=n;s++){i=t[s-1];for(var l=1;l<=r;l++){o=e[l-1],a=L(i,o)?0:1;var u=c[s-1][l].min+1,h=c[s][l-1].min+1,f=c[s-1][l-1].min+a;c[s][l]=B(u,h,f)}}return c},R=function(t,e){var n=D(t,e),r=t.length,i=e.length,o=[],a=1,c=1;if(n[r][i].min!==r){for(var s=1;s<=r;s++){var l=n[s][s].min;c=s;for(var u=a;u<=i;u++)n[s][u].min<l&&(l=n[s][u].min,c=u);a=c,n[s][a].type&&o.push({index:s-1,type:n[s][a].type})}for(var s=o.length-1;s>=0;s--)a=o[s].index,"add"===o[s].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(var s=0;s<h;s++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function _(t,e,n){for(var r=[].concat(t),i,o=1/(n+1),a=N(e)[0],c=1;c<=n;c++)o*=c,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function N(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var z=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=N(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=_(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=_(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=_(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return u})),n.d(e,"Circle",(function(){return f})),n.d(e,"Ellipse",(function(){return g})),n.d(e,"Image",(function(){return m})),n.d(e,"Line",(function(){return w})),n.d(e,"Marker",(function(){return E})),n.d(e,"Path",(function(){return V})),n.d(e,"Polygon",(function(){return $})),n.d(e,"Polyline",(function(){return U})),n.d(e,"Rect",(function(){return tt})),n.d(e,"Text",(function(){return nt}));var r={};n.r(r),n.d(r,"Base",(function(){return u})),n.d(r,"Circle",(function(){return f})),n.d(r,"Ellipse",(function(){return g})),n.d(r,"Image",(function(){return m})),n.d(r,"Line",(function(){return w})),n.d(r,"Marker",(function(){return E})),n.d(r,"Path",(function(){return V})),n.d(r,"Polygon",(function(){return $})),n.d(r,"Polyline",(function(){return U})),n.d(r,"Rect",(function(){return tt})),n.d(r,"Text",(function(){return nt}));var i=n(1),o=n(10),a=n(7),c=n(21),s=n(45),l,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return s.a},e.prototype.onCanvasChange=function(t){Object(c.h)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n,r=Object(o.getBBoxMethod)(t)(this),i=e/2,a=r.x-i,c=r.y-i,s=r.x+r.width+i,l=r.y+r.height+i;return{x:a,minX:a,y:c,minY:c,width:r.width+e,height:r.height+e,maxX:s,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(c.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!Object(a.f)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(c.a)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(a.f)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(o.AbstractShape),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),c=o.x,s=o.y,l=o.r,u=i/2,h=Object(a.b)(c,s,t,e);return r&&n?h<=l+u:r?h<=l:!!n&&(h>=l-u&&h<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(u);function p(t,e,n,r){return t/(n*n)+e/(r*r)}var d,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,c=o.x,s=o.y,l=o.rx,u=o.ry,h=(t-c)*(t-c),f=(e-s)*(e-s);return r&&n?p(h,f,l+a,u+a)<=1:r?p(h,f,l,u)<=1:!!n&&(p(h,f,l-a,u-a)>=1&&p(h,f,l+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,c=i>o?1:i/o,s=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(c,s),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(u);function y(t){return t instanceof HTMLElement&&Object(a.k)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var v,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(a.k)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):y(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,c=e.sx,s=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||y(h))&&(Object(a.i)(c)||Object(a.i)(s)||Object(a.i)(l)||Object(a.i)(u)?t.drawImage(h,n,r,i,o):t.drawImage(h,c,s,l,u,n,r,i,o))},e}(u),b=n(16);function x(t,e,n,r,i,o,a){var c=Math.min(t,n),s=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),h=i/2;return o>=c-h&&o<=s+h&&a>=l-h&&a<=u+h&&b.c.pointToLine(t,e,n,r,o,a)<=i/2}var O=n(23),j,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&O.b(this,t,r,i,e,n),a&&O.a(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),a,c,s,l;return x(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,c=e.endArrow,s={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(s=O.c(n,r,i,o,e.startArrow.d)),c&&c.d&&(l=O.c(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+s.dx,r+s.dy),t.lineTo(i-l.dx,o-l.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return b.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return b.c.pointAt(n,r,i,o,t)},e}(u),M=n(0),S=n(27),C={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},A,E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(M.K)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t=this.attr(),n=t.x,r=t.y,i=t.symbol||"circle",o=this._getR(t),c,s;if(Object(a.h)(i))s=(c=i)(n,r,o),s=Object(S.d)(s);else{if(!(c=e.Symbols[i]))return console.warn(i+" marker is not supported."),null;s=c(n,r,o)}return s},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(c.e)(this,t,{path:e},n)},e.Symbols=C,e}(u);function k(t,e,n){var r=Object(o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}var T=1e-6;function P(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function I(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function F(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],c=t[(o+1)%i];if(I(a,c,[e,n]))return!0;P(a[1]-n)>0!=P(c[1]-n)>0&&P(e-(n-a[1])*(a[0]-c[0])/(a[1]-c[1])-a[0])<0&&(r=!r)}return r}var L=n(4),B=n(57);function D(t,e,n,r,i,o,c,s){var l=(Math.atan2(s-e,c-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(a.b)(u.x,u.y,c,s)<=o/2}var R=L.a.transform;function _(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i,o=t[r][0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function N(t,e,n,r,i){for(var o=!1,c=e/2,s=0;s<t.length;s++){var l=t[s],u=l.currentPoint,h=l.params,f=l.prePoint,p=l.box;if(!p||Object(a.e)(p.x-c,p.y-c,p.width+e,p.height+e,n,r)){switch(l.command){case"L":case"Z":o=x(f[0],f[1],u[0],u[1],e,n,r);break;case"Q":var d;o=b.e.pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],n,r)<=e/2;break;case"C":var g;o=b.b.pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],h[5],h[6],n,r,i)<=e/2;break;case"A":var y=l.arcParams,v=y.cx,m=y.cy,O=y.rx,j=y.ry,w=y.startAngle,M=y.endAngle,S=y.xRotation,C=[n,r,1],A=O>j?O:j,E,k,T=R(null,[["t",-v,-m],["r",-S],["s",1/(O>j?1:O/j),1/(O>j?j/O:1)]]);B.transformMat3(C,C,T),o=D(0,0,A,w,M,e,C[0],C[1])}if(o)break}}return o}function z(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],c=a[0];"M"===c?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===c?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}}var Y=Object(i.a)({hasArc:_,extractPolygons:z,isPointInStroke:N},o.PathUtil);function G(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o;if(r=F(t[i],e,n))break}return r}var H,V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(S.d)(t);var e=Y.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(S.e)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();O.b(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){var r=this.getEndTangent();O.a(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),c=!1;if(n){var s=this.getTotalLength();c=Y.isPointInStroke(o,i,t,e,s)}if(!c&&r)if(a)c=k(this,t,e);else{var l=this.attr("path"),u=Y.extractPolygons(l);c=G(u.polygons,t,e)||G(u.polylines,t,e)}return c},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(c.e)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(M.K)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e=this.get("tCache"),n,r;e||(this._calculateCurve(),this._setTcache(),e=this.get("tCache"));var i=this.get("curve");if(!e||0===e.length)return i?{x:i[0][1],y:i[0][2]}:null;Object(M.j)(e,(function(e,i){t>=e[0]&&t<=e[1]&&(n=(t-e[0])/(e[1]-e[0]),r=i)}));var o=i[r];if(Object(M.K)(o)||Object(M.K)(r))return null;var a=o.length,c=i[r+1];return b.b.pointAt(o[a-2],o[a-1],c[1],c[2],c[3],c[4],c[5],c[6],n)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Y.pathToCurve(t))},e.prototype._setTcache=function(){var t=0,e=0,n=[],r,i,o,a,c=this.get("curve");c&&(Object(M.j)(c,(function(e,n){o=c[n+1],a=e.length,o&&(t+=b.b.length(e[a-2],e[a-1],o[1],o[2],o[3],o[4],o[5],o[6])||0)})),this.set("totalLength",t),0!==t?(Object(M.j)(c,(function(s,l){o=c[l+1],a=s.length,o&&((r=[])[0]=e/t,i=b.b.length(s[a-2],s[a-1],o[1],o[2],o[3],o[4],o[5],o[6]),e+=i||0,r[1]=e/t,n.push(r))})),this.set("tCache",n)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t=this.getSegments(),e;if(t.length>1){var n=t[0].currentPoint,r=t[1].currentPoint,i=t[1].startTangent;e=[],i?(e.push([n[0]-i[0],n[1]-i[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},e.prototype.getEndTangent=function(){var t=this.getSegments(),e=t.length,n;if(e>1){var r=t[e-2].currentPoint,i=t[e-1].currentPoint,o=t[e-1].endTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},e}(u);function W(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var c,s,l,u;if(x(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var h=t[0],f=t[o-1];if(x(h[0],h[1],f[0],f[1],e,n,r))return!0}return!1}var X,$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=W(o,i,t,e,!0)),!a&&r&&(a=F(o,t,e)),a},e.prototype.createPath=function(t){var e,n=this.attr().points;if(!(n.length<2)){t.beginPath();for(var r=0;r<n.length;r++){var i=n[r];0===r?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(u),q,U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],c=n[0][1],s=n[o-1][0],l=n[o-1][1];r&&O.b(this,t,n[1][0],n[1][1],a,c),i&&O.a(this,t,n[o-2][0],n[o-2][1],s,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&W(this.attr().points,i,t,e,!1);var o},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],c=n[0][1],s=n[o-1][0],l=n[o-1][1],u,u;if(r&&r.d)a+=(u=O.c(a,c,n[1][0],n[1][1],r.d)).dx,c+=u.dy;if(i&&i.d)s-=(u=O.c(n[o-2][0],n[o-2][1],s,l,i.d)).dx,l-=u.dy;t.beginPath(),t.moveTo(a,c);for(var h=0;h<o-1;h++){var f=n[h];t.lineTo(f[0],f[1])}t.lineTo(s,l)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(M.K)(e)?(this.set("totalLength",b.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e=this.attr().points,n=this.get("tCache"),r,i;return n||(this._setTcache(),n=this.get("tCache")),Object(M.j)(n,(function(e,n){t>=e[0]&&t<=e[1]&&(r=(t-e[0])/(e[1]-e[0]),i=n)})),b.c.pointAt(e[i][0],e[i][1],e[i+1][0],e[i+1][1],r)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n=0,r=[],i,o;Object(M.j)(t,(function(a,c){t[c+1]&&((i=[])[0]=n/e,o=b.c.length(a[0],a[1],t[c+1][0],t[c+1][1]),n+=o,i[1]=n/e,r.push(i))})),this.set("tCache",r)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u),K=n(65);function Z(t,e,n,r,i,o,c){var s=i/2;return Object(a.e)(t-s,e-s,n,i,o,c)||Object(a.e)(t+n-s,e-s,i,r,o,c)||Object(a.e)(t+s,e+r-s,n,i,o,c)||Object(a.e)(t-s,e+s,i,r,o,c)}function Q(t,e,n,r,i,o,a,c){var s=o/2;return x(t+i,e,t+n-i,e,o,a,c)||x(t+n,e+i,t+n,e+r-i,o,a,c)||x(t+n-i,e+r,t+i,e+r,o,a,c)||x(t,e+r-i,t,e+i,o,a,c)||D(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,c)||D(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,c)||D(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,c)||D(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,c)}var J,tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),c=o.x,s=o.y,l=o.width,u=o.height,h=o.radius;if(h){var f=!1;return n&&(f=Q(c,s,l,u,h,i,t,e)),!f&&r&&(f=k(this,t,e)),f}var p=i/2;return r&&n?Object(a.e)(c-p,s-p,l+p,u+p,t,e):r?Object(a.e)(c,s,l,u,t,e):n?Z(c,s,l,u,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var c=Object(K.a)(a),s=c[0],l=c[1],u=c[2],h=c[3];t.moveTo(n+s,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),0!==u&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+s),0!==s&&t.arc(n+s,r+s,s,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),et,nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},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=Object(o.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(a.k)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r=this.attrs,i=r.textBaseline,c=r.x,s=r.y,l=1*r.fontSize,u=this._getSpaceingY(),h=Object(o.getTextHeight)(r.text,r.fontSize,r.lineHeight),f;Object(a.c)(e,(function(e,r){f=s+r*(u+l)-h+l,"middle"===i&&(f+=h-l-(h-l)/2),"top"===i&&(f+=h-l),Object(a.i)(e)||(n?t.fillText(e,c,f):t.strokeText(e,c,f))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var c=n.text;Object(a.i)(c)||(e?t.fillText(c,r,i):t.strokeText(c,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(u)},function(t,e,n){"use strict";var r=n(1),i=n(11),o=n(0),a=n(5),c,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t;this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t;this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e,n=t?"auto":"none";this.getContainer().style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(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(Object(o.K)(t)){t=this.createDom();var e=this.get("parent");Object(o.Q)(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 Object(o.Q)(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?Object(o.h)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.h)(e,n)){var r=t[n];Object(i.e)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.j)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.j)(r,(function(t){Object(i.e)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.b)(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){Object(o.y)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(44).a);e.a=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=0,i=.5,o=.5,a=.05},function(t,e,n){var r,i;r=this,(i=function(t){"use strict";function e(t,e){return n(t)||r(t,e)||i()}function n(t){if(Array.isArray(t))return t}function r(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a=t[Symbol.iterator](),c;!(r=(c=a.next()).done)&&(n.push(c.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),o=n(t,r);return null!=i&&isFinite(i)&&null!=o&&isFinite(o)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i=t.length,o=new Float64Array(i),a=new Float64Array(i),c=0,s=0,l,u,h,f=0;f<i;)h=t[f],o[f]=l=+e(h,f,t),a[f]=u=+n(h,f,t),c+=(l-c)/++f,s+=(u-s)/f;for(var p=0;p<i;++p)o[p]-=c,a[p]-=s;return[o,a,c,s]}function a(t,e,n,r){for(var i=0,o=0,a=t.length;o<a;o++){var c=t[o],s=+e(c,o,t),l=+n(c,o,t);null!=s&&isFinite(s)&&null!=l&&isFinite(l)&&r(s,l,i++)}}function c(t,e,n,r,i){var o=0,c=0;return a(t,e,n,(function(t,e){var n=e-i(t),a=e-r;o+=n*n,c+=a*a})),1-o/c}function s(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function l(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function u(t,e,n){for(var r=Math.log(e-t)*Math.LOG10E+1|0,i=1*Math.pow(10,-r/2-1),o=1e4,a=[u(t),u(e)],c=0;h(a)&&c<1e4;);return a;function u(t){return[t,n(t)]}function h(t){c++;for(var e=t.length,n=!1,r=0;r<e-1;r++){var o=t[r],a,h=l([o,t[r+1]]),f=u(h[0]),p=s([o,h]),d=s([o,f]),g;Math.abs(p-d)>i&&(t.splice(r+1,0,f),n=!0)}return n}}function h(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i,a;return[e-o*t,o]}function f(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var o=0,s=0,l=0,f=0,p=0,d=0,g=r?+r[0]:1/0,y=r?+r[1]:-1/0;a(i,t,n,(function(t,e){var n=Math.log(e),i=t*e;++o,s+=(e-s)/o,f+=(i-f)/o,d+=(t*i-d)/o,l+=(e*n-l)/o,p+=(i*n-p)/o,r||(t<g&&(g=t),t>y&&(y=t))}));var v,m=e(h(f/s,l/s,p/s,d/s),2),b=m[0],x=m[1];b=Math.exp(b);var O=function t(e){return b*Math.exp(x*e)},j=u(g,y,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=c(i,t,n,s,O),j}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function p(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var o=0,s=0,l=0,u=0,f=0,p=r?+r[0]:1/0,d=r?+r[1]:-1/0;a(i,t,n,(function(t,e){++o,s+=(t-s)/o,l+=(e-l)/o,u+=(t*e-u)/o,f+=(t*t-f)/o,r||(t<p&&(p=t),t>d&&(d=t))}));var g,y=e(h(s,l,u,f),2),v=y[0],m=y[1],b=function t(e){return m*e+v},x=[[p,b(p)],[d,b(d)]];return x.a=m,x.b=v,x.predict=b,x.rSquared=c(i,t,n,l,b),x}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function d(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var g=2,y=1e-12;function v(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r=.3;function i(i){for(var a,c=e(o(i,t,n,!0),4),s=c[0],l=c[1],u=c[2],f=c[3],p=s.length,g=Math.max(2,~~(r*p)),y=new Float64Array(p),v=new Float64Array(p),O=new Float64Array(p).fill(1),j=-1;++j<=2;){for(var w=[0,g-1],M=0;M<p;++M){for(var S=s[M],C=w[0],A=w[1],E=S-s[C]>s[A]-S?C:A,k=0,T=0,P=0,I=0,F=0,L=1/Math.abs(s[E]-S||1),B=C;B<=A;++B){var D=s[B],R=l[B],_=m(Math.abs(S-D)*L)*O[B],N=D*_;k+=_,T+=N,P+=R*_,I+=R*N,F+=D*N}var z,Y=e(h(T/k,P/k,I/k,F/k),2),G=Y[0],H=Y[1];y[M]=G+H*S,v[M]=Math.abs(l[M]-y[M]),b(s,M+1,w)}if(2===j)break;var V=d(v);if(Math.abs(V)<1e-12)break;for(var W=0,X,$;W<p;++W)X=v[W]/(6*V),O[W]=X>=1?1e-12:($=1-X*X)*$}return x(s,y,u,f)}return i.bandwidth=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function m(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function x(t,e,n,r){for(var i=t.length,o=[],a=0,c=0,s=[],l;a<i;++a)l=t[a]+n,s[0]===l?s[1]+=(e[a]-s[1])/++c:(c=0,s[1]+=r,s=[l,e[a]],o.push(s));return s[1]+=r,o}function O(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r=Math.E,i;function o(o){var s=0,l=0,f=0,p=0,d=0,g=i?+i[0]:1/0,y=i?+i[1]:-1/0,v=Math.log(r);a(o,t,n,(function(t,e){var n=Math.log(t)/v;++s,l+=(n-l)/s,f+=(e-f)/s,p+=(n*e-p)/s,d+=(n*n-d)/s,i||(t<g&&(g=t),t>y&&(y=t))}));var m,b=e(h(l,f,p,d),2),x=b[0],O=b[1],j=function t(e){return O*Math.log(e)/v+x},w=u(g,y,j);return w.a=O,w.b=x,w.predict=j,w.rSquared=c(o,t,n,f,j),w}return o.domain=function(t){return arguments.length?(i=t,o):i},o.x=function(e){return arguments.length?(t=e,o):t},o.y=function(t){return arguments.length?(n=t,o):n},o.base=function(t){return arguments.length?(r=t,o):r},o}function j(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var s,l=e(o(i,t,n),4),h=l[0],f=l[1],p=l[2],d=l[3],g=h.length,y=0,v=0,m=0,b=0,x=0,O,j,w,M;for(O=0;O<g;)j=h[O],w=f[O++],y+=((M=j*j)-y)/O,v+=(M*j-v)/O,m+=(M*M-m)/O,b+=(j*w-b)/O,x+=(M*w-x)/O;var S=0,C=0,A=r?+r[0]:1/0,E=r?+r[1]:-1/0;a(i,t,n,(function(t,e){C++,S+=(e-S)/C,r||(t<A&&(A=t),t>E&&(E=t))}));var k=m-y*y,T=y*k-v*v,P=(x*y-b*v)/T,I=(b*k-x*v)/T,F=-P*y,L=function t(e){return P*(e-=p)*e+I*e+F+d},B=u(A,E,L);return B.a=P,B.b=I-2*P*p,B.c=F-I*p+P*p*p+d,B.predict=L,B.rSquared=c(i,t,n,S,L),B}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function w(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r=3,i;function s(s){if(1===r){var l=p().x(t).y(n).domain(i)(s);return l.coefficients=[l.b,l.a],delete l.a,delete l.b,l}if(2===r){var h=j().x(t).y(n).domain(i)(s);return h.coefficients=[h.c,h.b,h.a],delete h.a,delete h.b,delete h.c,h}var f,d=e(o(s,t,n),4),g=d[0],y=d[1],v=d[2],m=d[3],b=g.length,x=[],O=[],w=r+1,C=0,A=0,E=i?+i[0]:1/0,k=i?+i[1]:-1/0,T,P,I,F,L;for(a(s,t,n,(function(t,e){++A,C+=(e-C)/A,i||(t<E&&(E=t),t>k&&(k=t))})),T=0;T<w;++T){for(I=0,F=0;I<b;++I)F+=Math.pow(g[I],T)*y[I];for(x.push(F),L=new Float64Array(w),P=0;P<w;++P){for(I=0,F=0;I<b;++I)F+=Math.pow(g[I],T+P);L[P]=F}O.push(L)}O.push(x);var B=S(O),D=function t(e){e-=v;var n=m+B[0]+B[1]*e+B[2]*e*e;for(T=3;T<w;++T)n+=B[T]*Math.pow(e,T);return n},R=u(E,k,D);return R.coefficients=M(w,B,-v,m),R.predict=D,R.rSquared=c(s,t,n,C,D),R}return s.domain=function(t){return arguments.length?(i=t,s):i},s.x=function(e){return arguments.length?(t=e,s):t},s.y=function(t){return arguments.length?(n=t,s):n},s.order=function(t){return arguments.length?(r=t,s):r},s}function M(t,e,n,r){var i=Array(t),o,a,c,s;for(o=0;o<t;++o)i[o]=0;for(o=t-1;o>=0;--o)for(c=e[o],s=1,i[o]+=c,a=1;a<=o;++a)s*=(o+1-a)/a,i[o-a]+=c*Math.pow(n,a)*s;return i[0]+=r,i}function S(t){var e=t.length-1,n=[],r,i,o,a,c;for(r=0;r<e;++r){for(a=r,i=r+1;i<e;++i)Math.abs(t[r][i])>Math.abs(t[r][a])&&(a=i);for(o=r;o<e+1;++o)c=t[o][r],t[o][r]=t[o][a],t[o][a]=c;for(i=r+1;i<e;++i)for(o=e;o>=r;o--)t[o][i]-=t[o][r]*t[r][i]/t[r][r]}for(i=e-1;i>=0;--i){for(c=0,o=i+1;o<e;++o)c+=t[o][i]*n[o];n[i]=(t[e][i]-c)/t[i][i]}return n}function C(){var t=function t(e){return e[0]},n=function t(e){return e[1]},r;function i(i){var o=0,s=0,l=0,f=0,p=0,d=0,g=r?+r[0]:1/0,y=r?+r[1]:-1/0;a(i,t,n,(function(t,e){var n=Math.log(t),i=Math.log(e);++o,s+=(n-s)/o,l+=(i-l)/o,f+=(n*i-f)/o,p+=(n*n-p)/o,d+=(e-d)/o,r||(t<g&&(g=t),t>y&&(y=t))}));var v,m=e(h(s,l,f,p),2),b=m[0],x=m[1];b=Math.exp(b);var O=function t(e){return b*Math.pow(e,x)},j=u(g,y,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=c(i,t,n,d,O),j}return i.domain=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}t.regressionExp=f,t.regressionLinear=p,t.regressionLoess=v,t.regressionLog=O,t.regressionPoly=w,t.regressionPow=C,t.regressionQuad=j,Object.defineProperty(t,"__esModule",{value:!0})})(e)},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(15),i=n(58);function o(t,e,n){var i=1,o;return Object(r.h)(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e}function a(t,e){return e?e-t:.14*t}function c(t,e){var n=Object(i.a)(),o=0;if(Object(r.e)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.h)(t)&&t.includes("\n")){var a=t.split("\n");Object(r.a)(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function s(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i,o;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return c})),n.d(e,"registerAdjust",(function(){return s}));var r=n(30),i=n(54),o=n.n(i),a={},c=function(t){return a[t.toLowerCase()]},s=function(t,e){if(c(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(24),i=n(18);function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),c=a?a.getChildren():[n],s=t.get("el"),l;if("remove"===e)if(t.get("isClipShape")){var u=s&&s.parentNode,h=u&&u.parentNode;u&&h&&h.removeChild(u)}else s&&s.parentNode&&s.parentNode.removeChild(s);else if("show"===e)s.setAttribute("visibility","visible");else if("hide"===e)s.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.c)(s,c.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&Object(i.d)(t,(function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0}))}else"clear"===e?s&&(s.innerHTML=""):"matrix"===e?Object(r.c)(t):"clip"===e?Object(r.a)(t,o):"attr"===e||"add"===e&&t.draw(o)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t,e,n){var i=e+"Style",o=null;return Object(r.j)(n,(function(e,n){t[n]&&e[i]&&(o||(o={}),Object(r.db)(o,e[i]))})),o}},function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function t(){};return{s:o,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return c=e.done,e},e:function t(e){s=!0,a=e},f:function t(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){return(a="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 c=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,h=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p,d=function t(e,n,i,o){if(n&&"object"===a(n)||"function"==typeof n){var c=r(u(n)),h;try{var p=function t(){var r=h.value;f.call(e,r)||r===i||s(e,r,{get:function t(){return n[r]},enumerable:!(o=l(n,r))||o.enumerable})};for(c.s();!(h=c.n()).done;)p()}catch(t){c.e(t)}finally{c.f()}}return e},g=function t(e,n,r){return r=null!=e?c(h(e)):{},d(!n&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)},y=function t(e){return d(s({},"__esModule",{value:!0}),e)},v={};(function t(e,n){for(var r in n)s(e,r,{get:n[r],enumerable:!0})})(v,{Area:function t(){return O.default},Bar:function t(){return x.default},Column:function t(){return j.default},Line:function t(){return m.default},Pie:function t(){return b.default}}),t.exports=y(v);var m=g(n(113)),b=g(n(123)),x=g(n(124)),O=g(n(125)),j=g(n(126))},function(t,e,n){"use strict";var r=n(39);n.d(e,"getAdjust",(function(){return r.getAdjust}));var i=n(30),o=n(92),a=n(93),c=n(94),s=n(95),l=n(54),u=n.n(l);Object(r.registerAdjust)("Dodge",o.a),Object(r.registerAdjust)("Jitter",a.a),Object(r.registerAdjust)("Stack",c.a),Object(r.registerAdjust)("Symmetric",s.a)},function(t,e,n){"use strict";var r=n(1),i=n(10),o=n(0),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},c=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(r.c)(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,n=this.get("defaultCfg")||{};Object(o.j)(t,(function(t,r){var i,a=t;e.get(r)!==t&&(Object(o.O)(t)&&n[r]&&(a=Object(o.h)({},n[r],t)),e.set(r,a))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.y)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.y)(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=Object(r.a)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=a[n];return Object(o.j)(r,(function(n){e[n]=t.get(n)})),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");Object(o.j)(e,(function(e,n){var r=t.get(n);if(Object(o.O)(r)){var i=Object(o.h)({},e,r);t.set(n,i)}}))},e}(i.Base);e.a=c},function(t,e,n){"use strict";var r=n(1),i=n(10),o=n(34),a=n(21),c=n(0),s=n(7),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.onCanvasChange=function(t){Object(a.h)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(c.j)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=Object(c.bb)(e),o=Object(c.Y)(e),a=Object(c.bb)(n),l=Object(c.Y)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:l,width:o-i,height:l-a};var u=this.cfg.canvas;if(u){var h=u.getViewRange();this.set("isInView",Object(s.f)(r,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Object(a.a)(t,this),this._applyClip(t,this.getClip()),Object(a.d)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.a=l},function(t,e,n){"use strict";var r=n(1),i=n(10),o=n(0),a=n(47),c=n(40),s=n(24),l=n(9),u=n(18),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(u.b)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){Object(c.b)(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(s.a)(this,t),this.createPath(t),e.length&&Object(c.a)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.j)(e||n,(function(t,e){l.b[e]&&r.setAttribute(l.b[e],t)})),Object(s.c)(this)},e}(i.AbstractGroup);e.a=h},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return f})),n.d(e,"Circle",(function(){return g})),n.d(e,"Dom",(function(){return v})),n.d(e,"Ellipse",(function(){return b})),n.d(e,"Image",(function(){return O})),n.d(e,"Line",(function(){return M})),n.d(e,"Marker",(function(){return E})),n.d(e,"Path",(function(){return T})),n.d(e,"Polygon",(function(){return I})),n.d(e,"Polyline",(function(){return L})),n.d(e,"Rect",(function(){return z})),n.d(e,"Text",(function(){return $}));var r={};n.r(r),n.d(r,"Base",(function(){return f})),n.d(r,"Circle",(function(){return g})),n.d(r,"Dom",(function(){return v})),n.d(r,"Ellipse",(function(){return b})),n.d(r,"Image",(function(){return O})),n.d(r,"Line",(function(){return M})),n.d(r,"Marker",(function(){return E})),n.d(r,"Path",(function(){return T})),n.d(r,"Polygon",(function(){return I})),n.d(r,"Polyline",(function(){return L})),n.d(r,"Rect",(function(){return z})),n.d(r,"Text",(function(){return $}));var i=n(1),o=n(10),a=n(24),c=n(18),s=n(40),l=n(9),u=n(46),h,f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return u.a},e.prototype.onCanvasChange=function(t){Object(s.b)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,c=e.height,s=this.getHitLineWidth(),l=s/2,u=r-l,h=i-l,f,p;return{x:u,y:h,minX:u,minY:h,maxX:r+a+l,maxY:i+c+l,width:a+s,height:c+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(c.a)(this),Object(a.a)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,c=n.fillOpacity,s=n.strokeOpacity,u=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),c&&h.setAttribute(l.b.fillOpacity,c)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),s&&h.setAttribute(l.b.strokeOpacity,s),u&&h.setAttribute(l.b.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el"),i;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(l.b[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(l.b[e],"url(#"+i+")")}else r.setAttribute(l.b[e],n);else r.setAttribute(l.b[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,c=r.shadowBlur,s=r.shadowColor;(i||o||c||s)&&Object(a.b)(this,t)},e.prototype.transform=function(t){var e=this.attr(),n;(t||e).matrix&&Object(a.c)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r,i=this.get("canvas").get("el").getBoundingClientRect(),o=t+i.left,a=e+i.top,c=document.elementFromPoint(o,a);return!(!c||!c.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape),p=n(0),d,g=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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(p.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(f),y,v=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 Object(i.c)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(p.j)(e||n,(function(t,e){l.b[e]&&r.setAttribute(l.b[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(f),m,b=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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(p.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(f),x,O=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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(p.j)(e||r,(function(t,e){"img"===e?n._setImage(r.img):l.b[e]&&i.setAttribute(l.b[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(p.Q)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(p.Q)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(f),j=n(16),w,M=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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(p.j)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Object(p.O)(e)?t.addArrow(n,l.b[i]):t.getDefaultArrow(n,l.b[i]);r.setAttribute(l.b[i],"url(#"+o+")")}else r.removeAttribute(l.b[i]);else l.b[i]&&r.setAttribute(l.b[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return j.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return j.c.pointAt(n,r,i,o,t)},e}(f),S={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},C={get:function(t){return S[t]},register:function(t,e){S[t]=e},remove:function(t){delete S[t]},getAll:function(){return S}},A,E=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 Object(i.c)(e,t),e.prototype.createPath=function(t){var e;this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(p.C)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t=this.attr(),e=t.x,n=t.y,r=t.r||t.radius,i=t.symbol||"circle",o;return(o=Object(p.I)(i)?i:C.get(i))?o(e,n,r):(console.warn(o+" symbol is not exist."),null)},e.symbolsFactory=C,e}(f),k,T=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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(p.j)(e||r,(function(e,o){if("path"===o&&Object(p.C)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(p.O)(e)?t.addArrow(r,l.b[o]):t.getDefaultArrow(r,l.b[o]);i.setAttribute(l.b[o],"url(#"+a+")")}else i.removeAttribute(l.b[o]);else l.b[o]&&i.setAttribute(l.b[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(f),P,I=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 Object(i.c)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(p.j)(e||n,(function(t,e){"points"===e&&Object(p.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(f),F,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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(p.j)(e||n,(function(t,e){"points"===e&&Object(p.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.b[e]&&r.setAttribute(l.b[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(p.K)(e)?(this.set("totalLength",j.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e=this.attr().points,n=this.get("tCache"),r,i;return n||(this._setTcache(),n=this.get("tCache")),Object(p.j)(n,(function(e,n){t>=e[0]&&t<=e[1]&&(r=(t-e[0])/(e[1]-e[0]),i=n)})),j.c.pointAt(e[i][0],e[i][1],e[i+1][0],e[i+1][1],r)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n=0,r=[],i,o;Object(p.j)(t,(function(a,c){t[c+1]&&((i=[])[0]=n/e,o=j.c.length(a[0],a[1],t[c+1][0],t[c+1][1]),n+=o,i[1]=n/e,r.push(i))})),this.set("tCache",r)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(f),B=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,D=/[^\s,]+/gi;function R(t){var e=0,n=0,r=0,i=0;return Object(p.C)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}function _(t){return t=t||[],Object(p.C)(t)?t:Object(p.Q)(t)?(t=t.match(B),Object(p.j)(t,(function(e,n){if((e=e.match(D))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}Object(p.j)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}var N,z=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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(p.j)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&l.b[e]&&i.setAttribute(l.b[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=R(o),c;return Object(p.C)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(f),Y=n(63),G=.3,H={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},V={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},W={left:"left",start:"left",center:"middle",right:"end",end:"end"},X,$=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 Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),Object(p.j)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a.c)(n):l.b[e]&&i.setAttribute(l.b[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=Object(Y.a)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",V[n]||"alphabetic"):t.setAttribute("alignment-baseline",H[n]||"baseline"),t.setAttribute("text-anchor",W[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),c=a.length-1,s="";Object(p.j)(a,(function(t,e){0===e?"alphabetic"===o?s+='<tspan x="'+r+'" dy="'+-c+'em">'+t+"</tspan>":"top"===o?s+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?s+='<tspan x="'+r+'" dy="'+-(c-1)/2+'em">'+t+"</tspan>":"bottom"===o?s+='<tspan x="'+r+'" dy="-'+(c+.3)+'em">'+t+"</tspan>":"hanging"===o&&(s+='<tspan x="'+r+'" dy="'+(-(c-1)-.3)+'em">'+t+"</tspan>"):s+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=s}else e.innerHTML=t;else e.innerHTML=""},e}(f)},function(t,e,n){"use strict";var r="*",i=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],c=a.callback,s;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),c.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.a=i},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return c})),n.d(e,"set",(function(){return s})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return d})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return v})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return O})),n.d(e,"length",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return M})),n.d(e,"inverse",(function(){return S})),n.d(e,"normalize",(function(){return C})),n.d(e,"dot",(function(){return A})),n.d(e,"cross",(function(){return E})),n.d(e,"lerp",(function(){return k})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat2",(function(){return P})),n.d(e,"transformMat2d",(function(){return I})),n.d(e,"transformMat3",(function(){return F})),n.d(e,"transformMat4",(function(){return L})),n.d(e,"rotate",(function(){return B})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return R})),n.d(e,"str",(function(){return _})),n.d(e,"exactEquals",(function(){return N})),n.d(e,"equals",(function(){return z})),n.d(e,"len",(function(){return Y})),n.d(e,"sub",(function(){return G})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return V})),n.d(e,"dist",(function(){return W})),n.d(e,"sqrDist",(function(){return X})),n.d(e,"sqrLen",(function(){return $})),n.d(e,"forEach",(function(){return q}));var r=n(17);function i(){var t=new r.a(2);return r.a!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.a(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.a(2);return n[0]=t,n[1]=e,n}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function s(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function v(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function O(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function j(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function w(t){var e=t[0],n=t[1];return e*e+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function C(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]}function E(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function k(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function T(t,e){e=e||1;var n=2*r.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function F(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function B(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),c=Math.cos(r);return t[0]=i*c-o*a+n[0],t[1]=i*a+o*c+n[1],t}function D(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),c=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(c,-1),1))}function R(t){return t[0]=0,t[1]=0,t}function _(t){return"vec2("+t[0]+", "+t[1]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.b*Math.max(1,Math.abs(i),Math.abs(a))}var Y=j,G=u,H=h,V=f,W=x,X=O,$=w,q=(U=i(),function(t,e,n,r,i,o){var a,c;for(e||(e=2),n||(n=0),c=r?Math.min(r*e+n,t.length):t.length,a=n;a<c;a+=e)U[0]=t[a],U[1]=t[a+1],i(U,U,o),t[a]=U[0],t[a+1]=U[1];return t}),U},function(t,e,n){"use strict";n.r(e),n.d(e,"Area",(function(){return $B})),n.d(e,"Bar",(function(){return KB})),n.d(e,"Box",(function(){return dD})),n.d(e,"Bullet",(function(){return JB})),n.d(e,"Column",(function(){return nD})),n.d(e,"Funnel",(function(){return oD})),n.d(e,"Histogram",(function(){return sD})),n.d(e,"Line",(function(){return hD})),n.d(e,"Liquid",(function(){return vD})),n.d(e,"Heatmap",(function(){return xD})),n.d(e,"Pie",(function(){return wD})),n.d(e,"Progress",(function(){return kD})),n.d(e,"Radar",(function(){return ID})),n.d(e,"Facet",(function(){return BR})),n.d(e,"RingProgress",(function(){return BD})),n.d(e,"Rose",(function(){return _D})),n.d(e,"Chord",(function(){return YD})),n.d(e,"Scatter",(function(){return VD})),n.d(e,"TinyArea",(function(){return $D})),n.d(e,"TinyColumn",(function(){return KD})),n.d(e,"TinyLine",(function(){return nR})),n.d(e,"Waterfall",(function(){return oR})),n.d(e,"WordCloud",(function(){return sR})),n.d(e,"Sunburst",(function(){return hR})),n.d(e,"DualAxes",(function(){return JD})),n.d(e,"Stock",(function(){return dR})),n.d(e,"RadialBar",(function(){return vR})),n.d(e,"CirclePacking",(function(){return IR})),n.d(e,"Gauge",(function(){return CD})),n.d(e,"Sankey",(function(){return xR})),n.d(e,"Treemap",(function(){return wR})),n.d(e,"Violin",(function(){return CR})),n.d(e,"Venn",(function(){return kR})),n.d(e,"MultiView",(function(){return NR})),n.d(e,"Mix",(function(){return NR})),n.d(e,"BidirectionalBar",(function(){return GR})),n.d(e,"G2",(function(){return r})),n.d(e,"getCanvasPattern",(function(){return Fp})),n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return bg})),n.d(e,"flow",(function(){return Wf})),n.d(e,"measureTextWidth",(function(){return Jf})),n.d(e,"adaptors",(function(){return $L})),n.d(e,"Plot",(function(){return yd}));var r={};n.r(r),n.d(r,"VIEW_LIFE_CIRCLE",(function(){return g})),n.d(r,"BRUSH_FILTER_EVENTS",(function(){return zh})),n.d(r,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return xu})),n.d(r,"VERSION",(function(){return vo})),n.d(r,"Chart",(function(){return Xr})),n.d(r,"View",(function(){return Vr})),n.d(r,"Event",(function(){return Dr})),n.d(r,"ComponentController",(function(){return $r})),n.d(r,"TooltipController",(function(){return Kr})),n.d(r,"Geometry",(function(){return Ai})),n.d(r,"Element",(function(){return li})),n.d(r,"GeometryLabel",(function(){return Hi})),n.d(r,"Interaction",(function(){return jn})),n.d(r,"Action",(function(){return ge})),n.d(r,"Facet",(function(){return ue})),n.d(r,"InteractionAction",(function(){return ge})),n.d(r,"registerComponentController",(function(){return kr})),n.d(r,"registerGeometry",(function(){return Hr})),n.d(r,"registerShape",(function(){return xi})),n.d(r,"registerShapeFactory",(function(){return bi})),n.d(r,"getShapeFactory",(function(){return Oi})),n.d(r,"registerGeometryLabel",(function(){return pi})),n.d(r,"registerGeometryLabelLayout",(function(){return gi})),n.d(r,"getGeometryLabel",(function(){return fi})),n.d(r,"getGeometryLabelLayout",(function(){return di})),n.d(r,"getInteraction",(function(){return Fn})),n.d(r,"registerInteraction",(function(){return Ln})),n.d(r,"registerAction",(function(){return Oe})),n.d(r,"getActionClass",(function(){return xe})),n.d(r,"getFacet",(function(){return fe})),n.d(r,"registerFacet",(function(){return pe})),n.d(r,"getTheme",(function(){return lr})),n.d(r,"registerTheme",(function(){return ur})),n.d(r,"registerEngine",(function(){return C})),n.d(r,"getEngine",(function(){return S})),n.d(r,"registerAnimation",(function(){return Jr})),n.d(r,"getAnimation",(function(){return Qr})),n.d(r,"LAYER",(function(){return l})),n.d(r,"DIRECTION",(function(){return u})),n.d(r,"Coordinate",(function(){return rt})),n.d(r,"Scale",(function(){return Z.c})),n.d(r,"Util",(function(){return mo}));var i={};n.r(i),n.d(i,"cluster",(function(){return Jw})),n.d(i,"hierarchy",(function(){return Px})),n.d(i,"pack",(function(){return fx})),n.d(i,"packSiblings",(function(){return ax})),n.d(i,"packEnclose",(function(){return Xb})),n.d(i,"partition",(function(){return Hw})),n.d(i,"stratify",(function(){return iM})),n.d(i,"tree",(function(){return pM})),n.d(i,"treemap",(function(){return mM})),n.d(i,"treemapBinary",(function(){return bM})),n.d(i,"treemapDice",(function(){return Gw})),n.d(i,"treemapSlice",(function(){return dM})),n.d(i,"treemapSliceDice",(function(){return xM})),n.d(i,"treemapSquarify",(function(){return vM})),n.d(i,"treemapResquarify",(function(){return OM}));var o=n(3),a=n.n(o),c=n(1),s=n(0),l,u,h;!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(l||(l={})),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"}(u||(u={})),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"}(h||(h={}));var f=3,p=2,d=1,g,y,v,m;!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"}(g||(g={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(y||(y={})),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"}(v||(v={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(m||(m={}));var b=["color","shape","size"],x="_origin",O=1,j=1,w=.25,M={};function S(t){var e=M[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function C(t,e){M[t]=e}var A=n(11);function E(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)}}function k(t){return"number"==typeof t&&!isNaN(t)}function T(t,e,n,r){var i=n,o=r;if(e){var a=E(t);i=a.width?a.width:i,o=a.height?a.height:o}return{width:Math.max(k(i)?i:1,1),height:Math.max(k(o)?o:1,1)}}function P(t){var e=t.parentNode;e&&e.removeChild(t)}var I=n(48),F,L=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return Object(c.c)(e,t),e.prototype.show=function(){var t;this.visible||this.changeVisible(!0)},e.prototype.hide=function(){var t;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}(I.a),B=n(10),D=n(43),R=function(t,e){return Object(s.Q)(e)?e:t.invert(t.scale(e))},_,N=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 r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n],o;return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},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 r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,i=t.names,o=void 0===i?[]:i,a=t.scales,c=void 0===a?[]:a,l=t.values,u=void 0===l?[]:l,h=t.callback;this.type=r,this.scales=c,this.values=u,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var r=h.apply(void 0,t);if(!Object(s.K)(r))return[r]}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 r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(s.C)(t)?t.map((function(t){return R(e,t)})):R(e,t)},t}(),z=n(28),Y,G=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(s.Q)(n.values)&&(n.linear=!0),n.gradient=z.a.gradient(n.values),n}return Object(c.c)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(N),H,V=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(c.c)(e,t),e}(N),W,X=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(c.c)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return Object(s.K)(t)||Object(s.K)(e)?[]:[Object(s.C)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Object(s.C)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(N),$,q=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(c.c)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(N),U,K=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(c.c)(e,t),e}(N),Z=n(32),Q={},J=function(t){return Q[t.toLowerCase()]},tt=function(t,e){if(J(t))throw new Error("Attribute type '".concat(t,"' existed."));Q[t.toLowerCase()]=e};tt("Color",G),tt("Opacity",V),tt("Position",X),tt("Shape",q),tt("Size",K);var et=n(4),nt,rt=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,r=t.matrix,i=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=i,this.originalMatrix=Object(c.g)([],i),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(s.b)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=[t,e,n];return et.d.transformMat3(i,i,r),i},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=et.b.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return i&&et.d.transformMat3(o,o,i),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return et.a.leftTranslate(e,e,[-n.x,-n.y]),et.a.leftRotate(e,e,t),et.a.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return et.a.leftTranslate(n,n,[-r.x,-r.y]),et.a.leftScale(n,n,[t,e]),et.a.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return et.a.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(c.g)([],this.originalMatrix)},t}(),it,ot=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(c.c)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(rt),at,ct=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,c=e.innerRadius,s=void 0===c?0:c,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=s,n.radius=l,n.initial(),n}return Object(c.c)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=et.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=et.a.angleTo(r,[1,0],!0),o=i*this.a,a;et.c.length(r)<o&&(o=et.c.length(r)),i=2*Math.floor((et.c.length(r)-o)/n)*Math.PI+i;var c=this.a*i,l=et.c.length(r)-c;l=Object(s.N)(l,0)?0:l;var u=this.invertDim(i,"x"),h=this.invertDim(l,"y");return u=Object(s.N)(u,0)?0:u,h=Object(s.N)(h,0)?0:h,this.isTransposed&&(u=(e=[h,u])[0],h=e[1]),{x:u,y:h}},e}(rt),st,lt=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,c=e.innerRadius,s=void 0===c?0:c,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=s,n.radius=l,n.initial(),n}return Object(c.c)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e=this.getOneBox(),n=e.maxX-e.minX,r=e.maxY-e.minY,i=Math.abs(e.minX)/n,o=Math.abs(e.minY)/r,a;this.height/r>this.width/n?(a=this.width/n,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-o)*a*r}):(a=this.height/r,this.circleCenter={x:this.center.x-(.5-i)*a*n,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=a*this.radius:(this.radius<=0||this.radius>a)&&(this.polarRadius=a):this.polarRadius=a,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this,o=i.startAngle,a=i.endAngle;this.isReflect("x")&&(o=(e=[a,o])[0],a=e[1]);var c=[1,0,0,0,1,0,0,0,1];et.a.leftRotate(c,c,o);var l=[1,0,0];et.d.transformMat3(l,l,c);var u=[l[0],l[1]],h=et.a.angleTo(u,r,a<o);Object(s.N)(h,2*Math.PI)&&(h=0);var f=et.c.length(r),p=h/(a-o);p=a-o>0?p:-p;var d=this.invertDim(f,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(rt),ut={},ht=function(t){return ut[t.toLowerCase()]},ft=function(t,e){ut[t.toLowerCase()]=e};ft("rect",ot),ft("cartesian",ot),ft("polar",lt),ft("helix",ct);var pt=n(14),dt=pt.Axis.Line,gt=pt.Axis.Circle,yt=pt.Grid.Line,vt=pt.Grid.Circle,mt=pt.Legend.Category,bt=pt.Legend.Continuous,xt=pt.Tooltip.Html;function Ot(t){if(Object(s.G)(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return Object(s.j)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i})),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}function jt(t){return 1===Array.from(new Set(t)).length}function wt(t){return(Object(s.bb)(t)+Object(s.Y)(t))/2}function Mt(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function St(t,e,n,r,i,o){void 0===o&&(o=0);var a=Mt(t,e,n,r),c=Mt(t,e,n,i),s=Mt(t,e,o,r),l=Mt(t,e,o,i);if(i-r==2*Math.PI){var u=Mt(t,e,n,r+Math.PI),h=Mt(t,e,o,r+Math.PI),f=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,c.x,c.y],["M",s.x,s.y]];return o&&(f.push(["A",o,o,0,1,0,h.x,h.y]),f.push(["A",o,o,0,1,0,l.x,l.y])),f.push(["M",a.x,a.y]),f.push(["Z"]),f}var p=i-r<=Math.PI?0:1,d=[["M",a.x,a.y],["A",n,n,0,p,1,c.x,c.y],["L",l.x,l.y]];return o&&d.push(["A",o,o,0,p,0,s.x,s.y]),d.push(["L",a.x,a.y]),d.push(["Z"]),d}function Ct(t,e,n,r,i){var o=Mt(t,e,n,r),a=Mt(t,e,n,i);if(Object(s.N)(i-r,2*Math.PI)){var c=Mt(t,e,n,r+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,c.x,c.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,c.x,c.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=i-r<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function At(t,e){var n,r=Ot(t.points),i,o,a=e.startAngle,c,s=e.endAngle-a;return e.isTransposed?(i=r.maxY*s,o=r.minY*s):(i=r.maxX*s,o=r.minX*s),{startAngle:o+=a,endAngle:i+=a}}function Et(t,e){if(Object(s.M)(t)&&Object(s.M)(e))return[t,e];if(e=e,jt(t=t)||jt(e))return[wt(t),wt(e)];for(var n=-1,r=0,i=0,o,a=t.length-1,c,l=0;++n<t.length;)o=a,a=n,l+=c=t[o]*e[a]-t[a]*e[o],r+=(t[o]+t[a])*c,i+=(e[o]+e[a])*c;return[r/(l*=3),i/l]}function kt(t,e){var n=t.attr(),r=e.attr();return Object(s.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}function Tt(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function Pt(t,e,n){if(Object(s.Q)(t))return t.padEnd(e,n);if(Object(s.C)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t}function It(t,e){return"object"==typeof t&&e.forEach((function(e){delete t[e]})),t}function Ft(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=Object(c.i)(t),a=o.next();!a.done;a=o.next()){var s=a.value;n.has(s)||(e.push(s),n.set(s,!0))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var Lt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=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;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(s.j)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(s.j)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case u.TOP:case u.TOP_LEFT:case u.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case u.RIGHT:case u.RIGHT_TOP:case u.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case u.BOTTOM:case u.BOTTOM_LEFT:case u.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case u.LEFT:case u.LEFT_TOP:case u.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=Object(c.e)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+r,this.width-a-i,this.height-r-o)},t.prototype.expand=function(e){var n=Object(c.e)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-r,this.width+a+i,this.height+r+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.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}(),Bt=function(t,e){var n=e.start,r=e.end;return new Lt(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))};function Dt(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function Rt(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function _t(t){if(t.isPolar){var e=t.startAngle,n;return t.endAngle-e==2*Math.PI}return!1}function Nt(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function zt(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=Tt(e.x,r.x,i.x)&&Tt(e.y,r.y,i.y)}else{var o=t.invert(e);n=Tt(o.x,0,1)&&Tt(o.y,0,1)}return n}function Yt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Gt(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a;if(t.isPolar){var c=t.startAngle,s=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:St(l.x,l.y,u+e,c,c)},endState:function(t){var n=(s-c)*t+c,r;return{path:St(l.x,l.y,u+e,c,n)}},attrs:{path:St(l.x,l.y,u+e,c,s)}}}return a=t.isTransposed?{height:o+2*e}:{width:i+2*e},{type:"rect",startState:{x:n.x-e,y:r.y-e,width:t.isTransposed?i+2*e:0,height:t.isTransposed?0:o+2*e},endState:a,attrs:{x:n.x-e,y:r.y-e,width:i+2*e,height:o+2*e}}}function Ht(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),c=Math.min(n.y,r.y);return Lt.fromRange(a-e,c-e,a+i+e,c+o+e)}var Vt=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function Wt(t){var e="linear";return Vt.test(t)?e="timeCat":Object(s.Q)(t)&&(e="cat"),e}function Xt(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&b.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function $t(t,e,n){var r=e||[],i;if(Object(s.M)(t)||Object(s.K)(Object(s.o)(r,t))&&Object(s.G)(n))return new(Object(Z.d)("identity"))({field:t.toString(),values:[t]});var o=Object(s.yb)(r,t),a=Object(s.s)(n,"type",Wt(o[0])),l;return new(Object(Z.d)(a))(Object(c.a)({field:t,values:o},n))}function qt(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}function Ut(t){return t.alias||t.field}function Kt(t,e,n){var r,i=t.values.length,o;if(1===i)o=[.5,1];else{var a=1,c=0;o=_t(e)?e.isTransposed?[(c=1/i*(a=Object(s.s)(n,"widthRatio.multiplePie",1/1.3)))/2,1-c/2]:[0,1-1/i]:[c=1/i/2,1-c]}return o}function Zt(t){var e=t.values.filter((function(t){return!Object(s.K)(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(c.g)(Object(c.g)([],Object(c.e)(e),!1),[Object(s.K)(t.max)?-1/0:t.max],!1))}function Qt(t){var e,n;switch(t){case u.TOP:e={x:0,y:1},n={x:1,y:1};break;case u.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case u.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case u.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function Jt(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function te(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=Qt(e):t.isPolar&&(n=Jt(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function ee(t,e){return t.isRect?t.isTransposed?[u.RIGHT,u.BOTTOM].includes(e)?1:-1:[u.BOTTOM,u.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1;var n}function ne(t){var e=t.start,n=t.end;return e.x===n.x}function re(t,e){var n=t.start,r=t.end,i;return ne(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function ie(t,e){var n=Object(s.s)(t,["components","axis"],{});return Object(s.h)({},Object(s.s)(n,["common"],{}),Object(s.h)({},Object(s.s)(n,[e],{})))}function oe(t,e,n){var r=Object(s.s)(t,["components","axis"],{});return Object(s.h)({},Object(s.s)(r,["common","title"],{}),Object(s.h)({},Object(s.s)(r,[e,"title"],{})),n)}function ae(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],c=[1,0],s=o.y>r.y?et.c.angle(a,c):-1*et.c.angle(a,c),l=s+(e.end-e.start),u;return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:s,endAngle:l}}function ce(t,e){return Object(s.D)(t)?!1!==t&&{}:Object(s.s)(t,[e])}function se(t,e){return Object(s.s)(t,"position",e)}function le(t,e){return Object(s.s)(e,["title","text"],Ut(t))}var ue=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(s.h)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){var t;return this.view.getLayer(l.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(s.j)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height,r;return this.cfg.spacing.map((function(t,r){return Object(s.M)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(s.j)(t,(function(t){var i=t[e];Object(s.K)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=Object(c.e)(this.parseSpacing(),2),o=i[0],a=i[1],s=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,u={x:(s+o)*n,y:(l+a)*r},h;return{start:u,end:{x:u.x+s,y:u.y+l}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t;return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries,o;if("rect"===Object(s.s)(r,"type","rect")&&i.length){Object(s.K)(n.axes)&&(n.axes={});var a=n.axes,l=Object(c.e)(i[0].getXYFields(),2),u=l[0],h=l[1],f=ce(a,u),p=ce(a,h);!1!==f&&(n.axes[u]=this.getXAxisOption(u,a,f,e)),!1!==p&&(n.axes[h]=this.getYAxisOption(h,a,p,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(s.k)(t,(function(t){var n=t.field,r=t.value;return!(!Object(s.K)(r)&&n)||e[n]===r}))}},t}(),he={},fe=function(t){return he[Object(s.V)(t)]},pe=function(t,e){he[Object(s.V)(t)]=e},de,ge=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(s.b)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),ye,ve=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(ge),me={};function be(t,e){var n=me[t],r=null,i,o;n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init());return r}function xe(t){var e=me[t];return Object(s.s)(e,"ActionClass")}function Oe(t,e,n){me[t]={ActionClass:e,cfg:n}}function je(t){delete me[t]}function we(t,e){var n=new ve(e);return n.callback=t,n.name="callback",n}function Me(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}function Se(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function Ce(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o}),c;return["A",r,r,0,0,n?0:1,a.x,a.y]}function Ae(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},c={x:e[1],y:e[2]},s=[],l=r?"y":"x",u=Math.abs(c[l]-a[l])*(o-i),h=c[l]>=a[l]?1:0,f=u>Math.PI?1:0,p=n.convert(c),d=Nt(n,p);if(d>=.5)if(u===2*Math.PI){var g={x:(c.x+a.x)/2,y:(c.y+a.y)/2},y=n.convert(g);s.push(["A",d,d,0,f,h,y.x,y.y]),s.push(["A",d,d,0,f,h,p.x,p.y])}else s.push(["A",d,d,0,f,h,p.x,p.y]);return s}function Ee(t){Object(s.j)(t,(function(e,n){var r;if("a"===e[0].toLowerCase()){var i=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var ke=function(t,e,n,r){var i,o=[],a=!!r,s,l,u,h,f,p,d;if(a){u=(i=Object(c.e)(r,2))[0],h=i[1];for(var g=0,y=t.length;g<y;g++){var v=t[g];u=et.c.min([0,0],u,v),h=et.c.max([0,0],h,v)}}for(var g=0,m=t.length;g<m;g++){var v=t[g];if(0!==g||n)if(g!==m-1||n){s=t[n?g?g-1:m-1:g-1],l=t[n?(g+1)%m:g+1];var b=[0,0];b=et.c.sub(b,l,s),b=et.c.scale(b,b,e);var x=et.c.distance(v,s),O=et.c.distance(v,l),j=x+O;0!==j&&(x/=j,O/=j);var w=et.c.scale([0,0],b,-x),M=et.c.scale([0,0],b,O);p=et.c.add([0,0],v,w),f=et.c.add([0,0],v,M),f=et.c.min([0,0],f,et.c.max([0,0],l,v)),f=et.c.max([0,0],f,et.c.min([0,0],l,v)),w=et.c.sub([0,0],f,v),w=et.c.scale([0,0],w,-x/O),p=et.c.add([0,0],v,w),p=et.c.min([0,0],p,et.c.max([0,0],s,v)),p=et.c.max([0,0],p,et.c.min([0,0],s,v)),M=et.c.sub([0,0],v,p),M=et.c.scale([0,0],M,O/x),f=et.c.add([0,0],v,M),a&&(p=et.c.max([0,0],p,u),p=et.c.min([0,0],p,h),f=et.c.max([0,0],f,u),f=et.c.min([0,0],f,h)),o.push(d),o.push(p),d=f}else p=v,o.push(d),o.push(p);else d=v}return n&&o.push(o.shift()),o};function Te(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var c=ke(i,.4,r,n),s=i.length,l=[],u,h,f,o=0;o<s-1;o++)u=c[2*o],h=c[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=c[s],h=c[s+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}function Pe(t,e){return Me(t,e)}function Ie(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return Pe(t,e);for(var a=0,c=t.length;a<c;a++){var s=t[a];o&&o.x===s.x&&o.y===s.y||(r.push(s.x),r.push(s.y),o=s)}var l,u=Te(r,e,n||[[0,0],[1,1]]);return u.unshift(["M",i.x,i.y]),u}function Fe(t,e){var n=[];return Object(s.j)(e,(function(e){var r;switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(Se(e,t));break;case"a":n.push(Ce(e,t));break;case"z":default:n.push(e)}})),n}function Le(t,e){var n=[],r,i,o,a;return Object(s.j)(e,(function(c,s){var l;switch(c[0].toLowerCase()){case"m":case"c":case"q":n.push(Se(c,t));break;case"l":r=e[s-1],i=c,o=t.isTransposed,(a=o?r[r.length-2]===i[1]:r[r.length-1]===i[2])?n=n.concat(Ae(r,i,t)):n.push(Se(c,t));break;case"a":n.push(Ce(c,t));break;case"z":default:n.push(c)}})),Ee(n),n}var Be=n(27);function De(t,e){var n,r;return _e(t.event.target,e)}function Re(t,e){var n=t.getCanvasBBox(),r=n.width,i=n.height;return r>0&&i>0&&(r>=e||i>=e)}function _e(t,e){var n=t.getCanvasBBox();return Re(t,e)?n:null}function Ne(t,e){var n;return t.event.maskShapes.map((function(t){return _e(t,e)})).filter((function(t){return!!t}))}function ze(t,e){var n,r;return Ye(t.event.target,e)}function Ye(t,e){return Re(t,e)?t.attr("path"):null}function Ge(t,e){var n;return t.event.maskShapes.map((function(t){return Ye(t,e)}))}function He(t){var e,n,r=t.event.target;return r&&(n=r.get("element")),n}function Ve(t){var e,n=t.event.target,r;return n&&(r=n.get("delegateObject")),r}function We(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function Xe(t){return t&&t.component&&t.component.isList()}function $e(t){return t&&t.component&&t.component.isSlider()}function qe(t){var e,n=t.event.target;return n&&"mask"===(null==n?void 0:n.get("name"))||Ue(t)}function Ue(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function Ke(t,e){var n=t.event.target;if(Ue(t))return Ze(t,e);if("path"===n.get("type")){var r=ze(t,e);if(!r)return;return ln(t.view,r)}var i=De(t,e);return i?cn(t.view,i):null}function Ze(t,e){var n;if("path"===t.event.target.get("type")){var r=Ge(t,e);return r.length>0?r.flatMap((function(e){return ln(t.view,e)})):null}var i=Ne(t,e);return i.length>0?i.flatMap((function(e){return cn(t.view,e)})):null}function Qe(t,e,n){if(Ue(t))return tn(t,e,n);var r=De(t,n);return r?Je(r,t,e):null}function Je(t,e,n){var r=e.view,i=yn(r,n,{x:t.x,y:t.y}),o=yn(r,n,{x:t.maxX,y:t.maxY}),a;return cn(n,{minX:i.x,minY:i.y,maxX:o.x,maxY:o.y})}function tn(t,e,n){var r=Ne(t,n);return r.length>0?r.flatMap((function(n){return Je(n,t,e)})):null}function en(t){var e=t.geometries,n=[];return Object(s.j)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(s.j)(t.views,(function(t){n=n.concat(en(t))})),n}function nn(t,e,n){var r;return en(t).filter((function(t){return on(t,e)===n}))}function rn(t,e){var n=t.geometries,r=[];return Object(s.j)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function on(t,e){var n,r=t.getModel().data,i;return i=Object(s.C)(r)?r[0][e]:r[e]}function an(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function cn(t,e){var n=en(t),r=[];return Object(s.j)(n,(function(t){var n,i=t.shape.getCanvasBBox();an(e,i)&&r.push(t)})),r}function sn(t){var e=[];return Object(s.j)(t,(function(t){var n;if("A"!==t[0])for(var r=1;r<t.length;r+=2)e.push([t[r],t[r+1]]);else{var i=t.length;e.push([t[i-2],t[i-1]])}})),e}function ln(t,e){var n=en(t),r=sn(e),i;return n.filter((function(t){var e=t.shape,n,i;"path"===e.get("type")?n=sn(e.attr("path")):n=Dt(e.getCanvasBBox());return Object(Be.b)(r,n)}))}function un(t){return t.getComponents().map((function(t){return t.component}))}function hn(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function fn(t,e){if(t.length<=2)return Pe(t,!1);var n=t[0],r=[];Object(s.j)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=Te(r,e,null);return i.unshift(["M",n.x,n.y]),i}function pn(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function dn(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function gn(t,e){var n;return t.getCoordinate().invert(e)}function yn(t,e,n){var r=gn(t,n);return e.getCoordinate().convert(r)}function vn(t,e,n,r){var i=!1;return Object(s.j)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function mn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(s.j)(t.views,(function(t){if(n=mn(t,e))return!1})),n}var bn,xn=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event,e,n;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 Object(s.s)(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=un(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&pn(r,n):pn(r,n)}))},t.prototype.destroy=function(){Object(s.j)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),On,jn=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();function wn(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||be(i,e),a;if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function Mn(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var Sn="start",Cn="showEnable",An="end",En="rollback",kn="processing",Tn,Pn=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return Object(c.c)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(s.j)(this.steps,(function(e,n){Object(s.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(s.j)(this.steps,(function(e,n){Object(s.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new xn(t);this.context=e;var n=this.steps;Object(s.j)(n,(function(t){Object(s.j)(t,(function(t){if(Object(s.I)(t.action))t.actionObject={action:we(t.action,e),methodName:"execute"};else if(Object(s.Q)(t.action))t.actionObject=wn(t.action,e,t.arg);else if(Object(s.C)(t.action)){var n=t.action,r=Object(s.C)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(s.j)(n,(function(n,i){t.actionObject.push(wn(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Cn)return!0;if(t===kn)return e===Sn;if(t===Sn)return e!==kn;if(t===An)return e===kn||e===Sn;if(t===En){if(n[An])return e===An;if(e===Sn)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==Cn&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var c=function(i){r.event=i,n.isAllowExecute(t,e)?(Object(s.C)(o)?Object(s.j)(o,(function(t){r.event=i,Mn(t)})):(r.event=i,Mn(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=Object(s.g)(c,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=Object(s.qb)(c,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=c}return i[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(jn),In={};function Fn(t){return In[Object(s.V)(t)]}function Ln(t,e){In[Object(s.V)(t)]=e}function Bn(t,e,n){var r=Fn(t),i;if(!r)return null;if(Object(s.P)(r)){var o=Object(s.db)(Object(s.e)(r),n);return new Pn(e,o)}return new r(e,n)}function Dn(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function Rn(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}function _n(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},r=Dn(t),i=Rn(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=At(t.getModel(),e),i,o,a=(r.startAngle+r.endAngle)/2,c=7.5,s=c*Math.cos(a),l=c*Math.sin(a);return{matrix:et.a.transform(null,[["t",s,l]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Object(c.a)(Object(c.a)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(c.a)(Object(c.a)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(c.a)(Object(c.a)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(c.a)(Object(c.a)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(c.a)(Object(c.a)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(c.a)(Object(c.a)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(c.a)(Object(c.a)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(c.a)(Object(c.a)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(s.h)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(s.h)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(pt.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(pt.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(pt.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(pt.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(pt.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(pt.TOOLTIP_CSS_CONST.VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var Nn="#000",zn="#0D0D0D",Yn="#262626",Gn="#595959",Hn="#8C8C8C",Vn="#BFBFBF",Wn="#D9D9D9",Xn="#F0F0F0",$n="#FFFFFF",qn="#F2F2F2",Un="#D9D9D9",Kn="#A6A6A6",Zn="#737373",Qn="#404040",Jn="#262626",tr="#0F0F0F",er=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],nr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],rr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],ir=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?er:e,r=t.paletteQualitative20,i=void 0===r?nr:r,o=t.brandColor,a=void 0===o?n[0]:o,s={backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:rr,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:Vn,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Gn,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Un,axisTickLineBorderColor:Vn,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Wn,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Hn,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Wn,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Hn,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Gn,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:Nn,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Nn,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Hn,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Wn,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Hn,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Xn,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Vn,annotationArcBorderColor:Wn,annotationArcBorder:1,annotationLineBorderColor:Vn,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Gn,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Nn,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Vn,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Gn,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Gn,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:$n,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Gn,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:$n,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Vn,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:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:$n,pointBorderOpacity:1,pointActiveBorderColor:Nn,pointSelectedBorder:2,pointSelectedBorderColor:Nn,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:$n,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Nn,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Nn,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Nn,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Nn,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Nn,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Nn,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:$n,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Nn,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Nn,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(c.a)(Object(c.a)({},s),t)},or=ir();function ar(t){var e=t.styleSheet,n=void 0===e?{}:e,r=Object(c.f)(t,["styleSheet"]),i=ir(n);return Object(s.h)({},_n(i),r)}var cr,sr={default:ar({})};function lr(t){return Object(s.s)(sr,Object(s.V)(t),sr.default)}function ur(t,e){sr[Object(s.V)(t)]=ar(e)}function hr(t,e,n){var r=n.translate(t),i=n.translate(e);return Object(s.N)(r,i)}function fr(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],c,s=n.invert(t).x;return n.isPolar&&s>(1+o)/2&&(s=a),r.translate(r.invert(s))}function pr(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),c=i.invert(a.y),l;return Object(s.m)(t,(function(t){var e=t._origin;return e[o][0]<=c&&e[o][1]>=c}))||t[t.length-1]}var dr=Object(s.ab)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],c=t.translate(a);c<r&&(r=c),c>i&&(i=c)}return(i-r)/(n-1)}));function gr(t,e,n){var r,i=e.getAttribute("position").getFields(),o=e.scales,a=Object(s.I)(n)||!n?i[0]:n,c=o[a],l=c?c.getText(t[a]):t[a]||a;return Object(s.I)(n)?n(l,t):l}function yr(t){var e=Object(s.xb)(t.attributes);return Object(s.l)(e,(function(t){return Object(s.f)(b,t.type)}))}function vr(t){var e,n,r=yr(t),i;try{for(var o=Object(c.i)(r),a=o.next();!a.done;a=o.next()){var l=a.value,u=l.getScale(l.type),h,f;if(u&&u.isLinear)if("cat"!==Xt(u,Object(s.s)(t.scaleDefs,u.field),l.type,t.type)){i=u;break}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var p=t.getXScale(),d=t.getYScale();return i||d||p}function mr(t,e){var n,r=t[e.field],i;return Object(s.C)(r)?r.map((function(t){return e.getText(t)})).join("-"):e.getText(r)}function br(t,e){var n,r=e.getGroupScales(),i;if(r.length&&(n=r[0]),n){var o=n.field;return n.getText(t[o])}return Ut(vr(e))}function xr(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,c=o.field,l=null;if("heatmap"===r||"point"===r){for(var u,h=n.coordinate.invert(t),f=i.invert(h.x),p=o.invert(h.y),d=1/0,g=0;g<e.length;g++){var y=e[g],v=y._origin,m=Math.pow(v[a]-f,2)+Math.pow(v[c]-p,2);m<d&&(d=m,l=y)}return l}var b=e[0],x=e[e.length-1],O=fr(t,n),j=b._origin[a],w=b._origin[c],M=x._origin[a],S=o.isLinear&&Object(s.C)(w);if(Object(s.C)(j)){for(var g=0;g<e.length;g++){var C,v=(C=e[g])._origin;if(i.translate(v[a][0])<=O&&i.translate(v[a][1])>=O){if(!S){l=C;break}Object(s.C)(l)||(l=[]),l.push(C)}}Object(s.C)(l)&&(l=pr(l,t,n))}else{var A=void 0;if(i.isLinear||"timeCat"===i.type){if((O>i.translate(M)||O<i.translate(j))&&(O>i.max||O<i.min))return null;for(var E=0,k=e.length-1,T=void 0;E<=k;){var P=e[T=Math.floor((E+k)/2)]._origin[a];if(hr(P,O,i))return e[T];i.translate(P)<=i.translate(O)?(E=T+1,x=e[T],A=e[T+1]):(0===k&&(x=e[0]),k=T-1)}}else{for(var g=0;g<e.length;g++){var C,v;if(hr((v=(C=e[g])._origin)[a],O,i)){if(!S){l=C;break}Object(s.C)(l)||(l=[]),l.push(C)}else i.translate(v[a])<=O&&(x=C,A=e[g+1])}Object(s.C)(l)&&(l=pr(l,t,n))}x&&A&&Math.abs(i.translate(x._origin[a])-O)>Math.abs(i.translate(A._origin[a])-O)&&(x=A)}var I=dr(n.getXScale());return!l&&Math.abs(i.translate(x._origin[a])-O)<=I/2&&(l=x),l}function Or(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a=t._origin,l=gr(a,e,n),u=e.tooltipOption,h=e.theme.defaultColor,f=[],p,d;function g(e,n){if(r||!Object(s.K)(n)&&""!==n){var i={title:l,data:a,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};f.push(i)}}if(Object(s.O)(u)){var y=u.fields,v=u.callback;if(v){var m=y.map((function(e){return t._origin[e]})),b=v.apply(void 0,Object(c.g)([],Object(c.e)(m),!1)),x=Object(c.a)({data:t._origin,mappingData:t,title:l,color:t.color||h,marker:!0},b);f.push(x)}else{var O=e.scales;try{for(var j=Object(c.i)(y),w=j.next();!w.done;w=j.next()){var M=w.value;if(!Object(s.K)(a[M])){var S=O[M];g(p=Ut(S),d=S.getText(a[M]))}}}catch(t){i={error:t}}finally{try{w&&!w.done&&(o=j.return)&&o.call(j)}finally{if(i)throw i.error}}}}else{var C=vr(e);d=mr(a,C),g(p=br(a,e),d)}return f}function jr(t,e,n,r){var i,o,a=r.showNil,l=[],u=t.dataArray;if(!Object(s.G)(u)){t.sort(u);try{for(var h=Object(c.i)(u),f=h.next();!f.done;f=h.next()){var p,d=xr(e,f.value,t);if(d){var g=t.getElementId(d),y=t.elementsMap[g];if("heatmap"===t.type||y.visible){var v=Or(d,t,n,a);v.length&&l.push(v)}}}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}return l}function wr(t,e,n,r){var i=r.showNil,o=[],a,c=t.container.getShape(e.x,e.y);if(c&&c.get("visible")&&c.get("origin")){var s,l=Or(c.get("origin").mappingData,t,n,i);l.length&&o.push(l)}return o}function Mr(t,e,n){var r,i,o=[],a=t.geometries,s=n.shared,l=n.title,u=n.reversed;try{for(var h=Object(c.i)(a),f=h.next();!f.done;f=h.next()){var p=f.value;if(p.visible&&!1!==p.tooltipOption){var d=p.type,g=void 0;(g=["point","edge","polygon"].includes(d)?wr(p,e,l,n):["area","line","path","heatmap"].includes(d)||!1!==s?jr(p,e,l,n):wr(p,e,l,n)).length&&(u&&g.reverse(),o.push(g))}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return o}function Sr(t,e,n){var r,i,o=Mr(t,e,n);try{for(var a=Object(c.i)(t.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(Mr(l,e,n))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function Cr(t){return!Object(s.M)(t)&&!Object(s.C)(t)}function Ar(t){void 0===t&&(t=0);var e=Object(s.C)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(c.g)(Object(c.g)([],Object(c.e)(e),!1),Object(c.e)(e),!1);break;case 3:e=Object(c.g)(Object(c.g)([],Object(c.e)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var Er={};function kr(t,e){Er[t]=e}function Tr(t){delete Er[t]}function Pr(){return Object.keys(Er)}function Ir(t){return Er[t]}var Fr,Lr=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 Object(s.nb)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=Object(c.a)({start:t,end:e},i),s=ht(o?"polar":r);return this.coordinate=new s(a),this.coordinate.type=r,o&&(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 Object(c.a)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(s.j)(n,(function(n){var r,i=Object(c.e)(n),o=i[0],a=i.slice(1),l;(!!Object(s.K)(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,Object(c.g)([],Object(c.e)(a),!1))}))},t}(),Br,Dr=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,r){return new t(e,new B.Event(n,{}),r)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();function Rr(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation"),i,o;[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}var _r=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,c={type:a.type};a.isCategory&&(c.values=a.values),i=Object(s.h)(c,o.scaleDef,n)}var l=$t(t,e,i);return this.cacheScale(l,n,r),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,c=[];Object(s.j)(r,(function(t){var e=n.getScale(t);a=Object(s.M)(e.max)?Math.max(a,e.max):a,o=Object(s.M)(e.min)?Math.min(o,e.min):o,Object(s.j)(e.values,(function(t){c.includes(t)||c.push(t)}))})),Object(s.j)(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:c});else if(i.isCategory){var l=i.range,u=n.getScaleMeta(r);c&&!Object(s.s)(u,["scaleDef","range"])&&(l=Kt(Object(s.h)({},i,{values:c}),t,e)),i.change({values:c,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(qt(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(s.U)(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,r=e.field,i=Object(s.s)(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Nr=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=Object(c.e)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=Object(c.e)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case u.TOP:case u.TOP_LEFT:case u.TOP_RIGHT:this.top+=r;break;case u.RIGHT:case u.RIGHT_TOP:case u.RIGHT_BOTTOM:this.right+=n;break;case u.BOTTOM:case u.BOTTOM_LEFT:case u.BOTTOM_RIGHT:this.bottom+=r;break;case u.LEFT:case u.LEFT_TOP:case u.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,Object(c.g)([void 0],Object(c.e)(this.getPadding()),!1)))},t}();function zr(t){var e=t.padding;if(!Cr(e))return new(Nr.bind.apply(Nr,Object(c.g)([void 0],Object(c.e)(Ar(e)),!1)));var n=t.viewBBox,r=new Nr,i=[],o=[],a=[];return Object(s.j)(t.getComponents(),(function(t){var e=t.type;e===h.AXIS?i.push(t):[h.LEGEND,h.SLIDER,h.SCROLLBAR].includes(e)?o.push(t):e!==h.GRID&&e!==h.TOOLTIP&&a.push(t)})),Object(s.j)(i,(function(t){var e,i=t.component.getLayoutBBox(),o,a=new Lt(i.x,i.y,i.width,i.height).exceed(n);r.max(a)})),Object(s.j)(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new Lt(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),Object(s.j)(a,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new Lt(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function Yr(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var Gr=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Pr(),n.scalePool=new _r,n.layoutFunc=Rr,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var r=e.id,i=void 0===r?Object(s.vb)("view"):r,o=e.parent,a=e.canvas,l=e.backgroundGroup,u=e.middleGroup,h=e.foregroundGroup,f=e.region,p=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=e.padding,g=e.appendPadding,y=e.theme,v=e.options,m=e.limitInPlot,b=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=l,n.middleGroup=u,n.foregroundGroup=h,n.region=p,n.padding=d,n.appendPadding=g,n.options=Object(c.a)(Object(c.a)({},n.options),v),n.limitInPlot=m,n.id=i,n.syncViewPadding=b,n.themeObject=Object(s.O)(y)?Object(s.h)({},lr("default"),ar(y)):lr(y),n.init(),n}return Object(c.c)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(g.BEFORE_RENDER,Dr.fromData(this,g.BEFORE_RENDER,e)),this.paint(t),this.emit(g.AFTER_RENDER,Dr.fromData(this,g.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(g.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];for(var r=this.controllers,n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();for(var i=this.views,n=0;n<i.length;n++)i[n].clear();this.emit(g.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(g.BEFORE_DESTROY);var e=this.interactions;Object(s.j)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,i=n.length;r<i;r++){var o;n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){var o;n[r].changeVisible(e)}for(var a=this.controllers,r=0,i=a.length;r<i;r++){var c;a[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(s.lb)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(s.I)(e)?(Object(s.lb)(this.options,["filters",t],e),this):(!e&&Object(s.s)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(s.D)(t)?Object(s.lb)(this.options,["axes"],t):Object(s.lb)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(s.D)(t)?Object(s.lb)(this.options,["legends"],t):Object(s.Q)(t)?(Object(s.lb)(this.options,["legends",t],e),Object(s.P)(e)&&(null==e?void 0:e.selected)&&Object(s.lb)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):Object(s.lb)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(s.Q)(t)?Object(s.lb)(this.options,["scales",t],e):Object(s.O)(t)&&Object(s.j)(t,(function(t,e){Object(s.lb)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(s.lb)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(s.Q)(t)?Object(s.lb)(this.options,"coordinate",{type:t,cfg:e}):Object(s.lb)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=fe(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,Object(c.a)(Object(c.a)({},e),{type:t})),this},e.prototype.animate=function(t){return Object(s.lb)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(s.db)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Object(s.lb)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(s.O)(t)?Object(s.h)({},this.themeObject,ar(t)):lr(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=Bn(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(g.BEFORE_CHANGE_DATA,Dr.fromData(this,g.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){var i;e[n].changeData(t)}this.emit(g.AFTER_CHANGE_DATA,Dr.fromData(this,g.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:Object(s.e)(this.options.scales),axes:Object(s.e)(this.options.axes),coordinate:Object(s.e)(this.coordinateController.getOption()),tooltip:Object(s.e)(this.options.tooltip),legends:Object(s.e)(this.options.legends),animate:this.options.animate,visible:this.visible},r=new e(Object(c.a)(Object(c.a)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:d}),middleGroup:this.middleGroup.addGroup({zIndex:p}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:f}),theme:this.themeObject,padding:this.padding},t),{options:Object(c.a)(Object(c.a)({},n),Object(s.s)(t,"options",{}))}));return this.views.push(r),r},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(s.jb)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return Object(s.ib)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===l.BG?this.backgroundGroup:t===l.MID?this.middleGroup:(l.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return zt(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(s.q)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return Ft(Object(s.q)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e=this.getCoordinate(),n=this.getScalesByDim("x"),r=this.getScalesByDim("y"),i,o;if(Object(s.j)(t,(function(t,e){n[e]&&(i=n[e].scale(t)),r[e]&&(o=r[e].scale(t))})),!Object(s.K)(i)&&!Object(s.K)(o))return e.convert({x:i,y:o})},e.prototype.getController=function(t){return Object(s.m)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var o=e[r],a=o.dataArray;o.sort(a);for(var c=void 0,s=0,l=a.length;s<l;s++){var u;(c=xr(t,a[s],o))&&n.push(c)}}for(var h=this.views,r=0,i=h.length;r<i;r++){var f,p=h[r].getSnapRecords(t);n=n.concat(p)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(s.mb)(e)?t:Object(s.l)(t,(function(t,n){var r;return Object.keys(e).every((function(r){var i;return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=Object(s.s)(n,t);return Object(s.S)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,i=this.coordinateBBox.tr;Object(s.H)(e,r)&&Object(s.H)(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(g.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(g.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(s.s)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,i=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:i,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){var e;this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=zr(this).shrink(Ar(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var n=this.views,r=0,i=n.length;r<i;r++){var o;n[r].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?Yr:Object(s.I)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,Nr),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++){var o;n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Gt(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,c=o.length;a<c;a++){var s;o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,r){var i=Object(s.s)(this.options.scales,[t]),o=Object(c.a)(Object(c.a)({},i),n);return this.parent?this.parent.createScale(t,e,o,r):this.scalePool.createScale(t,e,o,r)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){var i;e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var o=this.region,a=o.start,c=o.end,s=new Lt(t+n*a.x,e+r*a.y,n*(c.x-a.x),r*(c.y-a.y));this.viewBBox&&this.viewBBox.isEqual(s)||(this.viewBBox=new Lt(t+n*a.x,e+r*a.y,n*(c.x-a.x),r*(c.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r,i=Ir(t[e]);i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new Dr(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n,r,i={x:t.x,y:t.y},o;if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var a=this.isPointInPlot(i),c=t.clone();if(a){var s="plot:".concat(e);c.type=s,this.emit(s,c),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!a?("mousemove"===e&&(c.type=v.MOUSE_LEAVE,this.emit(v.MOUSE_LEAVE,c)),c.type=v.LEAVE,this.emit(v.LEAVE,c)):!this.isPreMouseInPlot&&a&&("mousemove"===e&&(c.type=v.MOUSE_ENTER,this.emit(v.MOUSE_ENTER,c)),c.type=v.ENTER,this.emit(v.ENTER,c)),this.isPreMouseInPlot=a):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(c.type=v.MOUSE_LEAVE,this.emit(v.MOUSE_LEAVE,c)),c.type=v.LEAVE,this.emit(v.LEAVE,c),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(s.s)(this.options,"scales",{}),r=this.geometries,i=0,o=r.length;i<o;i++){var a=r[i];a.scales=this.getGeometryScales();var c={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(c):a.init(c)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,c=0,s=t.length;c<s;c++){var l=t[c],u=o[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:a,u,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i,o;Ft(n[r].getScaleFields(),t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i,o;Ft(n[r].getGroupFields(),t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(c.g)([this.getXScale()],Object(c.e)(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),r=this.options.scales;Object(s.j)(e,(function(e){var i=e.field,o=e.values,a=e.isCategory,c=e.isIdentity;(a||c)&&o&&!Object(s.s)(r,[i,"range"])&&(e.range=Kt(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=this.getComponents(),n=0;n<e.length;n++){var r;e[n].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,r=void 0===n?[]:n,i=e.interactions,o=void 0===i?[]:i,a=e.views,l=void 0===a?[]:a,u=e.annotations,h=void 0===u?[]:u,f=e.coordinate,p=e.events,d=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new Lr(f);for(var g=0;g<r.length;g++){var y=r[g];this.createGeometry(y)}for(var v=0;v<o.length;v++){var m=o[v],b=m.type,x=m.cfg;this.interaction(b,x)}for(var O=0;O<l.length;O++){var j=l[O];this.createView(j)}for(var w=this.getController("annotation"),M=0;M<h.length;M++){var S=h[M];w.annotation(S)}p&&Object(s.j)(p,(function(e,n){t.on(n,e)})),d&&Object(s.j)(d,(function(e){var n=e.type,r=Object(c.f)(e,["type"]);t.facet(n,r)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var i=this[e](r);Object(s.j)(t,(function(t,e){Object(s.I)(i[e])&&i[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(L);function Hr(t,e){Gr.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(c.a)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}}var Vr=Gr,Wr,Xr=function(t){function e(e){var n=this,r=e.container,i=e.width,o=e.height,a=e.autoFit,l=void 0!==a&&a,u=e.padding,h=e.appendPadding,g=e.renderer,y=void 0===g?"canvas":g,v=e.pixelRatio,m=e.localRefresh,b=void 0===m||m,x=e.visible,O=void 0===x||x,j=e.supportCSSTransform,w=void 0!==j&&j,M=e.defaultInteractions,C=void 0===M?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:M,E=e.options,k=e.limitInPlot,P=e.theme,I=e.syncViewPadding,F=Object(s.Q)(r)?document.getElementById(r):r,L=Object(A.b)('<div style="position:relative;"></div>');F.appendChild(L);var B=T(F,l,i,o),D,R=new(S(y).Canvas)(Object(c.a)({container:L,pixelRatio:v,localRefresh:b,supportCSSTransform:w},B));return(n=t.call(this,{parent:null,canvas:R,backgroundGroup:R.addGroup({zIndex:d}),middleGroup:R.addGroup({zIndex:p}),foregroundGroup:R.addGroup({zIndex:f}),padding:u,appendPadding:h,visible:O,options:E,limitInPlot:k,theme:P,syncViewPadding:I})||this).onResize=Object(s.g)((function(){n.forceFit()}),300),n.ele=F,n.canvas=R,n.width=B.width,n.height=B.height,n.autoFit=l,n.localRefresh=b,n.renderer=y,n.wrapperElement=L,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(C),n}return Object(c.c)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(s.j)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(g.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(g.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(),P(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=T(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(A.e)(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}(Vr),$r=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(s.j)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();function qr(t){for(var e=[],n=function(n){var r=t[n],i;Object(s.m)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}var Ur,Kr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t;return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Dr.fromData(e,"tooltip:show",Object(c.a)({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,l=o.showMarkers,u=o.showCrosshairs,h=o.showContent,f=o.marker,p=this.items,d=this.title;if(Object(s.H)(d,r)&&Object(s.H)(p,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Dr.fromData(e,"tooltip:change",Object(c.a)({items:n,title:r},t))),(Object(s.I)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(s.db)({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=r,u){var g=Object(s.s)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:i,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t;if(this.getTooltipCfg().follow){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,r=this.yCrosshair;n&&n.hide(),r&&r.hide();var i=this.tooltip;i&&i.hide(),this.view.emit("tooltip:hide",Dr.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,r=t.yCrosshair,i=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),r&&r.clear(),i&&i.clear(),(null==e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,r=e.tooltipMarkersGroup,i=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),r&&r.show(),i&&i.show(),o&&o.show()):(n&&n.hide(),r&&r.hide(),i&&i.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,l=this.findItemsFromView(this.view,t);if(l.length){l=Object(s.q)(l);try{for(var u=Object(c.i)(l),h=u.next();!h.done;h=u.next()){var f=h.value;try{for(var p=(r=void 0,Object(c.i)(f)),d=p.next();!d.done;d=p.next()){var g=d.value,y=g.mappingData,v=y.x,m=y.y;g.x=Object(s.C)(v)?v[v.length-1]:v,g.y=Object(s.C)(m)?m[m.length-1]:m}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var b;if(!1===this.getTooltipCfg().shared&&l.length>1){var x=l[0],O=Math.abs(t.y-x[0].y);try{for(var j=Object(c.i)(l),w=j.next();!w.done;w=j.next()){var M=w.value,S=Math.abs(t.y-M[0].y);S<=O&&(x=M,O=S)}}catch(t){o={error:t}}finally{try{w&&!w.done&&(a=j.return)&&a.call(j)}finally{if(o)throw o.error}}l=[x]}return qr(Object(s.q)(l))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,c=r.height;return new Lt(i,o,a,c).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),i=Object(s.s)(r,["components","tooltip"],{}),o=Object(s.s)(n,"enterable",i.enterable);return Object(s.h)({},i,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(s.D)(t)||!Object(s.s)(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var r=e(t,n)||"";return Object(s.Q)(r)?'<div class="g2-tooltip">'+r+"</div>":r};return Object(c.a)(Object(c.a)({},t),{customContent: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")}},n=this.getTooltipCfg(),r=new xt(Object(c.a)(Object(c.a)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var l=Object(c.i)(t),u=l.next();!u.done;u=l.next()){var h=u.value,f=h.x,p=h.y;if(a||(null==i?void 0:i.getClip())){var d=Gt(o.getCoordinate()),g=d.type,y=d.attrs;null==i||i.setClip({type:g,attrs:y})}else null==i||i.setClip(void 0);var v=this.view.getTheme(),m=Object(s.s)(v,["components","tooltip","marker"],{}),b=Object(c.a)(Object(c.a)({fill:h.color,symbol:"circle",shadowColor:h.color},Object(s.I)(e)?Object(c.a)(Object(c.a)({},m),e(h)):e),{x:f,y:p});i.addShape("marker",{attrs:b})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(s.s)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate(),r,i;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},i={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},i={x:t.x,y:n.start.y});else{var o=Yt(n,t),a=n.getCenter(),c=n.getRadius();i=Mt(a.x,a.y,c,o),r=a}var l=Object(s.h)({start:r,end:i,container:this.getTooltipCrosshairsGroup()},Object(s.s)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new pt.Crosshair.Line(l)).init(),u.render(),u.show(),this.xCrosshair=u},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate(),r,i;if(n.isRect){var o=void 0,a=void 0;n.isTransposed?(o={x:t.x,y:n.end.y},a={x:t.x,y:n.start.y}):(o={x:n.start.x,y:t.y},a={x:n.end.x,y:t.y}),r={start:o,end:a},i="Line"}else r={center:n.getCenter(),radius:Nt(n,t),startAngle:n.startAngle,endAngle:n.endAngle},i="Circle";delete(r=Object(s.h)({container:this.getTooltipCrosshairsGroup()},r,Object(s.s)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new pt.Crosshair[i](r)).init():c.update(r):(c=new pt.Crosshair[i](r)).init(),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(s.s)(n,["crosshairs","text"]),i=Object(s.s)(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),c=o[0],l=a.getXScale(),u=a.getYScales()[0],h=void 0,f=void 0;if(i){var p=this.view.getCoordinate().invert(e);h=l.invert(p.x),f=u.invert(p.y)}else h=c.data[l.field],f=c.data[u.field];var d="x"===t?h:f;return Object(s.I)(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,r;if(!1===t.getOptions().tooltip)return[];var i,o=Mr(t,e,this.getTooltipCfg());try{for(var a=Object(c.i)(t.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(this.findItemsFromView(l,e))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(s.m)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n;return(e||function(t){return t})(t)},e}($r),Zr={};function Qr(t){return Zr[t.toLowerCase()]}function Jr(t,e){Zr[t.toLowerCase()]=e}var ti={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},ei={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},ni={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){var e;return{animation:e=t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function ri(t,e){return{delay:Object(s.I)(t.delay)?t.delay(e):t.delay,easing:Object(s.I)(t.easing)?t.easing(e):t.easing,duration:Object(s.I)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function ii(t,e,n){var r=ei[t];return r&&(Object(s.I)(r)&&(r=r(e)),r=Object(s.h)({},ti,r),n)?r[n]:r}function oi(t,e,n){var r=Object(s.s)(t.get("origin"),"data","_origin"),i=e.animation,o=ri(e,r);if(i){var a=Qr(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}function ai(t,e,n,r,i){if(ni[n]){var o=ni[n](r),a=Qr(Object(s.s)(o,"animation",""));if(a){var l=Object(c.a)(Object(c.a)(Object(c.a)({},ti.appear),o),e);t.stopAnimate(),a(t,l,{coordinate:r,minYPoint:i,toAttrs:null})}}}var ci="element-background",si,li=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,c=e.visible,s=void 0===c||c;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=s,n.elementIndex=a,n}return Object(c.c)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this,n=e.shapeFactory,r=e.shape;if(r){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(r,t);var i=this.getOffscreenGroup(),o=n.drawShape(this.shapeType,t,i);o.cfg.data=this.data,o.cfg.origin=t,o.cfg.element=this,this.syncShapeStyle(r,o,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,r=e.shape;if(r){var i=this.getAnimateCfg("leave");i?oi(r,i,{coordinate:n.coordinate,toAttrs:Object(c.a)({},r.attr())}):r.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,a=n.shape,c=n.shapeType,s=r.indexOf(t);if(e){if(s>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==a||a.toFront()}else{if(-1===s)return;if(r.splice(s,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,h,f=l.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(f):a.set("zIndex",f)}}var p=i.drawShape(c,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,p,r,null):this.syncShapeStyle(a,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Object(pt.propagationDelegate)(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(s.j)(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,e=t.shape,n=t.labelShape,r={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(r=e.getCanvasBBox()),n&&n.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,e=t.shapeType,n=t.geometry,r=t.shapeFactory,i=n.stateOption,o=r.defaultShapeType,a=r.theme[e]||r.theme[o];this.statesStyle=Object(s.h)({},a,i)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(s.s)(n,[t,"style"],{}),i=r[e]||r;return Object(s.I)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?Object(c.a)(Object(c.a)({},r),{callback:function(){var t;Object(s.I)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(y.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this,i=r.shapeFactory,o=r.container,a=r.shapeType;if(this.shape=i.drawShape(a,t,o),this.shape){this.setShapeInfo(this.shape,t);var l=this.shape.cfg.name;l?Object(s.Q)(l)&&(this.shape.cfg.name=["element",l]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var u=e?"enter":"appear",h=this.getAnimateCfg(u);h&&(null===(n=this.geometry)||void 0===n||n.emit(y.BEFORE_DRAW_ANIMATE),oi(this.shape,h,{coordinate:i.coordinate,toAttrs:Object(c.a)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this,r;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,i){var o=this,a;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var c=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(c,l,n,r),t.isGroup())for(var u=t.get("children"),h=e.get("children"),f=0;f<u.length;f++)this.syncShapeStyle(u[f],h[f],n,r,i+f);else{if(!Object(s.G)(n)&&!Object(s.H)(n,["reset"])){var p=t.get("name");Object(s.C)(p)&&(p=p[1]),Object(s.j)(n,(function(t){if(e.get("name")!==ci){var n=o.getStateStyle(t,p||i);e.attr(n)}}))}var d=kt(t,e);this.animate?r?(null===(a=this.geometry)||void 0===a||a.emit(y.BEFORE_DRAW_ANIMATE),oi(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:d,shapeModel:this.model})):Object(s.G)(n)?t.attr(d):(t.stopAnimate(),t.animate(d,{duration:300})):t.attr(d)}}},e.prototype.getShapeType=function(t){var e=Object(s.s)(t,"shape");return Object(s.C)(e)?e[0]:e},e}(L),ui={},hi={};function fi(t){return ui[t.toLowerCase()]}function pi(t,e){ui[t.toLowerCase()]=e}function di(t){return hi[t.toLowerCase()]}function gi(t,e){hi[t.toLowerCase()]=e}var yi={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(s.s)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=Object(s.s)(i,[t,"default"],{}),a=n.getMarker(e);return Object(s.h)({},o,a)},drawShape:function(t,e,n){var r;return this.getShape(t).draw(e,n)}},vi={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(Be.c)(t);return n=e.isPolar?Le(e,n):Fe(e,n)},parsePoint:function(t){var e;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){}},mi={};function bi(t,e){var n=Object(s.wb)(t),r=Object(c.a)(Object(c.a)(Object(c.a)({},yi),e),{geometryType:t});return mi[n]=r,r}function xi(t,e,n){var r=Object(s.wb)(t),i=mi[r],o=Object(c.a)(Object(c.a)({},vi),n);return i[e]=o,o}function Oi(t){var e=Object(s.wb)(t);return mi[e]}function ji(t,e,n){var r,i;if(void 0===n&&(n={}),!e)return[t];var o=Object(s.x)(t,e),a=[];if(1===e.length&&n[e[0]]){var l=n[e[0]];try{for(var u=Object(c.i)(l),h=u.next();!h.done;h=u.next()){var f=h.value,p=o["_".concat(f)];p&&a.push(p)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}else for(var d in o)if(o.hasOwnProperty(d)){var g=o[d];a.push(g)}return a}function wi(t,e){return Object(s.nb)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(s.H)(t[n],e[n])}))}function Mi(t){return Object(s.C)(t)?t:t.split("*")}function Si(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var c=e[a];t[c]?r.push(c):n.push(c),o.set(c,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}var Ci,Ai=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,o=e.coordinate,a=e.data,c=e.sortable,s=void 0!==c&&c,l=e.visible,u=void 0===l||l,h=e.theme,f=e.scales,p=void 0===f?{}:f,d=e.scaleDefs,g=void 0===d?{}:d,y=e.intervalPadding,v=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed,M=e.sortZIndex,S=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=s,n.visible=u,n.userTheme=h,n.scales=p,n.scaleDefs=g,n.intervalPadding=y,n.dodgePadding=v,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n.sortZIndex=M,n.useDeferredLabel=S?"number"==typeof S?S:1/0:null,n}return Object(c.c)(e,t),e.prototype.position=function(t){var e=t;Object(s.P)(t)||(e={fields:Mi(t)});var n=Object(s.s)(e,"fields");return 1===n.length&&(n.unshift("1"),Object(s.lb)(e,"fields",n)),Object(s.lb)(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(Object(s.Q)(t)||Object(s.P)(t))&&(e=[t]),Object(s.j)(e,(function(t,n){Object(s.O)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(s.Q)(t)){var n=Mi(t);this.styleOption={fields:n,callback:e}}else{var r=t,n=r.fields,i=r.callback,o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(s.Q)(t)){var n=Mi(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(s.Q)(t)){var r={},i=Mi(t);r.fields=i,Object(s.I)(e)?r.callback=e:Object(s.P)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this,o=i.attributeOption,a=i.lastAttributeOption;Object(s.H)(o,a)?!e||!n&&Object(s.H)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this,n;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(s.h)({},ii(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var r=this.beforeMappingData,i=this.beforeMapping(r);this.dataArray=new Array(i.length);for(var o=0;o<i.length;o++){var a=i[o];this.dataArray[o]=this.mapping(a)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var l=this.container,u=this.type,h=this.coordinate,f=Object(s.s)(this.animateOption,"appear"),p=this.getYScale(),d=h.convert({x:0,y:p.scale(this.getYMinValue())});ai(l,f,u,h,d)}if(this.labelOption){var g=this.useDeferredLabel,y=function(){return e.renderLabels(Object(s.q)(e.dataArray),t)}.bind(this);if("number"==typeof g){var v="number"==typeof g&&g!==1/0?g:0;if(window.requestIdleCallback){var m=v&&v!==1/0?{timeout:v}:void 0;window.requestIdleCallback(y,m)}else setTimeout(y,v)}else y()}this.lastAttributeOption=Object(c.a)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,r=t.offscreenGroup;e&&e.clear(),n&&n.clear(),r&&r.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){var e;this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(s.j)(this.attributes,(function(e){b.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(s.G)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,o=r.length;i<o;i++){var a=r[i],s=a.field;a.isIdentity?n.push(a.values):n.push(e[s])}return t.mapping.apply(t,Object(c.g)([],Object(c.e)(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){var n;return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=Object(s.C)(t)?t[0]:t)._origin;if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i=this.type,o=this.getXScale(),a=this.getYScale(),c=o.field||"x",l,u=e[a.field||"y"],h,f;h="identity"===o.type?o.values[0]:e[c],f="interval"===i||"schema"===i?"".concat(h):"line"===i||"area"===i||"path"===i?i:"".concat(h,"-").concat(u);for(var p=this.groupScales,r=0,d=p.length;r<d;r++){var g,y=p[r].field;f="".concat(f,"-").concat(e[y])}var v=this.getAdjust("dodge");if(v){var m=v.dodgeBy;m&&(f="".concat(f,"-").concat(e[m]))}return this.getAdjust("jitter")&&(f="".concat(f,"-").concat(t.x,"-").concat(t.y)),f},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,r=n.attributeOption,i=n.labelOption,o=n.tooltipOption;for(var a in r)if(r.hasOwnProperty(a)){var c=r[a];c.fields?Ft(c.fields,t,e):c.values&&Ft(c.values,t,e)}return i&&i.fields&&Ft(i.fields,t,e),Object(s.O)(o)&&o.fields&&Ft(o.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){var o;n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){var r;((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=b.length;n<r;n++){var i=b[n],o=this.attributeOption[i];o&&o.fields&&Ft(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=Object(c.e)(this.attributeOption.position.fields,2),e,n;return[t[0],t[1]]},e.prototype.getXField=function(){return Object(s.s)(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(s.s)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){var i;t[r].sort((function(t,r){return e.translate(t._origin[n])-e.translate(r._origin[n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Oi(t))return this.shapeFactory||(this.shapeFactory=Object(s.e)(Oi(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale(),r,i;return{x:this.normalizeValues(t[e.field],e),y:i=n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),o=this.getShapeFactory(),a=new li({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},e.prototype.getDrawCfg=function(t){var e=t._origin,n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=Object(s.s)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,i,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=[],h=new Map,f=0,p=0;p<t.length;p++)for(var d=t[p],g=0;g<d.length;g++){var y=d[g],v=this.getElementId(y),m=l.has(v)?"".concat(v,"-").concat(p,"-").concat(g):v;u.push(m),l.set(m,y),h.set(m,f),f++}this.elements=new Array(f);var b=Si(this.lastElementsMap,u),x=b.added,O=b.updated,j=b.removed;try{for(var w=Object(c.i)(x),M=w.next();!M.done;M=w.next()){var v=M.value,y=l.get(v),p=h.get(v),S=this.createElement(y,p,e);this.elements[p]=S,this.elementsMap[v]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){n={error:t}}finally{try{M&&!M.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{for(var C=Object(c.i)(O),A=C.next();!A.done;A=C.next()){var v=A.value,S=this.lastElementsMap[v],y=l.get(v),E=this.getDrawCfg(y),k=S.getModel(),p=h.get(v);(this.isCoordinateChanged||wi(E,k))&&(S.animate=this.animateOption,S.update(E)),this.elements[p]=S,this.elementsMap[v]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){i={error:t}}finally{try{A&&!A.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}this.container&&this.container.sort();try{for(var T=Object(c.i)(j),P=T.next();!P.done;P=T.next()){var v=P.value,S;(S=this.lastElementsMap[v]).animate=this.animateOption,S.destroy()}}catch(t){a={error:t}}finally{try{P&&!P.done&&(s=T.return)&&s.call(T)}finally{if(a)throw a.error}}},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,r=t.type,i=n.type,o=n.isTransposed,a=Object(s.s)(e,["cfg","type"]);return a||(a="polar"===i?o?"pie":"polar":"theta"===i?"pie":"interval"===r||"polygon"===r?"interval":"base"),a},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max,r;return r=e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(s.K)(e)||Object(s.O)(e))Object(s.O)(e)&&Object(s.H)(Object.keys(e),["values"])?Object(s.lb)(this.attributeOption,t,{fields:e.values}):Object(s.lb)(this.attributeOption,t,e);else{var r={};Object(s.M)(e)?r.values=[e]:r.fields=Mi(e),n&&(Object(s.I)(n)?r.callback=n:r.values=n),Object(s.lb)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,r=e.attributeOption,i=e.theme,o=e.shapeType;this.groupScales=[];var a={},l=function(e){if(r.hasOwnProperty(e)){var l=r[e];if(!l)return{value:void 0};var u=Object(c.a)({},l),h=u.callback,f=u.values,p=u.fields,d,g=(void 0===p?[]:p).map((function(n){var r=t.scales[n],i;!a[n]&&b.includes(e)&&("cat"===Xt(r,Object(s.s)(t.scaleDefs,n),e,t.type)&&(t.groupScales.push(r),a[n]=!0));return r}));u.scales=g,"position"!==e&&1===g.length&&"identity"===g[0].type?u.values=g[0].values:h||f||("size"===e?u.values=i.sizes:"shape"===e?u.values=i.shapes[o]||[]:"color"===e&&(g.length?u.values=g[0].values.length<=10?i.colors10:i.colors20:u.values=i.colors10));var y=J(e);n[e]=new y(u)}};for(var u in r){var h=l(u);if("object"==typeof h)return h.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r,i=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),o=this.groupData(t),a=[],s=0,l=o.length;s<l;s++){for(var u=o[s],h=[],f=0,p=u.length;f<p;f++){var d=u[f],g={};for(var y in d)g[y]=d[y];g._origin=d;try{for(var v=(e=void 0,Object(c.i)(i)),m=v.next();!m.done;m=v.next()){var b=m.value,x=b.field;g[x]=b.translate(g[x])}}catch(t){e={error:t}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}h.push(g)}a.push(h)}var O=this.adjustData(a);return this.beforeMappingData=O,O},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.theme,a=this.maxColumnWidth||o.maxColumnWidth,l=this.minColumnWidth||o.minColumnWidth,u=this.columnWidthRatio||o.columnWidthRatio,h=t;if(e){var f=this.getXScale(),p=this.getYScale(),d=f.field,g=p?p.field:null,y=Rt(this.coordinate),v=f.values.length,m=this.getAttribute("size"),b=void 0;m&&(b=m.values[0]);for(var x=0,O=e.length;x<O;x++){var j=e[x],w=Object(c.a)({xField:d,yField:g,intervalPadding:r,dodgePadding:i,xDimensionLength:y,groupNum:v,defaultSize:b,maxColumnWidth:a,minColumnWidth:l,columnWidthRatio:u},j),M=j.type;if("dodge"===M){var S=[];if(f.isCategory||"identity"===f.type)S.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");S.push("y")}w.adjustNames=S,w.dodgeRatio=u}else if("stack"===M){var C=this.coordinate;if(!p){w.height=C.getHeight();var A=this.getDefaultValue("size")||3;w.size=A}!C.isTransposed&&Object(s.K)(w.reverseOrder)&&(w.reverseOrder=!0)}var E=Object(D.getAdjust)(M);w.dimValuesMap={},f&&f.values&&(w.dimValuesMap[f.field]=f.values.map((function(t){return f.translate(t)})));var k=new E(w);h=k.process(h),this.adjusts[M]=k}}return h},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var a,c=e[o].field;i.push(c),Object(s.s)(n,[c,"values"])&&(r[c]=n[c].values)}return ji(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=Object(s.q)(e),r=t.field,i=t.min,o=t.max,a=0;a<n.length;a++){var c=n[a],l=Math.min.apply(null,c[r]),u=Math.max.apply(null,c[r]);l<i&&(i=l),u>o&&(o=u)}var h=this.scaleDefs,f={};i<t.min&&!Object(s.s)(h,[r,"min"])&&(f.min=i),o>t.max&&!Object(s.s)(h,[r,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,c=e.getShapePoints(a,o);i.points=c}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(s.C)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],o={_origin:i._origin,points:i.points,nextPoints:i.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var c=e[a],l=c.names,u=this.getAttributeValues(c,i);if(l.length>1)for(var h=0;h<u.length;h+=1){var f=u[h],p;o[l[h]]=Object(s.C)(f)&&1===f.length?f[0]:f}else o[l[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e=t.x,n=t.y,r,i,o,a=this.coordinate;if(Object(s.C)(e)&&Object(s.C)(n)){r=[],i=[];for(var c=0,l=0,u=e.length,h=n.length;c<u&&l<h;c+=1,l+=1)o=a.convert({x:e[c],y:n[l]}),r.push(o.x),i.push(o.y)}else if(Object(s.C)(n)){i=[];for(var f=0;f<n.length;f++){var p=n[f];o=a.convert({x:e,y:p}),r&&r!==o.x?(Object(s.C)(r)||(r=[r]),r.push(o.x)):r=o.x,i.push(o.y)}}else if(Object(s.C)(e)){r=[];for(var f=0;f<e.length;f++){var d=e[f];o=a.convert({x:d,y:n}),i&&i!==o.y?(Object(s.C)(i)||(i=[i]),i.push(o.y)):i=o.y,r.push(o.x)}}else{var g=a.convert({x:e,y:n});r=g.x,i=g.y}t.x=r,t.y=i},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,o=t.cfg;if(o)return o;var a=r.map((function(t){return e[t]}));return i.apply(void 0,Object(c.g)([],Object(c.e)(a),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],Object(s.j)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?Object(s.h)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),Object(c.b)(this,void 0,void 0,(function(){var n,r,i,o,a,l,u,h,f,p,d,g,v=this;return Object(c.d)(this,(function(m){switch(m.label){case 0:return n=this.geometryLabel,this.emit(y.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),i=fi(r),n=new i(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:m.sent(),o=n.labelsRenderer.shapesMap,a=new Map,Object(s.j)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=v.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var c=a.get(o)||new Set;c.add(t),a.set(o,c)}}}));try{for(l=Object(c.i)(a.entries()),u=l.next();!u.done;u=l.next())h=Object(c.e)(u.value,2),f=h[0],p=h[1],f.labelShape=Object(c.g)([],Object(c.e)(p),!1)}catch(t){d={error:t}}finally{try{u&&!u.done&&(g=l.return)&&g.call(l)}finally{if(d)throw d.error}}return this.emit(y.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(s.s)(this.animateOption,"appear")||Object(s.s)(this.animateOption,"appear")&&void 0===Object(s.s)(this.animateOption,["appear","animation"]))},e}(L),Ei=et.a.transform;function ki(t,e,n){var r=Ei(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)}function Ti(t,e){var n=t.attr(),r=n.x,i=n.y,o;return Ei(t.getMatrix(),[["t",-r,-i],["r",e],["t",r,i]])}function Pi(t,e){var n=Ti(t,e);t.setMatrix(n)}function Ii(){return[1,0,0,0,1,0,0,0,1]}function Fi(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;t.applyToMatrix([r,i,1]);var o=Ei(t.getMatrix(),[["t",-r,-i],["s",e,e],["t",r,i]]);t.setMatrix(o)}function Li(t){return t.find((function(t){return"text"===t.get("type")}))}function Bi(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=t&&t.getChildren()[0];if(r){var i=r.clone();(null==e?void 0:e.rotate)&&Pi(i,-e.rotate);var o=i.getCanvasBBox(),a=o.x,c=o.y,l=o.width,u=o.height;i.destroy();var h=n;return Object(s.K)(h)?h=[2,2,2,2]:Object(s.M)(h)&&(h=new Array(4).fill(h)),{x:a-h[3],y:c-h[0],width:l+h[1]+h[3],height:u+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function Di(t,e,n){var r,i;return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}function Ri(t,e){var n=t.getBBox();return Object(s.nb)(e,(function(t){var e=t.getBBox();return Di(n,e,2)>0}))}function _i(t,e,n){var r=n.data,i=n.origin,o=n.animateCfg,a=n.coordinate,c=Object(s.s)(o,"update");t.set("data",r),t.set("origin",i),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),(t.getChildren()||[]).forEach((function(s,l){var u=e.getChildByIndex(l);if(u){s.set("data",r),s.set("origin",i),s.set("animateCfg",o),s.set("coordinate",a);var h=kt(s,u);c?oi(s,c,{toAttrs:h,coordinate:a}):s.attr(h),u.isGroup()&&_i(s,u,n)}else t.removeChild(s),s.remove(!0)})),Object(s.j)(e.getChildren(),(function(e,n){Object(s.C)(t.getChildren())&&n>=t.getCount()&&(e.destroyed||t.add(e))}))}var Ni,zi=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),Object(c.b)(this,void 0,void 0,(function(){var r,i,o,a,l,u,h,f,p=this;return Object(c.d)(this,(function(d){switch(d.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=Object(c.i)(t),a=o.next();!a.done;a=o.next())(l=a.value)&&(r[l.id]=this.renderLabel(l,i))}catch(t){h={error:t}}finally{try{a&&!a.done&&(f=o.return)&&f.call(o)}finally{if(h)throw h.error}}return[4,this.doLayout(t,e,r)];case 1:d.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),d.label=2;case 2:return u=this.shapesMap,Object(s.j)(r,(function(t,e){if(t.destroyed)delete r[e];else{if(u[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),l=t.get("animateCfg"),h=u[e];_i(h,r[e],{data:i,origin:o,animateCfg:l,coordinate:a}),r[e]=h}else{if(p.container.destroyed)return;p.container.add(t);var f=Object(s.s)(t.get("animateCfg"),n?"enter":"appear");f&&oi(t,f,{toAttrs:Object(c.a)({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}})),Object(s.j)(u,(function(t){var e=Object(s.s)(t.get("animateCfg"),"leave");e?oi(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n=t.id,r=t.elementId,i=t.data,o=t.mappingData,a=t.coordinate,l=t.animate,u=t.content,h,f={id:n,elementId:r,capture:t.capture,data:i,origin:Object(c.a)(Object(c.a)({},o),{data:o._origin}),coordinate:a},p=e.addGroup(Object(c.a)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&Object(s.h)({},this.animate,l)},f)),d;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var g=u.getCanvasBBox(),y=g.width,v=g.height,m=Object(s.s)(t,"textAlign","left"),b=t.x,x;"center"===m?b-=y/2:"right"!==m&&"end"!==m||(b-=y),ki(u,b,t.y-v/2),d=u,p.add(u)}else{var O=Object(s.s)(t,["style","fill"]);d=p.addShape("text",Object(c.a)({attrs:Object(c.a)(Object(c.a)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(s.s)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(s.L)(O)?t.color:O})},f))}return t.rotate&&Pi(d,t.rotate),p},t.prototype.doLayout=function(t,e,n){return Object(c.b)(this,void 0,void 0,(function(){var r,i=this;return Object(c.d)(this,(function(o){switch(o.label){case 0:return this.layout?(r=Object(s.C)(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o=di(Object(s.s)(r,"type",""));if(o){var a=[],c=[];return Object(s.j)(n,(function(t,n){a.push(t),c.push(e[t.get("elementId")])})),o(t,a,c,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(s.j)(t,(function(t){var n=Object(s.s)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=Object(s.s)(t,"labelLine",{}),a=t.id,l=o.path;if(!l){var u=Mt(r.x,r.y,i,t.angle);l=[["M",u.x,u.y],["L",t.x,t.y]]}var h=e[a];h.destroyed||h.addShape("path",{capture:!1,attrs:Object(c.a)({path:l,stroke:t.color?t.color:Object(s.s)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(s.j)(t,(function(t){var n=Object(s.s)(t,"coordinate"),r=Object(s.s)(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var l=Bi(o,t,r.padding),u=l.rotation,h=Object(c.f)(l,["rotation"]),f=o.addShape("rect",{attrs:Object(c.a)(Object(c.a)({},h),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(f.setZIndex(-1),u){var p=a.getMatrix();f.setMatrix(p)}}}}}))},t.prototype.createOffscreenGroup=function(){var t,e,n;return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Object(s.j)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));Object(s.j)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();function Yi(t){var e=0;return Object(s.j)(t,(function(t){e+=t})),e/t.length}var Gi,Hi=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Object(s.j)(t,(function(t,i){var o=r[i];if(!o||Object(s.K)(t.x)||Object(s.K)(t.y))n.push(null);else{var a=Object(s.C)(o.content)?o.content:[o.content];o.content=a;var l=a.length;Object(s.j)(a,(function(r,i){if(Object(s.K)(r)||""===r)n.push(null);else{var a=Object(c.a)(Object(c.a)({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,l)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(c.b)(this,void 0,void 0,(function(){var n,r,i;return Object(c.d)(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(s.s)(i,"innerLabels",{}):Object(s.s)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme,o;return o="polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(s.h)({},n,i.innerLabels,t):Object(s.h)({},n,i.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i,o=this.getCoordinate().isTransposed,a=o?"x":"y",c=o?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*c:r*c*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return Object(s.C)(i)&&(i=1===t.content.length?r?Yi(i):i.length<=2?i[e.length-1]:Yi(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(s.C)(e.shape)?e.shape[0]:e.shape,l="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var u=Et(e.x,e.y);a.x=u[0],a.y=u[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(l){var h=Object(s.s)(e,"nextPoints"),f=Object(s.s)(e,"points");if(h){var p=r.convert(f[1]),d=r.convert(h[1]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}else if("pyramid"===c){var p=r.convert(f[1]),d=r.convert(f[2]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,i);return a.start={x:a.x,y:a.y},a.x+=g.x,a.y+=g.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var r="center",i;if(this.getCoordinate().isTransposed){var o=t.offset;r=o<0?"right":0===o?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t._origin,a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new zi({container:e,layout:Object(s.s)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&ii("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,l=a.fields,u=a.callback,h=a.cfg,f=l.map((function(t){return i[t]})),p=[];return Object(s.j)(t,(function(t,n){var r=t._origin,i=e.getLabelText(r,f),a;if(u){var d=l.map((function(t){return r[t]}));if(a=u.apply(void 0,Object(c.g)([],Object(c.e)(d),!1)),Object(s.K)(a))return void p.push(null)}var g=Object(c.a)(Object(c.a)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:o},h),a);Object(s.I)(g.position)&&(g.position=g.position(r,t,n));var y=e.getLabelOffset(g.offset||0),v=e.getDefaultLabelCfg(y,g.position);(g=Object(s.h)({},v,g)).offset=e.getLabelOffset(g.offset||0);var m=g.content;Object(s.I)(m)?g.content=m(r,t,n):Object(s.S)(m)&&(g.content=i[0]),p.push(g)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(s.j)(e,(function(e){var r=t[e.field];r=Object(s.C)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(s.K)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(s.M)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(s.j)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(s.j)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();function Vi(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,Object(c.g)([e],Object(c.e)(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var Wi={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},Xi=["line","cross","tick","plus","hyphen"];function $i(t,e){return Object(s.I)(e)?e(t):Object(s.h)({},t,e)}function qi(t,e){var n=t.symbol;if(Object(s.Q)(n)&&-1!==Xi.indexOf(n)){var r=Object(s.s)(t,"style",{}),i=Object(s.s)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=Object(s.h)({},t.style,{lineWidth:i,stroke:o,fill:null})}}function Ui(t){var e=t.symbol;Object(s.Q)(e)&&Wi[e]&&(t.symbol=Wi[e])}function Ki(t){return t.startsWith(u.LEFT)||t.startsWith(u.RIGHT)?"vertical":"horizontal"}function Zi(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,l=e.getAttribute("color"),u=e.getAttribute("shape"),h=t.getTheme().defaultColor,f=e.coordinate.isPolar;return o.getTicks().map((function(n,p){var d,g=n.text,y=n.value,v=g,m=o.invert(y),b=0===t.filterFieldData(a,[(d={},d[a]=m,d)]).length;Object(s.j)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=m,e)]).length||(b=!0)}));var x=Vi(l,m,h),O=Vi(u,m,"point"),j=e.getShapeMarker(O,{color:x,isInPolar:f}),w=i;return Object(s.I)(w)&&(w=w(v,p,Object(c.a)({name:v,value:m},Object(s.h)({},r,j)))),qi(j=Object(s.h)({},r,j,It(Object(c.a)({},w),["style"])),x),w&&w.style&&(j.style=$i(j.style,w.style)),Ui(j),{id:m,name:v,value:m,marker:j,unchecked:b}}))}return[]}function Qi(t,e,n){return n.map((function(n,r){var i=e;Object(s.I)(i)&&(i=i(n.name,r,Object(s.h)({},t,n)));var o=Object(s.I)(n.marker)?n.marker(n.name,r,Object(s.h)({},t,n)):n.marker,a=Object(s.h)({},t,i,o);return Ui(a),n.marker=a,n}))}function Ji(t,e){var n=Object(s.s)(t,["components","legend"],{});return Object(s.h)({},Object(s.s)(n,["common"],{}),Object(s.h)({},Object(s.s)(n,[e],{})))}function to(t){return!t&&(null==t||isNaN(t))}function eo(t){if(Object(s.C)(t))return to(t[1].y);var e=t.y;return Object(s.C)(e)?to(e[0]):to(e)}function no(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i<o;i++){var a;eo(a=t[i])||r.push(a)}return[r]}for(var c=[],s=[],i=0,o=t.length;i<o;i++){var a;eo(a=t[i])?s.length&&((1!==s.length||n)&&c.push(s),s=[]):s.push(a)}return s.length&&c.push(s),c}function ro(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function io(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=Ie(n,!1),a=Ie(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var c=o.concat(a);return n.length&&c.push(["L",n[0].x,n[0].y]),c.push(["z"]),c}function oo(t,e,n,r){void 0===r&&(r="");var i=t.style,o=void 0===i?{}:i,a=t.defaultStyle,l=t.color,u=t.size,h=Object(c.a)(Object(c.a)({},a),o);return l&&(e&&(o.stroke||(h.stroke=l)),n&&(o.fill||(h.fill=l))),r&&Object(s.K)(o[r])&&!Object(s.K)(u)&&(h[r]=u),h}function ao(t){return Object(s.h)({},{fill:"#CCD6EC",fillOpacity:.3},Object(s.s)(t,["background","style"]))}function co(t){var e=t.x,n;return(Object(s.C)(t.y)?t.y:[t.y]).map((function(t,n){return{x:Object(s.C)(e)?e[n]:e,y:t}}))}var so={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function lo(t,e){var n=t.color;return{symbol:so[e],style:{lineWidth:2,r:6,stroke:n}}}function uo(t,e,n){for(var r=t.isStack,i=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,c=oo(t,!0,!1,"lineWidth"),s=no(t.points,i,a),l=[],u=0,h=s.length;u<h;u++){var f=s[u];l=l.concat(po(f,o,r,e,n,c))}return c.path=l,c}function ho(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Ie(t,!1,r)):(o=Pe(t,!1),e&&o.push(["Z"])),o);var o}function fo(t,e,n,r,i,o){var a=[],c=[];Object(s.j)(t,(function(t){var e=co(t);a.push(e[1]),c.push(e[0])}));var l=ho(a,e,r,i,o),u=ho(c,e,r,i,o);return n?l:l.concat(u)}function po(t,e,n,r,i,o){if(t.length){var a=t[0];return Object(s.C)(a.y)?fo(t,e,n,r,i,o):ho(t,e,r,i,o)}return[]}var go=bi("line",{defaultShapeType:"line"});Object(s.j)(["line","dot","dash","smooth"],(function(t){xi("line",t,{draw:function(e,n){var r="smooth"===t,i;if(r){var o=this.coordinate,a=o.start,c=o.end;i=[[a.x,c.y],[c.x,a.y]]}var s=uo(e,r,i),l;return n.addShape({type:"path",attrs:s,name:"line",capture:!r})},getMarker:function(e){return lo(e,t)}})}));var yo=go,vo="4.2.11",mo={getLegendItems:Zi,translate:ki,rotate:Pi,zoom:Fi,transform:Ei,getAngle:At,getSectorPath:St,polarToCartesian:Mt,getDelegationObject:Ve,getTooltipItems:Or,getMappingValue:Vi,getPath:po,getPathPoints:no},bo="#000",xo="#0D0D0D",Oo="#262626",jo="#595959",wo="#8C8C8C",Mo="#BFBFBF",So="#D9D9D9",Co="#F0F0F0",Ao="#FFFFFF",Eo="#F2F2F2",ko="#D9D9D9",To="#A6A6A6",Po="#737373",Io="#404040",Fo="#262626",Lo="#0F0F0F",Bo=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Do=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Ro=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],_o,No=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Bo:e,r=t.paletteQualitative20,i=void 0===r?Do:r,o=t.brandColor,a,s={backgroundColor:"#141414",brandColor:void 0===o?n[0]:o,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Ro,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:Io,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:To,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Oo,axisTickLineBorderColor:Io,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Fo,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Po,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Fo,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Po,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Bo[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:To,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:Po,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Po,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:To,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Fo,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Po,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Co,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Mo,annotationArcBorderColor:Fo,annotationArcBorder:1,annotationLineBorderColor:Io,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:To,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Ao,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Io,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:To,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:To,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:bo,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:To,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:bo,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Io,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:Bo[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:bo,pointBorderOpacity:1,pointActiveBorderColor:Ao,pointSelectedBorder:2,pointSelectedBorderColor:Ao,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Bo[0],hollowPointBorderOpacity:.95,hollowPointFillColor:bo,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Ao,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Ao,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Bo[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Bo[0],areaFillOpacity:.25,areaActiveFillColor:Bo[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Bo[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Bo[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Ao,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Ao,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Bo[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Ao,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Ao,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Bo[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:bo,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Ao,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Ao,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(c.a)(Object(c.a)({},s),t)}(),zo=n(64),Yo=n(96),Go,Ho=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return Object(c.c)(e,t),e.prototype.updateElements=function(t,e){var n,r,i,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=new Map,h=[],f=0,p=0;p<t.length;p++){var d=t[p],g=this.getElementId(d);h.push(g),l.set(g,d),u.set(g,f),f++}this.elements=new Array(f);var y=Si(this.lastElementsMap,h),v=y.added,m=y.updated,b=y.removed;try{for(var x=Object(c.i)(v),O=x.next();!O.done;O=x.next()){var g=O.value,d=l.get(g),j=this.getShapeFactory(),w=this.getShapeInfo(d),p=u.get(g),M;(M=new li({shapeFactory:j,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:p})).geometry=this,M.animate=this.animateOption,M.draw(w,e),this.elementsMap[g]=M,this.elements[p]=M}}catch(t){n={error:t}}finally{try{O&&!O.done&&(r=x.return)&&r.call(x)}finally{if(n)throw n.error}}try{for(var S=Object(c.i)(m),C=S.next();!C.done;C=S.next()){var g=C.value,d=l.get(g),M=this.lastElementsMap[g],p=u.get(g),w=this.getShapeInfo(d),A=M.getModel();(this.isCoordinateChanged||wi(A,w))&&(M.animate=this.animateOption,M.update(w)),this.elementsMap[g]=M,this.elements[p]=M}}catch(t){i={error:t}}finally{try{C&&!C.done&&(o=S.return)&&o.call(S)}finally{if(i)throw i.error}}try{for(var E=Object(c.i)(b),k=E.next();!k.done;k=E.next()){var g=k.value,M;(M=this.lastElementsMap[g]).animate=this.animateOption,M.destroy()}}catch(t){a={error:t}}finally{try{k&&!k.done&&(s=E.return)&&s.call(E)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o._origin)}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Ai);function Vo(t,e,n,r,i){var o=[];if(t.length){for(var a=[],c=[],l=0,u=t.length;l<u;l++){var h=t[l];a.push(h[1]),c.push(h[0])}c=c.reverse(),Object(s.j)([a,c],(function(t,s){var l=[],u=r.parsePoints(t),h=u[0];1===a.length&&1===c.length?l=0===s?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&u.push({x:h.x,y:h.y}),l=n?Ie(u,!1,i):Pe(u,!1),s>0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Wo(t,e,n,r,i){for(var o=oo(t,e,!e,"lineWidth"),a=t.connectNulls,c=t.isInCircle,s,l,u=no(t.points,a,t.showSinglePoint),h=[],f=0,p=u.length;f<p;f++){var d=u[f];h=h.concat(Vo(d,c,n,r,i))}return o.path=h,o}function Xo(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}var $o=bi("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,r;return(Object(s.C)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});xi("area","area",{draw:function(t,e){var n=Wo(t,!1,!1,this),r;return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){var e;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}});var qo=$o,Uo,Ko=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,o=e.sortable,a=void 0!==o&&o,c=e.showSinglePoint,s=void 0!==c&&c;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=s,n}return Object(c.c)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push(o.points),n.push(o._origin)}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min;var e},e}(Ho),Zo=bi("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return co(t)}});xi("edge","line",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=Pe(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Qo=Zo,Jo,ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return Object(c.c)(e,t),e}(Ai),ea,na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(c.c)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),a=Object(s.s)(this.styleOption,["cfg","shadowBlur"]);Object(s.M)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(r,i,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e,n=this.getAttribute("color").getFields()[0],r=1/0,i=-1/0;return t.forEach((function(t){var e=t._origin[n];e>i&&(i=e),e<r&&(r=e)})),r===i&&(r=i-1),[r,i]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(s.M)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i,o,a=this.coordinate,s=a.start,l=a.end,u=this.coordinate.getWidth(),h=this.coordinate.getHeight(),f,p=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var d=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t._origin[p]<=e[1]&&t._origin[p]>=e[0]})));var g=this.scales[p];try{for(var y=Object(c.i)(t),v=y.next();!v.done;v=y.next()){var m=v.value,b=this.getDrawCfg(m),x=b.x,O=b.y,j=g.scale(m._origin[p]);this.drawGrayScaleBlurredCircle(x-s.x,O-l.y,n+r,j,d)}}catch(t){i={error:t}}finally{try{v&&!v.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}var w=d.getImageData(0,0,u,h);this.clearShadowCanvasCtx(),this.colorize(w),d.putImageData(w,0,0);var M=this.getImageShape();M.attr("x",s.x),M.attr("y",l.y),M.attr("width",u),M.attr("height",h),M.attr("img",d.canvas),M.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;i<n.length;i+=4){var o=n[i];if(Object(s.M)(o)){var a=r[o]?r[o]:z.a.rgb2arr(e.gradient(o/256));n[i-3]=a[0],n[i-2]=a[1],n[i-1]=a[2],n[i]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape,e;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t._origin}));return Object(c.a)(Object(c.a)({},e),{mappingData:t,data:n})},e}(Ai);function ra(t){var e,n,r=t.x,i=t.y,o=t.y0,a=t.size,l,u,h,f;Object(s.C)(i)?(l=(e=Object(c.e)(i,2))[0],u=e[1]):(l=o,u=i),Object(s.C)(r)?(h=(n=Object(c.e)(r,2))[0],f=n[1]):(h=r-a/2,f=r+a/2);var p=[{x:h,y:l},{x:h,y:u}];return p.push({x:f,y:u},{x:f,y:l}),p}function ia(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function oa(t,e){var n=0,r=0,i=0,o=0;return Object(s.C)(t)?1===t.length?n=r=i=o=t[0]:2===t.length?(n=i=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],i=t[2]):(n=t[0],r=t[1],i=t[2],o=t[3]):n=r=i=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),i+o>e&&(o=e-(i=i?e/(1+o/i):0)),[n||0,r||0,i||0,o||0]}function aa(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(s.s)(t,["background","style","radius"]);if(a){var l=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,u=n.isTransposed?n.getWidth():n.getHeight(),h=Object(c.e)(oa(a,Math.min(l,u)),4),f=h[0],p=h[1],d=h[2],g=h[3],y=n.isTransposed&&n.isReflect("y"),v=y?0:1,m=function(t){return y?-t:t};r.push(["M",i.x,o.y+m(f)]),0!==f&&r.push(["A",f,f,0,0,v,i.x+f,o.y]),r.push(["L",o.x-p,o.y]),0!==p&&r.push(["A",p,p,0,0,v,o.x,o.y+m(p)]),r.push(["L",o.x,i.y-m(d)]),0!==d&&r.push(["A",d,d,0,0,v,o.x-d,i.y]),r.push(["L",i.x+g,i.y]),0!==g&&r.push(["A",g,g,0,0,v,i.x,i.y-m(g)])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var b=n.getCenter(),x=At(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)},f=Math.sqrt(w(b.x-e[0].x)+w(b.y-e[0].y)),p=Math.sqrt(w(b.x-e[2].x)+w(b.y-e[2].y));r=St(b.x,b.y,f,n.startAngle,n.endAngle,p)}else r=St(b.x,b.y,n.getRadius(),O,j)}return r}function ca(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],c=(t[2].x-t[1].x)/2,s=n.isTransposed?c*i/r:c*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+s]),a.push(["L",t[1].x,t[1].y-s]),a.push(["A",c,c,0,0,1,t[2].x,t[2].y-s]),a.push(["L",t[3].x,t[3].y+s]),a.push(["A",c,c,0,0,1,t[0].x,t[0].y+s])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",c,c,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",c,c,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=ia(t),a}function sa(t,e,n){var r=[];return Object(s.K)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function la(t,e){return[e,t]}function ua(t,e,n){var r,i,o,a,s,l,u,h=Object(c.e)(Object(c.g)([],Object(c.e)(t),!1),4),f=h[0],p=h[1],d=h[2],g=h[3],y=Object(c.e)("number"==typeof n?Array(4).fill(n):n,4),v=y[0],m=y[1],b=y[2],x=y[3];e.isTransposed&&(p=(r=Object(c.e)(la(p,g),2))[0],g=r[1]),e.isReflect("y")&&(f=(i=Object(c.e)(la(f,p),2))[0],p=i[1],d=(o=Object(c.e)(la(d,g),2))[0],g=o[1]),e.isReflect("x")&&(f=(a=Object(c.e)(la(f,g),2))[0],g=a[1],p=(s=Object(c.e)(la(p,d),2))[0],d=s[1]);var O=[],j=function(t){return Math.abs(t)};return v=(l=Object(c.e)(oa([v,m,b,x],Math.min(j(g.x-f.x),j(p.y-f.y))).map((function(t){return j(t)})),4))[0],m=l[1],b=l[2],x=l[3],e.isTransposed&&(v=(u=Object(c.e)([x,v,m,b],4))[0],m=u[1],b=u[2],x=u[3]),f.y<p.y?(O.push(["M",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,0,g.x-b,g.y]),O.push(["L",f.x+x,f.y]),0!==x&&O.push(["A",x,x,0,0,0,f.x,f.y+x]),O.push(["L",p.x,p.y-v]),0!==v&&O.push(["A",v,v,0,0,0,p.x+v,p.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y-m]),O.push(["L",g.x,g.y+b]),O.push(["z"])):g.x<f.x?(O.push(["M",d.x+m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,0,g.x+b,g.y]),O.push(["L",f.x-x,f.y]),0!==x&&O.push(["A",x,x,0,0,0,f.x,f.y-x]),O.push(["L",p.x,p.y+v]),0!==v&&O.push(["A",v,v,0,0,0,p.x-v,p.y]),O.push(["L",d.x+m,d.y]),O.push(["z"])):(O.push(["M",p.x,p.y+v]),0!==v&&O.push(["A",v,v,0,0,1,p.x+v,p.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,1,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,1,g.x-b,g.y]),O.push(["L",f.x+x,f.y]),0!==x&&O.push(["A",x,x,0,0,1,f.x,f.y-x]),O.push(["L",p.x,p.y+v]),O.push(["z"])),O}var ha=bi("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return ra(t)}});xi("interval","rect",{draw:function(t,e){var n=oo(t,!1,!0),r=e,i=null==t?void 0:t.background,o;if(i){r=e.addGroup({name:"interval-group"});var a=ao(t),s=aa(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(c.a)(Object(c.a)({},a),{path:s}),capture:!1,zIndex:-1,name:ci})}o=n.radius&&this.coordinate.isRect?ua(this.parsePoints(t.points),this.coordinate,n.radius):this.parsePath(ca(t.points,n.lineCap,this.coordinate));var l=r.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:o}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color,n;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});var fa=ha;function pa(t,e){var n=t.length,r=t;Object(s.Q)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;o<n;o++){var a=r[o]-r[o-1];i>a&&(i=a)}return i}function da(t,e){if(e){var n=Object(s.q)(t),r;return Object(s.yb)(n,e).length}return t.length}function ga(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,o=t.beforeMappingData,a=i.length,c=Rt(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,f=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var y=pa(i,r);a=(r.max-r.min)/y,i.length>a&&(a=i.length)}var v=r.range,m=1/a,b=1,x;(n.isPolar?b=n.isTransposed&&a>1?d:g:(r.isLinear&&(m*=v[1]-v[0]),b=p),!Object(s.K)(l)&&l>=0)?m=(1-(a-1)*(l/c))/a:m*=b;if(t.getAdjust("dodge")){var O,j,w=da(o,t.getAdjust("dodge").dodgeBy),M;if(!Object(s.K)(u)&&u>=0)m=(m-u/c*(w-1))/w;else!Object(s.K)(l)&&l>=0?(m*=b,m/=w):m/=w;m=m>=0?m:0}if(!Object(s.K)(h)&&h>=0){var S=h/c;m>S&&(m=S)}if(!Object(s.K)(f)&&f>=0){var C=f/c;m<C&&(m=C)}return m}var ya,va=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return Object(c.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r,i=this.getAttribute("size"),o,a;i?(r=this.getAttributeValues(i,e)[0],r/=Rt(this.coordinate)):(this.defaultSize||(this.defaultSize=ga(this)),r=this.defaultSize);return n.size=r,n},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Zt(e)});else{var n=this.scaleDefs,r=e.field,i=e.min,o=e.max,a;"time"!==e.type&&(i>0&&!Object(s.s)(n,[r,"min"])&&e.change({min:0}),o<=0&&!Object(s.s)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Ai),ma,ba=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return Object(c.c)(e,t),e}(Ho),xa=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Oa=["cross","tick","plus","hyphen","line"];function ja(t,e,n,r,i){var o,a,s=oo(e,i,!i,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var h=n.addGroup();try{for(var f=Object(c.i)(l),p=f.next();!p.done;p=f.next()){var d=p.value;h.addShape({type:"marker",attrs:Object(c.a)(Object(c.a)(Object(c.a)({},s),{symbol:Wi[r]||r}),d)})}}catch(t){o={error:t}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}return h}return n.addShape({type:"marker",attrs:Object(c.a)(Object(c.a)(Object(c.a)({},s),{symbol:Wi[r]||r}),u)})}var wa=bi("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return co(t)}});Object(s.j)(xa,(function(t){xi("point","hollow-".concat(t),{draw:function(e,n){return ja(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Wi[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var Ma=wa,Sa,Ca=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 Object(c.c)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(c.a)(Object(c.a)({},n),{isStack:!!this.getAdjust("stack")})},e}(Ai);function Aa(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return Object(s.H)(Object(s.U)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}var Ea=bi("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(s.j)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});xi("polygon","polygon",{draw:function(t,e){if(!Object(s.G)(t.points)){var n=oo(t,!0,!0),r=this.parsePath(Aa(t.points));return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r}),name:"polygon"})}},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}});var ka=Ea,Ta,Pa=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 Object(c.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r=n.x,i=n.y,o;if(!Object(s.C)(r)||!Object(s.C)(i)){var a=this.getXScale(),c=this.getYScale(),l,u,h=.5/a.values.length,f=.5/c.values.length;a.isCategory&&c.isCategory?(r=[r-h,r-h,r+h,r+h],i=[i-f,i+f,i+f,i-f]):Object(s.C)(r)?(r=[(o=r)[0],o[0],o[1],o[1]],i=[i-f/2,i+f/2,i+f/2,i-f/2]):Object(s.C)(i)&&(i=[(o=i)[0],o[1],o[1],o[0]],r=[r-h/2,r-h/2,r+h/2,r+h/2]),n.x=r,n.y=i}return n},e}(Ai),Ia,Fa=bi("schema",{defaultShapeType:""}),La,Ba=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return Object(c.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r,i=this.getAttribute("size"),o,a;i?(r=this.getAttributeValues(i,e)[0],r/=Rt(this.coordinate)):(this.defaultSize||(this.defaultSize=ga(this)),r=this.defaultSize);return n.size=r,n},e}(Ai);function Da(t){if(!Object(s.C)(t))return[];var e=Object(s.Y)(t);return Object(s.W)(t,(function(t){return t/e}))}var Ra=bi("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=Da(t._size);return Object(s.j)(t.y,(function(i,o){var a=r[o]*e,c=0===o,s=o===t.y.length-1;n.push({isMin:c,isMax:s,x:t.x-a,y:i}),n.unshift({isMin:c,isMax:s,x:t.x+a,y:i})})),n}});xi("violin","violin",{draw:function(t,e){var n=oo(t,!0,!0),r=this.parsePath(ro(t.points));return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r}),name:"violin"})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4,fill:t.color}}}});var _a=Ra,Na,za=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return Object(c.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r,i=this.getAttribute("size"),o,a;i?(r=this.getAttributeValues(i,e)[0],r/=Rt(this.coordinate)):(this.defaultSize||(this.defaultSize=ga(this)),r=this.defaultSize);return n.size=r,n._size=Object(s.s)(e._origin,[this._sizeField]),n},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(Ai);function Ya(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function Ga(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return Object(s.j)(n,(function(t){r.push(t.x,t.y)})),r}function Ha(t,e,n){var r=Ga(e,n),i=[["M",t.x,t.y]];return i.push(r),i}function Va(t,e){var n=Ga(t[1],e),r=Ga(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}function Wa(t,e){var n=Ya(t,e),r=[["M",t.x,t.y]];return r.push(n),r}xi("area","line",{draw:function(t,e){var n=Wo(t,!0,!1,this),r;return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){var e;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),xi("area","smooth",{draw:function(t,e){var n,r=Wo(t,!1,!0,this,Xo(this.coordinate)),i;return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){var e;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}}),xi("area","smooth-line",{draw:function(t,e){var n,r=Wo(t,!0,!0,this,Xo(this.coordinate)),i;return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){var e;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),xi("edge","arc",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=t.points,i=r.length>2?"weight":"normal",o;if(t.isInCircle){var a={x:0,y:1};return"normal"===i?o=Ha(r[0],r[1],a):(n.fill=n.stroke,o=Va(r,a)),o=this.parsePath(o),e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:o})})}if("normal"===i)return o=Ct(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:o})});var s=Ya(r[1],r[3]),l=Ya(r[2],r[0]);return o=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],o=this.parsePath(o),n.fill=n.stroke,e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:o})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),xi("edge","smooth",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(Wa(r[0],r[1]));return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Xa=1/3;function $a(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return Object(s.j)(n,(function(t){r.push(["L",t.x,t.y])})),r}function qa(t){var e=t.x,n=t.y,r=t.y0;return Object(s.C)(n)?n.map((function(t,n){return{x:Object(s.C)(e)?e[n]:e,y:t}})):[{x:e,y:r},{x:e,y:n}]}function Ua(t){var e,n=t.x,r=t.y,i=t.y0,o=t.size,a,l;Object(s.C)(r)?(a=(e=Object(c.e)(r,2))[0],l=e[1]):(a=i,l=r);var u=n+o/2,h=n-o/2;return[{x:n,y:a},{x:n,y:l},{x:h,y:a},{x:u,y:a},{x:h,y:l},{x:u,y:l}]}function Ka(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}xi("edge","vhv",{draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath($a(r[0],r[1]));return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),xi("interval","funnel",{getPoints:function(t){return t.size=2*t.size,ra(t)},draw:function(t,e){var n=oo(t,!1,!0),r=this.parsePath(sa(t.points,t.nextPoints,!1)),i;return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}}),xi("interval","hollow-rect",{draw:function(t,e){var n=oo(t,!0,!1),r=e,i=null==t?void 0:t.background;if(i){r=e.addGroup();var o=ao(t),a=aa(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(c.a)(Object(c.a)({},o),{path:a}),capture:!1,zIndex:-1,name:ci})}var s=this.parsePath(ia(t.points)),l=r.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:s}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color,n;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),xi("interval","line",{getPoints:function(t){return qa(t)},draw:function(t,e){var n=oo(t,!0,!1,"lineWidth"),r=It(Object(c.a)({},n),["fill"]),i=this.parsePath(ia(t.points,!1)),o;return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},r),{path:i}),name:"interval"})},getMarker:function(t){var e;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),xi("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,ra(t)},draw:function(t,e){var n=oo(t,!1,!0),r=this.parsePath(sa(t.points,t.nextPoints,!0)),i;return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}}),xi("interval","tick",{getPoints:function(t){return Ua(t)},draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(Ka(t.points)),i;return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){var e;return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}});var Za=function(t,e,n){var r=t.x,i=t.y,o=e.x,a=e.y,c;switch(n){case"hv":c=[{x:o,y:i}];break;case"vh":c=[{x:r,y:a}];break;case"hvh":var s=(o+r)/2;c=[{x:s,y:i},{x:s,y:a}];break;case"vhv":var l=(i+a)/2;c=[{x:r,y:l},{x:o,y:l}]}return c};function Qa(t,e){var n=[];return Object(s.j)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=Za(r,o,e);n=n.concat(a)}})),n}function Ja(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function tc(t,e){var n=no(t.points,t.connectNulls,t.showSinglePoint),r=[];return Object(s.j)(n,(function(t){var n=Qa(t,e);r=r.concat(Ja(n))})),Object(c.a)(Object(c.a)({},oo(t,!0,!1,"lineWidth")),{path:r})}function ec(t){var e=Object(s.C)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n,o,a;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function nc(t,e,n){var r=n/2,i;if(Object(s.C)(e)){var o=ec(e),a=o.min,c=o.max,l=o.median,u=o.min1,h,f=t-r,p=t+r;i=[[f,c],[p,c],[t,c],[t,h=o.max1],[f,u],[f,h],[p,h],[p,u],[t,u],[t,a],[f,a],[p,a],[f,l],[p,l]]}else{e=Object(s.K)(e)?.5:e;var d=ec(t),a=d.min,c=d.max,l=d.median,u,h,g=e-r,y=e+r;i=[[a,g],[a,y],[a,e],[u=d.min1,e],[u,g],[u,y],[h=d.max1,y],[h,g],[h,e],[c,e],[c,g],[c,y],[l,g],[l,y]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function rc(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function ic(t){var e,n=(Object(s.C)(t)?t:[t]).sort((function(t,e){return e-t}));return Pt(n,4,n[n.length-1])}function oc(t,e,n){var r=ic(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}function ac(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function cc(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),i=Math.min(n,r),o,a;return e&&(i=Object(s.c)(e,0,Math.min(n,r))),i/=2,{x:(t[0].x+t[2].x)/2-i,y:(t[0].y+t[2].y)/2-i,width:2*i,height:2*i}}Object(s.j)(["hv","vh","hvh","vhv"],(function(t){xi("line",t,{draw:function(e,n){var r=tc(e,t),i;return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return lo(e,t)}})})),Object(s.j)(Oa,(function(t){xi("point",t,{draw:function(e,n){return ja(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Wi[t],style:{r:4.5,stroke:n,fill:null}}}})})),xi("point","image",{draw:function(t,e){var n,r,i=oo(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var s=e.addGroup();try{for(var l=Object(c.i)(o),u=l.next();!u.done;u=l.next()){var h=u.value;s.addShape("image",{attrs:{x:h.x-i/2,y:h.y-i,width:i,height:i,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return s}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Object(s.j)(xa,(function(t){xi("point",t,{draw:function(e,n){return ja(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:Wi[t]||t,style:{r:4.5,fill:n}}}})})),xi("schema","box",{getPoints:function(t){var e,n,r;return nc(t.x,t.y,t.size)},draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(rc(t.points)),i;return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r,name:"schema"})})},getMarker:function(t){var e;return{symbol:function(t,e,n){var r,i=nc(t,[e-6,e-3,e,e+3,e+6],n);return[["M",i[0].x+1,i[0].y],["L",i[1].x-1,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x+1,i[10].y],["L",i[11].x-1,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),xi("schema","candle",{getPoints:function(t){var e,n,r;return oc(t.x,t.y,t.size)},draw:function(t,e){var n=oo(t,!0,!0),r=this.parsePath(ac(t.points)),i;return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r,i=oc(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),xi("polygon","square",{draw:function(t,e){if(!Object(s.G)(t.points)){var n=oo(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(c.a)(Object(c.a)({},n),cc(r,t.size)),name:"polygon"})}},getMarker:function(t){var e;return{symbol:"square",style:{r:4,fill:t.color}}}}),xi("violin","smooth",{draw:function(t,e){var n=oo(t,!0,!0),r=this.parsePath(io(t.points));return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r})})},getMarker:function(t){var e;return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),xi("violin","hollow",{draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(ro(t.points));return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r})})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),xi("violin","hollow-smooth",{draw:function(t,e){var n=oo(t,!0,!1),r=this.parsePath(io(t.points));return e.addShape("path",{attrs:Object(c.a)(Object(c.a)({},n),{path:r})})},getMarker:function(t){var e;return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var sc,lc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0].y<=n[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),s=this.getCoordinate(),l,u=s.isTransposed?"x":"y",h=this.getLabelValueDir(e.mappingData);return a=Object(c.a)(Object(c.a)({},a),((o={})[u]=a[u]*h,o)),s.isReflect("x")&&(a=Object(c.a)(Object(c.a)({},a),{x:-1*a.x})),s.isReflect("y")&&(a=Object(c.a)(Object(c.a)({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return Object(s.h)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i=this.getCoordinate(),o=i.isTransposed,a=e.points,c=i.convert(a[0]),l=i.convert(a[2]),u=this.getLabelValueDir(e),h,f,p,d,g=Object(s.C)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var y=Object(s.s)(e,"nextPoints"),v=Object(s.s)(e,"points");if(y){var m=i.convert(v[0]),b=i.convert(v[1]),x=i.convert(y[0]),O=i.convert(y[1]);o?(h=Math.min(x.y,m.y),p=Math.max(x.y,m.y),f=(b.x+O.x)/2,d=(m.x+x.x)/2):(h=Math.min((b.y+O.y)/2,(m.y+x.y)/2),p=Math.max((b.y+O.y)/2,(m.y+x.y)/2),f=O.x,d=m.x)}else h=Math.min(l.y,c.y),p=Math.max(l.y,c.y),f=l.x,d=c.x}else h=Math.min(l.y,c.y),p=Math.max(l.y,c.y),f=l.x,d=c.x;switch(r){case"right":t.x=f,t.y=(h+p)/2,t.textAlign=Object(s.s)(t,"textAlign",u>0?"left":"right");break;case"left":t.x=d,t.y=(h+p)/2,t.textAlign=Object(s.s)(t,"textAlign",u>0?"left":"right");break;case"bottom":o&&(t.x=(f+d)/2),t.y=p,t.textAlign=Object(s.s)(t,"textAlign","center"),t.textBaseline=Object(s.s)(t,"textBaseline",u>0?"bottom":"top");break;case"middle":o&&(t.x=(f+d)/2),t.y=(h+p)/2,t.textAlign=Object(s.s)(t,"textAlign","center"),t.textBaseline=Object(s.s)(t,"textBaseline","middle");break;case"top":o&&(t.x=(f+d)/2),t.y=h,t.textAlign=Object(s.s)(t,"textAlign","center"),t.textBaseline=Object(s.s)(t,"textBaseline",u>0?"bottom":"top")}},e}(Hi),uc=Math.PI/2,hc,fc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(s.M)(t))n=t;else if(Object(s.Q)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return Object(s.W)(n,(function(t){if(t&&r){var e=r.scale(Object(s.s)(t.data,r.field));return Object(c.a)(Object(c.a)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(e.isTransposed){var r=e.getCenter(),i=t.offset;n=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else n="center";return n},e.prototype.getLabelPoint=function(t,e,n){var r=1,i,o=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var a=t.offset*r,c=this.getPointAngle(i),s=t.labelEmit,l=this.getCirclePoint(c,a,i,s);return 0===l.r?l.content="":(l.content=o,l.angle=c,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(c,a,s):t.rotate,l.start={x:i.x,y:i.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(s.C)(t.x)||Object(s.C)(t.y)?{x:Object(s.C)(t.x)?t.x[e]:t.x,y:Object(s.C)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Yt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=Nt(i,n);if(0===a)return Object(c.a)(Object(c.a)({},o),{r:a});var s=t,l;i.isTransposed&&a>e&&!r?s=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+uc;return n&&(r-=uc),r&&(r>uc?r-=Math.PI:r<-uc&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(s.j)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(Hi),pc,dc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(c.c)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(s.h)({},r,Object(s.s)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter(),r;return r=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(r="right"===r?"left":"right"),r},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e=this.getCoordinate(),n={x:Object(s.C)(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(s.C)(t.x)?t.x[1]:t.x,y:t.y[1]},i,o=Yt(e,n);if(t.points&&t.points[0].y===t.points[1].y)i=o;else{var a=Yt(e,r);o>=a&&(a+=2*Math.PI),i=o+(a-o)/2}return i},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return Object(c.a)(Object(c.a)({},Mt(r.x,r.y,i,t)),{angle:t,r:i})},e}(fc),gc=4;function yc(t,e,n,r,i,o){var a,l,u=!0,h=r.start,f=r.end,p=Math.min(h.y,f.y),d=Math.abs(h.y-f.y),g,y=0,v=Number.MIN_VALUE,m=e.map((function(t){return t.y>y&&(y=t.y),t.y<v&&(v=t.y),{size:n,targets:[t.y-p]}}));for(v-=p,y-p>d&&(d=y-p);u;)for(m.forEach((function(t){var e=(Math.min.apply(v,t.targets)+Math.max.apply(v,t.targets))/2;t.pos=Math.min(Math.max(v,e-t.size/2),d-t.size)})),u=!1,g=m.length;g--;)if(g>0){var b=m[g-1],x=m[g];b.pos+b.size>x.pos&&(b.size+=x.size,b.targets=b.targets.concat(x.targets),b.pos+b.size>d&&(b.pos=d-b.size),m.splice(g,1),u=!0)}g=0,m.forEach((function(t){var r=p+n/2;t.targets.forEach((function(){e[g].y=t.pos+r,r+=n,g++}))}));var O={};try{for(var j=Object(c.i)(t),w=j.next();!w.done;w=j.next()){var M=w.value;O[M.get("id")]=M}}catch(t){a={error:t}}finally{try{w&&!w.done&&(l=j.return)&&l.call(j)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}var a=O[t.id];a.attr("x",t.x),a.attr("y",t.y);var c=Object(s.m)(a.getChildren(),(function(t){return"text"===t.get("type")}));c&&(c.attr("y",t.y),c.attr("x",t.x))}))}function vc(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),c=o.getCenter();if(i>0){var l=14,u,h=2*(a+i)+28,f={start:o.start,end:o.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var r=h/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),yc(e,t,14,f,c,n)}))}Object(s.j)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=Mt(c.x,c.y,a,n),i=Mt(c.x,c.y,a+e/2,n),o=t.x+Object(s.s)(t,"offsetX",0),l=t.y+Object(s.s)(t,"offsetY",0),u={x:o-4*Math.cos(n),y:l-4*Math.sin(n)};Object(s.O)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(i.x),"".concat(i.y," ").concat(u.x),u.y].join(",")}}))}}function mc(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i=!0,o=n.minY,a=n.maxY,c=Math.abs(o-a),s,l=0,u=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));for(u-=o,l-o>c&&(c=l-o);i;)for(h.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),i=!1,s=h.length;s--;)if(s>0){var f=h[s-1],p=h[s];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>c&&(f.pos=c-f.size),h.splice(s,1),i=!0)}s=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[s].y=t.pos+n,n+=e,s++}))}))}var bc=4;function xc(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=Mt(n.x,n.y,r,i),c=t.x+Object(s.s)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),l=t.y+Object(s.s)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),u={x:c-4*Math.cos(i),y:l-4*Math.sin(i)},h=t.labelLine.smooth,f=[],p=u.x-n.x,d=u.y-n.y,g=Math.atan(d/p);if(p<0&&(g+=Math.PI),!1===h){Object(s.O)(t.labelLine)||(t.labelLine={});var y=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&u.y>a.y&&(y=1),i>=0&&i<Math.PI/2&&u.y>a.y&&(y=1),i>=Math.PI/2&&i<Math.PI&&a.y>u.y&&(y=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>u.y&&(y=1);var v=o/2>4?4:Math.max(o/2-1,0),m=Mt(n.x,n.y,r+v,i),b=Mt(n.x,n.y,r+o/2,g),x=0;f.push("M ".concat(a.x," ").concat(a.y)),f.push("L ".concat(m.x," ").concat(m.y)),f.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(y," ").concat(b.x," ").concat(b.y)),f.push("L ".concat(u.x," ").concat(u.y))}else{var m=Mt(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i),O=a.x<n.x?1:-1;f.push("M ".concat(u.x," ").concat(u.y));var j=(a.y-n.y)/(a.x-n.x),w=(u.y-n.y)/(u.x-n.x);Math.abs(j-w)>Math.pow(Math.E,-16)&&f.push.apply(f,["C",u.x+4*O,u.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),f.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=f.join(" ")}}function Oc(t,e,n,r){var i,o,a=Object(s.l)(t,(function(t){return!Object(s.K)(t)})),l=e[0]&&e[0].get("coordinate");if(l){var u=l.getCenter(),h=l.getRadius(),f={};try{for(var p=Object(c.i)(e),d=p.next();!d.done;d=p.next()){var g=d.value;f[g.get("id")]=g}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}var y=Object(s.s)(a[0],"labelHeight",14),v=Object(s.s)(a[0],"offset",0);if(!(v<=0)){var m="left",b="right",x=Object(s.w)(a,(function(t){return t.x<u.x?"left":"right"})),O=l.start,j=l.end,w=Math.min(2*(h+v+y),l.getHeight()),M=w/2,S={minX:O.x,maxX:j.x,minY:u.y-M,maxY:u.y+M};Object(s.j)(x,(function(t,e){var n=Math.floor(w/y);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s.j)(t,(function(t,e){e+1>n&&(f[t.id].set("visible",!1),t.invisible=!0)}))),mc(t,y,S)})),Object(s.j)(x,(function(t,e){Object(s.j)(t,(function(t){var n="right"===e,r,i=f[t.id].getChildByIndex(0);if(i){var o=h+v,a=t.y-u.y,c=Math.pow(o,2),s=Math.pow(a,2),p=c-s>0?c-s:0,d=Math.sqrt(p),g=Math.abs(Math.cos(t.angle)*o);t.x=n?u.x+Math.max(d,g):u.x-Math.max(d,g)}i&&(i.attr("y",t.y),i.attr("x",t.x)),xc(t,l)}))}))}}}var jc=4,wc=4,Mc=4;function Sc(t,e,n){var r=e.getCenter(),i=e.getRadius(),o={x:t.x-(n?4:-4),y:t.y},a=Mt(r.x,r.y,i+4,t.angle),c={x:o.x,y:o.y},l={x:a.x,y:a.y},u=Mt(r.x,r.y,i,t.angle),h="";if(o.y!==a.y){var f=n?4:-4;c.y=o.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(a.x,o.x-f),o.y<a.y?l.y=c.y:(l.y=a.y,l.x=Math.max(l.x,c.x-f))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(a.x,o.x-f),o.y>a.y?l.y=c.y:(l.y=a.y,l.x=Math.max(l.x,c.x-f))),t.angle>Math.PI/2&&(c.x=Math.min(a.x,o.x-f),o.y>a.y?l.y=c.y:(l.y=a.y,l.x=Math.min(l.x,c.x-f))),t.angle<-Math.PI/2&&(c.x=Math.min(a.x,o.x-f),o.y<a.y?l.y=c.y:(l.y=a.y,l.x=Math.min(l.x,c.x-f)))}h=["M ".concat(o.x,",").concat(o.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(a.x,",").concat(a.y),"L ".concat(u.x,",").concat(u.y)].join(" "),t.labelLine=Object(s.h)({},t.labelLine,{path:h})}function Cc(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var l=a.getCenter(),u=a.getRadius(),h={};try{for(var f=Object(c.i)(e),p=f.next();!p.done;p=f.next()){var d=p.value;h[d.get("id")]=d}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var g=Object(s.s)(t[0],"labelHeight",14),y=Math.max(Object(s.s)(t[0],"offset",0),4);Object(s.j)(t,(function(t){var e;if(t&&Object(s.s)(h,[t.id])){var n=t.x>l.x||t.x===l.x&&t.y>l.y,r=Object(s.K)(t.offsetX)?4:t.offsetX,i=Mt(l.x,l.y,u+4,t.angle),o=y+r;t.x=l.x+(n?1:-1)*(u+o),t.y=i.y}}));var v=a.start,m=a.end,b="left",x="right",O=Object(s.w)(t,(function(t){return t.x<l.x?"left":"right"})),j=2*(u+y)+g;Object(s.j)(O,(function(t){var e=t.length*g;e>j&&(j=Math.min(e,Math.abs(v.y-m.y)))}));var w={minX:v.x,maxX:m.x,minY:l.y-j/2,maxY:l.y+j/2};Object(s.j)(O,(function(t,e){var n=j/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s.j)(t,(function(t,e){e>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),mc(t,g,w)}));var M=w.minY,S=w.maxY;Object(s.j)(O,(function(t,e){var n="right"===e;Object(s.j)(t,(function(t){var e=Object(s.s)(h,t&&[t.id]);if(e)if(t.y<M||t.y>S)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o=n?i.x:i.maxX,c=i.y+i.height/2;ki(r,t.x-o,t.y-c),t.labelLine&&Sc(t,a,n)}}))}))}}function Ac(t,e,n,r){Object(s.j)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),c=a.minX,s=a.minY,l=a.maxX,u=a.maxY,h=a.x,f=a.y,p=a.width,d=a.height,g=h,y=f;(c<e||l<e)&&(g=e),(s<n||u<n)&&(y=n),c>i?g=i-p:l>i&&(g-=l-i),s>o?y=o-d:u>o&&(y-=u-o),g===h&&y===f||ki(t,g-h,y-f)}))}function Ec(t,e,n,r){Object(s.j)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}var kc=100,Tc=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),c=r;c<=i;c+=1)if(n[c]){if(c===r||c===i){for(var s=o;s<=a;s++)if(n[c][s]){e=!1;break}}else if(n[c][o]||n[c][a]){e=!1;break}}else n[c]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(var a=n;a<=r;a+=this.xGap){for(var c=i;c<=o;c+=this.yGap)e[a][c]=!0;e[a][o]=!0}if(1!==this.yGap)for(var a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(var a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Pc(t,e,n){void 0===n&&(n=100);var r=-1,i=t.attr(),o=i.x,a=i.y,c=t.getCanvasBBox(),s=Math.sqrt(c.width*c.width+c.height*c.height),l,u=1,h=0,f=0,p=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(c))return e.fillGap(c),!0;for(var d=!1,g=0,y={};Math.min(Math.abs(h),Math.abs(f))<s&&g<n;)if(h=~~(l=p(u+=-1))[0],f=~~l[1],(h||f)&&!y["".concat(h,"-").concat(f)]&&(t.attr({x:o+h,y:a+f}),h+f<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y["".concat(h,"-").concat(f)]=!0;break}return d}function Ic(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,c={x:e,y:n,textAlign:"center"};switch(r){case 0:c.y-=a+1,c.x+=1,c.textAlign="left";break;case 1:c.y-=a+1,c.x-=1,c.textAlign="right";break;case 2:c.y+=a+1,c.x-=1,c.textAlign="right";break;case 3:c.y+=a+1,c.x+=1,c.textAlign="left";break;case 5:c.y-=2*a+2;break;case 6:c.y+=2*a+2;break;case 7:c.x+=o+1,c.textAlign="left";break;case 8:c.x-=o+1,c.textAlign="right"}return t.attr(c),t.getCanvasBBox()}function Fc(t,e,n,r){var i=new Tc;Object(s.j)(e,(function(t){var e;Pc(t.find((function(t){return"text"===t.get("type")})),i)||t.remove(!0)})),i.destroy()}function Lc(t,e,n,r){var i=new Tc;Object(s.j)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,c=0;c<=8;c++){var s=Ic(e,r,o,c);if(i.hasGap(s)){i.fillGap(s),a=!0;break}}a||t.remove(!0)})),i.destroy()}function Bc(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function Dc(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n,r;return[e(t[0],t[1]),e(t[1],t[2])]}function Rc(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function _c(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[Rc(e[0],n,e[0]),Rc(e[1],n,e[0]),Rc(e[2],n,e[0]),Rc(e[3],n,e[0])]:e}function Nc(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(Bc([t.x,t.y],e))})),{min:Math.min.apply(Math,Object(c.g)([],Object(c.e)(n),!1)),max:Math.max.apply(Math,Object(c.g)([],Object(c.e)(n),!1))}}function zc(t,e){return t.max>e.min&&t.min<e.max}function Yc(t){return"number"==typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function Gc(t){return["x","y","width","height"].every((function(e){return Yc(t[e])}))}function Hc(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function Vc(t,e,n){if(void 0===n&&(n=0),!Gc(t)||!Gc(e))return!1;if(!t.rotation&&!e.rotation)return Hc(t,e,n);for(var r=_c(t),i=_c(e),o=Dc(r).concat(Dc(i)),a=0;a<o.length;a++){var c=o[a],s,l;if(!zc(Nc(r,c),Nc(i,c)))return!1}return!0}var Wc=function(){function t(t){var e=this;this.queue=[],this.worker=new Worker(t),this.worker.onmessage=function(t){var n;null===(n=e.queue.shift())||void 0===n||n.resolve(t)},this.worker.onmessageerror=function(t){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=e.queue.shift())||void 0===n||n.reject(t)}}return t.prototype.post=function(t,e){var n=this;return new Promise((function(r,i){n.queue.push({resolve:r,reject:i});try{n.worker.postMessage(t)}catch(t){console.warn("[AntV G2] Web worker is not available"),Object(s.I)(e)&&e()}}))},t.prototype.destroy=function(){this.worker.terminate()},t}();function Xc(t){if("undefined"!=typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Wc(URL.createObjectURL(e))}}var $c,qc="\n self.onmessage = ".concat(function(t){function e(){function t(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function e(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n,r;return[e(t[0],t[1]),e(t[1],t[2])]}function n(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function r(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?[n(e[0],r,e[0]),n(e[1],r,e[0]),n(e[2],r,e[0]),n(e[3],r,e[0])]:e}function i(e,n){if(e.length>4)return{min:0,max:0};var r=[];return e.forEach((function(e){r.push(t([e.x,e.y],n))})),{min:Math.min.apply(null,r),max:Math.max.apply(null,r)}}function o(t,e){return t.max>e.min&&t.min<e.max}function a(t){return"number"==typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function c(t){return["x","y","width","height"].every((function(e){return a(t[e])}))}function s(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function l(t,n,a){if(void 0===a&&(a=0),!c(t)||!c(n))return!1;if(!t.rotation&&!n.rotation)return s(t,n,a);for(var l=r(t),u=r(n),h=e(l).concat(e(u)),f=0;f<h.length;f++){var p=h[f],d,g;if(!o(i(l,p),i(u,p)))return!1}return!0}return{intersect:l}}var n=e().intersect;function r(t){for(var e=t.slice(),r=0;r<e.length;r++){var i=e[r];if(i.visible)for(var o=r+1;o<e.length;o++){var a=e[o];i!==a&&a.visible&&n(i,a)&&(a.visible=!1)}}return e}var i={"hide-overlap":r};try{var o=JSON.parse(t.data);if(!o||!o.type||!i[o.type])return;var a=o.type,c=o.items,s=i[a](c);self.postMessage(s)}catch(t){throw t}}.toString(),"\n"),Uc=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&Vc(r,o)&&(o.visible=!1)}}return e},Kc=new Map,Zc=Xc(qc);function Qc(t,e,n,r){return Object(c.b)(this,void 0,void 0,(function(){var n,r,i,o,a,l;return Object(c.d)(this,(function(u){switch(u.label){case 0:return n=e.map((function(e,n){return Object(c.a)(Object(c.a)({},Bi(e,t[n],Object(s.s)(t[n],"background.padding"))),{visible:!0})})),r=JSON.stringify(n),i=function(t){return Kc.set(r,t),Object(s.j)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),t},Kc.get(r)?(i(Kc.get(r)),[3,7]):[3,1];case 1:if(!Zc)return[3,6];u.label=2;case 2:return u.trys.push([2,4,,5]),o=JSON.stringify({type:"hide-overlap",items:n}),[4,Zc.post(o,(function(){return i(Uc(n))}))];case 3:return a=u.sent(),i(Array.isArray(a.data)?a.data:[]),[3,5];case 4:return l=u.sent(),console.error(l),i(Uc(n)),[3,5];case 5:return[3,7];case 6:i(Uc(n)),u.label=7;case 7:return[2]}}))}))}var Jc={"#5B8FF9":!0},ts=function(t){var e=z.a.toRGB(t).toUpperCase();if(Jc[e])return Jc[e];var n=Object(c.e)(z.a.rgb2arr(e),3),r,i,o,a;return(299*n[0]+587*n[1]+114*n[2])/1e3<128},es;function ns(t,e,n){if(0!==n.length){var r,i=n[0].get("element").geometry.theme,o=i.labels||{},a=o.fillColorLight,c=o.fillColorDark;n.forEach((function(t,n){var r,o=e[n].find((function(t){return"text"===t.get("type")})),s=Lt.fromObject(t.getBBox()),l=Lt.fromObject(o.getCanvasBBox()),u=!s.contains(l),h=t.attr("fill"),f=ts(h);u?o.attr(i.overflowLabels.style):f?a&&o.attr("fill",a):c&&o.attr("fill",c)}))}}function rs(t,e,n){var r=t.coordinate,i=Li(e),o=Lt.fromObject(i.getCanvasBBox()),a=Lt.fromObject(n.getBBox());return r.isTransposed?a.height>=o.height:a.width>=o.width}function is(t,e,n){var r;return!!t.getAdjust("stack")||e.every((function(e,r){var i=n[r];return rs(t,e,i)}))}function os(t,e,n){var r=t.coordinate,i=Lt.fromObject(n.getBBox()),o=Li(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}function as(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry,a;if(o&&"interval"===o.type)is(o,e,n)&&n.forEach((function(t,n){var r=e[n];os(o,r,t)}))}}function cs(t){var e=500,n=[],r=Math.max(Math.floor(t.length/500),1);return Object(s.j)(t,(function(t,e){e%r==0?n.push(t):t.set("visible",!1)})),n}function ss(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type){var a=cs(e),l,u=Object(c.e)(o.getXYFields(),1)[0],h=[],f=[],p=Object(s.w)(a,(function(t){return t.get("data")[u]})),d=Object(s.ub)(Object(s.W)(a,(function(t){return t.get("data")[u]}))),g;a.forEach((function(t){t.set("visible",!0)}));var y=function(t){t&&(t.length&&f.push(t.pop()),f.push.apply(f,Object(c.g)([],Object(c.e)(t),!1)))};for(Object(s.mb)(d)>0&&(g=d.shift(),y(p[g])),Object(s.mb)(d)>0&&(g=d.pop(),y(p[g])),Object(s.j)(d.reverse(),(function(t){y(p[t])}));f.length>0;){var v=f.shift();v.get("visible")&&(Ri(v,h)?v.set("visible",!1):h.push(v))}}}}function ls(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(c.g)([],Object(c.e)(i),!1)),r}function us(t,e,n){return t.some((function(t){return n(t,e)}))}function hs(t,e,n){var r,i;return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}function fs(t,e){return us(t,e,(function(t,e){var n=Li(t),r=Li(e);return hs(n.getCanvasBBox(),r.getCanvasBBox(),2)>0}))}function ps(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&"point"===u.type){var h=Object(c.e)(u.getXYFields(),2),f=h[0],p=h[1],d=Object(s.w)(e,(function(t){return t.get("data")[f]})),g=[],y=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(s.W)(Object(s.T)(d).reverse(),(function(t){for(var e=ls(u,d[t]);e.length;){var n=e.shift(),r=Li(n);if(us(g,n,(function(t,e){return t.get("data")[f]===e.get("data")[f]&&t.get("data")[p]===e.get("data")[p]})))r.set("visible",!1);else{var i,o=!1;fs(g,n)&&(r.attr("y",r.attr("y")+2*y),o=fs(g,n)),o?r.set("visible",!1):g.push(n)}}}))}}}function ds(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(c.g)([],Object(c.e)(i),!1)),r}function gs(t,e,n){return t.some((function(t){return n(t,e)}))}function ys(t,e,n){var r,i;return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}function vs(t,e){return gs(t,e,(function(t,e){var n=Li(t),r=Li(e);return ys(n.getCanvasBBox(),r.getCanvasBBox(),2)>0}))}function ms(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&!(["path","line","area"].indexOf(u.type)<0)){var h=Object(c.e)(u.getXYFields(),2),f=h[0],p=h[1],d=Object(s.w)(e,(function(t){return t.get("data")[f]})),g=[],y=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(s.W)(Object(s.T)(d).reverse(),(function(t){for(var e=ds(u,d[t]);e.length;){var n=e.shift(),r=Li(n);if(gs(g,n,(function(t,e){return t.get("data")[f]===e.get("data")[f]&&t.get("data")[p]===e.get("data")[p]})))r.set("visible",!1);else{var i,o=!1;vs(g,n)&&(r.attr("y",r.attr("y")+2*y),o=vs(g,n)),o?r.set("visible",!1):g.push(n)}}}))}}}function bs(){return es||(es=document.createElement("canvas").getContext("2d")),es}var xs=Object(s.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,c=bs();return c.font=[o,a,i,"".concat(n,"px"),r].join(" "),c.measureText(Object(s.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(c.g)([t],Object(c.e)(Object(s.xb)(e)),!1).join("")})),Os=function(t,e,n){var r=16,i=xs("...",n),o;o=Object(s.Q)(t)?t:Object(s.tb)(t);var a=e,c=[],l,u;if(xs(t,n)<=e)return t;for(;l=o.substr(0,16),!((u=xs(l,n))+i>a&&u>a);)if(c.push(l),a-=u,!(o=o.substr(16)))return c.join("");for(;l=o.substr(0,1),!((u=xs(l,n))+i>a);)if(c.push(l),a-=u,!(o=o.substr(1)))return c.join("");return"".concat(c.join(""),"...")};function js(t,e,n,r,i){if(!(e.length<=0)){var o=(null==i?void 0:i.direction)||["top","right","bottom","left"],a=(null==i?void 0:i.action)||"translate",c=(null==i?void 0:i.margin)||0,l=e[0].get("coordinate");if(l){var u=Ht(l,c),h=u.minX,f=u.minY,p=u.maxX,d=u.maxY;Object(s.j)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,c=e.maxY,l=e.x,u=e.y,g=e.width,y=e.height,v=l,m=u;if(o.indexOf("left")>=0&&(n<h||i<h)&&(v=h),o.indexOf("top")>=0&&(r<f||c<f)&&(m=f),o.indexOf("right")>=0&&(n>p?v=p-g:i>p&&(v-=i-p)),o.indexOf("bottom")>=0&&(r>d?m=d-y:c>d&&(m-=c-d)),v!==l||m!==u){var b=v-l;if("translate"===a)ki(t,b,m-u);else if("ellipsis"===a){var x;t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(s.hb)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=Os(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",r)}))}else t.hide()}}))}}}function ws(t,e,n){var r={fillOpacity:Object(s.K)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(s.K)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(s.K)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)}function Ms(t,e,n){var r={fillOpacity:0,strokeOpacity:0,opacity:0},i=e.easing,o=e.duration,a=e.delay;t.animate(r,o,i,(function(){t.remove(!0)}),a)}function Ss(t,e,n){var r,i=Object(c.e)(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(et.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=et.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(et.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=et.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(et.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=et.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}function Cs(t,e,n,r,i){var o=n.start,a=n.end,c=n.getWidth(),s=n.getHeight(),l,u;"y"===i?(l=o.x+c/2,u=r.y<o.y?r.y:o.y):"x"===i?(l=r.x>o.x?r.x:o.x,u=o.y+s/2):"xy"===i&&(n.isPolar?(l=n.getCenter().x,u=n.getCenter().y):(l=(o.x+a.x)/2,u=(o.y+a.y)/2));var h=Ss(t,[l,u],i);t.animate({matrix:h},e)}function As(t,e,n){var r,i;Cs(t,e,n.coordinate,n.minYPoint,"x")}function Es(t,e,n){var r,i;Cs(t,e,n.coordinate,n.minYPoint,"y")}function ks(t,e,n){var r,i;Cs(t,e,n.coordinate,n.minYPoint,"xy")}function Ts(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}function Ps(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)}function Is(t,e,n){var r=t.getBBox(),i,o=t.get("origin").mappingData.points,a=o[0].y-o[1].y>0?r.maxX:r.minX,c=(r.minY+r.maxY)/2;t.applyToMatrix([a,c,1]);var s=et.a.transform(t.getMatrix(),[["t",-a,-c],["s",.01,1],["t",a,c]]);t.setMatrix(s),t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-a,-c],["s",100,1],["t",a,c]])},e)}function Fs(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,c=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,c,1]);var s=et.a.transform(t.getMatrix(),[["t",-o,-c],["s",1,.01],["t",o,c]]);t.setMatrix(s),t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-o,-c],["s",1,100],["t",o,c]])},e)}function Ls(t,e){var n,r=Object(zo.getArcParams)(t,e),i=r.startAngle,o=r.endAngle;return!Object(s.N)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Object(s.N)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(i=(n=Object(c.e)([o,i],2))[0],o=n[1]),Object(s.N)(i,1.5*Math.PI)&&(i=-.5*Math.PI),Object(s.N)(o,-.5*Math.PI)&&!Object(s.N)(i,o)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function Bs(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 Ds(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],a=i.length>1?i[1]:i[0],l=t.indexOf(o),u=t.indexOf(a),h=Bs(t[l-1]),f=Bs(t[u-1]),p=Ls(h,o),d=p.startAngle,g=p.endAngle,y=Ls(f,a),v=y.startAngle,m=y.endAngle;Object(s.N)(d,v)&&Object(s.N)(g,m)?(n=d,r=g):(n=Math.min(d,v),r=Math.max(g,m));var b=o[1],x=i[i.length-1][1];return b<x?(b=(e=Object(c.e)([x,b],2))[0],x=e[1]):b===x&&(x=0),{startAngle:n,endAngle:r,radius:b,innerRadius:x}}function Rs(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var l=Ds(o),u=l.startAngle,h=l.endAngle,f=l.radius,p=l.innerRadius,d=Ds(t.attr("path")),g=d.startAngle,y=d.endAngle,v=i.getCenter(),m=u-g,b=h-y;0!==m||0!==b?t.animate((function(t){var e=g+t*m,n=y+t*b;return Object(c.a)(Object(c.a)({},r),{path:Object(s.H)(a,["M","A","A","Z"])?Ct(v.x,v.y,f,e,n):St(v.x,v.y,f,e,n,p)})}),Object(c.a)(Object(c.a)({},e),{callback:function(){t.attr("path",o),Object(s.I)(e.callback)&&e.callback()}})):t.attr(r)}}function _s(t,e,n){var r=Gt(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,l=t.setClip({type:i,attrs:o});n.toAttrs&&t.attr(n.toAttrs),l.animate(a,Object(c.a)(Object(c.a)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0),Object(s.I)(e.callback)&&e.callback()}}))}function Ns(t,e,n){if(t.isGroup())Object(s.j)(t.getChildren(),(function(t){Ns(t,e,n)}));else{var r=t.getBBox(),i=(r.minX+r.maxX)/2,o=(r.minY+r.maxY)/2;if(t.applyToMatrix([i,o,1]),"zoomIn"===n){var a=et.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]]);t.setMatrix(a),t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])},e)}else t.animate({matrix:et.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])},Object(c.a)(Object(c.a)({},e),{callback:function(){t.remove(!0),Object(s.I)(e.callback)&&e.callback()}}))}}function zs(t,e,n){Ns(t,e,"zoomIn")}function Ys(t,e,n){Ns(t,e,"zoomOut")}function Gs(t){return[u.TOP,u.BOTTOM].includes(t)?{offsetX:0,offsetY:t===u.TOP?-8:8,style:{textAlign:"center",textBaseline:t===u.TOP?"bottom":"top"}}:[u.LEFT,u.RIGHT].includes(t)?{offsetX:t===u.LEFT?-8:8,offsetY:0,style:{textAlign:t===u.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function Hs(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Vs,Ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(s.h)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=.5,r={x:.5,y:.5},i=2*Math.PI/t,o=-1*Math.PI/2+i*e,a=n/(1+1/Math.sin(i/2)),c=Hs(r,n-a,o),s=5*Math.PI/4,l=1*Math.PI/4;return{start:Hs(c,a,s),end:Hs(c,a,l)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,i=n.type,o,a=Object(c.e)(r,1)[0];if(!a)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,a),u=l.length,h=[];return l.forEach((function(n,r){var o=[{field:a,value:n,values:l}],c=Object(s.l)(t,e.getFacetDataFilter(o)),f={type:i,data:c,region:e.getRegion(u,r),columnValue:n,columnField:a,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};h.push(f)})),h},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(s.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(s.s)(t.cfg.title,"formatter"),o=Object(s.h)({position:["50%","0%"],content:i?i(n):n},Gs(u.TOP),t.cfg.title);r.annotation().text(o)}))},e}(ue),Xs,$s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(s.h)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,i,o=Object(c.e)(n,1)[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),l=a.length;r=r||l;var u=this.getPageCount(l,r),h=[];return a.forEach((function(n,i){var c=e.getRowCol(i,r),f=c.row,p=c.col,d=[{field:o,value:n,values:a}],g=Object(s.l)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,r,p,f),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:p,rowIndex:f,columnValuesLength:r,rowValuesLength:u,total:l};h.push(y)})),h},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?Object(c.a)(Object(c.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(c.a)(Object(c.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(s.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(s.s)(t.cfg.title,"formatter"),o=Object(s.h)({position:["50%","0%"],content:i?i(n):n},Gs(u.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n,r;return{row:Math.floor(t/e),col:t%e}},e}(ue),qs,Us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(s.h)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(c.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(c.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,o=i,a=[],c=0;c<o;c++)for(var s=n[c],l=0;l<i;l++){var u=n[l],h={type:r,data:t,region:this.getRegion(i,o,c,l),columnValue:s,rowValue:u,columnField:s,rowField:u,columnIndex:c,rowIndex:l,columnValuesLength:o,rowValuesLength:i};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(c.a)(Object(c.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(c.a)(Object(c.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(s.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=e.rowValuesLength,c=e.columnValue,l=e.rowValue,h=e.view;if(0===i){var f=Object(s.s)(t.cfg.columnTitle,"formatter"),p=Object(s.h)({position:["50%","0%"],content:f?f(c):c},Gs(u.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(r===o-1){var f=Object(s.s)(t.cfg.rowTitle,"formatter"),p=Object(s.h)({position:["100%","50%"],content:f?f(l):l},Gs(u.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e}(ue),Ks,Zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(s.h)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e=this,n,r=Object(c.e)(this.cfg.fields,1)[0],i=[],o=1,a=1,l=[""],u=[""],h,f;return this.cfg.transpose?(h=r,l=this.getFieldValues(t,h).slice(0,2),o=l.length):(f=r,u=this.getFieldValues(t,f).slice(0,2),a=u.length),l.forEach((function(n,r){u.forEach((function(c,p){var d=[{field:h,value:n,values:l},{field:f,value:c,values:u}],g=Object(s.l)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(a,o,r,p),columnValue:n,rowValue:c,columnField:h,rowField:f,columnIndex:r,rowIndex:p,columnValuesLength:o,rowValuesLength:a};i.push(y)}))})),i},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?Object(c.a)(Object(c.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(s.j)(this.facets,(function(e,n){var r=e.columnValue,i=e.rowValue,o=e.view,a=Object(s.s)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=Object(s.h)({position:["50%","0%"],content:a?a(r):r},Gs(u.TOP),t.cfg.title);o.annotation().text(c)}else{var c=Object(s.h)({position:["100%","50%"],content:a?a(i):i},Gs(u.RIGHT),t.cfg.title);o.annotation().text(c)}}))},e}(ue),Qs,Js=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(s.h)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(c.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(c.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=Object(c.e)(this.cfg.fields,2),r=n[0],i=n[1],o=[],a=1,l=1,u=[""],h=[""];return r&&(u=this.getFieldValues(t,r),a=u.length),i&&(h=this.getFieldValues(t,i),l=h.length),u.forEach((function(n,c){h.forEach((function(f,p){var d=[{field:r,value:n,values:u},{field:i,value:f,values:h}],g=Object(s.l)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(l,a,c,p),columnValue:n,rowValue:f,columnField:r,rowField:i,columnIndex:c,rowIndex:p,columnValuesLength:a,rowValuesLength:l};o.push(y)}))})),o},e.prototype.renderTitle=function(){var t=this;Object(s.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,c=e.rowValue,l=e.view;if(0===i){var h=Object(s.s)(t.cfg.columnTitle,"formatter"),f=Object(s.h)({position:["50%","0%"],content:h?h(a):a},Gs(u.TOP),t.cfg.columnTitle);l.annotation().text(f)}if(r===o-1){var h=Object(s.s)(t.cfg.rowTitle,"formatter"),f=Object(s.h)({position:["100%","50%"],content:h?h(c):c},Gs(u.RIGHT),t.cfg.rowTitle);l.annotation().text(f)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(c.a)(Object(c.a)({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?Object(c.a)(Object(c.a)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(c.a)(Object(c.a)({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?Object(c.a)(Object(c.a)({},n),{title:null}):n},e}(ue),tl,el=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return Object(c.c)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(g.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(s.h)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){var e;if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],r={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(r),r.children=this.getChildFacets(t,1,n),this.setRegion(n),n},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r},c;return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e,n,r=this,i=[],o=0;t.forEach((function(t){r.isLeaf(t)&&(i.push(t),t.columnIndex=o,o++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var a,s=this.cfg.fields.length-1;s>=0;s--){var l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,Object(c.i)(l)),h=u.next();!h.done;h=u.next()){var f=h.value;this.isLeaf(f)||(f.originColIndex=f.columnIndex,f.columnIndex=this.getRegionIndex(f.children),f.columnValuesLength=i.length)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0],n;return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields,o;if(!(i.length<e)){var a=[],c=i[e-1],s=this.getFieldValues(t,c);return s.forEach((function(i,o){var l=[{field:c,value:i,values:s}],u=t.filter(r.getFacetDataFilter(l));if(u.length){var h={type:r.cfg.type,data:u,region:null,columnValue:i,rowValue:"",columnField:c,rowField:"",columnIndex:o,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(u,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(s.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(s.s)(t.cfg.title,"formatter"),o=Object(s.h)({position:["50%","0%"],content:i?i(n):n},Gs(u.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r,i=t.view.coordinateBBox,o={x:i.x+i.width/2,y:i.y+i.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},i={x:o.x,y:o.y+(r.y-o.y)/2},a={x:r.x,y:i.y};n.drawLine([o,i,a,r])}))},e.prototype.getPath=function(t){var e=[],n;return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(s.b)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(c.a)(Object(c.a)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?Object(c.a)(Object(c.a)({},n),{title:null,label:null}):n},e}(ue);function nl(t){var e=Object(c.g)([],Object(c.e)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function rl(t){var e=Object(s.ib)(t,(function(t,e){return t+(isNaN(e)||!Object(s.M)(e)?0:e)}),0);return 0===t.length?0:e/t.length}function il(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?nl(e.values.map((function(t,e){return e}))):nl(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:rl(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}var ol=["regionFilter","shape"],al,cl=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(l.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(l.BG).addGroup(),n.option=[],n}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Object(s.j)(t.option,(function(n){if(Object(s.A)(ol,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(s.j)(this.option,(function(n){if(!Object(s.A)(ol,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(y.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||this.view.getRootView().once(g.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=pt.Annotation[Object(s.wb)(e)];if(n){var r=this.getAnnotationTheme(e),i=this.getAnnotationCfg(e,t,r),o;return i?{component:new n(i),layer:this.isTop(i)?l.FORE:l.BG,direction:u.NONE,type:h.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(c.a)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(c.a)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(c.a)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(c.a)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(c.a)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(c.a)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(c.a)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(c.a)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(c.a)({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(c.a)({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Object(s.I)(t)?t.call(null,r,i):t,a=0,l=0;if(Object(s.C)(o)){var u=Object(c.e)(o,2),h=u[0],f=u[1];if(Object(s.Q)(h)&&-1!==h.indexOf("%")&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(o);a=il(h,r),l=il(f,Object.values(i)[0])}else if(!Object(s.K)(o))try{for(var p=Object(c.i)(Object(s.T)(o)),d=p.next();!d.done;d=p.next()){var g=d.value,y=o[g];g===r.field&&(a=il(y,r)),i[g]&&(l=il(y,i[g]))}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(l)?null:this.view.getCoordinate().convert({x:a,y:l})},e.prototype.getRegionPoints=function(t,e){var n=this,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Object.values(i)[0],a=r.field,c=this.view.getData(),l=Object(s.C)(t)?t[0]:t[a],u=Object(s.C)(e)?e[0]:e[a],h=[],f;return Object(s.j)(c,(function(t,e){if(t[a]===l&&(f=e),e>=f){var r=n.parsePosition([t[a],t[o.field]]);r&&h.push(r)}if(t[a]===u)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),c=Math.min(i.y,o.y),s,l;return{x:r.getWidth()*e+a,y:r.getHeight()*n+c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(Object(s.K)(e))return null;var l=e.start,u=e.end,h=e.position,f=this.parsePosition(l),p=this.parsePosition(u),d=this.parsePosition(h);if(!(!["arc","image","line","region","regionFilter"].includes(t)||f&&p))return null;if(["text","dataMarker","html"].includes(t)&&!d)return null;if("arc"===t){var g=e,y=g.start,v=g.end,m=Object(c.f)(g,["start","end"]),b=Yt(i,f),x=Yt(i,p);b>x&&(x=2*Math.PI+x),a=Object(c.a)(Object(c.a)({},m),{center:i.getCenter(),radius:Nt(i,f),startAngle:b,endAngle:x})}else if("image"===t){var O=e,j=O.start,w=O.end,m=Object(c.f)(O,["start","end"]);a=Object(c.a)(Object(c.a)({},m),{start:f,end:p,src:e.src})}else if("line"===t){var M=e,S=M.start,C=M.end,m=Object(c.f)(M,["start","end"]);a=Object(c.a)(Object(c.a)({},m),{start:f,end:p,text:Object(s.s)(e,"text",null)})}else if("region"===t){var A=e,E=A.start,k=A.end,m=Object(c.f)(A,["start","end"]);a=Object(c.a)(Object(c.a)({},m),{start:f,end:p})}else if("text"===t){var T=this.view.getData(),P=e,I=P.position,F=P.content,m=Object(c.f)(P,["position","content"]),L=F;Object(s.I)(F)&&(L=F(T)),a=Object(c.a)(Object(c.a)(Object(c.a)({},d),m),{content:L})}else if("dataMarker"===t){var B=e,D=B.position,R=B.point,_=B.line,N=B.text,z=B.autoAdjust,Y=B.direction,m=Object(c.f)(B,["position","point","line","text","autoAdjust","direction"]);a=Object(c.a)(Object(c.a)(Object(c.a)({},m),d),{coordinateBBox:this.getCoordinateBBox(),point:R,line:_,text:N,autoAdjust:z,direction:Y})}else if("dataRegion"===t){var G=e,H=G.start,V=G.end,W=G.region,N=G.text,X=G.lineLength,m=Object(c.f)(G,["start","end","region","text","lineLength"]);a=Object(c.a)(Object(c.a)({},m),{points:this.getRegionPoints(H,V),region:W,text:N,lineLength:X})}else if("regionFilter"===t){var $=e,q=$.start,U=$.end,K=$.apply,Z=$.color,m=Object(c.f)($,["start","end","apply","color"]),Q=this.view.geometries,J=[],tt=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return tt(t)})):J.push(t))};Object(s.j)(Q,(function(t){K?Object(s.f)(K,t.type)&&Object(s.j)(t.elements,(function(t){tt(t.shape)})):Object(s.j)(t.elements,(function(t){tt(t.shape)}))})),a=Object(c.a)(Object(c.a)({},m),{color:Z,shapes:J,start:f,end:p})}else if("shape"===t){var et=e,nt=et.render,rt=Object(c.f)(et,["render"]),it=function(t){if(Object(s.I)(e.render))return nt(t,r.view,{parsePosition:r.parsePosition.bind(r)})};a=Object(c.a)(Object(c.a)({},rt),{render:it})}else if("html"===t){var ot=e,at=ot.html,ct=ot.position,rt=Object(c.f)(ot,["html","position"]),st=function(t){return Object(s.I)(at)?at(t,r.view):at};a=Object(c.a)(Object(c.a)(Object(c.a)({},rt),d),{parent:o.get("el").parentNode,html:st})}var lt=Object(s.h)({},n,Object(c.a)(Object(c.a)({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(lt.container=this.getComponentContainer(lt)),lt.animate=this.view.getOptions().animate&&lt.animate&&Object(s.s)(e,"animate",lt.animate),lt.animateOption=Object(s.h)({},ti,lt.animateOption,e.animateOption),lt},e.prototype.isTop=function(t){return Object(s.s)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(s.s)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);i&&It(i,["container"]),e.component.update(Object(c.a)(Object(c.a)({},i||{}),{visible:!!i})),Object(s.A)(ol,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(s.A)(ol,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){Object(s.m)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}($r);function sl(t,e){var n=Object(s.h)({},Object(s.s)(t,["components","axis","common"]),Object(s.s)(t,["components","axis",e]));return Object(s.s)(n,["grid"],{})}function ll(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var c=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]});else if(a){var s,l=(e.value+c)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return o}),o[0]),i}function ul(t,e,n,r,i){var o=e.values.length,a=[],c=n.getTicks();return c.reduce((function(e,n){var c=e?e.value:n.value,l=n.value,u=(c+l)/2;return"x"===i?a.push({points:[t.convert({x:r?l:u,y:0}),t.convert({x:r?l:u,y:1})]}):a.push({points:Object(s.W)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?l:u})}))}),n}),c[0]),a}function hl(t,e){var n=Object(s.s)(e,"grid");if(null===n)return!1;var r=Object(s.s)(t,"grid");return!(void 0===n&&null===r)}var fl=["container"],pl=Object(c.a)(Object(c.a)({},ti),{appear:null}),dl,gl=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(l.BG).addGroup(),n.gridForeContainer=n.view.getLayer(l.FORE).addGroup(),n.axisContainer=n.view.getLayer(l.BG).addGroup(),n.axisForeContainer=n.view.getLayer(l.FORE).addGroup(),n}return Object(c.c)(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();Object(s.j)(this.getComponents(),(function(n){var r=n.component,i=n.direction,o=n.type,a=n.extra,c=a.dim,s=a.scale,l=a.alignTick,u;if(o===h.AXIS)e.isPolar?"x"===c?u=e.isTransposed?te(e,i):ae(e):"y"===c&&(u=e.isTransposed?ae(e):te(e,i)):u=te(e,i);else if(o===h.GRID)if(e.isPolar){var f=void 0;u={items:f=e.isTransposed?"x"===c?ul(e,t.view.getYScales()[0],s,l,c):ll(e,s,c,l):"x"===c?ll(e,s,c,l):ul(e,t.view.getXScale(),s,l,c),center:t.view.getCoordinate().getCenter()}}else u={items:ll(e,s,c,l)};r.update(u)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=ce(this.option,e.field);if(!1!==n){var r=se(n,u.BOTTOM),i=l.BG,o="x",a=this.view.getCoordinate(),c=this.getId("axis",e.field),h=this.getId("grid",e.field);if(a.isRect){var f,p,d,p;if(f=this.cache.get(c))It(p=this.getLineAxisCfg(e,n,r),fl),f.component.update(p),t.set(c,f);else f=this.createLineAxis(e,n,i,r,"x"),this.cache.set(c,f),t.set(c,f);if(d=this.cache.get(h))It(p=this.getLineGridCfg(e,n,r,"x"),fl),d.component.update(p),t.set(h,d);else(d=this.createLineGrid(e,n,i,r,"x"))&&(this.cache.set(h,d),t.set(h,d))}else if(a.isPolar){var f,d;if(f=this.cache.get(c)){var p;It(p=a.isTransposed?this.getLineAxisCfg(e,n,u.RADIUS):this.getCircleAxisCfg(e,n,r),fl),f.component.update(p),t.set(c,f)}else{if(a.isTransposed){if(Object(s.S)(n))return;f=this.createLineAxis(e,n,i,u.RADIUS,"x")}else f=this.createCircleAxis(e,n,i,r,"x");this.cache.set(c,f),t.set(c,f)}if(d=this.cache.get(h)){var p;It(p=a.isTransposed?this.getCircleGridCfg(e,n,u.RADIUS,"x"):this.getLineGridCfg(e,n,u.CIRCLE,"x"),fl),d.component.update(p),t.set(h,d)}else{if(a.isTransposed){if(Object(s.S)(n))return;d=this.createCircleGrid(e,n,i,u.RADIUS,"x")}else d=this.createLineGrid(e,n,i,u.CIRCLE,"x");d&&(this.cache.set(h,d),t.set(h,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(s.j)(n,(function(n,r){if(n&&!n.isIdentity){var i=n.field,o=ce(e.option,i);if(!1!==o){var a=l.BG,c="y",h=e.getId("axis",i),f=e.getId("grid",i),p=e.view.getCoordinate();if(p.isRect){var d=se(o,0===r?u.LEFT:u.RIGHT),g,y,v,y;if(g=e.cache.get(h))It(y=e.getLineAxisCfg(n,o,d),fl),g.component.update(y),t.set(h,g);else g=e.createLineAxis(n,o,a,d,"y"),e.cache.set(h,g),t.set(h,g);if(v=e.cache.get(f))It(y=e.getLineGridCfg(n,o,d,"y"),fl),v.component.update(y),t.set(f,v);else(v=e.createLineGrid(n,o,a,d,"y"))&&(e.cache.set(f,v),t.set(f,v))}else if(p.isPolar){var g,v;if(g=e.cache.get(h)){var y;It(y=p.isTransposed?e.getCircleAxisCfg(n,o,u.CIRCLE):e.getLineAxisCfg(n,o,u.RADIUS),fl),g.component.update(y),t.set(h,g)}else{if(p.isTransposed){if(Object(s.S)(o))return;g=e.createCircleAxis(n,o,a,u.CIRCLE,"y")}else g=e.createLineAxis(n,o,a,u.RADIUS,"y");e.cache.set(h,g),t.set(h,g)}if(v=e.cache.get(f)){var y;It(y=p.isTransposed?e.getLineGridCfg(n,o,u.CIRCLE,"y"):e.getCircleGridCfg(n,o,u.RADIUS,"y"),fl),v.component.update(y),t.set(f,v)}else{if(p.isTransposed){if(Object(s.S)(o))return;v=e.createLineGrid(n,o,a,u.CIRCLE,"y")}else v=e.createCircleGrid(n,o,a,u.RADIUS,"y");v&&(e.cache.set(f,v),t.set(f,v))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var o={component:new dt(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===u.RADIUS?u.NONE:r,type:h.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,r,i){var o=this.getLineGridCfg(t,e,r,i);if(o){var a={component:new yt(o),layer:n,direction:u.NONE,type:h.GRID,extra:{dim:i,scale:t,alignTick:Object(s.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new gt(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:h.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var o=this.getCircleGridCfg(t,e,r,i);if(o){var a={component:new vt(o),layer:n,direction:u.NONE,type:h.GRID,extra:{dim:i,scale:t,alignTick:Object(s.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Object(s.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=te(i,n),a=le(t,e),l=ie(this.view.getTheme(),n),u=Object(s.s)(e,["title"])?Object(s.h)({title:{style:{text:a}}},{title:oe(this.view.getTheme(),n,e.title)},e):e,h=Object(s.h)(Object(c.a)(Object(c.a)({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*re(o,i.getCenter()):re(o,i.getCenter()),theme:l}),l,u),f=this.getAnimateCfg(h),p=f.animate,d=f.animateOption;h.animateOption=d,h.animate=p;var g=ne(o),y=Object(s.s)(h,"verticalLimitLength",g?1/3:.5);if(y<=1){var v=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=y*(g?v:m)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if(hl(ie(this.view.getTheme(),n),e)){var i=sl(this.view.getTheme(),n),o=Object(s.h)({container:Object(s.s)(e,["top"])?this.gridForeContainer:this.gridContainer},i,Object(s.s)(e,"grid"),this.getAnimateCfg(e));return o.items=ll(this.view.getCoordinate(),t,r,Object(s.s)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Object(s.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||o.length&&(o[o.length-1].name="");var a=le(t,e),l=ie(this.view.getTheme(),u.CIRCLE),h=Object(s.s)(e,["title"])?Object(s.h)({title:{style:{text:a}}},{title:oe(this.view.getTheme(),n,e.title)},e):e,f=Object(s.h)(Object(c.a)(Object(c.a)({container:r},ae(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:l}),l,h),p=this.getAnimateCfg(f),d=p.animate,g=p.animateOption;return f.animate=d,f.animateOption=g,f},e.prototype.getCircleGridCfg=function(t,e,n,r){if(hl(ie(this.view.getTheme(),n),e)){var i=sl(this.view.getTheme(),u.RADIUS),o=Object(s.h)({container:Object(s.s)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,Object(s.s)(e,"grid"),this.getAnimateCfg(e)),a=Object(s.s)(o,"alignTick",!0),c="x"===r?this.view.getYScales()[0]:this.view.getXScale();return o.items=ul(this.view.getCoordinate(),c,t,a,r),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(s.s)(t,"animate"),animateOption:t&&t.animateOption?Object(s.h)({},pl,t.animateOption):pl}},e}($r);function yl(t,e,n){return n===u.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===u.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===u.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===u.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===u.TOP_LEFT||n===u.LEFT_TOP?[t.tl.x,t.tl.y]:n===u.TOP_RIGHT||n===u.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===u.BOTTOM_LEFT||n===u.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===u.BOTTOM_RIGHT||n===u.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function vl(t,e){if(e.isTransposed)switch(t){case u.BOTTOM:return u.LEFT;case u.LEFT:return u.BOTTOM;case u.RIGHT:return u.TOP;case u.TOP:return u.RIGHT}return t}function ml(t){return t===u.LEFT?u.RIGHT:t===u.RIGHT?u.LEFT:t}function bl(t){return t===u.TOP?u.BOTTOM:t===u.BOTTOM?u.TOP:t}function xl(t,e){var n=e.matrix[0],r=e.matrix[4],i=t;return n<0&&(i=ml(i)),r<0&&(i=bl(i)),i}function Ol(t,e){var n=t;return e.isReflect("x")&&(n=ml(n)),e.isReflect("y")&&(n=bl(n)),n}function jl(t,e){var n=t;return n=Ol(n=xl(n=vl(n,e),e),e)}function wl(t,e){return Object(s.D)(t)?!1!==t&&{}:Object(s.s)(t,[e],t)}function Ml(t){return Object(s.s)(t,"position",u.BOTTOM)}var Sl,Cl=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(l.FORE).addGroup(),n}return Object(c.c)(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,Object(s.j)(this.components,(function(e){var n=e.component,r=e.direction,i=Ki(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(i,o,a),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,l||0),maxHeight:Math.min(s.maxHeight,u||0)});var h=n.get("padding"),f=n.getLayoutBBox(),p=new Lt(f.x,f.y,f.width,f.height).expand(h),d=Object(c.e)(yl(t.view.viewBBox,p,r),2),g=d[0],y=d[1],v=Object(c.e)(yl(t.layoutBBox,p,r),2),m=v[0],b=v[1],x=0,O=0;r.startsWith("top")||r.startsWith("bottom")?(x=g,O=b):(x=m,O=y),n.setLocation({x:x+h[3],y:O+h[0]}),t.layoutBBox=t.layoutBBox.cut(p,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var c=void 0,l=wl(t.option,i.field);!1!==l&&(Object(s.s)(l,"custom")?c=t.getCategoryCfg(n,r,i,l,!0):i.isLinear?c=t.getContinuousCfg(n,r,i,l):i.isCategory&&(c=t.getCategoryCfg(n,r,i,l))),c&&(It(c,["container"]),a.direction=Ml(l),a.component.update(c),e[o]=!0)}else{var u=t.createFieldLegend(n,r,i);u&&(u.component.init(),t.components.push(u),e[o]=!0)}};if(Object(s.s)(this.option,"custom")){var r="global-custom",i=this.getComponentById(r);if(i){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);It(o,["container"]),i.component.update(o),e[r]=!0}else{var a=this.createCustomLegend(void 0,void 0,void 0,this.option);if(a){a.init();var c=l.FORE,u=Ml(this.option);this.components.push({id:r,component:a,layer:c,direction:u,type:h.LEGEND,extra:void 0}),e[r]=!0}}}else this.loopLegends(n);var f=[];Object(s.j)(this.getComponents(),(function(t){e[t.id]?f.push(t):t.component.destroy()})),this.components=f},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(s.j)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e;if(this.view.getRootView()===this.view){var n=this.getGeometries(this.view),r={};Object(s.j)(n,(function(e){var n=e.getGroupAttributes();Object(s.j)(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,n){var r,i=wl(this.option,n.field),o=l.FORE,a=Ml(i);if(!1!==i&&(Object(s.s)(i,"custom")?r=this.createCustomLegend(t,e,n,i):n.isLinear?r=this.createContinuousLegend(t,e,n,i):n.isCategory&&(r=this.createCategoryLegend(t,e,n,i))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:o,direction:a,type:h.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new mt(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,It(r,["value"]));return new bt(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new mt(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=Object(s.m)(i,(function(t){return 0===t.value})),a=Object(s.m)(i,(function(t){return 1===t.value})),c=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||c.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||c.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),c.sort((function(t,e){return t.value-e.value}));var l={min:Object(s.z)(c).value,max:Object(s.U)(c).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=c.map((function(t){return t.attrValue})));var u=this.container,h,f=Ki(Ml(r)),p=Object(s.s)(r,"title");return p&&(p=Object(s.h)({text:Ut(n)},p)),l.container=u,l.layout=f,l.title=p,l.animateOption=ti,this.mergeLegendCfg(l,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var o=this.container,a=Object(s.s)(r,"position",u.BOTTOM),c=Ji(this.view.getTheme(),a),l=Object(s.s)(c,["marker"]),h=Object(s.s)(r,"marker"),f=Ki(a),p=Object(s.s)(c,["pageNavigator"]),d=Object(s.s)(r,"pageNavigator"),g=i?Qi(l,h,r.items):Zi(this.view,t,e,l,h),y=Object(s.s)(r,"title");y&&(y=Object(s.h)({text:n?Ut(n):""},y));var v=Object(s.s)(r,"maxWidthRatio"),m=Object(s.s)(r,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(f,v,m);b.container=o,b.layout=f,b.items=g,b.title=y,b.animateOption=ti,b.pageNavigator=Object(s.h)({},p,d);var x=this.mergeLegendCfg(b,r,a);x.reversed&&x.items.reverse();var O=Object(s.s)(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=Ji(this.view.getTheme(),r);return Object(s.h)({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(s.m)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=.25),void 0===n&&(n=.25);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}($r),Al,El=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(c.e)(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(l.FORE).addGroup(),n.onChangeFn=Object(s.qb)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(g.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(g.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(c.c)(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(g.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(g.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(s.K)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(s.G)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),r=Object(c.e)(n,4),i=r[0],o=r[1],a=r[2],s=r[3],l=this.slider.component.getLayoutBBox(),h=new Lt(l.x,l.y,Math.min(l.width,e),l.height).expand(n),f=this.getMinMaxText(this.start,this.end),p=f.minText,d=f.maxText,g=Object(c.e)(yl(this.view.viewBBox,h,u.BOTTOM),2),y=g[0],v=g[1],m=Object(c.e)(yl(this.view.coordinateBBox,h,u.BOTTOM),2),b=m[0],x=m[1];this.slider.component.update(Object(c.a)(Object(c.a)({},this.getSliderCfg()),{x:b+s,y:v+i,width:this.width,start:this.start,end:this.end,minText:p,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(h,u.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new pt.Slider(Object(c.a)({container:this.container},t));return e.init(),{component:e,layer:l.FORE,direction:u.BOTTOM,type:h.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=Object(c.a)(Object(c.a)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}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(Object(s.O)(this.option)){var e=Object(c.a)({data:this.getData()},Object(s.s)(this.option,"trendCfg",{}));t=Object(s.h)({},t,this.getThemeOptions(),this.option),t=Object(c.a)(Object(c.a)({},t),{trendCfg:e})}return t.start=Object(s.c)(Math.min(Object(s.K)(t.start)?0:t.start,Object(s.K)(t.end)?1:t.end),0,1),t.end=Object(s.c)(Math.max(Object(s.K)(t.start)?0:t.start,Object(s.K)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e,n=Object(c.e)(this.view.getYScales(),1)[0],r=this.view.getGroupScales();if(r.length){var i=r[0],o=i.field,a=i.ticks;return t.reduce((function(t,e){return e[o]===a[0]&&t.push(e[n.field]),t}),[])}return t.map((function(t){return t[n.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(s.s)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=!0,o=Object(s.yb)(n,r.field);r.isLinear&&(o=o.sort());var a=o,c=Object(s.mb)(n);if(!r||!c)return{};var l=Object(s.mb)(a),u=Math.round(t*(l-1)),h=Math.round(e*(l-1)),f=Object(s.s)(a,[u]),p=Object(s.s)(a,[h]),d=this.getSliderCfg().formatter;return d&&(f=d(f,n[u],u),p=d(p,n[h],h)),{minText:f,maxText:p}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(s.mb)(n);if(r&&i){var o=!0,a=Object(s.yb)(n,r.field),c=this.view.getXScale().isLinear?a.sort((function(t,e){return Number(t)-Number(e)})):a,l=c,u=Object(s.mb)(l),h=Math.round(t*(u-1)),f=Math.round(e*(u-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||Tt(n,h,f)})),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),kl=0,Tl=8,Pl=32,Il=20,Fl,Ll=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(s.c)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(l.FORE).addGroup(),n.onChangeFn=Object(s.qb)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(g.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(g.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(c.c)(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(g.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(g.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),r=this.scrollbar.component.getLayoutBBox(),i=new Lt(r.x,r.y,Math.min(r.width,e),r.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,s=void 0;if(o.isHorizontal){var l=Object(c.e)(yl(this.view.viewBBox,i,u.BOTTOM),2),h=l[0],f=l[1],p=Object(c.e)(yl(this.view.coordinateBBox,i,u.BOTTOM),2),d=p[0],g=p[1];a=d,s=f}else{var y=Object(c.e)(yl(this.view.viewBBox,i,u.RIGHT),2),h=y[0],f=y[1],v=Object(c.e)(yl(this.view.viewBBox,i,u.RIGHT),2),d=v[0],g=v[1];a=d,s=f}a+=n[3],s+=n[0],this.trackLen?this.scrollbar.component.update(Object(c.a)(Object(c.a)({},o),{x:a,y:s,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(c.a)(Object(c.a)({},o),{x:a,y:s})),this.view.viewBBox=this.view.viewBBox.cut(i,o.isHorizontal?u.BOTTOM:u.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 Object(s.s)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(s.s)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=Object(c.f)(n,["thumbHighlightColor"]);return{default:Object(s.h)({},Object(s.s)(e,["default","style"],{}),i),hover:Object(s.h)({},Object(s.s)(e,["hover","style"],{}),{thumbColor:r})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(s.c)(this.ratio,0,1)),e;return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=Object(c.e)(t,2),i=r[0],o=r[1],a,l="vertical"!==this.getValidScrollbarCfg().type,u=Object(s.yb)(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?u.sort((function(t,e){return Number(t)-Number(e)})):u,f=l?h:h.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=f.indexOf(t);return!(e>-1)||Tt(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t,e="vertical"!==this.getValidScrollbarCfg().type,n=new pt.Scrollbar(Object(c.a)(Object(c.a)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:l.FORE,direction:e?u.BOTTOM:u.RIGHT,type:h.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(c.a)(Object(c.a)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(c.a)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(s.yb)(e,t.field);return Object(s.mb)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,l=r.height,u=r.style,h="vertical"!==i,f=Object(c.e)(o,4),p=f[0],d=f[1],g=f[2],y=f[3],v=h?{x:e.minX+y,y:n.maxY-l-g}:{x:n.maxX-a-d,y:e.minY+p},m=this.getStep(),b=this.getCnt(),x=h?e.width-y-d:e.height-p-g,O=Math.max(x*Object(s.c)(m/b,0,1),20);return Object(c.a)(Object(c.a)({},this.getThemeOptions()),{x:v.x,y:v.y,size:h?l:a,isHorizontal:h,trackLen:x,thumbLen:O,thumbOffset:0,theme:this.getScrollbarTheme(u)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(s.O)(this.option)&&(t=Object(c.a)(Object(c.a)({},t),this.option)),Object(s.O)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=Object(c.g)([],Object(c.e)(n),!1).reverse()),n},e}($r),Bl={fill:"#CCD6EC",opacity:.3};function Dl(t,e,n){var r,i,o,a,l,u,h=Sr(t,e,n);if(h.length){h=Object(s.q)(h);try{for(var f=Object(c.i)(h),p=f.next();!p.done;p=f.next()){var d=p.value;try{for(var g=(o=void 0,Object(c.i)(d)),y=g.next();!y.done;y=g.next()){var v=y.value,m=v.mappingData,b=m.x,x=m.y;v.x=Object(s.C)(b)?b[b.length-1]:b,v.y=Object(s.C)(x)?x[x.length-1]:x}}catch(t){o={error:t}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}var O;if(!1===n.shared&&h.length>1){var j=h[0],w=Math.abs(e.y-j[0].y);try{for(var M=Object(c.i)(h),S=M.next();!S.done;S=M.next()){var C=S.value,A=Math.abs(e.y-C[0].y);A<=w&&(j=C,w=A)}}catch(t){l={error:t}}finally{try{S&&!S.done&&(u=M.return)&&u.call(M)}finally{if(l)throw l.error}}h=[j]}return Object(s.ub)(Object(s.q)(h))}return[]}var Rl,_l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=Dl(e,{x:n.x,y:n.y},r);if(!Object(s.H)(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],l=[],u=e.geometries;if(Object(s.j)(u,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e;return t.getData()[o]===a}));l=l.concat(e)}})),l.length){var h=e.getCoordinate(),f=l[0].shape.getCanvasBBox(),p=l[0].shape.getCanvasBBox(),d=f;Object(s.j)(l,(function(t){var e=t.shape.getCanvasBBox();h.isTransposed?(e.minY<f.minY&&(f=e),e.maxY>p.maxY&&(p=e)):(e.minX<f.minX&&(f=e),e.maxX>p.maxX&&(p=e)),d.x=Math.min(e.minX,d.minX),d.y=Math.min(e.minY,d.minY),d.width=Math.max(e.maxX,d.maxX)-d.x,d.height=Math.max(e.maxY,d.maxY)-d.y}));var g=e.backgroundGroup,y=e.coordinateBBox,v=void 0;if(h.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(s.K)(O)&&(x=Object(s.K)(x)?m.isLinear?0:.25:x,O=h.isTransposed?x*p.height:x*f.width);var j=void 0,w=void 0,M=void 0,S=void 0;h.isTransposed?(j=y.minX,w=Math.min(p.minY,f.minY)-O,M=y.width,S=d.height+2*O):(j=Math.min(f.minX,p.minX)-O,w=y.minY,M=d.width+2*O,S=y.height),v=[["M",j,w],["L",j+M,w],["L",j+M,w+S],["L",j,w+S],["Z"]]}else{var C=Object(s.z)(l),A=Object(s.U)(l),E=At(C.getModel(),h).startAngle,k=At(A.getModel(),h).endAngle,T=h.getCenter(),P=h.getRadius(),I=h.innerRadius*P;v=St(T.x,T.y,P,E,k,I)}if(this.regionPath)this.regionPath.attr("path",v),this.regionPath.show();else{var F=Object(s.s)(t,"style",Bl);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(c.a)(Object(c.a)({},F),{path:v})})}}}},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}(ge),Nl,zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(c.c)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,r;if(!n.isTooltipLocked()){var i=this.timeStamp,o=+new Date,a;if(o-i>Object(s.s)(t.view.getOptions(),"tooltip.showDelay",16)){var c=this.location,l={x:e.x,y:e.y};c&&Object(s.H)(c,l)||this.showTooltip(n,l),this.timeStamp=o,this.location=l}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(ge),Yl,Gl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.showTooltip=function(t,e){var n=dn(t);Object(s.j)(n,(function(n){var r=yn(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=dn(t);Object(s.j)(e,(function(t){t.hideTooltip()}))},e}(zl),Hl,Vl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(c.c)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t,e=this.context.event,n=this.timeStamp,r=+new Date;if(r-n>16){var i=this.location,o={x:e.x,y:e.y};i&&Object(s.H)(i,o)||this.showTooltip(o),this.timeStamp=r,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n,r=e.event.target;if(r&&r.get("tip")){if(this.tooltip){var i,o=e.view.canvas,a={start:{x:0,y:0},end:{x:o.get("width"),y:o.get("height")}};this.tooltip.set("region",a)}else this.renderTooltip();var s=r.get("tip");this.tooltip.update(Object(c.a)({title:s},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=Object(s.s)(i,["components","tooltip","domStyles"],{}),a=new xt({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:Object(c.a)({},Object(s.h)({},o,(t={},t[pt.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[pt.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(ge),Wl,Xl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(c.c)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=rn(t,this.stateName);Object(s.j)(n,(function(t){e.setElementState(t,!1)}))},e}(ge);function $l(t){return Object(s.s)(t.get("delegateObject"),"item")}var ql,Ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(c.c)(e,t),e.prototype.isItemIgnore=function(t,e){var n,r;return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=en(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r,i=mn(this.context.view,e),o=on(t,e);return!Object(s.K)(o)&&n.name===i.getText(o)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Object(s.j)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=He(this.context);if(e)We(this.context)&&this.setStateByElement(e,t);else{var n=Ve(this.context);if(Xe(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&$l(o.fromShape)===$l(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=He(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Xl),Kl,Zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(c.c)(e,t),e.prototype.active=function(){this.setState()},e}(Ul),Ql,Jl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(c.c)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color"),r;return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n,r=this.context.view.getCoordinate().isTransposed,i=t.shape.getCanvasBBox(),o=e.shape.getCanvasBBox(),a;return r?[["M",i.minX,i.minY],["L",o.minX,o.maxY],["L",o.maxX,o.maxY],["L",i.maxX,i.minY],["Z"]]:[["M",i.maxX,i.minY],["L",o.minX,o.minY],["L",o.minX,o.maxY],["L",i.maxX,i.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(c.a)(Object(c.a)({},Object(s.h)({},i,Object(s.I)(r)?r(i,e):r)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var o=on(t,i.field);if(!this.cache[o]){var a=nn(r,i.field,o),c,l=this.linkGroup.addGroup();this.cache[o]=l;var u=a.length;Object(s.j)(a,(function(t,r){if(r<u-1){var i=a[r+1];n.addLinkShape(l,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=on(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=He(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=He(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(ge),tu,eu=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 Object(c.c)(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(qe(this.context))t=Ke(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i;t=cn(this.context.view,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=en(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,i=dn(r),o=t.map((function(t){return t.getModel().data})),a=r.getXScale().field,c=r.getYScales()[0].field;Object(s.j)(i,(function(t){var r=en(t),i=r.filter((function(t){var e=t.getModel().data;return vn(o,e,a,c)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n,r=dn(this.context.view);qe(this.context)&&Object(s.j)(r,(function(n){var r=en(n),i=Qe(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;Object(s.j)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=dn(e);Object(s.j)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(Xl),nu,ru=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(c.c)(e,t),e.prototype.active=function(){this.setState()},e}(eu),iu,ou=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.setStateEnable=function(t){var e=He(this.context);if(e){if(!We(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=He(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Xl),au,cu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(c.c)(e,t),e.prototype.active=function(){this.setState()},e}(ou),su="inactive",lu="active";function uu(t){var e=en(t);Object(s.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}function hu(t,e,n){Object(s.j)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}var fu=m.INACTIVE,pu=m.ACTIVE,du,gu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=pu,e}return Object(c.c)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this,o=function(t){return i.isMathItem(t,e,n)};this.setHighlightBy(t,o,r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(fu)&&t.setState(fu,!1),t.setState(pu,!0)):t.hasState(pu)||t.setState(fu,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(s.j)(t,(function(t){r.setElementHighlight(t,e)}));else{var i=rn(this.context.view,pu),o=!0;Object(s.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(s.j)(t,(function(t){e(t)&&(t.hasState(pu)&&t.setState(pu,!1),t.setState(fu,!0))}))}},e.prototype.setElementState=function(t,e){var n,r=en(this.context.view);this.setHighlightBy(r,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t;uu(this.context.view)},e}(Ul),yu,vu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),o=on(t,i.field),a=en(n),c=a.filter((function(t){return on(t,i.field)===o}));this.setHighlightBy(a,(function(t){return c.includes(t)}),e)}},e}(gu),mu,bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(fu)&&t.setState(fu,!1),t.setState(pu,!0)):(t.setState(fu,!0),t.hasState(pu)&&t.setState(pu,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),i=on(t,r.field),o=en(n),a=o.filter((function(t){return on(t,r.field)===i}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=He(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(gu),xu;!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(xu||(xu={}));var Ou,ju=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(c.c)(e,t),e.prototype.clearViewState=function(t){uu(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n,r,i={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(xu.BEFORE_HIGHLIGHT,Dr.fromData(e,xu.BEFORE_HIGHLIGHT,i)),this.setState(),e.emit(xu.AFTER_HIGHLIGHT,Dr.fromData(e,xu.AFTER_HIGHLIGHT,i))},e.prototype.clear=function(){var e=this.context.view;e.emit(xu.BEFORE_CLEAR,Dr.fromData(e,xu.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(xu.AFTER_CLEAR,Dr.fromData(e,xu.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){hu(n,(function(e){return t.indexOf(e)>=0}),e)},e}(eu),wu,Mu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(c.c)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n,r;hu(en(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){var t;uu(this.context.view)},e}(ou),Su,Cu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(c.c)(e,t),e.prototype.selected=function(){this.setState()},e}(eu),Au,Eu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(c.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Ul),ku,Tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(c.c)(e,t),e.prototype.selected=function(){this.setState()},e}(ou),Pu,Iu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(c.c)(e,t),e.prototype.getTriggerListInfo=function(){var t=Ve(this.context),e=null;return Xe(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e,n=un(this.context.view),r=[];return Object(s.j)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(s.j)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r,i=mn(this.context.view,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates,r;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i,o=mn(this.context.view,r),a=on(e,r),c=o.getText(a);this.setItemsState(t,c,n)},e.prototype.setStateEnable=function(t){var e=this,n=He(this.context);if(n){var r=this.getAllowComponents();Object(s.j)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=Ve(this.context);if(Xe(i)){var o=i.item,a=i.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();Object(s.j)(i,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(ge),Fu,Lu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(c.c)(e,t),e.prototype.active=function(){this.setState()},e}(Iu),Bu="inactive",Du="active";function Ru(t){var e=t.getItems();Object(s.j)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}var _u="inactive",Nu="active",zu,Yu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(c.c)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){var r=t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(s.j)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var i=t.getItemsByState("active"),o=!0;Object(s.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(s.j)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Ru(t.list);else{var e=this.getAllowComponents();Object(s.j)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(Iu),Gu,Hu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(c.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Iu),Vu,Wu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(c.c)(e,t),e.prototype.unchecked=function(){this.setState()},e}(Iu),Xu="unchecked",$u="checked",qu,Uu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return Object(c.c)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&Object(s.j)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r;!Object(s.nb)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(s.j)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(Iu),Ku="unchecked",Zu,Qu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,s,l=this.getTriggerListInfo();if(null==l?void 0:l.item){var u=l.list,h=l.item,f=u.getItems(),p=f.filter((function(t){return!u.hasState(t,"unchecked")})),d=f.filter((function(t){return u.hasState(t,"unchecked")})),g=p[0];if(f.length===p.length)try{for(var y=Object(c.i)(f),v=y.next();!v.done;v=y.next()){var m=v.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=y.return)&&e.call(y)}finally{if(t)throw t.error}}else if(f.length-d.length==1)if(g.id===h.id)try{for(var b=Object(c.i)(f),x=b.next();!x.done;x=b.next()){var m=x.value;u.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}else try{for(var O=Object(c.i)(f),j=O.next();!j.done;j=O.next()){var m=j.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){i={error:t}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}else try{for(var w=Object(c.i)(f),M=w.next();!M.done;M=w.next()){var m=M.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){a={error:t}}finally{try{M&&!M.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}}},e}(Iu),Ju="showRadio",th="legend-radio-tip",eh,nh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(c.c)(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t,e=this.context.event,n=this.timeStamp,r=+new Date,i=this.context.event.target;if(r-n>16&&"legend-item-radio"===i.get("name")){var o=this.location,a={x:e.x,y:e.y};this.timeStamp=r,this.location=a,o&&Object(s.H)(o,a)||this.showTooltip(a)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n,r=e.event.target;if(r&&r.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),o=i.x,a=i.y;this.tooltip.update(Object(c.a)(Object(c.a)({title:r.get("tip")},t),{x:t.x+o,y:t.y+a})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[pt.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[pt.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(th)&&document.body.removeChild(document.getElementById(th));var n=new xt({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:th});n.init(),n.setCapture(!1),this.tooltip=n},e}(Iu),rh,ih=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 Object(c.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n;return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(c.a)({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.points;Object(s.j)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(s.h)({},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}(ge);function oh(t){var e=Object(s.U)(t),n=0,r=0,i=0;if(t.length){var o=t[0];n=hn(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}}var ah,ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(c.c)(e,t),e.prototype.getMaskAttrs=function(){return oh(this.points)},e}(ih);function sh(t){return{start:Object(s.z)(t),end:Object(s.U)(t)}}function lh(t,e){var n,r,i,o;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)}}var uh,hh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(c.c)(e,t),e.prototype.getRegion=function(){return sh(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e,n;return lh(t.start,t.end)},e}(ih);function fh(t){t.x=Object(s.c)(t.x,0,1),t.y=Object(s.c)(t.y,0,1)}function ph(t,e,n,r){var i=null,o=null,a=r.invert(Object(s.z)(t)),c=r.invert(Object(s.U)(t));return n&&(fh(a),fh(c)),"x"===e?(i=r.convert({x:a.x,y:0}),o=r.convert({x:c.x,y:1})):(i=r.convert({x:0,y:a.y}),o=r.convert({x:1,y:c.y})),{start:i,end:o}}var dh,gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(c.c)(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return ph(this.points,this.dim,this.inPlot,t)},e}(hh);function yh(t){var e=[];return t.length&&(Object(s.j)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e}function vh(t){return{path:yh(t)}}var mh,bh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getMaskPath=function(){return yh(this.points)},e.prototype.getMaskAttrs=function(){return vh(this.points)},e.prototype.addPoint=function(){this.resize()},e}(ih);function xh(t){return fn(t,!0)}function Oh(t){return{path:xh(t)}}var jh,wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getMaskPath=function(){return xh(this.points)},e.prototype.getMaskAttrs=function(){return Oh(this.points)},e}(bh),Mh,Sh=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 Object(c.c)(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),n=this.context.view,r=this.context.event,i={type:this.shapeType,name:this.maskType,get:function(t){return i.hasOwnProperty(t)?i[t]:void 0}};n.emit(e,{target:i,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:r.x,y:r.y})},e.prototype.createMask=function(t){var e=this.context.view,n=this.recordPoints[t],r=this.getMaskAttrs(n),i=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(c.a)({fill:"#C5D4EB",opacity:.3},r)});this.maskShapes.push(i)},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,n=t.x-e.x,r=t.y-e.y,i=this.getCurMaskShapeIndex();i>-1&&(this.recordPoints[i].forEach((function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,r){var i=Object(s.h)({},e.getMaskAttrs(n),t);e.maskShapes[r].attr(i)}))},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 Object(c.g)([],Object(c.e)(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(c.g)(Object(c.g)([],Object(c.e)(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(c.g)(Object(c.g)([],Object(c.e)(t),!1),[n],!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 n=e.attrs,r=n.width,i=n.height,o=n.r,a;return!(0===r||0===i||0===o)&&e.isHit(t.x,t.y)}))},e}(ge),Ch,Ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(c.c)(e,t),e.prototype.getRegion=function(t){return sh(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t),n,r;return lh(e.start,e.end)},e}(Sh),Eh,kh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(c.c)(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return ph(t,this.dim,this.inPlot,e)},e}(Ah),Th,Ph=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=oh,e}return Object(c.c)(e,t),e}(Sh),Ih,Fh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=yh,e.getMaskAttrs=vh,e}return Object(c.c)(e,t),e.prototype.addPoint=function(){this.resize()},e}(Sh),Lh,Bh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=xh,e.getMaskAttrs=Oh,e}return Object(c.c)(e,t),e}(Fh),Dh,Rh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.setCursor=function(t){var e;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}(ge),_h,Nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(s.j)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Ve(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(Xe(t)){if(r){var i=n.getItemsByState("unchecked"),o=mn(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if($e(t)){var s=n.getValue(),l=Object(c.e)(s,2),u=l[0],h=l[1];this.filterView(e,r,(function(t){return t>=u&&t<=h})),e.render(!0)}}},e}(ge),zh;function Yh(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=Object(c.e)(t.range,2),s=a[0],l=a[1];if(i<s&&(i=s),o>l&&(o=l),i===l&&o===l)return null;var u=t.invert(i),h=t.invert(o);if(t.isCategory){var f=t.values.indexOf(u),p=t.values.indexOf(h),d=t.values.slice(f,p+1);return function(t){return d.includes(t)}}return function(t){return t>=u&&t<=h}}!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"}(zh||(zh={}));var Gh,Hh=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 Object(c.c)(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(qe(this.context)){var n,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,a,c={view:o,event:i.event,dims:this.dims};o.emit(zh.BEFORE_FILTER,Dr.fromData(o,zh.BEFORE_FILTER,c));var s=o.getCoordinate(),l=s.invert(e),u=s.invert(t);if(this.hasDim("x")){var h=o.getXScale(),f=Yh(h,"x",l,u);this.filterView(o,h.field,f)}if(this.hasDim("y")){var p=o.getYScales()[0],f=Yh(p,"y",l,u);this.filterView(o,p.field,f)}this.reRender(o,{source:zh.FILTER}),o.emit(zh.AFTER_FILTER,Dr.fromData(o,zh.AFTER_FILTER,c))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(zh.BEFORE_RESET,Dr.fromData(t,zh.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:zh.RESET}),t.emit(zh.AFTER_RESET,Dr.fromData(t,zh.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(ge),Vh,Wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.filterView=function(t,e,n){var r=dn(t);Object(s.j)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=dn(t);Object(s.j)(e,(function(t){t.render(!0)}))},e}(Hh),Xh,$h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.filter=function(){var t=Ve(this.context),e=this.context.view,n=en(e);if(qe(this.context)){var r=Ke(this.context,10);r&&Object(s.j)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(Xe(t)){if(o){var a=i.getItemsByState("unchecked"),l=mn(e,o),u=a.map((function(t){return t.name}));Object(s.j)(n,(function(t){var e=on(t,o),n=l.getText(e);u.indexOf(n)>=0?t.hide():t.show()}))}}else if($e(t)){var h=i.getValue(),f=Object(c.e)(h,2),p=f[0],d=f[1];Object(s.j)(n,(function(t){var e=on(t,o);e>=p&&e<=d?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=en(this.context.view);Object(s.j)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(ge),qh,Uh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(c.c)(e,t),e.prototype.filter=function(){qe(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Ke(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),o=dn(t);Object(s.j)(o,(function(t){var e=en(t);Object(s.j)(e,(function(t){var e=t.getModel().data;vn(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e,n=dn(this.context.view);Object(s.j)(n,(function(e){var n=Qe(t.context,e,10),r=en(e);n&&Object(s.j)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=dn(this.context.view);Object(s.j)(t,(function(t){var e=en(t);Object(s.j)(e,(function(t){t.show()}))}))},e}(ge),Kh=10,Zh=5,Qh,Jh=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 Object(c.c)(e,t),e.prototype.getButtonCfg=function(){return Object(s.h)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n,r=e.addShape({type:"text",name:"button-text",attrs:Object(c.a)({text:t.text},t.textStyle)}).getBBox(),i=Ar(t.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:Object(c.a)({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)});o.toBack(),e.on("mouseenter",(function(){o.attr(t.activeStyle)})),e.on("mouseleave",(function(){o.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t,e,n=this.context.view.getCoordinate().convert({x:1,y:1}),r=this.buttonGroup,i=r.getBBox(),o=et.a.transform(null,[["t",n.x-i.width-10,n.y+i.height+5]]);r.setMatrix(o)},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}(ge),tf=4,ef,nf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(c.c)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):hn(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(ge),rf=5,of,af=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 Object(c.c)(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(),n;if(hn(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var r=this.context.view,i=et.a.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);r.backgroundGroup.setMatrix(i),r.foregroundGroup.setMatrix(i),r.middleGroup.setMatrix(i)}}},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}(ge),cf="x",sf="y",lf,uf=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 Object(c.c)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){var t;this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(ge),hf,ff=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(c.c)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(s.j)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,c=o.y-i.y,l=this.context.view,u=this.dims;Object(s.j)(u,(function(e){t.translateDim(e,{x:-1*a,y:-1*c})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,c=a-o,s=n[t]*c;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+s,max:a+s})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(uf),pf,df=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(c.c)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(s.j)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,c=e.max,s=n*o,l=a-s,u=c+s,h,f=(u-l)/o;u>l&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:a-s,max:c+s})},e}(uf);function gf(t){var e;return t.gEvent.originalEvent.deltaY>0}var yf=1,vf,mf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),c=n.getOptions().data,l=Object(s.mb)(Object(s.yb)(c,a.field)),u=Object(s.mb)(a.values),h=o.getValue(),f,p=Math.floor((l-u)*h)+(gf(r)?i:-i),d=i/(l-u)/1e4,g=Object(s.c)(p/(l-u)+d,0,1);o.setValue(g)}},e}(ge),bf="aixs-description-tooltip",xf,Of=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.show=function(){var t=this.context,e,n=Ve(t).axis.cfg.title,r=n.description,i=n.text,o=n.descriptionTooltipStyle,a=t.event,c=a.x,s=a.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:i||"",customContent:function(){return'\n <div class="'.concat(pt.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(o,'}>\n <div class="').concat(pt.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n \u5b57\u6bb5\u8bf4\u660e\uff1a').concat(r,"\n </div>\n </div>\n ")},x:c,y:s}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e,n=this.context.view.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=new xt({parent:n.get("el").parentNode,region:r,visible:!1,containerId:bf,domStyles:Object(c.a)({},Object(s.h)({},(t={},t[pt.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[pt.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});i.init(),i.setCapture(!1),this.tooltip=i},e}(ge);function jf(t){return t.isInPlot()}function wf(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}ur("dark",_n(No)),C("canvas",zo),C("svg",Yo),Hr("Polygon",Pa),Hr("Interval",va),Hr("Schema",Ba),Hr("Path",Ho),Hr("Point",Ca),Hr("Line",ba),Hr("Area",Ko),Hr("Edge",ta),Hr("Heatmap",na),Hr("Violin",za),pi("base",Hi),pi("interval",lc),pi("pie",dc),pi("polar",fc),gi("overlap",Lc),gi("distribute",vc),gi("fixed-overlap",Fc),gi("hide-overlap",Qc),gi("limit-in-shape",Ec),gi("limit-in-canvas",Ac),gi("limit-in-plot",js),gi("pie-outer",Oc),gi("adjust-color",ns),gi("interval-adjust-position",as),gi("interval-hide-overlap",ss),gi("point-adjust-position",ps),gi("pie-spider",Cc),gi("path-adjust-position",ms),Jr("fade-in",ws),Jr("fade-out",Ms),Jr("grow-in-x",As),Jr("grow-in-xy",ks),Jr("grow-in-y",Es),Jr("scale-in-x",Is),Jr("scale-in-y",Fs),Jr("wave-in",_s),Jr("zoom-in",zs),Jr("zoom-out",Ys),Jr("position-update",Ps),Jr("sector-path-update",Rs),Jr("path-in",Ts),pe("rect",Js),pe("mirror",Zs),pe("list",$s),pe("matrix",Us),pe("circle",Ws),pe("tree",el),kr("axis",gl),kr("legend",Cl),kr("tooltip",Kr),kr("annotation",cl),kr("slider",El),kr("scrollbar",Ll),Oe("tooltip",zl),Oe("sibling-tooltip",Gl),Oe("ellipsis-text",Vl),Oe("element-active",Zl),Oe("element-single-active",cu),Oe("element-range-active",ru),Oe("element-highlight",gu),Oe("element-highlight-by-x",bu),Oe("element-highlight-by-color",vu),Oe("element-single-highlight",Mu),Oe("element-range-highlight",ju),Oe("element-sibling-highlight",ju,{effectSiblings:!0,effectByRecord:!0}),Oe("element-selected",Eu),Oe("element-single-selected",Tu),Oe("element-range-selected",Cu),Oe("element-link-by-color",Jl),Oe("active-region",_l),Oe("list-active",Lu),Oe("list-selected",Hu),Oe("list-highlight",Yu),Oe("list-unchecked",Wu),Oe("list-checked",Uu),Oe("list-focus",Qu),Oe("list-radio",nh),Oe("legend-item-highlight",Yu,{componentNames:["legend"]}),Oe("axis-label-highlight",Yu,{componentNames:["axis"]}),Oe("axis-description",Of),Oe("rect-mask",hh),Oe("x-rect-mask",gh,{dim:"x"}),Oe("y-rect-mask",gh,{dim:"y"}),Oe("circle-mask",ch),Oe("path-mask",bh),Oe("smooth-path-mask",wh),Oe("rect-multi-mask",Ah),Oe("x-rect-multi-mask",kh,{dim:"x"}),Oe("y-rect-multi-mask",kh,{dim:"y"}),Oe("circle-multi-mask",Ph),Oe("path-multi-mask",Fh),Oe("smooth-path-multi-mask",Bh),Oe("cursor",Rh),Oe("data-filter",Nh),Oe("brush",Hh),Oe("brush-x",Hh,{dims:["x"]}),Oe("brush-y",Hh,{dims:["y"]}),Oe("sibling-filter",Wh),Oe("sibling-x-filter",Wh,{dims:"x"}),Oe("sibling-y-filter",Wh,{dims:"y"}),Oe("element-filter",$h),Oe("element-sibling-filter",Uh),Oe("element-sibling-filter-record",Uh,{byRecord:!0}),Oe("view-drag",nf),Oe("view-move",af),Oe("scale-translate",ff),Oe("scale-zoom",df),Oe("reset-button",Jh,{name:"reset-button",text:"reset"}),Oe("mousewheel-scroll",mf),Ln("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"}]}),Ln("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"}]}),Ln("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Ln("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Ln("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Ln("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Ln("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Ln("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"]}]}),Ln("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"]}]}),Ln("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"]}]}),Ln("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"]}]}),Ln("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"]}]}),Ln("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jf,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:jf,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:jf,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"]}]}),Ln("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"]}]}),Ln("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jf,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:jf,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:jf,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Ln("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:jf,action:"path-mask:start"},{trigger:"mousedown",isEnable:jf,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"}]}),Ln("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:jf,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!Ue(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"]}]}),Ln("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Ln("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"]}]}),Ln("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Ln("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Ln("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"]}]}),Ln("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Ln("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Ln("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return wf(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!wf(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Ln("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Ln("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Mf=n(2),Sf=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],Cf;!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(Cf||(Cf={}));var Af="AntV/G2Plot";function Ef(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=0;return"".concat(Af,": ").concat(t.replace(/%s/g,(function(){return"".concat(e[r++])})))}function kf(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!t){var i=new Error(Ef.apply(void 0,Object(Mf.d)([e],n,!1)));throw i.name=Af,i}}function Tf(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e||console[t](Ef.apply(void 0,Object(Mf.d)([n],r,!1)))}function Pf(t,e){var n={};return null!==t&&"object"==typeof t&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function If(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(s.s)(t,[e]);return Object(s.M)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(s.s)(t,[e])>=0})),i=n.every((function(t){return Object(s.s)(t,[e])<=0}));return r?{min:0}:i?{max:0}:{}}function Ff(t,e,n,r,i){if(void 0===i&&(i=[]),!Array.isArray(t))return{nodes:[],links:[]};var o=[],a={},c=-1;return t.forEach((function(t){var s=t[e],l=t[n],u=t[r],h=Pf(t,i);a[s]||(a[s]=Object(Mf.a)({id:++c,name:s},h)),a[l]||(a[l]=Object(Mf.a)({id:++c,name:l},h)),o.push(Object(Mf.a)({source:a[s].id,target:a[l].id,value:u},h))})),{nodes:Object.values(a).sort((function(t,e){return t.id-e.id})),links:o}}function Lf(t,e){var n=Object(s.l)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return Tf(Cf.WARN,n.length===t.length,"illegal data existed in chart data."),n}var Bf=5,Df={}.toString,Rf=function(t,e){return Df.call(t)==="[object "+e+"]"},_f=function(t){return Rf(t,"Array")},Nf=function(t){return"object"==typeof t&&null!==t},zf=function(t){if(!Nf(t)||!Rf(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Yf=function(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];o?zf(o)?(zf(t[i])||(t[i]={}),n<r?Yf(t[i],o,n+1,r):t[i]=e[i]):_f(o)?(t[i]=[],t[i]=t[i].concat(o)):t[i]=o:t[i]=o}},Gf=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)Yf(t,e[r]);return t},Hf;function Vf(t){if(!t)return{width:0,height:0};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)}}function Wf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}function Xf(t,e){return t.geometries.find((function(t){return t.type===e}))}function $f(t){return Object(s.ib)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function qf(t){return Object(s.s)(t,["views","length"],0)<=0?$f(t):Object(s.ib)(t.views,(function(t,e){return t.concat(qf(e))}),$f(t))}function Uf(t){return Object(s.s)(t,["views","length"],0)<=0?t.geometries:Object(s.ib)(t.views,(function(t,e){return t.concat(e.geometries)}),t.geometries)}function Kf(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(t){return t.toLowerCase()})).join("-"):t;var e}function Zf(t){if(!Object(s.R)(t,"Object"))return t;var e=Object(Mf.a)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}function Qf(){return Hf||(Hf=document.createElement("canvas").getContext("2d")),Hf}var Jf=Object(s.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=void 0===r?"sans-serif":r,o=e.fontWeight,a=e.fontStyle,c=e.fontVariant,l=Qf(),u;return l.font=[a,o,c,"".concat(n,"px"),i].join(" "),l.measureText(Object(s.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Mf.d)([t],Object(s.xb)(e),!0).join("")}));function tp(t){return"number"==typeof t&&!isNaN(t)}function ep(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function np(t){if(Object(s.M)(t))return[t,t,t,t];if(Object(s.C)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function rp(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=np(t),i=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+i[0],r[1]+i[1],r[2]+i[2],r[3]+i[3]]}function ip(t){var e=t.map((function(t){return np(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}function op(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}var ap=function(t,e,n,r){var i=[],o,a,c=!!r,s,l;if(c){s=[1/0,1/0],l=[-1/0,-1/0];for(var u=0,h=t.length;u<h;u++){var f=t[u];s=et.c.min([0,0],s,f),l=et.c.max([0,0],l,f)}s=et.c.min([0,0],s,r[0]),l=et.c.max([0,0],l,r[1])}for(var u=0,p=t.length;u<p;u++){var f=t[u];if(n)o=t[u?u-1:p-1],a=t[(u+1)%p];else{if(0===u||u===p-1){i.push(f);continue}o=t[u-1],a=t[u+1]}var d=[0,0];d=et.c.sub(d,a,o),d=et.c.scale(d,d,e);var g=et.c.distance(f,o),y=et.c.distance(f,a),v=g+y;0!==v&&(g/=v,y/=v);var m=et.c.scale([0,0],d,-g),b=et.c.scale([0,0],d,y),x=et.c.add([0,0],f,m),O=et.c.add([0,0],f,b);c&&(x=et.c.max([0,0],x,s),x=et.c.min([0,0],x,l),O=et.c.max([0,0],O,s),O=et.c.min([0,0],O,l)),i.push(x),i.push(O)}return n&&i.push(i.shift()),i};function cp(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var c=ap(i,.4,r,n),s=i.length,l=[],u,h,f,o=0;o<s-1;o++)u=c[2*o],h=c[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=c[s],h=c[s+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}function sp(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return op(t,e);for(var a=0,c=t.length;a<c;a++){var s=t[a];o&&o.x===s.x&&o.y===s.y||(r.push(s.x),r.push(s.y),o=s)}var l,u=cp(r,e,n||[[0,0],[1,1]]);return u.unshift(["M",i.x,i.y]),u}function lp(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(s.s)(t,"fill")&&(e.color=t.fill);var r=Pf(t,n),i=r.shadowColor,o=r.shadowBlur,a=void 0===o?0:o,c=r.shadowOffsetX,l=void 0===c?0:c,u=r.shadowOffsetY,h=void 0===u?0:u;e["text-shadow"]="".concat([i,"".concat(l,"px"),"".concat(h,"px"),"".concat(a,"px")].join(" "));var f=Pf(t,n),p=f.stroke,d=f.lineWidth,g=void 0===d?0:d;return e["-webkit-text-stroke"]="".concat(["".concat(g,"px"),p].join(" ")),Object(s.j)(t,(function(t,r){["fontSize"].includes(r)&&Object(s.M)(t)?e[Kf(r)]="".concat(t,"px"):r&&!n.includes(r)&&(e[Kf(r)]="".concat(t))})),e}function up(t,e){t.style["pointer-events"]="none",Object(s.j)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var hp=function(t,e,n){var r=e.statistic,i=e.plotType,o=r.title,a=r.content;[o,a].forEach((function(e,r){if(e){var c="";c=0===r?a?"translate(-50%, -100%)":"translate(-50%, -50%)":o?"translate(-50%, 0)":"translate(-50%, -50%)";var l=Object(s.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(Mf.a)({position:["50%","50%"],html:function(t,r){var o=r.getCoordinate(),a=0;if("pie"===i||"ring-progress"===i)a=o.getRadius()*o.innerRadius*2;else if("liquid"===i){var u=Object(s.s)(r.geometries,[0,"elements",0,"shape"]),h,f;if(u)a=u.find((function(t){return"wrap"===t.get("name")})).getCanvasBBox().width}else a||(a=o.getWidth());up(t,Object(Mf.a)({width:"".concat(a,"px"),transform:c},lp(l)));var p=r.getData();if(e.customHtml)return e.customHtml(t,r,n,p);var d=e.content;return e.formatter&&(d=e.formatter(n,p)),d?Object(s.Q)(d)?d:"".concat(d):"<div></div>"},key:"".concat(0===r?"top":"bottom","-statistic")},Pf(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},fp=function(t,e,n){var r=e.statistic,i,o;[r.title,r.content].forEach((function(e){if(e){var r=Object(s.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(Mf.a)({position:["50%","100%"],html:function(t,i){var o=i.getCoordinate(),a=i.views[0].getCoordinate(),c=a.getCenter(),l=a.getRadius(),u=Math.max(Math.sin(a.startAngle),Math.sin(a.endAngle))*l,h=c.y+u-o.y.start-parseFloat(Object(s.s)(r,"fontSize",0)),f=o.getRadius()*o.innerRadius*2;up(t,Object(Mf.a)({width:"".concat(f,"px"),transform:"translate(-50%, ".concat(h,"px)")},lp(r)));var p=i.getData();if(e.customHtml)return e.customHtml(t,i,n,p);var d=e.content;return e.formatter&&(d=e.formatter(n,p)),d?Object(s.Q)(d)?d:"".concat(d):"<div></div>"}},Pf(e,["offsetX","offsetY","rotate","style","formatter"])))}}))};function pp(t,e){return e?Object(s.ib)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),e)}),t):t}function dp(t,e){return t.views.find((function(t){return t.id===e}))}function gp(t){var e=t.parent;return e?e.views:[]}function yp(t){return gp(t).filter((function(e){return e!==t}))}function vp(t,e,n){void 0===n&&(n=t.geometries),"boolean"==typeof e?t.animate(e):t.animate(!0),Object(s.j)(n,(function(t){var n;n=Object(s.I)(e)?e(t.type||t.shapeType,t)||!0:e,t.animate(n)}))}function mp(){return"object"==typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function bp(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=mp(),i;return n.width=t*r,n.height=e*r,n.style.width="".concat(t,"px"),n.style.height="".concat(e,"px"),n.getContext("2d").scale(r,r),n}function xp(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function Op(t,e,n){var r=t+e;return n?2*r:r}function jp(t,e){var n;return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]}function wp(t,e){var n=e*Math.PI/180,r;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}}var Mp={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function Sp(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,c=e.stroke,s=e.fillOpacity;t.beginPath(),t.globalAlpha=s,t.fillStyle=o,t.strokeStyle=c,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}function Cp(t){var e=Gf({},Mp,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=Op(n,r,i),c=jp(a,i),s=bp(a,a),l=s.getContext("2d");xp(l,e,a);for(var u=0,h=c;u<h.length;u++){var f=h[u],p,d;Sp(l,e,f[0],f[1])}var g=l.createPattern(s,"repeat");if(g){var y,v=wp(mp(),o);g.setTransform(v)}return g}var Ap={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function Ep(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}function kp(t){var e=Gf({},Ap,t),n=e.spacing,r=e.rotation,i=e.lineWidth,o=n+i||1,a=n+i||1,c="\n M 0 0 L ".concat(o," 0\n M 0 ").concat(a," L ").concat(o," ").concat(a,"\n "),s=bp(o,a),l=s.getContext("2d");xp(l,e,o,a),Ep(l,e,c);var u=l.createPattern(s,"repeat");if(u){var h,f=wp(mp(),r);u.setTransform(f)}return u}var Tp={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function Pp(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,c=e.lineWidth,s=e.fillOpacity;t.globalAlpha=s,t.strokeStyle=i,t.lineWidth=c,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function Ip(t){var e=Gf({},Tp,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=Op(n,r,i),c=jp(a,i),s=bp(a,a),l=s.getContext("2d");xp(l,e,a);for(var u=0,h=c;u<h.length;u++){var f=h[u],p,d;Pp(l,e,f[0],f[1])}var g=l.createPattern(s,"repeat");if(g){var y,v=wp(mp(),o);g.setTransform(v)}return g}function Fp(t){var e=t.type,n=t.cfg,r;switch(e){case"dot":r=Cp(n);break;case"line":r=kp(n);break;case"square":r=Ip(n)}return r}function Lp(t){var e=this;return function(n){var r,i=n.options,o=n.chart,a=i.pattern;if(!a)return n;var c=function(n){for(var r,c,l,u=[],h=1;h<arguments.length;h++)u[h-1]=arguments[h];var f=o.getTheme().defaultColor,p=f,d=null===(c=null===(r=o.geometries)||void 0===r?void 0:r[0])||void 0===c?void 0:c.getAttribute("color");if(d){var g=d.getFields()[0],y=Object(s.s)(n,g);p=mo.getMappingValue(d,y,(null===(l=d.values)||void 0===l?void 0:l[0])||f)}var v=a;"function"==typeof a&&(v=a.call(e,n,p)),v instanceof CanvasPattern==!1&&(v=Fp(Gf({},{cfg:{backgroundColor:p}},v)));var m=i[t];return Object(Mf.a)(Object(Mf.a)({},"function"==typeof m?m.call.apply(m,Object(Mf.d)([e,n],u,!1)):m||{}),{fill:v||p})};return Gf({},n,{options:(r={},r[t]=c,r)})}}function Bp(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t}function Dp(t){var e=t.chart,n,r=t.options.tooltip;return void 0!==r&&e.tooltip(r),t}function Rp(t){var e=t.chart,n,r=t.options.interactions;return Object(s.j)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function _p(t){var e,n,r;return vp(t.chart,t.options.animation),t}function Np(t){var e=t.chart,n,r=t.options.theme;return r&&e.theme(r),t}function zp(t){var e=t.chart,n,r=t.options.state;return r&&Object(s.j)(e.geometries,(function(t){t.state(r)})),t}function Yp(t){var e=t.chart,n,r=t.options.slider;return e.option("slider",r),t}function Gp(t){var e=t.chart,n,r=t.options.scrollbar;return e.option("scrollbar",r),t}function Hp(t,e){return function(n){var r=n.chart,i=n.options,o={};return Object(s.j)(t,(function(t,e){o[e]=Pf(t,Sf)})),o=Gf({},e,i.meta,o),r.scale(o),n}}function Vp(t){return function(e){var n=e.chart,r=e.options,i=n.getController("annotation");return Object(s.j)(Object(Mf.d)(Object(Mf.d)([],r.annotations||[],!0),t||[],!0),(function(t){i.annotation(t)})),e}}function Wp(t){var e=t.chart,n=t.options,r=n.yAxis,i=n.limitInPlot,o=i;return Object(s.O)(r)&&Object(s.K)(i)&&(o=!!Object.values(Pf(r,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(s.K)(t)}))),e.limitInPlot=o,t}function Xp(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,r,i=e.options.coordinate,o=Array.from(i||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==o.length&&n.coordinate({type:t,actions:o}),e}}var $p={locale:"en-US"};function qp(t){Object(s.j)(t,(function(t,e){return $p[e]=t}))}var Up={};function Kp(t,e){Up[t]=e}function Zp(t){return{get:function(e,n){return pp(Object(s.s)(Up[t],e)||Object(s.s)(Up[$p.locale],e)||Object(s.s)(Up["en-US"],e)||e,n)}}}var Qp={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},Jp={locale:"zh-CN",general:{increase:"\u589e\u52a0",decrease:"\u51cf\u5c11",root:"\u521d\u59cb"},statistic:{total:"\u603b\u8ba1"},conversionTag:{label:"\u8f6c\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603b\u8ba1"}};function td(t,e){if(!1===t)return{fields:!1};var n=Object(s.s)(t,"fields"),r=Object(s.s)(t,"formatter");return r&&!n&&(n=e),{fields:n,formatter:r}}function ed(t,e){var n=t.type,r=t.xField,i=t.yField,o=t.colorField,a=t.shapeField,c=t.sizeField,l=t.styleField,u=t.rawFields,h=[];if(u=(Object(s.I)(u)?u(n,e):u)||[],"color"===e)h=Object(Mf.d)([o||r],u,!0);else if("shape"===e)h=Object(Mf.d)([a||r],u,!0);else if("size"===e)h=Object(Mf.d)([c||r],u,!0);else{h=Object(Mf.d)([r,i,o,a,c,l],u,!0);var f=["x","y","color","shape","size","style"].indexOf(e),p=h[f];h.splice(f,1),h.unshift(p)}var d=Object(s.ub)(h.filter((function(t){return!!t}))),g="line"===n&&[r,i].includes(d.join("*"))?"":d.join("*");return{mappingFields:d,tileMappingField:g}}function nd(t,e){if(e)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};return t.forEach((function(t,e){i[t]=n[e]})),delete i[void 0],e(i)}}function rd(t){var e=t.chart,n=t.options,r=n.type,i=n.args,o=n.mapping,a=n.xField,c=n.yField,l=n.colorField,u=n.shapeField,h=n.sizeField,f=n.tooltipFields,p=n.label,d=n.state,g=n.customInfo;if(!o)return t;var y=o.color,v=o.shape,m=o.size,b=o.style,x=o.tooltip,O=e[r](i).position("".concat(a,"*").concat(c));if(Object(s.Q)(y))l?O.color(l,y):O.color(y);else if(Object(s.I)(y)){var j=ed(n,"color"),w=j.mappingFields,M=j.tileMappingField;O.color(M,nd(w,y))}else l&&O.color(l,y);if(Object(s.Q)(v))u?O.shape(u,[v]):O.shape(v);else if(Object(s.I)(v)){var S=ed(n,"shape"),w=S.mappingFields,M=S.tileMappingField;O.shape(M,nd(w,v))}else u&&O.shape(u,v);if(Object(s.M)(m))h?O.size(h,m):O.size(m);else if(Object(s.I)(m)){var C=ed(n,"size"),w=C.mappingFields,M=C.tileMappingField;O.size(M,nd(w,m))}else h&&O.size(h,m);if(Object(s.I)(b)){var A=ed(n,"style"),w=A.mappingFields,M=A.tileMappingField;O.style(M,nd(w,b))}else Object(s.O)(b)&&O.style(b);if(!1===f?O.tooltip(!1):Object(s.G)(f)||O.tooltip(f.join("*"),nd(f,x)),!1===p)O.label(!1);else if(p){var E=p.callback,k=p.fields,T=Object(Mf.c)(p,["callback","fields"]);O.label({fields:k||[c],callback:E,cfg:Zf(T)})}return d&&O.state(d),g&&O.customInfo(g),[a,c].filter((function(t){return t!==l})).forEach((function(t){e.legend(t,!1)})),Object(Mf.a)(Object(Mf.a)({},t),{ext:{geometry:O}})}function id(t){var e=t.options,n=e.area,r=e.xField,i=e.yField,o=e.seriesField,a=e.smooth,c=e.tooltip,l=e.useDeferredLabel,u=td(c,[r,i,o]),h=u.fields,f=u.formatter;return n?rd(Gf({},t,{options:{type:"area",colorField:o,tooltipFields:h,mapping:Object(s.h)({shape:a?"smooth":"area",tooltip:f},n),args:{useDeferredLabel:l}}})):t}function od(t){var e=t.options,n=e.edge,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,s=td(a,[r,i,o]),l=s.fields,u=s.formatter;return n?rd(Gf({},t,{options:{type:"edge",colorField:o,tooltipFields:l,mapping:Object(Mf.a)({tooltip:u},n),args:{useDeferredLabel:c}}})):t}function ad(t){var e=t.chart,n=t.options,r=t.ext,i=n.seriesField,o=n.isGroup,a=n.isStack,c=n.marginRatio,l=n.widthRatio,u=n.groupField,h=n.theme,f=[],p;(i&&(o&&f.push({type:"dodge",dodgeBy:u||i,marginRatio:c}),a&&f.push({type:"stack",marginRatio:c})),f.length&&(null==r?void 0:r.geometry))&&(null==r?void 0:r.geometry).adjust(f);return Object(s.K)(l)||e.theme(Gf({},Object(s.O)(h)?h:lr(h),{columnWidthRatio:l})),t}function cd(t){var e=t.options,n=e.xField,r=e.yField,i=e.interval,o=e.seriesField,a=e.tooltip,c=e.minColumnWidth,s=e.maxColumnWidth,l=e.columnBackground,u=e.dodgePadding,h=e.intervalPadding,f=e.useDeferredLabel,p=td(a,[n,r,o]),d=p.fields,g=p.formatter,y=(i?rd(Gf({},t,{options:{type:"interval",colorField:o,tooltipFields:d,mapping:Object(Mf.a)({tooltip:g},i),args:{dodgePadding:u,intervalPadding:h,minColumnWidth:c,maxColumnWidth:s,background:l,useDeferredLabel:f}}})):t).ext;return ad(Object(Mf.a)(Object(Mf.a)({},t),{ext:y}))}function sd(t){var e=t.options,n=e.line,r=e.stepType,i=e.xField,o=e.yField,a=e.seriesField,c=e.smooth,l=e.connectNulls,u=e.tooltip,h=e.useDeferredLabel,f=td(u,[i,o,a]),p=f.fields,d=f.formatter;return n?rd(Gf({},t,{options:{type:"line",colorField:a,tooltipFields:p,mapping:Object(s.h)({shape:r||(c?"smooth":"line"),tooltip:d},n),args:{connectNulls:l,useDeferredLabel:h}}})):t}function ld(t){var e=t.options,n=e.point,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c=e.shapeField,s=e.tooltip,l=e.useDeferredLabel,u=td(s,[r,i,o,a,c]),h=u.fields,f=u.formatter;return n?rd(Gf({},t,{options:{type:"point",colorField:o,shapeField:c,tooltipFields:h,mapping:Object(Mf.a)({tooltip:f},n),args:{useDeferredLabel:l}}})):t}function ud(t){var e=t.options,n=e.polygon,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,s=td(a,[r,i,o]),l=s.fields,u=s.formatter;return n?rd(Gf({},t,{options:{type:"polygon",colorField:o,tooltipFields:l,mapping:Object(Mf.a)({tooltip:u},n),args:{useDeferredLabel:c}}})):t}function hd(t){var e=t.options,n=e.schema,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,s=td(a,[r,i,o]),l=s.fields,u=s.formatter;return n?rd(Gf({},t,{options:{type:"schema",colorField:o,tooltipFields:l,mapping:Object(Mf.a)({tooltip:u},n),args:{useDeferredLabel:c}}})):t}function fd(t){var e=t.options,n=e.violin,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c,s=td(e.tooltip,[r,i,o,a]),l=s.fields,u=s.formatter;return n?rd(Gf({},t,{options:{type:"violin",colorField:o,tooltipFields:l,mapping:Object(Mf.a)({tooltip:u},n)}})):t}var pd=n(97),dd="data-chart-source-type",gd=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],yd=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"==typeof e?document.getElementById(e):e,r.options=Gf({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(Mf.b)(e,t),e.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}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,r=t.defaultInteractions;this.chart=new Xr(Object(Mf.a)(Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Pf(this.options,gd)),{defaultInteractions:r})),this.container.setAttribute(dd,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=Vf(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Gf({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=qf(this.chart);Object(s.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=qf(this.chart),e=[];return Object(s.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(s.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(Mf.d)([],t,!0),r=e.getController("annotation"),i=r.getComponents().map((function(t){return t.extra}));r.clear(!0);for(var o=function(t){var e=i[t],o=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==o&&(e=Gf({},e,n[o]),n.splice(o,1)),r.annotation(e)},a=0;a<i.length;a++)o(a);n.forEach((function(t){return r.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var r=function(r){var i=n[r];t.find((function(t){return t.id&&t.id===i.id}))||e.annotation(i)},i=0;i<n.length;i++)r(i);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(dd)},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit,n;(void 0===e||e)&&(this.unbind=Object(pd.bind)(this.container,(function(){var e=Vf(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(I.a);function vd(t,e,n,r){var i=Object(s.ib)(t,(function(t,r){var i=r[n],o=t.has(i)?t.get(i):0,a=r[e];return o=tp(a)?o+a:o,t.set(i,o),t}),new Map);return Object(s.W)(t,(function(t){var o,a=t[e],c=t[n],s=tp(a)&&0!==i.get(c)?a/i.get(c):0;return Object(Mf.a)(Object(Mf.a)({},t),((o={})[r]=s,o))}))}function md(t,e,n,r){var i=Object(s.ib)(t,(function(t,r){var i=Object(s.ib)(n,(function(t,e){return"".concat(t).concat(r[e])}),""),o=t.has(i)?t.get(i):0,a=r[e];return o=tp(a)?o+a:o,t.set(i,o),t}),new Map);return Object(s.W)(t,(function(t){var o,a=t[e],c=Object(s.ib)(n,(function(e,n){return"".concat(e).concat(t[n])}),""),l=tp(a)&&0!==i.get(c)?a/i.get(c):0;return Object(Mf.a)(Object(Mf.a)({},t),((o={})[r]=l,o))}))}function bd(t,e,n,r,i){return i?vd(t,e,n,r):t}function xd(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.lineShape,c=n.point,s=n.area,l=n.seriesField,u=null==c?void 0:c.state,h=null==s?void 0:s.state;e.data(r);var f=Gf({},t,{options:{shapeField:l,line:{color:i,style:o,shape:a},point:c&&Object(Mf.a)({color:i,shape:"circle"},c),area:s&&Object(Mf.a)({color:i},s),label:void 0}}),p=Gf({},f,{options:{tooltip:!1,state:u}}),d=Gf({},f,{options:{tooltip:!1,state:h}});return sd(f),ld(p),id(d),t}function Od(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,c=r.yField,s=r.data;return Wf(Hp(((e={})[a]=i,e[c]=o,e),((n={})[a]={type:"cat"},n[c]=If(s,c),n)))(t)}function jd(t){var e=t.chart,n,r=t.options.reflect;if(r){var i=r;Object(s.C)(i)||(i=[i]);var o=i.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:o})}return t}function wd(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function Md(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function Sd(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Xf(e,"line");if(r){var a=r.fields,c=r.callback,s=Object(Mf.c)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:Object(Mf.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Zf(s))})}else o.label(!1);return t}function Cd(t){var e=t.chart,n,r;return t.options.isStack&&Object(s.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Ad(t){return Wf(xd,Od,Cd,Np,jd,wd,Md,Dp,Sd,Yp,Gp,Rp,_p,Vp(),Wp)(t)}function Ed(t){var e=t.chart,n=t.options,r=n.data,i=n.areaStyle,o=n.areaShape,a=n.color,c=n.point,l=n.line,u=n.isPercent,h=n.xField,f=n.yField,p=n.tooltip,d=n.seriesField,g=n.startOnZero,y=null==c?void 0:c.state,v=bd(r,f,h,f,u);e.data(v);var m=u?Object(Mf.a)({formatter:function(t){return{name:t[d]||t[h],value:(100*Number(t[f])).toFixed(2)+"%"}}},p):p,b=Gf({},t,{options:{area:{color:a,style:i,shape:o},point:c&&Object(Mf.a)({color:a},c),tooltip:m,label:void 0,args:{startOnZero:g}}}),x={chart:e,options:Gf({line:{size:2}},Object(s.gb)(n,["state"]),{line:l&&Object(Mf.a)({color:a},l),sizeField:d,state:null==l?void 0:l.state,tooltip:!1,label:void 0,args:{startOnZero:g}})},O=Gf({},b,{options:{tooltip:!1,state:y}});return id(b),sd(x),ld(O),t}function kd(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Xf(e,"area");if(r){var a=r.fields,c=r.callback,s=Object(Mf.c)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:Object(Mf.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Zf(s))})}else o.label(!1);return t}function Td(t){var e=t.chart,n=t.options,r=n.isStack,i=n.isPercent,o=n.seriesField;return(i||r)&&o&&Object(s.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Pd(t){return Wf(Np,Lp("areaStyle"),Xp("rect"),Ed,Od,Td,wd,Md,Dp,kd,Yp,Vp(),Rp,_p,Wp)(t)}var Id=Gf({},yd.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),Fd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Id},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,o=this,a,c;Od({chart:o.chart,options:o.options}),this.chart.changeData(bd(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return Pd},e}(yd),Ld=10,Bd=5,Dd={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},Rd;function _d(t){return t.isInPlot()}function Nd(t,e,n){var r=n||{},i=r.mask,o=r.isStartEnable,a=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||_d,action:["brush:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:_d,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:_d,action:["brush:filter","brush:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide"),"brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!o&&!o(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||_d,action:["brush-x:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:_d,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:_d,action:["brush-x:filter","brush-x:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||_d,action:["brush-y:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:_d,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:_d,action:["brush-y:filter","brush-y:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};default:return{}}}Oe("brush-reset-button",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(Mf.a)({name:"button"},Dd),e}return Object(Mf.b)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(s.s)(t,["interactions","filter-action","cfg","buttonConfig"]);return Gf(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:Object(Mf.a)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,r=this.getButtonCfg(),i=np(r.padding),o=t.addShape({type:"rect",name:"button-rect",attrs:Object(Mf.a)({x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2]},null===(n=r.buttonStyle)||void 0===n?void 0:n.default)});return o.toBack(),t.on("mouseenter",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.default)})),o},e.prototype.resetPosition=function(){var t,e,n=this.context.view.getCoordinate().convert({x:1,y:1}),r=this.buttonGroup,i=r.getBBox(),o=mo.transform(null,[["t",n.x-i.width-10,n.y+i.height+5]]);r.setMatrix(o)},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}(ge),{name:"brush-reset-button"}),Ln("filter-action",{}),Ln("brush",Nd("brush")),Ln("brush-highlight",Nd("brush-highlight")),Ln("brush-x",Nd("brush-x","x-rect")),Ln("brush-y",Nd("brush-y","y-rect")),Ln("brush-x-highlight",Nd("brush-x-highlight","x-rect")),Ln("brush-y-highlight",Nd("brush-y-highlight","y-rect"));var zd=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function Yd(t){var e=t.options,n=e.brush,r=Object(s.l)(e.interactions||[],(function(t){return-1===zd.indexOf(t.type)}));return(null==n?void 0:n.enabled)&&(zd.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var i={type:t,enable:e};n&&(i.cfg=Nd(t,n.type,n)),r.push(i)})),"highlight"!==(null==n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Gf({},t,{options:{interactions:r}})}var Gd={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},Hd=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function Vd(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r,i=e.options.connectedArea,o=function(){n.removeInteraction(Gd.hover),n.removeInteraction(Gd.click)};if(!t&&i){var a=i.trigger||"hover";o(),n.interaction(Gd[a],{start:Hd(a,i.style)})}else o();return e}}function Wd(t,e){return Object(s.M)(t)&&Object(s.M)(e)?0===t&&0===e?"-":t===e?"100%":0===t?"\u221e":"".concat((100*e/t).toFixed(2),"%"):"-"}function Xd(t,e){return Gf({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:Wd}},t)}function $d(t,e){return Object(s.W)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function qd(t,e,n){var r=t.view,i=t.geometry,o=t.group,a=t.options,c=t.horizontal,s=a.offset,l=a.size,u=a.arrow,h=r.getCoordinate(),f=$d(h,e)[3],p=$d(h,n)[0],d=p.y-f.y,g=p.x-f.x;if("boolean"!=typeof u){var y=u.headSize,v=a.spacing,m;c?(g-y)/2<v?(v=Math.max(1,(g-y)/2),m=[[f.x+v,f.y-s],[f.x+v,f.y-s-l],[p.x-v,p.y-s-l/2]]):m=[[f.x+v,f.y-s],[f.x+v,f.y-s-l],[p.x-v-y,p.y-s-l],[p.x-v,p.y-s-l/2],[p.x-v-y,p.y-s]]:(d-y)/2<v?(v=Math.max(1,(d-y)/2),m=[[f.x+s,f.y+v],[f.x+s+l,f.y+v],[p.x+s+l/2,p.y-v]]):m=[[f.x+s,f.y+v],[f.x+s+l,f.y+v],[p.x+s+l,p.y-v-y],[p.x+s+l/2,p.y-v],[p.x+s,p.y-v-y]],o.addShape("polygon",{id:"".concat(r.id,"-conversion-tag-arrow-").concat(i.getElementId(e.getModel().mappingData)),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:Object(Mf.a)(Object(Mf.a)({},u.style||{}),{points:m})})}}function Ud(t,e,n){var r,i,o,a=t.view,c=t.geometry,s=t.group,l=t.options,u=t.field,h=t.horizontal,f=l.offset,p=l.size;if("boolean"!=typeof l.text){var d=a.getCoordinate(),g=(null===(r=l.text)||void 0===r?void 0:r.formatter)&&(null===(i=l.text)||void 0===i?void 0:i.formatter(e.getData()[u],n.getData()[u])),y=$d(d,e)[h?3:0],v=$d(d,n)[h?0:3],m=s.addShape("text",{id:"".concat(a.id,"-conversion-tag-text-").concat(c.getElementId(e.getModel().mappingData)),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:Object(Mf.a)(Object(Mf.a)({},(null===(o=l.text)||void 0===o?void 0:o.style)||{}),{text:g,x:h?(y.x+v.x)/2:y.x+f+p/2,y:h?y.y-f-p/2:(y.y+v.y)/2})});if(h){var b=v.x-y.x,x=m.getBBox().width;if(x>b){var O=x/g.length,j=Math.max(1,Math.ceil(b/O)-1),w="".concat(g.slice(0,j),"...");m.attr("text",w)}}}}function Kd(t,e,n){qd(t,e,n),Ud(t,e,n)}function Zd(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(r){var i=r.options,o=r.chart,a=i.conversionTag,c=i.theme;return a&&!n&&(o.theme(Gf({},Object(s.O)(c)?c:lr(c),{columnWidthRatio:1/3})),o.annotation().shape({render:function(n,r){var i=n.addGroup({id:"".concat(o.id,"-conversion-tag-group"),name:"conversion-tag-group"}),c=Object(s.m)(o.geometries,(function(t){return"interval"===t.type})),l={view:r,geometry:c,group:i,field:t,horizontal:e,options:Xd(a,e)},u=c.elements;Object(s.j)(u,(function(t,e){e>0&&Kd(l,u[e-1],t)}))}})),r}}function Qd(t){var e=t.options,n=e.legend,r=e.seriesField,i=e.isStack;return r?!1!==n&&(n=Object(Mf.a)({position:i?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function Jd(t){var e=t.chart,n=t.options,r=n.data,i=n.columnStyle,o=n.color,a=n.columnWidthRatio,c=n.isPercent,s=n.isGroup,l=n.isStack,u=n.xField,h=n.yField,f=n.seriesField,p=n.groupField,d=n.tooltip,g=n.shape,y=c&&s&&l?md(r,h,[u,p],h):bd(r,h,u,h,c),v=[];l&&f&&!s?y.forEach((function(t){var e=v.find((function(e){return e[u]===t[u]&&e[f]===t[f]}));e?e[h]+=t[h]||0:v.push(Object(Mf.a)({},t))})):v=y,e.data(v);var m=c?Object(Mf.a)({formatter:function(t){var e;return{name:s&&l?"".concat(t[f]," - ").concat(t[p]):null!==(e=t[f])&&void 0!==e?e:t[u],value:(100*Number(t[h])).toFixed(2)+"%"}}},d):d,b=Gf({},t,{options:{data:v,widthRatio:a,tooltip:m,interval:{shape:g,style:i,color:o}}});return cd(b),b}function tg(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,c=r.yField,s=r.data,l,u=r.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Wf(Hp(((e={})[a]=i,e[c]=o,e),((n={})[a]={type:"cat"},n[c]=Object(Mf.a)(Object(Mf.a)({},If(s,c)),u),n)))(t)}function eg(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function ng(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function rg(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=n.isRange,a=Xf(e,"interval");if(r){var c=r.callback,s=Object(Mf.c)(r,["callback"]);a.label({fields:[i],callback:c,cfg:Object(Mf.a)({layout:(null==s?void 0:s.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Zf(o?Object(Mf.a)({content:function(t){var e;return null===(e=t[i])||void 0===e?void 0:e.join("-")}},s):s))})}else a.label(!1);return t}function ig(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.isGroup,o=n.isStack,a=n.groupField,c=n.data,l=n.xField,u=n.yField,h=n.seriesField;if(!1===r)e.tooltip(!1);else{var f=r;if(i&&o){var p=f.customItems,d=(null==f?void 0:f.formatter)||function(t){return{name:"".concat(t[h]," - ").concat(t[a]),value:t[u]}};f=Object(Mf.a)(Object(Mf.a)({},f),{customItems:function(t){var e=[];return Object(s.j)(t,(function(t){var n;Object(s.l)(c,(function(e){return Object(s.J)(e,Pf(t.data,[l,h]))})).forEach((function(n){e.push(Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},t),{value:n[u],data:n,mappingData:{_origin:n}}),d(n)))}))})),p?p(e):e}})}e.tooltip(f)}return t}function og(t,e){void 0===e&&(e=!1);var n=t.options,r=n.seriesField;return Wf(Qd,Np,Lp("columnStyle"),zp,Xp("rect"),Jd,tg,eg,ng,ig,Yp,Gp,rg,Yd,Rp,_p,Vp(),Zd(n.yField,!e,!!r),Vd(!n.isStack),Wp)(t)}function ag(t){var e=t.options,n=e.xField,r=e.yField,i=e.xAxis,o=e.yAxis,a={left:"bottom",right:"top",top:"left",bottom:"right"},c=!1!==o&&Object(Mf.a)({position:a[(null==o?void 0:o.position)||"left"]},o),s=!1!==i&&Object(Mf.a)({position:a[(null==i?void 0:i.position)||"bottom"]},i);return Object(Mf.a)(Object(Mf.a)({},t),{options:Object(Mf.a)(Object(Mf.a)({},e),{xField:r,yField:n,xAxis:c,yAxis:s})})}function cg(t){var e,n=t.options.label;return n&&!n.position&&(n.position="left",n.layout||(n.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),Gf({},t,{options:{label:n}})}function sg(t){var e=t.options,n=e.seriesField,r=e.isStack,i=e.legend;return n?!1!==i&&(i=Object(Mf.a)({position:r?"top-left":"right-top"},i||{})):i=!1,Gf({},t,{options:{legend:i}})}function lg(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return Gf({},t,{options:{coordinate:n}})}function ug(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.barWidthRatio,o=n.minBarWidth,a=n.maxBarWidth,c=n.barBackground;return og({chart:e,options:Object(Mf.a)(Object(Mf.a)({},n),{columnStyle:r,columnWidthRatio:i,minColumnWidth:o,maxColumnWidth:a,columnBackground:c})},!0)}function hg(t){return Wf(ag,cg,sg,Dp,lg,ug)(t)}Ln(Gd.hover,{start:Hd(Gd.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Ln(Gd.click,{start:Hd(Gd.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var fg=Gf({},yd.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),pg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return fg},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var r=this,i=r.chart,o=r.options,a=o.isPercent,c=o.xField,s=o.yField,l=o.xAxis,u=o.yAxis,h;c=(e=[s,c])[0],s=e[1],l=(n=[u,l])[0],u=n[1],tg({chart:i,options:Object(Mf.a)(Object(Mf.a)({},o),{xField:c,yField:s,yAxis:u,xAxis:l})}),i.changeData(bd(t,c,s,c,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return hg},e}(yd),dg=Gf({},yd.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),gg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return dg},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,o=this,a,c;tg({chart:o.chart,options:o.options}),this.chart.changeData(bd(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return og},e}(yd),yg,vg="$$percentage$$",mg="$$mappingValue$$",bg="$$conversion$$",xg="$$totalPercentage$$",Og="$$x$$",jg="$$y$$",wg={appendPadding:[0,80],minSize:0,maxSize:1,meta:(yg={},yg.$$mappingValue$$={min:0,max:1,nice:!1},yg),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},Mg="CONVERSION_TAG_NAME";function Sg(t,e,n){var r=[],i=n.yField,o=n.maxSize,a=n.minSize,c=Object(s.s)(Object(s.Z)(e,i),[i]),l=Object(s.M)(o)?o:1,u=Object(s.M)(a)?a:0;return r=Object(s.W)(t,(function(e,n){var r=(e[i]||0)/c;return e[vg]=r,e.$$mappingValue$$=(l-u)*r+u,e[bg]=[Object(s.s)(t,[n-1,i]),e[i]],e}))}function Cg(t){return function(e){var n=e.chart,r=e.options,i=r.conversionTag,o,a=r.filteredData||n.getOptions().data;if(i){var c=i.formatter;a.forEach((function(e,r){if(!(r<=0||Number.isNaN(e.$$mappingValue$$))){var o=t(e,r,a,{top:!0,name:Mg,text:{content:Object(s.I)(c)?c(e,a):c,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:Object(Mf.a)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(o)}}))}return e}}function Ag(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o,a,c,s=Sg(i,i,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(s),t}function Eg(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,c=n.label,l=n.shape,u=void 0===l?"funnel":l,h=n.funnelStyle,f=n.state,p=td(a,[r,i]),d=p.fields,g=p.formatter,y;return rd({chart:e,options:{type:"interval",xField:r,yField:"$$mappingValue$$",colorField:r,tooltipFields:Object(s.C)(d)&&d.concat([vg,bg]),mapping:{shape:u,tooltip:g,color:o,style:h},label:c,state:f}}),Xf(t.chart,"interval").adjust("symmetric"),t}function kg(t){var e=t.chart,n,r=t.options.isTransposed;return e.coordinate({type:"rect",actions:r?[]:[["transpose"],["scale",1,-1]]}),t}function Tg(t){var e=t.options,n=t.chart,r=e.maxSize,i=Object(s.s)(n,["geometries","0","dataArray"],[]),o=Object(s.s)(n,["options","data","length"]),a=Object(s.W)(i,(function(t){return Object(s.s)(t,["0","nextPoints","0","x"])*o-.5})),c;return Cg((function(t,e,n,i){var o=r-(r-t.$$mappingValue$$)/2;return Object(Mf.a)(Object(Mf.a)({},i),{start:[a[e-1]||e-.5,o],end:[a[e-1]||e-.5,o+.05]})}))(t),t}function Pg(t){return Wf(Ag,Eg,kg,Tg)(t)}function Ig(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function Fg(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.color,c=n.compareField,l=n.isTransposed,u=n.tooltip,h=n.maxSize,f=n.minSize,p=n.label,d=n.funnelStyle,g=n.state,y=n.showFacetTitle;return e.facet("mirror",{fields:[c],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(t,e){var n=l?e.rowIndex:e.columnIndex;l||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var y=Sg(e.data,r,{yField:o,maxSize:h,minSize:f});t.data(y);var v=td(u,[i,o,c]),m=v.fields,b=v.formatter,x=l?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};rd({chart:t,options:{type:"interval",xField:i,yField:"$$mappingValue$$",colorField:i,tooltipFields:Object(s.C)(m)&&m.concat([vg,bg]),mapping:{shape:"funnel",tooltip:b,color:a,style:d},label:!1!==p&&Gf({},x,p),state:g}})}}),t}function Lg(t){var e=t.chart,n=t.index,r=t.options,i=r.conversionTag,o=r.isTransposed;(Object(s.M)(n)?[e]:e.views).forEach((function(t,e){var a=Object(s.s)(t,["geometries","0","dataArray"],[]),c=Object(s.s)(t,["options","data","length"]),l=Object(s.W)(a,(function(t){return Object(s.s)(t,["0","nextPoints","0","x"])*c-.5})),u;Cg((function(t,r,a,c){var s=0===(n||e)?-1:1;return Gf({},c,{start:[l[r-1]||r-.5,t.$$mappingValue$$],end:[l[r-1]||r-.5,t.$$mappingValue$$+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==i?s*i.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})}))(Gf({},{chart:t,options:r}))}))}function Bg(t){var e;return t.chart.once("beforepaint",(function(){return Lg(t)})),t}function Dg(t){return Wf(Ig,Fg,Bg)(t)}function Rg(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=Object(s.ib)(i,(function(t,e){return t+(e[o]||0)}),0),c=Object(s.Z)(i,o)[o],l=Object(s.W)(i,(function(t,e){var n=[],r=[];if(t[xg]=(t[o]||0)/a,e){var l=i[e-1].$$x$$,u=i[e-1].$$y$$;n[0]=l[3],r[0]=u[3],n[1]=l[2],r[1]=u[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[xg],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t.$$x$$=n,t.$$y$$=r,t[vg]=(t[o]||0)/c,t[bg]=[Object(s.s)(i,[e-1,o]),t[o]],t}));return e.data(l),t}function _g(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,c=n.label,l=n.funnelStyle,u=n.state,h=td(a,[r,i]),f=h.fields,p=h.formatter;return rd({chart:e,options:{type:"polygon",xField:"$$x$$",yField:"$$y$$",colorField:r,tooltipFields:Object(s.C)(f)&&f.concat([vg,bg]),label:c,state:u,mapping:{tooltip:p,color:o,style:l}}}),t}function Ng(t){var e=t.chart,n,r=t.options.isTransposed;return e.coordinate({type:"rect",actions:r?[["transpose"],["reflect","x"]]:[]}),t}function zg(t){var e;return Cg((function(t,e,n,r){return Object(Mf.a)(Object(Mf.a)({},r),{start:[t.$$x$$[1],t.$$y$$[1]],end:[t.$$x$$[1]+.05,t.$$y$$[1]]})}))(t),t}function Yg(t){return Wf(Rg,_g,Ng,zg)(t)}function Gg(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function Hg(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],showTitle:o,eachView:function(e,n){Pg(Gf({},t,{chart:e,options:{data:n.data}}))}}),t}function Vg(t){return Wf(Gg,Hg)(t)}var Wg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rendering=!1,e}return Object(Mf.b)(e,t),e.prototype.change=function(t){var e=this;if(!this.rendering){var n=t.seriesField,r=t.compareField,i=r?Lg:Tg,o=this.context.view,a=n||r?o.views:[o];Object(s.W)(a,(function(n,r){var o=n.getController("annotation"),a=Object(s.l)(Object(s.s)(o,["option"],[]),(function(t){var e;return t.name!==Mg}));o.clear(!0),Object(s.j)(a,(function(t){"object"==typeof t&&n.annotation()[t.type](t)}));var c=Object(s.s)(n,["filteredData"],n.getOptions().data);i({chart:n,index:r,options:Object(Mf.a)(Object(Mf.a)({},t),{filteredData:Sg(c,c,t)})}),n.filterData(c),e.rendering=!0,n.render(!0)}))}this.rendering=!1},e}(ge),Xg="funnel-conversion-tag",$g="funnel-afterrender",qg={trigger:"afterrender",action:"".concat(Xg,":change")};function Ug(t){var e=t.options,n=e.compareField,r=e.xField,i=e.yField,o=e.locale,a=e.funnelStyle,c=e.data,l=Zp(o),u,h;return(n||a)&&(h=function(t){return Gf({},n&&{lineWidth:1,stroke:"#fff"},Object(s.I)(a)?a(t):a)}),Gf({options:{label:n?{fields:[r,i,n,vg,bg],formatter:function(t){return"".concat(t[i])}}:{fields:[r,i,vg,bg],offset:0,position:"middle",formatter:function(t){return"".concat(t[r]," ").concat(t[i])}},tooltip:{title:r,formatter:function(t){return{name:t[r],value:t[i]}}},conversionTag:{formatter:function(t){return"".concat(l.get(["conversionTag","label"]),": ").concat(Wd.apply(void 0,t[bg]))}}}},t,{options:{funnelStyle:h,data:Object(s.e)(c)}})}function Kg(t){var e=t.options,n=e.compareField,r=e.dynamicHeight,i;return e.seriesField?Vg(t):n?Dg(t):r?Yg(t):Pg(t)}function Zg(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Wf(Hp(((e={})[o]=r,e[a]=i,e)))(t)}function Qg(t){var e;return t.chart.axis(!1),t}function Jg(t){var e=t.chart,n,r=t.options.legend;return!1===r?e.legend(!1):e.legend(r),t}function ty(t){var e=t.chart,n=t.options,r=n.interactions,i=n.dynamicHeight;return Object(s.j)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),i?e.removeInteraction("funnel-afterrender"):e.interaction("funnel-afterrender",{start:[Object(Mf.a)(Object(Mf.a)({},qg),{arg:n})]}),t}function ey(t){return Wf(Ug,Kg,Zg,Qg,Dp,ty,Jg,_p,Np,Vp())(t)}Oe(Xg,Wg),Ln("funnel-afterrender",{start:[qg]});var ny=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return wg},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ey},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=qf(this.chart);Object(s.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=qf(this.chart),e=[];return Object(s.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(s.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=bg,e.PERCENT_FIELD=vg,e.TOTAL_PERCENT_FIELD=xg,e}(yd),ry,iy="range",oy="type",ay="percent",cy="#f0f0f0",sy="indicator-view",ly="range-view",uy={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(ry={},ry.range={sync:"v"},ry[ay]={sync:"v",tickCount:5,tickInterval:.2},ry),animation:!1};function hy(t,e){return t.map((function(n,r){var i;return(i={}).range=n-(t[r-1]||0),i.type="".concat(r),i[ay]=e,i}))}function fy(t){var e;return[(e={},e[ay]=Object(s.c)(t,0,1),e)]}function py(t,e){var n=Object(s.s)(e,["ticks"],[]),r=Object(s.mb)(n)?Object(s.ub)(n):[0,Object(s.c)(t,0,1),1];return r[0]||r.shift(),hy(r,t)}function dy(t){var e=t.chart,n=t.options,r=n.percent,i=n.range,o=n.radius,a=n.innerRadius,c=n.startAngle,l=n.endAngle,u=n.axis,h=n.indicator,f=n.gaugeStyle,p=n.type,d=n.meter,g=i.color,y=i.width;if(h){var v=fy(r),m=e.createView({id:"indicator-view"});m.data(v),m.point().position("".concat(ay,"*1")).shape(h.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:h}),m.coordinate("polar",{startAngle:c,endAngle:l,radius:a*o}),m.axis(ay,u),m.scale(ay,Pf(u,Sf))}var b=py(r,n.range),x=e.createView({id:"range-view"});x.data(b);var O=Object(s.Q)(g)?[g,"#f0f0f0"]:g,j,w;return cd({chart:x,options:{xField:"1",yField:"range",seriesField:"type",rawFields:[ay],isStack:!0,interval:{color:O,style:f,shape:"meter"===p?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext.geometry.customInfo({meter:d}),x.coordinate("polar",{innerRadius:a,radius:o,startAngle:c,endAngle:l}).transpose(),t}function gy(t){var e;return Wf(Hp(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[ay]={},e)))(t)}function yy(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent;if(n.getController("annotation").clear(!0),i){var a=i.content,c=void 0;a&&(c=Gf({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},a)),fp(n,{statistic:Object(Mf.a)(Object(Mf.a)({},i),{content:c})},{percent:o})}return e&&n.render(!0),t}function vy(t){var e=t.chart,n,r=t.options.tooltip;return r?e.tooltip(Gf({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=Object(s.s)(e,[0,"data",ay],0);return"".concat((100*n).toFixed(2),"%")}},r)):e.tooltip(!1),t}function my(t){var e;return t.chart.legend(!1),t}function by(t){return Wf(Np,_p,dy,gy,vy,yy,Rp,Vp(),my)(t)}xi("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,i=n.defaultColor,o=r,a=o.pointer,c=o.pin,s=e.addGroup(),l=this.parsePoint({x:0,y:0});return a&&s.addShape("line",{name:"pointer",attrs:Object(Mf.a)({x1:l.x,y1:l.y,x2:t.x,y2:t.y,stroke:i},a.style)}),c&&s.addShape("circle",{name:"pin",attrs:Object(Mf.a)({x:l.x,y:l.y,stroke:i},c.style)}),s}}),xi("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,r=void 0===n?{}:n,i=r.steps,o=void 0===i?50:i,a=r.stepRatio,c=void 0===a?.5:a;o=o<1?1:o,c=Object(s.c)(c,0,1);var l=this.coordinate,u=l.startAngle,h=l.endAngle,f=0,p;c>0&&c<1&&(f=(h-u)/o/(c/(1-c)+1-1/o));for(var d=f/(1-c)*c,g=e.addGroup(),y=this.coordinate.getCenter(),v=this.coordinate.getRadius(),m=mo.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,O=b;O<x;){var j=void 0,w=(O-u)%(d+f);j=w<d?O+(d-w):(O+=d+f-w)+d;var M=mo.getSectorPath(y.x,y.y,v,O,Math.min(j,x),v*this.coordinate.innerRadius);g.addShape("path",{name:"meter-gauge",attrs:{path:M,fill:t.color,stroke:t.color,lineWidth:.5}}),O=j+f}return g}});var xy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return uy},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Dr.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return"indicator-view"===t.id}));e&&e.data(fy(t));var n=this.chart.views.find((function(t){return"range-view"===t.id}));n&&n.data(py(t,this.options.range)),yy({chart:this.chart,options:this.options},!0),this.chart.emit(g.AFTER_CHANGE_DATA,Dr.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return by},e}(yd);function Oy(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function jy(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function wy(t,e,n,r,i){var o=Object(s.e)(t);Object(s.ob)(o,e);var a=Object(s.yb)(o,e),c=Object(s.u)(a),l=c.max-c.min,u=n;if(!n&&r&&(u=r>1?l/(r-1):c.max),!n&&!r){var h=jy(a);u=l/h}var f={},p=Object(s.w)(o,i);Object(s.G)(p)?Object(s.j)(o,(function(t){var n,i=Oy(t[e],u,r),o="".concat(i[0],"-").concat(i[1]);Object(s.y)(f,o)||(f[o]={range:i,count:0}),f[o].count+=1})):Object.keys(p).forEach((function(t){Object(s.j)(p[t],(function(n){var o,a=Oy(n[e],u,r),c="".concat(a[0],"-").concat(a[1]),l="".concat(c,"-").concat(t);Object(s.y)(f,l)||(f[l]={range:a,count:0},f[l][i]=t),f[l].count+=1}))}));var d=[];return Object(s.j)(f,(function(t){d.push(t)})),d}var My="range",Sy="count",Cy=Gf({},yd.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function Ay(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,a=n.binWidth,c=n.color,s=n.stackField,l=n.legend,u=n.columnStyle,h=wy(r,i,a,o,s),f;return e.data(h),cd(Gf({},t,{options:{xField:"range",yField:"count",seriesField:s,isStack:!0,interval:{color:c,style:u}}})),l&&s?e.legend(s,l):e.legend(!1),t}function Ey(t){var e,n=t.options,r=n.xAxis,i=n.yAxis;return Wf(Hp(((e={}).range=r,e.count=i,e)))(t)}function ky(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis("range",!1):e.axis("range",r),!1===i?e.axis("count",!1):e.axis("count",i),t}function Ty(t){var e=t.chart,n,r=t.options.label,i=Xf(e,"interval");if(r){var o=r.callback,a=Object(Mf.c)(r,["callback"]);i.label({fields:["count"],callback:o,cfg:Zf(a)})}else i.label(!1);return t}function Py(t){return Wf(Np,Lp("columnStyle"),Ay,Ey,ky,zp,Ty,Dp,Rp,_p)(t)}var Iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Cy},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,o=e.stackField;this.chart.changeData(wy(t,n,i,r,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Py},e}(yd),Fy=Gf({},yd.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),Ly;Oe("marker-active",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));Object(s.j)(r,(function(t){Object(s.j)(t.elements,(function(t){var e=-1!==Object(s.n)(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t,e=this.getView().geometries.filter((function(t){return"point"===t.type}));Object(s.j)(e,(function(t){Object(s.j)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(ge)),Ln("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var By=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Fy},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n,r;Od({chart:e.chart,options:e.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ad},e}(yd),Dy=Gf({},yd.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),Ry=[1,0,0,0,1,0,0,0,1];function _y(t,e){var n=e?Object(Mf.d)([],e,!0):Object(Mf.d)([],Ry,!0);return mo.transform(n,t)}var Ny=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.getActiveElements=function(){var t=mo.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,i=n.get("field"),o;if(i)return e.geometries[0].elements.filter((function(t){return t.getModel().data[i]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements(),n;return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return Object(s.H)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var i=n[r],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=mo.getAngle(e.getModel(),o),c,s,l=(a.startAngle+a.endAngle)/2,u=t,h=u*Math.cos(l),f=u*Math.sin(l);e.shape.setMatrix(_y([["t",h,f]])),i.setMatrix(_y([["t",h,f]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(ge);function zy(t){var e,n,r=t.event.target;return r&&(n=r.get("element")),n}var Yy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.getAnnotations=function(t){var e;return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var i=Object(s.s)(r,["data","data"]);if(r.type.match("legend-item")){var o=mo.getDelegationObject(this.context),a=n.getGroupedFields()[0];if(o&&a){var c=o.item;i=n.getData().find((function(t){return t[a]===c.value}))}}if(i){var l=Object(s.s)(t,"annotations",[]),u=Object(s.s)(t,"statistic",{});n.getController("annotation").clear(!0),Object(s.j)(l,(function(t){"object"==typeof t&&n.annotation()[t.type](t)})),hp(n,{statistic:u,plotType:"pie"},i),n.render(!0)}var h=zy(this.context);h&&h.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,e;t.getController("annotation").clear(!0);var n=this.getInitialAnnotation();Object(s.j)(n,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(ge),Gy="pie-statistic";function Hy(t,e){var n=null;return Object(s.j)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}function Vy(t,e){var n;switch(t){case"inner":return n="-30%",Object(s.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(s.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function Wy(t,e){return Object(s.k)(Lf(t,e),(function(t){return 0===t[e]}))}function Xy(t){var e=t.chart,n=t.options,r=n.data,i=n.angleField,o=n.colorField,a=n.color,c=n.pieStyle,s=n.shape,l=Lf(r,i);if(Wy(l,i)){var u="$$percentage$$",h;l=l.map((function(t){var e;return Object(Mf.a)(Object(Mf.a)({},t),((e={}).$$percentage$$=1/l.length,e))})),e.data(l),cd(h=Gf({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:o,isStack:!0,interval:{color:a,shape:s,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}else{var h;e.data(l),cd(h=Gf({},t,{options:{xField:"1",yField:i,seriesField:o,isStack:!0,interval:{color:a,shape:s,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}return t}function $y(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=Gf({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function qy(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function Uy(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=n.angleField,a=e.geometries[0];if(r){var c=r.callback,l,u=Zf(Object(Mf.c)(r,["callback"]));if(u.content){var h=u.content;u.content=function(t,n,r){var a=t[i],c=t[o],l=e.getScaleByField(o),u=null==l?void 0:l.scale(c);return Object(s.I)(h)?h(Object(Mf.a)(Object(Mf.a)({},t),{percent:u}),n,r):Object(s.Q)(h)?pp(h,{value:c,name:a,percentage:Object(s.M)(u)&&!Object(s.K)(c)?"".concat((100*u).toFixed(2),"%"):null}):h}}var f={inner:"",outer:"pie-outer",spider:"pie-spider"},p=u.type?f[u.type]:"pie-outer",d=u.layout?Object(s.C)(u.layout)?u.layout:[u.layout]:[];u.layout=(p?[{type:p}]:[]).concat(d),a.label({fields:i?[o,i]:[o],callback:c,cfg:Object(Mf.a)(Object(Mf.a)({},u),{offset:Vy(u.type,u.offset),type:"pie"})})}else a.label(!1);return t}function Ky(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,i=t.colorField,o=t.meta,a,c=Zp(t.locale);if(e&&n){var l=Gf({},Dy.statistic,n),u=l.title,h=l.content;return!1!==u&&(u=Gf({},{formatter:function(t){var e=t?t[i]:Object(s.K)(u.content)?c.get(["statistic","total"]):u.content,n;return(Object(s.s)(o,[i,"formatter"])||function(t){return t})(e)}},u)),!1!==h&&(h=Gf({},{formatter:function(t,e){var n=t?t[r]:Hy(e,r),i=Object(s.s)(o,[r,"formatter"])||function(t){return t};return t||Object(s.K)(h.content)?i(n):h.content}},h)),Gf({},{statistic:{title:u,content:h}},t)}return t}function Zy(t){var e=t.chart,n,r=Ky(t.options),i=r.innerRadius,o=r.statistic;return e.getController("annotation").clear(!0),Wf(Vp())(t),i&&o&&hp(e,{statistic:o,plotType:"pie"}),t}function Qy(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.colorField,o=n.angleField,a=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(Gf({},r,{shared:!1})),Wy(a,o)){var c=Object(s.s)(r,"fields"),l=Object(s.s)(r,"formatter");Object(s.G)(Object(s.s)(r,"fields"))&&(c=[i,o],l=l||function(t){return{name:t[i],value:Object(s.tb)(t[o])}}),e.geometries[0].tooltip(c.join("*"),nd(c,l))}return t}function Jy(t){var e=t.chart,n,r=Ky(t.options),i=r.interactions,o=r.statistic,a=r.annotations;return Object(s.j)(i,(function(t){var n,r;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var i=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(i=[{trigger:"element:mouseenter",action:"".concat(Gy,":change"),arg:{statistic:o,annotations:a}}]),Object(s.j)(null===(r=t.cfg)||void 0===r?void 0:r.start,(function(t){i.push(Object(Mf.a)(Object(Mf.a)({},t),{arg:{statistic:o,annotations:a}}))})),e.interaction(t.type,Gf({},t.cfg,{start:i}))}else e.interaction(t.type,t.cfg||{})})),t}function tv(t){return Wf(Lp("pieStyle"),Xy,$y,Np,qy,Bp,Qy,Uy,zp,Zy,Jy,_p)(t)}Oe(Gy,Yy),Ln("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Oe("pie-legend",Ny),Ln("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Dy},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Dr.fromData(this.chart,g.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=Lf(e.data,n),i=Lf(t,n);Wy(r,n)||Wy(i,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(i),Zy({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(g.AFTER_CHANGE_DATA,Dr.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return tv},e}(yd),nv=["#FAAD14","#E8EDF3"],rv={percent:.2,color:nv,animation:{}};function iv(t){var e=Object(s.c)(tp(t)?t:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function ov(t){var e=t.chart,n=t.options,r=n.percent,i=n.progressStyle,o=n.color,a=n.barWidthRatio,c;return e.data(iv(r)),cd(Gf({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:a,interval:{style:i,color:Object(s.Q)(o)?[o,nv[1]]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function av(t){var e;return t.chart.coordinate("rect").transpose(),t}function cv(t){return Wf(ov,Hp({}),av,_p,Np,Vp())(t)}var sv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return rv},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(iv(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return cv},e}(yd);function lv(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function uv(t,e){var n=t.chart,r=t.options,i=r.innerRadius,o=r.statistic,a=r.percent,c=r.meta;if(n.getController("annotation").clear(!0),i&&o){var l=Object(s.s)(c,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},u=o.content;u&&(u=Gf({},u,{content:Object(s.K)(u.content)?l(a):u.content})),hp(n,{statistic:Object(Mf.a)(Object(Mf.a)({},o),{content:u}),plotType:"ring-progress"},{percent:a})}return e&&n.render(!0),t}function hv(t){return Wf(ov,Hp({}),lv,uv,_p,Np,Vp())(t)}var fv={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},pv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return fv},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Dr.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(iv(t)),uv({chart:this.chart,options:this.options},!0),this.chart.emit(g.AFTER_CHANGE_DATA,Dr.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return hv},e}(yd),dv=n(37),gv={exp:dv.regressionExp,linear:dv.regressionLinear,loess:dv.regressionLoess,log:dv.regressionLog,poly:dv.regressionPoly,pow:dv.regressionPow,quad:dv.regressionQuad};function yv(t,e){var n=10,r;return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}var vv=function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,a=n.getScaleByField(i),c=n.getScaleByField(o),s;return sp(t.map((function(t){return n.getCoordinate().convert({x:a.scale(t[0]),y:c.scale(t[1])})})),!1)},mv=function(t){var e=t.options,n=e.xField,r=e.yField,i=e.data,o=e.regressionLine,a=o.type,c=void 0===a?"linear":a,l=o.algorithm,u=o.equation,h,f=null,p;l?(h=Object(s.C)(l)?l:l(i),f=u):f=xv(c,h=gv[c]().x((function(t){return t[n]})).y((function(t){return t[r]}))(i));return[vv(h,t),f]},bv=function(t){var e,n=t.meta,r=void 0===n?{}:n,i=t.xField,o=t.yField,a=t.data,c=a[0][i],l=a[0][o],u=c>0,h=l>0;function f(t,e){var n=Object(s.s)(r,[t]);function i(t){return Object(s.s)(n,t)}var o={};return"x"===e?(Object(s.M)(c)&&(Object(s.M)(i("min"))||(o.min=u?0:2*c),Object(s.M)(i("max"))||(o.max=u?2*c:0)),o):(Object(s.M)(l)&&(Object(s.M)(i("min"))||(o.min=h?0:2*l),Object(s.M)(i("max"))||(o.max=h?2*l:0)),o)}return Object(Mf.a)(Object(Mf.a)({},r),((e={})[i]=Object(Mf.a)(Object(Mf.a)({},r[i]),f(i,"x")),e[o]=Object(Mf.a)(Object(Mf.a)({},r[o]),f(o,"y")),e))};function xv(t,e){var n,r,i,o=function(t,e){return void 0===e&&(e=4),Math.round(t*Math.pow(10,e))/Math.pow(10,e)},a=function(t){return Number.isFinite(t)?o(t):"?"};switch(t){case"linear":return"y = ".concat(a(e.a),"x + ").concat(a(e.b),", R^2 = ").concat(a(e.rSquared));case"exp":return"y = ".concat(a(e.a),"e^(").concat(a(e.b),"x), R^2 = ").concat(a(e.rSquared));case"log":return"y = ".concat(a(e.a),"ln(x) + ").concat(a(e.b),", R^2 = ").concat(a(e.rSquared));case"quad":return"y = ".concat(a(e.a),"x^2 + ").concat(a(e.b),"x + ").concat(a(e.c),", R^2 = ").concat(a(e.rSquared));case"poly":for(var c="y = ".concat(a(null===(n=e.coefficients)||void 0===n?void 0:n[0])," + ").concat(a(null===(r=e.coefficients)||void 0===r?void 0:r[1]),"x + ").concat(a(null===(i=e.coefficients)||void 0===i?void 0:i[2]),"x^2"),s=3;s<e.coefficients.length;++s)c+=" + ".concat(a(e.coefficients[s]),"x^").concat(s);return"".concat(c,", R^2 = ").concat(a(e.rSquared));case"pow":return"y = ".concat(a(e.a),"x^").concat(a(e.b),", R^2 = ").concat(a(e.rSquared))}return null}function Ov(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,a=!0,c=n[0],s=void 0,l=1;l<n.length&&(s=n[l],c[r]!==s[r]&&(o=!1),c[i]!==s[i]&&(a=!1),o||a);l++)c=s;var u=[];o&&u.push(r),a&&u.push(i);var h=Pf(bv(t),u);return Gf({},t,{meta:h})}return t}function jv(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.color,a=n.shape,c=n.pointStyle,l=n.shapeField,u=n.colorField,h=n.xField,f=n.yField,p=n.sizeField,d=n.size,g=n.tooltip;p&&(d||(d=[2,8]),Object(s.M)(d)&&(d=[d,d])),g&&!g.fields&&(g=Object(Mf.a)(Object(Mf.a)({},g),{fields:[h,f,u,p,l]})),e.data(r),ld(Gf({},t,{options:{seriesField:u,point:{color:o,shape:a,size:d,style:c},tooltip:g}}));var y=Xf(e,"point");return i&&y.adjust(i),t}function wv(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=Ov(n);return Wf(Hp(((e={})[o]=r,e[a]=i,e)))(Gf({},t,{options:c}))}function Mv(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function Sv(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,c=n.shapeLegend,s=n.sizeLegend,l=!1!==r;return i&&e.legend(i,!!l&&r),o&&(c?e.legend(o,c):e.legend(o,!1!==c&&r)),a&&e.legend(a,s||!1),l||c||s||e.legend(!1),t}function Cv(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Xf(e,"point");if(r){var a=r.callback,c=Object(Mf.c)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Zf(c)})}else o.label(!1);return t}function Av(t){var e,n=t.options.quadrant,r=[];if(n){var i=n.xBaseline,o=void 0===i?0:i,a=n.yBaseline,c=void 0===a?0:a,s=n.labels,l=n.regionStyle,u=n.lineStyle,h=yv(o,c),f;new Array(4).join(",").split(",").forEach((function(t,e){r.push(Object(Mf.a)(Object(Mf.a)({type:"region",top:!1},h.regionStyle[e].position),{style:Gf({},h.regionStyle[e].style,null==l?void 0:l[e])}),Object(Mf.a)({type:"text",top:!0},Gf({},h.labelStyle[e],null==s?void 0:s[e])))})),r.push({type:"line",top:!1,start:["min",c],end:["max",c],style:Gf({},h.lineStyle,u)},{type:"line",top:!1,start:[o,"min"],end:[o,"max"],style:Gf({},h.lineStyle,u)})}return Wf(Vp(r))(t)}function Ev(t){var e=t.options,n=t.chart,r=e.regressionLine;if(r){var i=r.style,o=r.equationStyle,a=void 0===o?{}:o,c=r.top,s=void 0!==c&&c,l=r.showEquation,u=void 0!==l&&l,h={stroke:"#9ba29a",lineWidth:2,opacity:.5},f={x:20,y:20,textAlign:"left",textBaseline:"middle",fontSize:14,fillOpacity:.5};n.annotation().shape({top:s,render:function(t,r){var o=t.addGroup({id:"".concat(n.id,"-regression-line"),name:"regression-line-group"}),c=mv({view:r,options:e}),s=c[0],l=c[1];o.addShape("path",{name:"regression-line",attrs:Object(Mf.a)(Object(Mf.a)({path:s},h),i)}),u&&o.addShape("text",{name:"regression-equation",attrs:Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},f),a),{text:l})})}})}return t}function kv(t){var e=t.chart,n,r=t.options.tooltip;return r?e.tooltip(r):!1===r&&e.tooltip(!1),t}function Tv(t){return Wf(jv,wv,Mv,Sv,kv,Cv,Yd,Yp,Gp,Rp,Av,_p,Np,Ev)(t)}var Pv=Gf({},yd.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});Ln("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var Iv=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="scatter",r.on(g.BEFORE_RENDER,(function(t){var e,n,i=r,o=i.options,a=i.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===zh.FILTER){var c=r.chart.filterData(r.chart.getData());wv({chart:a,options:Object(Mf.a)(Object(Mf.a)({},o),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===zh.RESET&&wv({chart:a,options:o})})),r}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Pv},e.prototype.changeData=function(t){this.updateOption(Ov(Gf({},this.options,{data:t})));var e=this,n=e.options,r;wv({chart:e.chart,options:n}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return Tv},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(yd),Fv="$$stock-range$$",Lv="trend",Bv="up",Dv="down",Rv={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},_v=Gf({},yd.getDefaultOptions(),{tooltip:Rv,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function Nv(t,e){return Object(s.W)(t,(function(t){var n=t&&Object(Mf.a)({},t);if(Object(s.C)(e)&&n){var r=e[0],i=e[1],o=e[2],a=e[3];n.trend=n[r]<=n[i]?"up":"down",n[Fv]=[n[r],n[i],n[o],n[a]]}return n}))}function zv(t){var e=t.chart,n=t.options,r=n.yField,i=n.data,o=n.risingFill,a=n.fallingFill,c=n.tooltip,s=n.stockStyle;e.data(Nv(i,r));var l=c;return!1!==l&&(l=Gf({},{fields:r},l)),hd(Gf({},t,{options:{schema:{shape:"candle",color:[o,a],style:s},yField:Fv,seriesField:"trend",rawFields:r,tooltip:l}})),t}function Yv(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,c=i.yAxis,s=i.xField,l=((e={})[s]={type:"timeCat",tickCount:6},e.trend={values:["up","down"]},e),u=Gf(l,o,((n={})[s]=Pf(a,Sf),n[Fv]=Pf(c,Sf),n));return r.scale(u),t}function Gv(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(Fv,!1):e.axis(Fv,i),t}function Hv(t){var e=t.chart,n,r=t.options.tooltip;return!1!==r?e.tooltip(r):e.tooltip(!1),t}function Vv(t){var e=t.chart,n,r=t.options.legend;return r?e.legend("trend",r):!1===r&&e.legend(!1),t}function Wv(t){Wf(Np,zv,Yv,Gv,Hv,Vv,Rp,_p,Vp(),Yp)(t)}var Xv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return _v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Wv},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(Nv(t,e))},e}(yd);function $v(t){return Object(s.W)(t||[],(function(t,e){return{x:"".concat(e),y:t}}))}var qv="x",Uv="y",Kv={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(s.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},Zv={appendPadding:2,tooltip:Object(Mf.a)({},Kv),animation:{}};function Qv(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.areaStyle,a=n.point,c=n.line,s=null==a?void 0:a.state,l=$v(r);e.data(l);var u=Gf({},t,{options:{xField:"x",yField:"y",area:{color:i,style:o},line:c,point:a}}),h=Gf({},u,{options:{tooltip:!1}}),f=Gf({},u,{options:{tooltip:!1,state:s}});return id(u),sd(h),ld(f),e.axis(!1),e.legend(!1),t}function Jv(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a,c=$v(r.data);return Wf(Hp(((e={}).x=i,e.y=o,e),((n={}).x={type:"cat"},n.y=If(c,"y"),n)))(t)}function tm(t){return Wf(Lp("areaStyle"),Qv,Jv,Dp,Np,_p,Vp())(t)}var em={appendPadding:2,tooltip:Object(Mf.a)({},Kv),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},nm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return em},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r;Jv({chart:n,options:e.options}),n.changeData($v(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return tm},e}(yd);function rm(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.columnStyle,a=n.columnWidthRatio,c=$v(r),s;return e.data(c),cd(Gf({},t,{options:{xField:"x",yField:"y",widthRatio:a,interval:{style:o,color:i}}})),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function im(t){return Wf(Np,Lp("columnStyle"),rm,Jv,Dp,_p,Vp())(t)}var om={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(s.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},am={appendPadding:2,tooltip:Object(Mf.a)({},om),animation:{}},cm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return am},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r;Jv({chart:n,options:e.options}),n.changeData($v(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return im},e}(yd);function sm(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.point,c=null==a?void 0:a.state,s=$v(r);e.data(s);var l=Gf({},t,{options:{xField:"x",yField:"y",line:{color:i,style:o},point:a}}),u=Gf({},l,{options:{tooltip:!1,state:c}});return sd(l),ld(u),e.axis(!1),e.legend(!1),t}function lm(t){return Wf(sm,Jv,Np,Dp,_p,Vp())(t)}var um=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Zv},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r;Jv({chart:n,options:e.options}),n.changeData($v(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return lm},e}(yd),hm={line:Ad,pie:tv,column:og,bar:hg,area:Pd,gauge:by,"tiny-line":lm,"tiny-column":im,"tiny-area":tm,"ring-progress":hv,progress:cv,scatter:Tv,histogram:Py,funnel:ey,stock:Wv},fm={line:By,pie:ev,column:gg,bar:pg,area:Fd,gauge:xy,"tiny-line":um,"tiny-column":cm,"tiny-area":nm,"ring-progress":pv,progress:sv,scatter:Iv,histogram:Iy,funnel:ny,stock:Xv},pm={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}},dm;function gm(t,e,n){var r=fm[t],i;r?(0,hm[t])({chart:e,options:Gf({},r.getDefaultOptions(),Object(s.s)(pm,t,{}),n)}):console.error("could not find ".concat(t," plot"))}function ym(t){var e=t.chart,n=t.options,r=n.views,i=n.legend;return Object(s.j)(r,(function(t){var n=t.region,r=t.data,i=t.meta,o=t.axes,a=t.coordinate,c=t.interactions,l=t.annotations,u=t.tooltip,h=t.geometries,f=e.createView({region:n});f.data(r);var p={};o&&Object(s.j)(o,(function(t,e){p[e]=Pf(t,Sf)})),p=Gf({},i,p),f.scale(p),o?Object(s.j)(o,(function(t,e){f.axis(e,t)})):f.axis(!1),f.coordinate(a),Object(s.j)(h,(function(t){var e=rd({chart:f,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(s.j)(c,(function(t){!1===t.enable?f.removeInteraction(t.type):f.interaction(t.type,t.cfg)})),Object(s.j)(l,(function(t){f.annotation()[t.type](Object(Mf.a)({},t))})),"boolean"==typeof t.animation?f.animate(!1):(f.animate(!0),Object(s.j)(f.geometries,(function(e){e.animate(t.animation)}))),u&&(f.interaction("tooltip"),f.tooltip(u))})),i?Object(s.j)(i,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function vm(t){var e=t.chart,n=t.options,r=n.plots,i=n.data,o=void 0===i?[]:i;return Object(s.j)(r,(function(t){var n=t.type,r=t.region,i=t.options,a=void 0===i?{}:i,c=t.top,s=a.tooltip;if(c)gm(n,e,Object(Mf.a)(Object(Mf.a)({},a),{data:o}));else{var l=e.createView(Object(Mf.a)({region:r},Pf(a,gd)));s&&l.interaction("tooltip"),gm(n,l,Object(Mf.a)({data:o},a))}})),t}function mm(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function bm(t){return Wf(_p,ym,vm,Rp,_p,Np,Dp,mm,Vp())(t)}function xm(t,e){var n,r=t.getModel().data,i;return i=Object(s.C)(r)?r[0][e]:r[e]}function Om(t){var e=$f(t);Object(s.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}Oe("association",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,i=e||{},o=i.linkField,a=i.dim,c=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var l=r.data.data;Object(s.j)(t,(function(t){var e,n,r=o;if("x"===a?r=t.getXScale().field:"y"===a?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var i=Object(s.W)($f(t),(function(e){var n=!1,i=!1,o=Object(s.C)(l)?Object(s.s)(l[0],r):Object(s.s)(l,r);return xm(e,r)===o?n=!0:i=!0,{element:e,view:t,active:n,inactive:i}}));c.push.apply(c,i)}}))}return c},e.prototype.showTooltip=function(t){var e=yp(this.context.view),n=this.getAssociationItems(e,t);Object(s.j)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=yp(this.context.view);Object(s.j)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=gp(this.context.view),n=this.getAssociationItems(e,t);Object(s.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=gp(this.context.view),n=this.getAssociationItems(e,t);Object(s.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=gp(this.context.view),n=this.getAssociationItems(e,t);Object(s.j)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=gp(this.context.view);Object(s.j)(t,(function(t){Om(t)}))},e}(ge)),Ln("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ln("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ln("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ln("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var jm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(Mf.b)(e,t),e.prototype.getSchemaAdaptor=function(){return bm},e}(yd),wm;function Mm(t,e){console.warn(t===wm.DEV?"Plot '".concat(e,"' is in DEV stage, just give us issues."):t===wm.BETA?"Plot '".concat(e,"' is in BETA stage, DO NOT use it in production env."):t===wm.STABLE?"Plot '".concat(e,"' is in STABLE stage, import it by \"import { ").concat(e," } from '@antv/g2plot'\"."):"invalid Stage type.")}!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(wm||(wm={}));var Sm=function(){function t(){}return Object.defineProperty(t,"MultiView",{get:function(){return Mm(wm.STABLE,"MultiView"),jm},enumerable:!1,configurable:!0}),t}(),Cm="first-axes-view",Am="second-axes-view",Em="series-field-key";function km(t,e,n,r,i){var o=[];e.forEach((function(e){r.forEach((function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var a=Object.values(Object(s.w)(o,n)),c=a[0],l=void 0===c?[]:c,u=a[1],h=void 0===u?[]:u;return i?[l.reverse(),h.reverse()]:[l,h]}function Tm(t){return"vertical"!==t}function Pm(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,c=t.__axisPosition,s=c.layout,l=c.position;if(Tm(s)&&"top"===l&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),Tm(s)&&"bottom"===l&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!Tm(s)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!Tm(s)&&"top"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,0,u),i.autoPadding=n.instance(0,a.right,o.top,u)}}function Im(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.color,c=n.barStyle,s=n.widthRatio,l=n.legend,u=n.layout,h=km(i,o,Em,r,Tm(u)),f,p;l?e.legend(Em,l):!1===l&&e.legend(!1);var d=h[0],g=h[1],y,v;return Tm(u)?((f=e.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:Cm})).coordinate().transpose().reflect("x"),(p=e.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:Am})).coordinate().transpose(),f.data(d),p.data(g)):(f=e.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:Cm}),(p=e.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:Am})).coordinate().reflect("y"),f.data(d),p.data(g)),cd(Gf({},t,{chart:f,options:{widthRatio:s,xField:i,yField:o[0],seriesField:Em,interval:{color:a,style:c}}})),cd(Gf({},t,{chart:p,options:{xField:i,yField:o[1],seriesField:Em,widthRatio:s,interval:{color:a,style:c}}})),t}function Fm(t){var e,n,r,i=t.options,o=t.chart,a=i.xAxis,c=i.yAxis,l=i.xField,u=i.yField,h=dp(o,Cm),f=dp(o,Am),p={};return Object(s.T)((null==i?void 0:i.meta)||{}).map((function(t){Object(s.s)(null==i?void 0:i.meta,[t,"alias"])&&(p[t]=i.meta[t].alias)})),o.scale(((e={})[Em]={sync:!0,formatter:function(t){return Object(s.s)(p,t,t)}},e)),Hp(((n={})[l]=a,n[u[0]]=c[u[0]],n))(Gf({},t,{chart:h})),Hp(((r={})[l]=a,r[u[1]]=c[u[1]],r))(Gf({},t,{chart:f})),t}function Lm(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=n.layout,s=dp(e,Cm),l=dp(e,Am);return"bottom"===(null==r?void 0:r.position)?l.axis(o,Object(Mf.a)(Object(Mf.a)({},r),{label:{formatter:function(){return""}}})):l.axis(o,!1),!1===r?s.axis(o,!1):s.axis(o,Object(Mf.a)({position:Tm(c)?"top":"bottom"},r)),!1===i?(s.axis(a[0],!1),l.axis(a[1],!1)):(s.axis(a[0],i[a[0]]),l.axis(a[1],i[a[1]])),e.__axisPosition={position:s.getOptions().axes[o].position,layout:c},t}function Bm(t){var e=t.chart;return Rp(Gf({},t,{chart:dp(e,Cm)})),Rp(Gf({},t,{chart:dp(e,Am)})),t}function Dm(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Wp(Gf({},t,{chart:dp(e,Cm),options:{yAxis:i[r[0]]}})),Wp(Gf({},t,{chart:dp(e,Am),options:{yAxis:i[r[1]]}})),t}function Rm(t){var e=t.chart;return Np(Gf({},t,{chart:dp(e,Cm)})),Np(Gf({},t,{chart:dp(e,Am)})),Np(t),t}function _m(t){var e=t.chart;return _p(Gf({},t,{chart:dp(e,Cm)})),_p(Gf({},t,{chart:dp(e,Am)})),t}function Nm(t){var e=this,n,r,i=t.chart,o=t.options,a=o.label,c=o.yField,s=o.layout,l=dp(i,Cm),u=dp(i,Am),h=Xf(l,"interval"),f=Xf(u,"interval");if(a){var p=a.callback,d=Object(Mf.c)(a,["callback"]);d.position||(d.position="middle"),void 0===d.offset&&(d.offset=2);var g=Object(Mf.a)({},d);if(Tm(s)){var y=(null===(n=g.style)||void 0===n?void 0:n.textAlign)||("middle"===d.position?"center":"left");d.style=Gf({},d.style,{textAlign:y});var v={left:"right",right:"left",center:"center"};g.style=Gf({},g.style,{textAlign:v[y]})}else{var m={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof d.position?d.position=m[d.position]:"function"==typeof d.position&&(d.position=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return m[d.position.apply(e,t)]});var b=(null===(r=g.style)||void 0===r?void 0:r.textBaseline)||"bottom";g.style=Gf({},g.style,{textBaseline:b});var x={top:"bottom",bottom:"top",middle:"middle"};d.style=Gf({},d.style,{textBaseline:x[b]})}h.label({fields:[c[0]],callback:p,cfg:Zf(g)}),f.label({fields:[c[1]],callback:p,cfg:Zf(d)})}else h.label(!1),f.label(!1);return t}function zm(t){return Wf(Im,Fm,Lm,Dm,Rm,Nm,Dp,Bm,_m)(t)}var Ym=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Gf({},t.getDefaultOptions.call(this),{syncViewPadding:Pm})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(g.BEFORE_CHANGE_DATA,Dr.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,r=e.yField,i=e.layout,o=km(n,r,Em,t,Tm(i)),a=o[0],c=o[1],s=dp(this.chart,Cm),l=dp(this.chart,Am);s.data(a),l.data(c),this.chart.render(!0),this.chart.emit(g.AFTER_CHANGE_DATA,Dr.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return zm},e.SERIES_FIELD_KEY=Em,e}(yd),Gm,Hm="$$range$$",Vm="low-q1-median-q3-high",Wm="$$y_outliers$$",Xm="outliers_view",$m=Gf({},yd.getDefaultOptions(),{meta:(Gm={},Gm[Hm]={min:0,alias:Vm},Gm),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),qm=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4];n=Object(s.W)(t,(function(t){return t[Hm]=[t[r],t[i],t[o],t[a],t[c]],t}))}return n};function Um(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,a=n.color,c=n.tooltip,l=n.boxStyle;e.data(qm(n.data,i));var u=Object(s.C)(i)?Hm:i,h=i?Object(s.C)(i)?i:[i]:[],f=c;!1!==f&&(f=Gf({},{fields:Object(s.C)(i)?i:[]},f));var p=hd(Gf({},t,{options:{xField:r,yField:u,seriesField:o,tooltip:f,rawFields:h,label:!1,schema:{shape:"box",color:a,style:l}}})).ext;return o&&p.geometry.adjust("dodge"),t}function Km(t){var e=t.chart,n=t.options,r=n.xField,i=n.data,o=n.outliersField,a=n.outliersStyle,c=n.padding,s=n.label;if(!o)return t;var l=e.createView({padding:c,id:"outliers_view"}),u=i.reduce((function(t,e){var n;return e[o].forEach((function(n){var r;return t.push(Object(Mf.a)(Object(Mf.a)({},e),((r={})[o]=n,r)))})),t}),[]);return l.data(u),ld({chart:l,options:{xField:r,yField:o,point:{shape:"circle",style:a},label:s}}),l.axis(!1),t}function Zm(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,c=i.yAxis,s=i.xField,l=i.yField,u=i.outliersField,h=Array.isArray(l)?Hm:l,f={};if(u){var p=Wm;(e={})[u]={sync:p,nice:!0},e[h]={sync:p,nice:!0},f=e}var d=Gf(f,o,((n={})[s]=Pf(a,Sf),n[h]=Pf(c,Sf),n));return r.scale(d),t}function Qm(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=Array.isArray(a)?Hm:a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(Hm,!1):e.axis(c,i),t}function Jm(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function tb(t){return Wf(Um,Km,Zm,Qm,Jm,Dp,Vp(),Rp,_p,Np)(t)}var eb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return $m},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return"outliers_view"===t.id}));n&&n.data(t),this.chart.changeData(qm(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return tb},e}(yd);function nb(t,e,n){return t.length>1?"".concat(e,"_").concat(n):"".concat(e)}function rb(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,c=[],s=[];e.forEach((function(t,e){var a=[t[i]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(r,o){var s,l=0===o?r:a[o]-a[o-1];c.push(((s={rKey:"".concat(i,"_").concat(o)})[n]=n?t[n]:String(e),s[i]=l,s))}));var l=[t[r]].flat();l.forEach((function(i,o){var a;c.push(((a={mKey:nb(l,r,o)})[n]=n?t[n]:String(e),a[r]=i,a))}));var u=[t[o]].flat();u.forEach((function(r,i){var a;c.push(((a={tKey:nb(u,o,i)})[n]=n?t[n]:String(e),a[o]=r,a))})),s.push(t[i],t[r],t[o])}));var l=Math.min.apply(Math,s.flat(1/0)),u=Math.max.apply(Math,s.flat(1/0));return l=l>0?0:l,"vertical"===a&&c.reverse(),{min:l,max:u,ds:c}}function ib(t){var e=t.chart,n=t.options,r=n.bulletStyle,i=n.targetField,o=n.rangeField,a=n.measureField,c=n.xField,l=n.color,u=n.layout,h=n.size,f=n.label,p=rb(n),d=p.min,g=p.max,y=p.ds,v,m,b;return e.data(y),cd(Gf({},t,{options:{xField:c,yField:o,seriesField:"rKey",isStack:!0,label:Object(s.s)(f,"range"),interval:{color:Object(s.s)(l,"range"),style:Object(s.s)(r,"range"),size:Object(s.s)(h,"range")}}})),e.geometries[0].tooltip(!1),cd(Gf({},t,{options:{xField:c,yField:a,seriesField:"mKey",isStack:!0,label:Object(s.s)(f,"measure"),interval:{color:Object(s.s)(l,"measure"),style:Object(s.s)(r,"measure"),size:Object(s.s)(h,"measure")}}})),ld(Gf({},t,{options:{xField:c,yField:i,seriesField:"tKey",label:Object(s.s)(f,"target"),point:{color:Object(s.s)(l,"target"),style:Object(s.s)(r,"target"),size:Object(s.I)(Object(s.s)(h,"target"))?function(t){return Object(s.s)(h,"target")(t)/2}:Object(s.s)(h,"target")/2,shape:"horizontal"===u?"line":"hyphen"}}})),"horizontal"===u&&e.coordinate().transpose(),Object(Mf.a)(Object(Mf.a)({},t),{ext:{data:{min:d,max:g}}})}function ob(t){var e,n,r=t.options,i=t.ext,o=r.xAxis,a=r.yAxis,c=r.targetField,s=r.rangeField,l=r.measureField,u=r.xField,h=i.data;return Wf(Hp(((e={})[u]=o,e[l]=a,e),((n={})[l]={min:null==h?void 0:h.min,max:null==h?void 0:h.max,sync:!0},n[c]={sync:"".concat(l)},n[s]={sync:"".concat(l)},n)))(t)}function ab(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,c=n.rangeField,s=n.targetField;return e.axis("".concat(c),!1),e.axis("".concat(s),!1),!1===r?e.axis("".concat(o),!1):e.axis("".concat(o),r),!1===i?e.axis("".concat(a),!1):e.axis("".concat(a),i),t}function cb(t){var e=t.chart,n,r=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(r),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function sb(t){var e=t.chart,n=t.options,r=n.label,i=n.measureField,o=n.targetField,a=n.rangeField,c=e.geometries,l=c[0],u=c[1],h=c[2];return Object(s.s)(r,"range")?l.label("".concat(a),Object(Mf.a)({layout:[{type:"limit-in-plot"}]},Zf(r.range))):l.label(!1),Object(s.s)(r,"measure")?u.label("".concat(i),Object(Mf.a)({layout:[{type:"limit-in-plot"}]},Zf(r.measure))):u.label(!1),Object(s.s)(r,"target")?h.label("".concat(o),Object(Mf.a)({layout:[{type:"limit-in-plot"}]},Zf(r.target))):h.label(!1),t}function lb(t){Wf(ib,ob,ab,cb,Np,sb,Dp,Rp,_p)(t)}var ub=Gf({},yd.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),hb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return ub},e.prototype.changeData=function(t){this.updateOption({data:t});var e=rb(this.options),n=e.min,r=e.max,i=e.ds;ob({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return lb},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(yd),fb={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function pb(t,e,n){Object(s.r)(t,(function(t,r){t.inEdges=e.filter((function(t){return"".concat(n.target(t))==="".concat(r)})),t.outEdges=e.filter((function(t){return"".concat(n.source(t))==="".concat(r)})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}function db(t,e){var n,r={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return"".concat(e.id(t)).localeCompare("".concat(e.id(n)))}}[e.sortBy];!r&&Object(s.I)(e.sortBy)&&(r=e.sortBy),r&&t.sort(r)}function gb(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,c=r-1;c>=0;c--)a+=t[c].width+2*i;var s=n.minX=i+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,h=n.maxY=u+o;n.x=[s,l,l,s],n.y=[u,u,h,h]}))}else{var c=1/n;t.forEach((function(t,n){t.x=(n+.5)*c,t.y=e.y}))}return t}function yb(t,e,n){if(n.weight){var r={};Object(s.r)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],c=t[o];if(a&&c){var s=r[i],l=n.sourceWeight(e),u=a.minX+(a.value-s)/a.value*a.width,h=u+l/a.value*a.width;r[i]-=l;var f=r[o],p=n.targetWeight(e),d=c.minX+(c.value-f)/c.value*c.width,g=d+p/c.value*c.width;r[o]-=p;var y=n.y;e.x=[u,h,d,g],e.y=[y,y,y,y],e.source=a,e.target=c}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}function vb(t){return Object(s.b)({},fb,t)}function mb(t,e){var n=vb(t),r={},i=e.nodes,o=e.links,a,c;return i.forEach((function(t){var e=n.id(t);r[e]=t})),pb(r,o,n),db(i,n),{nodes:gb(i,n),links:yb(r,o,n)}}var bb="x",xb="y",Ob="name",jb="source",wb={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){var n,r;return{offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(s.s)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:"".concat(e," -> ").concat(n),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function Mb(t){var e=t.options,n=e.data,r=e.sourceField,i=e.targetField,o=e.weightField,a=e.nodePaddingRatio,c=e.nodeWidthRatio,s=e.rawFields,l=void 0===s?[]:s,u,h=mb({weight:!0,nodePaddingRatio:a,nodeWidthRatio:c},Ff(n,r,i,o)),f=h.nodes,p=h.links,d=f.map((function(t){return Object(Mf.a)(Object(Mf.a)({},Pf(t,Object(Mf.d)(["id","x","y","name"],l,!0))),{isNode:!0})})),g=p.map((function(t){return Object(Mf.a)(Object(Mf.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Pf(t,Object(Mf.d)(["x","y","value"],l,!0))),{isNode:!1})}));return Object(Mf.a)(Object(Mf.a)({},t),{ext:Object(Mf.a)(Object(Mf.a)({},t.ext),{chordData:{nodesData:d,edgesData:g}})})}function Sb(t){var e,n;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function Cb(t){var e;return t.chart.axis(!1),t}function Ab(t){var e;return t.chart.legend(!1),t}function Eb(t){var e=t.chart,n,r=t.options.tooltip;return e.tooltip(r),t}function kb(t){var e;return t.chart.coordinate("polar").reflect("y"),t}function Tb(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,c=e.createView();return c.data(r),ud({chart:c,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:o,tooltip:a}}),t}function Pb(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView(),c;return a.data(r),od({chart:a,options:{xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:o}}),t}function Ib(t){var e=t.chart,n,r;return vp(e,t.options.animation,Uf(e)),t}function Fb(t){return Wf(Np,Mb,kb,Sb,Cb,Ab,Eb,Pb,Tb,Rp,zp,Ib)(t)}var Lb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return wb},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Fb},e}(yd),Bb=["x","y","r","name","value","path","depth"],Db={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},Rb=4,_b=0,Nb=5,zb="drilldown-bread-crumb",Yb={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Gb="hierarchy-data-transform-params",Hb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=Yb,e}return Object(Mf.b)(e,t),e.prototype.click=function(){var t=Object(s.s)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,i={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(i={x:0,y:0}),"bottom-left"===r&&(i={x:t.start.x,y:t.start.y});var o=mo.transform(null,[["t",i.x+0,i.y+n.height+5]]);e.setMatrix(o)}},e.prototype.back=function(){Object(s.mb)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(s.s)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),r=n(Object(Mf.a)({data:t.data},t[Gb]));e.changeData(r);for(var i=[],o=t;o;){var a=o.data;i.unshift({id:"".concat(a.name,"_").concat(o.height,"_").concat(o.depth),name:a.name,children:n(Object(Mf.a)({data:a},t[Gb]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(i)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(s.U)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(s.s)(t,["interactions","drill-down","cfg","drillDownConfig"]);return Gf(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:zb});var r=0;n.forEach((function(i,o){var a=t.breadCrumbGroup.addShape({type:"text",id:i.id,name:"".concat(zb,"_").concat(i.name,"_text"),attrs:Object(Mf.a)(Object(Mf.a)({text:0!==o||Object(s.K)(e.rootText)?i.name:e.rootText},e.textStyle),{x:r,y:0})}),c=a.getBBox();if(r+=c.width+4,a.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(s.U)(n))||void 0===r?void 0:r.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(o)}})),a.on("mouseenter",(function(t){var r,i;t.target.get("id")!==(null===(r=Object(s.U)(n))||void 0===r?void 0:r.id)?a.attr(e.activeTextStyle):a.attr({cursor:"default"})})),a.on("mouseleave",(function(){a.attr(e.textStyle)})),o<n.length-1){var l,u=t.breadCrumbGroup.addShape({type:"text",name:"".concat(e.name,"_").concat(i.name,"_divider"),attrs:Object(Mf.a)(Object(Mf.a)({text:e.dividerText},e.textStyle),{x:r,y:0})}).getBBox();r+=u.width+4}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(ge),Vb=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)};function Wb(t){for(var e=t.length,n,r;e;)r=Math.random()*e--|0,n=t[e],t[e]=t[r],t[r]=n;return t}var Xb=function(t){for(var e=0,n=(t=Wb(Array.from(t))).length,r=[],i,o;e<n;)i=t[e],o&&Ub(o,i)?++e:(o=Zb(r=$b(r,i)),e=0);return o};function $b(t,e){var n,r;if(Kb(e,t))return[e];for(n=0;n<t.length;++n)if(qb(e,t[n])&&Kb(Jb(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(qb(Jb(t[n],t[r]),e)&&qb(Jb(t[n],e),t[r])&&qb(Jb(t[r],e),t[n])&&Kb(tx(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function qb(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function Ub(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Kb(t,e){for(var n=0;n<e.length;++n)if(!Ub(t,e[n]))return!1;return!0}function Zb(t){switch(t.length){case 1:return Qb(t[0]);case 2:return Jb(t[0],t[1]);case 3:return tx(t[0],t[1],t[2])}}function Qb(t){return{x:t.x,y:t.y,r:t.r}}function Jb(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,c=e.r,s=o-n,l=a-r,u=c-i,h=Math.sqrt(s*s+l*l);return{x:(n+o+s/h*u)/2,y:(r+a+l/h*u)/2,r:(h+i+c)/2}}function tx(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,c=e.y,s=e.r,l=n.x,u=n.y,h=n.r,f=r-a,p=r-l,d=i-c,g=i-u,y=s-o,v=h-o,m=r*r+i*i-o*o,b=m-a*a-c*c+s*s,x=m-l*l-u*u+h*h,O=p*d-f*g,j=(d*x-g*b)/(2*O)-r,w=(g*y-d*v)/O,M=(p*b-f*x)/(2*O)-i,S=(f*v-p*y)/O,C=w*w+S*S-1,A=2*(o+j*w+M*S),E=j*j+M*M-o*o,k=-(C?(A+Math.sqrt(A*A-4*C*E))/(2*C):E/A);return{x:r+j+w*k,y:i+M+S*k,r:k}}function ex(t,e,n){var r=t.x-e.x,i,o,a=t.y-e.y,c,s,l=r*r+a*a;l?(o=e.r+n.r,o*=o,s=t.r+n.r,o>(s*=s)?(i=(l+s-o)/(2*l),c=Math.sqrt(Math.max(0,s/l-i*i)),n.x=t.x-i*r-c*a,n.y=t.y-i*a+c*r):(i=(l+o-s)/(2*l),c=Math.sqrt(Math.max(0,o/l-i*i)),n.x=e.x+i*r-c*a,n.y=e.y+i*a+c*r)):(n.x=e.x+n.r,n.y=e.y)}function nx(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function rx(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function ix(t){this._=t,this.next=null,this.previous=null}function ox(t){if(!(i=(t=Vb(t)).length))return 0;var e,n,r,i,o,a,c,s,l,u,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;ex(n,e,r=t[2]),e=new ix(e),n=new ix(n),r=new ix(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(c=3;c<i;++c){ex(e._,n._,r=t[c]),r=new ix(r),s=n.next,l=e.previous,u=n._.r,h=e._.r;do{if(u<=h){if(nx(s._,r._)){n=s,e.next=n,n.previous=e,--c;continue t}u+=s._.r,s=s.next}else{if(nx(l._,r._)){(e=l).next=n,n.previous=e,--c;continue t}h+=l._.r,l=l.previous}}while(s!==l.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=rx(e);(r=r.next)!==n;)(a=rx(r))<o&&(e=r,o=a);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=Xb(e),c=0;c<i;++c)(e=t[c]).x-=r.x,e.y-=r.y;return r.r}var ax=function(t){return ox(t),t};function cx(t){return null==t?null:sx(t)}function sx(t){if("function"!=typeof t)throw new Error;return t}function lx(){return 0}var ux=function(t){return function(){return t}};function hx(t){return Math.sqrt(t.value)}var fx=function(){var t=null,e=1,n=1,r=lx;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(px(t)).eachAfter(dx(r,.5)).eachBefore(gx(1)):i.eachBefore(px(hx)).eachAfter(dx(lx,1)).eachAfter(dx(r,i.r/Math.min(e,n))).eachBefore(gx(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=cx(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:ux(+t),i):r},i};function px(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function dx(t,e){return function(n){if(r=n.children){var r,i,o=r.length,a=t(n)*e||0,c;if(a)for(i=0;i<o;++i)r[i].r+=a;if(c=ox(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=c+a}}}function gx(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function yx(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}var vx=function(){return this.eachAfter(yx)},mx=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},bx=function(t,e){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(t.call(e,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this},xx=function(t,e){for(var n=this,r=[n],i=[],o,a,c,s=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,c=o.length;a<c;++a)r.push(o[a]);for(;n=i.pop();)t.call(e,n,++s,this);return this},Ox=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},jx=function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},wx=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},Mx=function(t){for(var e=this,n=Sx(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r};function Sx(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}var Cx=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},Ax=function(){return Array.from(this)},Ex=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},kx=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},Tx=function*(){var t=this,e,n=[t],r,i,o;do{for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i])}while(n.length)};function Px(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Lx)):void 0===e&&(e=Fx);for(var n=new Rx(t),r,i=[n],o,a,c,s;r=i.pop();)if((a=e(r.data))&&(s=(a=Array.from(a)).length))for(r.children=a,c=s-1;c>=0;--c)i.push(o=a[c]=new Rx(a[c])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Dx)}function Ix(){return Px(this).eachBefore(Bx)}function Fx(t){return t.children}function Lx(t){return Array.isArray(t)?t[1]:null}function Bx(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Dx(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Rx(t){this.data=t,this.depth=this.height=0,this.parent=null}Rx.prototype=Px.prototype={constructor:Rx,count:vx,each:mx,eachAfter:xx,eachBefore:bx,find:Ox,sum:jx,sort:wx,path:Mx,ancestors:Cx,descendants:Ax,leaves:Ex,links:kx,copy:Ix,[Symbol.iterator]:Tx};var _x="nodeIndex",Nx="childNodeCount",zx="nodeAncestor",Yx="Invalid field: it must be a string!";function Gx(t,e){var n=t.field,r=t.fields;if(Object(s.Q)(n))return n;if(Object(s.C)(n))return console.warn(Yx),n[0];if(console.warn("".concat(Yx," will try to get fields instead.")),Object(s.Q)(r))return r;if(Object(s.C)(r)&&r.length)return r[0];if(e)return e;throw new TypeError(Yx)}function Hx(t){var e=[],n,r;t&&t.each?t.each((function(t){var i,o;t.parent!==n?(n=t.parent,r=0):r+=1;var a=Object(s.l)(((null===(i=t.ancestors)||void 0===i?void 0:i.call(t))||[]).map((function(t){return e.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t.nodeAncestor=a,t.childNodeCount=(null===(o=t.children)||void 0===o?void 0:o.length)||0,t.nodeIndex=r,e.push(t)})):t&&t.eachNode&&t.eachNode((function(t){e.push(t)}));return e}var Vx={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function Wx(t,e){var n=(e=Object(s.b)({},Vx,e)).as,r;if(!Object(s.C)(n)||3!==n.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{r=Gx(e)}catch(t){console.warn(t)}var i,o=function(t){return fx().size(e.size).padding(e.padding)(Px(t).sum((function(t){return t[r]})).sort(e.sort))}(t),a=n[0],c=n[1],l=n[2];return o.each((function(t){t[a]=t.x,t[c]=t.y,t[l]=t.r})),Hx(o)}function Xx(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,i=void 0===r?[]:r,o=t.enableDrillDown,a=Wx(e,Object(Mf.a)(Object(Mf.a)({},n),{field:"value",as:["x","y","r"]})),c=[];return a.forEach((function(t){for(var e,r=t.data.name,a=Object(Mf.a)({},t);a.depth>1;)r="".concat(null===(e=a.parent.data)||void 0===e?void 0:e.name," / ").concat(r),a=a.parent;if(o&&t.depth>2)return null;var s=Gf({},t.data,Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},Pf(t.data,i)),{path:r}),t));s.ext=n,s[Gb]={hierarchyConfig:n,rawFields:i,enableDrillDown:o},c.push(s)})),c}function $x(t,e,n){var r=ip([t,e]),i=r[0],o=r[1],a=r[2],c=r[3],s,l,u=n.width-(c+o),h=n.height-(i+a),f=Math.min(u,h),p=(u-f)/2,d=(h-f)/2,g,y,v,m,b,x;return{finalPadding:[i+d,o+p,a+d,c+p],finalSize:f<0?0:f}}function qx(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Gf({options:{size:function(t){var e;return t.r*n}}},t)}function Ux(t){var e=t.options,n=t.chart,r=n.viewBBox,i=e.padding,o=e.appendPadding,a=e.drilldown,c=o,l;(null==a?void 0:a.enabled)&&(c=ip([rp(n.appendPadding,Object(s.s)(a,["breadCrumb","position"])),o]));var u=$x(i,c,r).finalPadding;return n.padding=u,n.appendPadding=0,t}function Kx(t){var e=t.chart,n=t.options,r=e.padding,i=e.appendPadding,o=n.color,a=n.colorField,c=n.pointStyle,s=n.hierarchyConfig,l=n.sizeField,u=n.rawFields,h=void 0===u?[]:u,f=n.drilldown,p=Xx({data:n.data,hierarchyConfig:s,enableDrillDown:null==f?void 0:f.enabled,rawFields:h});e.data(p);var d,g=$x(r,i,e.viewBBox).finalSize,y=function(t){var e;return t.r*g};return l&&(y=function(t){return t[l]*g}),ld(Gf({},t,{options:{xField:"x",yField:"y",seriesField:a,sizeField:l,rawFields:Object(Mf.d)(Object(Mf.d)([],Bb,!0),h,!0),point:{color:o,style:c,shape:"circle",size:y}}})),t}function Zx(t){return Wf(Hp({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function Qx(t){var e=t.chart,n,r=t.options.tooltip;if(!1===r)e.tooltip(!1);else{var i=r;Object(s.s)(r,"fields")||(i=Gf({},{customItems:function(t){return t.map((function(t){var n=Object(s.s)(e.getOptions(),"scales"),r=Object(s.s)(n,["name","formatter"],(function(t){return t})),i=Object(s.s)(n,["value","formatter"],(function(t){return t}));return Object(Mf.a)(Object(Mf.a)({},t),{name:r(t.data.name),value:i(t.data.value)})}))}},i)),e.tooltip(i)}return t}function Jx(t){var e;return t.chart.axis(!1),t}function tO(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?Gf({},t,{interactions:Object(Mf.d)(Object(Mf.d)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Xx,enableDrillDown:!0}}],!1)}):t}function eO(t){var e,n;return Rp({chart:t.chart,options:tO(t.options)}),t}function nO(t){return Wf(Lp("pointStyle"),qx,Ux,Np,Zx,Kx,Jx,Bp,Qx,eO,_p,Vp())(t)}function rO(t){var e=Object(s.s)(t,["event","data","data"],{});return Object(s.C)(e.children)&&e.children.length>0}function iO(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,c=a.x,s=a.y,l=e.getRadius()*n,u;return Math.sqrt(Math.pow(c-i,2)+Math.pow(s-o,2))<l}return!1}Oe("drill-down-action",Hb),Ln("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:rO},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:iO}],start:[{trigger:"element:click",isEnable:rO,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:iO,action:["drill-down-action:back"]}]});var oO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Db},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return nO},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(yd),aO="left-axes-view",cO="right-axes-view",sO={nice:!0,label:{autoHide:!0,autoRotate:!1}},lO=Object(Mf.a)(Object(Mf.a)({},sO),{position:"left"}),uO=Object(Mf.a)(Object(Mf.a)({},sO),{position:"right",grid:null}),hO,fO;function pO(t){return Object(s.s)(t,"geometry")===fO.Line}function dO(t){return Object(s.s)(t,"geometry")===fO.Column}function gO(t,e,n){return dO(n)?Gf({},{geometry:fO.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(Mf.a)({geometry:fO.Line},n)}function yO(t,e){var n=t[0],r=t[1],i,o,a,c;return Object(s.C)(e)?[e[0],e[1]]:[Object(s.s)(e,n),Object(s.s)(e,r)]}function vO(t,e){return e===hO.Left?!1!==t&&Gf({},lO,t):e===hO.Right?!1!==t&&Gf({},uO,t):t}function mO(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,o=r.color,a=r.seriesField,c=r.groupField,l=r.isGroup,u=["xField","yField"];if(pO(r)){sd(Gf({},t,{options:Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},Pf(e,u)),r),{line:{color:r.color,style:r.lineStyle}})})),ld(Gf({},t,{options:Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},Pf(e,u)),r),{point:r.point&&Object(Mf.a)({color:o,shape:"circle"},r.point)})}));var h=[];l&&h.push({type:"dodge",dodgeBy:c||a,customOffset:0}),i&&h.push({type:"stack"}),h.length&&Object(s.j)(n.geometries,(function(t){t.adjust(h)}))}return dO(r)&&og(Gf({},t,{options:Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},Pf(e,u)),r),{widthRatio:r.columnWidthRatio,interval:Object(Mf.a)(Object(Mf.a)({},Pf(r,["color"])),{style:r.columnStyle})})})),t}function bO(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=Object(s.s)(i,"marker"),a=Xf(e,pO(n)?"line":"interval");if(!n.seriesField){var c=Object(s.s)(e,"options.scales.".concat(r,".alias"))||r,l=a.getAttribute("color"),u=e.getTheme().defaultColor,h;return l&&(u=mo.getMappingValue(l,c,Object(s.s)(l,["values",0],u))),[{value:r,name:c,marker:(Object(s.I)(o)?o:!Object(s.G)(o)&&Gf({},{style:{stroke:u,fill:u}},o))||(pO(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}}),isGeometry:!0,viewId:e.id}]}var f=a.getGroupAttributes();return Object(s.ib)(f,(function(t,n){var r=mo.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}!function(t){t.Left="Left",t.Right="Right"}(hO||(hO={})),function(t){t.Line="line",t.Column="column"}(fO||(fO={}));var xO=function(t,e){var n=e[0],r=e[1],i=t.getOptions().data,o=t.getXScale(),a=Object(s.mb)(i);if(o&&a){var c=!0,l=Object(s.yb)(i,o.field),u=l,h=Object(s.mb)(u),f=Math.floor(n*(h-1)),p=Math.floor(r*(h-1));t.filter(o.field,(function(t){var e=u.indexOf(t);return!(e>-1)||ep(e,f,p)})),t.getRootView().render(!0)}};function OO(t){var e,n=t.options,r=n.geometryOptions,i=void 0===r?[]:r,o=n.xField,a=n.yField,c=Object(s.k)(i,(function(t){var e=t.geometry;return e===fO.Line||void 0===e}));return Gf({},{options:{geometryOptions:[],meta:(e={},e[o]={type:"cat",sync:!0,range:c?[0,1]:void 0},e),tooltip:{showMarkers:c,showCrosshairs:c,shared:!0,crosshairs:{type:"x"}},interactions:c?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:yO(a,n.yAxis),geometryOptions:[gO(o,a[0],i[0]),gO(o,a[1],i[1])],annotations:yO(a,n.annotations)}})}function jO(t){var e,n,r=t.chart,i,o=t.options.geometryOptions,a={line:0,column:1},c;return[{type:null===(e=o[0])||void 0===e?void 0:e.geometry,id:aO},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:cO}].sort((function(t,e){return-a[t.type]+a[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function wO(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.geometryOptions,a=n.data,c=n.tooltip,s;return[Object(Mf.a)(Object(Mf.a)({},o[0]),{id:aO,data:a[0],yField:i[0]}),Object(Mf.a)(Object(Mf.a)({},o[1]),{id:cO,data:a[1],yField:i[1]})].forEach((function(t){var n=t.id,i=t.data,o=t.yField,a=dO(t)&&t.isPercent,s=a?vd(i,o,r,o):i,l=dp(e,n).data(s),u=a?Object(Mf.a)({formatter:function(e){return{name:e[t.seriesField]||o,value:(100*Number(e[o])).toFixed(2)+"%"}}},c):c;mO({chart:l,options:{xField:r,yField:o,tooltip:u,geometryOption:t}})})),t}function MO(t){var e,n=t.chart,r,i=t.options.geometryOptions,o=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){Object(s.j)(i,(function(t,e){var r=dp(n,0===e?aO:cO);if(!t.color){var i=r.getGroupScales(),c=Object(s.s)(i,[0,"values","length"],1),l=o.slice(a,a+c).concat(0===e?[]:o);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),a+=c}})),n.render(!0)})),t}function SO(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,c=i.xField,s=i.yField;return Hp(((e={})[c]=o,e[s[0]]=a[0],e))(Gf({},t,{chart:dp(r,aO)})),Hp(((n={})[c]=o,n[s[1]]=a[1],n))(Gf({},t,{chart:dp(r,cO)})),t}function CO(t){var e=t.chart,n=t.options,r=dp(e,aO),i=dp(e,cO),o=n.xField,a=n.yField,c=n.xAxis,s=n.yAxis;return e.axis(o,!1),e.axis(a[0],!1),e.axis(a[1],!1),r.axis(o,c),r.axis(a[0],vO(s[0],hO.Left)),i.axis(o,!1),i.axis(a[1],vO(s[1],hO.Right)),t}function AO(t){var e=t.chart,n,r=t.options.tooltip,i=dp(e,aO),o=dp(e,cO);return e.tooltip(r),i.tooltip({shared:!0}),o.tooltip({shared:!0}),t}function EO(t){var e=t.chart;return Rp(Gf({},t,{chart:dp(e,aO)})),Rp(Gf({},t,{chart:dp(e,cO)})),t}function kO(t){var e=t.chart,n,r=t.options.annotations,i=Object(s.s)(r,[0]),o=Object(s.s)(r,[1]);return Vp(i)(Gf({},t,{chart:dp(e,aO),options:{annotations:i}})),Vp(o)(Gf({},t,{chart:dp(e,cO),options:{annotations:o}})),t}function TO(t){var e=t.chart;return Np(Gf({},t,{chart:dp(e,aO)})),Np(Gf({},t,{chart:dp(e,cO)})),Np(t),t}function PO(t){var e=t.chart;return _p(Gf({},t,{chart:dp(e,aO)})),_p(Gf({},t,{chart:dp(e,cO)})),t}function IO(t){var e=t.chart,n,r=t.options.yAxis;return Wp(Gf({},t,{chart:dp(e,aO),options:{yAxis:r[0]}})),Wp(Gf({},t,{chart:dp(e,cO),options:{yAxis:r[1]}})),t}function FO(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,c=dp(e,aO),l=dp(e,cO);if(!1===r)e.legend(!1);else if(Object(s.O)(r)&&!0===r.custom)e.legend(r);else{var u=Object(s.s)(i,[0,"legend"],r),h=Object(s.s)(i,[1,"legend"],r);e.once("beforepaint",(function(){var t=a[0].length?bO({view:c,geometryOption:i[0],yField:o[0],legend:u}):[],n=a[1].length?bO({view:l,geometryOption:i[1],yField:o[1],legend:h}):[];e.legend(Gf({},r,{custom:!0,items:t.concat(n)}))})),i[0].seriesField&&c.legend(i[0].seriesField,u),i[1].seriesField&&l.legend(i[1].seriesField,h),e.on("legend-item:click",(function(t){var n=Object(s.s)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,c=r.viewId;if(a){var l;if(Object(s.n)(o,(function(t){return t===i}))>-1){var u=Object(s.s)(dp(e,c),"geometries");Object(s.j)(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var h=Object(s.s)(e.getController("legend"),"option.items",[]);Object(s.j)(e.views,(function(t){var n=t.getGroupScales();Object(s.j)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){var e;return!Object(s.m)(h,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function LO(t){var e=t.chart,n,r=t.options.slider,i=dp(e,aO),o=dp(e,cO);return r&&(i.option("slider",r),i.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;Object(s.H)(n,r)||xO(o,n)})),e.once("afterpaint",(function(){if(!Object(s.D)(r)){var t=r.start,e=r.end;(t||e)&&xO(o,[t,e])}}))),t}function BO(t){return Wf(OO,jO,TO,wO,SO,CO,IO,AO,EO,kO,PO,MO,FO,LO)(t)}var DO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}return Object(Mf.b)(e,t),e.prototype.getDefaultOptions=function(){return Gf({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return BO},e}(yd);function RO(t,e){var n=e.data,r=e.coordinate,i=e.interactions,o=e.annotations,a=e.animation,c=e.tooltip,l=e.axes,u=e.meta,h=e.geometries;n&&t.data(n);var f={};l&&Object(s.j)(l,(function(t,e){f[e]=Pf(t,Sf)})),f=Gf({},u,f),t.scale(f),r&&t.coordinate(r),!1===l?t.axis(!1):Object(s.j)(l,(function(e,n){t.axis(n,e)})),Object(s.j)(h,(function(e){var n=rd({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),Object(s.j)(i,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(s.j)(o,(function(e){t.annotation()[e.type](Object(Mf.a)({},e))})),vp(t,a),c?(t.interaction("tooltip"),t.tooltip(c)):!1===c&&t.removeInteraction("tooltip")}function _O(t){var e=t.chart,n=t.options,r=n.type,i=n.data,o=n.fields,a=n.eachView,c=Object(s.gb)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(i),e.facet(r,Object(Mf.a)(Object(Mf.a)({},c),{fields:o,eachView:function(t,e){var n=a(t,e);if(n.geometries)RO(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),gm(r.type,t,i)}}})),t}function NO(t){var e=t.chart,n=t.options,r=n.axes,i=n.meta,o=n.tooltip,a=n.coordinate,c=n.theme,l=n.legend,u=n.interactions,h=n.annotations,f={};return r&&Object(s.j)(r,(function(t,e){f[e]=Pf(t,Sf)})),f=Gf({},i,f),e.scale(f),e.coordinate(a),r?Object(s.j)(r,(function(t,n){e.axis(n,t)})):e.axis(!1),o?(e.interaction("tooltip"),e.tooltip(o)):!1===o&&e.removeInteraction("tooltip"),e.legend(l),c&&e.theme(c),Object(s.j)(u,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(s.j)(h,(function(t){e.annotation()[t.type](Object(Mf.a)({},t))})),t}function zO(t){return Wf(Np,_O,NO)(t)}var YO={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},GO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return YO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return zO},e}(yd);function HO(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.xField,a=n.yField,c=n.colorField,l=n.sizeField,u=n.sizeRatio,h=n.shape,f=n.color,p=n.tooltip,d=n.heatmapStyle,g=n.meta;e.data(r);var y="polygon";"density"===i&&(y="heatmap");var v=td(p,[o,a,c]),m=v.fields,b=v.formatter,x=1;return(u||0===u)&&(h||l?u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):x=u:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),rd(Gf({},t,{options:{type:y,colorField:c,tooltipFields:m,shapeField:l||"",label:void 0,mapping:{tooltip:b,shape:h&&(l?function(t){var e=r.map((function(t){return t[l]})),n=(null==g?void 0:g[l])||{},i=n.min,o=n.max;return i=Object(s.M)(i)?i:Math.min.apply(Math,e),o=Object(s.M)(o)?o:Math.max.apply(Math,e),[h,(Object(s.s)(t,l)-i)/(o-i),x]}:function(){return[h,1,x]}),color:f||c&&e.getTheme().sequenceColors.join("-"),style:d}}})),t}function VO(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Wf(Hp(((e={})[o]=r,e[a]=i,e)))(t)}function WO(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function XO(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,c=!1!==r;return i&&e.legend(i,!!c&&r),o&&e.legend(o,void 0===a?r:a),c||a||e.legend(!1),t}function $O(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o,a=Xf(e,"density"===n.type?"heatmap":"polygon");if(r){if(i){var c=r.callback,s=Object(Mf.c)(r,["callback"]);a.label({fields:[i],callback:c,cfg:Zf(s)})}}else a.label(!1);return t}function qO(t){var e,n,r=t.chart,i=t.options,o=i.coordinate,a=i.reflect,c=Gf({actions:[]},null!=o?o:{type:"rect"});return a&&(null===(n=null===(e=c.actions)||void 0===e?void 0:e.push)||void 0===n||n.call(e,["reflect",a])),r.coordinate(c),t}function UO(t){return Wf(Np,Lp("heatmapStyle"),VO,qO,HO,WO,XO,Dp,$O,Vp(),Rp,_p,zp)(t)}var KO=Gf({},yd.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});xi("polygon","circle",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),s=Math.abs(a[1].y-a[0].y),l=Math.min(c,s)/2,u=Number(t.shape[1]),h=Number(t.shape[2]),f,p=l*Math.sqrt(h)*Math.sqrt(u),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),g;return e.addShape("circle",{attrs:Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({x:i,y:o,r:p},t.defaultStyle),t.style),{fill:d})})}}),xi("polygon","square",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),s=Math.abs(a[1].y-a[0].y),l=Math.min(c,s),u=Number(t.shape[1]),h=Number(t.shape[2]),f,p=l*Math.sqrt(h)*Math.sqrt(u),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),g;return e.addShape("rect",{attrs:Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({x:i-p/2,y:o-p/2,width:p,height:p},t.defaultStyle),t.style),{fill:d})})}});var ZO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return KO},e.prototype.getSchemaAdaptor=function(){return UO},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(yd),QO="liquid";function JO(t){return[{percent:t,type:"liquid"}]}function tj(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,a=n.outline,c=n.wave,s=n.shape,l=n.shapeStyle,u=n.animation;e.scale({percent:{min:0,max:1}}),e.data(JO(r));var h=n.color||e.getTheme().defaultColor,f,p,d=cd(Gf({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:h,style:i,shape:"liquid-fill-gauge"}}})).ext.geometry,g,y={percent:r,radius:o,outline:a,wave:c,shape:s,shapeStyle:l,background:e.getTheme().background,animation:u};return d.customInfo(y),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function ej(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent,a=r.meta;n.getController("annotation").clear(!0);var c=Object(s.s)(a,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},l=i.content;return l&&(l=Gf({},l,{content:Object(s.K)(l.content)?c(o):l.content})),hp(n,{statistic:Object(Mf.a)(Object(Mf.a)({},i),{content:l}),plotType:"liquid"},{percent:o}),e&&n.render(!0),t}function nj(t){return Wf(Np,Lp("liquidStyle"),tj,ej,Hp({}),_p,Rp)(t)}var rj={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},ij=5e3;function oj(t,e,n){return t+(e-t)*n}function aj(t){var e=Object(Mf.a)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function cj(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=Object(s.db)({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),Object(s.M)(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function sj(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function lj(t,e,n,r,i,o,a){for(var c=4*Math.ceil(2*t/n*4),s=[],l=r;l<2*-Math.PI;)l+=2*Math.PI;for(;l>0;)l-=2*Math.PI;var u=o-t+(l=l/Math.PI/2*n)-2*t;s.push(["M",u,e]);for(var h=0,f=0;f<c;++f){var p,d=sj(f*n/4,f%4,n,i);s.push(["C",d[0][0]+u,-d[0][1]+e,d[1][0]+u,-d[1][1]+e,d[2][0]+u,-d[2][1]+e]),f===c-1&&(h=d[2][0])}return s.push(["L",h+u,a+t]),s.push(["L",u,a+t]),s.push(["Z"]),s}function uj(t,e,n,r,i,o,a,c,s,l){for(var u=i.fill,h=i.opacity,f=a.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=0;g<r;g++){var y=r<=1?1:g/(r-1),v=o.addShape("path",{name:"waterwave-path",attrs:{path:lj(c,f.minY+d*n,s,0,p/32,t,e),fill:u,opacity:oj(.2,.9,y)*h}});try{if(!1===l)return;var m=_y([["t",s,0]]);v.stopAnimate(),v.animate({matrix:m},{duration:oj(2500,5e3,y),repeat:!0})}catch(t){console.warn("off-screen group animate error!")}}}function hj(t,e,n,r){var i=2*n/3,o=Math.max(i,r),a=i/2,c=t,s=a+e-o/2,l=Math.asin(a/(.85*(o-a))),u=Math.sin(l)*a,h=Math.cos(l)*a,f=c-h,p=s+u,d=t,g=s+a/Math.sin(l);return"\n M ".concat(f," ").concat(p,"\n A ").concat(a," ").concat(a," 0 1 1 ").concat(f+2*h," ").concat(p,"\n Q ").concat(d," ").concat(g," ").concat(t," ").concat(e+o/2,"\n Q ").concat(d," ").concat(g," ").concat(f," ").concat(p,"\n Z \n ")}function fj(t,e,n,r){var i=n/2,o=r/2;return"\n M ".concat(t," ").concat(e-o," \n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*-o,"\n Z\n ")}function pj(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e,"\n L ").concat(t," ").concat(e+i,"\n L ").concat(t-o," ").concat(e,"\n Z\n ")}function dj(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e+i,"\n L ").concat(t-o," ").concat(e+i,"\n Z\n ")}function gj(t,e,n,r){var i=.618,o=r/2,a=n/2*.618;return"\n M ".concat(t-a," ").concat(e-o,"\n L ").concat(t+a," ").concat(e-o,"\n L ").concat(t+a," ").concat(e+o,"\n L ").concat(t-a," ").concat(e+o,"\n Z\n ")}var yj={pin:hj,circle:fj,diamond:pj,triangle:dj,rect:gj};xi("interval","liquid-fill-gauge",{draw:function(t,e){var n=.5,r=.5,i=t.customInfo,o=i,a=o.percent,c=o.radius,l=o.shape,u=o.shapeStyle,h=o.background,f=o.animation,p=i.outline,d=i.wave,g=p.border,y=p.distance,v=d.count,m=d.length,b=Object(s.ib)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),x=this.parsePoint({x:n,y:r}),O=this.parsePoint({x:b,y:r}),j=x.x-O.x,w=Math.min(j,O.y*c),M=aj(t),S=cj(Object(s.db)({},t,p)),C=w-g/2,A,E=("function"==typeof l?l:yj[l]||yj.circle)(x.x,x.y,2*C,2*C);if(u&&e.addShape("path",{name:"shape",attrs:Object(Mf.a)({path:E},u)}),a>0){var k=e.addGroup({name:"waves"}),T=k.setClip({type:"path",attrs:{path:E}});uj(x.x,x.y,1-t.points[1].y,v,M,k,T,2*w,m,f)}return e.addShape("path",{name:"distance",attrs:{path:E,fill:"transparent",lineWidth:g+2*y,stroke:"transparent"===h?"#fff":h}}),e.addShape("path",{name:"wrap",attrs:Object(s.db)(S,{path:E,fill:"transparent",lineWidth:g})}),e}});var vj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return rj},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(g.BEFORE_CHANGE_DATA,Dr.fromData(this.chart,g.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(JO(t)),ej({chart:this.chart,options:this.options},!0),this.chart.emit(g.AFTER_CHANGE_DATA,Dr.fromData(this.chart,g.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return nj},e}(yd),mj,bj;function xj(t){var e=t.chart,n=t.options,r=n.data,i=n.lineStyle,o=n.color,a=n.point,c=n.area;e.data(r);var s=Gf({},t,{options:{line:{style:i,color:o},point:a?Object(Mf.a)({color:o},a):a,area:c?Object(Mf.a)({color:o},c):c,label:void 0}}),l=Gf({},s,{options:{tooltip:!1}}),u=(null==a?void 0:a.state)||n.state,h=Gf({},s,{options:{tooltip:!1,state:u}});return sd(s),ld(h),id(l),t}function Oj(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Wf(Hp(((e={})[o]=r,e[a]=i,e)))(t)}function jj(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:o}),t}function wj(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function Mj(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Xf(e,"line");if(r){var a=r.fields,c=r.callback,s=Object(Mf.c)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:Zf(s)})}else o.label(!1);return t}function Sj(t){return Wf(xj,Oj,Np,jj,wj,Bp,Dp,Mj,Rp,_p,Vp())(t)}kr("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),r=n.shared,i=n.title,o=t.prototype.getTooltipItems.call(this,e);if(o.length>0){var a=this.view.geometries[0],c=a.dataArray,l=o[0].name,u=[];return c.forEach((function(t){t.forEach((function(t){var e,n=mo.getTooltipItems(t,a)[0];if(!r&&n&&n.name===l){var o=Object(s.K)(i)?l:i;u.push(Object(Mf.a)(Object(Mf.a)({},n),{name:n.title,title:o}))}else if(r&&n){var o=Object(s.K)(i)?n.name||l:i;u.push(Object(Mf.a)(Object(Mf.a)({},n),{name:n.title,title:o}))}}))})),u}return[]},e}(Kr)),Oe("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.init=function(){var t;this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,e;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t;this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){var t;return this.context.view.getController("radar-tooltip")},e}(ge)),Ln("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var Cj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return Object(Mf.b)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Gf({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return Sj},e}(yd);function Aj(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function Ej(t,e,n){var r=[];return t.forEach((function(t){var i=r.find((function(n){return n[e]===t[e]}));i?i[n]+=t[n]||null:r.push(Object(Mf.a)({},t))})),r}function kj(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,o=n.tooltip,a=n.colorField,c=n.type,s=n.xField,l=n.yField,u=n.data,h=n.shape,f=Lf(u,l),p;return e.data(f),cd(Gf({},t,{options:{tooltip:o,seriesField:a,interval:{style:r,color:i,shape:h||("line"===c?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}})),"line"===c&&ld({chart:e,options:{xField:s,yField:l,seriesField:a,point:{shape:"circle",color:i}}}),t}function Tj(t){var e,n=t.options,r=n.yField,i=n.xField,o=n.data,a=n.isStack,c=n.isGroup,s=n.colorField,l=n.maxAngle,u,h=Lf(a&&!c&&s?Ej(o,i,r):o,r);return Wf(Hp(((e={})[r]={min:0,max:Aj(l,r,h)},e)))(t)}function Pj(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function Ij(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function Fj(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=Xf(e,"interval");if(r){var a=r.callback,c=Object(Mf.c)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Object(Mf.a)(Object(Mf.a)({},Zf(c)),{type:"polar"})})}else o.label(!1);return t}function Lj(t){return Wf(Lp("barStyle"),kj,Tj,Ij,Pj,Rp,_p,Np,Dp,Bp,Vp(),Fj)(t)}var Bj=Gf({},yd.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),Dj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Bj},e.prototype.changeData=function(t){this.updateOption({data:t}),Tj({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Lj},e}(yd);function Rj(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.shape,a=n.color;return e.data(r),Wf(cd)(Gf({},t,{options:{marginRatio:1,interval:{style:i,color:a,shape:o}}})),t}function _j(t){var e=t.chart,n=t.options,r=n.label,i=n.xField,o=Xf(e,"interval");if(!1===r)o.label(!1);else if(Object(s.O)(r)){var a=r.callback,c=r.fields,l=Object(Mf.c)(r,["callback","fields"]),u=l.offset,h=l.layout;(void 0===u||u>=0)&&(h=h?Object(s.C)(h)?h:[h]:[],l.layout=Object(s.l)(h,(function(t){return"limit-in-shape"!==t.type})),l.layout.length||delete l.layout),o.label({fields:c||[i],callback:a,cfg:Zf(l)})}else Tf(Cf.WARN,null===r,"the label option must be an Object."),o.label({fields:[i]});return t}function Nj(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function zj(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function Yj(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return Wf(Hp(((e={})[o]=r,e[a]=i,e)))(t)}function Gj(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function Hj(t){Wf(Lp("sectorStyle"),Rj,Yj,_j,zj,Gj,Nj,Dp,Rp,_p,Np,Vp(),zp)(t)}var Vj=Gf({},yd.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),Wj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return Vj},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Hj},e}(yd),Xj="x",$j="y",qj="name",Uj="nodes",Kj="edges";function Zj(t,e,n){var r=[];return t.forEach((function(t){var i=t[e],o=t[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)})),r}function Qj(t,e,n,r){var i={};return e.forEach((function(t){i[t]={},e.forEach((function(e){i[t][e]=0}))})),t.forEach((function(t){i[t[n]][t[r]]=1})),i}function Jj(t,e,n){if(!Object(s.C)(t))return[];var r=[],i=Zj(t,e,n),o=Qj(t,i,e,n),a={};function c(t){a[t]=1,i.forEach((function(e){if(0!=o[t][e])if(1==a[e])r.push("".concat(t,"_").concat(e));else{if(-1==a[e])return;c(e)}})),a[t]=-1}return i.forEach((function(t){a[t]=0})),i.forEach((function(t){-1!=a[t]&&c(t)})),0!==r.length&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),t.filter((function(t){return r.findIndex((function(r){return r==="".concat(t[e],"_").concat(t[n])}))<0}))}function tw(t){return t.target.depth}function ew(t){return t.depth}function nw(t,e){return e-1-t.height}function rw(t,e){return t.sourceLinks.length?t.depth:e-1}function iw(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(s.cb)(t.sourceLinks,tw)-1:0}function ow(t){return function(){return t}}function aw(t,e){for(var n=0,r=0;r<t.length;r++)n+=e(t[r]);return n}function cw(t,e){for(var n=-1/0,r=0;r<t.length;r++)n=Math.max(e(t[r]),n);return n}function sw(t,e){for(var n=1/0,r=0;r<t.length;r++)n=Math.min(e(t[r]),n);return n}function lw(t,e){return hw(t.source,e.source)||t.index-e.index}function uw(t,e){return hw(t.target,e.target)||t.index-e.index}function hw(t,e){return t.y0-e.y0}function fw(t){return t.value}function pw(t){return t.index}function dw(t){return t.nodes}function gw(t){return t.links}function yw(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function vw(t){for(var e,n=0,r=t.nodes;n<r.length;n++){for(var i=r[n],o=i.y0,a=o,c=0,s=i.sourceLinks;c<s.length;c++){var l;(l=s[c]).y0=o+l.width/2,o+=l.width}for(var u=0,h=i.targetLinks;u<h.length;u++){var l;(l=h[u]).y1=a+l.width/2,a+=l.width}}}function mw(){var t=0,e=0,n=1,r=1,i=24,o=8,a,c=pw,s=rw,l,u,h,f=dw,p=gw,d=6;function g(t){var e={nodes:f(t),links:p(t)};return y(e),v(e),m(e),b(e),j(e),vw(e),e}function y(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var r=new Map(e.map((function(t){return[c(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,i=t.target;"object"!=typeof n&&(n=t.source=yw(r,n)),"object"!=typeof i&&(i=t.target=yw(r,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),null!=h)for(var i=0,o=e;i<o.length;i++){var a=o[i],s=a.sourceLinks,l=a.targetLinks;s.sort(h),l.sort(h)}}function v(t){for(var e,n=0,r=t.nodes;n<r.length;n++){var i=r[n];i.value=void 0===i.fixedValue?Math.max(aw(i.sourceLinks,fw),aw(i.targetLinks,fw)):i.fixedValue}}function m(t){for(var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;r.size;){if(r.forEach((function(t){t.depth=o;for(var e=0,n=t.sourceLinks;e<n.length;e++){var r=n[e].target;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}if(l)for(var a=Math.max(cw(e,(function(t){return t.depth}))+1,0),c=void 0,s=0;s<e.length;s++)(c=e[s]).depth=l.call(null,c,a)}function b(t){for(var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;r.size;){if(r.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var r=n[e].source;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}}function x(e){for(var r=e.nodes,o=Math.max(cw(r,(function(t){return t.depth}))+1,0),a=(n-t-i)/(o-1),c=new Array(o).fill(0).map((function(){return[]})),l=0,h=r;l<h.length;l++){var f=h[l],p=Math.max(0,Math.min(o-1,Math.floor(s.call(null,f,o))));f.layer=p,f.x0=t+p*a,f.x1=f.x0+i,c[p]?c[p].push(f):c[p]=[f]}if(u)for(var d=0,g=c;d<g.length;d++){var y;g[d].sort(u)}return c}function O(t){for(var n=sw(t,(function(t){return(r-e-(t.length-1)*a)/aw(t,fw)})),i=0,o=t;i<o.length;i++){for(var c=o[i],s=e,l=0,u=c;l<u.length;l++){var h;(h=u[l]).y0=s,h.y1=s+h.value*n,s=h.y1+a;for(var f=0,p=h.sourceLinks;f<p.length;f++){var d=p[f];d.width=d.value*n}}s=(r-s+a)/(c.length+1);for(var g=0;g<c.length;++g){var h;(h=c[g]).y0+=s*(g+1),h.y1+=s*(g+1)}k(c)}}function j(t){var n=x(t);a=Math.min(o,(r-e)/(cw(n,(function(t){return t.length}))-1)),O(n);for(var i=0;i<d;++i){var c=Math.pow(.99,i),s=Math.max(1-c,(i+1)/d);M(n,c,s),w(n,c,s)}}function w(t,e,n){for(var r=1,i=t.length;r<i;++r){for(var o=t[r],a=0,c=o;a<c.length;a++){for(var s=c[a],l=0,h=0,f=0,p=s.targetLinks;f<p.length;f++){var d=p[f],g=d.source,y,v=d.value*(s.layer-g.layer);l+=T(g,s)*v,h+=v}if(h>0){var m=(l/h-s.y0)*e;s.y0+=m,s.y1+=m,E(s)}}void 0===u&&o.sort(hw),o.length&&S(o,n)}}function M(t,e,n){for(var r,i=t.length-2;i>=0;--i){for(var o=t[i],a=0,c=o;a<c.length;a++){for(var s=c[a],l=0,h=0,f=0,p=s.sourceLinks;f<p.length;f++){var d=p[f],g=d.target,y,v=d.value*(g.layer-s.layer);l+=P(s,g)*v,h+=v}if(h>0){var m=(l/h-s.y0)*e;s.y0+=m,s.y1+=m,E(s)}}void 0===u&&o.sort(hw),o.length&&S(o,n)}}function S(t,n){var i=t.length>>1,o=t[i];A(t,o.y0-a,i-1,n),C(t,o.y1+a,i+1,n),A(t,r,t.length-1,n),C(t,e,0,n)}function C(t,e,n,r){for(;n<t.length;++n){var i=t[n],o=(e-i.y0)*r;o>1e-6&&(i.y0+=o,i.y1+=o),e=i.y1+a}}function A(t,e,n,r){for(;n>=0;--n){var i=t[n],o=(i.y1-e)*r;o>1e-6&&(i.y0-=o,i.y1-=o),e=i.y0-a}}function E(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===h){for(var r=0,i=n;r<i.length;r++){var o;i[r].source.sourceLinks.sort(uw)}for(var a=0,c=e;a<c.length;a++){var s;c[a].target.targetLinks.sort(lw)}}}function k(t){if(void 0===h)for(var e=0,n=t;e<n.length;e++){var r=n[e],i=r.sourceLinks,o=r.targetLinks;i.sort(uw),o.sort(lw)}}function T(t,e){for(var n=t.y0-(t.sourceLinks.length-1)*a/2,r=0,i=t.sourceLinks;r<i.length;r++){var o=i[r],c=o.target,s=o.width;if(c===e)break;n+=s+a}for(var l=0,u=e.targetLinks;l<u.length;l++){var h=u[l],c=h.source,s=h.width;if(c===t)break;n-=s}return n}function P(t,e){for(var n=e.y0-(e.targetLinks.length-1)*a/2,r=0,i=e.targetLinks;r<i.length;r++){var o=i[r],c=o.source,s=o.width;if(c===t)break;n+=s+a}for(var l=0,u=t.sourceLinks;l<u.length;l++){var h=u[l],c=h.target,s=h.width;if(c===e)break;n-=s}return n}return g.update=function(t){return vw(t),t},g.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:ow(t),g):c},g.nodeAlign=function(t){return arguments.length?(s="function"==typeof t?t:ow(t),g):s},g.nodeDepth=function(t){return arguments.length?(l=t,g):l},g.nodeSort=function(t){return arguments.length?(u=t,g):u},g.nodeWidth=function(t){return arguments.length?(i=+t,g):i},g.nodePadding=function(t){return arguments.length?(o=a=+t,g):o},g.nodes=function(t){return arguments.length?(f="function"==typeof t?t:ow(t),g):f},g.links=function(t){return arguments.length?(p="function"==typeof t?t:ow(t),g):p},g.linkSort=function(t){return arguments.length?(h=t,g):h},g.size=function(i){return arguments.length?(t=e=0,n=+i[0],r=+i[1],g):[n-t,r-e]},g.extent=function(i){return arguments.length?(t=+i[0][0],n=+i[1][0],e=+i[0][1],r=+i[1][1],g):[[t,e],[n,r]]},g.iterations=function(t){return arguments.length?(d=+t,g):d},g}var bw={left:ew,right:nw,center:iw,justify:rw},xw={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0},Ow;function jw(t){var e;return(Object(s.Q)(t)?bw[t]:Object(s.I)(t)?t:null)||rw}function ww(t){return Object(s.b)({},xw,t)}function Mw(t,e){var n=ww(t),r=n.nodeId,i=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,c=n.nodePadding,s=n.nodeDepth,l,u=mw().nodeSort(i).nodeWidth(a).nodePadding(c).nodeDepth(s).nodeAlign(jw(o)).extent([[0,0],[1,1]]).nodeId(r)(e),h,f;return{nodes:u.nodes.map((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;return t.x=[e,n,n,e],t.y=[r,r,i,i],t})).filter((function(t){return null!==t.name})),links:u.links.map((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}))}}function Sw(t){return"node-link"===t}function Cw(t,e,n){return tp(t)?t/n:e}function Aw(t,e,n){return tp(t)?t/n:e}function Ew(t,e,n){var r=t.dataType,i=t.data,o=t.sourceField,a=t.targetField,c=t.weightField,s=t.nodeAlign,l=t.nodeSort,u=t.nodePadding,h=t.nodePaddingRatio,f=t.nodeWidth,p=t.nodeWidthRatio,d=t.nodeDepth,g=t.rawFields,y=void 0===g?[]:g,v;v=Sw(r)?i:Ff(Jj(i,o,a),o,a,c,y);var m=Mw({nodeAlign:s,nodePadding:Aw(u,h,n),nodeWidth:Cw(f,p,e),nodeSort:l,nodeDepth:d},v),b=m.nodes,x=m.links;return{nodes:b.map((function(t){return Object(Mf.a)(Object(Mf.a)({},Pf(t,Object(Mf.d)(["x","y","name"],y,!0))),{isNode:!0})})),edges:x.map((function(t){return Object(Mf.a)(Object(Mf.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Pf(t,Object(Mf.d)(["x","y","value"],y,!0))),{isNode:!1})}))}}function kw(t){var e,n=t.options.rawFields,r=void 0===n?[]:n;return Gf({},{options:{tooltip:{fields:Object(s.ub)(Object(Mf.d)(["name","source","target","value","isNode"],r,!0))},label:{fields:Object(s.ub)(Object(Mf.d)(["x","name"],r,!0))}}},t)}function Tw(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,c=n.tooltip,s=n.nodeState,l=n.edgeState,u=n.rawFields,h=void 0===u?[]:u;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var f=Ew(n,e.width,e.height),p=f.nodes,d=f.edges,g=e.createView({id:"edges"});g.data(d),od({chart:g,options:{xField:"x",yField:"y",seriesField:"name",rawFields:Object(Mf.d)(["source","target"],h,!0),edge:{color:r,style:o,shape:"arc"},tooltip:c,state:l}});var y=e.createView({id:"nodes"});return y.data(p),ud({chart:y,options:{xField:"x",yField:"y",seriesField:"name",polygon:{color:r,style:i},label:a,tooltip:c,state:s}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function Pw(t){var e=t.chart,n,r,i;return vp(e,t.options.animation,Object(Mf.d)(Object(Mf.d)([],e.views[0].geometries,!0),e.views[1].geometries,!0)),t}function Iw(t){var e=t.chart,n,r,i="sankey-node-draggable";return t.options.nodeDraggable?e.interaction(i):e.removeInteraction(i),t}function Fw(t){var e=t.chart,n=t.options,r=n.interactions,i=void 0===r?[]:r,o=[].concat(i,n.nodeInteractions||[]),a=[].concat(i,n.edgeInteractions||[]),c=dp(e,"nodes"),s=dp(e,"edges");return o.forEach((function(t){!1===(null==t?void 0:t.enable)?c.removeInteraction(t.type):c.interaction(t.type,t.cfg||{})})),a.forEach((function(t){!1===(null==t?void 0:t.enable)?s.removeInteraction(t.type):s.interaction(t.type,t.cfg||{})})),t}function Lw(t){return Wf(kw,Tw,Fw,Iw,Pw,Np)(t)}Oe("sankey-node-drag",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return Object(Mf.b)(e,t),e.prototype.isNodeElement=function(){var t=Object(s.s)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return dp(this.context.view,"nodes")},e.prototype.getEdgeView=function(){return dp(this.context.view,"edges")},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:Object(s.s)(this.context,"event.x"),y:Object(s.s)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:Object(s.s)(this.context,"event.x"),y:Object(s.s)(this.context,"event.y")},n=e.x-this.prevPoint.x,r=e.y-this.prevPoint.y,i=this.getNodeView(),o=i.geometries[0].elements[this.currentElementIdx];if(o&&o.getModel()){var a=o.getModel().data,c=i.getOptions().data,l=i.getCoordinate(),u={x:n/l.getWidth(),y:r/l.getHeight()},h=Object(Mf.a)(Object(Mf.a)({},a),{x:a.x.map((function(t){return t+u.x})),y:a.y.map((function(t){return t+u.y}))}),f=Object(Mf.d)([],c,!0);f[this.currentElementIdx]=h,i.data(f);var p=a.name,d=this.getEdgeView(),g=d.getOptions().data;g.forEach((function(t){t.source===p&&(t.x[0]+=u.x,t.x[1]+=u.x,t.y[0]+=u.y,t.y[1]+=u.y),t.target===p&&(t.x[2]+=u.x,t.x[3]+=u.x,t.y[2]+=u.y,t.y[3]+=u.y)})),d.data(g),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(ge)),Ln("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});var Bw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){var e;return t.name},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!Object(s.s)(t,[0,"data","isNode"])},formatter:function(t){var e,n,r;return{name:t.source+" -> "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=Ew(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=dp(this.chart,"nodes"),o=dp(this.chart,"edges");i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return Lw},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(yd),Dw="ancestor-node",Rw="value",_w="path",Nw=["path","nodeIndex","nodeAncestor","childNodeCount","name","depth","height"],zw=Gf({},yd.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),Yw=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Gw=function(t,e,n,r,i){for(var o=t.children,a,c=-1,s=o.length,l=t.value&&(r-e)/t.value;++c<s;)(a=o[c]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*l},Hw=function(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(o(e,a)),r&&i.eachBefore(Yw),i}function o(t,e){return function(r){r.children&&Gw(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,c=r.y1-n;a<i&&(i=a=(i+a)/2),c<o&&(o=c=(o+c)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=c}}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i},Vw={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function Ww(t,e){var n=(e=Object(s.b)({},Vw,e)).as,r;if(!Object(s.C)(n)||2!==n.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=Gx(e)}catch(t){console.warn(t)}var i,o=function(t){return Hw().size(e.size).round(e.round).padding(e.padding)(Px(t).sum((function(t){return Object(s.mb)(t.children)?e.ignoreParentValue?0:t[r]-Object(s.ib)(t.children,(function(t,e){return t+e[r]}),0):t[r]})).sort(e.sort))}(t),a=n[0],c=n[1];return o.each((function(t){var e,r;t[a]=[t.x0,t.x1,t.x1,t.x0],t[c]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(r=t.data)||void 0===r?void 0:r.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===n.indexOf(e)&&delete t[e]}))})),Hx(o)}function Xw(t,e){return t.parent===e.parent?1:2}function $w(t){return t.reduce(qw,0)/t.length}function qw(t,e){return t+e.x}function Uw(t){return 1+t.reduce(Kw,0)}function Kw(t,e){return Math.max(t,e.y)}function Zw(t){for(var e;e=t.children;)t=e[0];return t}function Qw(t){for(var e;e=t.children;)t=e[e.length-1];return t}var Jw=function(){var t=Xw,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=$w(n),e.y=Uw(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var c=Zw(i),s=Qw(i),l=c.x-t(c,s)/2,u=s.x+t(s,c)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(u-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},tM={depth:-1},eM={};function nM(t){return t.id}function rM(t){return t.parentId}var iM=function(){var t=nM,e=rM;function n(n){var r=Array.from(n),i=r.length,o,a,c,s,l,u,h,f=new Map;for(a=0;a<i;++a)o=r[a],l=r[a]=new Rx(o),null!=(u=t(o,a,n))&&(u+="")&&(h=l.id=u,f.set(h,f.has(h)?eM:l)),null!=(u=e(o,a,n))&&(u+="")&&(l.parent=u);for(a=0;a<i;++a)if(u=(l=r[a]).parent){if(!(s=f.get(u)))throw new Error("missing: "+u);if(s===eM)throw new Error("ambiguous: "+u);s.children?s.children.push(l):s.children=[l],l.parent=s}else{if(c)throw new Error("multiple roots");c=l}if(!c)throw new Error("no root");if(c.parent=tM,c.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(Dx),c.parent=null,i>0)throw new Error("cycle");return c}return n.id=function(e){return arguments.length?(t=sx(e),n):t},n.parentId=function(t){return arguments.length?(e=sx(t),n):e},n};function oM(t,e){return t.parent===e.parent?1:2}function aM(t){var e=t.children;return e?e[0]:t.t}function cM(t){var e=t.children;return e?e[e.length-1]:t.t}function sM(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function lM(t){for(var e=0,n=0,r=t.children,i=r.length,o;--i>=0;)(o=r[i]).z+=e,o.m+=e,e+=o.s+(n+=o.c)}function uM(t,e,n){return t.a.parent===e.parent?t.a:n}function hM(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function fM(t){for(var e=new hM(t,0),n,r=[e],i,o,a,c;n=r.pop();)if(o=n._.children)for(n.children=new Array(c=o.length),a=c-1;a>=0;--a)r.push(i=n.children[a]=new hM(o[a],a)),i.parent=n;return(e.parent=new hM(null,0)).children=[e],e}hM.prototype=Object.create(Rx.prototype);var pM=function(){var t=oM,e=1,n=1,r=null;function i(i){var c=fM(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(s);else{var l=i,u=i,h=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>u.x&&(u=t),t.depth>h.depth&&(h=t)}));var f=l===u?1:t(l,u)/2,p=f-l.x,d=e/(u.x+f+p),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){lM(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=c(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function c(e,n,r){if(n){for(var i=e,o=e,a=n,c=i.parent.children[0],s=i.m,l=o.m,u=a.m,h=c.m,f;a=cM(a),i=aM(i),a&&i;)c=aM(c),(o=cM(o)).a=e,(f=a.z+u-i.z-s+t(a._,i._))>0&&(sM(uM(a,e,r),e,f),s+=f,l+=f),u+=a.m,s+=i.m,h+=c.m,l+=o.m;a&&!cM(o)&&(o.t=a,o.m+=u-l),i&&!aM(c)&&(c.t=i,c.m+=s-h,r=e)}return r}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},dM=function(t,e,n,r,i){for(var o=t.children,a,c=-1,s=o.length,l=t.value&&(i-n)/t.value;++c<s;)(a=o[c]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*l},gM=(1+Math.sqrt(5))/2;function yM(t,e,n,r,i,o){for(var a=[],c=e.children,s,l,u=0,h=0,f=c.length,p,d,g=e.value,y,v,m,b,x,O,j;u<f;){p=i-n,d=o-r;do{y=c[h++].value}while(!y&&h<f);for(v=m=y,j=y*y*(O=Math.max(d/p,p/d)/(g*t)),x=Math.max(m/j,j/v);h<f;++h){if(y+=l=c[h].value,l<v&&(v=l),l>m&&(m=l),j=y*y*O,(b=Math.max(m/j,j/v))>x){y-=l;break}x=b}a.push(s={value:y,dice:p<d,children:c.slice(u,h)}),s.dice?Gw(s,n,r,i,g?r+=d*y/g:o):dM(s,n,r,g?n+=p*y/g:i,o),g-=y,u=h}return a}var vM=function t(e){function n(t,n,r,i,o){yM(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(gM),mM=function(){var t=vM,e=!1,n=1,r=1,i=[0],o=lx,a=lx,c=lx,s=lx,l=lx;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(Yw),t}function h(e){var n=i[e.depth],r=e.x0+n,u=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<u&&(u=f=(u+f)/2),e.x0=r,e.y0=u,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,u+=a(e)-n,(h-=c(e)-n)<r&&(r=h=(r+h)/2),(f-=s(e)-n)<u&&(u=f=(u+f)/2),t(e,r,u,h,f))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],r=+t[1],u):[n,r]},u.tile=function(e){return arguments.length?(t=sx(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:ux(+t),u):o},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:ux(+t),u):a},u.paddingRight=function(t){return arguments.length?(c="function"==typeof t?t:ux(+t),u):c},u.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:ux(+t),u):s},u.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:ux(+t),u):l},u},bM=function(t,e,n,r,i){var o=t.children,a,c=o.length,s,l=new Array(c+1);for(l[0]=s=a=0;a<c;++a)l[a+1]=s+=o[a].value;function u(t,e,n,r,i,a,c){if(t>=e-1){var s=o[t];return s.x0=r,s.y0=i,s.x1=a,void(s.y1=c)}for(var h=l[t],f=n/2+h,p=t+1,d=e-1;p<d;){var g=p+d>>>1;l[g]<f?p=g+1:d=g}f-l[p-1]<l[p]-f&&t+1<p&&--p;var y=l[p]-h,v=n-y;if(a-r>c-i){var m=n?(r*v+a*y)/n:a;u(t,p,y,r,i,m,c),u(p,e,v,m,i,a,c)}else{var b=n?(i*v+c*y)/n:c;u(t,p,y,r,i,a,b),u(p,e,v,r,b,a,c)}}u(0,c,t.value,e,n,r,i)},xM=function(t,e,n,r,i){(1&t.depth?dM:Gw)(t,e,n,r,i)},OM=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,c,s,l,u=-1,h,f=a.length,p=t.value;++u<f;){for(s=(c=a[u]).children,l=c.value=0,h=s.length;l<h;++l)c.value+=s[l].value;c.dice?Gw(c,n,r,i,p?r+=(o-r)*c.value/p:o):dM(c,n,r,p?n+=(i-n)*c.value/p:i,o),p-=c.value}else t._squarify=a=yM(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(gM),jM={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function wM(t,e){return"treemapSquarify"===t?i[t].ratio(e):i[t]}function MM(t,e){var n=(e=Object(s.b)({},jM,e)).as,r;if(!Object(s.C)(n)||2!==n.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=Gx(e)}catch(t){console.warn(t)}var i=wM(e.tile,e.ratio),o,a=function(t){return mM().tile(i).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(Px(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[r]})).sort(e.sort))}(t),c=n[0],l=n[1];return a.each((function(t){t[c]=[t.x0,t.x1,t.x1,t.x0],t[l]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===n.indexOf(e)&&delete t[e]}))})),Hx(a)}function SM(t){var e=t.data,n=t.colorField,r=t.rawFields,i=t.hierarchyConfig,o=void 0===i?{}:i,a=o.activeDepth,c={partition:Ww,treemap:MM},l=t.seriesField,u=t.type||"partition",h=c[u](e,Object(Mf.a)(Object(Mf.a)({field:l||"value"},Object(s.gb)(o,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),f=[];return h.forEach((function(t){var e,i,c,s,u,h;if(0===t.depth)return null;if(a>0&&t.depth>a)return null;for(var p=t.data.name,d=Object(Mf.a)({},t);d.depth>1;)p="".concat(null===(i=d.parent.data)||void 0===i?void 0:i.name," / ").concat(p),d=d.parent;var g=Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},Pf(t.data,Object(Mf.d)(Object(Mf.d)([],r||[],!0),[o.field],!1))),((e={}).path=p,e["ancestor-node"]=d.data.name,e)),t);l&&(g[l]=t.data[l]||(null===(s=null===(c=t.parent)||void 0===c?void 0:c.data)||void 0===s?void 0:s[l])),n&&(g[n]=t.data[n]||(null===(h=null===(u=t.parent)||void 0===u?void 0:u.data)||void 0===h?void 0:h[n])),g.ext=o,g[Gb]={hierarchyConfig:o,colorField:n,rawFields:r},f.push(g)})),f}function CM(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=void 0===i?"ancestor-node":i,a=n.sunburstStyle,c=n.rawFields,l=void 0===c?[]:c,u=n.shape,h=SM(n),f;return e.data(h),a&&(f=function(t){return Gf({},{fillOpacity:Math.pow(.85,t.depth)},Object(s.I)(a)?a(t):a)}),ud(Gf({},t,{options:{xField:"x",yField:"y",seriesField:o,rawFields:Object(s.ub)(Object(Mf.d)(Object(Mf.d)([],Nw,!0),l,!0)),polygon:{color:r,style:f,shape:u}}})),t}function AM(t){var e;return t.chart.axis(!1),t}function EM(t){var e=t.chart,n,r=t.options.label,i=Xf(e,"polygon");if(r){var o=r.fields,a=void 0===o?["name"]:o,c=r.callback,s=Object(Mf.c)(r,["fields","callback"]);i.label({fields:a,callback:c,cfg:Zf(s)})}else i.label(!1);return t}function kM(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function TM(t){var e,n=t.options,r=n.hierarchyConfig,i=n.meta;return Wf(Hp({},((e={}).value=Object(s.s)(i,Object(s.s)(r,["field"],"value")),e)))(t)}function PM(t){var e=t.chart,n,r=t.options.tooltip;if(!1===r)e.tooltip(!1);else{var i=r;Object(s.s)(r,"fields")||(i=Gf({},{customItems:function(t){return t.map((function(t){var n=Object(s.s)(e.getOptions(),"scales"),r=Object(s.s)(n,["path","formatter"],(function(t){return t})),i=Object(s.s)(n,["value","formatter"],(function(t){return t}));return Object(Mf.a)(Object(Mf.a)({},t),{name:r(t.data.path),value:i(t.data.value)})}))}},i)),e.tooltip(i)}return t}function IM(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?Gf({},t,{interactions:Object(Mf.d)(Object(Mf.d)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:SM}}],!1)}):t}function FM(t){var e=t.chart,n=t.options,r=n.drilldown;return Rp({chart:e,options:IM(n)}),(null==r?void 0:r.enabled)&&(e.appendPadding=rp(e.appendPadding,Object(s.s)(r,["breadCrumb","position"]))),t}function LM(t){return Wf(Np,Lp("sunburstStyle"),CM,AM,TM,Bp,kM,PM,EM,FM,_p,Vp())(t)}var BM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return zw},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return LM},e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_PATH_FIELD="path",e.NODE_ANCESTORS_FIELD="nodeAncestor",e}(yd);function DM(t,e){if(Object(s.C)(t))return t.find((function(t){return t.type===e}))}function RM(t,e){var n=DM(t,e);return n&&!1!==n.enable}function _M(t){var e=t.interactions,n=t.drilldown;return Object(s.s)(n,"enabled")||RM(e,"treemap-drill-down")}function NM(t){var e=t.interactions["drill-down"],n;e&&e.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()}function zM(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,i=t.hierarchyConfig,o=MM(e,Object(Mf.a)(Object(Mf.a)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(t){if(0===t.depth)return null;if(r&&1!==t.depth)return null;if(!r&&t.children)return null;var o=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),c=r&&Object(s.C)(e.path)?o.concat(e.path.slice(1)):o,l=Object.assign({},t.data,Object(Mf.a)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:c},t));if(!t.data[n]&&t.parent){var u=t.ancestors().find((function(t){return t.data[n]}));l[n]=null==u?void 0:u.data[n]}else l[n]=t.data[n];l[Gb]={hierarchyConfig:i,colorField:n,enableDrillDown:r},a.push(l)})),a}function YM(t){var e,n=t.options.colorField;return Gf({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function GM(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,a=n.hierarchyConfig,c=n.rawFields,s=zM({data:n.data,colorField:n.colorField,enableDrillDown:_M(n),hierarchyConfig:a});return e.data(s),ud(Gf({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:c,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function HM(t){var e;return t.chart.axis(!1),t}function VM(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n,i;return _M(t)?Gf({},t,{interactions:Object(Mf.d)(Object(Mf.d)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:zM}}],!1)}):t}function WM(t){var e=t.chart,n=t.options,r=n.interactions,i=n.drilldown;Rp({chart:e,options:VM(n)});var o=DM(r,"view-zoom"),a;return o&&(!1!==o.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel")),_M(n)&&(e.appendPadding=rp(e.appendPadding,Object(s.s)(i,["breadCrumb","position"]))),t}function XM(t){return Wf(YM,Np,Lp("rectStyle"),GM,HM,Bp,Dp,WM,_p,Vp())(t)}var $M={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},qM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return $M},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var o=zM({data:t,colorField:n,enableDrillDown:RM(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(o),NM(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return XM},e}(yd),UM="id",KM="path",ZM={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function QM(t){var e;t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}var JM,tS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.syncElementsPos=function(){QM(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(xe("element-active")),eS,nS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.syncElementsPos=function(){QM(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(xe("element-highlight")),rS=xe("element-selected"),iS=xe("element-single-selected"),oS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.syncElementsPos=function(){QM(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(rS),aS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.syncElementsPos=function(){QM(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(iS),cS;Oe("venn-element-active",tS),Oe("venn-element-highlight",nS),Oe("venn-element-selected",oS),Oe("venn-element-single-selected",aS),Ln("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Ln("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Ln("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Ln("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Ln("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Ln("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),pi("venn",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Mf.b)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,c=a.offsetX,s=a.offsetY;return{content:t.content[n],x:i+c,y:o+s}},e}(Hi));var sS,lS=Array.isArray,uS=n(22),hS,fS=uS.a.Symbol,pS=Object.prototype,dS=pS.hasOwnProperty,gS=pS.toString,yS=fS?fS.toStringTag:void 0;function vS(t){var e=dS.call(t,yS),n=t[yS];try{t[yS]=void 0;var r=!0}catch(t){}var i=gS.call(t);return r&&(e?t[yS]=n:delete t[yS]),i}var mS=vS,bS,xS=Object.prototype.toString;function OS(t){return xS.call(t)}var jS=OS,wS="[object Null]",MS="[object Undefined]",SS=fS?fS.toStringTag:void 0;function CS(t){return null==t?void 0===t?MS:wS:SS&&SS in Object(t)?mS(t):jS(t)}var AS=CS;function ES(t){return null!=t&&"object"==typeof t}var kS=ES,TS="[object String]";function PS(t){return"string"==typeof t||!lS(t)&&kS(t)&&AS(t)==TS}var IS=PS;function FS(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}var LS=FS;function BS(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),c=a.length;c--;){var s=a[t?c:++i];if(!1===n(o[s],s,o))break}return e}}var DS,RS,_S=BS();function NS(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var zS=NS,YS="[object Arguments]";function GS(t){return kS(t)&&AS(t)==YS}var HS=GS,VS=Object.prototype,WS=VS.hasOwnProperty,XS=VS.propertyIsEnumerable,$S,qS=HS(function(){return arguments}())?HS:function(t){return kS(t)&&WS.call(t,"callee")&&!XS.call(t,"callee")},US=n(52),KS=9007199254740991,ZS=/^(?:0|[1-9]\d*)$/;function QS(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ZS.test(t))&&t>-1&&t%1==0&&t<e}var JS=QS,tC=9007199254740991;function eC(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var nC=eC,rC="[object Arguments]",iC="[object Array]",oC="[object Boolean]",aC="[object Date]",cC="[object Error]",sC="[object Function]",lC="[object Map]",uC="[object Number]",hC="[object Object]",fC="[object RegExp]",pC="[object Set]",dC="[object String]",gC="[object WeakMap]",yC="[object ArrayBuffer]",vC="[object DataView]",mC,bC="[object Float64Array]",xC="[object Int8Array]",OC="[object Int16Array]",jC="[object Int32Array]",wC="[object Uint8Array]",MC="[object Uint8ClampedArray]",SC="[object Uint16Array]",CC="[object Uint32Array]",AC={};function EC(t){return kS(t)&&nC(t.length)&&!!AC[AS(t)]}AC["[object Float32Array]"]=AC[bC]=AC[xC]=AC[OC]=AC[jC]=AC[wC]=AC[MC]=AC[SC]=AC[CC]=!0,AC["[object Arguments]"]=AC[iC]=AC[yC]=AC[oC]=AC[vC]=AC[aC]=AC[cC]=AC[sC]=AC[lC]=AC[uC]=AC[hC]=AC[fC]=AC[pC]=AC["[object String]"]=AC[gC]=!1;var kC=EC;function TC(t){return function(e){return t(e)}}var PC=TC,IC=n(69),FC=IC.a&&IC.a.isTypedArray,LC,BC=FC?PC(FC):kC,DC,RC=Object.prototype.hasOwnProperty;function _C(t,e){var n=lS(t),r=!n&&qS(t),i=!n&&!r&&Object(US.a)(t),o=!n&&!r&&!i&&BC(t),a=n||r||i||o,c=a?zS(t.length,String):[],s=c.length;for(var l in t)!e&&!RC.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||JS(l,s))||c.push(l);return c}var NC=_C,zC=Object.prototype;function YC(t){var e=t&&t.constructor,n;return t===("function"==typeof e&&e.prototype||zC)}var GC=YC;function HC(t,e){return function(n){return t(e(n))}}var VC,WC,XC=HC(Object.keys,Object),$C,qC=Object.prototype.hasOwnProperty;function UC(t){if(!GC(t))return XC(t);var e=[];for(var n in Object(t))qC.call(t,n)&&"constructor"!=n&&e.push(n);return e}var KC=UC;function ZC(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var QC=ZC,JC="[object AsyncFunction]",tA="[object Function]",eA="[object GeneratorFunction]",nA="[object Proxy]";function rA(t){if(!QC(t))return!1;var e=AS(t);return e==tA||e==eA||e==JC||e==nA}var iA=rA;function oA(t){return null!=t&&nC(t.length)&&!iA(t)}var aA=oA;function cA(t){return aA(t)?NC(t):KC(t)}var sA=cA,lA;function uA(t,e){return t&&_S(t,e,sA)}function hA(t,e){return function(n,r){if(null==n)return n;if(!aA(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}var fA,pA,dA=hA(uA);function gA(t){return t}var yA=gA;function vA(t){return"function"==typeof t?t:yA}var mA=vA;function bA(t,e){var n;return(lS(t)?LS:dA)(t,mA(e))}var xA=bA,OA=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,jA=/[^\s\,]+/gi;function wA(t){var e=t||[];return lS(e)?e:IS(e)?(e=e.match(OA),xA(e,(function(t,n){if((t=t.match(jA))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}xA(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var MA=wA,SA=n(8);function CA(t,e,n,r){var i=[],o=!!r,a,c,s,l,u,h,f;if(o){s=r[0],l=r[1];for(var p=0,d=t.length;p<d;p+=1){var g=t[p];s=SA.b.min([0,0],s,g),l=SA.b.max([0,0],l,g)}}for(var p=0,y=t.length;p<y;p+=1){var g=t[p];if(0!==p||n)if(p!==y-1||n){var v;a=t[[p?p-1:y-1,p-1][n?0:1]],c=t[n?(p+1)%y:p+1];var m=[0,0];m=SA.b.sub(m,c,a),m=SA.b.scale(m,m,e);var b=SA.b.distance(g,a),x=SA.b.distance(g,c),O=b+x;0!==O&&(b/=O,x/=O);var j=SA.b.scale([0,0],m,-b),w=SA.b.scale([0,0],m,x);h=SA.b.add([0,0],g,j),u=SA.b.add([0,0],g,w),u=SA.b.min([0,0],u,SA.b.max([0,0],c,g)),u=SA.b.max([0,0],u,SA.b.min([0,0],c,g)),j=SA.b.sub([0,0],u,g),j=SA.b.scale([0,0],j,-b/x),h=SA.b.add([0,0],g,j),h=SA.b.min([0,0],h,SA.b.max([0,0],a,g)),h=SA.b.max([0,0],h,SA.b.min([0,0],a,g)),w=SA.b.sub([0,0],g,h),w=SA.b.scale([0,0],w,x/b),u=SA.b.add([0,0],g,w),o&&(h=SA.b.max([0,0],h,s),h=SA.b.min([0,0],h,l),u=SA.b.max([0,0],u,s),u=SA.b.min([0,0],u,l)),i.push(f),i.push(h),f=u}else h=g,i.push(f),i.push(h);else f=g}return n&&i.push(i.shift()),i}function AA(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var c=CA(i,.4,r,n),s=i.length,l=[],u,h,f,o=0;o<s-1;o+=1)u=c[2*o],h=c[2*o+1],f=i[o+1],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]]);return r&&(u=c[s],h=c[s+1],f=i[0],l.push(["C",u[0],u[1],h[0],h[1],f[0],f[1]])),l}var EA=AA;function kA(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function TA(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[],o;"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,c=1/n,s=0;s<n-1;s++){var l,u=kA(a,c/(1-c*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=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])}))}function PA(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(TA(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r}function IA(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var a=0;a<r;a++){var c=Math.floor(i*a);o[c]=(o[c]||0)+1}var s=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(PA(t[i],t[i+1],r))}),[]);return s.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||s.push("Z"),s}function FA(){this.__data__=[],this.size=0}var LA=FA;function BA(t,e){return t===e||t!=t&&e!=e}var DA=BA;function RA(t,e){for(var n=t.length;n--;)if(DA(t[n][0],e))return n;return-1}var _A=RA,NA,zA=Array.prototype.splice;function YA(t){var e=this.__data__,n=_A(e,t),r;return!(n<0)&&(n==e.length-1?e.pop():zA.call(e,n,1),--this.size,!0)}var GA=YA;function HA(t){var e=this.__data__,n=_A(e,t);return n<0?void 0:e[n][1]}var VA=HA;function WA(t){return _A(this.__data__,t)>-1}var XA=WA;function $A(t,e){var n=this.__data__,r=_A(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var qA=$A;function UA(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}UA.prototype.clear=LA,UA.prototype.delete=GA,UA.prototype.get=VA,UA.prototype.has=XA,UA.prototype.set=qA;var KA=UA;function ZA(){this.__data__=new KA,this.size=0}var QA=ZA;function JA(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var tE=JA;function eE(t){return this.__data__.get(t)}var nE=eE;function rE(t){return this.__data__.has(t)}var iE=rE,oE,aE=uS.a["__core-js_shared__"],cE=(sE=/[^.]+$/.exec(aE&&aE.keys&&aE.keys.IE_PROTO||""))?"Symbol(src)_1."+sE:"",sE;function lE(t){return!!cE&&cE in t}var uE=lE,hE,fE=Function.prototype.toString;function pE(t){if(null!=t){try{return fE.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var dE=pE,gE=/[\\^$.*+?()[\]{}|]/g,yE=/^\[object .+?Constructor\]$/,vE=Function.prototype,mE=Object.prototype,bE=vE.toString,xE=mE.hasOwnProperty,OE=RegExp("^"+bE.call(xE).replace(gE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jE(t){return!(!QC(t)||uE(t))&&(iA(t)?OE:yE).test(dE(t));var e}var wE=jE;function ME(t,e){return null==t?void 0:t[e]}var SE=ME;function CE(t,e){var n=SE(t,e);return wE(n)?n:void 0}var AE=CE,EE,kE=AE(uS.a,"Map"),TE,PE=AE(Object,"create");function IE(){this.__data__=PE?PE(null):{},this.size=0}var FE=IE;function LE(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var BE=LE,DE="__lodash_hash_undefined__",RE,_E=Object.prototype.hasOwnProperty;function NE(t){var e=this.__data__;if(PE){var n=e[t];return n===DE?void 0:n}return _E.call(e,t)?e[t]:void 0}var zE=NE,YE,GE=Object.prototype.hasOwnProperty;function HE(t){var e=this.__data__;return PE?void 0!==e[t]:GE.call(e,t)}var VE=HE,WE="__lodash_hash_undefined__";function XE(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=PE&&void 0===e?WE:e,this}var $E=XE;function qE(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}qE.prototype.clear=FE,qE.prototype.delete=BE,qE.prototype.get=zE,qE.prototype.has=VE,qE.prototype.set=$E;var UE=qE;function KE(){this.size=0,this.__data__={hash:new UE,map:new(kE||KA),string:new UE}}var ZE=KE;function QE(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var JE=QE;function tk(t,e){var n=t.__data__;return JE(e)?n["string"==typeof e?"string":"hash"]:n.map}var ek=tk;function nk(t){var e=ek(this,t).delete(t);return this.size-=e?1:0,e}var rk=nk;function ik(t){return ek(this,t).get(t)}var ok=ik;function ak(t){return ek(this,t).has(t)}var ck=ak;function sk(t,e){var n=ek(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var lk=sk;function uk(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}uk.prototype.clear=ZE,uk.prototype.delete=rk,uk.prototype.get=ok,uk.prototype.has=ck,uk.prototype.set=lk;var hk=uk,fk=200;function pk(t,e){var n=this.__data__;if(n instanceof KA){var r=n.__data__;if(!kE||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new hk(r)}return n.set(t,e),this.size=n.size,this}var dk=pk;function gk(t){var e=this.__data__=new KA(t);this.size=e.size}gk.prototype.clear=QA,gk.prototype.delete=tE,gk.prototype.get=nE,gk.prototype.has=iE,gk.prototype.set=dk;var yk=gk,vk="__lodash_hash_undefined__";function mk(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}var bk=mk;function xk(t){return this.__data__.has(t)}var Ok=xk;function jk(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new hk;++e<n;)this.add(t[e])}jk.prototype.add=jk.prototype.push=bk,jk.prototype.has=Ok;var wk=jk;function Mk(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Sk=Mk;function Ck(t,e){return t.has(e)}var Ak=Ck,Ek=1,kk=2;function Tk(t,e,n,r,i,o){var a=1&n,c=t.length,s=e.length;if(c!=s&&!(a&&s>c))return!1;var l=o.get(t),u=o.get(e);if(l&&u)return l==e&&u==t;var h=-1,f=!0,p=2&n?new wk:void 0;for(o.set(t,e),o.set(e,t);++h<c;){var d=t[h],g=e[h];if(r)var y=a?r(g,d,h,e,t,o):r(d,g,h,t,e,o);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!Sk(e,(function(t,e){if(!Ak(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==g&&!i(d,g,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}var Pk=Tk,Ik,Fk=uS.a.Uint8Array;function Lk(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Bk=Lk;function Dk(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Rk=Dk,_k=1,Nk=2,zk="[object Boolean]",Yk="[object Date]",Gk="[object Error]",Hk="[object Map]",Vk="[object Number]",Wk="[object RegExp]",Xk="[object Set]",$k="[object String]",qk="[object Symbol]",Uk="[object ArrayBuffer]",Kk="[object DataView]",Zk=fS?fS.prototype:void 0,Qk=Zk?Zk.valueOf:void 0;function Jk(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Fk(t),new Fk(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return DA(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Bk;case"[object Set]":var s=1&r;if(c||(c=Rk),t.size!=e.size&&!s)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var u=Pk(c(t),c(e),r,i,o,a);return a.delete(t),u;case qk:if(Qk)return Qk.call(t)==Qk.call(e)}return!1}var tT=Jk;function eT(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var nT=eT;function rT(t,e,n){var r=e(t);return lS(t)?r:nT(r,n(t))}var iT=rT;function oT(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var aT=oT;function cT(){return[]}var sT=cT,lT,uT=Object.prototype.propertyIsEnumerable,hT=Object.getOwnPropertySymbols,fT,pT=hT?function(t){return null==t?[]:(t=Object(t),aT(hT(t),(function(e){return uT.call(t,e)})))}:sT;function dT(t){return iT(t,sA,pT)}var gT=dT,yT=1,vT,mT=Object.prototype.hasOwnProperty;function bT(t,e,n,r,i,o){var a=1&n,c=gT(t),s=c.length,l,u;if(s!=gT(e).length&&!a)return!1;for(var h=s;h--;){var f=c[h];if(!(a?f in e:mT.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var y=a;++h<s;){var v=t[f=c[h]],m=e[f];if(r)var b=a?r(m,v,f,e,t,o):r(v,m,f,t,e,o);if(!(void 0===b?v===m||i(v,m,n,r,o):b)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(g=!1)}return o.delete(t),o.delete(e),g}var xT=bT,OT,jT=AE(uS.a,"DataView"),wT,MT=AE(uS.a,"Promise"),ST,CT=AE(uS.a,"Set"),AT,ET=AE(uS.a,"WeakMap"),kT="[object Map]",TT="[object Object]",PT="[object Promise]",IT="[object Set]",FT="[object WeakMap]",LT="[object DataView]",BT=dE(jT),DT=dE(kE),RT=dE(MT),_T=dE(CT),NT=dE(ET),zT=AS;(jT&&"[object DataView]"!=zT(new jT(new ArrayBuffer(1)))||kE&&"[object Map]"!=zT(new kE)||MT&&zT(MT.resolve())!=PT||CT&&"[object Set]"!=zT(new CT)||ET&&"[object WeakMap]"!=zT(new ET))&&(zT=function(t){var e=AS(t),n="[object Object]"==e?t.constructor:void 0,r=n?dE(n):"";if(r)switch(r){case BT:return"[object DataView]";case DT:return"[object Map]";case RT:return PT;case _T:return"[object Set]";case NT:return"[object WeakMap]"}return e});var YT=zT,GT=1,HT="[object Arguments]",VT="[object Array]",WT="[object Object]",XT,$T=Object.prototype.hasOwnProperty;function qT(t,e,n,r,i,o){var a=lS(t),c=lS(e),s=a?"[object Array]":YT(t),l=c?"[object Array]":YT(e),u="[object Object]"==(s="[object Arguments]"==s?"[object Object]":s),h="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),f=s==l;if(f&&Object(US.a)(t)){if(!Object(US.a)(e))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new yk),a||BC(t)?Pk(t,e,n,r,i,o):tT(t,e,s,n,r,i,o);if(!(1&n)){var p=u&&$T.call(t,"__wrapped__"),d=h&&$T.call(e,"__wrapped__");if(p||d){var g=p?t.value():t,y=d?e.value():e;return o||(o=new yk),i(g,y,n,r,o)}}return!!f&&(o||(o=new yk),xT(t,e,n,r,i,o))}var UT=qT;function KT(t,e,n,r,i){return t===e||(null==t||null==e||!kS(t)&&!kS(e)?t!=t&&e!=e:UT(t,e,n,r,KT,i))}var ZT=KT;function QT(t,e){return ZT(t,e)}var JT=QT;function tP(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var eP=function(t,e){var n=t.length,r=e.length,i,o,a=0;if(0===n||0===r)return null;for(var c=[],s=0;s<=n;s++)c[s]=[],c[s][0]={min:s};for(var l=0;l<=r;l++)c[0][l]={min:l};for(var s=1;s<=n;s++){i=t[s-1];for(var l=1;l<=r;l++){o=e[l-1],a=JT(i,o)?0:1;var u=c[s-1][l].min+1,h=c[s][l-1].min+1,f=c[s-1][l-1].min+a;c[s][l]=tP(u,h,f)}}return c};function nP(t,e){var n=eP(t,e),r=t.length,i=e.length,o=[],a=1,c=1;if(n[r][i]!==r){for(var s=1;s<=r;s++){var l=n[s][s].min;c=s;for(var u=a;u<=i;u++)n[s][u].min<l&&(l=n[s][u].min,c=u);a=c,n[s][a].type&&o.push({index:s-1,type:n[s][a].type})}for(var s=o.length-1;s>=0;s--)a=o[s].index,"add"===o[s].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}if((r=t.length)<i)for(var s=0;s<i-r;s++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}function rP(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function iP(t,e,n){for(var r=[].concat(t),i,o=1/(n+1),a=rP(e)[0],c=1;c<=n;c++)o*=c,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function oP(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=rP(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=iP(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=iP(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=iP(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}function aP(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}var cP="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",sP=new RegExp("([a-z])["+cP+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+cP+"]*,?["+cP+"]*)+)","ig"),lP=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+cP+"]*,?["+cP+"]*","ig");function uP(t){if(!t)return null;if(lS(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(sP,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(lP,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var hP=/[a-z]/;function fP(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function pP(t){var e=uP(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(hP.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,c=0,s=0,l=0,u=0,h,f,p=e[0];"M"!==p[0]&&"m"!==p[0]||(s=a=+p[1],l=c=+p[2],u++,o[0]=["M",a,c]);for(var r=u,d=e.length;r<d;r++){var g=e[r],y=o[r-1],v=[],i,m=(i=g[0]).toUpperCase();if(i!==m)switch(v[0]=m,m){case"A":v[1]=g[1],v[2]=g[2],v[3]=g[3],v[4]=g[4],v[5]=g[5],v[6]=+g[6]+a,v[7]=+g[7]+c;break;case"V":v[1]=+g[1]+c;break;case"H":v[1]=+g[1]+a;break;case"M":s=+g[1]+a,l=+g[2]+c,v[1]=s,v[2]=l;break;default:for(var b=1,x=g.length;b<x;b++)v[b]=+g[b]+(b%2?a:c)}else v=e[r];switch(m){case"Z":a=+s,c=+l;break;case"H":v=["L",a=v[1],c];break;case"V":v=["L",a,c=v[1]];break;case"T":a=v[1],c=v[2];var O=fP([y[1],y[2]],[y[3],y[4]]);v=["Q",O[0],O[1],a,c];break;case"S":a=v[v.length-2],c=v[v.length-1];var j=y.length,w=fP([y[j-4],y[j-3]],[y[j-2],y[j-1]]);v=["C",w[0],w[1],v[1],v[2],a,c];break;case"M":s=v[v.length-2],l=v[v.length-1];break;default:a=v[v.length-2],c=v[v.length-1]}o.push(v)}return o}var dP=2*Math.PI,gP=function(t,e,n,r,i,o,a){var c=t.x,s=t.y,l,u;return{x:r*(c*=e)-i*(s*=n)+o,y:i*c+r*s+a}},yP=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:o+a*n,y:a-o*n},{x:o,y:a}]},vP=function(t,e,n,r){var i,o=t*n+e*r;return o>1&&(o=1),o<-1&&(o=-1),(t*r-e*n<0?-1:1)*Math.acos(o)},mP=function(t,e,n,r,i,o,a,c,s,l,u,h){var f=Math.pow(i,2),p=Math.pow(o,2),d=Math.pow(u,2),g=Math.pow(h,2),y=f*p-f*g-p*d;y<0&&(y=0),y/=f*g+p*d;var v=(y=Math.sqrt(y)*(a===c?-1:1))*i/o*h,m=y*-o/i*u,b=l*v-s*m+(t+n)/2,x=s*v+l*m+(e+r)/2,O=(u-v)/i,j=(h-m)/o,w=(-u-v)/i,M=(-h-m)/o,S=vP(1,0,O,j),C=vP(O,j,w,M);return 0===c&&C>0&&(C-=dP),1===c&&C<0&&(C+=dP),[b,x,S,C]},bP=function(t){var e=t.px,n=t.py,r=t.cx,i=t.cy,o=t.rx,a=t.ry,c=t.xAxisRotation,s=void 0===c?0:c,l=t.largeArcFlag,u=void 0===l?0:l,h=t.sweepFlag,f=void 0===h?0:h,p=[];if(0===o||0===a)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var d=Math.sin(s*dP/360),g=Math.cos(s*dP/360),y=g*(e-r)/2+d*(n-i)/2,v=-d*(e-r)/2+g*(n-i)/2;if(0===y&&0===v)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];o=Math.abs(o),a=Math.abs(a);var m=Math.pow(y,2)/Math.pow(o,2)+Math.pow(v,2)/Math.pow(a,2);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));var b=mP(e,n,r,i,o,a,u,f,d,g,y,v),x=b[0],O=b[1],j=b[2],w=b[3],M=Math.abs(w)/(dP/4);Math.abs(1-M)<1e-7&&(M=1);var S=Math.max(Math.ceil(M),1);w/=S;for(var C=0;C<S;C++)p.push(yP(j,w)),j+=w;return p.map((function(t){var e=gP(t[0],o,a,g,d,x,O),n=e.x,r=e.y,i=gP(t[1],o,a,g,d,x,O),c=i.x,s=i.y,l=gP(t[2],o,a,g,d,x,O),u,h;return{x1:n,y1:r,x2:c,y2:s,x:l.x,y:l.y}}))};function xP(t,e,n,r,i,o,a,c,s){var l;return bP({px:t,py:e,cx:c,cy:s,rx:n,ry:r,xAxisRotation:i,largeArcFlag:o,sweepFlag:a}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.x,c=e.y;return t.push(n,r,i,o,a,c),t}),[])}function OP(t,e,n,r,i,o){var a=1/3,c=2/3;return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}function jP(t,e,n,r){return[t,e,n,r,n,r]}function wP(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),r=n[0],i=n[1];switch(t[0]){case"M":return e.x=r,e.y=i,t;case"A":return["C"].concat(xP.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=r,e.qy=i,["C"].concat(OP.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(jP(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat(jP(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat(jP(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat(jP(e.x1,e.y1,e.x,e.y))}return t}function MP(t,e){void 0===e&&(e=!1);for(var n=pP(t),r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},i=[],o="",a=n.length,c,s,l=[],u=0;u<a;u+=1)n[u]&&(o=n[u][0]),i[u]=o,n[u]=wP(n[u],r),SP(n,i,u),a=n.length,"Z"===o&&l.push(u),s=(c=n[u]).length,r.x1=+c[s-2],r.y1=+c[s-1],r.x2=+c[s-4]||r.x1,r.y2=+c[s-3]||r.y1;return e?[n,l]:n}function SP(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var CP=function(t,e,n,r,i){var o,a;return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},AP=function(t,e,n,r,i,o,a,c,s){null===s&&(s=1);for(var l=(s=s>1?1:s<0?0:s)/2,u=12,h=[-.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],p=0,d=0;d<u;d++){var g=l*h[d]+l,y=CP(g,t,n,i,a),v=CP(g,e,r,o,c),m=y*y+v*v;p+=f[d]*Math.sqrt(m)}return l*p},EP=function(t,e,n,r,i,o,a,c){for(var s=[],l=[[],[]],u,h,f,p,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(h=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*c,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&s.push(p)}else{var g=h*h-4*f*u,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*u);v>0&&v<1&&s.push(v);var m=(-h-y)/(2*u);m>0&&m<1&&s.push(m)}}for(var b=s.length,x=b,O;b--;)O=1-(p=s[b]),l[0][b]=O*O*O*t+3*O*O*p*n+3*O*p*p*i+p*p*p*a,l[1][b]=O*O*O*e+3*O*O*p*r+3*O*p*p*o+p*p*p*c;return l[0][x]=t,l[1][x]=e,l[0][x+1]=a,l[1][x+1]=c,l[0].length=l[1].length=x+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},kP=function(t,e,n,r,i,o,a,c){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,c)||Math.min(e,r)>Math.max(o,c))){var s,l,u=(t-n)*(o-c)-(e-r)*(i-a);if(u){var h=((t*r-e*n)*(i-a)-(t-n)*(i*c-o*a))/u,f=((t*r-e*n)*(o-c)-(e-r)*(i*c-o*a))/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,a).toFixed(2)||p>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,c).toFixed(2)||d>+Math.max(o,c).toFixed(2)))return{x:h,y:f}}}},TP=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},PP=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:aP(t,e,n,r),vb:[t,e,n,r].join(" ")}},IP=function(t,e){return t=PP(t),e=PP(e),TP(e,t.x,t.y)||TP(e,t.x2,t.y)||TP(e,t.x,t.y2)||TP(e,t.x2,t.y2)||TP(t,e.x,e.y)||TP(t,e.x2,e.y)||TP(t,e.x,e.y2)||TP(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},FP=function(t,e,n,r,i,o,a,c){lS(t)||(t=[t,e,n,r,i,o,a,c]);var s=EP.apply(null,t);return PP(s.min.x,s.min.y,s.max.x-s.min.x,s.max.y-s.min.y)},LP=function(t,e,n,r,i,o,a,c,s){var l=1-s,u=Math.pow(l,3),h=Math.pow(l,2),f=s*s,p=f*s,d,g,y=t+2*s*(n-t)+f*(i-2*n+t),v=e+2*s*(r-e)+f*(o-2*r+e),m=n+2*s*(i-n)+f*(a-2*i+n),b=r+2*s*(o-r)+f*(c-2*o+r),x,O,j,w,M;return{x:u*t+3*h*s*n+3*l*s*s*i+p*a,y:u*e+3*h*s*r+3*l*s*s*o+p*c,m:{x:y,y:v},n:{x:m,y:b},start:{x:l*t+s*n,y:l*e+s*r},end:{x:l*i+s*a,y:l*o+s*c},alpha:90-180*Math.atan2(y-m,v-b)/Math.PI}},BP=function(t,e,n){var r=FP(t),i=FP(e);if(!IP(r,i))return n?0:[];for(var o,a,c=~~(AP.apply(0,t)/8),s=~~(AP.apply(0,e)/8),l=[],u=[],h={},f=n?0:[],p=0;p<c+1;p++){var d=LP.apply(0,t.concat(p/c));l.push({x:d.x,y:d.y,t:p/c})}for(var p=0;p<s+1;p++){var d=LP.apply(0,e.concat(p/s));u.push({x:d.x,y:d.y,t:p/s})}for(var p=0;p<c;p++)for(var g=0;g<s;g++){var y=l[p],v=l[p+1],m=u[g],b=u[g+1],x=Math.abs(v.x-y.x)<.001?"y":"x",O=Math.abs(b.x-m.x)<.001?"y":"x",j=kP(y.x,y.y,v.x,v.y,m.x,m.y,b.x,b.y);if(j){if(h[j.x.toFixed(4)]===j.y.toFixed(4))continue;h[j.x.toFixed(4)]=j.y.toFixed(4);var w=y.t+Math.abs((j[x]-y[x])/(v[x]-y[x]))*(v.t-y.t),M=m.t+Math.abs((j[O]-m[O])/(b[O]-m[O]))*(b.t-m.t);w>=0&&w<=1&&M>=0&&M<=1&&(n?f++:f.push({x:j.x,y:j.y,t1:w,t2:M}))}}return f},DP=function(t,e,n){var r,i,o,a,c,s,l,u,h,f;t=MP(t),e=MP(e);for(var p=n?0:[],d=0,g=t.length;d<g;d++){var y=t[d];if("M"===y[0])r=c=y[1],i=s=y[2];else{"C"===y[0]?(h=[r,i].concat(y.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,c,s,c,s],r=c,i=s);for(var v=0,m=e.length;v<m;v++){var b=e[v];if("M"===b[0])o=l=b[1],a=u=b[2];else{"C"===b[0]?(f=[o,a].concat(b.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);var x=BP(h,f,n);if(n)p+=x;else{for(var O=0,j=x.length;O<j;O++)x[O].segment1=d,x[O].segment2=v,x[O].bez1=h,x[O].bez2=f;p=p.concat(x)}}}}}return p};function RP(t,e){return DP(t,e)}var _P=/,?([a-z]),?/gi;function NP(t){return t.join(",").replace(_P,"$1")}var zP=function(t,e){return(t%e+e)%e};function YP(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function GP(t,e){return YP(t)*YP(e)?(t[0]*e[0]+t[1]*e[1])/(YP(t)*YP(e)):1}function HP(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(GP(t,e))}function VP(t,e){return t[0]===e[0]&&t[1]===e[1]}function WP(t,e){var n=e[1],r=e[2],i=zP(e[3]*Math.PI/180,2*Math.PI),o=e[4],a=e[5],c=t[0],s=t[1],l=e[6],u=e[7],h=Math.cos(i)*(c-l)/2+Math.sin(i)*(s-u)/2,f=-1*Math.sin(i)*(c-l)/2+Math.cos(i)*(s-u)/2,p=h*h/(n*n)+f*f/(r*r);p>1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var d=n*n*(f*f)+r*r*(h*h),g=d?Math.sqrt((n*n*(r*r)-d)/d):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var y=r?g*n*f/r:0,v=n?g*-r*h/n:0,m=(c+l)/2+Math.cos(i)*y-Math.sin(i)*v,b=(s+u)/2+Math.sin(i)*y+Math.cos(i)*v,x=[(h-y)/n,(f-v)/r],O=[(-1*h-y)/n,(-1*f-v)/r],j=HP([1,0],x),w=HP(x,O);return GP(x,O)<=-1&&(w=Math.PI),GP(x,O)>=1&&(w=0),0===a&&w>0&&(w-=2*Math.PI),1===a&&w<0&&(w+=2*Math.PI),{cx:m,cy:b,rx:VP(t,[l,u])?0:n,ry:VP(t,[l,u])?0:r,startAngle:j,endAngle:j+w,xRotation:i,arcFlag:o,sweepFlag:a}}function XP(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function $P(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=MA(t)).length,c=0;c<a;c++){var s=t[c];r=t[c+1];var l=s[0],u={command:l,prePoint:n,params:s,startTangent:null,endTangent:null};switch(l){case"M":i=[s[1],s[2]],o=c;break;case"A":var h=WP(n,s);u.arcParams=h}if("Z"===l)n=i,r=t[o+1];else{var f=s.length;n=[s[f-2],s[f-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),u.currentPoint=n,e[o]&&VP(n,e[o].currentPoint)&&(e[o].prePoint=u.prePoint);var p=r?[r[r.length-2],r[r.length-1]]:null;u.nextPoint=p;var d=u.prePoint;if(["L","H","V"].includes(l))u.startTangent=[d[0]-n[0],d[1]-n[1]],u.endTangent=[n[0]-d[0],n[1]-d[1]];else if("Q"===l){var g=[s[1],s[2]];u.startTangent=[d[0]-g[0],d[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if("T"===l){var y,g=XP((y=e[c-1]).currentPoint,d);"Q"===y.command?(u.command="Q",u.startTangent=[d[0]-g[0],d[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]):(u.command="TL",u.startTangent=[d[0]-n[0],d[1]-n[1]],u.endTangent=[n[0]-d[0],n[1]-d[1]])}else if("C"===l){var v=[s[1],s[2]],m=[s[3],s[4]];u.startTangent=[d[0]-v[0],d[1]-v[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[v[0]-m[0],v[1]-m[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[m[0]-v[0],m[1]-v[1]])}else if("S"===l){var y,v=XP((y=e[c-1]).currentPoint,d),m=[s[1],s[2]];"C"===y.command?(u.command="C",u.startTangent=[d[0]-v[0],d[1]-v[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]]):(u.command="SQ",u.startTangent=[d[0]-m[0],d[1]-m[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===l){var b=.001,x=u.arcParams||{},O=x.cx,j=void 0===O?0:O,w=x.cy,M=void 0===w?0:w,S=x.rx,C=void 0===S?0:S,A=x.ry,E=void 0===A?0:A,k=x.sweepFlag,T=void 0===k?0:k,P=x.startAngle,I=void 0===P?0:P,F=x.endAngle,L=void 0===F?0:F;0===T&&(b*=-1);var B=C*Math.cos(I-b)+j,D=E*Math.sin(I-b)+M;u.startTangent=[B-i[0],D-i[1]];var R=C*Math.cos(I+L+b)+j,_=E*Math.sin(I+L-b)+M;u.endTangent=[d[0]-R,d[1]-_]}e.push(u)}return e}var qP=function(t,e,n){return t>=e&&t<=n};function UP(t,e,n,r){var i=.001,o=n.x-t.x,a=n.y-t.y,c=e.x-t.x,s=e.y-t.y,l=r.x-n.x,u=r.y-n.y,h=c*u-s*l,f,p,d,g=null;if(h*h>.001*(c*c+s*s)*(l*l+u*u)){var y=(o*u-a*l)/h,v=(o*s-a*c)/h;qP(y,0,1)&&qP(v,0,1)&&(g={x:t.x+y*c,y:t.y+y*s})}return g}var KP=1e-6;function ZP(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function QP(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function JP(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],c=t[(o+1)%i];if(QP(a,c,[e,n]))return!0;ZP(a[1]-n)>0!=ZP(c[1]-n)>0&&ZP(e-(n-a[1])*(a[0]-c[0])/(a[1]-c[1])-a[0])<0&&(r=!r)}return r}function tI(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],c=t[n-1];e.push({from:{x:c[0],y:c[1]},to:{x:a[0],y:a[1]}})}return e}function eI(t,e){var n=!1;return xA(t,(function(t){if(UP(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function nI(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function rI(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function iI(t,e){if(t.length<2||e.length<2)return!1;var n,r;if(!rI(nI(t),nI(e)))return!1;var i=!1;if(xA(e,(function(e){if(JP(t,e[0],e[1]))return i=!0,!1})),i)return!0;if(xA(t,(function(t){if(JP(e,t[0],t[1]))return i=!0,!1})),i)return!0;var o=tI(t),a=tI(e),c=!1;return xA(a,(function(t){if(eI(o,t))return c=!0,!1})),c}function oI(t){return Gf({},t.defaultStyle,{fill:t.color},t.style)}xi("schema","venn",{draw:function(t,e){var n,r=uP(t.data.path),i=oI(t),o=e.addGroup({name:"venn-shape"});o.addShape("path",{attrs:Object(Mf.a)(Object(Mf.a)({},i),{path:r}),name:"venn-path"});var a=t.customInfo,c=a.offsetX,s=a.offsetY,l=mo.transform(null,[["t",c,s]]);return o.setMatrix(l),o},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var aI=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}},cI={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},sI=function(t){if(!cI[t])throw new Error("unknown blend mode "+t);return cI[t]};function lI(t,e,n){void 0===n&&(n="normal");var r=aI(sI(n))(uI(t),uI(e)),i=uI(t),o=i[0],a=i[1],c=i[2],s=i[3],l=uI(e),u=l[0],h=l[1],f=l[2],p=l[3],d=Number((s+p*(1-s)).toFixed(2)),g=Math.round((s*(1-p)*(o/255)+s*p*(r[0]/255)+(1-s)*p*(u/255))/d*255),y=Math.round((s*(1-p)*(a/255)+s*p*(r[1]/255)+(1-s)*p*(h/255))/d*255),v=Math.round((s*(1-p)*(c/255)+s*p*(r[2]/255)+(1-s)*p*(f/255))/d*255);return"rgba(".concat(g,", ").concat(y,", ").concat(v,", ").concat(d,")")}function uI(t){var e=t.replace("/s+/g",""),n;return"string"!=typeof e||e.startsWith("rgba")||e.startsWith("#")?(e.startsWith("rgba")&&(n=e.replace("rgba(","").replace(")","").split(",")),e.startsWith("#")&&(n=z.a.rgb2arr(e).concat([1])),n.map((function(t,e){return 3===e?Number(t):0|t}))):z.a.rgb2arr(z.a.toRGB(e)).concat([1])}var hI=n(31),fI=1e-10;function pI(t,e){var n=gI(t),r=n.filter((function(e){return dI(e,t)})),i=0,o=0,a,c=[];if(r.length>1){var s=xI(r);for(a=0;a<r.length;++a){var l=r[a];l.angle=Math.atan2(l.x-s.x,l.y-s.y)}r.sort((function(t,e){return e.angle-t.angle}));var u=r[r.length-1];for(a=0;a<r.length;++a){var h=r[a];o+=(u.x+h.x)*(h.y-u.y);for(var f={x:(h.x+u.x)/2,y:(h.y+u.y)/2},p=null,d=0;d<h.parentIndex.length;++d)if(u.parentIndex.indexOf(h.parentIndex[d])>-1){var g=t[h.parentIndex[d]],y=Math.atan2(h.x-g.x,h.y-g.y),v=Math.atan2(u.x-g.x,u.y-g.y),m=v-y;m<0&&(m+=2*Math.PI);var b=v-m/2,x=vI(f,{x:g.x+g.radius*Math.sin(b),y:g.y+g.radius*Math.cos(b)});x>2*g.radius&&(x=2*g.radius),(null===p||p.width>x)&&(p={circle:g,width:x,p1:h,p2:u})}null!==p&&(c.push(p),i+=yI(p.circle.radius,p.width),u=h)}}else{var O=t[0];for(a=1;a<t.length;++a)t[a].radius<O.radius&&(O=t[a]);var j=!1;for(a=0;a<t.length;++a)if(vI(t[a],O)>Math.abs(O.radius-t[a].radius)){j=!0;break}j?i=o=0:(i=O.radius*O.radius*Math.PI,c.push({circle:O,p1:{x:O.x,y:O.y+O.radius},p2:{x:O.x-1e-10,y:O.y+O.radius},width:2*O.radius}))}return o/=2,e&&(e.area=i+o,e.arcArea=i,e.polygonArea=o,e.arcs=c,e.innerPoints=r,e.intersectionPoints=n),i+o}function dI(t,e){for(var n=0;n<e.length;++n)if(vI(t,e[n])>e[n].radius+1e-10)return!1;return!0}function gI(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=bI(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}function yI(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function vI(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function mI(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r,i=e-(n*n-t*t+e*e)/(2*n);return yI(t,t-(n*n-e*e+t*t)/(2*n))+yI(e,i)}function bI(t,e){var n=vI(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),c=t.x+o*(e.x-t.x)/n,s=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:c+l,y:s-u},{x:c-l,y:s+u}]}function xI(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function OI(t,e,n){var r=e[0].radius-vI(e[0],t),i,o;for(i=1;i<e.length;++i)(o=e[i].radius-vI(e[i],t))<=r&&(r=o);for(i=0;i<n.length;++i)(o=vI(n[i],t)-n[i].radius)<=r&&(r=o);return r}function jI(t,e){var n=[],r;for(r=0;r<t.length;++r){var i=t[r];n.push({x:i.x,y:i.y}),n.push({x:i.x+i.radius/2,y:i.y}),n.push({x:i.x-i.radius/2,y:i.y}),n.push({x:i.x,y:i.y+i.radius/2}),n.push({x:i.x,y:i.y-i.radius/2})}var o=n[0],a=OI(n[0],t,e);for(r=1;r<n.length;++r){var c=OI(n[r],t,e);c>=a&&(o=n[r],a=c)}var s=Object(hI.nelderMead)((function(n){return-1*OI({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s[0],y:s[1]},u=!0;for(r=0;r<t.length;++r)if(vI(l,t[r])>t[r].radius){u=!1;break}for(r=0;r<e.length;++r)if(vI(l,e[r])<e[r].radius){u=!1;break}if(!u)if(1==t.length)l={x:t[0].x,y:t[0].y};else{var h={};pI(t,h),l=0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?jI(t,[]):xI(h.arcs.map((function(t){return t.p1})))}return l}function wI(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var c=t[n[a]],s=vI(o,c);s+c.radius<=o.radius+1e-10?e[n[a]].push(n[i]):s+o.radius<=c.radius+1e-10&&e[n[i]].push(n[a])}return e}function MI(t,e){for(var n={},r=wI(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},c={},s=0;s<o.length;++s){a[o[s]]=!0;for(var l=r[o[s]],u=0;u<l.length;++u)c[l[u]]=!0}var h=[],f=[];for(var p in t)p in a?h.push(t[p]):p in c||f.push(t[p]);var d=jI(h,f);n[o]=d,d.disjoint&&e[i].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function SI(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}function CI(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function AI(t){var e={};pI(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return SI(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],c=a.circle.radius,s=a.width>c;i.push("\nA",c,c,0,s?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}function EI(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n=e.initialLayout||LI,r=e.lossFunction||RI,i=n(t=PI(t),e),o=[],a=[],c;for(c in i)i.hasOwnProperty(c)&&(o.push(i[c].x),o.push(i[c].y),a.push(c));for(var s,l=Object(hI.nelderMead)((function(e){for(var n={},o=0;o<a.length;++o){var c=a[o];n[c]={x:e[2*o],y:e[2*o+1],radius:i[c].radius}}return r(n,t)}),o,e).x,u=0;u<a.length;++u)c=a[u],i[c].x=l[2*u],i[c].y=l[2*u+1];return i}var kI=1e-10;function TI(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):Object(hI.bisect)((function(r){return mI(t,e,r)-n}),0,t+e)}function PI(t){t=t.slice();var e=[],n={},r,i,o,a;for(r=0;r<t.length;++r){var c=t[r];1==c.sets.length?e.push(c.sets[0]):2==c.sets.length&&(n[[o=c.sets[0],a=c.sets[1]]]=!0,n[[a,o]]=!0)}for(e.sort((function(t,e){return t>e?1:-1})),r=0;r<e.length;++r)for(o=e[r],i=r+1;i<e.length;++i)[o,a=e[i]]in n||t.push({sets:[o,a],size:0});return t}function II(t,e,n){var r=Object(hI.zerosM)(e.length,e.length),i=Object(hI.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],c,s,l=TI(Math.sqrt(e[o].size/Math.PI),Math.sqrt(e[a].size/Math.PI),t.size);r[o][a]=r[a][o]=l;var u=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?u=1:t.size<=1e-10&&(u=-1),i[o][a]=i[a][o]=u})),{distances:r,constraints:i}}function FI(t,e,n,r){var i=0,o;for(o=0;o<e.length;++o)e[o]=0;for(o=0;o<n.length;++o)for(var a=t[2*o],c=t[2*o+1],s=o+1;s<n.length;++s){var l=t[2*s],u=t[2*s+1],h=n[o][s],f=r[o][s],p=(l-a)*(l-a)+(u-c)*(u-c),d=Math.sqrt(p),g=p-h*h;f>0&&d<=h||f<0&&d>=h||(i+=2*g*g,e[2*o]+=4*g*(a-l),e[2*o+1]+=4*g*(c-u),e[2*s]+=4*g*(l-a),e[2*s+1]+=4*g*(u-c))}return i}function LI(t,e){var n=DI(t,e),r=e.lossFunction||RI;if(t.length>=8){var i=BI(t,e),o,a;r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function BI(t,e){var n=(e=e||{}).restarts||10,r=[],i={},o;for(o=0;o<t.length;++o){var a=t[o];1==a.sets.length&&(i[a.sets[0]]=r.length,r.push(a))}var c=II(t,r,i),s=c.distances,l=c.constraints,u=Object(hI.norm2)(s.map(hI.norm2))/s.length;s=s.map((function(t){return t.map((function(t){return t/u}))}));var h=function(t,e){return FI(t,e,s,l)},f,p;for(o=0;o<n;++o){var d=Object(hI.zeros)(2*s.length).map(Math.random);p=Object(hI.conjugateGradient)(h,d,e),(!f||p.fx<f.fx)&&(f=p)}var g=f.x,y={};for(o=0;o<r.length;++o){var v=r[o];y[v.sets[0]]={x:g[2*o]*u,y:g[2*o+1]*u,radius:Math.sqrt(v.size/Math.PI)}}if(e.history)for(o=0;o<e.history.length;++o)Object(hI.scale)(e.history[o].x,u);return y}function DI(t,e){for(var n=e&&e.lossFunction?e.lossFunction:RI,r={},i={},o,a=0;a<t.length;++a){var c=t[a];1==c.sets.length&&(o=c.sets[0],r[o]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:c.size,radius:Math.sqrt(c.size/Math.PI)},i[o]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(var a=0;a<t.length;++a){var s=t[a],l=s.hasOwnProperty("weight")?s.weight:1,u=s.sets[0],h=s.sets[1];s.size+1e-10>=Math.min(r[u].size,r[h].size)&&(l=0),i[u].push({set:h,size:s.size,weight:l}),i[h].push({set:u,size:s.size,weight:l})}var f=[];for(o in i)if(i.hasOwnProperty(o)){for(var p=0,a=0;a<i[o].length;++a)p+=i[o][a].size*i[o][a].weight;f.push({set:o,size:p})}function d(t,e){return e.size-t.size}f.sort(d);var g={};function y(t){return t.set in g}function v(t,e){r[e].x=t.x,r[e].y=t.y,g[e]=!0}v({x:0,y:0},f[0].set);for(var a=1;a<f.length;++a){var m=f[a].set,b=i[m].filter(y);if(o=r[m],b.sort(d),0===b.length)throw"ERROR: missing pairwise overlap information";for(var x=[],O=0;O<b.length;++O){var j=r[b[O].set],w=TI(o.radius,j.radius,b[O].size);x.push({x:j.x+w,y:j.y}),x.push({x:j.x-w,y:j.y}),x.push({y:j.y+w,x:j.x}),x.push({y:j.y-w,x:j.x});for(var M=O+1;M<b.length;++M)for(var S=r[b[M].set],C=TI(o.radius,S.radius,b[M].size),A=bI({x:j.x,y:j.y,radius:w},{x:S.x,y:S.y,radius:C}),E=0;E<A.length;++E)x.push(A[E])}for(var k=1e50,T=x[0],O=0;O<x.length;++O){r[m].x=x[O].x,r[m].y=x[O].y;var P=n(r,t);P<k&&(k=P,T=x[O])}v(T,m)}return r}function RI(t,e){var n=0;function r(e){return e.map((function(e){return t[e]}))}for(var i=0;i<e.length;++i){var o=e[i],a=void 0;if(1!=o.sets.length){if(2==o.sets.length){var c=t[o.sets[0]],s=t[o.sets[1]];a=mI(c.radius,s.radius,vI(c,s))}else a=pI(r(o.sets));var l;n+=(o.hasOwnProperty("weight")?o.weight:1)*(a-o.size)*(a-o.size)}}return n}function _I(t,e,n){var r,i;if(null===n?t.sort((function(t,e){return e.radius-t.radius})):t.sort(n),t.length>0){var o=t[0].x,a=t[0].y;for(r=0;r<t.length;++r)t[r].x-=o,t[r].y-=a}2==t.length&&(vI(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y));if(t.length>1){var c=Math.atan2(t[1].x,t[1].y)-e,s=void 0,l=void 0,u=Math.cos(c),h=Math.sin(c);for(r=0;r<t.length;++r)s=t[r].x,l=t[r].y,t[r].x=u*s-h*l,t[r].y=h*s+u*l}if(t.length>2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var d=(t[r].x+p*t[r].y)/(1+p*p);t[r].x=2*d-t[r].x,t[r].y=2*d*p-t[r].y}}}}function NI(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}function n(t,n){var r=e(t),i=e(n);r.parent=i}t.map((function(t){t.parent=t}));for(var r=0;r<t.length;++r)for(var i=r+1;i<t.length;++i){var o=t[r].radius+t[i].radius;vI(t[r],t[i])+1e-10<o&&n(t[i],t[r])}for(var a={},c,r=0;r<t.length;++r)(c=e(t[r]).parent.setid)in a||(a[c]=[]),a[c].push(t[r]);t.map((function(t){delete t.parent}));var s=[];for(c in a)a.hasOwnProperty(c)&&s.push(a[c]);return s}function zI(t){var e=function(e){var n,r;return{max:Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),min:Math.min.apply(null,t.map((function(t){return t[e]-t.radius})))}};return{xRange:e("x"),yRange:e("y")}}function YI(t,e,n){null===e&&(e=Math.PI/2);var r=[],i,o;for(o in t)if(t.hasOwnProperty(o)){var a=t[o];r.push({x:a.x,y:a.y,radius:a.radius,setid:o})}var c=NI(r);for(i=0;i<c.length;++i){_I(c[i],e,n);var s=zI(c[i]);c[i].size=(s.xRange.max-s.xRange.min)*(s.yRange.max-s.yRange.min),c[i].bounds=s}c.sort((function(t,e){return e.size-t.size}));var l=(r=c[0]).bounds,u=(l.xRange.max-l.xRange.min)/50;function h(t,e,n){if(t){var i=t.bounds,o,a,c;e?o=l.xRange.max-i.xRange.min+u:(o=l.xRange.max-i.xRange.max,(c=(i.xRange.max-i.xRange.min)/2-(l.xRange.max-l.xRange.min)/2)<0&&(o+=c)),n?a=l.yRange.max-i.yRange.min+u:(a=l.yRange.max-i.yRange.max,(c=(i.yRange.max-i.yRange.min)/2-(l.yRange.max-l.yRange.min)/2)<0&&(a+=c));for(var s=0;s<t.length;++s)t[s].x+=o,t[s].y+=a,r.push(t[s])}}for(var f=1;f<c.length;)h(c[f],!0,!1),h(c[f+1],!1,!0),h(c[f+2],!0,!0),f+=3,l=zI(r);var p={};for(i=0;i<r.length;++i)p[r[i].setid]=r[i];return p}function GI(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var c=zI(i),s=c.xRange,l=c.yRange;if(s.max==s.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var u=e/(s.max-s.min),h=n/(l.max-l.min),f=Math.min(h,u),p=(e-(s.max-s.min)*f)/2,d=(n-(l.max-l.min)*f)/2,g={},y=0;y<i.length;++y){var v=i[y];g[o[y]]={radius:f*v.radius,x:r+p+(v.x-s.min)*f,y:r+d+(v.y-l.min)*f}}return g}var HI=Object(s.ab)((function(t,e,n,r){var i=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[r].length)i.set(e.id,t[(a+o)%o]);else{var c=e[r].map((function(t){return i.get(t)}));i.set(e.id,c.slice(1).reduce((function(t,e){return lI(t,e,n)}),c[0]))}})),i}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function VI(t,e,n,r){void 0===r&&(r=0);var i=t.data,o=t.setsField,a=t.sizeField;if(0===i.length)return Tf(Cf.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),[];var c=i.map((function(t){var e;return Object(Mf.a)(Object(Mf.a)({},t),((e={sets:t[o]||[],size:t[a]}).path="",e.id="",e))}));c.sort((function(t,e){return t.sets.length-e.sets.length}));var l,u=GI(EI(c),e,n,r),h=MI(u,c);return c.forEach((function(t){var e=t.sets,n=e.join(",");t.id=n;var r,i=AI(e.map((function(t){return u[t]})));/[zZ]$/.test(i)||(i+=" Z"),t.path=i;var o=h[n]||{x:0,y:0};Object(s.b)(t,o)})),c}function WI(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}var XI=40;function $I(t,e,n){var r=t.chart,i=t.options,o=i.blendMode,a=i.setsField,c=r.getTheme(),l=c.colors10,u=c.colors20,h=n;Object(s.C)(h)||(h=e.filter((function(t){return 1===t[a].length})).length<=10?l:u);var f=HI(h,e,o,a);return function(t){return f.get(t)||h[0]}}function qI(t,e){var n,r=t.options.color;if("function"!=typeof r){var i,o=$I(t,e,"string"==typeof r?[r]:r);return function(t){return o(t.id)}}return r}function UI(t){var e=t.chart,n=t.options,r=n.legend,i=n.appendPadding,o=n.padding,a=np(i);return!1!==r&&(a=rp(i,Object(s.s)(r,"position"),40)),e.appendPadding=ip([a,o]),t}function KI(t){var e,n=t.options.data;n||(Tf(Cf.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),n=[]);var r=n.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),i=n.filter((function(t){var e=t.sets;return WI(r,e)}));return Object(s.H)(i,n)||Tf(Cf.WARN,!1,"warn: %s","\u4ea4\u96c6\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e0d\u5b58\u5728\u7684\u96c6\u5408, \u8bf7\u8f93\u5165\u5408\u6cd5\u6570\u636e"),Object(s.h)({},t,{options:{data:i}})}function ZI(t){var e=t.chart,n=t.options,r=n.pointStyle,i=n.setsField,o=n.sizeField,a=np(e.appendPadding),c=a[0],s=a[1],l=a[2],u=a[3],h={offsetX:u,offsetY:c},f=e.viewBBox,p=f.width,d=f.height,g=VI(n,Math.max(p-(s+u),0),Math.max(d-(c+l),0),0);e.data(g);var y,v=hd(Gf({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[i,o],schema:{shape:"venn",style:r}}})).ext.geometry;v.customInfo(h);var m=qI(t,g);return"function"==typeof m&&v.color("id",(function(e){var n=g.find((function(t){return t.id===e})),r=$I(t,g)(e);return m(n,r)})),t}function QI(t){var e=t.chart,n,r=t.options.label,i=np(e.appendPadding),o=i[0],a,c={offsetX:i[3],offsetY:o},l=Xf(e,"schema");if(r){var u=r.callback,h=Object(Mf.c)(r,["callback"]);l.label({fields:["id"],callback:u,cfg:Object(s.h)({},Zf(h),{type:"venn",customLabelInfo:c})})}else l.label(!1);return t}function JI(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend("id",r),e.legend(i,!1),t}function tF(t){var e;return t.chart.axis(!1),t}function eF(t){var e=t.options,n=t.chart,r=e.interactions;if(r){var i={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Rp(Gf({},t,{options:{interactions:r.map((function(t){return Object(Mf.a)(Object(Mf.a)({},t),{type:i[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function nF(t){return Wf(UI,Np,KI,ZI,QI,Hp({}),JI,tF,Dp,eF,_p)(t)}var rF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return ZM},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return nF},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(yd),iF="x",oF="violinY",aF="violinSize",cF="minMax",sF="quantile",lF="median",uF="violin_view",hF="min_max_view",fF="quantile_view",pF="median_view",dF=Gf({},yd.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),gF=n(99),yF=n.n(gF);function vF(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function mF(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function bF(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var i=r-n+1,o=e-n+1,a=Math.log(i),c=.5*Math.exp(2*a/3),s=.5*Math.sqrt(a*c*(i-c)/i),l,u;o-i/2<0&&(s*=-1),bF(t,e,Math.max(n,Math.floor(e-o*c/i+s)),Math.min(r,Math.floor(e+(i-o)*c/i+s)))}var h=t[e],f=n,p=r;for(mF(t,n,e),t[r]>h&&mF(t,n,r);f<p;){for(mF(t,f,p),f++,p--;t[f]<h;)f++;for(;t[p]>h;)p--}t[n]===h?mF(t,n,p):mF(t,++p,r),p<=e&&(n=p+1),e<=p&&(r=p-1)}}function xF(t,e){var n=t.slice(),r;if(Array.isArray(e)){jF(n,e);for(var i=[],o=0;o<e.length;o++)i[o]=vF(n,e[o]);return i}return OF(n,MF(n.length,e),0,n.length-1),vF(n,e)}function OF(t,e,n,r){e%1==0?bF(t,e,n,r):(bF(t,e=Math.floor(e),n,r),bF(t,e+1,e+1,r))}function jF(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(MF(t.length,e[r]));n.push(t.length-1),n.sort(wF);for(var i=[0,n.length-1];i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var c=Math.floor((a+o)/2);OF(t,n[c],Math.floor(n[a]),Math.ceil(n[o])),i.push(a,c,c,o)}}}function wF(t,e){return t-e}function MF(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}var SF=function(t){return{low:Object(s.bb)(t),high:Object(s.Y)(t),q1:xF(t,.25),q3:xF(t,.75),median:xF(t,[.5]),minMax:[Object(s.bb)(t),Object(s.Y)(t)],quantile:[xF(t,.25),xF(t,.75)]}},CF=function(t,e){var n=yF.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},AF=function(t){var e=t.xField,n=t.yField,r=t.seriesField,i=t.data,o=t.kde,a={min:o.min,max:o.max,size:o.sampleSize,width:o.width};if(!r){var c=Object(s.w)(i,e);return Object.keys(c).map((function(t){var e,r=c[t].map((function(t){return t[n]}));return Object(Mf.a)(Object(Mf.a)({x:t},CF(r,a)),SF(r))}))}var l=[],u=Object(s.w)(i,r);return Object.keys(u).forEach((function(t){var i=Object(s.w)(u[t],e);return Object.keys(i).forEach((function(e){var o,c,s=i[e].map((function(t){return t[n]}));l.push(Object(Mf.a)(Object(Mf.a)(((o={x:e})[r]=t,o),CF(s,a)),SF(s)))}))})),l},EF=["low","high","q1","q3","median"],kF=[{type:"dodge",marginRatio:1/32}];function TF(t){var e=t.chart,n=t.options;return e.data(AF(n)),t}function PF(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.shape,a=void 0===o?"violin":o,c=n.violinStyle,s=n.tooltip,l=n.state,u=e.createView({id:"violin_view"});return fd({chart:u,options:{xField:"x",yField:"violinY",seriesField:r||"x",sizeField:"violinSize",tooltip:Object(Mf.a)({fields:EF},s),violin:{style:c,color:i,shape:a},state:l}}),u.geometries[0].adjust(kF),t}function IF(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.tooltip,a=n.box;if(!1===a)return t;var c=e.createView({id:"min_max_view"});cd({chart:c,options:{xField:"x",yField:"minMax",seriesField:r||"x",tooltip:Object(Mf.a)({fields:EF},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:1,style:{lineWidth:0}}}}),c.geometries[0].adjust(kF);var s=e.createView({id:"quantile_view"});cd({chart:s,options:{xField:"x",yField:"quantile",seriesField:r||"x",tooltip:Object(Mf.a)({fields:EF},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:8,style:{fillOpacity:1}}}}),s.geometries[0].adjust(kF);var l=e.createView({id:"median_view"});return ld({chart:l,options:{xField:"x",yField:"median",seriesField:r||"x",tooltip:Object(Mf.a)({fields:EF},o),state:"object"==typeof a?a.state:{},point:{color:i,size:1,style:{fill:"white",lineWidth:0}}}}),l.geometries[0].adjust(kF),s.axis(!1),c.axis(!1),l.axis(!1),l.legend(!1),c.legend(!1),s.legend(!1),t}function FF(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.xAxis,a=r.yAxis,c,s=Gf({},i,((e={}).x=Object(Mf.a)(Object(Mf.a)({sync:!0},Pf(o,Sf)),{type:"cat"}),e.violinY=Object(Mf.a)({sync:!0},Pf(a,Sf)),e.minMax=Object(Mf.a)({sync:"violinY"},Pf(a,Sf)),e.quantile=Object(Mf.a)({sync:"violinY"},Pf(a,Sf)),e.median=Object(Mf.a)({sync:"violinY"},Pf(a,Sf)),e));return n.scale(s),t}function LF(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=dp(e,"violin_view");return!1===r?o.axis("x",!1):o.axis("x",r),!1===i?o.axis("violinY",!1):o.axis("violinY",i),e.axis(!1),t}function BF(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField,o=n.shape;if(!1===r)e.legend(!1);else{var a=i||"x",c=Object(s.gb)(r,["selected"]);o&&o.startsWith("hollow")||Object(s.s)(c,["marker","style","lineWidth"])||Object(s.lb)(c,["marker","style","lineWidth"],0),e.legend(a,c),Object(s.s)(r,"selected")&&Object(s.j)(e.views,(function(t){return t.legend(a,r)}))}return t}function DF(t){var e,n=dp(t.chart,"violin_view");return Vp()(Object(Mf.a)(Object(Mf.a)({},t),{chart:n})),t}function RF(t){var e=t.chart,n,r=t.options.animation;return Object(s.j)(e.views,(function(t){vp(t,r)})),t}function _F(t){return Wf(Np,TF,PF,IF,FF,Dp,LF,BF,Rp,DF,RF)(t)}var NF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return dF},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(AF(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return _F},e}(yd),zF="$$yField$$",YF="$$diffField$$",GF="$$absoluteField$$",HF="$$isTotal$$",VF={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function WF(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}function XF(t){return Gf({},t.defaultStyle,t.style,{fill:t.color})}function $F(t,e,n,r,i){var o,a=[];if(Object(s.ib)(t,(function(t,e){var i;Tf(Cf.WARN,Object(s.M)(e[n]),"".concat(e[n]," is not a valid number"));var o=Object(s.S)(e[n])?null:e[n];return a.push(Object(Mf.a)(Object(Mf.a)({},e),((i={})[r]=[t,t+o],i))),t+o}),0),a.length&&i){var c=Object(s.s)(a,[[t.length-1],r,[1]]);a.push(((o={})[e]=i.label,o[n]=c,o[r]=[0,c],o))}return a}function qF(t,e,n,r){var i;return $F(t,e,n,"$$yField$$",r).map((function(e,n){var r;return Object(s.O)(e)?Object(Mf.a)(Object(Mf.a)({},e),((r={})[GF]=e.$$yField$$[1],r[YF]=e.$$yField$$[1]-e.$$yField$$[0],r[HF]=n===t.length,r)):e}))}function UF(t){var e=t.options,n=e.locale,r=e.total,i=Zp(n).get(["waterfall","total"]);return r&&"string"!=typeof r.label&&i&&(t.options.total.label=i),t}function KF(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.total,c=n.leaderLine,l=n.columnWidthRatio,u=n.waterfallStyle,h=n.risingFill,f=n.fallingFill,p=n.color,d=n.shape,g=n.customInfo,y,v,m,b;return e.data(qF(r,i,o,a)),cd(Gf({},t,{options:{xField:i,yField:"$$yField$$",seriesField:i,rawFields:[o,YF,HF,"$$yField$$"],widthRatio:l,interval:{style:u,shape:d||"waterfall",color:p||function(t){return Object(s.s)(t,[HF])?Object(s.s)(a,["style","fill"],""):Object(s.s)(t,["$$yField$$",1])-Object(s.s)(t,["$$yField$$",0])>0?h:f}}}})).ext.geometry.customInfo(Object(Mf.a)(Object(Mf.a)({},g),{leaderLine:c})),t}function ZF(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,c=r.yField,l=r.meta,u=Gf({},{alias:c},Object(s.s)(l,c));return Wf(Hp(((e={})[a]=i,e[c]=o,e.$$yField$$=o,e),Gf({},l,((n={}).$$yField$$=u,n[YF]=u,n[GF]=u,n))))(t)}function QF(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis("$$yField$$",!1)):(e.axis(a,i),e.axis("$$yField$$",i)),t}function JF(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,o=n.risingFill,a=n.fallingFill,c,l=Zp(n.locale);if(!1===r)e.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:a}}}];i&&u.push({name:i.label||"",value:"total",marker:{symbol:"square",style:Gf({},{r:5},Object(s.s)(i,"style"))}}),e.legend(Gf({},{custom:!0,position:"top",items:u},r)),e.removeInteraction("legend-filter")}return t}function tL(t){var e=t.chart,n=t.options,r=n.label,i=n.labelMode,o=n.xField,a=Xf(e,"interval");if(r){var c=r.callback,s=Object(Mf.c)(r,["callback"]);a.label({fields:"absolute"===i?[GF,o]:[YF,o],callback:c,cfg:Zf(s)})}else a.label(!1);return t}function eL(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.xField,o=n.yField;if(!1!==r){e.tooltip(Object(Mf.a)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},r));var a=e.geometries[0];(null==r?void 0:r.formatter)?a.tooltip("".concat(i,"*").concat(o),r.formatter):a.tooltip(o)}else e.tooltip(!1);return t}function nL(t){return Wf(UF,Np,KF,ZF,QF,JF,eL,tL,zp,Rp,_p,Vp())(t)}xi("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,i=t.nextPoints,o=e.addGroup(),a=this.parsePath(WF(r)),c=XF(t);o.addShape("path",{attrs:Object(Mf.a)(Object(Mf.a)({},c),{path:a})});var l=Object(s.s)(n,"leaderLine");if(l&&i){var u=[["M",r[2].x,r[2].y],["L",i[0].x,i[0].y]];r[2].y===i[1].y&&(u[1]=["L",i[1].x,i[1].y]),u=this.parsePath(u),o.addShape("path",{attrs:Object(Mf.a)({path:u},l.style||{})})}return o}});var rL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return VF},e.prototype.changeData=function(t){var e=this.options,n=e.xField,r=e.yField,i=e.total;this.updateOption({data:t}),this.chart.changeData(qF(t,n,r,i))},e.prototype.getSchemaAdaptor=function(){return nL},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(yd),iL="color",oL=Gf({},yd.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value","color"],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),aL={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function cL(t,e){return sL(t,e=Object(s.b)({},aL,e))}function sL(t,e){var n=EL();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(s.K)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r,i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],c=o[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:a,y:c,opacity:0}),i}var lL=Math.PI/180,uL=64,hL=2048;function fL(t){return t.text}function pL(){return"serif"}function dL(){return"normal"}function gL(t){return t.value}function yL(){return 90*~~(2*Math.random())}function vL(){return 1}function mL(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,hL/o);var a=0,c=0,s=0,l=n.length;for(--r;++r<l;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var u=i.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var f=Math.sin(e.rotate*lL),p=Math.cos(e.rotate*lL),d=u*p,g=u*f,y=h*p,v=h*f;u=Math.max(Math.abs(d+v),Math.abs(d-v))+31>>5<<5,h=~~Math.max(Math.abs(g+y),Math.abs(g-y))}else u=u+31>>5<<5;if(h>s&&(s=h),a+u>=2048&&(a=0,c+=s,s=0),c+h>=hL)break;i.translate((a+(u>>1))/o,(c+(h>>1))/o),e.rotate&&i.rotate(e.rotate*lL),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=h,e.xoff=a,e.yoff=c,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}for(var m=i.getImageData(0,0,2048/o,hL/o).data,b=[];--r>=0;)if((e=n[r]).hasText){for(var u,x=(u=e.width)>>5,h=e.y1-e.y0,O=0;O<h*x;O++)b[O]=0;if(null==(a=e.xoff))return;c=e.yoff;for(var j=0,w=-1,M=0;M<h;M++){for(var O=0;O<u;O++){var S=x*M+(O>>5),C=m[2048*(c+M)+(a+O)<<2]?1<<31-O%32:0;b[S]|=C,j|=C}j?w=M:(e.y0++,h--,M--,c++)}e.y1=e.y0+w,e.sprite=b.slice(0,(e.y1-e.y0)*x)}}}function bL(t,e,n){n>>=5;for(var r=t.sprite,i=t.width>>5,o=t.x-(i<<4),a=127&o,c=32-a,s=t.y1-t.y0,l=(t.y+t.y0)*n+(o>>5),u,h=0;h<s;h++){u=0;for(var f=0;f<=i;f++)if((u<<c|(f<i?(u=r[h*i+f])>>>a:0))&e[l+f])return!0;l+=n}return!1}function xL(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function OL(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function jL(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function wL(t){var e=4,n=4*t[0]/t[1],r=0,i=0;return function(t){var e=t<0?-1:1;switch(Math.sqrt(1+4*e*t)-e&3){case 0:r+=n;break;case 1:i+=4;break;case 2:r-=n;break;default:i-=4}return[r,i]}}function ML(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function SL(){return document.createElement("canvas")}function CL(t){return Object(s.I)(t)?t:function(){return t}}var AL={archimedean:jL,rectangular:wL};function EL(){var t=[256,256],e=pL,n=gL,r=dL,i=yL,o=vL,a=jL,c=Math.random,s=[],l=1/0,u=fL,h=dL,f=SL,p={};function d(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=hL/e;var n=t.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function g(e,n,r){for(var i=n.x,o=n.y,s=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=a(t),u=c()<.5?1:-1,h,f=-u,p,d;(h=l(f+=u))&&(p=~~h[0],d=~~h[1],!(Math.min(Math.abs(p),Math.abs(d))>=s));)if(n.x=i+p,n.y=o+d,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!bL(n,e,t[0]))&&(!r||OL(n,r))){for(var g=n.sprite,y=n.width>>5,v=t[0]>>5,m=n.x-(y<<4),b=127&m,x=32-b,O=n.y1-n.y0,j=void 0,w=(n.y+n.y0)*v+(m>>5),M=0;M<O;M++){j=0;for(var S=0;S<=y;S++)e[w+S]|=j<<x|(S<y?(j=g[M*y+S])>>>b:0);w+=v}return delete n.sprite,!0}return!1}return p.start=function(){var a=t[0],y=t[1],v=d(f()),m=p.board?p.board:ML((t[0]>>5)*t[1]),b=s.length,x=[],O=s.map((function(t,a,c){return t.text=u.call(this,t,a,c),t.font=e.call(this,t,a,c),t.style=h.call(this,t,a,c),t.weight=r.call(this,t,a,c),t.rotate=i.call(this,t,a,c),t.size=~~n.call(this,t,a,c),t.padding=o.call(this,t,a,c),t})).sort((function(t,e){return e.size-t.size})),j=-1,w=p.board?[{x:0,y:0},{x:a,y:y}]:null;function M(){for(var e=Date.now();Date.now()-e<l&&++j<b;){var n=O[j];n.x=a*(c()+.5)>>1,n.y=y*(c()+.5)>>1,mL(v,n,O,j),n.hasText&&g(m,n,w)&&(x.push(n),w?p.hasImage||xL(w,n):w=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}p._tags=x,p._bounds=w}return M(),p},p.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=ML((r>>5)*i);n.width=r,n.height=i;var c=n.getContext("2d");c.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var s=c.getImageData(0,0,r,i).data,l=0;l<i;l++)for(var u=0;u<r;u++){var h=o*l+(u>>5),f=l*r+u<<2,d,g=s[f]>=250&&s[f+1]>=250&&s[f+2]>=250?1<<31-u%32:0;a[h]|=g}p.board=a,p.hasImage=!0}},p.timeInterval=function(t){l=null==t?1/0:t},p.words=function(t){s=t},p.size=function(e){t=[+e[0],+e[1]]},p.font=function(t){e=CL(t)},p.fontWeight=function(t){r=CL(t)},p.rotate=function(t){i=CL(t)},p.spiral=function(t){a=AL[t]||t},p.fontSize=function(t){n=CL(t)},p.padding=function(t){o=CL(t)},p.random=function(t){c=CL(t)},p}function kL(t){var e=t.options,n=t.chart,r=n,i=r.width,o=r.height,a=r.padding,c=r.appendPadding,l=r.ele,u=e.data,h=e.imageMask,f=e.wordField,p=e.weightField,d=e.colorField,g=e.wordStyle,y=e.timeInterval,v=e.random,m=e.spiral,b=e.autoFit,x=void 0===b||b,O=e.placementStrategy;if(!u||!u.length)return[];var j=g.fontFamily,w=g.fontWeight,M=g.padding,S=g.fontSize,C=LL(u,p),A=[RL(C),_L(C)],E=u.map((function(t){return{text:t[f],value:t[p],color:t[d],datum:t}})),k={imageMask:h,font:j,fontSize:FL(S,A),fontWeight:w,size:TL({width:i,height:o,padding:a,appendPadding:c,autoFit:x,container:l}),padding:M,timeInterval:y,random:v,spiral:m,rotate:BL(e)};if(Object(s.I)(O)){var T=E.map((function(t,e,r){return Object(Mf.a)(Object(Mf.a)(Object(Mf.a)({},t),{hasText:!!t.text,font:CL(k.font)(t,e,r),weight:CL(k.fontWeight)(t,e,r),rotate:CL(k.rotate)(t,e,r),size:CL(k.fontSize)(t,e,r),style:"normal"}),O.call(n,t,e,r))}));return T.push({text:"",value:0,x:0,y:0,opacity:0}),T.push({text:"",value:0,x:k.size[0],y:k.size[1],opacity:0}),T}return cL(E,k)}function TL(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,o=t.padding,a=t.appendPadding;if(i){var c=Vf(r);e=c.width,n=c.height}e=e||400,n=n||400;var s=PL({padding:o,appendPadding:a}),l=s[0],u=s[1],h=s[2],f,p;return[e-(s[3]+u),n-(l+h)]}function PL(t){var e=np(t.padding),n=np(t.appendPadding),r,i,o,a;return[e[0]+n[0],e[1]+n[1],e[2]+n[2],e[3]+n[3]]}function IL(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(s.Q)(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){Tf(Cf.ERROR,!1,"image %s load failed !!!",t),n()})}Tf(Cf.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function FL(t,e){if(Object(s.I)(t))return t;if(Object(s.C)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var i=e[0],o=e[1];return o===i?function(){return(r+n)/2}:function t(e){var a=e.value;return(r-n)/(o-i)*(a-i)+n}}return function(){return t}}function LL(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}function BL(t){var e=DL(t),n=e.rotation,r=e.rotationSteps;if(!Object(s.C)(n))return n;var i=n[0],o=n[1],a=1===r?0:(o-i)/(r-1);return function t(){return o===i?o:Math.floor(Math.random()*r)*a}}function DL(t){var e=t.wordStyle.rotationSteps;return e<1&&(Tf(Cf.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function RL(t){return Math.min.apply(Math,t)}function _L(t){return Math.max.apply(Math,t)}function NL(t){var e=t.chart,n=t.options,r=n.colorField,i=n.color,o=kL(t),a,c;return e.data(o),ld(Gf({},t,{options:{xField:"x",yField:"y",seriesField:r&&"color",rawFields:Object(s.I)(i)&&Object(Mf.d)(Object(Mf.d)([],Object(s.s)(n,"rawFields",[]),!0),["datum"],!1),point:{color:i,shape:"word-cloud"}}})).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function zL(t){return Wf(Hp({x:{nice:!1},y:{nice:!1}}))(t)}function YL(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend("color",r),t}function GL(t){Wf(NL,zL,Dp,YL,Rp,_p,Np,zp)(t)}function HL(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}xi("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,i=e.addShape("text",{attrs:Object(Mf.a)(Object(Mf.a)({},HL(t)),{x:n,y:r})}),o=t.data.rotate;return"number"==typeof o&&mo.rotate(i,o*Math.PI/180),i}});var VL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}return Object(Mf.b)(e,t),e.getDefaultOptions=function(){return oL},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(kL({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var i=function(r){e.options=Object(Mf.a)(Object(Mf.a)({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};IL(r).then(i).catch(i)}))},e.prototype.getSchemaAdaptor=function(){return GL},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))},e}(yd),WL=function(t){function e(e,n,r,i){var o=t.call(this,e,Gf({},i,n))||this;return o.type="g2-plot",o.defaultOptions=i,o.adaptor=r,o}return Object(Mf.b)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e}(yd),XL="2.4.32";Kp("en-US",Qp),Kp("zh-CN",Jp);var $L={scale:Hp,legend:Bp,tooltip:Dp,annotation:Vp,interaction:Rp,theme:Np,animation:_p},qL=n(100),UL=function(){return(UL=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},KL=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function c(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))},ZL=function(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=2&c[0]?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){n=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(6===c[0]&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t],i=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},QL=UL({},qL),JL=QL.version,tB=QL.render,eB=QL.unmountComponentAtNode,nB;try{var rB;Number((JL||"").split(".")[0])>=18&&(nB=QL.createRoot)}catch(t){}function iB(t){var e=QL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"==typeof e&&(e.usingClientEntryPoint=t)}var oB="__rc_react_root__";function aB(t,e){iB(!0);var n=e[oB]||nB(e);iB(!1),n.render(t),e[oB]=n}function cB(t,e){tB(t,e)}function sB(t,e){0}function lB(t,e){nB?aB(t,e):cB(t,e)}function uB(t){return KL(this,void 0,void 0,(function(){return ZL(this,(function(e){return[2,Promise.resolve().then((function(){var e;null===(e=t[oB])||void 0===e||e.unmount(),delete t[oB]}))]}))}))}function hB(t){eB(t)}function fB(t){0}function pB(t){return KL(this,void 0,void 0,(function(){return ZL(this,(function(e){return void 0!==nB?[2,uB(t)]:(hB(t),[2])}))}))}var dB=new Map,gB,yB=function(t,e,n){var r=document.createElement("div");return"tooltip"===e&&(r.setAttribute("data-uuid",n),dB.has(n)?r=dB.get(n):dB.set(n,r),r.className="g2-tooltip"),lB(t,r),r},vB=function(t,e){var n;return{}.toString.call(t)==="[object ".concat(e,"]")},mB=function(t){if(!t)return t;var e={};for(var n in t)e[n]=t[n];return e},bB=function(t){return Object.prototype.toString.call(t).slice(8,-1)},xB=function(t){return t&&"object"==typeof t?(Array.isArray(t)?e=t.map((function(t){return xB(t)})):(e={},Object.keys(t).forEach((function(n){return e[n]=xB(t[n])}))),e):t;var e},OB=function(t,e){for(var n=t,r=0;r<e.length;r+=1){if(!(null==n?void 0:n[e[r]])){n=void 0;break}n=n[e[r]]}return n},jB=function(t,e,n){if(!t)return t;var r=t;return e.forEach((function(t,i){i<e.length-1?r=r[t]:r[t]=n})),t},wB=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n;return("x"==t?e:3&e|8).toString(16)}))},MB=function(){return(MB=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},SB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function CB(t,e){var n=Object(o.useRef)(),r=Object(o.useRef)(),i=Object(o.useRef)(null),a=e.onReady,c=e.onEvent,l=function(t,e){var r;return void 0===t&&(t="image/png"),null===(r=n.current)||void 0===r?void 0:r.chart.canvas.cfg.el.toDataURL(t,e)},u=function(t,e,r){var i;void 0===t&&(t="download"),void 0===e&&(e="image/png");var o=t;-1===t.indexOf(".")&&(o="".concat(t,".").concat(e.split("/")[1]));var a=null===(i=n.current)||void 0===i?void 0:i.chart.canvas.cfg.el.toDataURL(e,r),c=document.createElement("a");return c.href=a,c.download=o,document.body.appendChild(c),c.click(),document.body.removeChild(c),c=null,o},h=function(t,e,n,r){var i=OB(t,e);jB(t,e,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=vB(i,"Function")?i.apply(void 0,t):i;return vB(o,"String")||vB(o,"Number")||vB(o,"HTMLDivElement")?o:yB(o,n,r)}))},f=function(){var t=wB();OB(e,["statistic","content","customHtml"])&&h(e,["statistic","content","customHtml"]),OB(e,["statistic","title","customHtml"])&&h(e,["statistic","title","customHtml"]),"object"==typeof e.tooltip&&(OB(e,["tooltip","container"])&&h(e,["tooltip","container"],"tooltip",t),OB(e,["tooltip","customContent"])&&h(e,["tooltip","customContent"],"tooltip",t))};return Object(o.useEffect)((function(){if(n.current&&!Object(s.H)(r.current,e)){var t=!1;if(r.current){var i=r.current,o=i.data,a=i.value,c=i.percent,l=SB(i,["data","value","percent"]),u=e.data,h=e.value,p=e.percent,d=SB(e,["data","value","percent"]);t=Object(s.H)(l,d)}if(r.current=xB(e),t&&"Mix"!==Object(s.s)(e,"chartType")){var g="data",y=["percent"],v=Object.keys(e);y.forEach((function(t){v.includes(t)&&(g=t)})),n.current.changeData((null==e?void 0:e[g])||[]),n.current.render()}else f(),n.current.update(e)}}),[e]),Object(o.useEffect)((function(){if(!i.current)return function(){return null};r.current||(r.current=xB(e)),f();var o=new t(i.current,MB({},e));o.toDataURL=function(t,e){return l(t,e)},o.downloadImage=function(t,e,n){return u(t,e,n)},o.render(),n.current=mB(o),a&&a(o);var s=function(t){c&&c(o,t)};return o.on("*",s),function(){n.current&&(n.current.destroy(),n.current.off("*",s),n.current=void 0)}}),[]),{chart:n,container:i}}var AB=function(t,e){t&&(Object(s.I)(t)?t(e):t.current=e)},EB=(kB=function(t,e){return(kB=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(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}kB(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),kB,TB,PB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(t){var n=e.props.errorTemplate;return"function"==typeof n?n(t):n||a.a.createElement("h5",null,"\u7ec4\u4ef6\u51fa\u9519\u4e86\uff0c\u8bf7\u6838\u67e5\u540e\u91cd\u8bd5\uff1a ",t.message)},e}return EB(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0,error:t}},e.getDerivedStateFromProps=function(t,e){return e.children!==t.children?{children:t.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):a.a.createElement(o.Fragment,null,this.props.children)},e}(a.a.Component),IB=function(){return(IB=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function FB(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var LB=function(){return Math.random().toString(36).substring(6)},BB=function(t){var e=t.animate,n=t.backgroundColor,r=t.backgroundOpacity,i=t.baseUrl,a=t.children,c=t.foregroundColor,s=t.foregroundOpacity,l=t.gradientRatio,u=t.uniqueKey,h=t.interval,f=t.rtl,p=t.speed,d=t.style,g=t.title,y=FB(t,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),v=u||LB(),m=v+"-diff",b=v+"-animated-diff",x=v+"-aria",O=f?{transform:"scaleX(-1)"}:null,j="0; "+h+"; 1",w=p+"s";return Object(o.createElement)("svg",IB({"aria-labelledby":x,role:"img",style:IB(IB({},d),O)},y),g?Object(o.createElement)("title",{id:x},g):null,Object(o.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+i+"#"+m+")",style:{fill:"url("+i+"#"+b+")"}}),Object(o.createElement)("defs",{role:"presentation"},Object(o.createElement)("clipPath",{id:m},a),Object(o.createElement)("linearGradient",{id:b},Object(o.createElement)("stop",{offset:"0%",stopColor:n,stopOpacity:r},e&&Object(o.createElement)("animate",{attributeName:"offset",values:-l+"; "+-l+"; 1",keyTimes:j,dur:w,repeatCount:"indefinite"})),Object(o.createElement)("stop",{offset:"50%",stopColor:c,stopOpacity:s},e&&Object(o.createElement)("animate",{attributeName:"offset",values:-l/2+"; "+-l/2+"; "+(1+l/2),keyTimes:j,dur:w,repeatCount:"indefinite"})),Object(o.createElement)("stop",{offset:"100%",stopColor:n,stopOpacity:r},e&&Object(o.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+l),keyTimes:j,dur:w,repeatCount:"indefinite"})))))};BB.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var DB=function(t){return t.children?Object(o.createElement)(BB,IB({},t)):Object(o.createElement)(RB,IB({},t))},RB=function(t){return Object(o.createElement)(DB,IB({viewBox:"0 0 476 124"},t),Object(o.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),Object(o.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},_B=function(t){return Object(o.createElement)(DB,IB({viewBox:"0 0 400 460"},t),Object(o.createElement)("circle",{cx:"31",cy:"31",r:"15"}),Object(o.createElement)("rect",{x:"58",y:"18",rx:"2",ry:"2",width:"140",height:"10"}),Object(o.createElement)("rect",{x:"58",y:"34",rx:"2",ry:"2",width:"140",height:"10"}),Object(o.createElement)("rect",{x:"0",y:"60",rx:"2",ry:"2",width:"400",height:"400"}))},NB=function(t){return Object(o.createElement)(DB,IB({viewBox:"0 0 340 84"},t),Object(o.createElement)("rect",{x:"0",y:"0",width:"67",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"76",y:"0",width:"140",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"127",y:"48",width:"53",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"187",y:"48",width:"72",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"18",y:"48",width:"100",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"0",y:"71",width:"37",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"18",y:"23",width:"140",height:"11",rx:"3"}),Object(o.createElement)("rect",{x:"166",y:"23",width:"173",height:"11",rx:"3"}))},zB=function(t){return Object(o.createElement)(DB,IB({viewBox:"0 0 400 110"},t),Object(o.createElement)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}),Object(o.createElement)("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}),Object(o.createElement)("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}))},YB=function(t){return Object(o.createElement)(DB,IB({viewBox:"0 0 245 125"},t),Object(o.createElement)("circle",{cx:"10",cy:"20",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}),Object(o.createElement)("circle",{cx:"10",cy:"50",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}),Object(o.createElement)("circle",{cx:"10",cy:"80",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}),Object(o.createElement)("circle",{cx:"10",cy:"110",r:"8"}),Object(o.createElement)("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}))},GB=DB,HB,VB=function(t){var e=t.loadingTemplate,n=t.theme,r=void 0===n?"light":n,i=function(){return e||a.a.createElement(GB,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:"dark"===r?"#262626":"#D9D9D9"},a.a.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),a.a.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),a.a.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),a.a.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),a.a.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),a.a.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),a.a.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),a.a.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),a.a.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),a.a.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return a.a.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===r?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},i())},WB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},XB,$B=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=WB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Fd,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),qB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},UB,KB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=qB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(pg,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),ZB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},QB,JB=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=ZB(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(hb,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),tD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},eD,nD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=tD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(gg,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),rD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},iD,oD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=rD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(ny,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),aD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},cD,sD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=aD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Iy,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),lD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},uD,hD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=lD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(By,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),fD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},pD,dD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=fD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(eb,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),gD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},yD,vD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=gD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(vj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),mD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},bD,xD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=mD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(ZO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),OD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},jD,wD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=OD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(ev,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),MD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},SD,CD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=MD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(xy,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),AD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},ED,kD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=AD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(sv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),TD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},PD,ID=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=TD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Cj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),FD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},LD,BD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=FD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(pv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),DD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},RD,_D=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=DD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Wj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),ND=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},zD,YD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=ND(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Lb,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),GD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},HD,VD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=GD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Iv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),WD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},XD,$D=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=WD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(nm,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),qD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},UD,KD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=qD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(cm,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),ZD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},QD,JD=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=ZD(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(DO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),tR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},eR,nR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=tR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(um,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),rR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},iR,oR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=rR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(rL,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),aR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},cR,sR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=aR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(VL,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),lR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},uR,hR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=lR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(BM,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),fR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},pR,dR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=fR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Xv,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),gR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},yR,vR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=gR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Dj,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),mR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},bR,xR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=mR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Bw,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),OR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},jR,wR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=OR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(qM,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),MR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},SR,CR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=MR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(NF,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),AR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},ER,kR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=AR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(rF,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),TR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},PR,IR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=TR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(oO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),FR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},LR,BR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=FR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(GO,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),DR=function(){return(DR=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},RR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},_R,NR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=RR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(jm,DR(DR({},h),{chartType:"Mix"})),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),zR=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},YR,GR=Object(o.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,c=t.className,s=t.loading,l=t.loadingTemplate,u=t.errorTemplate,h=zR(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),f=CB(Ym,h),p=f.chart,d=f.container;return Object(o.useEffect)((function(){AB(n,p.current)}),[p.current]),Object(o.useImperativeHandle)(e,(function(){return{getChart:function(){return p.current}}})),a.a.createElement(PB,{errorTemplate:u},s&&a.a.createElement(VB,{loadingTemplate:l,theme:t.theme}),a.a.createElement("div",{className:c,style:i,ref:d}))})),HR=e.default={Area:$B,Bar:KB,Box:dD,Bullet:JB,Column:nD,Funnel:oD,Histogram:sD,Line:hD,Liquid:vD,Heatmap:xD,Pie:wD,Progress:kD,Radar:ID,Facet:BR,RingProgress:BD,Rose:_D,Chord:YD,Scatter:VD,TinyArea:$D,TinyColumn:KD,TinyLine:nR,Waterfall:oR,WordCloud:sR,Sunburst:hR,DualAxes:JD,Stock:dR,RadialBar:vR,Gauge:CD,CirclePacking:IR,Sankey:xR,Treemap:wR,Violin:CR,Venn:kR,MultiView:NR,Mix:NR,BidirectionalBar:GR,getCanvasPattern:Fp,FUNNEL_CONVERSATION_FIELD:bg,G2:r,flow:Wf,measureTextWidth:Jf,adaptors:$L}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(7);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function c(t,e){var n=e[1],i=e[2],c=Object(r.m)(Object(r.o)(e[3]),2*Math.PI),s=e[4],l=e[5],u=t[0],h=t[1],f=e[6],p=e[7],d=Math.cos(c)*(u-f)/2+Math.sin(c)*(h-p)/2,g=-1*Math.sin(c)*(u-f)/2+Math.cos(c)*(h-p)/2,y=d*d/(n*n)+g*g/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var v=n*n*(g*g)+i*i*(d*d),m=v?Math.sqrt((n*n*(i*i)-v)/v):1;s===l&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?m*-i*d/n:0,O=(u+f)/2+Math.cos(c)*b-Math.sin(c)*x,j=(h+p)/2+Math.sin(c)*b+Math.cos(c)*x,w=[(d-b)/n,(g-x)/i],M=[(-1*d-b)/n,(-1*g-x)/i],S=a([1,0],w),C=a(w,M);return o(w,M)<=-1&&(C=Math.PI),o(w,M)>=1&&(C=0),0===l&&C>0&&(C-=2*Math.PI),1===l&&C<0&&(C+=2*Math.PI),{cx:O,cy:j,rx:Object(r.j)(t,[f,p])?0:n,ry:Object(r.j)(t,[f,p])?0:i,startAngle:S,endAngle:S+C,xRotation:c,arcFlag:s,sweepFlag:l}}},function(t,e,n){"use strict";(function(t){var r=n(22),i=n(98),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,c,s=a&&a.exports===o?r.a.Buffer:void 0,l,u=(s?s.isBuffer:void 0)||i.a;e.a=u}).call(this,n(79)(t))},,function(t,e){},function(t,e,n){"use strict";var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t;return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=r},function(t,e,n){"use strict";var r=n(1),i=n(48),o=n(15),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.i)(r,e),n}return Object(r.c)(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}(i.a);e.a=a},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return c})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return y})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return O})),n.d(e,"squaredDistance",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return M})),n.d(e,"inverse",(function(){return S})),n.d(e,"normalize",(function(){return C})),n.d(e,"dot",(function(){return A})),n.d(e,"cross",(function(){return E})),n.d(e,"lerp",(function(){return k})),n.d(e,"hermite",(function(){return T})),n.d(e,"bezier",(function(){return P})),n.d(e,"random",(function(){return I})),n.d(e,"transformMat4",(function(){return F})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return B})),n.d(e,"rotateX",(function(){return D})),n.d(e,"rotateY",(function(){return R})),n.d(e,"rotateZ",(function(){return _})),n.d(e,"angle",(function(){return N})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return Y})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return H})),n.d(e,"sub",(function(){return V})),n.d(e,"mul",(function(){return W})),n.d(e,"div",(function(){return X})),n.d(e,"dist",(function(){return $})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"len",(function(){return U})),n.d(e,"sqrLen",(function(){return K})),n.d(e,"forEach",(function(){return Z}));var r=n(17);function i(){var t=new r.a(3);return r.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.a(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function c(t,e,n){var i=new r.a(3);return i[0]=t,i[1]=e,i[2]=n,i}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function y(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function O(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function j(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function w(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function E(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],c=n[1],s=n[2];return t[0]=i*s-o*c,t[1]=o*a-r*s,t[2]=r*c-i*a,t}function k(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function T(t,e,n,r,i,o){var a=o*o,c=a*(2*o-3)+1,s=a*(o-2)+o,l=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*c+n[0]*s+r[0]*l+i[0]*u,t[1]=e[1]*c+n[1]*s+r[1]*l+i[1]*u,t[2]=e[2]*c+n[2]*s+r[2]*l+i[2]*u,t}function P(t,e,n,r,i,o){var a=1-o,c=a*a,s=o*o,l=c*a,u=3*o*c,h=3*s*a,f=s*o;return t[0]=e[0]*l+n[0]*u+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*u+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*u+r[2]*h+i[2]*f,t}function I(t,e){e=e||1;var n=2*r.c()*Math.PI,i=2*r.c()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function F(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function B(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],c=e[0],s=e[1],l=e[2],u=i*l-o*s,h=o*c-r*l,f=r*s-i*c,p=i*f-o*h,d=o*u-r*f,g=r*h-i*u,y=2*a;return u*=y,h*=y,f*=y,p*=2,d*=2,g*=2,t[0]=c+u+p,t[1]=s+h+d,t[2]=l+f+g,t}function D(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function _(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function N(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],c=e[2],s,l,u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+c*c),h=u&&A(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function Y(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function H(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],c=e[1],s=e[2];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-c)<=r.b*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-s)<=r.b*Math.max(1,Math.abs(o),Math.abs(s))}var V=h,W=f,X=p,$=O,q=j,U=a,K=w,Z=(Q=i(),function(t,e,n,r,i,o){var a,c;for(e||(e=3),n||(n=0),c=r?Math.min(r*e+n,t.length):t.length,a=n;a<c;a+=e)Q[0]=t[a],Q[1]=t[a+1],Q[2]=t[a+2],i(Q,Q,o),t[a]=Q[0],t[a+1]=Q[1],t[a+2]=Q[2];return t}),Q},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var o=t.getParent();o;)o.emitDelegation(e,i),i.propagationPath.push(o),o=o.getParent()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return Q}));var r={};function i(t){return+t}function o(t){return t*t}function a(t){return t*(2-t)}function c(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function s(t){return t*t*t}function l(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(r),n.d(r,"easeLinear",(function(){return i})),n.d(r,"easeQuad",(function(){return c})),n.d(r,"easeQuadIn",(function(){return o})),n.d(r,"easeQuadOut",(function(){return a})),n.d(r,"easeQuadInOut",(function(){return c})),n.d(r,"easeCubic",(function(){return u})),n.d(r,"easeCubicIn",(function(){return s})),n.d(r,"easeCubicOut",(function(){return l})),n.d(r,"easeCubicInOut",(function(){return u})),n.d(r,"easePoly",(function(){return d})),n.d(r,"easePolyIn",(function(){return f})),n.d(r,"easePolyOut",(function(){return p})),n.d(r,"easePolyInOut",(function(){return d})),n.d(r,"easeSin",(function(){return b})),n.d(r,"easeSinIn",(function(){return v})),n.d(r,"easeSinOut",(function(){return m})),n.d(r,"easeSinInOut",(function(){return b})),n.d(r,"easeExp",(function(){return w})),n.d(r,"easeExpIn",(function(){return O})),n.d(r,"easeExpOut",(function(){return j})),n.d(r,"easeExpInOut",(function(){return w})),n.d(r,"easeCircle",(function(){return C})),n.d(r,"easeCircleIn",(function(){return M})),n.d(r,"easeCircleOut",(function(){return S})),n.d(r,"easeCircleInOut",(function(){return C})),n.d(r,"easeBounce",(function(){return _})),n.d(r,"easeBounceIn",(function(){return R})),n.d(r,"easeBounceOut",(function(){return _})),n.d(r,"easeBounceInOut",(function(){return N})),n.d(r,"easeBack",(function(){return H})),n.d(r,"easeBackIn",(function(){return Y})),n.d(r,"easeBackOut",(function(){return G})),n.d(r,"easeBackInOut",(function(){return H})),n.d(r,"easeElastic",(function(){return q})),n.d(r,"easeElasticIn",(function(){return $})),n.d(r,"easeElasticOut",(function(){return q})),n.d(r,"easeElasticInOut",(function(){return U}));var h=3,f=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),p=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),d=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),g=Math.PI,y=g/2;function v(t){return 1==+t?1:1-Math.cos(t*y)}function m(t){return Math.sin(t*y)}function b(t){return(1-Math.cos(g*t))/2}function x(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function O(t){return x(1-+t)}function j(t){return 1-x(t)}function w(t){return((t*=2)<=1?x(1-t):2-x(t-1))/2}function M(t){return 1-Math.sqrt(1-t*t)}function S(t){return Math.sqrt(1- --t*t)}function C(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var A=4/11,E=6/11,k=8/11,T=3/4,P=9/11,I=10/11,F=15/16,L=21/22,B=63/64,D=7.5625;function R(t){return 1-_(1-t)}function _(t){return(t=+t)<A?D*t*t:t<k?D*(t-=E)*t+T:t<I?D*(t-=P)*t+F:D*(t-=L)*t+B}function N(t){return((t*=2)<=1?1-_(1-t):_(t-1)+1)/2}var z=1.70158,Y=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),G=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),H=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),V=2*Math.PI,W=1,X=.3,$=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function i(t){return e*x(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*V)},i.period=function(n){return t(e,n)},i}(1,.3),q=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function i(t){return 1-e*x(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*V)},i.period=function(n){return t(e,n)},i}(1,.3),U=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function i(t){return((t=2*t-1)<0?e*x(-t)*Math.sin((r-t)/n):2-e*x(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*V)},i.period=function(n){return t(e,n)},i}(1,.3),K={};function Z(t){return K[t.toLowerCase()]||r[t]}function Q(t,e){K[t.toLowerCase()]=e}},function(t,e,n){"use strict";var r=n(1),i=n(62),o=n(15),a={},c="_INDEX";function s(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){s(t,e)}))}}function l(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function u(t,e){var n;return t.getChildren().indexOf(e)>=0}function h(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}function f(t){return function(e,n){var r=t(e,n);return 0===r?e[c]-n[c]:r}}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)})),a;return i.length>0?Object(o.a)(i,(function(i){var o=i.getBBox(),a=o.minX,c=o.maxX,s=o.minY,l=o.maxY;a<t&&(t=a),c>e&&(e=c),s<n&&(n=s),l>r&&(r=l)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)})),a;return i.length>0?Object(o.a)(i,(function(i){var o=i.getCanvasBBox(),a=o.minX,c=o.maxX,s=o.minY,l=o.maxY;a<t&&(t=a),c>e&&(e=c),s<n&&(n=s),l>r&&(r=l)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];Object(o.f)(n)?r=n:r.type=n;var i=a[r.type];i||(i=Object(o.k)(r.type),a[r.type]=i);var c=this.getShapeBase(),s=new c[i](r);return this.add(s),s},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i;if(Object(o.d)(n))i=new n(r||{parent:this});else{var a=n||{},c=this.getGroupBase();i=new c(a)}return this.add(i),i},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Object(o.b)(this))return null;var r=this.getChildren(),i;if(this.isCanvas())i=this._findShape(r,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(i=this._findShape(r,a[0],a[1],n))}return i},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var c=t[a];if(Object(o.b)(c)&&(c.isGroup()?i=c.getShape(e,n,r):c.isHit(e,n)&&(i=c)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&h(i,t,!1),t.set("parent",this),e&&s(t,e),r&&l(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();Object(o.a)(t,(function(t,e){return t[c]=e,t})),t.sort(f((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),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){var e;return this.getChildren()[t]},e.prototype.getCount=function(){var t;return this.getChildren().length},e.prototype.contain=function(t){var e;return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(i.a);e.a=p},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(4),a=n(15),c=n(26),s=n(56),l=o.a.transform,u="matrix",h=["zIndex","capture","visible","type"],f=["repeat"],p=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)Object(i.C)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function y(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function v(t,e){var n={},r=e.attr();return Object(i.j)(t,(function(t,e){-1!==f.indexOf(e)||Object(i.H)(r[e],t)||(n[e]=t)})),n}function m(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.j)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&o>t.delay&&Object(i.j)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.db)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],o=e[1];if(!r)return this.attrs;if(Object(i.O)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,o),this.afterAttrsChange(((t={})[r]=o,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=this.get("el"),r=e.indexOf(this);e.splice(r,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=this.get("el"),r=e.indexOf(this);e.splice(r,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a.j)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(u,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(u)},e.prototype.setMatrix=function(t){this.attr(u,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(c.b)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(c.b)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(c.c)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(c.a)(e);if(n)return Object(c.c)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r,o,a=this.getShapeBase()[Object(i.wb)(t.type)];a&&(n=new a({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(i.j)(e,(function(t,r){Object(i.C)(e[r])?n[r]=g(e[r]):n[r]=e[r]}));var r,o=new(0,this.constructor)({attrs:n});return Object(i.j)(h,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e;this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var o=t[0],a=t[1],c=t[2],s=void 0===c?"easeLinear":c,l=t[3],u=void 0===l?i.fb:l,h=t[4],f=void 0===h?0:h,p,d,g,b,x;Object(i.I)(o)?(p=o,o={}):Object(i.O)(o)&&o.onFrame&&(p=o.onFrame,d=o.repeat),Object(i.O)(a)?(a=(x=a).duration,s=x.easing||"easeLinear",f=x.delay||0,d=x.repeat||d||!1,u=x.callback||i.fb,g=x.pauseCallback||i.fb,b=x.resumeCallback||i.fb):(Object(i.M)(u)&&(f=u,u=null),Object(i.I)(s)?(u=s,s="easeLinear"):s=s||"easeLinear");var O=v(o,this),j={fromAttrs:y(O,this),toAttrs:O,duration:a,easing:s,repeat:d,callback:u,pauseCallback:g,resumeCallback:b,delay:f,startTime:n.getTime(),id:Object(i.vb)(),onFrame:p,pathFormatted:!1};r.length>0?r=m(r,j):n.addAnimator(this),r.push(j),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.j)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.j)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t,e=this.get("timeline").getTime(),n=this.get("animations"),r=this.get("_pause").pauseTime;return Object(i.j)(n,(function(t){t.startTime=t.startTime+(e-r),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n=this,r=e.propagationPath,o=this.getEvents(),c;"mouseenter"===t?c=e.fromShape:"mouseleave"===t&&(c=e.toShape);for(var s=function(t){var o=r[t],s=o.get("name");if(s){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&c&&Object(a.g)(o,c))return"break";Object(i.C)(s)?Object(i.j)(s,(function(t){n.emitDelegateEvent(o,t,e)})):l.emitDelegateEvent(o,s,e)}},l=this,u=0;u<r.length;u++){var h;if("break"===s(u))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=l(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=l(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=l(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=l(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=l(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(s.a);e.a=b},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=function(t,e,n){if(n||2===arguments.length)for(var r=0,i=e.length,o;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},i=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),a=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}(),c=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),s=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),l,u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?v(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?v(navigator.userAgent):b()}function g(t){return""!==t&&f.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}function y(t){var e=g(t);return e?e[0]:null}function v(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new c;var s=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=r(r([],s,!0),x(3-s.length),!0)):s=[];var l=s.join("."),h=m(t),f=u.exec(t);return f&&f[1]?new a(n,l,h,f[1]):new i(n,l,h)}function m(t){for(var e=0,n=p.length;e<n;e++){var r=p[e],i=r[0],o,a;if(r[1].exec(t))return i}return null}function b(){var e;return void 0!==t&&t.version?new o(t.version.slice(1)):null}function x(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}).call(this,n(114))},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return l}));var r=n(34);n.d(e,"Shape",(function(){return r}));var i=n(10);for(var o in i)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a=n(90);n.d(e,"Canvas",(function(){return a.a}));var c=n(45);n.d(e,"Group",(function(){return c.a}));var s=n(51);n.d(e,"getArcParams",(function(){return s.a}));var l="0.5.12"},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var r=n(7),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t,e){var n=t.match(c);Object(r.c)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var r=i.exec(n),o=parseFloat(r[1])%360*(Math.PI/180),a=r[2],c=e.getBBox(),l,u;o>=0&&o<.5*Math.PI?(l={x:c.minX,y:c.minY},u={x:c.maxX,y:c.maxY}):.5*Math.PI<=o&&o<Math.PI?(l={x:c.maxX,y:c.minY},u={x:c.minX,y:c.maxY}):Math.PI<=o&&o<1.5*Math.PI?(l={x:c.maxX,y:c.maxY},u={x:c.minX,y:c.minY}):(l={x:c.minX,y:c.maxY},u={x:c.maxX,y:c.minY});var h=Math.tan(o),f=h*h,p=(u.x-l.x+h*(u.y-l.y))/(f+1)+l.x,d=h*(u.x-l.x+h*(u.y-l.y))/(f+1)+l.y,g=t.createLinearGradient(l.x,l.y,p,d);return s(a,g),g}function u(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),l=parseFloat(r[3]),u=r[4];if(0===l){var h=u.match(c);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,y=t.createRadialGradient(f.minX+p*i,f.minY+d*a,0,f.minX+p/2,f.minY+d/2,l*g);return s(u,y),y}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=a.exec(n),c=o[1],s=o[2];function l(){r=t.createPattern(i,c),e.set("pattern",r),e.set("patternSource",n)}switch(c){case"a":c="repeat";break;case"x":c="repeat-x";break;case"y":c="repeat-y";break;case"n":c="no-repeat";break;default:c="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,i.src=i.src),r}function f(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if(Object(r.k)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return l(t,e,n);if("r"===n[0])return u(t,e,n);if("p"===n[0])return h(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function p(t){var e=0,n=0,i=0,o=0;return Object(r.g)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,[e,n,i,o]}},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(78))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0;var r="size-sensor-id";e.SizeSensorId=r;var i="size-sensor-object";e.SensorClassName=i;var o="-1";e.SensorTabIndex="-1"},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}var a=function(t){var e=t.attr(),n,r,i,o;return{x:e.x,y:e.y,width:e.width,height:e.height}},c=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}},s=n(16);function l(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function u(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape"),i=null,o=null;return n&&(e=l(e,i=n.getCanvasBBox())),r&&(e=l(e,o=r.getCanvasBBox())),e}var h=function(t){for(var e,n=t.attr().points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}var c=s.f.getBBoxByArray(r,i),l=c.x,h=c.y,f,p,d={minX:l,minY:h,maxX:l+c.width,maxY:h+c.height};return{x:(d=u(t,d)).minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}},f=function(t){for(var e,n=t.attr().points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}return s.f.getBBoxByArray(r,i)},p=n(38),d=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,c=e.font;c||(c=Object(p.a)(e));var s=Object(p.c)(i,c),l;if(s){var u=e.textAlign,h=e.textBaseline,f=Object(p.b)(i,o,a),d={x:n,y:r-f};u&&("end"===u||"right"===u?d.x-=s:"center"===u&&(d.x-=s/2)),h&&("top"===h?d.y+=f:"middle"===h&&(d.y+=f/2)),l={x:d.x,y:d.y,width:s,height:f}}else l={x:n,y:r,width:0,height:0};return l},g=n(27),y=n(0);function v(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a,c=(a=t[o]).currentPoint,l=a.params,u=a.prePoint,h=void 0;switch(a.command){case"Q":h=s.e.box(u[0],u[1],l[1],l[2],l[3],l[4]);break;case"C":h=s.b.box(u[0],u[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var f=a.arcParams;h=s.a.box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(c[0]),r.push(c[1])}h&&(a.box=h,n.push(h.x,h.x+h.width),r.push(h.y,h.y+h.height)),e&&("L"===a.command||"M"===a.command)&&a.prePoint&&a.nextPoint&&i.push(a)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),r=r.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var p=Object(y.bb)(n),d=Object(y.bb)(r),g=Object(y.Y)(n),v=Object(y.Y)(r);if(0===i.length)return{x:p,y:d,width:g-p,height:v-d};for(var o=0;o<i.length;o++){var a,c,b=void 0;(c=(a=i[o]).currentPoint)[0]===p?p-=(b=m(a,e)).xExtra:c[0]===g&&(g+=(b=m(a,e)).xExtra),c[1]===d?d-=(b=m(a,e)).yExtra:c[1]===v&&(v+=(b=m(a,e)).yExtra)}return{x:p,y:d,width:g-p,height:v-d}}function m(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),c=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),s=Math.acos((o+a-c)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!s||0===Math.sin(s)||Object(y.N)(s,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1])),h;return l=l>Math.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(s/2-l)*(e/2*(1/Math.sin(s/2)))-e/2||0,yExtra:Math.cos(u-s/2)*(e/2*(1/Math.sin(s/2)))-e/2||0}}var b=function(t){var e=t.attr(),n=e.path,r,i=e.stroke?e.lineWidth:0,o,a=v(t.get("segments")||Object(g.e)(n),i),c=a.x,s=a.y,l,h,f={minX:c,minY:s,maxX:c+a.width,maxY:s+a.height};return{x:(f=u(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}},x=function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a,c,s,l,h={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(h=u(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},O=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}};i("rect",a),i("image",a),i("circle",c),i("marker",c),i("polyline",h),i("polygon",f),i("text",d),i("path",b),i("line",x),i("ellipse",O)},function(t,e,n){"use strict";(function(t){var r=n(66),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a,c=o&&o.exports===i&&r.a.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();e.a=s}).call(this,n(79)(t))},function(t,e,n){"use strict";t.exports=n(122)},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(1),i,o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(n(61).a);e.a=o},function(t,e,n){"use strict";var r=n(1),i=n(62),o=n(26),a=function(t){function e(e){return t.call(this,e)||this}return Object(r.c)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var c=Object(o.c)(e,[t.minX,t.minY]),s=Object(o.c)(e,[t.maxX,t.minY]),l=Object(o.c)(e,[t.minX,t.maxY]),u=Object(o.c)(e,[t.maxX,t.maxY]);n=Math.min(c[0],s[0],l[0],u[0]),i=Math.max(c[0],s[0],l[0],u[0]),r=Math.min(c[1],s[1],l[1],u[1]),a=Math.max(c[1],s[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,y=h.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,b=i+p+g,x=r-p+v,O=a+p+v;n=Math.min(n,m),i=Math.max(i,b),r=Math.min(r,x),a=Math.max(a,O)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],c=this._isInBBox(o,a);if(this.isOnlyHitBox())return c;if(c&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.a);e.a=a},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=null;return function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(r),r=setTimeout((function(){e.apply(t,o)}),n)}};e.default=r},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){(function(r){var i,o;i=this,o=function(){var t=t||function(t,e){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==r&&r.crypto&&(i=r.crypto),!i)try{i=n(121)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),c={},s=c.lib={},l=s.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=s.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var c=0;c<i;c+=4)e[r+c>>>2]=n[c>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),h=c.enc={},f=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},p=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},d=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,c,s=o/(4*a),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,h=t.min(4*l,o);if(l){for(var f=0;f<l;f+=a)this._doProcessBlock(i,f);n=i.splice(0,l),r.sigBytes-=h}return new u.init(n,h)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),y=s.Hasher=g.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){var e;return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new v.HMAC.init(t,n).finalize(e)}}}),v=c.algo={};return c}(Math);return t},t.exports=e=o()}).call(this,n(78))},function(t,e,n){"use strict";var r=n(1),i=n(63),o=n(61),a=n(15),c=n(0),s=0,l=0,u=0,h=1e3,f,p,d=0,g=0,y=0,v="object"==typeof performance&&performance.now?performance:Date,m="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function b(){return g||(m(x),g=v.now()+y)}function x(){g=0}function O(){this._call=this._time=this._next=null}function j(t,e,n){var r=new O;return r.restart(t,e,n),r}function w(){b(),++s;for(var t=f,e;t;)(e=g-t._time)>=0&&t._call.call(null,e),t=t._next;--s}function M(){g=(d=v.now())+y,s=l=0;try{w()}finally{s=0,C(),g=0}}function S(){var t=v.now(),e=t-d;e>1e3&&(y-=e,d=t)}function C(){for(var t,e=f,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:f=n);p=t,A(r)}function A(t){var e;s||(l&&(l=clearTimeout(l)),t-g>24?(t<1/0&&(l=setTimeout(M,t-v.now()-y)),u&&(u=clearInterval(u))):(u||(d=v.now(),u=setInterval(S,1e3)),s=1,m(M)))}O.prototype=j.prototype={constructor:O,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||p===this||(p?p._next=this:f=this,p=this),this._call=t,this._time=n,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};var E=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function k(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function T(){}var P=.7,I=1/.7,F="\\s*([+-]?\\d+)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D=/^#([0-9a-f]{3,8})$/,R=new RegExp(`^rgb\\(${F},${F},${F}\\)$`),_=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),N=new RegExp(`^rgba\\(${F},${F},${F},${L}\\)$`),z=new RegExp(`^rgba\\(${B},${B},${B},${L}\\)$`),Y=new RegExp(`^hsl\\(${L},${B},${B}\\)$`),G=new RegExp(`^hsla\\(${L},${B},${B},${L}\\)$`),H={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 W(){return this.rgb().formatHex8()}function X(){return ct(this).formatHsl()}function $(){return this.rgb().formatRgb()}function q(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=D.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?U(e):3===n?new J(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?K(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?K(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=R.exec(t))?new J(e[1],e[2],e[3],1):(e=_.exec(t))?new J(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?K(e[1],e[2],e[3],e[4]):(e=z.exec(t))?K(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Y.exec(t))?at(e[1],e[2]/100,e[3]/100,1):(e=G.exec(t))?at(e[1],e[2]/100,e[3]/100,e[4]):H.hasOwnProperty(t)?U(H[t]):"transparent"===t?new J(NaN,NaN,NaN,0):null}function U(t){return new J(t>>16&255,t>>8&255,255&t,1)}function K(t,e,n,r){return r<=0&&(t=e=n=NaN),new J(t,e,n,r)}function Z(t){return t instanceof T||(t=q(t)),t?new J((t=t.rgb()).r,t.g,t.b,t.opacity):new J}function Q(t,e,n,r){return 1===arguments.length?Z(t):new J(t,e,n,null==r?1:r)}function J(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function tt(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}`}function et(){return`#${ot(this.r)}${ot(this.g)}${ot(this.b)}${ot(255*(isNaN(this.opacity)?1:this.opacity))}`}function nt(){const t=rt(this.opacity);return`${1===t?"rgb(":"rgba("}${it(this.r)}, ${it(this.g)}, ${it(this.b)}${1===t?")":`, ${t})`}`}function rt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function it(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ot(t){return((t=it(t))<16?"0":"")+t.toString(16)}function at(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lt(t,e,n,r)}function ct(t){if(t instanceof lt)return new lt(t.h,t.s,t.l,t.opacity);if(t instanceof T||(t=q(t)),!t)return new lt;if(t instanceof lt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,c=o-i,s=(o+i)/2;return c?(a=e===o?(n-r)/c+6*(n<r):n===o?(r-e)/c+2:(e-n)/c+4,c/=s<.5?o+i:2-o-i,a*=60):c=s>0&&s<1?0:a,new lt(a,c,s,t.opacity)}function st(t,e,n,r){return 1===arguments.length?ct(t):new lt(t,e,n,null==r?1:r)}function lt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ut(t){return(t=(t||0)%360)<0?t+360:t}function ht(t){return Math.max(0,Math.min(1,t||0))}function ft(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function pt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}E(T,q,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:V,formatHex:V,formatHex8:W,formatHsl:X,formatRgb:$,toString:$}),E(J,Q,k(T,{brighter(t){return t=null==t?1/.7:Math.pow(1/.7,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new J(it(this.r),it(this.g),it(this.b),rt(this.opacity))},displayable(){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:tt,formatHex:tt,formatHex8:et,formatRgb:nt,toString:nt})),E(lt,st,k(T,{brighter(t){return t=null==t?1/.7:Math.pow(1/.7,t),new lt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new lt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new J(ft(t>=240?t-240:t+120,i,r),ft(t,i,r),ft(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new lt(ut(this.h),ht(this.s),ht(this.l),rt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=rt(this.opacity);return`${1===t?"hsl(":"hsla("}${ut(this.h)}, ${100*ht(this.s)}%, ${100*ht(this.l)}%${1===t?")":`, ${t})`}`}}));var dt=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,c=r<e-1?t[r+2]:2*o-i;return pt((n-r/e)*e,a,i,o,c)}},gt=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],c=t[(r+2)%e];return pt((n-r/e)*e,i,o,a,c)}},yt=t=>()=>t;function vt(t,e){return function(n){return t+n*e}}function mt(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function bt(t,e){var n=e-t;return n?vt(t,n>180||n<-180?n-360*Math.round(n/360):n):yt(isNaN(t)?e:t)}function xt(t){return 1==(t=+t)?Ot:function(e,n){return n-e?mt(e,n,t):yt(isNaN(e)?n:e)}}function Ot(t,e){var n=e-t;return n?vt(t,n):yt(isNaN(t)?e:t)}var jt=function t(e){var n=xt(e);function r(t,e){var r=n((t=Q(t)).r,(e=Q(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ot(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function wt(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),a,c;for(a=0;a<n;++a)c=Q(e[a]),r[a]=c.r||0,i[a]=c.g||0,o[a]=c.b||0;return r=t(r),i=t(i),o=t(o),c.opacity=1,function(t){return c.r=r(t),c.g=i(t),c.b=o(t),c+""}}}var Mt=wt(dt),St=wt(gt),Ct=function(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}};function At(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var Et=function(t,e){return(At(e)?Ct:kt)(t,e)};function kt(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=_t(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(t){for(a=0;a<r;++a)o[a]=i[a](t);return o}}var Tt=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},Pt=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},It=function(t,e){var n={},r={},i;for(i in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)i in t?n[i]=_t(t[i],e[i]):r[i]=e[i];return function(t){for(i in n)r[i]=n[i](t);return r}},Ft=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lt=new RegExp(Ft.source,"g");function Bt(t){return function(){return t}}function Dt(t){return function(e){return t(e)+""}}var Rt=function(t,e){var n=Ft.lastIndex=Lt.lastIndex=0,r,i,o,a=-1,c=[],s=[];for(t+="",e+="";(r=Ft.exec(t))&&(i=Lt.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(i=i[0])?c[a]?c[a]+=i:c[++a]=i:(c[++a]=null,s.push({i:a,x:Pt(r,i)})),n=Lt.lastIndex;return n<e.length&&(o=e.slice(n),c[a]?c[a]+=o:c[++a]=o),c.length<2?s[0]?Dt(s[0].x):Bt(e):(e=s.length,function(t){for(var n=0,r;n<e;++n)c[(r=s[n]).i]=r.x(t);return c.join("")})},_t=function(t,e){var n=typeof e,r;return null==e||"boolean"===n?yt(e):("number"===n?Pt:"string"===n?(r=q(e))?(e=r,jt):Rt:e instanceof q?jt:e instanceof Date?Tt:At(e)?Ct:Array.isArray(e)?kt:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?It:Pt)(t,e)},Nt=n(60),zt=n(33),Yt=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Gt=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Ht=[1,0,0,0,1,0,0,0,1];function Vt(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var s in o)if(!Object(c.H)(i[s],o[s]))if("path"===s){var l=o[s],u=i[s];l.length>u.length?(l=zt.parsePathString(o[s]),u=zt.parsePathString(i[s]),u=zt.fillPathByDiff(u,l),u=zt.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=zt.parsePathString(o[s]),u=zt.parsePathString(i[s]),u=zt.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),r[s]=[];for(var h=0;h<l.length;h++){for(var f=l[h],p=u[h],d=[],g=0;g<f.length;g++)Object(c.M)(f[g])&&p&&Object(c.M)(p[g])?(a=_t(p[g],f[g]),d.push(a(n))):d.push(f[g]);r[s].push(d)}}else if("matrix"===s){var y,v=Et(i[s]||Ht,o[s]||Ht)(n);r[s]=v}else Yt(s)&&Gt(o[s])?r[s]=o[s]:Object(c.I)(o[s])||(a=_t(i[s],o[s]),r[s]=a(n));t.attr(r)}}function Wt(t,e,n){var r=e.startTime,i,o;if(n<r+e.delay||e._paused)return!1;var a=e.duration,c=e.easing,s=Object(Nt.a)(c);if(n=n-r-e.delay,e.repeat)o=s(o=n%a/a);else{if(!((o=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;o=s(o)}if(e.onFrame){var l=e.onFrame(o);t.attr(l)}else Vt(t,e,o);return!1}var Xt,$t=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t=this,e=!1,n,r,i;this.timer=j((function(o){if(t.current=o,t.animators.length>0){for(var a=t.animators.length-1;a>=0;a--)if((n=t.animators[a]).destroyed)t.removeAnimator(a);else{if(!n.isAnimatePaused())for(var c=(r=n.get("animations")).length-1;c>=0;c--)i=r[c],(e=Wt(n,i,o))&&(r.splice(c,1),e=!1,i.callback&&i.callback());0===r.length&&t.removeAnimator(a)}var s;t.canvas.get("autoDraw")||t.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}(),qt=n(55),Ut=40,Kt=0,Zt=":",Qt=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Jt(t,e){for(var n in t)if(t.hasOwnProperty(n)&&n.indexOf(":"+e)>=0)return!0;return!1}function te(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function ee(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Object(a.g)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var ne,re=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n,r;if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var i=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,i,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n,r;if(e.canvas.get("el")!==t.target&&e.dragging){var i=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,i,null),e._emitEvent("dragend",t,i,e.draggingShape),e._afterDrag(e.draggingShape,i,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(a.a)(Qt,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(a.a)(Qt,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new qt.a(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var c=this.canvas,s;c.get("el").style.cursor=r.attr("cursor")||c.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var c=this.mousedownShape,s,l=n.timeStamp-this.mousedownTimeStamp,u=a.clientX-t.clientX,h=a.clientY-t.clientY,f;l>120||u*u+h*h>40?c&&c.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!c&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,te(r,t,a);for(var c=r.getParent();c;)c.emitDelegation(t,a),a.propagationStopped||ee(c,t,a),a.propagationPath.push(c),c=c.getParent()}else{var s;te(this.canvas,t,a)}},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}(),ie="px",oe=Object(i.a)(),ae=oe&&"firefox"===oe.name,ce=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(r.c)(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");Object(a.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom(),e;this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new re({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new $t(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");a.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");a.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e;if(this.get("supportCSSTransform")){if(ae&&!Object(a.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(a.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),r=n.x,i=n.y;return this.getPointByClient(r,i)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n,r=this.get("el").getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var n,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(){var t;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.a),se=e.a=ce},function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Text",(function(){return d})),n.d(e,"Arc",(function(){return y})),n.d(e,"Region",(function(){return m})),n.d(e,"Image",(function(){return x})),n.d(e,"DataMarker",(function(){return j})),n.d(e,"DataRegion",(function(){return M})),n.d(e,"RegionFilter",(function(){return C})),n.d(e,"Shape",(function(){return E})),n.d(e,"Html",(function(){return I}));var r=n(1),i=n(0),o=n(12),a=n(29),c=n(20),s=n(5);function l(t,e){var n=e.x,o=e.y,l=e.content,u=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:o}}),x=b.addShape({type:"text",id:h,name:f,attrs:Object(r.a)({x:0,y:0,text:l},u)}),O=Object(s.c)(Object(i.s)(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(a.a)(!y,x,j,v)}if(m){var w=Object(i.s)(m,"style",{}),M=x.getCanvasBBox(),S=M.minX,C=M.minY,A=M.width,E=M.height,k;b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(r.a)({x:S-O[3],y:C-O[0],width:A+O[1]+O[3],height:E+O[0]+O[2]},w)}).toBack()}Object(c.c)(b,n,o),Object(c.b)(b,p,n,o)}var u=n(6),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:u.a.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u.a.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u.a.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(r.a)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:Object(i.Q)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(i.M)(n)?n:1)>1||r<0)&&(r=1),{x:Object(s.g)(t.x,e.x,r),y:Object(s.g)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,o=e.content,a=e.style,c=e.offsetX,s=e.offsetY,u=e.autoRotate,h=e.maxLength,f=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,y=void 0!==g&&g,v=this.getLabelPoint(n,r,i),m=v.x+c,b=v.y+s,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:o,style:a,maxLength:h,autoEllipsis:f,ellipsisPosition:p,background:d,isVertical:y};if(u){var O=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(O[1],O[0])}l(t,x)},e}(o.a),p,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:u.a.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u.a.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),o=this.get("style"),a,c,s,u,h,f,p,d,g;l(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");Object(c.c)(t,n,r),Object(c.b)(t,i,n,r)}},e}(o.a),g,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=Object(s.e)(e,n,r),a=Object(s.e)(e,n,i),c=i-r>Math.PI?1:0,l=[["M",o.x,o.y]];if(i-r==2*Math.PI){var u=Object(s.e)(e,n,r+Math.PI);l.push(["A",n,n,0,c,1,u.x,u.y]),l.push(["A",n,n,0,c,1,a.x,a.y])}else l.push(["A",n,n,0,c,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(r.a)({path:e},n)})},e}(o.a),v,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:u.a.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),o=Object(s.k)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({x:o.x,y:o.y,width:o.width,height:o.height},i)})},e}(o.a),b,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=Object(s.k)({start:t,end:e}),o=this.get("src");return Object(r.a)({x:i.x,y:i.y,img:o,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(o.a),O,j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u.a.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.a.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){Object(i.s)(this.get("line"),"display")&&this.renderLine(t),Object(i.s)(this.get("text"),"display")&&this.renderText(t),Object(i.s)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,i=e.y,o=e.text,a=Object(r.f)(e,["x","y","text"]),c=this.get("text"),s=c.background,u=c.maxLength,h=c.autoEllipsis,f=c.isVertival,p=c.ellipsisPosition,d;l(t,{x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:a,background:s,maxLength:u,autoEllipsis:h,isVertival:f,ellipsisPosition:p})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),o=Object(i.s)(this.get("line"),"length",0),a=this.get("coordinateBBox"),s=t.getBBox(),l=s.minX,u=s.maxX,h=s.minY,f=s.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a&&p){var y=p.attr("x"),v=p.attr("y"),m=d.getCanvasBBox(),b=m.width,x=m.height,O=0,j=0;if(n+l<=a.minX)if("leftward"===e)O=1;else{var w=a.minX-(n+l);y=p.attr("x")+w}else if(n+u>=a.maxX)if("rightward"===e)O=-1;else{var w=n+u-a.maxX;y=p.attr("x")-w}if(O&&(g&&g.attr("path",[["M",0,0],["L",o*O,0]]),y=(o+2+b)*O),r+h<=a.minY)if("upward"===e)j=1;else{var w=a.minY-(r+h);v=p.attr("y")+w}else if(r+f>=a.maxY)if("downward"===e)j=-1;else{var w=r+f-a.maxY;v=p.attr("y")-w}j&&(g&&g.attr("path",[["M",0,0],["L",0,o*j]]),v=(o+2+x)*j),y===p.attr("x")&&v===p.attr("y")||Object(c.c)(p,y,v)}},e.prototype.getShapeAttrs=function(){var t=Object(i.s)(this.get("line"),"display"),e=Object(i.s)(this.get("point"),"style",{}),n=Object(i.s)(this.get("line"),"style",{}),o=Object(i.s)(this.get("text"),"style",{}),a=this.get("direction"),c=t?Object(i.s)(this.get("line"),"length",0):0,s=0,l=0,u="top",h="start";switch(a){case"upward":l=-1,u="bottom";break;case"downward":l=1,u="top";break;case"leftward":s=-1,h="end";break;case"rightward":s=1,h="start"}return{point:Object(r.a)({x:0,y:0},e),line:Object(r.a)({path:[["M",0,0],["L",c*s,c*l]]},n),text:Object(r.a)({x:(c+2)*s,y:(c+2)*l,text:Object(i.s)(this.get("text"),"content",""),textBaseline:u,textAlign:h},o)}},e}(o.a),w,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:u.a.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:u.a.textColor,fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(i.s)(this.get("region"),"style",{}),n=Object(i.s)(this.get("text"),"style",{}),o=this.get("lineLength")||0,a=this.get("points");if(a.length){var c=Object(s.j)(a),u=[],h;u.push(["M",a[0].x,c.minY-o]),a.forEach((function(t){u.push(["L",t.x,t.y])})),u.push(["L",a[a.length-1].x,a[a.length-1].y-o]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({path:u},e)}),l(t,Object(r.a)({id:this.getElementId("text"),name:"annotation-text",x:(c.minX+c.maxX)/2,y:c.minY-o},this.get("text")))}},e}(o.a),S,C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(i.j)(this.get("shapes"),(function(t,n){var r=t.get("type"),a=Object(i.e)(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:a})}));var a=Object(s.k)({start:n,end:r});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.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.a),A,E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"shape",draw:i.fb})},e.prototype.renderInner=function(t){var e=this.get("render");Object(i.I)(e)&&e(t)},e}(o.a),k=n(11),T,P,I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(s.a)(t);var n=Object(i.I)(e)?e(t):e;if(Object(i.F)(n))t.appendChild(n);else if(Object(i.Q)(n)||Object(i.M)(n)){var r=Object(k.b)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),c=this.get("offsetY"),s=Object(k.d)(t),l=Object(k.c)(t),u={x:n,y:r};"middle"===i?u.x-=Math.round(s/2):"right"===i&&(u.x-=Math.round(s)),"middle"===o?u.y-=Math.round(l/2):"bottom"===o&&(u.y-=Math.round(l)),a&&(u.x+=a),c&&(u.y+=c),Object(k.e)(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(n(35).a)},function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return z})),n.d(e,"Circle",(function(){return G})),n.d(e,"Base",(function(){return g}));var r={};n.r(r),n.d(r,"getDefault",(function(){return m})),n.d(r,"ellipsisHead",(function(){return b})),n.d(r,"ellipsisTail",(function(){return x})),n.d(r,"ellipsisMiddle",(function(){return O}));var i={};n.r(i),n.d(i,"getDefault",(function(){return E})),n.d(i,"reserveFirst",(function(){return k})),n.d(i,"reserveLast",(function(){return T})),n.d(i,"reserveBoth",(function(){return P})),n.d(i,"equidistance",(function(){return I})),n.d(i,"equidistanceWithReverseBoth",(function(){return F}));var o={};n.r(o),n.d(o,"getDefault",(function(){return D})),n.d(o,"fixedAngle",(function(){return R})),n.d(o,"unfixedAngle",(function(){return _}));var a={};n.r(a),n.d(a,"autoHide",(function(){return i})),n.d(a,"autoRotate",(function(){return o})),n.d(a,"autoEllipsis",(function(){return r}));var c=n(1),s=n(4),l=n(0),u=n(12),h=n(20),f=n(41),p=n(6),d,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.a)({},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:p.a.lineColor}},tickLine:{style:{lineWidth:1,stroke:p.a.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:p.a.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:p.a.textColor,fontFamily:p.a.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:p.a.textColor,textBaseline:"middle",fontFamily:p.a.fontFamily,textAlign:"center"},iconStyle:{fill:p.a.descriptionIconFill,stroke:p.a.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:p.a.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){Object(l.db)(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,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(l.j)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(l.j)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(l.l)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,r=this.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(l.N)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(l.N)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(l.db)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,o=r.length,a=1,c;return t.length>=2&&(a=t[1].value-t[0].value),Object(l.j)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-a/2));var c=e.getSidePoint(r,o);n.push({startPoint:r,tickValue:t.value,endPoint:c,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o<i-1;o++)for(var a=t[o],c=t[o+1],s=0;s<r;s++){var l=(s+1)/(r+1),u=(1-l)*a.tickValue+l*c.tickValue,h=this.getTickPoint(u),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:u,id:"sub-"+a.id+"-"+s})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var i=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=Object(l.s)(this.get("theme"),["tickLine","style"],{});i=Object(l.I)(i)?Object(l.db)({},a,i(o,n,r)):i;var s=t.startPoint,u=t.endPoint;return Object(c.a)({x1:s.x,y1:s.y,x2:u.x,y2:u.y},i)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(Object(l.j)(i,(function(n,r){if(a.displayWithLabel){var c=e.getElementId("label-"+n.tickId);t.findById(c)&&e.drawTick(n,o,"tickLine",r,i)}else e.drawTick(n,o,"tickLine",r,i)})),r){var c=this.getSubTickLineItems(i);Object(l.j)(c,(function(t,n){e.drawTick(t,o,"subTickLine",n,c)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(l.j)(e,(function(e){e.point=t.getTickPoint(e.value),Object(l.K)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(l.j)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=Object(l.mb)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,o=r.offsetX,a=r.offsetY,c=r.rotate,s=r.formatter,u=this.getSidePoint(t.point,i),f=this.getSideVector(i,u),p=s?s(t.name,t,e):t.name,d=r.style;d=Object(l.I)(d)?Object(l.s)(this.get("theme"),["label","style"],{}):d;var g=Object(l.db)({x:u.x+o,y:u.y+a,text:p,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},d);return c&&(g.matrix=Object(h.e)(u,c)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(l.j)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),o=Object(l.s)(this.get("theme"),["label","style"],{}),a=this.get("label"),c=a.style,s=a.formatter;if(Object(l.I)(c)){var u=i.map((function(t){return Object(l.s)(t.get("delegateObject"),"tick")}));Object(l.j)(i,(function(t,e){var n=t.get("delegateObject").tick,r=s?s(n.name,n,e):n.name,i=Object(l.db)({},o,c(r,e,u));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,o=void 0===i?0:i,a=t.autoRotate,c=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var f=this.getTickPoint(u),p=this.getSidePoint(f,r||o+c/2),d=Object(l.db)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,y=g;if(Object(l.K)(g)&&a){var v=this.getAxisVector(f),m=[1,0];y=s.a.angleTo(v,m,!0)}if(y){var b=Object(h.e)(p,y);d.matrix=b}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),i=e.getBBox(),o=i.maxX,a=i.maxY,s=i.height,l=this.get("title").iconStyle,u=4,h=s/2,f=h/6,p=o+4,d=a-s/2,g=[p+h,d-h],y=g[0],v=g[1],m=[y+h,v+h],b=m[0],x=m[1],O=[y,x+h],j=O[0],w=O[1],M=[p,v+h],S=M[0],C=M[1],A=[p+h,d-s/4],E=A[0],k=A[1],T=[E,k+f],P=T[0],I=T[1],F=[P,I+f],L=F[0],B=F[1],D=[L,B+3*h/4],R=D[0],_=D[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(c.a)({path:[["M",y,v],["A",h,h,0,0,1,b,x],["A",h,h,0,0,1,j,w],["A",h,h,0,0,1,S,C],["A",h,h,0,0,1,y,v],["M",E,k],["L",P,I],["M",L,B],["L",R,_]],lineWidth:f,matrix:n},l)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:d-s/2,width:s,height:s,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){var n;if(this.getItemStates(t).length){var r=this.get("tickStates"),i=this.getElementId("label-"+t.id),o=e.findById(i);if(o){var a=Object(f.a)(t,"label",r);a&&o.attr(a)}var c=this.getElementId("tickline-"+t.id),s=e.findById(c);if(s){var l=Object(f.a)(t,"tickLine",r);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var c=Object(f.a)(t,"label",n);c&&i.attr(c)}if(a){var s=Object(f.a)(t,"tickLine",n);s&&a.attr(s)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(u.a),y=n(29);function v(t,e,n,r){var i=e.getChildren(),o=!1;return Object(l.j)(i,(function(e){var i=Object(y.a)(t,e,n,r);o=o||i})),o}function m(){return x}function b(t,e,n){return v(t,e,n,"head")}function x(t,e,n){return v(t,e,n,"tail")}function O(t,e,n){return v(t,e,n,"middle")}var j=n(5);function w(t){var e=t.attr("matrix");return e&&1!==e[0]}function M(t){var e;return(w(t)?Object(h.d)(t.attr("matrix")):0)%360}function S(t,e,n,r){var i=!1,o=M(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),c=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var s=Math.abs(Math.cos(o));i=Object(j.i)(s,0,Math.PI/180)?c.width+r>a:c.height/s+r>a}else{var s=Math.abs(Math.sin(o));i=Object(j.i)(s,0,Math.PI/180)?c.width+r>a:c.height/s+r>a}return i}function C(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var c=o.length,s,l=o[0],u=1;u<c;u++){var h=o[u],f=h.getBBox(),p;S(t,l,h,i)?(h.hide(),a=!0):l=h}return a}function A(t,e,n){var r=(null==n?void 0:n.minGap)||0,i=e.getChildren().slice();if(i.length<2)return!1;var o=!1,a=i[0],c=a.getBBox(),s=i[1],l=i.length,u=M(a),h=t?Math.abs(s.attr("y")-a.attr("y")):Math.abs(s.attr("x")-a.attr("x")),f=0;if(t){var p=Math.abs(Math.cos(u)),d;if(Object(j.i)(p,0,Math.PI/180))f=((d=Object(y.b)(i))+r)/h;else f=(c.height/p+r)/h}else{var p=Math.abs(Math.sin(u)),d;if(Object(j.i)(p,0,Math.PI/180))f=((d=Object(y.b)(i))+r)/h;else f=(c.height/p+r)/h}if(f>1){f=Math.ceil(f);for(var g=0;g<l;g++)g%f!=0&&(i[g].hide(),o=!0)}return o}function E(){return I}function k(t,e,n,r){return C(t,e,!1,r)}function T(t,e,n,r){return C(t,e,!0,r)}function P(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice(),a;if(o.length<=2)return!1;for(var c=!1,s=o.length,l=o[0],u=o[s-1],h=l,f=1;f<s-1;f++){var p=o[f],d=p.getBBox(),g;S(t,h,p,i)?(p.hide(),c=!0):h=p}return S(t,h,u,i)&&(h.hide(),c=!0),c}function I(t,e,n,r){var i=A(t,e,r);return C(t,e,!1)&&(i=!0),i}function F(t,e,n,r){var i=e.getChildren().slice(),o=A(t,e,r);if(i.length>2){var a=i[0],c=i[i.length-1];a.get("visible")||(a.show(),C(t,e,!1,r)&&(o=!0)),c.get("visible")||(c.show(),C(t,e,!0,r)&&(o=!0))}return o}function L(t,e){Object(l.j)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=Object(h.e)({x:n,y:r},e);t.attr("matrix",i)}))}function B(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var o=Object(y.b)(i),a=!1,c,s;t?a=!!n&&o>n:a=o>Math.abs(i[1].attr("x")-i[0].attr("x"));a&&L(i,r(n,o));return a}function D(){return R}function R(t,e,n,r){return B(t,e,n,(function(){return Object(l.M)(r)?r:t?p.a.verticalAxisRotate:p.a.horizontalAxisRotate}))}function _(t,e,n){return B(t,e,n,(function(e,n){if(!e)return t?p.a.verticalAxisRotate:p.a.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}var N,z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.a)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),c=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:c,width:a-i,height:c-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(l.N)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l.N)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=r.x-n.x,o=r.y-n.y;return{x:n.x+i*t,y:n.y+o*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=s.c.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return s.c.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),c=i.offset,s=a,u=0,h=0;o&&(u=o.style.fontSize,h=o.spacing),s&&(s=s-c-h-u);var f=this.get("overlapOrder");if(Object(l.j)(f,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,s)})),o&&Object(l.K)(o.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;o.offset=c+d+h+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l.K)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=this.isVertical(),c=!1,s=a[t];if(!0===e){var u=this.get("label");c=s.getDefault()(o,n,r)}else if(Object(l.I)(e))c=e(o,n,r);else if(Object(l.O)(e)){var h=e;s[h.type]&&(c=s[h.type](o,n,r,h.cfg))}else s[e]&&(c=s[e](o,n,r));if("autoRotate"===t){if(c){var f=n.getChildren(),p=this.get("verticalFactor");Object(l.j)(f,(function(t){var e;if("center"===t.attr("textAlign")){var n=p>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var d=n.getChildren().slice(0);Object(l.j)(d,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(g),Y,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.a)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,o=this.get("startAngle"),a=this.get("endAngle"),c=[];if(Math.abs(a-o)===2*Math.PI)c=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var s=this.getCirclePoint(o),l=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;c=[["M",e,n],["L",s.x,s.y],["A",r,i,0,u,h,l.x,l.y],["L",e,n]]}return c},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n,r=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(r)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),o=s.c.length(r);return s.c.scale(r,r,i*t/o),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l.K)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,a=i,c=0,s=0;r&&(c=r.style.fontSize,s=r.spacing),a&&(a=a-o-s-c);var u=this.get("overlapOrder");if(Object(l.j)(u,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,a)})),r&&Object(l.K)(r.offset)){var h=t.getCanvasBBox().height;r.offset=o+h+s+c/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,c=a[t];if(r>0)if(!0===e)o=c.getDefault()(!1,n,r);else if(Object(l.I)(e))o=e(!1,n,r);else if(Object(l.O)(e)){var s=e;c[s.type]&&(o=c[s.type](!1,n,r,s.cfg))}else c[e]&&(o=c[e](!1,n,r));if("autoRotate"===t){if(o){var u=n.getChildren(),h=this.get("verticalFactor");Object(l.j)(u,(function(t){var e;if("center"===t.attr("textAlign")){var n=h>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(l.j)(f,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(g)},function(t,e,n){"use strict";var r=n(1),i=n(10),o=n(9),a=n(40),c=n(24),s=n(18),l=n(47),u=n(46),h=n(0),f=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,d=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){var e=t.match(d);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(h.j)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function y(t,e){var n=f.exec(t),r=Object(h.eb)(Object(h.sb)(parseFloat(n[1])),2*Math.PI),i=n[2],o,a;r>=0&&r<.5*Math.PI?(o={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=r&&r<Math.PI?(o={x:1,y:0},a={x:0,y:1}):Math.PI<=r&&r<1.5*Math.PI?(o={x:1,y:1},a={x:0,y:0}):(o={x:0,y:1},a={x:1,y:0});var c=Math.tan(r),s=c*c,l=(a.x-o.x+c*(a.y-o.y))/(s+1)+o.x,u=c*(a.x-o.x+c*(a.y-o.y))/(s+1)+o.y;e.setAttribute("x1",o.x),e.setAttribute("y1",o.y),e.setAttribute("x2",l),e.setAttribute("y2",u),e.innerHTML=g(i)}function v(t,e){var n=p.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=g(a)}var m,b=function(){function t(t){this.cfg={};var e=null,n=Object(h.vb)("gradient_");return"l"===t.toLowerCase()[0]?y(t,e=Object(s.b)("linearGradient")):v(t,e=Object(s.b)("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),x={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},O={x:"-40%",y:"-40%",width:"200%",height:"200%"},j,w=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(s.b)("filter");return Object(h.j)(O,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(h.vb)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return Object(h.j)(Object.keys(r),(function(t){if(r[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[x[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}(),M,S=function(){function t(t,e){this.cfg={};var n=Object(s.b)("marker"),r=Object(h.vb)("marker_");n.setAttribute("id",r);var i=Object(s.b)("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;Object(h.C)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),C,A=function(){function t(t){this.type="clip",this.cfg={};var e=Object(s.b)("clipPath");this.el=e,this.id=Object(h.vb)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),E=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,k,T=function(){function t(t){this.cfg={};var e=Object(s.b)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(s.b)("image");e.appendChild(n);var r=Object(h.vb)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i,o=E.exec(t)[2];n.setAttribute("href",o);var a=new Image;function c(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return o.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=o,a.complete?c():(a.onload=c,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),P,I=function(){function t(t){var e=Object(s.b)("defs"),n=Object(h.vb)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new S(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new S(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new w(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new T(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new A(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),F=function(t){function e(e){return t.call(this,Object(r.a)(Object(r.a)({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(r.c)(e,t),e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u.a},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.a[r.tagName]){for(var i=r.parentNode;i&&!o.a[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=Object(s.b)("svg"),e=new I(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&Object(s.d)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?Object(c.c)(this):"clip"===t?Object(c.a)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Object(c.a)(this,t),e.length&&Object(a.a)(t,e)},e}(i.AbstractCanvas),L=e.a=F},function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Circle",(function(){return d})),n.d(e,"Base",(function(){return u})),n.d(e,"Html",(function(){return w}));var r=n(1),i=n(5),o=n(0),a=n(12),c=n(20),s=n(6),l,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:s.a.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:s.a.textColor,textAlign:"center",textBaseline:"middle",fontFamily:s.a.fontFamily}},textBackground:{padding:5,style:{stroke:s.a.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,i=e.autoRotate,a=e.content;if(!Object(o.K)(a)){var s=this.getTextPoint(),l=null;if(i){var u=this.getRotateAngle();l=Object(c.e)(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r.a)(Object(r.a)(Object(r.a)({},s),{text:a,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n,i=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r.a)({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),o=this.get("textBackground");if(o&&n){var a=n.getBBox(),c=Object(i.c)(o.padding),s=o.style,l;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r.a)({x:a.x-c[3],y:a.y-c[0],width:a.width+c[1]+c[3],height:a.height+c[0]+c[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(a.a),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x),o;return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),o=r.position,a=r.offset;return Object(i.f)(e,n,o,a)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(u),p,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,r,i;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),o=r.center,a=r.radius,c=r.startAngle,s=r.endAngle,l="start"===e?c:s,u=this.getRotateAngle()-Math.PI,h=Object(i.e)(o,a,l),f=Math.cos(u)*n,p=Math.sin(u)*n;return{x:h.x+f,y:h.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,o=t.endAngle,a=null;if(o-r==2*Math.PI){var c=e.x,s=e.y;a=[["M",c,s-n],["A",n,n,0,1,1,c,s+n],["A",n,n,0,1,1,c,s-n],["Z"]]}else{var l=Object(i.e)(e,n,r),u=Object(i.e)(e,n,o),h=Math.abs(o-r)>Math.PI?1:0,f=r>o?0:1;a=[["M",l.x,l.y],["A",n,n,0,h,f,u.x,u.y]]}return a},e}(u),g=n(11),y=n(35),v="g2-crosshair",m="g2-crosshair-line",b="g2-crosshair-text",x,O=((x={})["g2-crosshair"]={position:"relative"},x[""+m]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},x[""+b]={position:"absolute",color:s.a.textColor,fontFamily:s.a.fontFamily},x),j,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="g2-crosshair"></div>',crosshairTpl:'<div class="'+m+'"></div>',textTpl:'<span class="'+b+'">{content}</span>',domStyles:null,containerClassName:"g2-crosshair",defaultStyles:O,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(g.b)(e);t.appendChild(n),this.applyStyle(m,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),o=r.position,a=r.offset;return Object(i.f)(e,n,o,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=Object(o.pb)(this.get("textTpl"),t);e=Object(g.b)(i),r.appendChild(e),this.applyStyle(b,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),o=Math.min(e.y,n.y);this.isVertical(e,n)?Object(g.e)(t,{width:"1px",height:Object(i.l)(Math.abs(n.y-e.y))}):Object(g.e)(t,{height:"1px",width:Object(i.l)(Math.abs(n.x-e.x))}),Object(g.e)(t,{top:Object(i.l)(o),left:Object(i.l)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}Object(g.e)(t,{top:Object(i.l)(r.y),left:Object(i.l)(r.x)})}},e.prototype.updateInner=function(e){Object(o.y)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r=n(1),i=n(0),o=n(12),a={opacity:0},c={stroke:"#C5C5C5",strokeOpacity:.85},s={fill:"#CACED4",opacity:.85},l=n(27),u=n(32);function h(t){return Object(i.W)(t,(function(t,e){var n,r,i;return[0===e?"M":"L",t[0],t[1]]}))}function f(t){return h(t)}function p(t){if(t.length<=2)return f(t);var e=[];Object(i.j)(t,(function(t){Object(i.H)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(l.a)(e,!1),r=Object(i.z)(t),o=r[0],a=r[1];return n.unshift(["M",o,a]),n}function d(t,e,n,r){void 0===r&&(r=!0);var o=new u.b({values:t}),a=new u.a({values:Object(i.W)(t,(function(t,e){return e}))}),c=Object(i.W)(t,(function(t,r){return[a.scale(r)*e,n-o.scale(t)*n]}));return r?p(c):f(c)}function g(t,e){var n=new u.b({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}function y(t,e,n,i){var o=Object(r.h)(t),a=g(i,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a,lineStyle:c,areaStyle:s})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,o=e.data,a=e.smooth,c=e.isArea,s=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:n,height:i},s)});var h=d(o,n,i,a);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.a)({path:h},l)}),c){var f=y(h,n,i,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.a)({path:f},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(o.a),m=v,b={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:b})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,c=i.radius,s=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:c,opacity:s,cursor:l}});var u=1/3*n,h=2/3*n,f=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:f,x2:u,y2:p,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:a,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").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o.a),O=x,j={fill:"#416180",opacity:.05},w={fill:"#5B8FF9",opacity:.15,cursor:"move"},M=10,S={width:10,height:24},C={textBaseline:"middle",fill:"#000",opacity:.45},A="sliderchange",E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Object(i.s)(r,"touches.0.pageX",r.pageX),e.prevY=Object(i.s)(r,"touches.0.pageY",r.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var o=Object(i.s)(t,"touches.0.pageX",t.pageX),a=Object(i.s)(t,"touches.0.pageY",t.pageY),c=o-e.prevX,s=e.adjustOffsetRange(c/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit(A,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(r.c)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),o=Object(i.c)(n,t,e),a=Object(i.c)(r,t,e);this.get("isInit")||n===o&&r===a||this.setValue([o,a])},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(Object(i.C)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(i.c)(t[0],e.min,e.max),end:Object(i.c)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:j,foregroundStyle:w,handlerStyle:S,textStyle:C}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(r.a)({},e);Object(i.K)(n)||(a.start=Object(i.c)(n,0,1)),Object(i.K)(o)||(a.end=Object(i.c)(o,0,1)),t.prototype.update.call(this,a),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",Object(i.c)(this.get("start"),0,1)),this.set("end",Object(i.c)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=e.start,o=e.end,a=e.width,c=e.height,s=e.trendCfg,l=void 0===s?{}:s,u=e.minText,h=e.maxText,f=e.backgroundStyle,p=void 0===f?{}:f,d=e.foregroundStyle,g=void 0===d?{}:d,y=e.textStyle,m=void 0===y?{}:y,O=Object(i.h)({},b,this.cfg.handlerStyle),j=n*a,w=o*a;Object(i.mb)(Object(i.s)(l,"data"))&&(this.trend=this.addComponent(t,Object(r.a)({component:v,id:this.getElementId("trend"),x:0,y:0,width:a,height:c},l))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:a,height:c},p)});var M=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(r.a)({y:c/2,textAlign:"right",text:u,silent:!1},m)}),S=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(r.a)({y:c/2,textAlign:"left",text:h,silent:!1},m)}),C=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(r.a)({y:0,height:c},g)}),A=Object(i.s)(O,"width",10),E=Object(i.s)(O,"height",24);this.minHandler=this.addComponent(t,{component:x,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(c-E)/2,width:A,height:E,cursor:"ew-resize",style:O}),this.maxHandler=this.addComponent(t,{component:x,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(c-E)/2,width:A,height:E,cursor:"ew-resize",style:O})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,o=r.start,a=r.end,c=r.width,s=r.minText,l=r.maxText,u=r.handlerStyle,h=r.height,f=o*c,p=a*c;this.trend&&(this.trend.update({width:c,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",f),t.attr("width",p-f);var d=Object(i.s)(u,"width",10);e.attr("text",s),n.attr("text",l);var g=this._dodgeText([f,p],e,n),y=g[0],v=g[1];this.minHandler&&(this.minHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(i.j)(y,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:p-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(i.j)(v,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":var i=0-r,o=1-r;return Math.min(o,Math.max(i,t));case"foreground":var i=0-n,o=1-r;return Math.min(o,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,o,a=this.cfg,c=a.handlerStyle,s=a.width,l=2,u=Object(i.s)(c,"width",10),h=t[0],f=t[1],p=!1;h>f&&(h=(r=[f,h])[0],f=r[1],e=(o=[n,e])[0],n=o[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>h-2?{x:h+u/2+2,textAlign:"left"}:{x:h-u/2-2,textAlign:"right"},v=g.width>s-f-2?{x:f-u/2-2,textAlign:"right"}:{x:f+u/2+2,textAlign:"left"};return p?[v,y]:[y,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.a),k=E},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return s})),n.d(e,"Circle",(function(){return h})),n.d(e,"Line",(function(){return p}));var r=n(1),i=n(0),o=n(12),a=n(6),c,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.a.lineColor}}}})},e.prototype.getLineType=function(){var t;return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0),o;return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),o=this.get("alternateColor"),a=null;Object(i.j)(r,(function(c,s){var l=c.id||s;if(n){var u=e.getPathStyle();u=Object(i.I)(u)?u(c,s,r):u;var h=e.getElementId("line-"+l),f=e.getGridPath(c.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(i.db)({path:f},u)})}if(o&&s>0){var p=e.getElementId("region-"+l),d=s%2==0;if(Object(i.Q)(o))d&&e.drawAlternateRegion(p,t,a.points,c.points,o);else{var g=d?o[1]:o[0];e.drawAlternateRegion(p,t,a.points,c.points,g)}}a=c}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.a);function l(t,e,n,r){var i=n-t,o=r-e;return Math.sqrt(i*i+o*o)}var u,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),o=[];if(t.length)if("circle"===n){var a=this.get("center"),c=t[0],s=l(a.x,a.y,c.x,c.y),u=e?0:1;r?(o.push(["M",a.x,a.y-s]),o.push(["A",s,s,0,0,u,a.x,a.y+s]),o.push(["A",s,s,0,0,u,a.x,a.y-s]),o.push(["Z"])):Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["A",s,s,0,0,u,t.x,t.y])}))}else Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),r&&o.push(["Z"]);return o},e}(s),f,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(i.j)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(s)},function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return b})),n.d(e,"Continuous",(function(){return w})),n.d(e,"Base",(function(){return f}));var r=n(1),i=n(0),o=n(29),a=n(20),c=n(41),s=n(6),l=n(12),u=n(5),h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,o=e.height;return n&&(i=Math.min(i,n)),r&&(o=Math.min(o,r)),Object(u.b)(e.minX,e.minY,i,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=Object(u.c)(e.padding),o=Object(r.a)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style),a;this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,c,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.a)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(u.c)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(l.a),p={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:s.a.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:s.a.fontFamily,fontWeight:"normal",lineHeight:12},g="navigation-arrow-right",y="navigation-arrow-left",v={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},m,b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:s.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:s.a.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:p,itemName:{spacing:16,style:d},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:d,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:s.a.uncheckedColor},markerStyle:{fill:s.a.uncheckedColor,stroke:s.a.uncheckedColor}},inactive:{nameStyle:{fill:s.a.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(i.db)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i,o=this.getItems().indexOf(t),a=this.createOffScreenGroup(),c=this.drawItem(t,o,this.getItemHeight(),a);this.updateElements(c,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(i.j)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(i.j)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(i.l)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(i.j)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),a=this.get("itemWidth"),c=this.get("itemSpacing"),s=this.get("itemMarginBottom"),l=this.get("currentPoint"),u=l.x,h=l.y,f=this.get("layout"),p=this.get("items"),d=!1,g=0,y=this.get("maxWidth"),v=this.get("maxHeight");Object(i.j)(p,(function(t,n){var i=e.drawItem(t,n,o,r),p=i.getBBox(),m=a||p.width;m>g&&(g=m),"horizontal"===f?(y&&y<l.x+m-u&&(d=!0,l.x=u,l.y+=o+s),e.moveElementTo(i,l),l.x+=m+c):(v&&v<l.y+o+s-h&&(d=!0,l.x+=g+c,l.y=h,g=0),e.moveElementTo(i,l),l.y+=o+s)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=h,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(Object(i.I)(e)){var n=this.getItems();n.forEach((function(i,o){var a=Object(r.a)(Object(r.a)({},d),e(i,o,n)).fontSize;t<a&&(t=a)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,o){var a=Object(r.a)(Object(r.a)(Object(r.a)({x:0,y:o/2},e.style),{symbol:Object(i.s)(n.marker,"symbol","circle")}),Object(i.s)(n.marker,"style",{})),c=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:a}),s=c.getBBox();c.attr("x",s.width/2);var l=c.attr(),u=l.stroke,h=l.fill;return u&&c.set("isStroke",!0),h&&c.set("isFill",!0),c},e.prototype.drawItemText=function(t,e,n,o,a,c,s){var l=n.formatter,u=n.style,h=Object(r.a)(Object(r.a)({x:c,y:a/2,text:l?l(o[e],o,s):o[e]},d),Object(i.I)(u)?u(o,s,this.getItems()):u);return this.addShape(t,{type:"text",id:this.getElementId("item-"+o.id+"-"+e),name:"legend-item-"+e,attrs:h})},e.prototype.drawRadio=function(t,e,n,i,o){var a,c,s=e.style||{},l=null!==(a=s.r)&&void 0!==a?a:i/2,u=3.6*l/8,h=[o+l,i/2-l],f=h[0],p=h[1],d=[f+l,p+l],g=d[0],y=d[1],v=[f,y+l],m=v[0],b=v[1],x=[o,p+l],O=x[0],j=x[1],w=n.showRadio,M=Object(r.a)(Object(r.a)({path:[["M",f,p],["A",l,l,0,0,1,g,y],["L",g-u,y],["L",g,y],["A",l,l,0,0,1,m,b],["L",m,b-u],["L",m,b],["A",l,l,0,0,1,O,j],["L",O+u,j],["L",O,j],["A",l,l,0,0,1,f,p],["L",f,p+u]],stroke:"#000000",fill:"#ffffff"},s),{opacity:w?null!==(c=null==s?void 0:s.opacity)&&void 0!==c?c:.45:0}),S=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:M});return S.set("tip",e.tip),S},e.prototype.drawItem=function(t,e,n,a){var c="item-"+t.id,s=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+c),delegateObject:{item:t,index:e}}),l=this.addGroup(s,{name:"legend-item",id:this.getElementId(c),delegateObject:{item:t,index:e}}),u=this.get("marker"),h=this.get("itemName"),f=this.get("itemValue"),p=this.get("itemBackground"),d=this.get("radio"),g=this.getLimitItemWidth(),y=0;if(u){var v=this.drawMarker(l,u,t,n),m=u.spacing,b=Object(i.s)(t,["marker","spacing"]);Object(i.M)(b)&&(m=b),y=v.getBBox().maxX+m}if(h){var x=this.drawItemText(l,"name",h,t,n,y,e);g&&Object(o.a)(!0,x,Object(i.c)(g-y,0,g)),y=x.getBBox().maxX+h.spacing}if(f){var O=this.drawItemText(l,"value",f,t,n,y,e);g&&(f.alignRight?(O.attr({textAlign:"right",x:g}),Object(o.a)(!0,O,Object(i.c)(g-y,0,g),"head")):Object(o.a)(!0,O,Object(i.c)(g-y,0,g))),y=O.getBBox().maxX+f.spacing}if(d&&this.drawRadio(l,d,t,n,y),p){var j=l.getBBox(),w;this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(c+"-background"),attrs:Object(r.a)({x:0,y:0,width:j.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,o=this.startY,a=this.get("layout"),c=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),u=this.get("itemWidth"),h=this.get("itemSpacing"),f=this.getItemHeight(),d=Object(i.h)({},p,this.get("pageNavigator")),g=this.drawNavigation(t,a,"00/00",d),y=g.getBBox(),v={x:r,y:o},m=1,b=0,x=0,O=0,j=this.get("itemMarginBottom");function w(t,e){var n=t.getBBox(),r=u||n.width,i;return e.x+r+h+y.width>s}if("horizontal"===a){var M=this.get("maxRow")||1,S=f+(1===M?0:j),C=s-h-y.width-y.minX;this.pageHeight=S*M,this.pageWidth=C,Object(i.j)(c,(function(t){var e=t.getBBox(),i=u||e.width;(b&&b<v.x+i+h||w(t,v))&&(1===m&&(b=v.x+h,n.moveElementTo(g,{x:C,y:v.y+f/2-y.height/2-y.minY})),m+=1,v.x=r,v.y+=S),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:i+h,height:f}}),v.x+=i+h}))}else{Object(i.j)(c,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),O=x,x+=h,s&&(x=Math.min(s,x),O=Math.min(s,O)),this.pageWidth=x,this.pageHeight=l-Math.max(y.height,f+j);var A=Math.floor(this.pageHeight/(f+j));Object(i.j)(c,(function(t,e){0!==e&&e%A==0&&(m+=1,v.x+=x,v.y=o),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:x,height:f}}),v.y+=f+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+O/2-y.width/2-y.minX,y:l-y.height-y.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===a&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,o){var a={x:0,y:0},c=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),s=Object(i.s)(o.marker,"style",{}),l=s.size,u=void 0===l?12:l,h=Object(r.f)(s,["size"]),f=this.drawArrow(c,a,y,"horizontal"===e?"up":"left",u,h);f.on("click",this.onNavigationBack);var p=f.getBBox();a.x+=p.width+2;var d,v=this.addShape(c,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(r.a)({x:a.x,y:a.y+u/2,text:n,textBaseline:"middle"},Object(i.s)(o.text,"style"))}).getBBox(),m;return a.x+=v.width+2,this.drawArrow(c,a,g,"horizontal"===e?"down":"right",u,h).on("click",this.onNavigationAfter),c},e.prototype.updateNavigation=function(t){var e,n=Object(i.h)({},p,this.get("pageNavigator")).marker.style,r=n.fill,o=n.opacity,a=n.inactiveFill,c=n.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId(y)):this.getElementByLocalId(y),h=t?t.findById(this.getElementId(g)):this.getElementByLocalId(g);l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?c:o),u.attr("fill",1===this.currentPageIndex?a:r),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?c:o),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?a:r),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=u.getBBox().maxX+2;l.attr("x",f),f+=l.getBBox().width+2,this.updateArrowPath(h,{x:f,y:0})},e.prototype.drawArrow=function(t,e,n,i,o,c){var s=e.x,l=e.y,u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(r.a)({size:o,direction:i,path:[["M",s+o/2,l],["L",s,l+o],["L",s+o,l+o],["Z"]],cursor:"pointer"},c)});return u.attr("matrix",Object(a.e)({x:s+o/2,y:l+o/2},v[i])),u},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,c=i.direction,s=Object(a.e)({x:n+o/2,y:r+o/2},v[c]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",s)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,r=t.pageHeight,i,o="horizontal"===this.get("layout")?{x:0,y:r*(1-e)}:{x:n*(1-e),y:0};return Object(a.f)(o)},e.prototype.applyItemStates=function(t,e){var n,r;if(this.getItemStates(t).length>0){var o=e.getChildren(),a=this.get("itemStates");Object(i.j)(o,(function(e){var n,r=e.get("name").split("-")[2],i=Object(c.a)(t,r,a);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}(f),x=1.4,O=.4,j,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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:s.a.textColor,textBaseline:"middle",fontFamily:s.a.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:s.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r,i=e.getCurrentValue()[1];i<n&&(i=n),e.setValue([n,i])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r,i=e.getCurrentValue()[0];i>n&&(i=n),e.setValue([i,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],c=e.getRange(),s=i-r;s<0?o[0]+s>c.min?e.setValue([o[0]+s,o[1]+s]):e.setValue([c.min,c.min+a]):s>0&&(s>0&&o[1]+s<c.max?e.setValue([o[0]+s,o[1]+s]):e.setValue([c.max-a,c.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),o=n.style,a=n.align,c=n.formatter,s=this.get(t),l=this.getLabelAlignAttrs(t,a),u="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(u),name:"legend-label-"+t,attrs:Object(r.a)(Object(r.a)({x:0,y:0,text:Object(i.I)(c)?c(s):s},o),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n,r="center",i="middle";return this.isVertical()?(r="start",i="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(i="top",r="min"===t?"start":"end"):(r="start",i="middle"),{textAlign:r,textBaseline:i}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),o=i.size,a=i.defaultLength,c=i.type,s=this.isVertical(),l=a,u=n,h=r;u||(u=s?o:a),h||(h=s?a:o);var f=[];return"color"===c?(f.push(["M",t,e]),f.push(["L",t+u,e]),f.push(["L",t+u,e+h]),f.push(["L",t,e+h]),f.push(["Z"])):(f.push(["M",t+u,e]),f.push(["L",t+u,e+h]),f.push(["L",t,e+h]),f.push(["Z"])),f},e.prototype.drawRail=function(t){var e,n=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(r.a)({path:this.getRailPath(0,0)},n)})},e.prototype.getTrackColor=function(t){var e=t.length,n;if(!e)return null;if(1===e)return t[0];n=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<e;r++){var i;n+=" "+r/(e-1)+":"+t[r]}return n},e.prototype.getTrackPath=function(t){var e,n=this.getRailShape(t).attr("path");return Object(i.e)(n)},e.prototype.getClipTrackAttrs=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1],i=this.getRailBBox(t),o=this.getPointByValue(n,t),a=this.getPointByValue(r,t),c,s,l,u,h;return this.isVertical()?(s=i.minX,l=o.y,u=i.width,h=a.y-o.y):(s=o.x,l=i.minY,u=a.x-o.x,h=i.height),{x:s,y:l,width:u,height:h}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return Object(i.db)({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),o=this.getClipTrackAttrs(t);i?i.attr(o):r.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i,o=(t-r)/(n.max-r),a=this.getRailBBox(e),c,s={x:0,y:0};return this.isVertical()?(s.x=a.minX+a.width/2,s.y=Object(u.g)(a.minY,a.maxY,o)):(s.x=Object(u.g)(a.minX,a.maxX,o),s.y=a.minY+a.height/2),s},e.prototype.getRailShape=function(t){var e;return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e,n;return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){var t,e,n;return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n=this.getRange(),r=n.min,i=n.max,o=this.getRailCanvasBBox(),a=this.isVertical(),c=this.get("step"),s;s=a?(e-o.minY)/o.height:(t-o.minX)/o.width;var l=Object(u.g)(r,i,s),h;c&&(l=r+Math.round((l-r)/c)*c);return l>i&&(l=i),l<r&&(l=r),l},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,Object(r.h)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,Object(r.h)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,o=e.x,a=e.y,c=1.4*i,s=i/2,l=i/6;if(n){var u=o+.4*c;r.push(["M",o,a]),r.push(["L",u,a+s]),r.push(["L",o+c,a+s]),r.push(["L",o+c,a-s]),r.push(["L",u,a-s]),r.push(["Z"]),r.push(["M",u,a+l]),r.push(["L",o+c-2,a+l]),r.push(["M",u,a-l]),r.push(["L",o+c-2,a-l])}else{var h=a+.4*c;r.push(["M",o,a]),r.push(["L",o-s,h]),r.push(["L",o-s,a+c]),r.push(["L",o+s,a+c]),r.push(["L",o+s,h]),r.push(["Z"]),r.push(["M",o-l,h]),r.push(["L",o-l,a+c-2]),r.push(["M",o+l,h]),r.push(["L",o+l,a+c-2])}return r},e.prototype.resetHandler=function(t,e,n){var i=this.getPointByValue(n,t),o=this.get("handler"),a=this.getHandlerPath(o,i),c=this.getElementId("handler-"+e),s=t.findById(c),l=this.isVertical();s?s.attr("path",a):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:c,attrs:Object(r.a)(Object(r.a)({path:a},o.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var o,a=this.isVertical()?"height":"width",c=this.get("label"),s=c.align,l=c.spacing,u=this.get("max"+Object(i.wb)(a));if(u){var h,f=("rail"===s?n[a]+t[a]+e[a]+2*l:n[a])-u;f>0&&this.changeRailLength(r,a,n[a]-f)}},e.prototype.changeRailLength=function(t,e,n){var r=t.getBBox(),i;i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,c=n.getBBox(),s=t.getBBox(),l=e.getBBox(),u=c.height;this.fitRailLength(s,l,c,n),c=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+s.width+a,r.y),e.attr({x:r.x+s.width+c.width+2*a,y:r.y+u/2})):"top"===o?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+c.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+s.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+c.height+a}),e.attr({x:r.x+c.width,y:r.y+c.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,c=n.getBBox(),s=t.getBBox(),l=e.getBBox();if(this.fitRailLength(s,l,c,n),c=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+s.height+a),e.attr({x:r.x,y:r.y+s.height+c.height+2*a});else if("right"===o)t.attr({x:r.x+c.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+c.width+a,y:r.y+c.height});else{var u=Math.max(s.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+a,r.y),e.attr({x:r.x,y:r.y+c.height})}},e}(f)},function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return m}));var r=n(1),i=n(28),o=n(11),a=n(0),c=n(35),s=n(5),l=n(19),u=n(6),h,f=((h={})[""+l.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:u.a.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},h[""+l.TITLE_CLASS]={marginBottom:"4px"},h[""+l.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},h[""+l.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},h[""+l.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},h[""+l.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},h[""+l.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},h[""+l.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},h);function p(t,e,n,r,i){var o;return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}function d(t,e,n,r,i,o){var a=t,c=e;switch(o){case"left":a=t-r-n,c=e-i/2;break;case"right":a=t+n,c=e-i/2;break;case"top":a=t-r/2,c=e-i-n;break;case"bottom":a=t-r/2,c=e+n;break;default:a=t+n,c=e-i-n}return{x:a,y:c}}function g(t,e,n,r,i,o,a){var c=d(t,e,n,r,i,o);if(a){var s=p(c.x,c.y,r,i,a);"auto"===o?(s.right&&(c.x=Math.max(0,t-r-n)),s.top&&(c.y=Math.max(0,e-i-n))):"top"===o||"bottom"===o?(s.left&&(c.x=a.x),s.right&&(c.x=a.x+a.width-r),"top"===o&&s.top&&(c.y=e+n),"bottom"===o&&s.bottom&&(c.y=e-i-n)):(s.top&&(c.y=a.y),s.bottom&&(c.y=a.y+a.height-i),"left"===o&&s.left&&(c.x=t+n),"right"===o&&s.right&&(c.x=t-r-n))}return c}function y(t,e){var n=!1;return Object(a.j)(e,(function(e){if(Object(a.y)(t,e))return n=!0,!1})),n}var v,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+l.CONTAINER_CLASS+'"><div class="'+l.TITLE_CLASS+'"></div><ul class="'+l.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+l.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+l.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+l.NAME_CLASS+'">{name}</span>:\n <span class="'+l.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+l.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+l.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:l.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f})},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),Object(o.e)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(o.e)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&Object(o.e)(n,{display:e}),r&&Object(o.e)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(y(e,["title","showTitle"])&&this.resetTitle(),Object(a.y)(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=this.get("x"),e=this.get("y"),n=this.get("offset"),r=this.getOffset(),i=r.offsetX,a=r.offsetY,c=this.get("position"),l=this.get("region"),u=this.getContainer(),h=this.getBBox(),f=h.width,p=h.height,d;l&&(d=Object(s.k)(l));var y=g(t,e,n,f,p,c,d);Object(o.e)(u,{left:Object(s.l)(y.x+i),top:Object(s.l)(y.y+a)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=Object(a.F)(n)?n:Object(o.b)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(l.TITLE_CLASS)[0],n=t.getElementsByClassName(l.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e;this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Object(s.k)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?Object(o.e)(n,{left:Object(s.l)(r),top:Object(s.l)(e.y),height:Object(s.l)(e.height)}):Object(o.e)(n,{top:Object(s.l)(r),left:Object(s.l)(e.x),width:Object(s.l)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=l[r],a=this.get(e),c=this.get("parent");return a||(a=Object(o.b)(this.get(n)),this.applyStyle(i,a),c.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(a.j)(t,(function(t){var c=i.a.toCSSGradient(t.color),s=Object(r.a)(Object(r.a)({},t),{color:c}),l=Object(a.pb)(e,s),u=Object(o.b)(l);n.appendChild(u)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(s.a)(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}(c.a)},function(t,e,n){"use strict";var r=n(1),i=n(10);function o(t,e){if(e){var n=Object(i.invert)(e);return Object(i.multiplyVec2)(n,t)}return t}function a(t,e,n){var r=t.getTotalMatrix();if(r){var i=o([e,n,1],r),a,c;return[i[0],i[1]]}return[e,n]}function c(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(i.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=a(t,e,n),o=r[0],c=r[1];if(t.isClipped(o,c))return!1}var s=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=s.minX&&e<=s.maxX&&n>=s.minY&&n<=s.maxY}function s(t,e,n){if(!c(t,e,n))return null;for(var r=null,i=t.getChildren(),o,l=i.length-1;l>=0;l--){var u=i[l];if(u.isGroup())r=s(u,e,n);else if(c(u,e,n)){var h=u,f=a(u,e,n),p=f[0],d=f[1];h.isInShape(p,d)&&(r=u)}if(r)break}return r}var l=n(34),u=n(45),h=n(7),f=n(21),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(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 l},e.prototype.getGroupBase=function(){return u.a},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(h.d)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){var r;return r=this.get("quickHit")?s(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),e=this.getViewRange(),n,r;t.length&&t[0]===this?n=e:(n=Object(f.f)(t))&&(n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1,this.get("clipView")&&(n=Object(f.g)(n,e)));return n},e.prototype.refreshElement=function(t){var e;this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(h.a)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(f.a)(t,this),Object(f.d)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Object(f.a)(t,this),Object(f.b)(this,n,r),Object(f.d)(t,n,r),t.restore()):e.length&&Object(f.c)(e),Object(h.c)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame"),n=this.get("drawFrameCallback");e||(e=Object(h.n)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),n&&n()})),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}(i.AbstractCanvas),d=e.a=p},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=n(11),o=n(0),a=n(12),c,s={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)"}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.fb,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Object(o.s)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Object(o.s)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(i.a)(t,"touchmove",e.onMouseMove),Object(i.a)(t,"touchend",e.onMouseUp),Object(i.a)(t,"touchcancel",e.onMouseUp)]:[Object(i.a)(t,"mousemove",e.onMouseMove),Object(i.a)(t,"mouseup",e.onMouseUp),Object(i.a)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?Object(o.s)(t,"touches.0.clientX"):t.clientX,c=e.isMobile?Object(o.s)(t,"touches.0.clientY"):t.clientY,s=r?a:c,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,c,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,h=r?l-s.left-i-a/2:u-s.top-o-a/2,f=e.validateRange(h);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 Object(r.c)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Object(o.c)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){var t,e;return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(o.c)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o.c)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:s})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},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.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=void 0===r?{default:{}}:r,a=Object(o.h)({},s,i).default,c=a.lineCap,l=a.trackColor,u=a.size,h=Object(o.s)(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:c}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:l,lineCap:c};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,a=Object(o.h)({},s,i).default,c=a.size,l=a.lineCap,u=a.thumbColor,h=Object(o.s)(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+r-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+r-h/2,lineWidth:h,stroke:u,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},e.prototype.bindEvents=function(){var t=this.get("group"),e;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 n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var c=this.getElementByLocalId("thumb");r?c.attr({x1:a+o/2,x2:a+i-o/2}):c.attr({y1:a+o/2,y2:a+i-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(o.c)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(a.a)},function(t,e,n){"use strict";var r=n(25),i=n(0),o=n(36),a,c=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?o.d:r,a=e.dodgeRatio,c=void 0===a?o.b:a,s=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,h=e.xDimensionLength,f=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,y=e.columnWidthRatio,v=e.customOffset;return n.marginRatio=i,n.dodgeRatio=c,n.dodgeBy=s,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=h,n.groupNum=f,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=y,n.customOffset=v,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.e(t),n=i.q(e),r=this.dodgeBy,o=r?i.v(n,r):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var o=this,a=this.customOffset,c=this.getDistribution(t),s=this.groupData(n,t);return i.j(s,(function(n,s){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(s),e),i.j(n,(function(e){var n=e[t],s=c[n],u=s.indexOf(r);if(i.K(a))e[t]=o.getDodgeOffset(l,u,s.length);else{var h=l.pre,f=l.next;e[t]=i.I(a)?a(e,l):(h+f)/2+a}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r=this,o=r.dodgeRatio,a=r.marginRatio,c=r.intervalPadding,s=r.dodgePadding,l=t.pre,u=t.next,h=u-l,f,p;if(!i.K(c)&&i.K(s)&&c>=0)f=l+(p=this.getIntervalOnlyOffset(n,e));else if(!i.K(s)&&i.K(c)&&s>=0){var p;f=l+(p=this.getDodgeOnlyOffset(n,e))}else if(!i.K(c)&&!i.K(s)&&c>=0&&s>=0){var p;f=l+(p=this.getIntervalAndDodgeOffset(n,e))}else{var d=h*o/n,g=a*d,p;f=(l+u)/2+(p=.5*(h-n*d-(n-1)*g)+((e+1)*d+e*g)-.5*d-.5*h)}return f},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.intervalPadding,a=n.xDimensionLegenth,c=n.groupNum,s=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,p=(1-(c-1)*f)/c*s/(t-1),d=((1-f*(c-1))/c-p*(t-1))/t,g;if(d=i.K(h)?d:1/c/t*h,!i.K(l)){var y=l/a;d=Math.min(d,y)}if(!i.K(u)){var v=u/a;d=Math.max(d,v)}return((.5+e)*(d=r?r/a:d)+e*(p=((1-(c-1)*f)/c-t*d)/(t-1))+.5*f)*c-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,c=n.groupNum,s=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,p=1*s/(c-1),d=((1-p*(c-1))/c-f*(t-1))/t,g;if(d=h?1/c/t*h:d,!i.K(l)){var y=l/a;d=Math.min(d,y)}if(!i.K(u)){var v=u/a;d=Math.max(d,v)}return((.5+e)*(d=r?r/a:d)+e*f+.5*(p=(1-(d*t+f*(t-1))*c)/(c-1)))*c-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,c=r/o,s=i/o,l,u;return((.5+e)*(((1-c*(a-1))/a-s*(t-1))/t)+e*s+.5*c)*a-c/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.j(e,(function(e,n){var o=i.yb(e,t);o.length||o.push(0),i.j(o,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(n(30).a);e.a=c},function(t,e,n){"use strict";var r=n(25),i=n(0),o=n(36),a;function c(t,e){return(e-t)*Math.random()+t}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.e(t),n=i.q(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,o=this.groupData(n,t);return i.j(o,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,r=(n-e)*o.c;return c(e+r,n-r)},e.prototype.adjustGroup=function(t,e,n,r){var o=this,a=this.getAdjustRange(e,n,r);return i.j(t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(n(30).a);e.a=s},function(t,e,n){"use strict";var r=n(25),i=n(0),o=n(30),a=i.a,c=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,c=e.size,s=void 0===c?10:c,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=i,n.height=a,n.size=s,n.reverseOrder=u,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=this,n=e.yField,r=e.reverseOrder,i=n?this.processStack(t):this.processOneDimStack(t);return r?this.reverse(i):i},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,o=e.yField,c,s=e.reverseOrder?this.reverse(t):t,l=new a,u=new a;return s.map((function(t){return t.map((function(t){var e,a=i.s(t,n,0),c=i.s(t,[o]),s=a.toString();if(c=i.C(c)?c[1]:c,!i.K(c)){var h=c>=0?l:u;h.has(s)||h.set(s,0);var f=h.get(s),p=c+f;return h.set(s,p),Object(r.a)(Object(r.a)({},t),((e={})[o]=[f,p],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,i=n.xField,o=n.height,c=n.reverseOrder,s="y",l=c?this.reverse(t):t,u=new a;return l.map((function(t){return t.map((function(t){var n,a=e.size,c=t[i],s=2*a/o;u.has(c)||u.set(c,s/2);var l=u.get(c);return u.set(c,l+s),Object(r.a)(Object(r.a)({},t),((n={}).y=l,n))}))}))},e}(o.a);e.a=c},function(t,e,n){"use strict";var r=n(25),i=n(0),o,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.q(t),n=this,o=n.xField,a=n.yField,c=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(c).map((function(t){return c[t]})));return i.W(t,(function(t){return i.W(t,(function(t){var e,n,l=t[a],u=t[o];if(i.C(l)){var h=(s-c[u])/2;return Object(r.a)(Object(r.a)({},t),((e={})[a]=i.W(l,(function(t){return h+t})),e))}var f=(s-l)/2;return Object(r.a)(Object(r.a)({},t),((n={})[a]=[f,l+f],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,r=n.xField,o=n.yField,a=i.w(t,(function(t){return t[r]}));return i.X(a,(function(t){return e.getDimMaxValue(t,o)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.W(t,(function(t){return i.s(t,e,[])})),r=i.q(n);return Math.max.apply(Math,r)},e}(n(30).a);e.a=a},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return s}));var r=n(47);n.d(e,"Shape",(function(){return r}));var i=n(10);for(var o in i)["default","Canvas","Group","Shape","version"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a=n(84);n.d(e,"Canvas",(function(){return a.a}));var c=n(46);n.d(e,"Group",(function(){return c.a}));var s="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(115),i=function t(e,n){var i=(0,r.getSensor)(e);return i.bind(n),function(){i.unbind(n)}};e.bind=i;var o=function t(e){var n=(0,r.getSensor)(e);(0,r.removeSensor)(n)};e.clear=o;var a="1.0.2";e.ver=a},function(t,e,n){"use strict";function r(){return!1}e.a=r},function(t,e,n){"use strict";var r=50,i=2,o=Math.log(2),a=t.exports,c=n(120);function s(t){return 1-Math.abs(t)}function l(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}t.exports.getUnifiedMinMax=function(t,e){return a.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=c.isNumber(e.width)?e.width:2,o=c.isNumber(e.size)?e.size:50,a=c.isNumber(e.min)?e.min:(n=!0,c.findMinMulti(t)),s=c.isNumber(e.max)?e.max:(r=!0,c.findMaxMulti(t)),l,u=(s-a)/(o-1);return n&&(a-=2*i*u),r&&(s+=2*i*u),{min:a,max:s}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=c.isNumber(e.size)?e.size:50,r=c.isNumber(e.width)?e.width:2,i=a.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),o=i.min,u,h=i.max-o,f=h/(n-1);if(0===h)return[{x:o,y:1}];for(var p=[],d=0;d<n;d++)p.push({x:o+d*f,y:0});var g=function(t){return Math.floor((t-o)/f)},y=l(s,r),v=y[r],m=y[r-1]-y[r-2],b=0;t.forEach((function(t){var e=g(t);if(!(e+r<0||e-r>=p.length)){var n=Math.max(e-r,0),i=e,o=Math.min(e+r,p.length-1),a=n-(e-r),s=e+r-o,l=y[-r-1+a]||0,u=y[-r-1+s]||0,h=v/(v-l-u);a>0&&(b+=h*(a-1)*m);var f=Math.max(0,e-r+1);c.inside(0,p.length-1,f)&&(p[f].y+=1*h*m),c.inside(0,p.length-1,i+1)&&(p[i+1].y-=2*h*m),c.inside(0,p.length-1,o+1)&&(p[o+1].y+=1*h*m)}}));var x=b,O=0,j=0;return p.forEach((function(t){O+=t.y,x+=O,t.y=x,j+=x})),j>0&&p.forEach((function(t){t.y/=j})),p},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i<t.length&&(r=i,!((n+=t[i].y)>=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/o,Math.pow(2,e)}}},function(t,e){t.exports=window.ReactDOM},function(t,e,n){var r,i;r=this,i=function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,c=[];!function(){for(var t=0;t<64;t++)c[t]=4294967296*e.abs(e.sin(t+1))|0}();var s=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],s=t[e+1],p=t[e+2],d=t[e+3],g=t[e+4],y=t[e+5],v=t[e+6],m=t[e+7],b=t[e+8],x=t[e+9],O=t[e+10],j=t[e+11],w=t[e+12],M=t[e+13],S=t[e+14],C=t[e+15],A=o[0],E=o[1],k=o[2],T=o[3];A=l(A,E,k,T,a,7,c[0]),T=l(T,A,E,k,s,12,c[1]),k=l(k,T,A,E,p,17,c[2]),E=l(E,k,T,A,d,22,c[3]),A=l(A,E,k,T,g,7,c[4]),T=l(T,A,E,k,y,12,c[5]),k=l(k,T,A,E,v,17,c[6]),E=l(E,k,T,A,m,22,c[7]),A=l(A,E,k,T,b,7,c[8]),T=l(T,A,E,k,x,12,c[9]),k=l(k,T,A,E,O,17,c[10]),E=l(E,k,T,A,j,22,c[11]),A=l(A,E,k,T,w,7,c[12]),T=l(T,A,E,k,M,12,c[13]),k=l(k,T,A,E,S,17,c[14]),A=u(A,E=l(E,k,T,A,C,22,c[15]),k,T,s,5,c[16]),T=u(T,A,E,k,v,9,c[17]),k=u(k,T,A,E,j,14,c[18]),E=u(E,k,T,A,a,20,c[19]),A=u(A,E,k,T,y,5,c[20]),T=u(T,A,E,k,O,9,c[21]),k=u(k,T,A,E,C,14,c[22]),E=u(E,k,T,A,g,20,c[23]),A=u(A,E,k,T,x,5,c[24]),T=u(T,A,E,k,S,9,c[25]),k=u(k,T,A,E,d,14,c[26]),E=u(E,k,T,A,b,20,c[27]),A=u(A,E,k,T,M,5,c[28]),T=u(T,A,E,k,p,9,c[29]),k=u(k,T,A,E,m,14,c[30]),A=h(A,E=u(E,k,T,A,w,20,c[31]),k,T,y,4,c[32]),T=h(T,A,E,k,b,11,c[33]),k=h(k,T,A,E,j,16,c[34]),E=h(E,k,T,A,S,23,c[35]),A=h(A,E,k,T,s,4,c[36]),T=h(T,A,E,k,g,11,c[37]),k=h(k,T,A,E,m,16,c[38]),E=h(E,k,T,A,O,23,c[39]),A=h(A,E,k,T,M,4,c[40]),T=h(T,A,E,k,a,11,c[41]),k=h(k,T,A,E,d,16,c[42]),E=h(E,k,T,A,v,23,c[43]),A=h(A,E,k,T,x,4,c[44]),T=h(T,A,E,k,w,11,c[45]),k=h(k,T,A,E,C,16,c[46]),A=f(A,E=h(E,k,T,A,p,23,c[47]),k,T,a,6,c[48]),T=f(T,A,E,k,m,10,c[49]),k=f(k,T,A,E,S,15,c[50]),E=f(E,k,T,A,y,21,c[51]),A=f(A,E,k,T,w,6,c[52]),T=f(T,A,E,k,d,10,c[53]),k=f(k,T,A,E,O,15,c[54]),E=f(E,k,T,A,s,21,c[55]),A=f(A,E,k,T,b,6,c[56]),T=f(T,A,E,k,C,10,c[57]),k=f(k,T,A,E,v,15,c[58]),E=f(E,k,T,A,M,21,c[59]),A=f(A,E,k,T,g,6,c[60]),T=f(T,A,E,k,j,10,c[61]),k=f(k,T,A,E,p,15,c[62]),E=f(E,k,T,A,x,21,c[63]),o[0]=o[0]+A|0,o[1]=o[1]+E|0,o[2]=o[2]+k|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,s=c.words,l=0;l<4;l++){var u=s[l];s[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return c},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,n,r,i,o,a){var c=t+(e&n|~e&r)+i+a;return(c<<o|c>>>32-o)+e}function u(t,e,n,r,i,o,a){var c=t+(e&r|n&~r)+i+a;return(c<<o|c>>>32-o)+e}function h(t,e,n,r,i,o,a){var c=t+(e^n^r)+i+a;return(c<<o|c>>>32-o)+e}function f(t,e,n,r,i,o,a){var c=t+(n^(e|~r))+i+a;return(c<<o|c>>>32-o)+e}n.MD5=o._createHelper(s),n.HmacMD5=o._createHmacHelper(s)}(Math),t.MD5},t.exports=e=i(n(80))},function(t,e,n){var r,i;r=this,i=function(t){return t.enc.Hex},t.exports=e=i(n(80))},function(t,e,n){!function(e,n){t.exports=n()}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",c="day",s="week",l="month",u="quarter",h="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,l),o=n-i<0,a=e.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:s,d:c,D:f,h:a,m:o,s:i,ms:r,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",x={};x[b]=y;var O=function(t){return t instanceof S},j=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();x[o]&&(i=o),n&&(x[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var c=e.name;x[c]=e,i=c}return!r&&i&&(b=i),i||!r&&b},w=function(t,e){if(O(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},M=m;M.l=j,M.i=O,M.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function y(t){this.$L=j(t.locale,null,!0),this.parse(t)}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return M},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return w(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<w(t)},v.$g=function(t,e,n){return M.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,r=!!M.u(e)||e,u=M.p(t),p=function(t,e){var i=M.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(c)},d=function(t,e){return M.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,y=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(u){case h:return r?p(1,0):p(31,11);case l:return r?p(1,y):p(0,y+1);case s:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?v-x:v+(6-x),y);case c:case f:return d(m+"Hours",0);case a:return d(m+"Minutes",1);case o:return d(m+"Seconds",2);case i:return d(m+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,s=M.p(t),u="set"+(this.$u?"UTC":""),p=(n={},n[c]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[s],d=s===c?this.$D+(e-this.$W):e;if(s===l||s===h){var g=this.clone().set(f,1);g.$d[p](d),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[M.p(t)]()},v.add=function(r,u){var f,p=this;r=Number(r);var d=M.p(u),g=function(t){var e=w(p);return M.w(e.date(e.date()+Math.round(t*r)),p)};if(d===l)return this.set(l,this.$M+r);if(d===h)return this.set(h,this.$y+r);if(d===c)return g(1);if(d===s)return g(7);var y=(f={},f[o]=e,f[a]=n,f[i]=t,f)[d]||1,v=this.$d.getTime()+r*y;return M.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=M.z(this),o=this.$H,a=this.$m,c=this.$M,s=n.weekdays,l=n.months,u=n.meridiem,h=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return M.s(o%12||12,t,"0")},d=u||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return M.s(e.$y,4,"0");case"M":return c+1;case"MM":return M.s(c+1,2,"0");case"MMM":return h(n.monthsShort,c,l,3);case"MMMM":return h(l,c);case"D":return e.$D;case"DD":return M.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,s,2);case"ddd":return h(n.weekdaysShort,e.$W,s,3);case"dddd":return s[e.$W];case"H":return String(o);case"HH":return M.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(o,a,!0);case"A":return d(o,a,!1);case"m":return String(a);case"mm":return M.s(a,2,"0");case"s":return String(e.$s);case"ss":return M.s(e.$s,2,"0");case"SSS":return M.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var d,g=this,y=M.p(f),v=w(r),m=(v.utcOffset()-this.utcOffset())*e,b=this-v,x=function(){return M.m(g,v)};switch(y){case h:d=x()/12;break;case l:d=x();break;case u:d=x()/3;break;case s:d=(b-m)/6048e5;break;case c:d=(b-m)/864e5;break;case a:d=b/n;break;case o:d=b/e;break;case i:d=b/t;break;default:d=b}return p?d:M.a(d)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return x[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=j(t,e,!0);return r&&(n.$L=r),n},v.clone=function(){return M.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},y}(),C=S.prototype;return w.prototype=C,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",c],["$M",l],["$y",h],["$D",f]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,S,w),t.$i=!0),w},w.locale=j,w.isDayjs=O,w.unix=function(t){return w(1e3*t)},w.en=x[b],w.Ls=x,w.p={},w}))},,,,,,,,function(t,e,n){t.exports=n(112)},function(t,e,n){"use strict";n.r(e);var r=n(42),i=n.n(r);for(var o in n.d(e,"default",(function(){return i.a})),r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a={},c="ChartsMaterials",s=!0;function l(t,e){return t.default?t.default:t[e]?t[e]:t}},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=c(t,"string");return"symbol"==h(e)?e:e+""}function c(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return a=e.done,e},e:function t(e){c=!0,o=e},f:function t(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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 f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=s(g(n)),a;try{var c=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)c()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return A}}),t.exports=O(j);var w=x(n(3)),M=n(50),S=n(127),C,A=function t(e){var n=e.color,r=e.others,o=void 0===r?{}:r,a=(0,w.useMemo)((function(){return(0,S.isArr)(n)?n.filter(Boolean):n}),[n]);return w.default.createElement(M.Line,i(i(i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e),o),{},{color:a}))}},function(t,e){var n=t.exports={},r,i;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function s(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l=[],u=!1,h,f=-1;function p(){u&&h&&(u=!1,h.length?l=h.concat(l):f=-1,l.length&&d())}function d(){if(!u){var t=c(p);u=!0;for(var e=l.length;e;){for(h=l,l=[];++f<e;)h&&h[f].run();f=-1,e=l.length}h=null,u=!1,s(t)}}function g(t,e){this.fun=t,this.array=e}function y(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new g(t,e)),1!==l.length||u||c(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var r=a(n(116)),i=n(117),o=n(67);function a(t){return t&&t.__esModule?t:{default:t}}var c={};function s(t){t&&c[t]&&delete c[t]}e.Sensors=c;var l=function t(e){var n=e.getAttribute(o.SizeSensorId);if(n&&c[n])return c[n];var a=(0,r.default)();e.setAttribute(o.SizeSensorId,a);var l=(0,i.createSensor)(e,(function(){return s(a)}));return c[a]=l,l};e.getSensor=l;var u=function t(e){var n=e.element.getAttribute(o.SizeSensorId);e.destroy(),s(n)};e.removeSensor=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=1,i=function t(){return"".concat(r++)};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(118),i=n(119),o="undefined"!=typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=o(n(77)),i=n(67);function o(t){return t&&t.__esModule?t:{default:t}}var a=function t(e,n){var o=void 0,a=[],c=function t(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var n=document.createElement("object");return n.onload=function(){n.contentDocument.defaultView.addEventListener("resize",s),s()},n.style.display="block",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",n.style.pointerEvents="none",n.style.zIndex="-1",n.style.opacity="0",n.setAttribute("class",i.SensorClassName),n.setAttribute("tabindex",i.SensorTabIndex),n.type="text/html",e.appendChild(n),n.data="about:blank",n},s=(0,r.default)((function(){a.forEach((function(t){t(e)}))})),l,u=function t(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",s),o.parentNode.removeChild(o),e.removeAttribute(i.SizeSensorId),o=void 0,a=[],n&&n())},h=function t(e){var n=a.indexOf(e);-1!==n&&a.splice(n,1),0===a.length&&o&&u()};return{element:e,bind:function t(e){o||(o=c()),-1===a.indexOf(e)&&a.push(e)},destroy:u,unbind:h}};e.createSensor=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(67),i=o(n(77));function o(t){return t&&t.__esModule?t:{default:t}}var a=function t(e,n){var o=void 0,a=[],c=(0,i.default)((function(){a.forEach((function(t){t(e)}))})),s=function t(){var n=new ResizeObserver(c);return n.observe(e),c(),n},l,u=function t(){o.disconnect(),a=[],o=void 0,e.removeAttribute(r.SizeSensorId),n&&n()},h=function t(e){var n=a.indexOf(e);-1!==n&&a.splice(n,1),0===a.length&&o&&u()};return{element:e,bind:function t(e){o||(o=s()),-1===a.indexOf(e)&&a.push(e)},destroy:u,unbind:h}};e.createSensor=a},function(t,e,n){"use strict";var r=t.exports;t.exports.isNumber=function(t){return"number"==typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var e=r.findMin(t[0]),n=1;n<t.length;n++)e=Math.min(e,r.findMin(t[n]));return e},t.exports.findMaxMulti=function(t){for(var e=r.findMax(t[0]),n=1;n<t.length;n++)e=Math.max(e,r.findMax(t[n]));return e},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},function(t,e){},function(t,e,n){"use strict";
17
+ /**
18
+ * @license React
19
+ * react-jsx-runtime.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var r=n(3),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,n){var r,o={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(u=e.ref),e)a.call(e,r)&&!s.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:l,ref:u,props:o,_owner:c.current}}e.Fragment=o,e.jsx=l,e.jsxs=l},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=c(t,"string");return"symbol"==h(e)?e:e+""}function c(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return a=e.done,e},e:function t(e){c=!0,o=e},f:function t(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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 f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=s(g(n)),a;try{var c=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)c()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return C}}),t.exports=O(j);var w=x(n(3)),M=n(50),S,C=function t(e){return w.default.createElement(M.Pie,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=c(t,"string");return"symbol"==h(e)?e:e+""}function c(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return a=e.done,e},e:function t(e){c=!0,o=e},f:function t(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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 f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=s(g(n)),a;try{var c=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)c()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return C}}),t.exports=O(j);var w=x(n(3)),M=n(50),S,C=function t(e){return w.default.createElement(M.Bar,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=c(t,"string");return"symbol"==h(e)?e:e+""}function c(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return a=e.done,e},e:function t(e){c=!0,o=e},f:function t(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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 f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=s(g(n)),a;try{var c=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)c()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return C}}),t.exports=O(j);var w=x(n(3)),M=n(50),S,C=function t(e){return w.default.createElement(M.Area,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=c(t,"string");return"symbol"==h(e)?e:e+""}function c(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return a=e.done,e},e:function t(e){c=!0,o=e},f:function t(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t){return(h="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 f=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,m,b=function t(e,n,r,i){if(n&&"object"===h(n)||"function"==typeof n){var o=s(g(n)),a;try{var c=function t(){var o=a.value;v.call(e,o)||o===r||p(e,o,{get:function t(){return n[o]},enumerable:!(i=d(n,o))||i.enumerable})};for(o.s();!(a=o.n()).done;)c()}catch(t){o.e(t)}finally{o.f()}}return e},x=function t(e,n,r){return r=null!=e?f(y(e)):{},b(!n&&e&&e.__esModule?r:p(r,"default",{value:e,enumerable:!0}),e)},O=function t(e){return b(p({},"__esModule",{value:!0}),e)},j={};(function t(e,n){for(var r in n)p(e,r,{get:n[r],enumerable:!0})})(j,{default:function t(){return C}}),t.exports=O(j);var w=x(n(3)),M=n(50),S,C=function t(e){return w.default.createElement(M.Column,i({key:"".concat(e.width,"-").concat(e.height,"-").concat(e.autoFit),style:{flex:1}},e))}},function(t,e,n){"use strict";n.r(e),n.d(e,"detectIncognito",(function(){return b})),n.d(e,"getUniqueId",(function(){return x})),n.d(e,"changeArray",(function(){return O})),n.d(e,"getItemByArray",(function(){return j})),n.d(e,"createArray",(function(){return w})),n.d(e,"generateUniqueIdByObj",(function(){return M})),n.d(e,"isFunction",(function(){return S})),n.d(e,"isArr",(function(){return C})),n.d(e,"isString",(function(){return A})),n.d(e,"isNumber",(function(){return E})),n.d(e,"isUndefined",(function(){return k})),n.d(e,"isBoolean",(function(){return T})),n.d(e,"isJson",(function(){return P})),n.d(e,"isPlainObject",(function(){return D})),n.d(e,"setTheme",(function(){return Y})),n.d(e,"copyToClipboard",(function(){return H})),n.d(e,"formatDate",(function(){return $})),n.d(e,"excelDateToJSDate",(function(){return q})),n.d(e,"jsDateToExcelDate",(function(){return U})),n.d(e,"isIpad",(function(){return Z})),n.d(e,"isMobile",(function(){return Q})),n.d(e,"isAndroid",(function(){return J})),n.d(e,"isIos",(function(){return tt})),n.d(e,"checkEnv",(function(){return et})),n.d(e,"isWx",(function(){return nt})),n.d(e,"isIOS",(function(){return rt})),n.d(e,"isWxApp",(function(){return it})),n.d(e,"isSafari",(function(){return ot})),n.d(e,"sendWarningLog",(function(){return ft})),n.d(e,"formatAmount",(function(){return pt})),n.d(e,"formatAmountWithOptions",(function(){return dt})),n.d(e,"EscPosPrinter",(function(){return Pt})),n.d(e,"ALIGN_LEFT",(function(){return yt})),n.d(e,"ALIGN_CENTER",(function(){return vt})),n.d(e,"ALIGN_RIGHT",(function(){return mt})),n.d(e,"columnWidthWithAlignment",(function(){return St})),n.d(e,"preparing",(function(){return Rt})),n.d(e,"miniRedux",(function(){return Qt})),n.d(e,"webPrint",(function(){return le})),n.d(e,"dataManager",(function(){return ue})),n.d(e,"image",(function(){return pe})),n.d(e,"locales",(function(){return Ce})),n.d(e,"uniqueByKey",(function(){return Te})),n.d(e,"setPisellUtilsConfig",(function(){return Re})),n.d(e,"getPisellUtilsConfig",(function(){return _e}));var r=n(101),i=n.n(r),o=n(102),a=n.n(o),c={d:(t,e)=>{for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},s={};c.d(s,{A:()=>f,k:()=>h});var l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function c(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}s((r=r.apply(t,e||[])).next())}))},u=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}};function h(){return l(this,void 0,Promise,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t,e){var n,r,i="Unknown";function o(e){t({isPrivate:e,browserName:i})}function a(t){return t===eval.toString().length}function c(){void 0!==navigator.maxTouchPoints?function(){var t=String(Math.random());try{window.indexedDB.open(t,1).onupgradeneeded=function(e){var n,r,i=null===(n=e.target)||void 0===n?void 0:n.result;try{i.createObjectStore("test",{autoIncrement:!0}).put(new Blob),o(!1)}catch(t){var a=t;return t instanceof Error&&(a=null!==(r=t.message)&&void 0!==r?r:t),"string"!=typeof a?void o(!1):void o(a.includes("BlobURLs are not yet supported"))}finally{i.close(),window.indexedDB.deleteDatabase(t)}}}catch(t){o(!1)}}():function(){var t=window.openDatabase,e=window.localStorage;try{t(null,null,null,null)}catch(t){return void o(!0)}try{e.setItem("test","1"),e.removeItem("test")}catch(t){return void o(!0)}o(!1)}()}function s(){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,e){var n;o(Math.round(e/1048576)<2*Math.round((void 0!==(n=window).performance&&void 0!==n.performance.memory&&void 0!==n.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824)/1048576))}),(function(t){e(new Error("detectIncognito somehow failed to query storage quota: "+t.message))}))}function l(){void 0!==self.Promise&&void 0!==self.Promise.allSettled?s():(0,window.webkitRequestFileSystem)(0,1,(function(){o(!1)}),(function(){o(!0)}))}void 0!==(r=navigator.vendor)&&0===r.indexOf("Apple")&&a(37)?(i="Safari",c()):function(){var t=navigator.vendor;return void 0!==t&&0===t.indexOf("Google")&&a(33)}()?(n=navigator.userAgent,i=n.match(/Chrome/)?void 0!==navigator.brave?"Brave":n.match(/Edg/)?"Edge":n.match(/OPR/)?"Opera":"Chrome":"Chromium",l()):void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&a(37)?(i="Firefox",o(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&a(39)?(i="Internet Explorer",o(void 0===window.indexedDB)):e(new Error("detectIncognito cannot determine the browser"))}))];case 1:return[2,t.sent()]}}))}))}"undefined"!=typeof window&&(window.detectIncognito=h);const f=h;var p=s.A,d=s.k;function g(t){return(g="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)}function y(){
26
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
27
+ y=function t(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function t(e,n,r){return e[n]=r}}function u(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),c=new I(r||[]);return i(a,"_invoke",{value:E(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function b(){}function x(){}function O(){}var j={};l(j,a,(function(){return this}));var w=Object.getPrototypeOf,M=w&&w(w(F([])));M&&M!==n&&r.call(M,a)&&(j=M);var S=O.prototype=b.prototype=Object.create(j);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(i,o,a,c){var s=h(t[i],t,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==g(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function t(r,i){function a(){return new e((function(t,e){n(r,i,t,e)}))}return o=o?o.then(a,a):a()}})}function E(e,n,r){var i=f;return function(o,a){if(i===d)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var c=r.delegate;if(c){var s=k(c,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=d;var l=h(e,n,r);if("normal"===l.type){if(i=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=v,r.method="throw",r.arg=l.arg)}}}function k(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function F(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(g(e)+" is not iterable")}return x.prototype=O,i(S,"constructor",{value:O,configurable:!0}),i(O,"constructor",{value:x,configurable:!0}),x.displayName=l(O,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,l(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},C(A.prototype),l(A.prototype,c,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new A(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(S),l(S,s,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=F,I.prototype={constructor:I,reset:function e(n){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!n)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function e(n){if(this.done)throw n;var i=this;function o(e,r){return s.type="throw",s.arg=n,i.next=e,r&&(i.method="next",i.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],s=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function t(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=n,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(c)},complete:function t(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),m},finish:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var o=i.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function e(n,r,i){return this.delegate={iterator:F(n),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function v(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function m(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){v(o,r,i,a,c,"next",t)}function c(t){v(o,r,i,a,c,"throw",t)}a(void 0)}))}}var b=function(){var t=m(y().mark((function t(){return y().wrap((function t(e){for(;;)switch(e.prev=e.next){case 0:if(!navigator.userAgent.toLowerCase().includes("honor")){e.next=2;break}return e.abrupt("return",{isPrivate:!1});case 2:return e.next=4,d();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),t)})));return function e(){return t.apply(this,arguments)}}(),x=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:11;return e+(Math.random()+"").replace(/\D/g,"").substring(0,n)},O=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"this",i=JSON.parse(JSON.stringify(e)),o=!1;return(o="this"===r?i.includes(n):i.some((function(t){return t[r]===n[r]})))?i=i.filter((function(t){return"this"===r?t!==n:t[r]!==n[r]})):i.push(n),i},j=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"this";return"this"===r?e.includes(n):e.some((function(t){return t[r]===n[r]}))},w=function t(e,n){return Array.from(new Array(e)).map(n)},M=function t(e){var n=JSON.stringify(e),r;return i()(n).toString(a.a.Hex)},S=function t(e){return"function"==typeof e},C=function t(e){return Array.isArray(e)},A=function t(e){return"string"==typeof e},E=function t(e){return"number"==typeof e},k=function t(e){return void 0===e},T=function t(e){return"boolean"==typeof e},P=function t(e){if("string"!=typeof e)return!1;try{return JSON.parse(e)}catch(t){return!1}},I=Object.getPrototypeOf,F={}.hasOwnProperty,L=F.toString,B=L.call(Object),D=function t(e){var n,r;return!(!e||"[object Object]"!==toString.call(e))&&(!(n=I(e))||"function"==typeof(r=F.call(n,"constructor")&&n.constructor)&&L.call(r)===B)};function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(){
28
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
29
+ _=function t(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function t(e,n,r){return e[n]=r}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new T(r||[]);return i(a,"_invoke",{value:C(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",g="completed",y={};function v(){}function m(){}function b(){}var x={};l(x,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(P([])));j&&j!==n&&r.call(j,a)&&(x=j);var w=b.prototype=v.prototype=Object.create(x);function M(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,a,c){var s=h(t[i],t,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==R(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function t(r,i){function a(){return new e((function(t,e){n(r,i,t,e)}))}return o=o?o.then(a,a):a()}})}function C(e,n,r){var i=f;return function(o,a){if(i===d)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var c=r.delegate;if(c){var s=A(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=d;var l=h(e,n,r);if("normal"===l.type){if(i=r.done?g:p,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=g,r.method="throw",r.arg=l.arg)}}}function A(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(R(e)+" is not iterable")}return m.prototype=b,i(w,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},M(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function e(n){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!n)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function e(n){if(this.done)throw n;var i=this;function o(e,r){return s.type="throw",s.arg=n,i.next=e,r&&(i.method="next",i.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],s=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function t(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=n,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(c)},complete:function t(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),y},finish:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var o=i.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function e(n,r,i){return this.delegate={iterator:P(n),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}function N(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function z(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){N(o,r,i,a,c,"next",t)}function c(t){N(o,r,i,a,c,"throw",t)}a(void 0)}))}}var Y=function t(e){try{for(var n=Object.entries(e),r=0,i=n;r<i.length;r++){var o=i[r];document.documentElement.style.setProperty(o[0],o[1])}}catch(t){console.error(t)}},G=function t(e){var n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.top="-10000px",n.style.left="-10000px",document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n)},H=function(){var t=z(_().mark((function t(e){return _().wrap((function t(n){for(;;)switch(n.prev=n.next){case 0:if(!navigator.clipboard){n.next=13;break}return n.prev=1,n.next=4,navigator.clipboard.writeText(e);case 4:return n.abrupt("return",n.sent);case 7:return n.prev=7,n.t0=n.catch(1),console.error(n.t0),n.abrupt("return",G(e));case 11:n.next=14;break;case 13:return n.abrupt("return",G(e));case 14:case"end":return n.stop()}}),t,null,[[1,7]])})));return function e(n){return t.apply(this,arguments)}}(),V=n(103),W=n.n(V),X=["D MMM YYYY, hh:mma","YYYY-MM-DD"],$=function t(e,n){var r=n||X[0];return e?W()(e).format(r):e},q=function t(e){var n,r;return $(new Date(864e5*(e-25569)),X[1])},U=function t(e){var n,r,i,o;return(new Date(e)-new Date(Date.UTC(1900,0,1)))/864e5+25569},K="undefined"!=typeof window&&window.document,Z=function t(){var e=navigator.userAgent,n=-1!=e.indexOf("Safari")&&-1!=e.indexOf("Version"),r=-1!=e.indexOf("iPhone")&&-1!=e.indexOf("Version"),i=n&&!r&&"ontouchend"in document;return!(!/iphone|ios|ipad|android|mobile/i.test(navigator.userAgent.toLowerCase())&&!i)},Q=function t(){var e=window.navigator.userAgent.toLowerCase(),n="ipad"==e.match(/ipad/i),r="iphone os"==e.match(/iphone os/i),i="midp"==e.match(/midp/i),o="rv:1.2.3.4"==e.match(/rv:1.2.3.4/i),a="ucweb"==e.match(/ucweb/i),c="android"==e.match(/android/i),s="windows ce"==e.match(/windows ce/i),l="windows mobile"==e.match(/windows mobile/i);return!!(n||r||i||o||a||c||s||l||Z())},J=function t(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},tt=function t(){return/iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())},et=function t(){var e=0,n=window.navigator.userAgent,r=n.indexOf("Opera")>-1||n.indexOf("OPR")>-1,i=n.indexOf("compatible")>-1&&n.indexOf("MSIE")>-1,o=-1===n.indexOf("compatible")&&n.indexOf("Trident")>-1,a=n.indexOf("Edge")>-1,c=n.indexOf("Firefox")>-1,s=n.indexOf("Safari")>-1&&-1===n.indexOf("Chrome"),l=n.indexOf("Chrome")>-1&&n.indexOf("; Win")>-1&&n.indexOf("Safari")>-1;return e=r||i||o||a||c||s||l?0:1},nt=function t(){if(K){var e="";return K&&(e=window.navigator.userAgent.toLowerCase()),"micromessenger"==e.match(/MicroMessenger/i)}return!1},rt=function t(){var e,n;return!!K&&!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},it=function t(){var e,n;return!!K&&-1!==navigator.userAgent.indexOf("miniProgram")},ot=function t(){if(K){var e=window.navigator.userAgent;return e.indexOf("Safari")>-1&&-1===e.indexOf("Chrome")&&-1===e.indexOf("CriOS")&&-1===e.indexOf("ChannelName/Feishu")}return!1},at={test:"https://open.feishu.cn/open-apis/bot/v2/hook/985186a7-d939-4daf-9f30-3a3cc9c47d97",prod:"https://open.feishu.cn/open-apis/bot/v2/hook/887dfff9-2ccc-4513-87ff-a05d8cef953e"};function ct(t){return(ct="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)}function st(){
30
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
31
+ st=function t(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function t(e,n,r){return e[n]=r}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new T(r||[]);return i(a,"_invoke",{value:C(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",g="completed",y={};function v(){}function m(){}function b(){}var x={};l(x,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(P([])));j&&j!==n&&r.call(j,a)&&(x=j);var w=b.prototype=v.prototype=Object.create(x);function M(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,a,c){var s=h(t[i],t,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==ct(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function t(r,i){function a(){return new e((function(t,e){n(r,i,t,e)}))}return o=o?o.then(a,a):a()}})}function C(e,n,r){var i=f;return function(o,a){if(i===d)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var c=r.delegate;if(c){var s=A(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=d;var l=h(e,n,r);if("normal"===l.type){if(i=r.done?g:p,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=g,r.method="throw",r.arg=l.arg)}}}function A(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(ct(e)+" is not iterable")}return m.prototype=b,i(w,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},M(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function e(n){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!n)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function e(n){if(this.done)throw n;var i=this;function o(e,r){return s.type="throw",s.arg=n,i.next=e,r&&(i.method="next",i.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],s=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function t(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=n,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(c)},complete:function t(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),y},finish:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var o=i.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function e(n,r,i){return this.delegate={iterator:P(n),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}function lt(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function ut(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){lt(o,r,i,a,c,"next",t)}function c(t){lt(o,r,i,a,c,"throw",t)}a(void 0)}))}}var ht=function t(e){return JSON.stringify(e.map((function(t){return[{tag:"text",text:"".concat(t.key,": ")},{tag:"text",text:"".concat(t.value)}]})))},ft=function(){var t=ut(st().mark((function t(e){var n,r,i,o,a,c;return st().wrap((function t(s){for(;;)switch(s.prev=s.next){case 0:return n=e.title,r=e.content,i=ht(r),o="",a=_e(),console.log("PISELL_UTILS_CONFIG>>>>",a),o="dev"===(null==a?void 0:a.env)||"pre"===(null==a?void 0:a.env)||"release"===(null==a?void 0:a.env)?at.test:at.prod,s.next=8,fetch(o,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({msg_type:"post",content:'{"post":{"zh_cn":{"title":"'.concat(n,'","content":').concat(i,"}}}")})});case 8:return c=s.sent,s.next=11,c.json();case 11:return s.abrupt("return",s.sent);case 12:case"end":return s.stop()}}),t)})));return function e(n){return t.apply(this,arguments)}}(),pt=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!A(e)&&!E(e))return console.error("amount is not a number"),e;try{var i=Math.round(e*Math.pow(10,n))/Math.pow(10,n),o=Math.abs(i),a=Math.floor(o),c=(o-a).toFixed(n).substring(2),s=r+a.toString();return n>0&&-1!==(s+="."+c).indexOf(".00")&&(s=s.substring(0,s.length-3)),i<0&&(s="-"+s),s}catch(t){return console.error(t),e}},dt=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=r.precision,o=void 0===i?2:i,a=r.useThousandsSeparator,c=void 0!==a&&a,s=r.showCurrencySymbol,l=void 0===s||s,u=r.hideDecimalForWholeNumbers,h=void 0===u||u;if(!A(e)&&!E(e))return console.error("amount is not a number"),e;try{var f=Math.round(e*Math.pow(10,o))/Math.pow(10,o),p=Math.abs(f),d=Math.floor(p),g=(p-d).toFixed(o).substring(2),y=c?d.toLocaleString():d.toString();return y=l?n+y:y,o>0&&(y+="."+g,h&&-1!==y.indexOf(".00")&&(y=y.substring(0,y.length-3))),f<0&&(y="-"+y),y}catch(t){return console.error(t),e}},gt=6,yt=0,vt=1,mt=2,bt=1,xt=2,Ot=function t(e){384!=e&&576!=e&&(e=384),this.widthOfColumns=new Array(6),this.dotsPerLine=e,this.charHSize=1,this.orderData=""};function jt(t,e){for(var n="",r,i=0;i<e;i++)n+=(r=255&t)<16?"0"+r.toString(16):r.toString(16),t>>=8;return n}function wt(t){var e,n,r,i;return t<0?"":t<=127?jt(e=127&t,1):t<=2047?(n=63&t|128,jt(e=t>>6&31|192,1)+jt(n,1)):t<=65535?(n=t>>6&63|128,r=63&t|128,jt(e=t>>12&15|224,1)+jt(n,1)+jt(r,1)):t<=1114111?(n=t>>12&63|128,r=t>>6&63|128,i=63&t|128,jt(e=t>>18&7|240,1)+jt(n,1)+jt(r,1)+jt(i,1)):""}function Mt(t){return t>=32&&t<=879||t>=65377&&t<=65439?12:8208==t||t>=8211&&t<=8214||t>=8216&&t<=8217||t>=8220&&t<=8221||t>=8229&&t<=8230||t>=8240&&t<=8243||8245==t||8251==t||t>=4352&&t<=4607||t>=9312&&t<=9471||t>=9632&&t<=10175||t>=11904&&t<=12255||t>=12288&&t<=12687||t>=12704&&t<=12783||t>=12800&&t<=40959||t>=44032&&t<=55295||t>=63744&&t<=64255||t>=65072&&t<=65103||t>=126976&&t<=129535||t>=65281&&t<=65374||t>=65504&&t<=65509?24:0}function St(t,e){return 65535&t|(3&e)<<16}function Ct(t){return 65535&t}function At(t){return t>>16&3}function Et(t,e,n){if(e<=0||n<=0)return null;if(t.length<e*n)return null;var r=e+7>>3,i=new Array(r*n),o=new Array(2*e),a,c,s,l,u,h,f,p,d,g,y,v,m,b,x,O,j;for(f=0,p=1,a=0;a<e;a++)o[a]=0,o[e+a]=t[a];for(u=0;u<n;u++){if(y=f,f=p,p=y,j=u<n-1)for(c=(u+1)*e,a=0;a<e;a++)o[p*e+a]=t[c],c++;for(s=u*r,a=0;a<r;a++)i[s]=0,s++;for(d=0,g=0,s=u*r,h=128,l=1;l<=e;l++){var w=f*e+d;o[w]<128?(v=o[w],i[s]|=h):v=o[w]-255,d++,1==h?(s++,h=128):h>>=1,m=v-((O=7*v+8>>4)+(x=5*v+8>>4)+(b=3*v+8>>4)),l<e&&(o[f*e+d]+=O),j&&(o[p*e+g]+=x,l>1&&(o[p*e+g-1]+=b),l<e&&(o[p*e+g+1]+=m)),g++}}return i}function kt(t,e,n){if(e<=0||n<=0)return null;if(t.length<e*n)return null;var r=e+7>>3,i=new Array(r*n),o,a,c,s,l,u;for(o=0,a=0,l=0;l<n;l++){for(c=a,u=128,s=0;s<e;s++)t[o]<128&&(i[c]|=u),o++,1==u?(c++,u=128):u>>=1;a+=r}return i}function Tt(t,e,n){var r=new Array(e*n),i=0,o=0,a,c,s,l,u;for(c=0;c<n;c++)for(a=0;a<e;a++)s=255&t.data[o++],l=255&t.data[o++],u=255&t.data[o++],o++,r[i++]=11*s+16*l+5*u>>5&255;return r}Ot.prototype.clear=function(){this.orderData=""},Ot.prototype.print=function(t,e,n){var r=this;return new Promise((function(i,o){var a=new XMLHttpRequest;a.timeout=1e4;var c="https://"+t+"/cgi-bin/print.cgi?sn="+e+"&copies="+n;a.open("POST",c,!0),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE)if("200"===a.status.toString(10)){var t,e=/task_id: (\d+)/.exec(a.responseText);i(e[1]||"")}else o(a.responseText)},a.setRequestHeader("Content-Type","text/plain; charset=utf-8"),a.send(r.orderData)}))},Ot.prototype.queryStatus=function(t,e,n){return new Promise((function(r,i){var o=new XMLHttpRequest;o.timeout=1e4;var a="https://"+t+"/cgi-bin/status.cgi?sn="+e+"&task_id="+n;o.open("POST",a,!0),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&("200"===o.status.toString(10)?r(o.responseText):i(o.responseText))},o.setRequestHeader("Content-Type","text/plain; charset=utf-8"),o.send()}))},Ot.prototype.appendText=function(t){for(var e=0;e<t.length;e++)this.orderData+=wt(t.charCodeAt(e))},Ot.prototype.lineFeed=function(t){for(var e=0;e<t;e++)this.orderData+="0a"},Ot.prototype.restoreDefaultSettings=function(){this.charHSize=1,this.orderData+="1b40"},Ot.prototype.restoreDefaultLineSpacing=function(){this.orderData+="1b32"},Ot.prototype.setLineSpacing=function(t){t>=0&&t<=255&&(this.orderData+="1b33"+jt(t,1))},Ot.prototype.setPrintModes=function(t,e,n){var r=0;t&&(r|=8),e&&(r|=16),n&&(r|=32),this.charHSize=n?2:1,this.orderData+="1b21"+jt(r,1)},Ot.prototype.setCharacterSize=function(t,e){var n=0;t>=1&&t<=8&&(n|=t-1),e>=1&&e<=8&&(n|=e-1<<4,this.charHSize=e),this.orderData+="1d21"+jt(n,1)},Ot.prototype.horizontalTab=function(t){for(var e=0;e<t;e++)this.orderData+="09"},Ot.prototype.setAbsolutePrintPosition=function(t){t>=0&&t<=65535&&(this.orderData+="1b24"+jt(t,2))},Ot.prototype.setRelativePrintPosition=function(t){t>=-32768&&t<=32767&&(this.orderData+="1b5c"+jt(t,2))},Ot.prototype.setAlignment=function(t){t>=0&&t<=2&&(this.orderData+="1b61"+jt(t,1))},Ot.prototype.cutPaper=function(t){this.orderData+="1d56"+(t?"30":"31")},Ot.prototype.postponedCutPaper=function(t,e){e>=0&&e<=255&&(this.orderData+="1d56"+(t?"61":"62")+jt(e,1))},Ot.prototype.setColumnWidths=function(){var t,e,n,r;if(0!=arguments.length){for(t=0;t<6;t++)this.widthOfColumns[t]=0;for(e=this.dotsPerLine,t=0;t<arguments.length;t++){if(6==t)return;if(n=Ct(arguments[t]),r=At(arguments[t]),0==n||n>e)return void(this.widthOfColumns[t]=St(e,r));this.widthOfColumns[t]=arguments[t],e-=n}}},Ot.prototype.printInColumns=function(){var t=new Array(6),e=new Array(6),n=new Array(6),r,i,o,a,c,s,l,u,h;if(0!=arguments.length){for(c=0,r=0;r<arguments.length&&(6!=r&&0!=this.widthOfColumns[r]);r++)t[r]="",e[r]=arguments[r],c++;do{for(h=!0,u=0,r=0;r<c;r++)if(s=Ct(this.widthOfColumns[r]),0!=e[r].length){for(h=!1,t[r]="",n[r]=0,i=0;i<e[r].length;i++){if(10==(o=e[r].charCodeAt(i))){i++;break}if(0==(a=Mt(o))&&(o="?",a=12),a*=this.charHSize,n[r]+a>s)break;t[r]+=String.fromCharCode(o),n[r]+=a}switch(i<e[r].length?e[r]=e[r].substring(i):e[r]="",l=At(this.widthOfColumns[r])){case vt:this.setAbsolutePrintPosition(u+(s-n[r])/2);break;case mt:this.setAbsolutePrintPosition(u+(s-n[r]));break;default:this.setAbsolutePrintPosition(u)}this.appendText(t[r]),u+=s}else u+=s;h||this.lineFeed(1)}while(!h)}},Ot.prototype.appendBarcode=function(t,e,n,r,i){var o=i.length;if(0!=o){o>255&&(o=255),e<1?e=1:e>255&&(e=255),n<1?n=1:n>6&&(n=6),this.orderData+="1d48"+jt(3&t,1),this.orderData+="1d6600",this.orderData+="1d68"+jt(e,1),this.orderData+="1d77"+jt(n,1),this.orderData+="1d6b"+jt(r,1)+jt(o,1);for(var a=0;a<o;a++)this.orderData+=jt(i.charCodeAt(a),1)}},Ot.prototype.appendQRcode=function(t,e,n){var r=n.length;if(0!=r){r>65535&&(r=65535),t<1?t=1:t>16&&(t=16),e<0?e=0:e>3&&(e=3),this.orderData+="1d286b040031410000",this.orderData+="1d286b03003143"+jt(t,1),this.orderData+="1d286b03003145"+jt(e+48,1),this.orderData+="1d286b"+jt(r+3,2)+"315030";for(var i=0;i<r;i++)this.orderData+=jt(n.charCodeAt(i),1);this.orderData+="1d286b0300315130"}},Ot.prototype.appendImage=function(t,e){var n,r,i=t.width,o=t.height;n=Tt(t,i,o),r="diffuse"==e?Et(n,i,o):kt(n,i,o),i=i+7>>3,this.orderData+="1d763000",this.orderData+=jt(i,2),this.orderData+=jt(o,2);for(var a=0;a<r.length;a++)this.orderData+=jt(255&r[a],1)},Ot.prototype.enterPageMode=function(){this.orderData+="1b4c"},Ot.prototype.setPrintAreaInPageMode=function(t,e,n,r){this.orderData+="1b57",this.orderData+=jt(t,2),this.orderData+=jt(e,2),this.orderData+=jt(n,2),this.orderData+=jt(r,2)},Ot.prototype.setPrintDirectionInPageMode=function(t){t>=0&&t<=3&&(this.orderData+="1b54"+jt(t,1))},Ot.prototype.setAbsolutePrintPositionInPageMode=function(t){t>=0&&t<=65535&&(this.orderData+="1d24"+jt(t,2))},Ot.prototype.setRelativePrintPositionInPageMode=function(t){t>=-32768&&t<=32767&&(this.orderData+="1d5c"+jt(t,2))},Ot.prototype.printAndExitPageMode=function(){this.orderData+="0c"},Ot.prototype.printInPageMode=function(){this.orderData+="1b0c"},Ot.prototype.clearInPageMode=function(){this.orderData+="18"},Ot.prototype.exitPageMode=function(){this.orderData+="1b53"};var Pt=Ot;function It(t){return(It="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)}function Ft(){
32
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
33
+ Ft=function t(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function t(e,n,r){return e[n]=r}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new T(r||[]);return i(a,"_invoke",{value:C(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",g="completed",y={};function v(){}function m(){}function b(){}var x={};l(x,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(P([])));j&&j!==n&&r.call(j,a)&&(x=j);var w=b.prototype=v.prototype=Object.create(x);function M(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,a,c){var s=h(t[i],t,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==It(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function t(r,i){function a(){return new e((function(t,e){n(r,i,t,e)}))}return o=o?o.then(a,a):a()}})}function C(e,n,r){var i=f;return function(o,a){if(i===d)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var c=r.delegate;if(c){var s=A(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=d;var l=h(e,n,r);if("normal"===l.type){if(i=r.done?g:p,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=g,r.method="throw",r.arg=l.arg)}}}function A(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(It(e)+" is not iterable")}return m.prototype=b,i(w,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},M(S.prototype),l(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(w),l(w,s,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function e(n){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!n)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function e(n){if(this.done)throw n;var i=this;function o(e,r){return s.type="throw",s.arg=n,i.next=e,r&&(i.method="next",i.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],s=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),u=r.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function t(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=n,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(c)},complete:function t(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),y},finish:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var o=i.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function e(n,r,i){return this.delegate={iterator:P(n),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}function Lt(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function Bt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Lt(o,r,i,a,c,"next",t)}function c(t){Lt(o,r,i,a,c,"throw",t)}a(void 0)}))}}var Dt=function t(e){e.setAlignment(yt),e.appendText("------------------------------------------------\n")},Rt=function(){var t=Bt(Ft().mark((function t(e,n,r){var i,o,a;return Ft().wrap((function t(c){for(;;)switch(c.prev=c.next){case 0:return i=new Pt(576),o=r.title,i.clear(),i.lineFeed(1),i.setPrintModes(!1,!1,!1),i.setAlignment(vt),i.appendText("\u6253\u5370\u6d4b\u8bd5\n"),Dt(i),i.setAlignment(yt),i.appendText("Order time: 2023-10-19 14:15:50\n"),i.appendText("Order number\n"),i.appendText("D3012"),Dt(i),i.setColumnWidths(St(150,yt),St(426,yt)),i.printInColumns("Number","Name"),i.setPrintModes(!0,!0,!0),i.printInColumns("1 x","\u6211\u662f\u5f88\u957f\u7684\u5546\u54c1\u540d\u79f0\u6211\u662f\u5f88\u957f\u7684\u5546\u54c1\u540d\u79f0\u6211\u662f\u5f88\u957f\u7684\u5546\u54c1\u540d\u79f0\u6211\u662f\u5f88\u957f\u7684\u5546\u54c1\u540d\u79f0"),i.setPrintModes(!1,!1,!1),Dt(i),i.lineFeed(4),i.cutPaper(!1),i.printAndExitPageMode(),c.next=24,i.print(e,n,1);case 24:return a=c.sent,c.abrupt("return",a);case 26:case"end":return c.stop()}}),t)})));return function e(n,r,i){return t.apply(this,arguments)}}(),_t=n(3),Nt=n(70);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)}function Yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(n),!0).forEach((function(e){Ht(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ht(t,e,n){return(e=Vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vt(t){var e=Wt(t,"string");return"symbol"==zt(e)?e:String(e)}function Wt(t,e){if("object"!=zt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Xt(t,e){return Zt(t)||Kt(t,e)||qt(t,e)||$t()}function $t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qt(t,e){if(t){if("string"==typeof t)return Ut(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ut(t,e):void 0}}function Ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Kt(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}function Zt(t){if(Array.isArray(t))return t}var Qt=function t(e){var n=e.namespace,r=void 0===n?"state":n,i=e.state,o=e.reducers,a=void 0===o?{}:o,c=e.effects,s=void 0===c?{}:c,l=Object(_t.createContext)({}),u;return{Context:l,Provider:function t(e){var n;return Object(_t.forwardRef)((function(t,n){var o=Object(_t.useRef)(),c,u=Xt(Object(_t.useReducer)((function(t,e){var n=e.type,r=e.payload;return a[n]&&a[n](t,r)||t}),i),2),h=u[0],f=u[1];o.current=h;var p=Object(_t.useCallback)((function(t){var e=t.type,n=t.payload;s[e]?s[e].call(null,o.current,n,f):a[e]&&f({type:e,payload:n})}),[]),d=Gt(Gt({},t),{},Ht(Ht({},r,h),"dispatch",p)),g=null;return d.forwardedRef&&(g=d.forwardedRef,delete d.forwardedRef),Object(Nt.jsx)(l.Provider,{value:Ht(Ht({},r,h),"dispatch",p),children:Object(Nt.jsx)(e,Gt(Gt({},d),{},{ref:n}))})}))}}},Jt=!1,te=!1,ee,ne,re;function ie(t,e){if(window.WebViewJavascriptBridge)t(window.WebViewJavascriptBridge);else if(e(),window.WVJBCallbacks)window.WVJBCallbacks.push(t);else{window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement&&document.documentElement.appendChild(n),setTimeout((function(){try{document.documentElement&&document.documentElement.removeChild(n)}catch(t){console.log(t)}}),0)}}function oe(t){window._jsBridge?t(window._jsBridge):document.addEventListener("WebViewJavascriptBridgeReady",(function(e){var n=e.bridge;window._jsBridge=n,n&&(n.init((function(t,e){e&&e("init responseCallback")})),t(n))}),!1)}function ae(t,e){var n;return(t||["webPrint"]).includes(e)}function ce(t){return re||(re={callDeviceApi:function e(n){var r=n.apiName,i=n.callback,o=n.params,a=void 0===o?{}:o,c=n.onError,s=function t(e){var n=e;try{n=JSON.parse(e)}catch(t){console.log("error ".concat(r),t)}(n.code||0===n.code)&&(n.code="".concat(n.code));for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];i.apply(void 0,[n].concat(a))};if("iphone"===t){var l;if(!ae(null===(l=ne)||void 0===l?void 0:l.apiNames,r))return void(null==c||c());ne.callHandler(r,a,s,(function(t){console.log(t,"--- \u8c03\u7528ios api\u62a5\u9519\uff1a",r),c&&(null==c||c(t))}))}else if("android"===t){var u,h;if(!ae(null===(u=ee)||void 0===u?void 0:u.apiNames,r))return void(null==c||c());s(ee.callHandler(r,JSON.stringify(a)))}else null==c||c(),console.log("--- \u6ca1\u83b7\u53d6\u5230js bridge ---")},calledByDevice:function e(n){var r=n.apiName,i=n.callback;"iphone"===t?ne.registerHandler(r,i):"android"===t&&ee.registerHandler(r,i)}})}function se(t){return new Promise((function(e,n){var r;if(!!navigator.userAgent.includes("jsBridge")||t)if(tt()&&!te)ie((function(t){te=!0,ne=t;var n=ce("iphone");e(n)}),n);else if(tt()&&te){var i=ce("iphone");e(i)}else if(J()&&!Jt)oe((function(t){ee=t,Jt=!0;var n=ce("android");e(n)}));else if(J()&&Jt){var o=ce("android");e(o)}else n();else n()}))}function le(t,e,n){se(!0).then((function(r){r.callDeviceApi({apiName:"webPrint",params:t,callback:function t(){e&&e.apply(void 0,arguments)},onError:n})}))}function ue(t,e,n){se().then((function(r){r.callDeviceApi({apiName:"dataManager",params:t,callback:function t(){e&&e.apply(void 0,arguments)},onError:n})})).catch(n)}var he,fe,pe={ali:function t(e,n){if(!e||/^\s+$/.test(e))return"";if(/x-oss-process=/.test(e))return e;var r=2;return n=n||750,e.indexOf("?")>-1?e+="&":e+="?",e+="x-oss-process=image/resize,w_"+parseInt(2*n+"")+",image/format,webp/interlace,1,image/quality,Q_60/sharpen,90"},getImageSize:function t(e){var n={width:375,height:375,ratio:1,widthRatio:1,success:!1,originRatio:1};if("string"!=typeof e)return n;try{var r=e.split("__");if(r[1]){var i=r[1].split("_"),o=Number(i[0])||375,a=Number(i[1])||375;n.width=o,n.height=a,n.success=!0,n.ratio=Number(a/o),n.widthRatio=Number((o/a).toFixed(2)),n.originRatio=Number(a/o)}return n}catch(t){return n}}};function de(t){return(de="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)}function ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t,e,n){return(e=me(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function me(t){var e=be(t,"string");return"symbol"==de(e)?e:String(e)}function be(t,e){if("object"!=de(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var xe={en:{},"zh-CN":{},"zh-HK":{}},Oe="en",je={},we=function t(e){var n;return{en:"en","zh-CN":"zh-CN","zh-HK":"zh-HK","zh-TW":"zh-HK","en-US":"en"}[e]||"en"},Me,Se,Ce={init:function t(e,n){Oe=we(n);var r={};for(var i in xe)r[i]=ye(ye({},xe[i]),e[i]);je=(xe=r)[Oe],console.log("\u591a\u8bed\u8a00\u6ce8\u5165\u6210\u529f, \u5f53\u524d\u8bed\u8a00\u4e3a:"+Oe)},getText:function t(e){return je[e]||e},locale:Oe,localeMap:je,localeMaps:xe,formatLocale:we};function Ae(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ee(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function t(){};return{s:i,n:function e(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,c;return{s:function e(){n=n.call(t)},n:function t(){var e=n.next();return o=e.done,e},e:function t(e){a=!0,c=e},f:function t(){try{o||null==n.return||n.return()}finally{if(a)throw c}}}}function Ee(t,e){if(t){if("string"==typeof t)return ke(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(t,e):void 0}}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Te=function t(e,n){var r=new Set,i=[],o=Ae(e),a;try{for(o.s();!(a=o.n()).done;){var c=a.value,s=c[n];r.has(s)||(r.add(s),i.push(c))}}catch(t){o.e(t)}finally{o.f()}return i};function Pe(t){return(Pe="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)}function Ie(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(n),!0).forEach((function(e){Le(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Le(t,e,n){return(e=Be(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Be(t){var e=De(t,"string");return"symbol"==Pe(e)?e:String(e)}function De(t,e){if("object"!=Pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}globalThis.pisellUtilsConfig={env:""};var Re=function t(e){globalThis.pisellUtilsConfig=Fe(Fe({},globalThis.pisellUtilsConfig||{}),e||{}),console.log("PisellUtilsConfig_set>>>>",e,globalThis)},_e=function t(){return console.log("PisellUtilsConfig_get>>>>",globalThis),globalThis.pisellUtilsConfig||{}}}])}));