Core code of ChartWerk project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
69 KiB

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=214)}([function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(94),i=n(55);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(57),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(29),i=n(86),o=n(14);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(7),i=n(4);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(12),i=n(96),o=n(97),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},function(t,e,n){var r=n(104),i=n(107);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(34),i=n(38);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(123);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(29),i=n(81),o=n(14);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(3).Symbol;t.exports=r},function(t,e,n){var r=n(63),i=n(134),o=n(9);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(61),i=n(40);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var u=e[a],f=o?o(n[u],t[u],u,n,t):void 0;void 0===f&&(f=t[u]),s?i(n,u,f):r(n,u,f)}return n}},function(t,e,n){var r=n(63),i=n(137),o=n(9);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(39);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(8)(Object,"create");t.exports=r},function(t,e,n){var r=n(112),i=n(113),o=n(114),s=n(115),a=n(116);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(15);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(118);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(122),i=n(4),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(6);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(20),i=n(124),o=n(125),s=n(126),a=n(127),c=n(128);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},function(t,e,n){(function(t){var r=n(3),i=n(132),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c}).call(this,n(41)(t))},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(143),i=n(35),o=n(144),s=n(145),a=n(146),c=n(7),u=n(58),f=u(r),l=u(i),h=u(o),p=u(s),v=u(a),d=c;(r&&"[object DataView]"!=d(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=d(new i)||o&&"[object Promise]"!=d(o.resolve())||s&&"[object Set]"!=d(new s)||a&&"[object WeakMap]"!=d(new a))&&(d=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case v:return"[object WeakMap]"}return e}),t.exports=d},function(t,e,n){var r=n(6);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===c?a==a&&!r(a):n(a,c)))var c=a,u=s}return u}},function(t,e,n){var r=n(29),i=n(50),o=n(81);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},function(t,e,n){var r=n(29),i=n(86),o=n(50);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},function(t,e,n){var r=n(0),i=n(6),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(101),i=n(117),o=n(119),s=n(120),a=n(121);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(7),i=n(2);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(8)(n(3),"Map");t.exports=r},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(56),i=n(24);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(62);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(133),i=n(27),o=n(43),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},function(t,e,n){(function(t){var r=n(57),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n(41)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(140),i=n(67),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(64)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(71);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(14),i=n(160),o=n(161);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(182),i=n(195),o=n(14),s=n(0),a=n(198);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},function(t,e,n){var r=n(75),i=n(171)((function(t,e,n,i){r(t,e,n,i)}));t.exports=i},function(t,e,n){var r=n(74),i=n(49),o=n(165),s=n(51),a=i((function(t){return t.push(void 0,o),r(s,void 0,t)}));t.exports=a},function(t,e){var n=Array.prototype.reverse;t.exports=function(t){return null==t?t:n.call(t)}},function(t,e,n){var r=n(203),i=n(205),o=n(49),s=n(79),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},function(t,e,n){var r=n(56),i=n(23),o=n(0),s=n(37),a=n(38),c=n(24);t.exports=function(t,e,n){for(var u=-1,f=(e=r(e,t)).length,l=!1;++u<f;){var h=c(e[u]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++u!=f?l:!!(f=null==t?0:t.length)&&a(f)&&s(h,f)&&(o(t)||i(t))}},function(t,e,n){var r=n(0),i=n(32),o=n(98),s=n(59);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(95))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(60);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(12),i=n(36),o=n(0),s=n(6),a=r?r.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(40),i=n(15),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(8),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(131),i=n(23),o=n(0),s=n(26),a=n(37),c=n(42),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&s(t),h=!n&&!f&&!l&&c(t),p=n||f||l||h,v=p?r(t.length,String):[],d=v.length;for(var y in t)!e&&!u.call(t,y)||p&&("length"==y||l&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,d))||v.push(y);return v}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(t){var r=n(3),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(41)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(46),i=n(47),o=n(45),s=n(67),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s;t.exports=a},function(t,e,n){var r=n(70),i=n(45),o=n(13);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(46),i=n(0);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e,n){var r=n(3).Uint8Array;t.exports=r},function(t,e,n){var r=n(48);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(152),i=n(47),o=n(44);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(25),i=n(76),o=n(77),s=n(167),a=n(2),c=n(17),u=n(78);t.exports=function t(e,n,f,l,h){e!==n&&o(n,(function(o,c){if(h||(h=new r),a(o))s(e,n,c,f,t,l,h);else{var p=l?l(u(e,c),o,c+"",e,n,h):void 0;void 0===p&&(p=o),i(e,c,p)}}),c)}},function(t,e,n){var r=n(40),i=n(15);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},function(t,e,n){var r=n(166)();t.exports=r},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var r=n(15),i=n(9),o=n(37),s=n(2);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(2),i=n(6),o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):s.test(t)?NaN:+t}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){var r=n(184),i=n(4);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},function(t,e,n){var r=n(185),i=n(188),o=n(189);t.exports=function(t,e,n,s,a,c){var u=1&n,f=t.length,l=e.length;if(f!=l&&!(u&&l>f))return!1;var h=c.get(t),p=c.get(e);if(h&&p)return h==e&&p==t;var v=-1,d=!0,y=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++v<f;){var b=t[v],x=e[v];if(s)var g=u?s(x,b,v,e,t,c):s(b,x,v,t,e,c);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||a(b,t,n,s,c)))return y.push(e)}))){d=!1;break}}else if(b!==x&&!a(b,x,n,s,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},function(t,e,n){var r=n(2);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(157),i=n(158);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o,s=0,a={injectType:"lazyStyleTag",insert:"head",singleton:!1},c={};c.locals=i.locals||{},c.use=function(){return s++||(o=r(i,a)),c},c.unuse=function(){s>0&&!--s&&(o(),o=null)},t.exports=c},function(t,e,n){var r=n(172),i=n(9),o=n(176),s=n(177),a=n(179),c=Math.max;t.exports=function(t,e,n,u){t=i(t)?t:a(t),n=n&&!u?s(n):0;var f=t.length;return n<0&&(n=c(f+n,0)),o(t)?n<=f&&t.indexOf(e,n)>-1:!!f&&r(t,e,n)>-1}},function(t,e,n){t.exports=n(181)},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(201)((function(t,e){return t+e}),0);t.exports=r},function(t,e,n){var r=n(59);t.exports=function(){var t=arguments,e=r(t[0]);return t.length<3?e:e.replace(t[1],t[2])}},function(t,e,n){var r=n(2),i=n(213),o=n(80),s=Math.max,a=Math.min;t.exports=function(t,e,n){var c,u,f,l,h,p,v=0,d=!1,y=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(e){var n=c,r=u;return c=u=void 0,v=e,l=t.apply(r,n)}function g(t){return v=t,h=setTimeout(O,e),d?x(t):l}function m(t){var n=t-p;return void 0===p||n>=e||n<0||y&&t-v>=f}function O(){var t=i();if(m(t))return j(t);h=setTimeout(O,function(t){var n=e-(t-p);return y?a(n,f-(t-v)):n}(t))}function j(t){return h=void 0,b&&c?x(t):(c=u=void 0,l)}function A(){var t=i(),n=m(t);if(c=arguments,u=this,p=t,n){if(void 0===h)return g(p);if(y)return clearTimeout(h),h=setTimeout(O,e),x(p)}return void 0===h&&(h=setTimeout(O,e)),l}return e=o(e)||0,r(n)&&(d=!!n.leading,f=(y="maxWait"in n)?s(o(n.maxWait)||0,e):f,b="trailing"in n?!!n.trailing:b),A.cancel=function(){void 0!==h&&clearTimeout(h),v=0,c=p=u=h=void 0},A.flush=function(){return void 0===h?l:j(i())},A}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},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,n){var r=n(12),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(99),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},function(t,e,n){var r=n(100);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(33);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(102),i=n(20),o=n(35);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(103),i=n(108),o=n(109),s=n(110),a=n(111);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(19);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(34),i=n(105),o=n(2),s=n(58),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,l=u.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},function(t,e,n){var r,i=n(106),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(3)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(19),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(19),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(19);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(21),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(21);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(21);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(21);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(22);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(22);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(22);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(22);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(7),i=n(4);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(25),i=n(129),o=n(61),s=n(130),a=n(136),c=n(65),u=n(66),f=n(139),l=n(141),h=n(69),p=n(142),v=n(28),d=n(147),y=n(148),b=n(73),x=n(0),g=n(26),m=n(153),O=n(2),j=n(155),A=n(13),_=n(17),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,t.exports=function t(e,n,C,E,w,k){var T,R=1&n,F=2&n,M=4&n;if(C&&(T=w?C(e,E,w,k):C(e)),void 0!==T)return T;if(!O(e))return e;var I=x(e);if(I){if(T=d(e),!R)return u(e,T)}else{var P=v(e),z="[object Function]"==P||"[object GeneratorFunction]"==P;if(g(e))return c(e,R);if("[object Object]"==P||"[object Arguments]"==P||z&&!w){if(T=F||z?{}:b(e),!R)return F?l(e,a(T,e)):f(e,s(T,e))}else{if(!S[P])return w?e:{};T=y(e,P,R)}}k||(k=new r);var V=k.get(e);if(V)return V;k.set(e,T),j(e)?e.forEach((function(r){T.add(t(r,n,C,r,e,k))})):m(e)&&e.forEach((function(r,i){T.set(i,t(r,n,C,i,e,k))}));var L=I?void 0:(M?F?p:h:F?_:A)(e);return i(L||e,(function(r,i){L&&(r=e[i=r]),o(T,i,t(r,n,C,i,e,k))})),T}},function(t,e,n){var r=n(20);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(20),i=n(35),o=n(33);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(16),i=n(13);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(7),i=n(38),o=n(4),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},function(t,e,n){var r=n(44),i=n(135),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(64)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(16),i=n(17);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(2),i=n(44),o=n(138),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(16),i=n(45);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},function(t,e,n){var r=n(16),i=n(68);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(70),i=n(68),o=n(17);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(8)(n(3),"DataView");t.exports=r},function(t,e,n){var r=n(8)(n(3),"Promise");t.exports=r},function(t,e,n){var r=n(8)(n(3),"Set");t.exports=r},function(t,e,n){var r=n(8)(n(3),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(48),i=n(149),o=n(150),s=n(151),a=n(72);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Set]":return new c;case"[object Symbol]":return s(t)}}},function(t,e,n){var r=n(48);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(12),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(2),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var r=n(154),i=n(27),o=n(43),s=o&&o.isMap,a=s?i(s):r;t.exports=a},function(t,e,n){var r=n(28),i=n(4);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(156),i=n(27),o=n(43),s=o&&o.isSet,a=s?i(s):r;t.exports=a},function(t,e,n){var r=n(28),i=n(4);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],c=e.base?o[0]+e.base:o[0],u=n[c]||0,f="".concat(c," ").concat(u);n[c]=u+1;var l=a(f),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==l?(s[l].references++,s[l].updater(h)):s.push({identifier:f,updater:y(h,e),references:1}),r.push(f)}return r}function u(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var f,l=(f=[],function(t,e){return f[t]=e,f.filter(Boolean).join("\n")});function h(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=l(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function p(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var v=null,d=0;function y(t,e){var n,r,i;if(e.singleton){var o=d++;n=v||(v=u(e)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else n=u(e),r=p.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=c(t,e),u=0;u<n.length;u++){var f=a(n[u]);0===s[f].references&&(s[f].updater(),s.splice(f,1))}n=o}}}},function(t,e,n){(e=n(159)(!1)).push([t.i,".grid path {\n stroke-width: 0;\n}\n\n.grid line {\n stroke: lightgrey;\n stroke-opacity: 0.7;\n shape-rendering: crispEdges;\n}\n",""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var s,a,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},function(t,e,n){var r=n(74),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),c=Array(a);++s<a;)c[s]=o[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=o[s];return u[e]=n(c),r(t,this,u)}}},function(t,e,n){var r=n(162),i=n(164)(r);t.exports=i},function(t,e,n){var r=n(163),i=n(62),o=n(14),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(75),i=n(2);t.exports=function t(e,n,o,s,a,c){return i(e)&&i(n)&&(c.set(n,e),r(e,n,void 0,t,c),c.delete(n)),e}},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}},function(t,e,n){var r=n(76),i=n(65),o=n(72),s=n(66),a=n(73),c=n(23),u=n(0),f=n(168),l=n(26),h=n(34),p=n(2),v=n(169),d=n(42),y=n(78),b=n(170);t.exports=function(t,e,n,x,g,m,O){var j=y(t,n),A=y(e,n),_=O.get(A);if(_)r(t,n,_);else{var S=m?m(j,A,n+"",t,e,O):void 0,C=void 0===S;if(C){var E=u(A),w=!E&&l(A),k=!E&&!w&&d(A);S=A,E||w||k?u(j)?S=j:f(j)?S=s(j):w?(C=!1,S=i(A,!0)):k?(C=!1,S=o(A,!0)):S=[]:v(A)||c(A)?(S=j,c(j)?S=b(j):p(j)&&!h(j)||(S=a(A))):C=!1}C&&(O.set(A,S),g(S,A,x,m,O),O.delete(A)),r(t,n,S)}}},function(t,e,n){var r=n(9),i=n(4);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(7),i=n(47),o=n(4),s=Function.prototype,a=Object.prototype,c=s.toString,u=a.hasOwnProperty,f=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(t,e,n){var r=n(16),i=n(17);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(49),i=n(79);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,s)}return e}))}},function(t,e,n){var r=n(173),i=n(174),o=n(175);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(7),i=n(0),o=n(4);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,e,n){var r=n(178);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(80);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(180),i=n(13);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(36);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,n){var r=n(183),i=n(194),o=n(85);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(25),i=n(82);t.exports=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var f=(u=n[s])[0],l=t[f],h=u[1];if(c&&u[2]){if(void 0===l&&!(f in t))return!1}else{var p=new r;if(o)var v=o(l,h,f,t,e,p);if(!(void 0===v?i(h,l,3,o,p):v))return!1}}return!0}},function(t,e,n){var r=n(25),i=n(83),o=n(190),s=n(193),a=n(28),c=n(0),u=n(26),f=n(42),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,v,d){var y=c(t),b=c(e),x=y?"[object Array]":a(t),g=b?"[object Array]":a(e),m=(x="[object Arguments]"==x?l:x)==l,O=(g="[object Arguments]"==g?l:g)==l,j=x==g;if(j&&u(t)){if(!u(e))return!1;y=!0,m=!1}if(j&&!m)return d||(d=new r),y||f(t)?i(t,e,n,p,v,d):o(t,e,x,n,p,v,d);if(!(1&n)){var A=m&&h.call(t,"__wrapped__"),_=O&&h.call(e,"__wrapped__");if(A||_){var S=A?t.value():t,C=_?e.value():e;return d||(d=new r),v(S,C,n,p,d)}}return!!j&&(d||(d=new r),s(t,e,n,p,v,d))}},function(t,e,n){var r=n(33),i=n(186),o=n(187);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(12),i=n(71),o=n(15),s=n(83),a=n(191),c=n(192),u=r?r.prototype:void 0,f=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,l,h){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||!l(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 p=a;case"[object Set]":var v=1&r;if(p||(p=c),t.size!=e.size&&!v)return!1;var d=h.get(t);if(d)return d==e;r|=2,h.set(t,e);var y=s(p(t),p(e),r,u,l,h);return h.delete(t),y;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(69),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var c=1&n,u=r(t),f=u.length;if(f!=r(e).length&&!c)return!1;for(var l=f;l--;){var h=u[l];if(!(c?h in e:i.call(e,h)))return!1}var p=a.get(t),v=a.get(e);if(p&&v)return p==e&&v==t;var d=!0;a.set(t,e),a.set(e,t);for(var y=c;++l<f;){var b=t[h=u[l]],x=e[h];if(o)var g=c?o(x,b,h,e,t,a):o(b,x,h,t,e,a);if(!(void 0===g?b===x||s(b,x,n,o,a):g)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var m=t.constructor,O=e.constructor;m==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof O&&O instanceof O||(d=!1)}return a.delete(t),a.delete(e),d}},function(t,e,n){var r=n(84),i=n(13);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},function(t,e,n){var r=n(82),i=n(18),o=n(196),s=n(32),a=n(84),c=n(85),u=n(24);t.exports=function(t,e){return s(t)&&a(e)?c(u(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},function(t,e,n){var r=n(197),i=n(55);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(199),i=n(200),o=n(32),s=n(24);t.exports=function(t){return o(t)?r(s(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(39);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(202),i=n(60);t.exports=function(t,e){return function(n,o){var s;if(void 0===n&&void 0===o)return e;if(void 0!==n&&(s=n),void 0!==o){if(void 0===s)return o;"string"==typeof n||"string"==typeof o?(n=i(n),o=i(o)):(n=r(n),o=r(o)),s=t(n,o)}return s}}},function(t,e,n){var r=n(6);t.exports=function(t){return"number"==typeof t?t:r(t)?NaN:+t}},function(t,e,n){var r=n(46),i=n(204);t.exports=function t(e,n,o,s,a){var c=-1,u=e.length;for(o||(o=i),a||(a=[]);++c<u;){var f=e[c];n>0&&o(f)?n>1?t(f,n-1,o,s,a):r(a,f):s||(a[a.length]=f)}return a}},function(t,e,n){var r=n(12),i=n(23),o=n(0),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},function(t,e,n){var r=n(36),i=n(39),o=n(50),s=n(206),a=n(210),c=n(27),u=n(211),f=n(14),l=n(0);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return l(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[f];var h=-1;e=r(e,c(o));var p=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return a(p,(function(t,e){return u(t,e,n)}))}},function(t,e,n){var r=n(207),i=n(9);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){var r=n(208),i=n(209)(r);t.exports=i},function(t,e,n){var r=n(77),i=n(13);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(9);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(212);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,c=n.length;++i<a;){var u=r(o[i],s[i]);if(u)return i>=c?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,c=null===e,u=e==e,f=r(e);if(!c&&!f&&!s&&t>e||s&&a&&u&&!c&&!f||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!f&&t<e||f&&n&&o&&!i&&!s||c&&n&&o||!a&&o||!u)return-1}return 0}},function(t,e,n){var r=n(3);t.exports=function(){return r.Date.now()}},function(t,e,n){"use strict";n.r(e),n.d(e,"ChartwerkPod",(function(){return nt})),n.d(e,"VueChartwerkPodMixin",(function(){return d})),n.d(e,"TickOrientation",(function(){return r})),n.d(e,"TimeFormat",(function(){return i})),n.d(e,"BrushOrientation",(function(){return o})),n.d(e,"PanOrientation",(function(){return s})),n.d(e,"AxisFormat",(function(){return c})),n.d(e,"yAxisOrientation",(function(){return h})),n.d(e,"CrosshairOrientation",(function(){return u})),n.d(e,"ScrollPanOrientation",(function(){return a})),n.d(e,"KeyEvent",(function(){return f})),n.d(e,"palette",(function(){return _}));var r,i,o,s,a,c,u,f,l,h,p=n(1),v=n.n(p),d={props:{id:{type:String,required:!0},series:{type:Array,required:!1,default:function(){return[]}},options:{type:Object,required:!1,default:function(){return{}}}},watch:{id:function(){this.renderChart()},series:function(){this.renderChart()},options:function(){this.renderChart()}},mounted:function(){this.renderChart()},destroyed:function(){this.pod.removeEventListeners(),this.pod=void 0},methods:{render:function(){},renderSharedCrosshair:function(t){},hideSharedCrosshair:function(){},onPanningRescale:function(t){this.pod.rescaleMetricAndAxis(t)},renderChart:function(){this.appendEvents(),this.render()},appendEvents:function(){void 0===this.options.eventsCallbacks&&(this.options.eventsCallbacks={}),v()(this.$listeners,"zoomIn")&&(this.options.eventsCallbacks.zoomIn=this.zoomIn.bind(this)),v()(this.$listeners,"zoomOut")&&(this.options.eventsCallbacks.zoomOut=this.zoomOut.bind(this)),v()(this.$listeners,"mouseMove")&&(this.options.eventsCallbacks.mouseMove=this.mouseMove.bind(this)),v()(this.$listeners,"mouseOut")&&(this.options.eventsCallbacks.mouseOut=this.mouseOut.bind(this)),v()(this.$listeners,"onLegendClick")&&(this.options.eventsCallbacks.onLegendClick=this.onLegendClick.bind(this)),v()(this.$listeners,"panningEnd")&&(this.options.eventsCallbacks.panningEnd=this.panningEnd.bind(this)),v()(this.$listeners,"panning")&&(this.options.eventsCallbacks.panning=this.panning.bind(this)),v()(this.$listeners,"contextMenu")&&(this.options.eventsCallbacks.contextMenu=this.contextMenu.bind(this)),v()(this.$listeners,"sharedCrosshairMove")&&(this.options.eventsCallbacks.sharedCrosshairMove=this.sharedCrosshairMove.bind(this)),v()(this.$listeners,"renderEnd")&&(this.options.eventsCallbacks.renderEnd=this.renderEnd.bind(this))},zoomIn:function(t){this.$emit("zoomIn",t)},zoomOut:function(t){this.$emit("zoomOut",t)},mouseMove:function(t){this.$emit("mouseMove",t)},mouseOut:function(){this.$emit("mouseOut")},onLegendClick:function(t){this.$emit("onLegendClick",t)},panningEnd:function(t){this.$emit("panningEnd",t)},panning:function(t){this.$emit("panning",t)},contextMenu:function(t){this.$emit("contextMenu",t)},sharedCrosshairMove:function(t){this.$emit("sharedCrosshairMove",t)},renderEnd:function(){this.$emit("renderEnd")}}},y=n(18),b=n.n(y),x=n(10),g=n.n(x),m={x:0,y:0,k:1},O=function(){function t(t){this._xValueRange=void 0,this._yValueRange=void 0,this._y1ValueRange=void 0,this._transform=g()(m),this._xValueRange=b()(t,"axis.x.range"),this._yValueRange=b()(t,"axis.y.range"),this._y1ValueRange=b()(t,"axis.y1.range")}return Object.defineProperty(t.prototype,"xValueRange",{get:function(){return this._xValueRange},set:function(t){this._xValueRange=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yValueRange",{get:function(){return this._yValueRange},set:function(t){this._yValueRange=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1ValueRange",{get:function(){return this._y1ValueRange},set:function(t){this._y1ValueRange=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transform",{get:function(){return this._transform},set:function(t){this._transform.x=void 0!==t.x?t.x:this._transform.x,this._transform.y=void 0!==t.y?t.y:this._transform.y,this._transform.k=void 0!==t.k?t.k:this._transform.k},enumerable:!1,configurable:!0}),t}(),j=n(87),A=n.n(j);!function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.DIAGONAL="diagonal"}(r||(r={})),function(t){t.SECOND="second",t.MINUTE="minute",t.HOUR="hour",t.DAY="day",t.MONTH="month",t.YEAR="year"}(i||(i={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.RECTANGLE="rectangle",t.SQUARE="square"}(o||(o={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.BOTH="both"}(s||(s={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal"}(a||(a={})),function(t){t.TIME="time",t.NUMERIC="numeric",t.STRING="string",t.CUSTOM="custom"}(c||(c={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.BOTH="both"}(u||(u={})),function(t){t.MAIN="main",t.SHIFT="shift"}(f||(f={})),function(t){t.TOP="top",t.BOTTOM="bottom",t.BOTH="both"}(l||(l={})),function(t){t.LEFT="left",t.RIGHT="right",t.BOTH="both"}(h||(h={}));var _=["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"],S=n(52),C=n.n(S),E=n(88),w=n.n(E),k=n(89),T=n.n(k),R=n(90),F=n.n(R),M=n(51),I=n.n(M),P=n(11),z=n.n(P),V=n(30),L=n.n(V),B=n(5),N=n.n(B),U=n(31),D=n.n(U),H=n(91),$=n.n(H),Y=n(92),X=n.n(Y),G=n(53),Z=n.n(G),q=n(54),K=n.n(q),W=n(93),Q=n.n(W),J={top:30,right:20,bottom:20,left:30},tt=[0,1],et={confidence:0,timeInterval:{timeFormat:i.MINUTE},tickFormat:{xAxis:"%H:%M",xTickOrientation:r.HORIZONTAL},zoomEvents:{mouse:{zoom:{isActive:!0,keyEvent:f.MAIN,orientation:o.HORIZONTAL},pan:{isActive:!0,keyEvent:f.SHIFT,orientation:s.HORIZONTAL}},scroll:{zoom:{isActive:!0,keyEvent:f.MAIN},pan:{isActive:!1,keyEvent:f.SHIFT,panStep:50,orientation:a.HORIZONTAL}}},axis:{x:{isActive:!0,ticksCount:4,format:c.TIME},y:{isActive:!0,ticksCount:4,format:c.NUMERIC},y1:{isActive:!1,ticksCount:4,format:c.NUMERIC}},grid:{x:{isActive:!0,ticksCount:5},y:{isActive:!0,ticksCount:5}},crosshair:{orientation:u.VERTICAL,color:"red"},renderTicksfromTimestamps:!1,renderLegend:!0},nt=function(){function t(t,e,n,r){void 0===n&&(n=[]),this.el=e,this.isPanning=!1,this.isBrushing=!1,this.brushStartSelection=null,this.yAxisTicksColors=[],this._clipPathUID="",this.deltaYTransform=0,this.debouncedRender=Q()(this.render.bind(this),100),this._xScale=null,this._yScale=null,this._y1Scale=null,A.a.use();var i=g()(r);C()(i,et),this.options=i,this.series=g()(n),this.d3=t,this.initPodState(),this.d3Node=this.d3.select(this.el),this.addEventListeners()}return t.prototype.addEventListeners=function(){window.addEventListener("resize",this.debouncedRender)},t.prototype.removeEventListeners=function(){window.removeEventListener("resize",this.debouncedRender)},t.prototype.render=function(){this.clearScaleCache(),this.renderSvg(),this.renderAxes(),this.renderGrid(),this.renderClipPath(),this.addEvents(),this.renderCrosshair(),this.renderMetrics(),this.renderLegend(),this.renderYLabel(),this.renderXLabel(),v()(this.options.eventsCallbacks,"renderEnd")&&this.options.eventsCallbacks.renderEnd()},t.prototype.updateData=function(t,e,n){void 0===n&&(n=!0),this.updateSeries(t),this.updateOptions(e),n&&this.render()},t.prototype.updateOptions=function(t){if(void 0!==t){var e=g()(t);C()(e,et),this.options=e}},t.prototype.updateSeries=function(t){if(void 0!==t){var e=g()(t);this.series=e}},t.prototype.initPodState=function(){this.state=new O(this.options)},t.prototype.renderSvg=function(){this.d3Node.select("svg").remove(),this.svg=this.d3Node.append("svg").style("width","100%").style("height","100%").style("backface-visibility","hidden"),this.chartContainer=this.svg.append("g").attr("transform","translate("+this.margin.left+","+this.margin.top+")")},t.prototype.renderGrid=function(){this.chartContainer.selectAll(".grid").remove(),this.options.grid.x.isActive&&this.chartContainer.append("g").attr("transform","translate(0,"+this.height+")").attr("class","grid x-grid").style("pointer-events","none").call(this.d3.axisBottom(this.xScale).ticks(this.options.grid.x.ticksCount).tickSize(-this.height).tickFormat((function(){return""}))),this.options.grid.y.isActive&&this.chartContainer.append("g").attr("class","grid y-grid").style("pointer-events","none").call(this.d3.axisLeft(this.yScale).ticks(this.options.grid.y.ticksCount).tickSize(-this.width).tickFormat((function(){return""}))),this.chartContainer.selectAll(".grid").selectAll(".tick").attr("opacity","0.5"),this.chartContainer.selectAll(".grid").select(".domain").style("pointer-events","none")},t.prototype.renderAxes=function(){this.renderXAxis(),this.renderYAxis(),this.renderY1Axis()},t.prototype.renderXAxis=function(){!1!==this.options.axis.x.isActive&&(this.chartContainer.select("#x-axis-container").remove(),this.xAxisElement=this.chartContainer.append("g").attr("transform","translate(0,"+this.height+")").attr("id","x-axis-container").style("pointer-events","none").call(this.d3.axisBottom(this.xScale).ticks(this.options.axis.x.ticksCount).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.x))),this.chartContainer.select("#x-axis-container").selectAll(".tick").selectAll("text").style("transform",this.xTickTransform))},t.prototype.renderYAxis=function(){var t=this;if(!1!==this.options.axis.y.isActive){this.chartContainer.select("#y-axis-container").remove(),this.yAxisTicksColors=[],this.yAxisElement=this.chartContainer.append("g").attr("id","y-axis-container").style("pointer-events","none").call(this.d3.axisLeft(this.yScale).ticks(this.options.axis.y.ticksCount).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.y)));var e=this.yAxisElement.selectAll(".tick").select("text").nodes();this.yAxisTicksColors.map((function(n,r){void 0!==e&&void 0!==e[r]&&t.d3.select(e[r]).attr("color",n)}))}},t.prototype.renderY1Axis=function(){!1!==this.options.axis.y1.isActive&&(this.chartContainer.select("#y1-axis-container").remove(),this.y1AxisElement=this.chartContainer.append("g").attr("id","y1-axis-container").attr("transform","translate("+this.width+",0)").style("pointer-events","none").call(this.d3.axisRight(this.y1Scale).ticks(4).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.y1))))},t.prototype.renderCrosshair=function(){this.crosshair=this.chartContainer.append("g").attr("id","crosshair-container").style("display","none"),this.options.crosshair.orientation!==u.VERTICAL&&this.options.crosshair.orientation!==u.BOTH||this.crosshair.append("line").attr("class","crosshair-line").attr("id","crosshair-line-x").attr("fill",this.options.crosshair.color).attr("stroke",this.options.crosshair.color).attr("stroke-width","1px").attr("y1",0).attr("y2",this.height).style("pointer-events","none"),this.options.crosshair.orientation!==u.HORIZONTAL&&this.options.crosshair.orientation!==u.BOTH||this.crosshair.append("line").attr("class","crosshair-line").attr("id","crosshair-line-y").attr("fill",this.options.crosshair.color).attr("stroke",this.options.crosshair.color).attr("stroke-width","1px").attr("x1",0).attr("x2",this.width).style("pointer-events","none")},t.prototype.addEvents=function(){var t=this.options.zoomEvents.mouse.pan.keyEvent;!0===this.options.zoomEvents.mouse.pan.isActive&&t===f.MAIN?(this.initPan(),this.initBrush()):(this.initBrush(),this.initPan()),this.chartContainer.on("mouseover",this.onMouseOver.bind(this)).on("mouseout",this.onMouseOut.bind(this)).on("mousemove",this.onMouseMove.bind(this)).on("dblclick.zoom",this.zoomOut.bind(this))},t.prototype.initBrush=function(){if(!1!==this.options.zoomEvents.mouse.zoom.isActive){switch(this.options.zoomEvents.mouse.zoom.orientation){case o.VERTICAL:this.brush=this.d3.brushY();break;case o.HORIZONTAL:this.brush=this.d3.brushX();break;case o.SQUARE:case o.RECTANGLE:this.brush=this.d3.brush();break;default:this.brush=this.d3.brushX()}var t=this.options.zoomEvents.mouse.zoom.keyEvent;this.brush.extent([[0,0],[this.width,this.height]]).handleSize(20).filter(this.filterByKeyEvent(t)).on("start",this.onBrushStart.bind(this)).on("brush",this.onBrush.bind(this)).on("end",this.onBrushEnd.bind(this)),this.chartContainer.call(this.brush)}},t.prototype.filterByKeyEvent=function(t){var e=this;switch(t){case f.MAIN:return function(){return!e.d3.event.shiftKey};case f.SHIFT:return function(){return e.d3.event.shiftKey};default:throw new Error("Unknown type of KeyEvent: "+t)}},t.prototype.isD3EventKeyEqualOption=function(t,e){return!(!t||!t.sourceEvent)&&t.sourceEvent.shiftKey===(e===f.SHIFT)},t.prototype.initPan=function(){if(!1!==this.options.zoomEvents.mouse.pan.isActive||!1!==this.options.zoomEvents.scroll.pan.isActive||!1!==this.options.zoomEvents.scroll.zoom.isActive){!1===this.options.zoomEvents.mouse.zoom.isActive&&(this.customOverlay=this.chartContainer.append("rect").attr("class","custom-overlay").attr("width",this.width).attr("height",this.height).attr("x",0).attr("y",0).attr("pointer-events","all").attr("cursor","crosshair").attr("fill","none")),this.initScaleX=this.xScale.copy(),this.initScaleY=this.yScale.copy(),!0===this.options.axis.y1.isActive&&(this.initScaleY1=this.y1Scale.copy());var t=this.d3.zoom().on("zoom",this.onPanning.bind(this)).on("end",this.onPanningEnd.bind(this));this.chartContainer.call(t)}},t.prototype.renderClipPath=function(){this.clipPath=this.chartContainer.append("defs").append("SVG:clipPath").attr("id",this.rectClipId).append("SVG:rect").attr("width",this.width).attr("height",this.height).attr("x",0).attr("y",0)},t.prototype.renderLegend=function(){var t=this;if(!1!==this.options.renderLegend&&this.series.length>0)for(var e=this.chartContainer.append("g").attr("class","legend-row"),n=function(n){if(w()(r.seriesTargetsWithBounds,r.series[n].target))return"continue";var i=0;null!==e.selectAll("text").node()&&(i=e.node().getBBox().width+25);var o=!1!==r.series[n].visible;e.append("foreignObject").attr("x",i).attr("y",r.legendRowPositionY-12).attr("width",13).attr("height",15).html("<form><input type=checkbox "+(o?"checked":"")+" /></form>").on("click",(function(){t.options.eventsCallbacks.onLegendClick(n)})),e.append("text").attr("x",i+20).attr("y",r.legendRowPositionY).attr("class","metric-legend-"+n).style("font-size","12px").style("fill",r.getSerieColor(n)).text(r.series[n].target).on("click",(function(){t.options.eventsCallbacks.onLegendLabelClick(n)}))},r=this,i=0;i<this.series.length;i++)n(i)},t.prototype.renderYLabel=function(){void 0!==this.options.labelFormat&&void 0!==this.options.labelFormat.yAxis&&this.chartContainer.append("text").attr("y",0-this.margin.left).attr("x",0-this.height/2).attr("dy","1em").attr("class","y-axis-label").attr("transform","rotate(-90)").style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text(this.options.labelFormat.yAxis)},t.prototype.renderXLabel=function(){if(void 0!==this.options.labelFormat&&void 0!==this.options.labelFormat.xAxis){var t=this.height+this.margin.top+this.margin.bottom-35;0===this.series.length&&(t+=20),this.chartContainer.append("text").attr("class","x-axis-label").attr("x",this.width/2).attr("y",t).style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text(this.options.labelFormat.xAxis)}},t.prototype.renderNoDataPointsMessage=function(){this.chartContainer.append("text").attr("class","alert-text").attr("x",this.width/2).attr("y",this.height/2).style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text("No data points")},t.prototype.onPanning=function(){var t=this.d3.event;null!==t.sourceEvent&&void 0!==t.sourceEvent&&(this.rescaleMetricAndAxis(t),void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.panning?this.options.eventsCallbacks.panning({ranges:[this.state.xValueRange,this.state.yValueRange,this.state.y1ValueRange],d3Event:t}):console.log("on panning, but there is no callback"))},t.prototype.rescaleMetricAndAxis=function(t){this.isPanning=!0,this.onMouseOut(),this.onPanningRescale(t);this.clearScaleCache(!1),this.renderYAxis(),this.renderXAxis(),this.chartContainer.select(".metrics-rect").attr("transform","translate("+this.state.transform.x+","+this.state.transform.y+"), scale("+this.state.transform.k+")"),this.chartContainer.selectAll(".metric-el").attr("transform","translate("+this.state.transform.x+","+this.state.transform.y+"), scale("+this.state.transform.k+")")},t.prototype.onPanningRescale=function(t){var e=t.sourceEvent.type,n=this.options.zoomEvents.scroll.pan,r=this.options.zoomEvents.scroll.zoom;if("wheel"===e){if(!0===n.isActive&&this.isD3EventKeyEqualOption(t,n.keyEvent))return void this.onScrollPanningRescale(t);!0===r.isActive&&this.isD3EventKeyEqualOption(t,r.keyEvent)&&(this.state.transform={k:t.transform.k})}else{if(!this.options.zoomEvents.mouse.pan.isActive)return}var i=this.options.zoomEvents.mouse.pan.orientation;if(i===s.HORIZONTAL||i===s.BOTH){this.state.transform={x:t.transform.x};var o=this.d3.event.transform.rescaleX(this.initScaleX);this.xAxisElement.call(this.d3.axisBottom(this.xScale).scale(o)),this.state.xValueRange=[o.invert(0),o.invert(this.width)]}if(i===s.VERTICAL||i===s.BOTH){this.state.transform={y:t.transform.y};var a=this.d3.event.transform.rescaleY(this.initScaleY);if(this.yAxisElement.call(this.d3.axisLeft(this.yScale).scale(a)),this.state.yValueRange=[a.invert(0),a.invert(this.height)],this.y1AxisElement){var c=this.d3.event.transform.rescaleY(this.initScaleY1);this.y1AxisElement.call(this.d3.axisLeft(this.y1Scale).scale(c)),this.state.y1ValueRange=[c.invert(0),c.invert(this.height)],this.y1AxisElement.selectAll("line").attr("x2",2),this.y1AxisElement.selectAll("text").attr("x",5)}}},t.prototype.onScrollPanningRescale=function(t){var e=this.options.zoomEvents.scroll.pan,n=e.panStep,r=e.orientation;switch(r){case a.HORIZONTAL:var i=Math.sign(t.transform.x),o=this.absXScale.invert(Math.abs(n)),s=this.state.xValueRange;void 0===this.state.xValueRange&&(s=[this.maxValueX,this.minValueX]),this.state.xValueRange=[s[0]+i*o,s[1]+i*o];var c=this.state.transform.x+i*n;this.state.transform={x:c};break;case a.VERTICAL:var u=Math.min(Math.abs(t.sourceEvent.deltaY),.1*this.height),f=Math.sign(t.transform.y);!0===this.options.axis.y.invert&&(f=-f);var l=this.state.yValueRange||[this.maxValue,this.minValue],h=this.absYScale.invert(u);if(this.deltaYTransform=this.deltaYTransform+u,this.deltaYTransform>.9*this.height)return;this.state.yValueRange=[l[0]-f*h,l[1]-f*h];var p=this.state.transform.y+f*u;this.state.transform={y:p};break;default:throw new Error("Unknown type of scroll pan orientation: "+r)}},t.prototype.onPanningEnd=function(){this.isPanning=!1,this.deltaYTransform=0,this.onMouseOut(),void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.panningEnd?this.options.eventsCallbacks.panningEnd([this.state.xValueRange,this.state.yValueRange,this.state.y1ValueRange]):console.log("on panning end, but there is no callback")},t.prototype.onBrush=function(){var t=this.d3.event.selection;if(this.options.zoomEvents.mouse.zoom.orientation===o.SQUARE&&null!==t){var e=this.getSelectionAttrs(t);void 0!==e&&this.chartContainer.select(".selection").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height)}},t.prototype.getSelectionAttrs=function(t){if(null!==this.brushStartSelection&&null!=t){var e=this.brushStartSelection[0],n=this.brushStartSelection[1],r=t[0][0],i=t[1][0],o=t[0][1],s=i-r,a=t[1][1]-o,c=Math.min(s,a);return{x:r===e?e:e-c,y:o===n?n:n-c,width:c,height:c}}},t.prototype.onBrushStart=function(){this.isBrushing;var t=this.d3.event.selection;null!==t&&t.length>0&&(this.brushStartSelection=this.d3.event.selection[0]),this.onMouseOut()},t.prototype.onBrushEnd=function(){var t=this.d3.event.selection;if(this.isBrushing,!(null==t||t.length<2)){var e,n;switch(this.chartContainer.call(this.brush.move,null),this.options.zoomEvents.mouse.zoom.orientation){case o.HORIZONTAL:var r=this.xScale.invert(t[0]),i=this.xScale.invert(t[1]);if(Math.abs(i-r)<this.timeInterval)return;e=[r,i],this.state.xValueRange=e;break;case o.VERTICAL:n=[this.yScale.invert(t[0]),this.yScale.invert(t[1])],this.state.yValueRange=n;break;case o.RECTANGLE:e=[this.xScale.invert(t[0][0]),this.xScale.invert(t[1][0])],n=[this.yScale.invert(t[0][1]),this.yScale.invert(t[1][1])],this.state.xValueRange=e,this.state.yValueRange=n;break;case o.SQUARE:var s=this.getSelectionAttrs(t);if(void 0===s)break;e=[this.xScale.invert(s.x),this.xScale.invert(s.x+s.width)],n=[this.yScale.invert(s.y),this.yScale.invert(s.y+s.height)],this.state.xValueRange=e,this.state.yValueRange=n,this.brushStartSelection=null}void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.zoomIn?this.options.eventsCallbacks.zoomIn([e,n]):console.log("zoom in, but there is no callback")}},t.prototype.zoomOut=function(){if(!0!==this.isOutOfChart()){var t={x:this.xScale.invert(this.width/2),y:this.yScale.invert(this.height/2)};void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.zoomOut?this.options.eventsCallbacks.zoomOut(t):console.log("zoom out, but there is no callback")}},Object.defineProperty(t.prototype,"absXScale",{get:function(){var t=[0,Math.abs(this.maxValueX-this.minValueX)];return this.d3.scaleLinear().domain(t).range([0,this.width])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"absYScale",{get:function(){var t=[0,Math.abs(this.maxValue-this.minValue)];return this.d3.scaleLinear().domain(t).range([0,this.height])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xScale",{get:function(){if(null===this._xScale){var t=this.state.xValueRange||[this.minValueX,this.maxValueX];this._xScale=this.d3.scaleLinear().domain(t).range([0,this.width])}return this._xScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yScale",{get:function(){if(null===this._yScale){var t=this.state.yValueRange||[this.maxValue,this.minValue];t=K()(t),!0===this.options.axis.y.invert&&(t=Z()(t)),this._yScale=this.d3.scaleLinear().domain(t).range([this.height,0])}return this._yScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1Scale",{get:function(){if(this.isSeriesUnavailable||void 0===this.options.axis.y1||!1===this.options.axis.y1.isActive)return null;if(null===this._y1Scale){var t=this.state.y1ValueRange||[this.y1MaxValue,this.y1MinValue];t=K()(t),!0===this.options.axis.y1.invert&&(t=Z()(t)),this._y1Scale=this.d3.scaleLinear().domain(t).range([this.height,0])}return this._y1Scale},enumerable:!1,configurable:!0}),t.prototype.filterSerieByYAxisOrientation=function(t,e){return void 0===t.yOrientation||t.yOrientation===h.BOTH||t.yOrientation===e},Object.defineProperty(t.prototype,"minValue",{get:function(){var t=this;return this.isSeriesUnavailable?tt[0]:void 0!==this.options.axis.y&&void 0!==this.options.axis.y.range?z()(this.options.axis.y.range):z()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,h.LEFT)})).map((function(t){return L()(t.datapoints,(function(t){return t[0]}))[0]})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){var t=this;return this.isSeriesUnavailable?tt[1]:void 0!==this.options.axis.y&&void 0!==this.options.axis.y.range?N()(this.options.axis.y.range):N()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,h.LEFT)})).map((function(t){return D()(t.datapoints,(function(t){return t[0]}))[0]})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1MinValue",{get:function(){var t=this;return this.isSeriesUnavailable||void 0===this.options.axis.y1||!1===this.options.axis.y1.isActive?tt[0]:void 0!==this.options.axis.y1.range?z()(this.options.axis.y1.range):z()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,h.RIGHT)})).map((function(t){return L()(t.datapoints,(function(t){return t[0]}))[0]})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1MaxValue",{get:function(){var t=this;return this.isSeriesUnavailable||void 0===this.options.axis.y1||!1===this.options.axis.y1.isActive?tt[1]:void 0!==this.options.axis.y1&&void 0!==this.options.axis.y1.range?N()(this.options.axis.y1.range):N()(this.series.filter((function(e){return!1!==e.visible&&t.filterSerieByYAxisOrientation(e,h.RIGHT)})).map((function(t){return D()(t.datapoints,(function(t){return t[0]}))[0]})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueX",{get:function(){return this.isSeriesUnavailable?tt[0]:void 0!==this.options.axis.x&&void 0!==this.options.axis.x.range?z()(this.options.axis.x.range):z()(this.series.filter((function(t){return!1!==t.visible})).map((function(t){return L()(t.datapoints,(function(t){return t[1]}))[1]})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueX",{get:function(){return this.isSeriesUnavailable?tt[1]:void 0!==this.options.axis.x&&void 0!==this.options.axis.x.range?N()(this.options.axis.x.range):N()(this.series.filter((function(t){return!1!==t.visible})).map((function(t){return D()(t.datapoints,(function(t){return t[1]}))[1]})))},enumerable:!1,configurable:!0}),t.prototype.getd3TimeRangeEvery=function(t){if(void 0===this.options.timeInterval||void 0===this.options.timeInterval.timeFormat)return this.d3.timeMinute.every(t);switch(this.options.timeInterval.timeFormat){case i.SECOND:return this.d3.utcSecond.every(t);case i.MINUTE:return this.d3.utcMinute.every(t);case i.HOUR:return this.d3.utcHour.every(t);case i.DAY:return this.d3.utcDay.every(t);case i.MONTH:return this.d3.utcMonth.every(t);case i.YEAR:return this.d3.utcYear.every(t);default:return this.d3.utcMinute.every(t)}},Object.defineProperty(t.prototype,"serieTimestampRange",{get:function(){if(0!==this.series.length){var t=T()(this.series[0].datapoints)[1];return(F()(this.series[0].datapoints)[1]-t)/1e3}},enumerable:!1,configurable:!0}),t.prototype.getAxisTicksFormatter=function(t){var e=this;if(0===t.ticksCount)return function(t){return""};switch(t.format){case c.TIME:return this.d3.timeFormat("%m/%d %H:%M");case c.NUMERIC:return function(t){return t};case c.STRING:throw new Error("Not supported AxisFormat type "+t.format+" yet");case c.CUSTOM:return void 0===t.valueFormatter?(console.warn("Value formatter for axis is not defined. Path options.axis.{?}.valueFormatter"),function(t){return t}):function(n,r){return void 0!==t.colorFormatter&&e.yAxisTicksColors.push(t.colorFormatter(n,r)),t.valueFormatter(n,r)};default:throw new Error("Unknown time format for axis: "+t.format)}},Object.defineProperty(t.prototype,"timeInterval",{get:function(){return void 0!==this.series&&this.series.length>0&&this.series[0].datapoints.length>1?this.series[0].datapoints[1][1]-this.series[0].datapoints[0][1]:void 0!==this.options.timeInterval&&void 0!==this.options.timeInterval.count?6e4*this.options.timeInterval.count:6e4},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xTickTransform",{get:function(){if(void 0===this.options.tickFormat||void 0===this.options.tickFormat.xTickOrientation)return"";switch(this.options.tickFormat.xTickOrientation){case r.VERTICAL:return"translate(-10px, 50px) rotate(-90deg)";case r.HORIZONTAL:return"";case r.DIAGONAL:return"translate(-30px, 30px) rotate(-45deg)";default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extraMargin",{get:function(){var t={top:0,right:0,bottom:0,left:0};if(void 0!==this.options.tickFormat&&void 0!==this.options.tickFormat.xTickOrientation)switch(this.options.tickFormat.xTickOrientation){case r.VERTICAL:t.bottom+=80;break;case r.HORIZONTAL:break;case r.DIAGONAL:t.left+=15,t.bottom+=50,t.right+=10}return void 0!==this.options.labelFormat&&(void 0!==this.options.labelFormat.xAxis&&this.options.labelFormat.xAxis.length>0&&(t.bottom+=20),void 0!==this.options.labelFormat.yAxis&&this.options.labelFormat.yAxis.length>0&&(t.left+=20)),this.series.length>0&&(t.bottom+=25),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.d3Node.node().clientWidth-this.margin.left-this.margin.right},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.d3Node.node().clientHeight-this.margin.top-this.margin.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legendRowPositionY",{get:function(){return this.height+this.margin.bottom-5},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"margin",{get:function(){return void 0!==this.options.margin?this.options.margin:I()({},J,this.extraMargin,$.a)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSeriesUnavailable",{get:function(){return void 0===this.series||0===this.series.length||0===N()(this.series.map((function(t){return t.datapoints.length})))},enumerable:!1,configurable:!0}),t.prototype.formatedBound=function(t,e){return X()(t,"$__metric_name",e)},t.prototype.clearScaleCache=function(t){void 0===t&&(t=!0),this._xScale=null,this._yScale=null,this._y1Scale=null,t&&(this.state.xValueRange=void 0,this.state.yValueRange=void 0,this.state.y1ValueRange=void 0,this.state.transform={x:0,y:0,k:1})},t.prototype.getSerieColor=function(t){if(void 0===this.series[t])throw new Error("Can't get color for unexisting serie: "+t+", there are only "+this.series.length+" series");var e=this.series[t].color;return void 0===e&&(e=_[t%_.length]),e},Object.defineProperty(t.prototype,"seriesTargetsWithBounds",{get:function(){var t=this;if(void 0===this.options.bounds||void 0===this.options.bounds.upper||void 0===this.options.bounds.lower)return[];var e=[];return this.series.forEach((function(n){e.push(t.formatedBound(t.options.bounds.upper,n.target)),e.push(t.formatedBound(t.options.bounds.lower,n.target))})),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleSeries",{get:function(){return this.series.filter((function(t){return!1!==t.visible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rectClipId",{get:function(){return 0===this._clipPathUID.length&&(this._clipPathUID=Math.random().toString(36).substr(2,12)),this._clipPathUID},enumerable:!1,configurable:!0}),t.prototype.isOutOfChart=function(){var t=this.d3.mouse(this.chartContainer.node()),e=t[0],n=t[1];return n>this.height+1||n<-1||e>this.width||e<0},t}()}])}));