UNPKG

vue-sunburst

Version:

[![GitHub open issues](https://img.shields.io/github/issues/devopsinstant/vue.sunburst.svg?maxAge=30)](https://github.com/devopsinstant/vue.sunburst/issues) [![Npm version](https://img.shields.io/npm/v/vue-sunburst.svg?maxAge=2)](https://www.npmjs.com/pa

2 lines 126 kB
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vue-sunburst"]=n():t["vue-sunburst"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fae3")}({"01f9":function(t,n,e){"use strict";var r=e("2d00"),i=e("5ca1"),o=e("2aba"),u=e("32e9"),a=e("84f2"),c=e("41a0"),s=e("7f20"),f=e("38fd"),l=e("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",v="values",g=function(){return this};t.exports=function(t,n,e,y,m,b,w){c(e,n,y);var _,x,M,T=function(t){if(!h&&t in O)return O[t];switch(t){case d:return function(){return new e(this,t)};case v:return function(){return new e(this,t)}}return function(){return new e(this,t)}},A=n+" Iterator",S=m==v,E=!1,O=t.prototype,C=O[l]||O[p]||m&&O[m],N=C||T(m),k=m?S?T("entries"):N:void 0,j="Array"==n&&O.entries||C;if(j&&(M=f(j.call(new t)),M!==Object.prototype&&M.next&&(s(M,A,!0),r||"function"==typeof M[l]||u(M,l,g))),S&&C&&C.name!==v&&(E=!0,N=function(){return C.call(this)}),r&&!w||!h&&!E&&O[l]||u(O,l,N),a[n]=N,a[A]=g,m)if(_={values:S?N:T(v),keys:b?N:T(d),entries:k},w)for(x in _)x in O||o(O,x,_[x]);else i(i.P+i.F*(h||E),n,_);return _}},"02f4":function(t,n,e){var r=e("4588"),i=e("be13");t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),c=r(e),s=a.length;return c<0||c>=s?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):o:t?a.slice(c,c+2):u-56320+(o-55296<<10)+65536)}}},"0390":function(t,n,e){"use strict";var r=e("02f4")(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},"0a49":function(t,n,e){var r=e("9b43"),i=e("626a"),o=e("4bf8"),u=e("9def"),a=e("cd1c");t.exports=function(t,n){var e=1==t,c=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l,p=n||a;return function(n,a,d){for(var v,g,y=o(n),m=i(y),b=r(a,d,3),w=u(m.length),_=0,x=e?p(n,w):c?p(n,0):void 0;w>_;_++)if((h||_ in m)&&(v=m[_],g=b(v,_,y),t))if(e)x[_]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(f)return!1;return l?-1:s||f?f:x}}},"0aad":function(t,n,e){"use strict";var r=e("272d"),i=e.n(r);i.a},"0bfb":function(t,n,e){"use strict";var r=e("cb7c");t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},"0d58":function(t,n,e){var r=e("ce10"),i=e("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1169:function(t,n,e){var r=e("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"11e9":function(t,n,e){var r=e("52a7"),i=e("4630"),o=e("6821"),u=e("6a99"),a=e("69a8"),c=e("c69a"),s=Object.getOwnPropertyDescriptor;n.f=e("9e1e")?s:function(t,n){if(t=o(t),n=u(n,!0),c)try{return s(t,n)}catch(e){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},1456:function(t,n,e){},1495:function(t,n,e){var r=e("86cc"),i=e("cb7c"),o=e("0d58");t.exports=e("9e1e")?Object.defineProperties:function(t,n){i(t);var e,u=o(n),a=u.length,c=0;while(a>c)r.f(t,e=u[c++],n[e]);return t}},"1bf3":function(t,n,e){"use strict";var r=e("c730"),i=e.n(r);i.a},"214f":function(t,n,e){"use strict";e("b0c5");var r=e("2aba"),i=e("32e9"),o=e("79e5"),u=e("be13"),a=e("2b4c"),c=e("520a"),s=a("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var h=a(t),p=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),d=p?!o((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[s]=function(){return e}),e[h](""),!n})):void 0;if(!p||!d||"replace"===t&&!f||"split"===t&&!l){var v=/./[h],g=e(u,h,""[t],(function(t,n,e,r,i){return n.exec===c?p&&!i?{done:!0,value:v.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}})),y=g[0],m=g[1];r(String.prototype,t,y),i(RegExp.prototype,h,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},"230e":function(t,n,e){var r=e("d3f4"),i=e("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,n,e){var r=e("2d95"),i=e("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},"272d":function(t,n,e){},"2aba":function(t,n,e){var r=e("7726"),i=e("32e9"),o=e("69a8"),u=e("ca5a")("src"),a=e("fa5b"),c="toString",s=(""+a).split(c);e("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,n,e,a){var c="function"==typeof e;c&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(c&&(o(e,u)||i(e,u,t[n]?""+t[n]:s.join(String(n)))),t===r?t[n]=e:a?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[u]||a.call(this)}))},"2ad6":function(t,n,e){"use strict";var r,i;(function(o,u){r=u,i="function"===typeof r?r.call(n,e,n,t):r,void 0===i||(t.exports=i)})("undefined"!==typeof window&&window,(function(){if("undefined"===typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),n=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(n){return t.setTimeout(n,20)},e=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||function(n){t.clearTimeout(n)};function r(t,n){var e=Object.prototype.toString.call(t),r="[object Array]"===e||"[object NodeList]"===e||"[object HTMLCollection]"===e||"[object Object]"===e||"undefined"!==typeof jQuery&&t instanceof jQuery||"undefined"!==typeof Elements&&t instanceof Elements,i=0,o=t.length;if(r)for(;i<o;i++)n(t[i]);else n(t)}function i(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var n=t.getBoundingClientRect();return{width:Math.round(n.width),height:Math.round(n.height)}}function o(t,n){Object.keys(n).forEach((function(e){t.style[e]=n[e]}))}var u=function(t,a){var c=0;function s(){var t,n,e=[];this.add=function(t){e.push(t)},this.call=function(r){for(t=0,n=e.length;t<n;t++)e[t].call(this,r)},this.remove=function(r){var i=[];for(t=0,n=e.length;t<n;t++)e[t]!==r&&i.push(e[t]);e=i},this.length=function(){return e.length}}function f(t,e){if(t)if(t.resizedAttached)t.resizedAttached.add(e);else{t.resizedAttached=new s,t.resizedAttached.add(e),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var r={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},u={position:"absolute",left:"0px",top:"0px",transition:"0s"};o(t.resizeSensor,r);var a=document.createElement("div");a.className="resize-sensor-expand",o(a,r);var f=document.createElement("div");o(f,u),a.appendChild(f);var l=document.createElement("div");l.className="resize-sensor-shrink",o(l,r);var h=document.createElement("div");o(h,u),o(h,{width:"200%",height:"200%"}),l.appendChild(h),t.resizeSensor.appendChild(a),t.resizeSensor.appendChild(l),t.appendChild(t.resizeSensor);var p=window.getComputedStyle(t),d=p?p.getPropertyValue("position"):null;"absolute"!==d&&"relative"!==d&&"fixed"!==d&&"sticky"!==d&&(t.style.position="relative");var v=!1,g=0,y=i(t),m=0,b=0,w=!0;c=0;var _=function(){var n=t.offsetWidth,e=t.offsetHeight;f.style.width=n+10+"px",f.style.height=e+10+"px",a.scrollLeft=n+10,a.scrollTop=e+10,l.scrollLeft=n+10,l.scrollTop=e+10},x=function(){if(w){var e=0===t.offsetWidth&&0===t.offsetHeight;if(e)return void(c||(c=n((function(){c=0,x()}))));w=!1}_()};t.resizeSensor.resetSensor=x;var M=function(){g=0,v&&(m=y.width,b=y.height,t.resizedAttached&&t.resizedAttached.call(y))},T=function(){y=i(t),v=y.width!==m||y.height!==b,v&&!g&&(g=n(M)),x()},A=function(t,n,e){t.attachEvent?t.attachEvent("on"+n,e):t.addEventListener(n,e)};A(a,"scroll",T),A(l,"scroll",T),c=n((function(){c=0,x()}))}}r(t,(function(t){f(t,a)})),this.detach=function(n){c||(e(c),c=0),u.detach(t,n)},this.reset=function(){t.resizeSensor.resetSensor()}};if(u.reset=function(t){r(t,(function(t){t.resizeSensor.resetSensor()}))},u.detach=function(t,n){r(t,(function(t){t&&(t.resizedAttached&&"function"===typeof n&&(t.resizedAttached.remove(n),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))}))},"undefined"!==typeof MutationObserver){var a=new MutationObserver((function(t){for(var n in t)if(t.hasOwnProperty(n))for(var e=t[n].addedNodes,r=0;r<e.length;r++)e[r].resizeSensor&&u.reset(e[r])}));document.addEventListener("DOMContentLoaded",(function(t){a.observe(document.body,{childList:!0,subtree:!0})}))}return u}))},"2aeb":function(t,n,e){var r=e("cb7c"),i=e("1495"),o=e("e11e"),u=e("613b")("IE_PROTO"),a=function(){},c="prototype",s=function(){var t,n=e("230e")("iframe"),r=o.length,i="<",u=">";n.style.display="none",e("fab2").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),s=t.F;while(r--)delete s[c][o[r]];return s()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[c]=r(t),e=new a,a[c]=null,e[u]=t):e=s(),void 0===n?e:i(e,n)}},"2b4c":function(t,n,e){var r=e("5537")("wks"),i=e("ca5a"),o=e("7726").Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))};a.store=r},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"2f21":function(t,n,e){"use strict";var r=e("79e5");t.exports=function(t,n){return!!t&&r((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},"32e9":function(t,n,e){var r=e("86cc"),i=e("4630");t.exports=e("9e1e")?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},"38fd":function(t,n,e){var r=e("69a8"),i=e("4bf8"),o=e("613b")("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"3c61":function(t,n,e){"use strict";var r=e("1456"),i=e.n(r);i.a},"41a0":function(t,n,e){"use strict";var r=e("2aeb"),i=e("4630"),o=e("7f20"),u={};e("32e9")(u,e("2b4c")("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},"428d":function(t,n,e){!function(n,r){t.exports=r(e("2ad6"),e("f7fe"))}(0,(function(t,n){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="/",n(0)}([function(t,n,e){var r,i,o;!function(u,a){i=[t,n,e(10),e(38),e(39),e(9),e(37)],r=a,o="function"==typeof r?r.apply(n,i):r,void 0===o||(t.exports=o)}(0,(function(t,n,e,r,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function u(t){if(!t)return{delay:g,initial:!1};var n=t.initial,e=void 0!==n&&n,r=(0,l.default)(t).map((function(t){return parseInt(t)})).find((function(t){return!isNaN(t)}));return r=r||g,{delay:r,initial:e}}function a(t,n){var e={root:document.documentElement},r=new IntersectionObserver((function(t,e){t.forEach((function(t){t.isIntersecting&&(n(),e.disconnect())}))}),e);return r.observe(t),r}function c(t,n){var e=n.value,r=n.arg,i=n.options,o=function(){return e(t)};switch(r){case"debounce":o=v((function(){return e(t)}),i.delay);break;case"throttle":o=v((function(){return e(t)}),i.delay,{leading:!0,trailing:!0,maxWait:i.delay})}var u=new h.default(t,o);return i.initial&&e(t),u}function s(t,n,e){var r=n.value,i=n.arg,o=n.modifiers,l=e.context;if(r&&"function"==typeof r){var h=u(o);return l&&l.$el===t&&l.$once("hook:deactivated",(function(){f(t),l.$once("hook:activated",(function(){s(t,{value:r,arg:i,modifiers:o},{context:l})}))})),t.offsetParent?void c(t,{value:r,arg:i,options:h}):(h.initial=!0,void(t.__visibility__listener__=a(t,(function(){return c(t,{value:r,arg:i,options:h})}))))}console.warn("v-resize should received a function as value")}function f(t){t.__visibility__listener__&&t.__visibility__listener__.disconnect(),t.resizeSensor&&h.default.detach(t)}Object.defineProperty(n,"__esModule",{value:!0});var l=o(e),h=o(r),p=o(i),d=p.default.debounce,v=void 0===d?p.default:d,g=150;n.default={inserted:s,unbind:f},t.exports=n.default}))},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){t.exports=!e(3)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(23),i=e(6);t.exports=function(t){return r(i(t))}},function(t,n,e){var r,i,o;!function(e,u){i=[],r=u,o="function"==typeof r?r.apply(n,i):r,void 0===o||(t.exports=o)}(0,(function(){"use strict";Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),e=n.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<e;){var o=n[i];if(t.call(r,o,i,n))return o;i++}},configurable:!0,writable:!0})}))},function(t,n,e){t.exports={default:e(11),__esModule:!0}},function(t,n,e){e(36),t.exports=e(1).Object.keys},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(8),i=e(32),o=e(31);t.exports=function(t){return function(n,e,u){var a,c=r(n),s=i(c.length),f=o(u,s);if(t&&e!=e){for(;s>f;)if(a=c[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(12);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(5),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4),i=e(1),o=e(16),u=e(21),a="prototype",c=function(t,n,e){var s,f,l,h=t&c.F,p=t&c.G,d=t&c.S,v=t&c.P,g=t&c.B,y=t&c.W,m=p?i:i[n]||(i[n]={}),b=m[a],w=p?r:d?r[n]:(r[n]||{})[a];for(s in p&&(e=n),e)f=!h&&w&&void 0!==w[s],f&&s in m||(l=f?w[s]:e[s],m[s]=p&&"function"!=typeof w[s]?e[s]:g&&f?o(l,r):y&&w[s]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((m.virtual||(m.virtual={}))[s]=l,t&c.R&&b&&!b[s]&&u(b,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(24),i=e(28);t.exports=e(2)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){t.exports=!e(2)&&!e(3)((function(){return 7!=Object.defineProperty(e(17)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(13),i=e(22),o=e(34),u=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(20),i=e(8),o=e(14)(!1),u=e(29)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),c=0,s=[];for(e in a)e!=u&&r(a,e)&&s.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~o(s,e)||s.push(e));return s}},function(t,n,e){var r=e(25),i=e(18);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(19),i=e(1),o=e(3);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o((function(){e(1)})),"Object",u)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(30)("keys"),i=e(35);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){var r=e(7),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(7),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(6);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(5);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(33),i=e(26);e(27)("keys",(function(){return function(t){return i(r(t))}}))},function(t,n){!function(t,n){"use strict";function e(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||f(),this.isIntersecting=!!t.intersectionRect;var n=this.boundingClientRect,e=n.width*n.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=e?i/e:this.isIntersecting?1:0}function r(t,n){var e=n||{};if("function"!=typeof t)throw new Error("callback must be a function");if(e.root&&1!=e.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=o(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(e.rootMargin),this.thresholds=this._initThresholds(e.threshold),this.root=e.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}function i(){return t.performance&&performance.now&&performance.now()}function o(t,n){var e=null;return function(){e||(e=setTimeout((function(){t(),e=null}),n))}}function u(t,n,e,r){"function"==typeof t.addEventListener?t.addEventListener(n,e,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+n,e)}function a(t,n,e,r){"function"==typeof t.removeEventListener?t.removeEventListener(n,e,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+n,e)}function c(t,n){var e=Math.max(t.top,n.top),r=Math.min(t.bottom,n.bottom),i=Math.max(t.left,n.left),o=Math.min(t.right,n.right),u=o-i,a=r-e;return u>=0&&a>=0&&{top:e,bottom:r,left:i,right:o,width:u,height:a}}function s(t){var n;try{n=t.getBoundingClientRect()}catch(t){}return n?(n.width&&n.height||(n={top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.right-n.left,height:n.bottom-n.top}),n):f()}function f(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t,n){for(var e=n;e;){if(e==t)return!0;e=h(e)}return!1}function h(t){var n=t.parentNode;return n&&11==n.nodeType&&n.host?n.host:n}if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var p=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){var n=this._observationTargets.some((function(n){return n.element==t}));if(!n){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(n){return n.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var n=t||[0];return Array.isArray(n)||(n=[n]),n.sort().filter((function(t,n,e){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==e[n-1]}))},r.prototype._parseRootMargin=function(t){var n=t||"0px",e=n.split(/\s+/).map((function(t){var n=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!n)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(n[1]),unit:n[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(u(t,"resize",this._checkForIntersections,!0),u(n,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize",this._checkForIntersections,!0),a(n,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),n=t?this._getRootRect():f();this._observationTargets.forEach((function(r){var o=r.element,u=s(o),a=this._rootContainsTarget(o),c=r.entry,f=t&&a&&this._computeTargetAndRootIntersection(o,n),l=r.entry=new e({time:i(),target:o,boundingClientRect:u,rootBounds:n,intersectionRect:f});c?t&&a?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(e,r){if("none"!=t.getComputedStyle(e).display){for(var i=s(e),o=i,u=h(e),a=!1;!a;){var f=null,l=1==u.nodeType?t.getComputedStyle(u):{};if("none"==l.display)return;if(u==this.root||u==n?(a=!0,f=r):u!=n.body&&u!=n.documentElement&&"visible"!=l.overflow&&(f=s(u)),f&&(o=c(f,o),!o))break;u=h(u)}return o}},r.prototype._getRootRect=function(){var t;if(this.root)t=s(this.root);else{var e=n.documentElement,r=n.body;t={top:0,left:0,right:e.clientWidth||r.clientWidth,width:e.clientWidth||r.clientWidth,bottom:e.clientHeight||r.clientHeight,height:e.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var n=this._rootMarginValues.map((function(n,e){return"px"==n.unit?n.value:n.value*(e%2?t.width:t.height)/100})),e={top:t.top-n[0],right:t.right+n[1],bottom:t.bottom+n[2],left:t.left-n[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},r.prototype._hasCrossedThreshold=function(t,n){var e=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=n.isIntersecting?n.intersectionRatio||0:-1;if(e!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==e||o==r||o<e!=o<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||l(n,this.root)},r.prototype._rootContainsTarget=function(t){return l(this.root||n,t)},r.prototype._registerInstance=function(){p.indexOf(this)<0&&p.push(this)},r.prototype._unregisterInstance=function(){var t=p.indexOf(this);-1!=t&&p.splice(t,1)},t.IntersectionObserver=r,t.IntersectionObserverEntry=e}}(window,document)},function(n,e){n.exports=t},function(t,e){t.exports=n}])}))},"456d":function(t,n,e){var r=e("4bf8"),i=e("0d58");e("5eda")("keys",(function(){return function(t){return i(r(t))}}))},4588:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4630:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"4bf8":function(t,n,e){var r=e("be13");t.exports=function(t){return Object(r(t))}},"520a":function(t,n,e){"use strict";var r=e("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,u=i,a="lastIndex",c=function(){var t=/a/,n=/b*/g;return i.call(t,"a"),i.call(n,"a"),0!==t[a]||0!==n[a]}(),s=void 0!==/()??/.exec("")[1],f=c||s;f&&(u=function(t){var n,e,u,f,l=this;return s&&(e=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),c&&(n=l[a]),u=i.call(l,t),c&&u&&(l[a]=l.global?u.index+u[0].length:n),s&&u&&u.length>1&&o.call(u[0],e,(function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)})),u}),t.exports=u},"52a7":function(t,n){n.f={}.propertyIsEnumerable},5537:function(t,n,e){var r=e("8378"),i=e("7726"),o="__core-js_shared__",u=i[o]||(i[o]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,n,e){"use strict";var r=e("5ca1"),i=e("d8e8"),o=e("4bf8"),u=e("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(u((function(){c.sort(void 0)}))||!u((function(){c.sort(null)}))||!e("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},"5ca1":function(t,n,e){var r=e("7726"),i=e("8378"),o=e("32e9"),u=e("2aba"),a=e("9b43"),c="prototype",s=function(t,n,e){var f,l,h,p,d=t&s.F,v=t&s.G,g=t&s.S,y=t&s.P,m=t&s.B,b=v?r:g?r[n]||(r[n]={}):(r[n]||{})[c],w=v?i:i[n]||(i[n]={}),_=w[c]||(w[c]={});for(f in v&&(e=n),e)l=!d&&b&&void 0!==b[f],h=(l?b:e)[f],p=m&&l?a(h,r):y&&"function"==typeof h?a(Function.call,h):h,b&&u(b,f,h,t&s.U),w[f]!=h&&o(w,f,p),y&&_[f]!=h&&(_[f]=h)};r.core=i,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5dbc":function(t,n,e){var r=e("d3f4"),i=e("8b97").set;t.exports=function(t,n,e){var o,u=n.constructor;return u!==e&&"function"==typeof u&&(o=u.prototype)!==e.prototype&&r(o)&&i&&i(t,o),t}},"5eda":function(t,n,e){var r=e("5ca1"),i=e("8378"),o=e("79e5");t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o((function(){e(1)})),"Object",u)}},"5f1b":function(t,n,e){"use strict";var r=e("23c6"),i=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"===typeof e){var o=e.call(t,n);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},"613b":function(t,n,e){var r=e("5537")("keys"),i=e("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,n,e){var r=e("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,n,e){var r=e("626a"),i=e("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"6a99":function(t,n,e){var r=e("d3f4");t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7514:function(t,n,e){"use strict";var r=e("5ca1"),i=e("0a49")(5),o="find",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),r(r.P+r.F*u,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e("9c6c")(o)},7726:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},"77f1":function(t,n,e){var r=e("4588"),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},"79e5":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},"7f20":function(t,n,e){var r=e("86cc").f,i=e("69a8"),o=e("2b4c")("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},"7f7f":function(t,n,e){var r=e("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,u="name";u in i||e("9e1e")&&r(i,u,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,n){var e=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},"84f2":function(t,n){t.exports={}},"86cc":function(t,n,e){var r=e("cb7c"),i=e("c69a"),o=e("6a99"),u=Object.defineProperty;n.f=e("9e1e")?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(a){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},"8b97":function(t,n,e){var r=e("d3f4"),i=e("cb7c"),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e("9b43")(Function.call,e("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(i){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},9093:function(t,n,e){var r=e("ce10"),i=e("e11e").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"9b43":function(t,n,e){var r=e("d8e8");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},"9c6c":function(t,n,e){var r=e("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&e("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,n,e){var r=e("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,n,e){t.exports=!e("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a481:function(t,n,e){"use strict";var r=e("cb7c"),i=e("4bf8"),o=e("9def"),u=e("4588"),a=e("0390"),c=e("5f1b"),s=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};e("214f")("replace",2,(function(t,n,e,v){return[function(r,i){var o=t(this),u=void 0==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},function(t,n){var i=v(e,t,this,n);if(i.done)return i.value;var l=r(t),h=String(this),p="function"===typeof n;p||(n=String(n));var y=l.global;if(y){var m=l.unicode;l.lastIndex=0}var b=[];while(1){var w=c(l,h);if(null===w)break;if(b.push(w),!y)break;var _=String(w[0]);""===_&&(l.lastIndex=a(h,o(l.lastIndex),m))}for(var x="",M=0,T=0;T<b.length;T++){w=b[T];for(var A=String(w[0]),S=s(f(u(w.index),h.length),0),E=[],O=1;O<w.length;O++)E.push(d(w[O]));var C=w.groups;if(p){var N=[A].concat(E,S,h);void 0!==C&&N.push(C);var k=String(n.apply(void 0,N))}else k=g(A,h,S,E,C,n);S>=M&&(x+=h.slice(M,S)+k,M=S+A.length)}return x+h.slice(M)}];function g(t,n,r,o,u,a){var c=r+t.length,s=o.length,f=p;return void 0!==u&&(u=i(u),f=h),e.call(a,f,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":a=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var h=l(f/10);return 0===h?e:h<=s?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):e}a=o[f-1]}return void 0===a?"":a}))}}))},aa77:function(t,n,e){var r=e("5ca1"),i=e("be13"),o=e("79e5"),u=e("fdef"),a="["+u+"]",c="​…",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,n,e){var i={},a=o((function(){return!!u[t]()||c[t]()!=c})),s=i[t]=a?n(h):u[t];e&&(i[e]=s),r(r.P+r.F*a,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(s,"")),2&n&&(t=t.replace(f,"")),t};t.exports=l},ac6a:function(t,n,e){for(var r=e("cadf"),i=e("0d58"),o=e("2aba"),u=e("7726"),a=e("32e9"),c=e("84f2"),s=e("2b4c"),f=s("iterator"),l=s("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;v<d.length;v++){var g,y=d[v],m=p[y],b=u[y],w=b&&b.prototype;if(w&&(w[f]||a(w,f,h),w[l]||a(w,l,y),c[y]=h,m))for(g in r)w[g]||o(w,g,r[g],!0)}},b0c5:function(t,n,e){"use strict";var r=e("520a");e("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},c366:function(t,n,e){var r=e("6821"),i=e("9def"),o=e("77f1");t.exports=function(t){return function(n,e,u){var a,c=r(n),s=i(c.length),f=o(u,s);if(t&&e!=e){while(s>f)if(a=c[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}}},c5f6:function(t,n,e){"use strict";var r=e("7726"),i=e("69a8"),o=e("2d95"),u=e("5dbc"),a=e("6a99"),c=e("79e5"),s=e("9093").f,f=e("11e9").f,l=e("86cc").f,h=e("aa77").trim,p="Number",d=r[p],v=d,g=d.prototype,y=o(e("2aeb")(g))==p,m="trim"in String.prototype,b=function(t){var n=a(t,!1);if("string"==typeof n&&n.length>2){n=m?n.trim():h(n,3);var e,r,i,o=n.charCodeAt(0);if(43===o||45===o){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+n}for(var u,c=n.slice(2),s=0,f=c.length;s<f;s++)if(u=c.charCodeAt(s),u<48||u>i)return NaN;return parseInt(c,r)}}return+n};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof d&&(y?c((function(){g.valueOf.call(e)})):o(e)!=p)?u(new v(b(n)),e,d):b(n)};for(var w,_=e("9e1e")?s(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(v,w=_[x])&&!i(d,w)&&l(d,w,f(v,w));d.prototype=g,g.constructor=d,e("2aba")(r,p,d)}},c69a:function(t,n,e){t.exports=!e("9e1e")&&!e("79e5")((function(){return 7!=Object.defineProperty(e("230e")("div"),"a",{get:function(){return 7}}).a}))},c730:function(t,n,e){},c8ba:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"===typeof window&&(e=window)}t.exports=e},ca5a:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},cadf:function(t,n,e){"use strict";var r=e("9c6c"),i=e("d53b"),o=e("84f2"),u=e("6821");t.exports=e("01f9")(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,n,e){var r=e("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,n,e){var r=e("e853");t.exports=function(t,n){return new(r(t))(n)}},ce10:function(t,n,e){var r=e("69a8"),i=e("6821"),o=e("c366")(!1),u=e("613b")("IE_PROTO");t.exports=function(t,n){var e,a=i(t),c=0,s=[];for(e in a)e!=u&&r(a,e)&&s.push(e);while(n.length>c)r(a,e=n[c++])&&(~o(s,e)||s.push(e));return s}},d3f4:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},d8e8:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(t,n,e){var r=e("d3f4"),i=e("1169"),o=e("2b4c")("species");t.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&(n=n[o],null===n&&(n=void 0))),void 0===n?Array:n}},f6fd:function(t,n){(function(t){var n="currentScript",e=t.getElementsByTagName("script");n in t||Object.defineProperty(t,n,{get:function(){try{throw new Error}catch(r){var t,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in e)if(e[t].src==n||"interactive"==e[t].readyState)return e[t];return null}}})})(document)},f7fe:function(t,n,e){(function(n){var e="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt,f="object"==typeof n&&n&&n.Object===Object&&n,l="object"==typeof self&&self&&self.Object===Object&&self,h=f||l||Function("return this")(),p=Object.prototype,d=p.toString,v=Math.max,g=Math.min,y=function(){return h.Date.now()};function m(t,n,r){var i,o,u,a,c,s,f=0,l=!1,h=!1,p=!0;if("function"!=typeof t)throw new TypeError(e);function d(n){var e=i,r=o;return i=o=void 0,f=n,a=t.apply(r,e),a}function m(t){return f=t,c=setTimeout(M,n),l?d(t):a}function w(t){var e=t-s,r=t-f,i=n-e;return h?g(i,u-r):i}function _(t){var e=t-s,r=t-f;return void 0===s||e>=n||e<0||h&&r>=u}function M(){var t=y();if(_(t))return T(t);c=setTimeout(M,w(t))}function T(t){return c=void 0,p&&i?d(t):(i=o=void 0,a)}function A(){void 0!==c&&clearTimeout(c),f=0,i=s=o=c=void 0}function S(){return void 0===c?a:T(y())}function E(){var t=y(),e=_(t);if(i=arguments,o=this,s=t,e){if(void 0===c)return m(s);if(h)return c=setTimeout(M,n),d(s)}return void 0===c&&(c=setTimeout(M,n)),a}return n=x(n)||0,b(r)&&(l=!!r.leading,h="maxWait"in r,u=h?v(x(r.maxWait)||0,n):u,p="trailing"in r?!!r.trailing:p),E.cancel=A,E.flush=S,E}function b(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function w(t){return!!t&&"object"==typeof t}function _(t){return"symbol"==typeof t||w(t)&&d.call(t)==i}function x(t){if("number"==typeof t)return t;if(_(t))return r;if(b(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=b(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var e=a.test(t);return e||c.test(t)?s(t.slice(2),e?2:8):u.test(t)?r:+t}t.exports=m}).call(this,e("c8ba"))},fa5b:function(t,n,e){t.exports=e("5537")("native-function-to-string",Function.toString)},fab2:function(t,n,e){var r=e("7726").document;t.exports=r&&r.documentElement},fae3:function(t,n,e){"use strict";var r;(e.r(n),e.d(n,"breadcrumbTrail",(function(){return ms})),e.d(n,"colorSchemes",(function(){return Wc})),e.d(n,"highlightOnHover",(function(){return bs})),e.d(n,"nodeInfoDisplayer",(function(){return us})),e.d(n,"sunburst",(function(){return ts})),e.d(n,"zoomOnClick",(function(){return ws})),"undefined"!==typeof window)&&(e("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(e.p=r[1]));var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"graph"},[t._t("legend",null,{width:t.width,colorGetter:t.colorGetter,nodes:t.graphNodes,actions:t.actions}),e("div",{directives:[{name:"resize",rawName:"v-resize.throttle.250",value:t.resize,expression:"resize",modifiers:{250:!0,throttle:!0}}],staticClass:"viewport"},[t._t("top",null,{colorGetter:t.colorGetter,nodes:t.graphNodes,actions:t.actions}),t._t("default",null,{on:t.on,actions:t.actions})],2)],2)},o=[];e("55dd");function u(t){if(Array.isArray(t))return t}function a(t,n){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var e=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done);r=!0)if(e.push(u.value),n&&e.length===n)break}catch(c){i=!0,o=c}finally{try{r||null==a["return"]||a["return"]()}finally{if(i)throw o}}return e}}function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function s(t,n){if(t){if("string"===typeof t)return c(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,n):void 0}}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,n){return u(t)||a(t,n)||s(t,n)||f()}e("c5f6"),e("ac6a"),e("cadf"),e("456d"),e("7f7f");var h=e("428d"),p=e.n(h);function d(){}var v=function(t){return null==t?d:function(){return this.querySelector(t)}},g=function(t){"function"!==typeof t&&(t=v(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=a[f])&&(u=t.call(o,o.__data__,f,a))&&("__data__"in o&&(u.__data__=o.__data__),s[f]=u);return new nn(r,this._parents)};function y(){return[]}var m=function(t){return null==t?y:function(){return this.querySelectorAll(t)}},b=function(t){"function"!==typeof t&&(t=m(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new nn(r,i)},w=function(t){return function(){return this.matches(t)}},_=function(t){"function"!==typeof t&&(t=w(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new nn(r,this._parents)},x=function(t){return new Array(t.length)},M=function(){return new nn(this._enter||this._groups.map(x),this._parents)};function T(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}T.prototype={constructor:T,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var A=function(t){return function(){return t}},S="$";function E(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new T(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function O(t,n,e,r,i,o,u){var a,c,s,f={},l=n.length,h=o.length,p=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(p[a]=s=S+u.call(c,c.__data__,a,n),s in f?i[a]=c:f[s]=c);for(a=0;a<h;++a)s=S+u.call(t,o[a],a,o),(c=f[s])?(r[a]=c,c.__data__=o[a],f[s]=null):e[a]=new T(t,o[a]);for(a=0;a<l;++a)(c=n[a])&&f[p[a]]===c&&(i[a]=c)}var C=function(t,n){if(!t)return p=new Array(this.size()),s=-1,this.each((function(t){p[++s]=t})),p;var e=n?O:E,r=this._parents,i=this._groups;"function"!==typeof t&&(t=A(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,p=t.call(f,f&&f.__data__,s,r),d=p.length,v=a[s]=new Array(d),g=u[s]=new Array(d),y=c[s]=new Array(h);e(f,l,v,g,y,p,n);for(var m,b,w=0,_=0;w<d;++w)if(m=v[w]){w>=_&&(_=w+1);while(!(b=g[_])&&++_<d);m._next=b||null}}return u=new nn(u,r),u._enter=a,u._exit=c,u},N=function(){return new nn(this._exit||this._groups.map(x),this._parents)},k=function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},j=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],f=e[a],l=s.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new nn(u,this._parents)},I=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},F=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=P);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,s=i[o]=new Array(c),f=0;f<c;++f)(u=a[f])&&(s[f]=u);s.sort(n)}return new nn(i,this._parents).order()};function P(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var D=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},L=function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},R=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},U=function(){var t=0;return this.each((function(){++t})),t},q=function(){return!this.node()},z=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},H="http://www.w3.org/1999/xhtml",$={svg:"http://www.w3.org/2000/svg",xhtml:H,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Y=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),$.hasOwnProperty(n)?{space:$[n],local:t}:t};function W(t){return function(){this.removeAttribute(t)}}function V(t){return function(){this.removeAttributeNS(t.space,t.local)}}function B(t,n){return function(){this.setAttribute(t,n)}}function X(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function G(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Z(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var Q=function(t,n){var e=Y(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?V:W:"function"===typeof n?e.local?Z:G:e.local?X:B)(e,n))},J=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function K(t){return function(){this.style.removeProperty(t)}}function tt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function nt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}var et=function(t,n,e){return arguments.length>1?this.each((null==n?K:"function"===typeof n?nt:tt)(t,n,null==e?"":e)):rt(this.node(),t)};function rt(t,n){return t.style.getPropertyValue(n)||J(t).getComputedStyle(t,null).getPropertyValue(n)}function it(t){return function(){delete this[t]}}function ot(t,n){return function(){this[t]=n}}function ut(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}var at=function(t,n){return arguments.length>1?this.each((null==n?it:"function"===typeof n?ut:ot)(t,n)):this.node()[t]};function ct(t){return t.trim().split(/^|\s+/)}function st(t){return t.classList||new ft(t)}function ft(t){this._node=t,this._names=ct(t.getAttribute("class")||"")}function lt(t,n){var e=st(t),r=-1,i=n.length;while(++r<i)e.add(n[r])}function ht(t,n){var e=st(t),r=-1,i=n.length;while(++r<i)e.remove(n[r])}function pt(t){return function(){lt(this,t)}}function dt(t){return function(){ht(this,t)}}function vt(t,n){return function(){(n.apply(this,arguments)?lt:ht)(this,t)}}ft.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var gt=function(t,n){var e=ct(t+"");if(arguments.length<2){var r=st(this.node()),i=-1,o=e.length;while(++i<o)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"===typeof n?vt:n?pt:dt)(e,n))};function yt(){this.textContent=""}function mt(t){return function(){this.textContent=t}}function bt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}var wt=function(t){return arguments.length?this.each(null==t?yt:("function"===typeof t?bt:mt)(t)):this.node().textContent};function _t(){this.innerHTML=""}function xt(t){return function(){this.innerHTML=t}}function Mt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}var Tt=function(t){return arguments.length?this.each(null==t?_t:("function"===typeof t?Mt:xt)(t)):this.node().innerHTML};function At(){this.nextSibling&&this.parentNode.appendChild(this)}var St=function(){return this.each(At)};function Et(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Ot=function(){return this.each(Et)};function Ct(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===H&&n.documentElement.namespaceURI===H?n.createElement(t):n.createElementNS(e,t)}}function Nt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var kt=function(t){var n=Y(t);return(n.local?Nt:Ct)(n)},jt=function(t){var n="function"===typeof t?t:kt(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))};function It(){return null}var Ft=function(t,n){var e="function"===typeof t?t:kt(t),r=null==n?It:"function"===typeof n?n:v(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))};function Pt(){var t=this.parentNode;t&&t.removeChild(this)}var Dt=function(){return this.each(Pt)};function Lt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Rt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var Ut=function(t){return this.select(t?Rt:Lt)},qt=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},zt={},Ht=null;if("undefined"!==typeof document){var $t=document.documentElement;"onmouseenter"in $t||(zt={mouseenter:"mouseover",mouseleave:"mouseout"})}function Yt(t,n,e){return t=Wt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Wt(t,n,e){return function(r){var i=Ht;Ht=r;try{t.call(this,this.__data__,n,e)}finally{Ht=i}}}function Vt(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function Bt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Xt(t,n,e){var r=zt.hasOwnProperty(t.type)?Yt:Wt;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var f=0,l=c.length;f<l;++f)if((a=c[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}var Gt=function(t,n,e){var r,i,o=Vt(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Xt:Bt,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,f=a.length;s<f;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value};function Zt(t,n,e){var r=J(t),i=r.CustomEvent;"function"===typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Qt(t,n){return function(){return Zt(this,t,n)}}function Jt(t,n){return function(){return Zt(this,t,n.apply(this,arguments))}}var Kt=function(t,n){return this.each(("function"===typeof n?Jt:Qt)(t,n))},tn=[null];function nn(t,n){this._groups=t,this._parents=n}function en(){return new nn([[document.documentElement]],tn)}nn.prototype=en.prototype={constructor:nn,select:g,selectAll:b,filter:_,data:C,enter:M,exit:N,join:k,merge:j,order:I,sort:F,call:D,nodes:L,node:R,size:U,empty:q,each:z,attr:Q,style:et,property:at,classed:gt,text:wt,html:Tt,raise:St,lower:Ot,append:jt,insert:Ft,remove:Dt,clone:Ut,datum:qt,on:Gt,dispatch:Kt};var rn=en,on=function(t){return"string"===typeof t?new nn([[document.querySelector(t)]],[document.documentElement]):new nn([[t]],tn)},un=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},an=function(t){return 1===t.length&&(t=cn(t)),{left:function(n,e,r,i){null==r&&(r=0),null==i&&(i=n.length);while(r<i){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){null==r&&(r=0),null==i&&(i=n.length);while(r<i){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}};function cn(t){return function(n,e){return un(t(n),e)}}var sn=an(un),fn=sn.right,ln=(sn.left,fn);var hn=Array.prototype,pn=(hn.slice,hn.map,Math.sqrt(50)),dn=Math.sqrt(10),vn=Math.sqrt(2),gn=function(t,n,e){var r,i,o,u,a=-1;if(n=+n,t=+t,e=+e,t===n&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=yn(t,n,e))||!isFinite(u))return[];if(u>0){t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));while(++a<i)o[a]=(t+a)*u}else{t=Math.floor(t*u),n=Math.ceil(n*u),o=new Array(i=Math.ceil(t-n+1));while(++a<i)o[a]=(t-a)/u}return r&&o.reverse(),o};function yn(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=pn?10:o>=dn?5:o>=vn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=pn?10:o>=dn?5:o>=vn?2:1)}function mn(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=pn?i*=10:o>=dn?i*=5:o>=vn&&(i*=2),n<t?-i:i}function bn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}var wn="$";function _n(){}function xn(t,n){var e=new _n;if(t instanceof _n)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)while(++i<o)e.set(i,t[i]);else while(++i<o)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}_n.prototype=xn.prototype={constructor:_n,has:function(t){return wn+t in this},get:function(t){return this[wn+t]},set:function(t,n){return this[wn+t]=n,this},remove:function(t){var n=wn+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===wn&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===wn&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===wn&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===wn&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===wn&&++t;return t},empty:function(){for(var t in this)if(t[0]===wn)return!1;return!0},each:function(t){for(var n in this)n[0]===wn&&t(this[n],n.slice(1),this)}};var Mn=xn;function Tn(){}var An=Mn.prototype;function Sn(t,n){var e=new Tn;if(t instanceof Tn)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)while(++r<i)e.add(t[r]);else while(++r<i)e.add(n(t[r],r,t))}return e}Tn.prototype=Sn.prototype={constructor:Tn,has:An.has,add:function(t){return t+="",this[wn+t]=t,this},remove:An.remove,clear:An.clear,values:An.keys,size:An.size,empty:An.empty,each:An.each};var En=Array.prototype,On=En.map,Cn=En.slice,Nn={name:"implicit"};function kn(){var t=Mn(),n=[],e=[],r=Nn;function i(i){var o=i+"",u=t.get(o);if(!u){if(r!==Nn)return r;t.set(o,u=n.push(i))}return e[(u-1)%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Mn();var r,o,u=-1,a=e.length;while(++u<a)t.has(o=(r=e[u])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=Cn.call(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return kn(n,e).unknown(r)},bn.apply(i,arguments),i}var jn=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function In(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Fn(){}var Pn=.7,Dn=1/Pn,Ln="\\s*([+-]?\\d+)\\s*",Rn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Un="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qn=/^#([0-9a-f]{3,8})$/,zn=new RegExp("^rgb\\("+[Ln,Ln,Ln]+"\\)$"),Hn=new RegExp("^rgb\\("+[Un,Un,Un]+"\\)$"),$n=new RegExp("^rgba\\("+[Ln,Ln,Ln,Rn]+"\\)$"),Yn=new RegExp("^rgba\\("+[Un,Un,Un,Rn]+"\\)$"),Wn=new RegExp("^hsl\\("+[Rn,Un,Un]+"\\)$"),Vn=new RegExp("^hsla\\("+[Rn,Un,Un,Rn]+"\\)$"),Bn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Xn(){return this.rgb().formatHex()}function Gn(){return ae(this).formatHsl()}function Zn(){return this.rgb().formatRgb()}function Qn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=qn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Jn(n):3===e?new ee(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Kn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Kn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=zn.exec(t))?new ee(n[1],n[2],n[3],1):(n=Hn.exec(t))?new ee(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=$n.exec(t))?Kn(n[1],n[2],n[3],n[4]):(n=Yn.exec(t))?Kn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Wn.exec(t))?ue(n[1],n[2]/100,n[3]/100,1):(n=Vn.exec(t))?ue(n[1],n[2]/100,n[3]/100,n[4]):Bn.hasOwnProperty(t)?Jn(Bn[t]):"transparent"===t?new ee(NaN,NaN,NaN,0):null}function Jn(t){return new ee(t>>16&255,t>>8&255,255&t,1)}function Kn(t,n,e,r){return r<=0&&(t=n=e=NaN),new ee(t,n,e,r)}function te(t){return t instanceof Fn||(t=Qn(t)),t?(t=t.rgb(),new ee(t.r,t.g,t.b,t.opacity)):new ee}function ne(t,n,e,r){return 1===arguments.length?te(t):new ee(t,n,e,null==r?1:r)}function ee(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function re(){return"#"+oe(this.r)+oe(this.g)+oe(this.b)}function ie(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function oe(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function ue(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new se(t,n,e,r)}function ae(t){if(t instanceof se)return new se(t.h,t.s,t.l,t.opacity);if(t instanceof Fn||(t=Qn(t)),!t)return new se;if(t instanceof se)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new se(u,a,c,t.opacity)}function ce(t,n,e,r){return 1===arguments.length?ae(t):new se(t,n,e,null==r?1:r)}function se(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function fe(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function le(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}jn(Fn,Qn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Xn,formatHex:Xn,formatHsl:Gn,formatRgb:Zn,toString:Zn}),jn(ee,ne,In(Fn,{brighter:function(t){return t=null==t?Dn:Math.pow(Dn,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Pn:Math.pow(Pn,t),new ee(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:re,formatHex:re,formatRgb:ie,toString:ie})),jn(se,ce,In(Fn,{brighter:function(t){return t=null==t?Dn:Math.pow(Dn,t),new se(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Pn:Math.pow(Pn,t),new se(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ee(fe(t>=240?t-240:t+120,i,r),fe(t,i,r),fe(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var he=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return le((e-r/n)*n,u,i,o,a)}},pe=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return le((e-r/n)*n,i,o,u,a)}},de=function(t){return function(){return t}};function ve(t,n){return function(e){return t+e*n}}function ge(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function ye(t){return 1===(t=+t)?me:function(n,e){return e-n?ge(n,e,t):de(isNaN(n)?e:n)}}function me(t,n){var e=n-t;return e?ve(t,e):de(isNaN(t)?n:t)}var be=function t(n){var e=ye(n);function r(t,n){var r=e((t=ne(t)).r,(n=ne(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=me(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function we(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=ne(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}we(he),we(pe);var _e=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}};function xe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Me(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=je(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}}var Te=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},Ae=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},Se=function(t,n){var e,r={},i={};for(e in null!==t&&"object"===typeof t||(t={}),null!==n&&"object"===typeof n||(n={}),n)e in t?r[e]=je(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},Ee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Oe=new RegExp(Ee.source,"g");function Ce(t){return function(){return t}}function Ne(t){return function(n){return t(n)+""}}var ke=function(t,n){var e,r,i,o=Ee.lastIndex=Oe.lastIndex=0,u=-1,a=[],c=[];t+="",n+="";while((e=Ee.exec(t))&&(r=Oe.exec(n)))(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:Ae(e,r)})),o=Oe.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?Ne(c[0].x):Ce(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},je=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?de(n):("number"===r?Ae:"string"===r?(e=Qn(n))?(n=e,be):ke:n instanceof Qn?be:n instanceof Date?Te:xe(n)?_e:Array.isArray(n)?Me:"function"!==typeof n.valueOf&&"function"!==typeof n.toString||isNaN(n)?Se:Ae)(t,n)},Ie=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},Fe=function(t){return function(){return t}},Pe=function(t){return+t},De=[0,1];function Le(t){return t}function Re(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Fe(isNaN(n)?NaN:.5)}function Ue(t){var n,e=t[0],r=t[t.length-1];return e>r&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function qe(t,n,e){var r=t[0],i=t[1],o=n[0],u=n[1];return i<r?(r=Re(i,r),o=e(u,o)):(r=Re(r,i),o=e(o,u)),function(t){return o(r(t))}}function ze(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),u=-1;t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());while(++u<r)i[u]=Re(t[u],t[u+1]),o[u]=e(n[u],n[u+1]);return function(n){var e=ln(t,n,1,r)-1;return o[e](i[e](n))}}function He(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function $e(){var t,n,e,r,i,o,u=De,a=De,c=je,s=Le;function f(){return r=Math.min(u.length,a.length)>2?ze:qe,i=o=null,l}function l(n){return isNaN(n=+n)?e:(i||(i=r(u.map(t),a,c)))(t(s(n)))}return l.invert=function(e){return s(n((o||(o=r(a,u.map(t),Ae)))(e)))},l.domain=function(t){return arguments.length?(u=On.call(t,Pe),s===Le||(s=Ue(u)),f()):u.slice()},l.range=function(t){return arguments.length?(a=Cn.call(t),f()):a.slice()},l.rangeRound=function(t){return a=Cn.call(t),c=Ie,f()},l.clamp=function(t){return arguments.length?(s=t?Ue(u):Le,l):s!==Le},l.interpolate=function(t){return arguments.length?(c=t,f()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,f()}}function Ye(t,n){return $e()(t,n)}var We=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ve(t){if(!(n=We.exec(t)))throw new Error("invalid format: "+t);var n;return new Be({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Be(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Ve.prototype=Be.prototype,Be.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Xe,Ge,Ze,Qe,Je=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},Ke=function(t){return t=Je(Math.abs(t)),t?t[1]:NaN},tr=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ke(n)/3)))-Ke(Math.abs(t)))},nr=function(t,n){return function(e,r){var i=e.length,o=[],u=0,a=t[0],c=0;while(i>0&&a>0){if(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),(c+=a+1)>r)break;a=t[u=(u+1)%t.length]}return o.reverse().join(n)}},er=function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}},rr=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(n+1):t},ir=function(t,n){var e=Je(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Xe=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Je(t,Math.max(0,n+o-1))[0]},or=function(t,n){var e=Je(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},ur={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return or(100*t,n)},r:or,s:ir,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ar=function(t){return t},cr=Array.prototype.map,sr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],fr=function(t){var n=void 0===t.grouping||void 0===t.thousands?ar:nr(cr.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?ar:er(cr.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function s(t){t=Ve(t);var s=t.fill,f=t.align,l=t.sign,h=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,y=t.trim,m=t.type;"n"===m?(v=!0,m="g"):ur[m]||(void 0===g&&(g=12),y=!0,m="g"),(p||"0"===s&&"="===f)&&(p=!0,s="0",f="=");var b="$"===h?e:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?r:/[%p]/.test(m)?u:"",_=ur[m],x=/[defgprs%]/.test(m);function M(t){var e,r,u,h=b,M=w;if("c"===m)M=_(t)+M,t="";else{t=+t;var T=t<0||1/t<0;if(t=isNaN(t)?c:_(Math.abs(t),g),y&&(t=rr(t)),T&&0===+t&&"+"!==l&&(T=!1),h=(T?"("===l?l:a:"-"===l||"("===l?"":l)+h,M=("s"===m?sr[8+Xe/3]:"")+M+(T&&"("===l?")":""),x){e=-1,r=t.length;while(++e<r)if(u=t.charCodeAt(e),48>u||u>57){M=(46===u?i+t.slice(e+1):t.slice(e))+M,t=t.slice(0,e);break}}}v&&!p&&(t=n(t,1/0));var A=h.length+t.length+M.length,S=A<d?new Array(d-A+1).join(s):"";switch(v&&p&&(t=n(S+t,S.length?d-M.length:1/0),S=""),f){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}function f(t,n){var e=s((t=Ve(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ke(n)/3))),i=Math.pow(10,-r),o=sr[8+r/3];return function(t){return e(i*t)+o}}return{format:s,formatPrefix:f}};function lr(t){return Ge=fr(t),Ze=Ge.format,Qe=Ge.formatPrefix,Ge}lr({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var hr=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ke(n)-Ke(t))+1},pr=function(t){return Math.max(0,-Ke(Math.abs(t)))},dr=function(t,n,e,r){var i,o=mn(t,n,e);switch(r=Ve(null==r?",f":r),r.type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=tr(o,u))||(r.precision=i),Qe(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=hr(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=pr(o))||(r.precision=i-2*("%"===r.type));break}return Ze(r)};function vr(t){var n=t.domain;return t.ticks=function(t){var e=n();return gn(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return dr(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],c=i[u];return c<a&&(r=a,a=c,c=r,r=o,o=u,u=r),r=yn(a,c,e),r>0?(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,r=yn(a,c,e)):r<0&&(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,r=yn(a,c,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,n(i)),t},t}function gr(){var t=Ye(Le,Le);return t.copy=function(){return He(t,gr())},bn.apply(t,arguments),vr(t)}function yr(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function mr(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function br(t){return t<0?-t*t:t*t}function wr(t){var n=t(Le,Le),e=1;function r(){return 1===e?t(Le,Le):.5===e?t(mr,br):t(yr(e),yr(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},vr(n)}function _r(){var t=wr($e());return t.copy=function(){return He(t,_r()).exponent(t.exponent())},bn.apply(t,arguments),t}function xr(){return _r.apply(null,arguments).exponent(.5)}var Mr=new Date,Tr=new Date;function Ar(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r)||!(o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return Ar((function(n){if(n>=n)while(t(n),!e(n))n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)while(++r<=0)while(n(t,-1),!e(t));else while(--r>=0)while(n(t,1),!e(t));}))},e&&(i.count=function(n,r){return Mr.setTime(+n),Tr.setTime(+r),t(Mr),t(Tr),Math.floor(e(Mr,Tr))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t===0}:function(n){return i.count(0,n)%t===0}):i:null}),i}var Sr=Ar((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Sr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ar((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var Er=Sr,Or=(Sr.range,Ar((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Cr=(Or.range,1e3),Nr=6e4,kr=36e5,jr=864e5,Ir=6048e5;function Fr(t){return Ar((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nr)/Ir}))}var Pr=Fr(0),Dr=Fr(1),Lr=Fr(2),Rr=Fr(3),Ur=Fr(4),qr=Fr(5),zr=Fr(6),Hr=(Pr.range,Dr.range,Lr.range,Rr.range,Ur.range,qr.range,zr.range,Ar((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nr)/jr}),(function(t){return t.getDate()-1}))),$r=Hr,Yr=(Hr.range,Ar((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cr-t.getMinutes()*Nr)}),(function(t,n){t.setTime(+t+n*kr)}),(function(t,n){return(n-t)/kr}),(function(t){return t.getHours()}))),Wr=(Yr.range,Ar((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cr)}),(function(t,n){t.setTime(+t+n*Nr)}),(function(t,n){return(n-t)/Nr}),(function(t){return t.getMinutes()}))),Vr=(Wr.range,Ar((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Cr)}),(function(t,n){return(n-t)/Cr}),(function(t){return t.getUTCSeconds()}))),Br=(Vr.range,Ar((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t})));Br.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ar((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Br:null};Br.range;function Xr(t){return Ar((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Ir}))}var Gr=Xr(0),Zr=Xr(1),Qr=Xr(2),Jr=Xr(3),Kr=Xr(4),ti=Xr(5),ni=Xr(6),ei=(Gr.range,Zr.range,Qr.range,Jr.range,Kr.range,ti.range,ni.range,Ar((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/jr}),(function(t){return t.getUTCDate()-1}))),ri=ei,ii=(ei.range,Ar((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));ii.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ar((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var oi=ii;ii.range;function ui(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ai(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ci(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function si(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,s=yi(i),f=mi(i),l=yi(o),h=mi(o),p=yi(u),d=mi(u),v=yi(a),g=mi(a),y=yi(c),m=mi(c),b={a:I,A:F,b:P,B:D,c:null,d:Ui,e:Ui,f:Yi,H:qi,I:zi,j:Hi,L:$i,m:Wi,M:Vi,p:L,q:R,Q:_o,s:xo,S:Bi,u:Xi,U:Gi,V:Zi,w:Qi,W:Ji,x:null,X:null,y:Ki,Y:to,Z:no,"%":wo},w={a:U,A:q,b:z,B:H,c:null,d:eo,e:eo,f:ao,H:ro,I:io,j:oo,L:uo,m:co,M:so,p:$,q:Y,Q:_o,s:xo,S:fo,u:lo,U:ho,V:po,w:vo,W:go,x:null,X:null,y:yo,Y:mo,Z:bo,"%":wo},_={a:S,A:E,b:O,B:C,c:N,d:Ci,e:Ci,f:Pi,H:ki,I:ki,j:Ni,L:Fi,m:Oi,M:ji,p:A,q:Ei,Q:Li,s:Ri,S:Ii,u:wi,U:_i,V:xi,w:bi,W:Mi,x:k,X:j,y:Ai,Y:Ti,Z:Si,"%":Di};function x(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;e instanceof Date||(e=new Date(+e));while(++a<s)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=li[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function M(t,n){return function(e){var r,i,o=ci(1900,void 0,1),u=T(o,t,e+="",0);if(u!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=ai(ci(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Zr.ceil(r):Zr(r),r=ri.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=ui(ci(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Dr.ceil(r):Dr(r),r=$r.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ai(ci(o.y,0,1)).getUTCDay():ui(ci(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ai(o)):ui(o)}}function T(t,n,e,r){var i,o,u=0,a=n.length,c=e.length;while(u<a){if(r>=c)return-1;if(i=n.charCodeAt(u++),37===i){if(i=n.charAt(u++),o=_[i in li?n.charAt(u++):i],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function A(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=f[r[0].toLowerCase()],e+r[0].length):-1}function S(t,n,e){var r=p.exec(n.slice(e));return r?(t.w=d[r[0].toLowerCase()],e+r[0].length):-1}function E(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1}function O(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1}function C(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=g[r[0].toLowerCase()],e+r[0].length):-1}function N(t,e,r){return T(t,n,e,r)}function k(t,n,r){return T(t,e,n,r)}function j(t,n,e){return T(t,r,n,e)}function I(t){return u[t.getDay()]}function F(t){return o[t.getDay()]}function P(t){return c[t.getMonth()]}function D(t){return a[t.getMonth()]}function L(t){return i[+(t.getHours()>=12)]}function R(t){return 1+~~(t.getMonth()/3)}function U(t){return u[t.getUTCDay()]}function q(t){return o[t.getUTCDay()]}function z(t){return c[t.getUTCMonth()]}function H(t){return a[t.getUTCMonth()]}function $(t){return i[+(t.getUTCHours()>=12)]}function Y(t){return 1+~~(t.getUTCMonth()/3)}return b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),w.x=x(e,w),w.X=x(r,w),w.c=x(n,w),{format:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",w);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var fi,li={"-":"",_:" ",0:"0"},hi=/^\s*\d+/,pi=/^%/,di=/[\\^$*+?|[\]().{}]/g;function vi(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function gi(t){return t.replace(di,"\\$&")}function yi(t){return new RegExp("^(?:"+t.map(gi).join("|")+")","i")}function mi(t){var n={},e=-1,r=t.length;while(++e<r)n[t[e].toLowerCase()]=e;return n}function bi(t,n,e){var r=hi.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function wi(t,n,e){var r=hi.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function _i(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function xi(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Mi(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Ti(t,n,e){var r=hi.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Ai(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Si(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ei(t,n,e){var r=hi.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Oi(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Ci(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Ni(t,n,e){var r=hi.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ji(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Ii(t,n,e){var r=hi.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Fi(t,n,e){var r=hi.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Pi(t,n,e){var r=hi.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Di(t,n,e){var r=pi.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Li(t,n,e){var r=hi.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ri(t,n,e){var r=hi.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ui(t,n){return vi(t.getDate(),n,2)}function qi(t,n){return vi(t.getHours(),n,2)}function zi(t,n){return vi(t.getHours()%12||12,n,2)}function Hi(t,n){return vi(1+$r.count(Er(t),t),n,3)}function $i(t,n){return vi(t.getMilliseconds(),n,3)}function Yi(t,n){return $i(t,n)+"000"}function Wi(t,n){return vi(t.getMonth()+1,n,2)}function Vi(t,n){return vi(t.getMinutes(),n,2)}function Bi(t,n){return vi(t.getSeconds(),n,2)}function Xi(t){var n=t.getDay();return 0===n?7:n}function Gi(t,n){return vi(Pr.count(Er(t)-1,t),n,2)}function Zi(t,n){var e=t.getDay();return t=e>=4||0===e?Ur(t):Ur.ceil(t),vi(Ur.count(Er(t),t)+(4===Er(t).getDay()),n,2)}function Qi(t){return t.getDay()}function Ji(t,n){return vi(Dr.count(Er(t)-1,t),n,2)}function Ki(t,n){return vi(t.getFullYear()%100,n,2)}function to(t,n){return vi(t.getFullYear()%1e4,n,4)}function no(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+vi(n/60|0,"0",2)+vi(n%60,"0",2)}function eo(t,n){return vi(t.getUTCDate(),n,2)}function ro(t,n){return vi(t.getUTCHours(),n,2)}function io(t,n){return vi(t.getUTCHours()%12||12,n,2)}function oo(t,n){return vi(1+ri.count(oi(t),t),n,3)}function uo(t,n){return vi(t.getUTCMilliseconds(),n,3)}function ao(t,n){return uo(t,n)+"000"}function co(t,n){return vi(t.getUTCMonth()+1,n,2)}function so(t,n){return vi(t.getUTCMinutes(),n,2)}function fo(t,n){return vi(t.getUTCSeconds(),n,2)}function lo(t){var n=t.getUTCDay();return 0===n?7:n}function ho(t,n){return vi(Gr.count(oi(t)-1,t),n,2)}function po(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Kr(t):Kr.ceil(t),vi(Kr.count(oi(t),t)+(4===oi(t).getUTCDay()),n,2)}function vo(t){return t.getUTCDay()}function go(t,n){return vi(Zr.count(oi(t)-1,t),n,2)}function yo(t,n){return vi(t.getUTCFullYear()%100,n,2)}function mo(t,n){return vi(t.getUTCFullYear()%1e4,n,4)}function bo(){return"+0000"}function wo(){return"%"}function _o(t){return+t}function xo(t){return Math.floor(+t/1e3)}function Mo(t){return fi=si(t),fi.format,fi.parse,fi.utcFormat,fi.utcParse,fi}Mo({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var To=Ar((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Ao=(To.range,Ar((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*kr)}),(function(t,n){return(n-t)/kr}),(function(t){return t.getUTCHours()}))),So=(Ao.range,Ar((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Nr)}),(function(t,n){return(n-t)/Nr}),(function(t){return t.getUTCMinutes()})));So.range;function Eo(t){var n=0,e=t.children,r=e&&e.length;if(r)while(--r>=0)n+=e[r].value;else n=1;t.value=n}var Oo=function(){return this.eachAfter(Eo)},Co=function(t){var n,e,r,i,o=this,u=[o];do{n=u.reverse(),u=[];while(o=n.pop())if(t(o),e=o.children,e)for(r=0,i=e.length;r<i;++r)u.push(e[r])}while(u.length);return this},No=function(t){var n,e,r=this,i=[r];while(r=i.pop())if(t(r),n=r.children,n)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},ko=function(t){var n,e,r,i=this,o=[i],u=[];while(i=o.pop())if(u.push(i),n=i.children,n)for(e=0,r=n.length;e<r;++e)o.push(n[e]);while(i=u.pop())t(i);return this},jo=function(t){return this.eachAfter((function(n){var e=+t(n.data)||0,r=n.children,i=r&&r.length;while(--i>=0)e+=r[i].value;n.value=e}))},Io=function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},Fo=function(t){var n=this,e=Po(n,t),r=[n];while(n!==e)n=n.parent,r.push(n);var i=r.length;while(t!==e)r.splice(i,0,t),t=t.parent;return r};function Po(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();while(t===n)i=t,t=e.pop(),n=r.pop();return i}var Do=function(){var t=this,n=[t];while(t=t.parent)n.push(t);return n},Lo=function(){var t=[];return this.each((function(n){t.push(n)})),t},Ro=function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},Uo=function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n};function qo(t,n){var e,r,i,o,u,a=new Wo(t),c=+t.value&&(a.value=t.value),s=[a];null==n&&(n=Ho);while(e=s.pop())if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)s.push(r=e.children[o]=new Wo(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Yo)}function zo(){return qo(this).eachBefore($o)}function Ho(t){return t.children}function $o(t){t.data=t.data.data}function Yo(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Wo(t){this.data=t,this.depth=this.height=0,this.parent=null}Wo.prototype=qo.prototype={constructor:Wo,count:Oo,each:Co,eachAfter:ko,eachBefore:No,sum:jo,sort:Io,path:Fo,ancestors:Do,descendants:Lo,leaves:Ro,links:Uo,copy:zo};var Vo=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Bo=function(t,n,e,r,i){var o,u=t.children,a=-1,c=u.length,s=t.value&&(r-n)/t.value;while(++a<c)o=u[a],o.y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s},Xo=function(){var t=1,n=1,e=0,r=!1;function i(i){var u=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/u,i.eachBefore(o(n,u)),r&&i.eachBefore(Vo),i}function o(t,n){return function(r){r.children&&Bo(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,u=r.x1-e,a=r.y1-e;u<i&&(i=u=(i+u)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=u,r.y1=a}}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i},Go=Math.PI,Zo=2*Go,Qo=1e-6,Jo=Zo-Qo;function Ko(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function tu(){return new Ko}Ko.prototype=tu.prototype={constructor:Ko,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,s=o-t,f=u-n,l=s*s+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>Qo)if(Math.abs(f*a-c*s)>Qo&&i){var h=e-o,p=r-u,d=a*a+c*c,v=h*h+p*p,g=Math.sqrt(d),y=Math.sqrt(l),m=i*Math.tan((Go-Math.acos((d+l-v)/(2*g*y)))/2),b=m/y,w=m/g;Math.abs(b-1)>Qo&&(this._+="L"+(t+b*s)+","+(n+b*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*p)+","+(this._x1=t+w*a)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e,o=!!o;var u=e*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Qo||Math.abs(this._y1-s)>Qo)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%Zo+Zo),l>Jo?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>Qo&&(this._+="A"+e+","+e+",0,"+ +(l>=Go)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var nu=tu,eu=function(t){return function(){return t}},ru=Math.abs,iu=Math.atan2,ou=Math.cos,uu=Math.max,au=Math.min,cu=Math.sin,su=Math.sqrt,fu=1e-12,lu=Math.PI,hu=lu/2,pu=2*lu;function du(t){return t>1?0:t<-1?lu:Math.acos(t)}function vu(t){return t>=1?hu:t<=-1?-hu:Math.asin(t)}function gu(t){return t.innerRadius}function yu(t){return t.outerRadius}function mu(t){return t.startAngle}function bu(t){return t.endAngle}function wu(t){return t&&t.padAngle}function _u(t,n,e,r,i,o,u,a){var c=e-t,s=r-n,f=u-i,l=a-o,h=l*c-f*s;if(!(h*h<fu))return h=(f*(n-o)-l*(t-i))/h,[t+h*c,n+h*s]}function xu(t,n,e,r,i,o,u){var a=t-e,c=n-r,s=(u?o:-o)/su(a*a+c*c),f=s*c,l=-s*a,h=t+f,p=n+l,d=e+f,v=r+l,g=(h+d)/2,y=(p+v)/2,m=d-h,b=v-p,w=m*m+b*b,_=i-o,x=h*v-d*p,M=(b<0?-1:1)*su(uu(0,_*_*w-x*x)),T=(x*b-m*M)/w,A=(-x*m-b*M)/w,S=(x*b+m*M)/w,E=(-x*m+b*M)/w,O=T-g,C=A-y,N=S-g,k=E-y;return O*O+C*C>N*N+k*k&&(T=S,A=E),{cx:T,cy:A,x01:-f,y01:-l,x11:T*(i/_-1),y11:A*(i/_-1)}}var Mu=function(){var t=gu,n=yu,e=eu(0),r=null,i=mu,o=bu,u=wu,a=null;function c(){var c,s,f=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-hu,p=o.apply(this,arguments)-hu,d=ru(p-h),v=p>h;if(a||(a=c=nu()),l<f&&(s=l,l=f,f=s),l>fu)if(d>pu-fu)a.moveTo(l*ou(h),l*cu(h)),a.arc(0,0,l,h,p,!v),f>fu&&(a.moveTo(f*ou(p),f*cu(p)),a.arc(0,0,f,p,h,v));else{var g,y,m=h,b=p,w=h,_=p,x=d,M=d,T=u.apply(this,arguments)/2,A=T>fu&&(r?+r.apply(this,arguments):su(f*f+l*l)),S=au(ru(l-f)/2,+e.apply(this,arguments)),E=S,O=S;if(A>fu){var C=vu(A/f*cu(T)),N=vu(A/l*cu(T));(x-=2*C)>fu?(C*=v?1:-1,w+=C,_-=C):(x=0,w=_=(h+p)/2),(M-=2*N)>fu?(N*=v?1:-1,m+=N,b-=N):(M=0,m=b=(h+p)/2)}var k=l*ou(m),j=l*cu(m),I=f*ou(_),F=f*cu(_);if(S>fu){var P,D=l*ou(b),L=l*cu(b),R=f*ou(w),U=f*cu(w);if(d<lu&&(P=_u(k,j,R,U,D,L,I,F))){var q=k-P[0],z=j-P[1],H=D-P[0],$=L-P[1],Y=1/cu(du((q*H+z*$)/(su(q*q+z*z)*su(H*H+$*$)))/2),W=su(P[0]*P[0]+P[1]*P[1]);E=au(S,(f-W)/(Y-1)),O=au(S,(l-W)/(Y+1))}}M>fu?O>fu?(g=xu(R,U,k,j,l,O,v),y=xu(D,L,I,F,l,O,v),a.moveTo(g.cx+g.x01,g.cy+g.y01),O<S?a.arc(g.cx,g.cy,O,iu(g.y01,g.x01),iu(y.y01,y.x01),!v):(a.arc(g.cx,g.cy,O,iu(g.y01,g.x01),iu(g.y11,g.x11),!v),a.arc(0,0,l,iu(g.cy+g.y11,g.cx+g.x11),iu(y.cy+y.y11,y.cx+y.x11),!v),a.arc(y.cx,y.cy,O,iu(y.y11,y.x11),iu(y.y01,y.x01),!v))):(a.moveTo(k,j),a.arc(0,0,l,m,b,!v)):a.moveTo(k,j),f>fu&&x>fu?E>fu?(g=xu(I,F,D,L,f,-E,v),y=xu(k,j,R,U,f,-E,v),a.lineTo(g.cx+g.x01,g.cy+g.y01),E<S?a.arc(g.cx,g.cy,E,iu(g.y01,g.x01),iu(y.y01,y.x01),!v):(a.arc(g.cx,g.cy,E,iu(g.y01,g.x01),iu(g.y11,g.x11),!v),a.arc(0,0,f,iu(g.cy+g.y11,g.cx+g.x11),iu(y.cy+y.y11,y.cx+y.x11),v),a.arc(y.cx,y.cy,E,iu(y.y11,y.x11),iu(y.y01,y.x01),!v))):a.arc(0,0,f,_,w,v):a.lineTo(I,F)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-lu/2;return[ou(r)*e,cu(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"===typeof n?n:eu(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"===typeof t?t:eu(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"===typeof t?t:eu(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:eu(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:eu(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:eu(+t),c):o},c.padAngle=function(t){return arguments.length?(u="function"===typeof t?t:eu(+t),c):u},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c},Tu={value:function(){}};function Au(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Su(r)}function Su(t){this._=t}function Eu(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function Ou(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Cu(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Tu,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}Su.prototype=Au.prototype={constructor:Su,on:function(t,n){var e,r=this._,i=Eu(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!==typeof n)throw new Error("invalid callback: "+n);while(++o<u)if(e=(t=i[o]).type)r[e]=Cu(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Cu(r[e],t.name,null);return this}while(++o<u)if((e=(t=i[o]).type)&&(e=Ou(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Su(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Nu,ku,ju=Au,Iu=0,Fu=0,Pu=0,Du=1e3,Lu=0,Ru=0,Uu=0,qu="object"===typeof performance&&performance.now?performance:Date,zu="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Hu(){return Ru||(zu($u),Ru=qu.now()+Uu)}function $u(){Ru=0}function Yu(){this._call=this._time=this._next=null}function Wu(t,n,e){var r=new Yu;return r.restart(t,n,e),r}function Vu(){Hu(),++Iu;var t,n=Nu;while(n)(t=Ru-n._time)>=0&&n._call.call(null,t),n=n._next;--Iu}function Bu(){Ru=(Lu=qu.now())+Uu,Iu=Fu=0;try{Vu()}finally{Iu=0,Gu(),Ru=0}}function Xu(){var t=qu.now(),n=t-Lu;n>Du&&(Uu-=n,Lu=t)}function Gu(){var t,n,e=Nu,r=1/0;while(e)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Nu=n);ku=t,Zu(r)}function Zu(t){if(!Iu){Fu&&(Fu=clearTimeout(Fu));var n=t-Ru;n>24?(t<1/0&&(Fu=setTimeout(Bu,t-qu.now()-Uu)),Pu&&(Pu=clearInterval(Pu))):(Pu||(Lu=qu.now(),Pu=setInterval(Xu,Du)),Iu=1,zu(Bu))}}Yu.prototype=Wu.prototype={constructor:Yu,restart:function(t,n,e){if("function"!==typeof t)throw new TypeError("callback is not a function");e=(null==e?Hu():+e)+(null==n?0:+n),this._next||ku===this||(ku?ku._next=this:Nu=this,ku=this),this._call=t,this._time=e,Zu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zu())}};var Qu=function(t,n,e){var r=new Yu;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},Ju=ju("start","end","cancel","interrupt"),Ku=[],ta=0,na=1,ea=2,ra=3,ia=4,oa=5,ua=6,aa=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};la(t,e,{name:n,index:r,group:i,on:Ju,tween:Ku,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ta})};function ca(t,n){var e=fa(t,n);if(e.state>ta)throw new Error("too late; already scheduled");return e}function sa(t,n){var e=fa(t,n);if(e.state>ra)throw new Error("too late; already running");return e}function fa(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function la(t,n,e){var r,i=t.__transition;function o(t){e.state=na,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}function u(o){var s,f,l,h;if(e.state!==na)return c();for(s in i)if(h=i[s],h.name===e.name){if(h.state===ra)return Qu(u);h.state===ia?(h.state=ua,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<n&&(h.state=ua,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(Qu((function(){e.state===ra&&(e.state=ia,e.timer.restart(a,e.delay,e.time),a(o))})),e.state=ea,e.on.call("start",t,t.__data__,e.index,e.group),e.state===ea){for(e.state=ra,r=new Array(l=e.tween.length),s=0,f=-1;s<l;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++f]=h);r.length=f+1}}function a(n){var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(c),e.state=oa,1),o=-1,u=r.length;while(++o<u)r[o].call(t,i);e.state===oa&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){for(var r in e.state=ua,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Wu(o,0,e.time)}var ha,pa,da,va,ga=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>ea&&e.state<oa,e.state=ua,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},ya=function(t){return this.each((function(){ga(this,t)}))},ma=180/Math.PI,ba={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},wa=function(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*ma,skewX:Math.atan(c)*ma,scaleX:u,scaleY:a}};function _a(t){return"none"===t?ba:(ha||(ha=document.createElement("DIV"),pa=document.documentElement,da=document.defaultView),ha.style.transform=t,t=da.getComputedStyle(pa.appendChild(ha),null).getPropertyValue("transform"),pa.removeChild(ha),t=t.slice(7,-1).split(","),wa(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function xa(t){return null==t?ba:(va||(va=document.createElementNS("http://www.w3.org/2000/svg","g")),va.setAttribute("transform",t),(t=va.transform.baseVal.consolidate())?(t=t.matrix,wa(t.a,t.b,t.c,t.d,t.e,t.f)):ba)}function Ma(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:Ae(t,i)},{i:c-2,x:Ae(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}function u(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Ae(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function a(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Ae(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function c(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:Ae(t,e)},{i:a-2,x:Ae(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),u(n.rotate,e.rotate,r,i),a(n.skewX,e.skewX,r,i),c(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){var n,e=-1,o=i.length;while(++e<o)r[(n=i[e]).i]=n.x(t);return r.join("")}}}var Ta=Ma(_a,"px, ","px)","deg)"),Aa=Ma(xa,", ",")",")");function Sa(t,n){var e,r;return function(){var i=sa(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function Ea(t,n,e){var r,i;if("function"!==typeof e)throw new Error;return function(){var o=sa(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=a;break}c===s&&i.push(a)}o.tween=i}}var Oa=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=fa(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Sa:Ea)(e,t,n))};function Ca(t,n,e){var r=t._id;return t.each((function(){var t=sa(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return fa(t,r).value[n]}}var Na=function(t,n){var e;return("number"===typeof n?Ae:n instanceof Qn?be:(e=Qn(n))?(n=e,be):ke)(t,n)};function ka(t){return function(){this.removeAttribute(t)}}function ja(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ia(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Fa(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function Pa(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return u=this.getAttribute(t),a=c+"",u===a?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttribute(t)}}function Da(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return u=this.getAttributeNS(t.space,t.local),a=c+"",u===a?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttributeNS(t.space,t.local)}}var La=function(t,n){var e=Y(t),r="transform"===e?Aa:Na;return this.attrTween(t,"function"===typeof n?(e.local?Da:Pa)(e,r,Ca(this,"attr."+t,n)):null==n?(e.local?ja:ka)(e):(e.local?Fa:Ia)(e,r,n))};function Ra(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Ua(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function qa(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Ua(t,i)),e}return i._value=n,i}function za(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Ra(t,i)),e}return i._value=n,i}var Ha=function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!==typeof n)throw new Error;var r=Y(t);return this.tween(e,(r.local?qa:za)(r,n))};function $a(t,n){return function(){ca(this,t).delay=+n.apply(this,arguments)}}function Ya(t,n){return n=+n,function(){ca(this,t).delay=n}}var Wa=function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?$a:Ya)(n,t)):fa(this.node(),n).delay};function Va(t,n){return function(){sa(this,t).duration=+n.apply(this,arguments)}}function Ba(t,n){return n=+n,function(){sa(this,t).duration=n}}var Xa=function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?Va:Ba)(n,t)):fa(this.node(),n).duration};function Ga(t,n){if("function"!==typeof n)throw new Error;return function(){sa(this,t).ease=n}}var Za=function(t){var n=this._id;return arguments.length?this.each(Ga(n,t)):fa(this.node(),n).ease},Qa=function(t){"function"!==typeof t&&(t=w(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new Sc(r,this._parents,this._name,this._id)},Ja=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],f=e[a],l=s.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new Sc(u,this._parents,this._name,this._id)};function Ka(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}function tc(t,n,e){var r,i,o=Ka(n)?ca:sa;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}var nc=function(t,n){var e=this._id;return arguments.length<2?fa(this.node(),e).on.on(t):this.each(tc(e,t,n))};function ec(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}var rc=function(){return this.on("end.remove",ec(this._id))},ic=function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=v(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,s=r[u],f=s.length,l=o[u]=new Array(f),h=0;h<f;++h)(a=s[h])&&(c=t.call(a,a.__data__,h,s))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,aa(l[h],n,e,h,l,fa(a,e)));return new Sc(o,this._parents,n,e)},oc=function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=m(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,s=r[a],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,p=t.call(c,c.__data__,l,s),d=fa(c,e),v=0,g=p.length;v<g;++v)(h=p[v])&&aa(h,n,e,v,p,d);o.push(p),u.push(c)}return new Sc(o,u,n,e)},uc=rn.prototype.constructor,ac=function(){return new uc(this._groups,this._parents)};function cc(t,n){var e,r,i;return function(){var o=rt(this,t),u=(this.style.removeProperty(t),rt(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function sc(t){return function(){this.style.removeProperty(t)}}function fc(t,n,e){var r,i,o=e+"";return function(){var u=rt(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}function lc(t,n,e){var r,i,o;return function(){var u=rt(this,t),a=e(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=rt(this,t)),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}function hc(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var c=sa(this,t),s=c.on,f=null==c.value[u]?o||(o=sc(n)):void 0;s===e&&i===f||(r=(e=s).copy()).on(a,i=f),c.on=r}}var pc=function(t,n,e){var r="transform"===(t+="")?Ta:Na;return null==n?this.styleTween(t,cc(t,r)).on("end.style."+t,sc(t)):"function"===typeof n?this.styleTween(t,lc(t,r,Ca(this,"style."+t,n))).each(hc(this._id,t)):this.styleTween(t,fc(t,r,n),e).on("end.style."+t,null)};function dc(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function vc(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&dc(t,o,e)),r}return o._value=n,o}var gc=function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!==typeof n)throw new Error;return this.tween(r,vc(t,n,null==e?"":e))};function yc(t){return function(){this.textContent=t}}function mc(t){return function(){var n=t(this);this.textContent=null==n?"":n}}var bc=function(t){return this.tween("text","function"===typeof t?mc(Ca(this,"text",t)):yc(null==t?"":t+""))};function wc(t){return function(n){this.textContent=t.call(this,n)}}function _c(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&wc(r)),n}return r._value=t,r}var xc=function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;return this.tween(n,_c(t))},Mc=function(){for(var t=this._name,n=this._id,e=Oc(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)if(u=a[s]){var f=fa(u,n);aa(u,t,e,s,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Sc(r,this._parents,t,e)},Tc=function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},c={value:function(){0===--i&&o()}};e.each((function(){var e=sa(this,r),i=e.on;i!==t&&(n=(t=i).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),e.on=n}))}))},Ac=0;function Sc(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Ec(t){return rn().transition(t)}function Oc(){return++Ac}var Cc=rn.prototype;function Nc(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Sc.prototype=Ec.prototype={constructor:Sc,select:ic,selectAll:oc,filter:Qa,merge:Ja,selection:ac,transition:Mc,call:Cc.call,nodes:Cc.nodes,node:Cc.node,size:Cc.size,empty:Cc.empty,each:Cc.each,on:nc,attr:La,attrTween:Ha,style:pc,styleTween:gc,text:bc,textTween:xc,remove:rc,tween:Oa,delay:Wa,duration:Xa,ease:Za,end:Tc};var kc={time:null,delay:0,duration:250,ease:Nc};function jc(t,n){var e;while(!(e=t.__transition)||!(e=e[n]))if(!(t=t.parentNode))return kc.time=Hu(),kc;return e}var Ic=function(t){var n,e;t instanceof Sc?(n=t._id,t=t._name):(n=Oc(),(e=kc).time=Hu(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)(u=a[s])&&aa(u,t,n,s,a,e||jc(u,n));return new Sc(r,this._parents,t,n)};rn.prototype.interrupt=ya,rn.prototype.transition=Ic;e("a481");var Fc=function(t){var n=t.length/6|0,e=new Array(n),r=0;while(r<n)e[r]="#"+t.slice(6*r,6*++r);return e},Pc=Fc("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Dc=Fc("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Lc=Fc("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Rc=Fc("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Uc=Fc("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),qc=Fc("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),zc=Fc("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Hc=Fc("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),$c={schemeAccent:Pc,schemeCategory10:Dc,schemePaired:Lc,schemePastel1:Rc,schemePastel2:Uc,schemeSet1:qc,schemeSet2:zc,schemeSet3:Hc};function Yc(t){return t.replace(/(^.+)([A-Z])/g,(function(t,n,e){return n+" "+e})).replace(/(^.+)([1-9])(?:[0-9]*)/g,(function(t,n,e){return n+" "+e})).replace(/^\w/,(function(t){return t.toUpperCase()}))}var Wc={};function Vc(t){var n=t.ancestors().map((function(t){return t.data.name})).join("-");return n}function Bc(t,n){var e=n.x0,r=n.x1,i=n.y0,o=n.y1;t._current={x0:e,x1:r,y0:i,y1:o}}function Xc(t,n,e){var r=this,i=["x0","x1","y0","y1"],o={};return i.forEach((function(t){o[t]=je(r._current[t],n[t])})),Bc(this,n),function(n){var r={};return i.forEach((function(t){r[t]=o[t](n)})),t(r,e)}}Object.keys($c).forEach((function(t){Wc[t]={name:Yc(t),scale:kn($c[t])}}));var Gc=function(t){return t.name},Zc={name:"sunburst",inject:{defaultSchemeColor:{default:Object.keys(Wc)[0]}},props:{data:{type:Object,required:!1},colorScheme:{type:String,required:!1,default:function(){return this.defaultSchemeColor},validator:function(t){return-1!==Object.keys(Wc).indexOf(t)}},getCategoryForColor:{type:Function,required:!1,default:Gc},minAngleDisplayed:{type:Number,required:!1,default:.005},arcIdentification:{type:Function,required:!1,default:Vc},inAnimationDuration:{type:Number,required:!1,default:100},outAnimationDuration:{type:Number,required:!1,default:1e3},hasCustomColor:{type:Boolean,required:!1,default:!1}},directives:{resize:p.a},data:function(){var t=gr().range([0,2*Math.PI]).clamp(!0),n=xr().range([0,1]);return this.arcSunburst=Mu().startAngle((function(n){return t(n.x0)})).endAngle((function(n){return t(n.x1)})).innerRadius((function(t){return Math.max(0,n(t.y0))})).outerRadius((function(t){return Math.max(0,n(t.y1))})),this.scaleX=t,this.scaleY=n,{graphNodes:{clicked:null,mouseOver:null,zoomed:null,root:null,highlighted:null},width:null,height:null}},mounted:function(){var t=this,n=this.$el.getElementsByClassName("viewport"),e=l(n,1),r=e[0];this.viewport=r,this.vis=on(r).append("svg").style("overflow","visible").attr("class","root").attr("width","100%").attr("height","100%").append("g"),on(r).on("mouseleave",(function(){t.$emit("mouseLeave"),t.graphNodes.mouseOver=null})),this.resize()},methods:{getSize:function(){var t=this.viewport.clientWidth,n=this.viewport.clientHeight;return{width:t,height:n}},onData:function(t){var n=this;if(!t)return this.vis.selectAll("path").remove(),void Object.keys(this.graphNodes).forEach((function(t){return n.graphNodes[t]=null}));this.root=qo(t).sum((function(t){return t.size})).sort((function(t,n){return n.value-t.value})),this.nodes=Xo()(this.root).descendants().filter((function(t){return Math.abs(n.scaleX(t.x1-t.x0))>n.minAngleDisplayed}));var e=this.getPathes(),r=this.colorGetter,i=this.mouseOver.bind(this),o=this.click.bind(this),u=this.arcSunburst;e.enter().append("path").style("opacity",1).on("mouseover",i).on("click",o).each((function(t){Bc(this,t)})).merge(e).style("fill",(function(t){var e=t.data.color?t.data.color:"#ccc";return n.hasCustomColor?e:r(t.data)})).transition("enter").duration(this.inAnimationDuration).attrTween("d",(function(t,n){return Xc.call(this,u,t,n)})),e.exit().remove(),this.graphNodes.root=this.nodes[0]},getPathes:function(){return this.vis.selectAll("path").data(this.nodes,this.arcIdentification)},resize:function(){var t=this.getSize(),n=t.width,e=t.height;this.vis.attr("width",n).attr("height",e).attr("transform","translate(".concat(n/2,", ").concat(e/2," )")),this.radius=Math.min(n,e)/2;var r=this.scaleY.range(),i=l(r,1),o=i[0];this.scaleY.range([o,this.radius]),this.onData(this.data),this.width=n,this.height=e},reDraw:function(){this.onData(this.data)},mouseOver:function(t){this.graphNodes.mouseOver=t,this.$emit("mouseOverNode",{node:t,sunburst:this})},click:function(t){this.graphNodes.clicked=t,this.$emit("clickNode",{node:t,sunburst:this})},highlightPath:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3,e=t.ancestors();this.vis.selectAll("path").filter((function(t){return-1===e.indexOf(t)})).transition().duration(this.inAnimationDuration).style("opacity",n),this.vis.selectAll("path").filter((function(t){return e.indexOf(t)>=0})).style("opacity",1),this.graphNodes.highlighted=t},zoomToNode:function(t){var n=this;this.vis.transition("zoom").duration(750).tween("scale",(function(){var e=je(n.scaleX.domain(),[t.x0,t.x1]),r=je(n.scaleY.domain(),[t.y0,1]),i=je(n.scaleY.range(),[t.y0?20:0,n.radius]);return function(t){n.scaleX.domain(e(t)),n.scaleY.domain(r(t)).range(i(t))}})).selectAll("path").attrTween("d",(function(t){return function(){return n.arcSunburst(t)}})),this.graphNodes.zoomed=t},resetHighlight:function(){this.vis.selectAll("path").transition().duration(this.outAnimationDuration).style("opacity",1)}},computed:{actions:function(){var t=this.highlightPath,n=this.zoomToNode,e=this.resetHighlight;return{highlightPath:t,zoomToNode:n,resetHighlight:e}},on:function(){return this.$on.bind(this)},colorGetter:function(){var t=this,n=Wc[this.colorScheme].scale;return function(e){var r=n(t.getCategoryForColor(e)),i=e.data&&e.data.color?e.data.color:"#ccc";return t.hasCustomColor?i:r}}},watch:{data:{handler:function(t){this.onData(t)},deep:!0},colorGetter:function(t){this.getPathes().style("fill",(function(n){return t(n.data)}))},minAngleDisplayed:function(){this.reDraw()}}},Qc=Zc;e("3c61");function Jc(t,n,e,r,i,o,u,a){var c,s="function"===typeof t?t.options:t;if(n&&(s.render=n,s.staticRenderFns=e,s._compiled=!0),r&&(s.functional=!0),o&&(s._scopeId="data-v-"+o),u?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},s._ssrRegister=c):i&&(c=a?function(){i.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(s.functional){s._injectStyles=c;var f=s.render;s.render=function(t,n){return c.call(n),f(t,n)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:s}}var Kc=Jc(Qc,i,o,!1,null,"0d381d91",null),ts=Kc.exports,ns=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.show?e("div",{staticClass:"infornation-sunburst"},[e("span",[t._v(t._s(t.displayPercentage))]),e("br"),t._v("\n  "+t._s(t.description)+" "),e("br"),t.showAllNumber?e("span",{staticClass:"detail"},[t._v("("+t._s(t.current.value)+" / "+t._s(t.base)+")")]):t._e()]):t._e()},es=[],rs={name:"nodeInfoDisplayer",props:{root:{required:!1,type:Object},current:{required:!1,type:Object},clicked:{required:!1,type:Object},description:{required:!0,type:String},showAllNumber:{required:!1,type:Boolean,default:!0}},computed:{base:function(){return this.clicked?this.clicked.value:this.root.value},percentage:function(){return null==this.current||null==this.root?null:100*this.current.value/this.base},displayPercentage:function(){var t=this.percentage;return null===t?null:"".concat(t.toPrecision(3)," %")},show:function(){var t=this.percentage;return null!==t&&t<=100}}},is=rs,os=(e("0aad"),Jc(is,ns,es,!1,null,"ff4afe60",null)),us=os.exports,as=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("breadcrumb",t._b({style:{order:t.order}},"breadcrumb",{colorGetter:t.colorGetter,endText:t.endText,from:t.fromItem,itemHeight:t.itemHeight,itemWidth:t.itemWidth,items:t.items,spacing:t.spacing,tailWidth:t.tailWidth,width:t.width},!1))},cs=[],ss=(e("7514"),function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"bread-sequence"})}),fs=[],ls={name:"breadcrumb",props:{items:{required:!0,type:Array},from:{required:!1,type:Object},endText:{required:!1,type:String,default:""},colorGetter:{required:!0,type:Function},width:{required:!1,type:Number},itemWidth:{required:!1,type:Number,default:80},itemHeight:{required:!1,type:Number,default:30},spacing:{required:!1,type:Number,default:3},tailWidth:{required:!1,type:Number,default:10}},mounted:function(){var t=on(this.$el).append("svg:svg").attr("width",this.width).attr("height",50).attr("class","trail").style("overflow","visible");t.append("svg:text").attr("class","endlabel").style("fill","#000")},methods:{breadcrumbPoints:function(t,n){var e=[];return e.push("0,0"),e.push(this.itemWidth+",0"),e.push(this.itemWidth+this.tailWidth+","+this.itemHeight/2),e.push(this.itemWidth+","+this.itemHeight),e.push("0,"+this.itemHeight),n>0&&e.push(this.tailWidth+","+this.itemHeight/2),e.join(" ")},draw:function(){var t=this;if(0!==this.items.length){var n=on(this.$el).select(".trail").selectAll("g").data(this.items,(function(t){return t.id}));n.exit().remove();var e=n.enter().append("svg:g");e.append("svg:polygon").attr("points",this.breadcrumbPoints).style("fill",this.colorGetter),e.append("svg").attr("x",this.tailWidth).attr("y",0).attr("width",this.itemWidth-this.tailWidth).attr("heigth",this.itemHeight).insert("svg:text").attr("x",this.itemWidth/2).attr("y",this.itemHeight/2).attr("dy","0.25em").attr("text-anchor","middle").text((function(t){return t.name}));var r=null===this.from?0:this.items.indexOf(this.from);r=r<0?this.items.length:r,e.merge(n).attr("transform",(function(n,e){return"translate("+e*(t.itemWidth+t.spacing)+", 0)"})).transition(500).style("opacity",(function(n){return t.items.indexOf(n)>=r?1:.5})),on(this.$el).select(".trail").select(".endlabel").attr("x",this.items.length*(this.itemWidth+this.tailWidth/2)+2*this.spacing).attr("y",this.itemHeight/2).attr("dy","0.25em").attr("text-anchor","left").text(this.endText),on(this.$el).select(".trail").style("visibility","")}else on(this.$el).select(".trail").style("visibility","hidden")}},watch:{width:function(){on(this.$el).select(".trail").attr("width",this.width)},items:{deep:!0,handler:function(){this.draw()}},from:function(){this.draw()}}},hs=ls,ps=(e("1bf3"),Jc(hs,ss,fs,!1,null,"4dadc8d4",null)),ds=ps.exports,vs={name:"breadcrumbTrail",components:{breadcrumb:ds},props:{root:{required:!1,type:Object},current:{required:!1,type:Object},from:{required:!1,type:Object},colorGetter:{required:!0,type:Function},width:{required:!1,type:Number},order:{required:!1,type:Number,default:1},itemWidth:{required:!1,type:Number,default:80},itemHeight:{required:!1,type:Number,default:30},spacing:{required:!1,type:Number,default:3},tailWidth:{required:!1,type:Number,default:10}},computed:{items:function(){var t=this.current;return t?t.ancestors().reverse().map((function(t){return{id:t.data.name+t.depth,data:t.data,name:t.data.name}})):[]},fromItem:function(){var t=this.from;return t?this.items.find((function(n){return n.data===t.data})):null},endText:function(){var t=this.current;if(!t)return"";var n=100*t.value/this.root.value;return"".concat(n.toPrecision(3),"% of total")}}},gs=vs,ys=Jc(gs,as,cs,!1,null,null,null),ms=ys.exports,bs={name:"highlightOnHover",props:{on:{required:!0,type:Function},actions:{required:!0,type:Object}},render:function(){return null},created:function(){var t=this.on,n=this.actions;t("mouseOverNode",(function(t){var e=t.node;n.highlightPath(e)})),t("mouseLeave",(function(){n.resetHighlight()}))}},ws={name:"zoomOnClick",props:{on:{required:!0,type:Function},actions:{required:!0,type:Object}},render:function(){return null},created:function(){var t=this;this.on("clickNode",(function(n){var e=n.node;t.actions.zoomToNode(e)}))}}},fdef:function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})}));
//# sourceMappingURL=vue-sunburst.umd.min.js.map