aboutsummaryrefslogtreecommitdiff
path: root/dist/popup.js
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-02-20 12:16:17 -0500
committerDeterminant <ted.sybil@gmail.com>2019-02-20 12:16:17 -0500
commitf23552831c5f2310a3afa4b16198e06a7283a069 (patch)
treef53df430019d24951f78803c0ebb9bbf5f16b870 /dist/popup.js
parentfbfef737e35ed4943df55e84505640d6eb54c09d (diff)
manage auth by background.js; fix bugs
Diffstat (limited to 'dist/popup.js')
-rw-r--r--dist/popup.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/popup.js b/dist/popup.js
index c383d64..7b421fa 100644
--- a/dist/popup.js
+++ b/dist/popup.js
@@ -14,7 +14,7 @@
object-assign
(c) Sindre Sorhus
@license MIT
-*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))a.call(n,l)&&(s[l]=n[l]);if(r){o=r(n);for(var d=0;d<o.length;d++)i.call(n,o[d])&&(s[o[d]]=n[o[d]])}}return s}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,s=void 0===r?"px":r,u=e.step,l=void 0===u?5:u,d=(0,i.default)(e,["values","unit","step"]);function c(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=o.indexOf(t)+1;return r===o.length?c(e):"@media (min-width:".concat(n[e]).concat(s,") and ")+"(max-width:".concat(n[o[r]]-l/100).concat(s,")")}return(0,a.default)({keys:o,values:n,up:c,down:function(e){var t=o.indexOf(e)+1,r=n[o[t]];if(t===o.length)return c("xs");return"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},d)},t.keys=void 0;var a=r(n(5)),i=r(n(6)),o=["xs","sm","md","lg","xl"];t.keys=o},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(411))},,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(435))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(5));r(n(9)),n(10);var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=(0,a.default)({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r};t.default=i},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(407)),i=function(e){return(0,a.default)("displayName",e)};t.default=i},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var a=r(n(408)),i=function(e,t){return t+"("+(0,a.default)(e)+")"};t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(58));var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=(0,a.default)(e);return n.defaultView||n.parentView||t};t.default=i},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function a(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==s){var u=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=a),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var d=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;d.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return o}),r.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),a=s(n(3)),i=s(n(25)),o=n(259);n(422);function s(e){return e&&e.__esModule?e:{default:e}}var u="unmounted";t.UNMOUNTED=u;var l="exited";t.EXITED=l;var d="entering";t.ENTERING=d;var c="entered";t.ENTERED=c;t.EXITING="exiting";var f=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var a,i=n.transitionGroup,o=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(a=l,r.appearStatus=d):a=c:a=t.unmountOnExit||t.mountOnEnter?u:l,r.state={status:a},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:l}:null},o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==c&&(t=d):n!==d&&n!==c||(t="exiting")}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=r.appear),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===d?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},o.performEnter=function(e,t){var n=this,r=this.props.enter,a=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts();t||r?(this.props.onEnter(e,a),this.safeSetState({status:d},function(){n.props.onEntering(e,a),n.onTransitionEnd(e,i.enter,function(){n.safeSetState({status:c},function(){n.props.onEntered(e,a)})})})):this.safeSetState({status:c},function(){n.props.onEntered(e)})},o.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(e)})})})):this.safeSetState({status:l},function(){t.props.onExited(e)})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var i=a.default.Children.only(n);return a.default.cloneElement(i,r)},r}(a.default.Component);function h(){}f.contextTypes={transitionGroup:r.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var p=(0,o.polyfill)(f);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"};t.default=r},,function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(26))},,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.updatePatterns="updatePatterns",e.getPatterns="getPatterns",e.updateCalendars="updateCalendars",e.getCalendars="getCalendars",e.getCalEvents="getCalEvents",e.updateConfig="updateConfig",e.getConfig="getConfig",e.getGraphData="getGraphData",e.clearCache="clearCache"}(r=t.MsgType||(t.MsgType={}));var a=function(){function e(e,t,n){this.id=e,this.opt=t,this.data=n}return e.prototype.genResp=function(t){return new e(this.id,this.opt,t)},e.prototype.deflate=function(){return{id:this.id,opt:(e=this.opt,r[e]),data:this.data};var e},e.inflate=function(t){return new e(t.id,function(e){switch(e){case"updatePatterns":return r.updatePatterns;case"getPatterns":return r.getPatterns;case"updateCalendars":return r.updateCalendars;case"getCalendars":return r.getCalendars;case"getCalEvents":return r.getCalEvents;case"updateConfig":return r.updateConfig;case"getConfig":return r.getConfig;case"getGraphData":return r.getGraphData;case"clearCache":return r.clearCache;default:console.error("unknown MsgType: "+e)}}(t.opt),t.data)},e}();t.Msg=a;var i=function(){function e(e){var t=chrome.runtime.connect({name:e});this.requestCallback={inFlight:{},ids:[],maxId:0};var n=this.requestCallback;t.onMessage.addListener(function(e){console.log(e);var t=n.inFlight[e.id];console.assert(void 0!==t),n.ids.push(e.id),t(e)}),this.port=t}return e.prototype.sendMsg=function(e){var t,n,r=e.opt,i=e.data,o=this.requestCallback,s=new Promise(function(e){t=e});return n=o.ids.length>0?o.ids.pop():o.maxId++,o.inFlight[n]=t,this.port.postMessage(new a(n,r,i).deflate()),s},e}();t.MsgClient=i},function(e,t,n){"use strict";t.__esModule=!0;var r,a=n(77),i=(r=a)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3);a(n(36)),a(n(37));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t){var n=(0,r.createFactory)(t);return function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},r.prototype.render=function(){return n(this.props)},r}(r.Component)}}},function(e,t,n){"use strict";t.__esModule=!0;t.default=function(e,t){return function(n){return n[e]=t,n}}},function(e,t,n){"use strict";t.__esModule=!0;var r,a=n(77),i=(r=a)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t){var n,r,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var u,l=[],d=!1,c=-1;function f(){d&&u&&(d=!1,u.length?l=u.concat(l):c=-1,l.length&&h())}function h(){if(!d){var e=s(f);d=!0;for(var t=l.length;t;){for(u=l,l=[];++c<t;)u&&u[c].run();c=-1,t=l.length}u=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||d||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t,n){var r=n(232),a="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(68),a=n(234);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[a(t[n++])];return n&&n==i?e:void 0}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(232),a=n(498),i=n(499);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=i,e.exports=o},function(e,t,n){var r=n(500);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(237),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),u=Array(s);++o<s;)u[o]=i[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=i[o];return l[t]=n(u),r(e,this,l)}}},function(e,t,n){var r=n(33),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t){var n=800,r=16,a=Date.now;e.exports=function(e){var t=0,i=0;return function(){var o=a(),s=r-(o-i);if(i=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(69),a=n(23);e.exports=function(e){return a(e)&&r(e)}},function(e,t,n){var r=n(65),a=n(512),i=n(513),o=n(514),s=n(515),u=n(516);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=a,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t,n){var r=n(276),a=n(517),i=n(279),o=1,s=2;e.exports=function(e,t,n,u,l,d){var c=n&o,f=e.length,h=t.length;if(f!=h&&!(c&&h>f))return!1;var p=d.get(e);if(p&&d.get(t))return p==t;var m=-1,_=!0,y=n&s?new r:void 0;for(d.set(e,t),d.set(t,e);++m<f;){var v=e[m],g=t[m];if(u)var b=c?u(g,v,m,t,e,d):u(v,g,m,e,t,d);if(void 0!==b){if(b)continue;_=!1;break}if(y){if(!a(t,function(e,t){if(!i(y,t)&&(v===e||l(v,e,n,u,d)))return y.push(t)})){_=!1;break}}else if(v!==g&&!l(v,g,n,u,d)){_=!1;break}}return d.delete(e),d.delete(t),_}},function(e,t,n){var r=n(19).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(528),a=n(70),i=n(20),o=n(240),s=n(49),u=n(241),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),d=!n&&a(e),c=!n&&!d&&o(e),f=!n&&!d&&!c&&u(e),h=n||d||c||f,p=h?r(e.length,String):[],m=p.length;for(var _ in e)!t&&!l.call(e,_)||h&&("length"==_||c&&("offset"==_||"parent"==_)||f&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,m))||p.push(_);return p}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(33)(n(19),"WeakMap");e.exports=r},function(e,t,n){var r=n(236),a=n(292),i=a?function(e,t){return a.set(e,t),e}:r;e.exports=i},function(e,t,n){var r=n(290),a=r&&new r;e.exports=a},function(e,t,n){var r=n(294),a=n(295),i=n(543),o=n(71),s=n(296),u=n(246),l=n(554),d=n(73),c=n(19),f=1,h=2,p=8,m=16,_=128,y=512;e.exports=function e(t,n,v,g,b,M,k,L,w,x){var Y=n&_,T=n&f,S=n&h,D=n&(p|m),O=n&y,j=S?void 0:o(t);return function f(){for(var h=arguments.length,p=Array(h),m=h;m--;)p[m]=arguments[m];if(D)var _=u(f),y=i(p,_);if(g&&(p=r(p,g,b,D)),M&&(p=a(p,M,k,D)),h-=y,D&&h<x){var P=d(p,_);return s(t,n,e,f.placeholder,v,p,P,L,w,x-h)}var E=T?v:this,C=S?E[t]:t;return h=p.length,L?p=l(p,L):O&&h>1&&p.reverse(),Y&&w<h&&(p.length=w),this&&this!==c&&this instanceof f&&(C=j||o(C)),C.apply(E,p)}}},function(e,t){var n=Math.max;e.exports=function(e,t,r,a){for(var i=-1,o=e.length,s=r.length,u=-1,l=t.length,d=n(o-s,0),c=Array(l+d),f=!a;++u<l;)c[u]=t[u];for(;++i<s;)(f||i<o)&&(c[r[i]]=e[i]);for(;d--;)c[u++]=e[i++];return c}},function(e,t){var n=Math.max;e.exports=function(e,t,r,a){for(var i=-1,o=e.length,s=-1,u=r.length,l=-1,d=t.length,c=n(o-u,0),f=Array(c+d),h=!a;++i<c;)f[i]=e[i];for(var p=i;++l<d;)f[p+l]=t[l];for(;++s<u;)(h||i<o)&&(f[p+r[s]]=e[i++]);return f}},function(e,t,n){var r=n(544),a=n(299),i=n(300),o=1,s=2,u=4,l=8,d=32,c=64;e.exports=function(e,t,n,f,h,p,m,_,y,v){var g=t&l;t|=g?d:c,(t&=~(g?c:d))&u||(t&=~(o|s));var b=[e,t,h,g?p:void 0,g?m:void 0,g?void 0:p,g?void 0:m,_,y,v],M=n.apply(void 0,b);return r(e)&&a(M,b),M.placeholder=f,i(M,e,t)}},function(e,t,n){var r=n(292),a=n(545),i=r?function(e){return r.get(e)}:a;e.exports=i},function(e,t,n){var r=n(72),a=n(244);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(a.prototype),i.prototype.constructor=i,e.exports=i},function(e,t,n){var r=n(291),a=n(282)(r);e.exports=a},function(e,t,n){var r=n(550),a=n(551),i=n(238),o=n(552);e.exports=function(e,t,n){var s=t+"";return i(e,a(s,o(r(s),n)))}},function(e,t,n){var r=n(247),a=n(48);e.exports=function(e,t,n){(void 0===n||a(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(289)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e,t){if("__proto__"!=t)return e[t]}},function(e,t,n){var r=n(247),a=n(48),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(288),a=n(570),i=n(69);e.exports=function(e){return i(e)?r(e,!0):a(e)}},function(e,t,n){var r=n(30),a=n(23),i="[object Number]";e.exports=function(e){return"number"==typeof e||a(e)&&r(e)==i}},function(e,t,n){var r=n(304),a=n(68),i=n(49),o=n(21),s=n(234);e.exports=function(e,t,n,u){if(!o(e))return e;for(var l=-1,d=(t=a(t,e)).length,c=d-1,f=e;null!=f&&++l<d;){var h=s(t[l]),p=n;if(l!=c){var m=f[h];void 0===(p=u?u(m,h,f):void 0)&&(p=o(m)?m:i(t[l+1])?[]:{})}r(f,h,p),f=f[h]}return e}},function(e,t,n){"use strict";n.r(t);var r=Math.PI,a=2*r,i=a-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new o}o.prototype=s.prototype={constructor:o,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(e,t,n,a,i){e=+e,t=+t,n=+n,a=+a,i=+i;var o=this._x1,s=this._y1,u=n-e,l=a-t,d=o-e,c=s-t,f=d*d+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(c*u-l*d)>1e-6&&i){var h=n-o,p=a-s,m=u*u+l*l,_=h*h+p*p,y=Math.sqrt(m),v=Math.sqrt(f),g=i*Math.tan((r-Math.acos((m+f-_)/(2*y*v)))/2),b=g/v,M=g/y;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*d)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>d*p)+","+(this._x1=e+M*u)+","+(this._y1=t+M*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,o,s,u){e=+e,t=+t;var l=(n=+n)*Math.cos(o),d=n*Math.sin(o),c=e+l,f=t+d,h=1^u,p=u?o-s:s-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+c+","+f),n&&(p<0&&(p=p%a+a),p>i?this._+="A"+n+","+n+",0,1,"+h+","+(e-l)+","+(t-d)+"A"+n+","+n+",0,1,"+h+","+(this._x1=c)+","+(this._y1=f):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+h+","+(this._x1=e+n*Math.cos(s))+","+(this._y1=t+n*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var u=s,l=function(e){return function(){return e}},d=Math.abs,c=Math.atan2,f=Math.cos,h=Math.max,p=Math.min,m=Math.sin,_=Math.sqrt,y=1e-12,v=Math.PI,g=v/2,b=2*v;function M(e){return e>=1?g:e<=-1?-g:Math.asin(e)}function k(e){return e.innerRadius}function L(e){return e.outerRadius}function w(e){return e.startAngle}function x(e){return e.endAngle}function Y(e){return e&&e.padAngle}function T(e,t,n,r,a,i,o){var s=e-n,u=t-r,l=(o?i:-i)/_(s*s+u*u),d=l*u,c=-l*s,f=e+d,p=t+c,m=n+d,y=r+c,v=(f+m)/2,g=(p+y)/2,b=m-f,M=y-p,k=b*b+M*M,L=a-i,w=f*y-m*p,x=(M<0?-1:1)*_(h(0,L*L*k-w*w)),Y=(w*M-b*x)/k,T=(-w*b-M*x)/k,S=(w*M+b*x)/k,D=(-w*b+M*x)/k,O=Y-v,j=T-g,P=S-v,E=D-g;return O*O+j*j>P*P+E*E&&(Y=S,T=D),{cx:Y,cy:T,x01:-d,y01:-c,x11:Y*(a/L-1),y11:T*(a/L-1)}}var S=function(){var e=k,t=L,n=l(0),r=null,a=w,i=x,o=Y,s=null;function h(){var l,h,k,L=+e.apply(this,arguments),w=+t.apply(this,arguments),x=a.apply(this,arguments)-g,Y=i.apply(this,arguments)-g,S=d(Y-x),D=Y>x;if(s||(s=l=u()),w<L&&(h=w,w=L,L=h),w>y)if(S>b-y)s.moveTo(w*f(x),w*m(x)),s.arc(0,0,w,x,Y,!D),L>y&&(s.moveTo(L*f(Y),L*m(Y)),s.arc(0,0,L,Y,x,D));else{var O,j,P=x,E=Y,C=x,H=Y,R=S,A=S,W=o.apply(this,arguments)/2,N=W>y&&(r?+r.apply(this,arguments):_(L*L+w*w)),z=p(d(w-L)/2,+n.apply(this,arguments)),F=z,I=z;if(N>y){var q=M(N/L*m(W)),U=M(N/w*m(W));(R-=2*q)>y?(C+=q*=D?1:-1,H-=q):(R=0,C=H=(x+Y)/2),(A-=2*U)>y?(P+=U*=D?1:-1,E-=U):(A=0,P=E=(x+Y)/2)}var B=w*f(P),V=w*m(P),G=L*f(H),J=L*m(H);if(z>y){var $,X=w*f(E),K=w*m(E),Q=L*f(C),Z=L*m(C);if(S<=b-y&&($=function(e,t,n,r,a,i,o,s){var u=n-e,l=r-t,d=o-a,c=s-i,f=c*u-d*l;if(!(f*f<y))return[e+(f=(d*(t-i)-c*(e-a))/f)*u,t+f*l]}(B,V,Q,Z,X,K,G,J))){var ee=B-$[0],te=V-$[1],ne=X-$[0],re=K-$[1],ae=1/m(((k=(ee*ne+te*re)/(_(ee*ee+te*te)*_(ne*ne+re*re)))>1?0:k<-1?v:Math.acos(k))/2),ie=_($[0]*$[0]+$[1]*$[1]);F=p(z,(L-ie)/(ae-1)),I=p(z,(w-ie)/(ae+1))}}A>y?I>y?(O=T(Q,Z,B,V,w,I,D),j=T(X,K,G,J,w,I,D),s.moveTo(O.cx+O.x01,O.cy+O.y01),I<z?s.arc(O.cx,O.cy,I,c(O.y01,O.x01),c(j.y01,j.x01),!D):(s.arc(O.cx,O.cy,I,c(O.y01,O.x01),c(O.y11,O.x11),!D),s.arc(0,0,w,c(O.cy+O.y11,O.cx+O.x11),c(j.cy+j.y11,j.cx+j.x11),!D),s.arc(j.cx,j.cy,I,c(j.y11,j.x11),c(j.y01,j.x01),!D))):(s.moveTo(B,V),s.arc(0,0,w,P,E,!D)):s.moveTo(B,V),L>y&&R>y?F>y?(O=T(G,J,X,K,L,-F,D),j=T(B,V,Q,Z,L,-F,D),s.lineTo(O.cx+O.x01,O.cy+O.y01),F<z?s.arc(O.cx,O.cy,F,c(O.y01,O.x01),c(j.y01,j.x01),!D):(s.arc(O.cx,O.cy,F,c(O.y01,O.x01),c(O.y11,O.x11),!D),s.arc(0,0,L,c(O.cy+O.y11,O.cx+O.x11),c(j.cy+j.y11,j.cx+j.x11),D),s.arc(j.cx,j.cy,F,c(j.y11,j.x11),c(j.y01,j.x01),!D))):s.arc(0,0,L,H,C,D):s.lineTo(G,J)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return h.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-v/2;return[f(r)*n,m(r)*n]},h.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:l(+t),h):e},h.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:l(+e),h):t},h.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:l(+e),h):n},h.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:l(+e),h):r},h.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:l(+e),h):a},h.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:l(+e),h):i},h.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:l(+e),h):o},h.context=function(e){return arguments.length?(s=null==e?null:e,h):s},h};function D(e){this._context=e}D.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var O=function(e){return new D(e)};function j(e){return e[0]}function P(e){return e[1]}var E=function(){var e=j,t=P,n=l(!0),r=null,a=O,i=null;function o(o){var s,l,d,c=o.length,f=!1;for(null==r&&(i=a(d=u())),s=0;s<=c;++s)!(s<c&&n(l=o[s],s,o))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(l,s,o),+t(l,s,o));if(d)return i=null,d+""||null}return o.x=function(t){return arguments.length?(e="function"==typeof t?t:l(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:l(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:l(!!e),o):n},o.curve=function(e){return arguments.length?(a=e,null!=r&&(i=a(r)),o):a},o.context=function(e){return arguments.length?(null==e?r=i=null:i=a(r=e),o):r},o},C=function(){var e=j,t=null,n=l(0),r=P,a=l(!0),i=null,o=O,s=null;function d(l){var d,c,f,h,p,m=l.length,_=!1,y=new Array(m),v=new Array(m);for(null==i&&(s=o(p=u())),d=0;d<=m;++d){if(!(d<m&&a(h=l[d],d,l))===_)if(_=!_)c=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=d-1;f>=c;--f)s.point(y[f],v[f]);s.lineEnd(),s.areaEnd()}_&&(y[d]=+e(h,d,l),v[d]=+n(h,d,l),s.point(t?+t(h,d,l):y[d],r?+r(h,d,l):v[d]))}if(p)return s=null,p+""||null}function c(){return E().defined(a).curve(o).context(i)}return d.x=function(n){return arguments.length?(e="function"==typeof n?n:l(+n),t=null,d):e},d.x0=function(t){return arguments.length?(e="function"==typeof t?t:l(+t),d):e},d.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:l(+e),d):t},d.y=function(e){return arguments.length?(n="function"==typeof e?e:l(+e),r=null,d):n},d.y0=function(e){return arguments.length?(n="function"==typeof e?e:l(+e),d):n},d.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:l(+e),d):r},d.lineX0=d.lineY0=function(){return c().x(e).y(n)},d.lineY1=function(){return c().x(e).y(r)},d.lineX1=function(){return c().x(t).y(n)},d.defined=function(e){return arguments.length?(a="function"==typeof e?e:l(!!e),d):a},d.curve=function(e){return arguments.length?(o=e,null!=i&&(s=o(i)),d):o},d.context=function(e){return arguments.length?(null==e?i=s=null:s=o(i=e),d):i},d},H=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},R=function(e){return e},A=function(){var e=R,t=H,n=null,r=l(0),a=l(b),i=l(0);function o(o){var s,u,l,d,c,f=o.length,h=0,p=new Array(f),m=new Array(f),_=+r.apply(this,arguments),y=Math.min(b,Math.max(-b,a.apply(this,arguments)-_)),v=Math.min(Math.abs(y)/f,i.apply(this,arguments)),g=v*(y<0?-1:1);for(s=0;s<f;++s)(c=m[p[s]=s]=+e(o[s],s,o))>0&&(h+=c);for(null!=t?p.sort(function(e,n){return t(m[e],m[n])}):null!=n&&p.sort(function(e,t){return n(o[e],o[t])}),s=0,l=h?(y-f*g)/h:0;s<f;++s,_=d)u=p[s],d=_+((c=m[u])>0?c*l:0)+g,m[u]={data:o[u],index:s,value:c,startAngle:_,endAngle:d,padAngle:v};return m}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:l(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:l(+e),o):r},o.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:l(+e),o):a},o.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:l(+e),o):i},o},W=z(O);function N(e){this._curve=e}function z(e){function t(t){return new N(e(t))}return t._curve=e,t}function F(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(z(e)):t()._curve},e}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var I=function(){return F(E().curve(W))},q=function(){var e=C().curve(W),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return F(n())},delete e.lineX0,e.lineEndAngle=function(){return F(r())},delete e.lineX1,e.lineInnerRadius=function(){return F(a())},delete e.lineY0,e.lineOuterRadius=function(){return F(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(z(e)):t()._curve},e},U=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},B=Array.prototype.slice;function V(e){return e.source}function G(e){return e.target}function J(e){var t=V,n=G,r=j,a=P,i=null;function o(){var o,s=B.call(arguments),l=t.apply(this,s),d=n.apply(this,s);if(i||(i=o=u()),e(i,+r.apply(this,(s[0]=l,s)),+a.apply(this,s),+r.apply(this,(s[0]=d,s)),+a.apply(this,s)),o)return i=null,o+""||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r="function"==typeof e?e:l(+e),o):r},o.y=function(e){return arguments.length?(a="function"==typeof e?e:l(+e),o):a},o.context=function(e){return arguments.length?(i=null==e?null:e,o):i},o}function $(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,a,r,a)}function X(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+a)/2,r,n,r,a)}function K(e,t,n,r,a){var i=U(t,n),o=U(t,n=(n+a)/2),s=U(r,n),u=U(r,a);e.moveTo(i[0],i[1]),e.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}function Q(){return J($)}function Z(){return J(X)}function ee(){var e=J(K);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var te={draw:function(e,t){var n=Math.sqrt(t/v);e.moveTo(n,0),e.arc(0,0,n,0,b)}},ne={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},re=Math.sqrt(1/3),ae=2*re,ie={draw:function(e,t){var n=Math.sqrt(t/ae),r=n*re;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},oe=Math.sin(v/10)/Math.sin(7*v/10),se=Math.sin(b/10)*oe,ue=-Math.cos(b/10)*oe,le={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=se*n,a=ue*n;e.moveTo(0,-n),e.lineTo(r,a);for(var i=1;i<5;++i){var o=b*i/5,s=Math.cos(o),u=Math.sin(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*a,u*r+s*a)}e.closePath()}},de={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},ce=Math.sqrt(3),fe={draw:function(e,t){var n=-Math.sqrt(t/(3*ce));e.moveTo(0,2*n),e.lineTo(-ce*n,-n),e.lineTo(ce*n,-n),e.closePath()}},he=Math.sqrt(3)/2,pe=1/Math.sqrt(12),me=3*(pe/2+1),_e={draw:function(e,t){var n=Math.sqrt(t/me),r=n/2,a=n*pe,i=r,o=n*pe+n,s=-i,u=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(s,u),e.lineTo(-.5*r-he*a,he*r+-.5*a),e.lineTo(-.5*i-he*o,he*i+-.5*o),e.lineTo(-.5*s-he*u,he*s+-.5*u),e.lineTo(-.5*r+he*a,-.5*a-he*r),e.lineTo(-.5*i+he*o,-.5*o-he*i),e.lineTo(-.5*s+he*u,-.5*u-he*s),e.closePath()}},ye=[te,ne,ie,de,le,fe,_e],ve=function(){var e=l(te),t=l(64),n=null;function r(){var r;if(n||(n=r=u()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:l(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:l(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},ge=function(){};function be(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Me(e){this._context=e}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:be(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:be(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var ke=function(e){return new Me(e)};function Le(e){this._context=e}Le.prototype={areaStart:ge,areaEnd:ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:be(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var we=function(e){return new Le(e)};function xe(e){this._context=e}xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:be(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ye=function(e){return new xe(e)};function Te(e,t){this._basis=new Me(e),this._beta=t}Te.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,a=e[0],i=t[0],o=e[n]-a,s=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(a+r*o),this._beta*t[u]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Se=function e(t){function n(e){return 1===t?new Me(e):new Te(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function De(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Oe(e,t){this._context=e,this._k=(1-t)/6}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:De(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:De(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var je=function e(t){function n(e){return new Oe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Pe(e,t){this._context=e,this._k=(1-t)/6}Pe.prototype={areaStart:ge,areaEnd:ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:De(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ee=function e(t){function n(e){return new Pe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ce(e,t){this._context=e,this._k=(1-t)/6}Ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:De(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var He=function e(t){function n(e){return new Ce(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Re(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>y){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>y){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*l+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function Ae(e,t){this._context=e,this._alpha=t}Ae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Re(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var We=function e(t){function n(e){return t?new Ae(e,t):new Oe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ne(e,t){this._context=e,this._alpha=t}Ne.prototype={areaStart:ge,areaEnd:ge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Re(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return t?new Ne(e,t):new Pe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Fe(e,t){this._context=e,this._alpha=t}Fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Re(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ie=function e(t){function n(e){return t?new Fe(e,t):new Ce(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function qe(e){this._context=e}qe.prototype={areaStart:ge,areaEnd:ge,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var Ue=function(e){return new qe(e)};function Be(e){return e<0?-1:1}function Ve(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(Be(i)+Be(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function Ge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Je(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function $e(e){this._context=e}function Xe(e){this._context=new Ke(e)}function Ke(e){this._context=e}function Qe(e){return new $e(e)}function Ze(e){return new Xe(e)}function et(e){this._context=e}function tt(e){var t,n,r=e.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Je(this,this._t0,Ge(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Je(this,Ge(this,n=Ve(this,e,t)),n);break;default:Je(this,this._t0,n=Ve(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Xe.prototype=Object.create($e.prototype)).point=function(e,t){$e.prototype.point.call(this,t,e)},Ke.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}},et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=tt(e),a=tt(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var nt=function(e){return new et(e)};function rt(e,t){this._context=e,this._t=t}rt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var at=function(e){return new rt(e,.5)};function it(e){return new rt(e,0)}function ot(e){return new rt(e,1)}var st=function(e,t){if((a=e.length)>1)for(var n,r,a,i=1,o=e[t[0]],s=o.length;i<a;++i)for(r=o,o=e[t[i]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ut=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function lt(e,t){return e[t]}var dt=function(){var e=l([]),t=ut,n=st,r=lt;function a(a){var i,o,s=e.apply(this,arguments),u=a.length,l=s.length,d=new Array(l);for(i=0;i<l;++i){for(var c,f=s[i],h=d[i]=new Array(u),p=0;p<u;++p)h[p]=c=[0,+r(a[p],f,p,a)],c.data=a[p];h.key=f}for(i=0,o=t(d);i<l;++i)d[o[i]].index=i;return n(d,o),d}return a.keys=function(t){return arguments.length?(e="function"==typeof t?t:l(B.call(t)),a):e},a.value=function(e){return arguments.length?(r="function"==typeof e?e:l(+e),a):r},a.order=function(e){return arguments.length?(t=null==e?ut:"function"==typeof e?e:l(B.call(e)),a):t},a.offset=function(e){return arguments.length?(n=null==e?st:e,a):n},a},ct=function(e,t){if((r=e.length)>0){for(var n,r,a,i=0,o=e[0].length;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}st(e,t)}},ft=function(e,t){if((s=e.length)>1)for(var n,r,a,i,o,s,u=0,l=e[t[0]].length;u<l;++u)for(i=o=0,n=0;n<s;++n)(a=(r=e[t[n]][u])[1]-r[0])>=0?(r[0]=i,r[1]=i+=a):a<0?(r[1]=o,r[0]=o+=a):r[0]=i},ht=function(e,t){if((n=e.length)>0){for(var n,r=0,a=e[t[0]],i=a.length;r<i;++r){for(var o=0,s=0;o<n;++o)s+=e[o][r][1]||0;a[r][1]+=a[r][0]=-s/2}st(e,t)}},pt=function(e,t){if((a=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,a,i=0,o=1;o<r;++o){for(var s=0,u=0,l=0;s<a;++s){for(var d=e[t[s]],c=d[o][1]||0,f=(c-(d[o-1][1]||0))/2,h=0;h<s;++h){var p=e[t[h]];f+=(p[o][1]||0)-(p[o-1][1]||0)}u+=c,l+=f*c}n[o-1][1]+=n[o-1][0]=i,u&&(i-=l/u)}n[o-1][1]+=n[o-1][0]=i,st(e,t)}},mt=function(e){var t=e.map(_t);return ut(e).sort(function(e,n){return t[e]-t[n]})};function _t(e){for(var t,n=0,r=-1,a=e.length;++r<a;)(t=+e[r][1])&&(n+=t);return n}var yt=function(e){return mt(e).reverse()},vt=function(e){var t,n,r=e.length,a=e.map(_t),i=ut(e).sort(function(e,t){return a[t]-a[e]}),o=0,s=0,u=[],l=[];for(t=0;t<r;++t)n=i[t],o<s?(o+=a[n],u.push(n)):(s+=a[n],l.push(n));return l.reverse().concat(u)},gt=function(e){return ut(e).reverse()};n.d(t,"arc",function(){return S}),n.d(t,"area",function(){return C}),n.d(t,"line",function(){return E}),n.d(t,"pie",function(){return A}),n.d(t,"areaRadial",function(){return q}),n.d(t,"radialArea",function(){return q}),n.d(t,"lineRadial",function(){return I}),n.d(t,"radialLine",function(){return I}),n.d(t,"pointRadial",function(){return U}),n.d(t,"linkHorizontal",function(){return Q}),n.d(t,"linkVertical",function(){return Z}),n.d(t,"linkRadial",function(){return ee}),n.d(t,"symbol",function(){return ve}),n.d(t,"symbols",function(){return ye}),n.d(t,"symbolCircle",function(){return te}),n.d(t,"symbolCross",function(){return ne}),n.d(t,"symbolDiamond",function(){return ie}),n.d(t,"symbolSquare",function(){return de}),n.d(t,"symbolStar",function(){return le}),n.d(t,"symbolTriangle",function(){return fe}),n.d(t,"symbolWye",function(){return _e}),n.d(t,"curveBasisClosed",function(){return we}),n.d(t,"curveBasisOpen",function(){return Ye}),n.d(t,"curveBasis",function(){return ke}),n.d(t,"curveBundle",function(){return Se}),n.d(t,"curveCardinalClosed",function(){return Ee}),n.d(t,"curveCardinalOpen",function(){return He}),n.d(t,"curveCardinal",function(){return je}),n.d(t,"curveCatmullRomClosed",function(){return ze}),n.d(t,"curveCatmullRomOpen",function(){return Ie}),n.d(t,"curveCatmullRom",function(){return We}),n.d(t,"curveLinearClosed",function(){return Ue}),n.d(t,"curveLinear",function(){return O}),n.d(t,"curveMonotoneX",function(){return Qe}),n.d(t,"curveMonotoneY",function(){return Ze}),n.d(t,"curveNatural",function(){return nt}),n.d(t,"curveStep",function(){return at}),n.d(t,"curveStepAfter",function(){return ot}),n.d(t,"curveStepBefore",function(){return it}),n.d(t,"stack",function(){return dt}),n.d(t,"stackOffsetExpand",function(){return ct}),n.d(t,"stackOffsetDiverging",function(){return ft}),n.d(t,"stackOffsetNone",function(){return st}),n.d(t,"stackOffsetSilhouette",function(){return ht}),n.d(t,"stackOffsetWiggle",function(){return pt}),n.d(t,"stackOrderAscending",function(){return mt}),n.d(t,"stackOrderDescending",function(){return yt}),n.d(t,"stackOrderInsideOut",function(){return vt}),n.d(t,"stackOrderNone",function(){return ut}),n.d(t,"stackOrderReverse",function(){return gt})},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},o=2;var s=20,u=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function s(){n&&(n=!1,e()),r&&l()}function u(){i(s)}function l(){var e=Date.now();if(n){if(e-a<o)return;r=!0}else n=!0,r=!1,setTimeout(u,t);a=e}return l}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.proto