UNPKG

webpack-bundle-analyzer-sunburst

Version:

Webpack plugin and CLI utility that represents bundle content either as an interactive zoomable treemap or a sunburst chart

2 lines 324 kB
(function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="/",n(n.s=27)})([function(t,n,e){!function(t,e){e(n)}(this,function(t){function n(t,n,e){this.nodeName=t,this.attributes=n,this.children=e,this.key=n&&n.key}function e(t,e){var r,i,o,a,u=[];for(a=arguments.length;a-- >2;)q.push(arguments[a]);for(e&&e.children&&(q.length||q.push(e.children),delete e.children);q.length;)if((i=q.pop())instanceof Array)for(a=i.length;a--;)q.push(i[a]);else null!=i&&i!==!1&&("number"!=typeof i&&i!==!0||(i=String(i)),o="string"==typeof i,o&&r?u[u.length-1]+=i:(u.push(i),r=o));var l=new n(t,e||void 0,u);return G.vnode&&G.vnode(l),l}function r(t,n){if(n)for(var e in n)t[e]=n[e];return t}function i(t){return r({},t)}function o(t,n){for(var e=n.split("."),r=0;r<e.length&&t;r++)t=t[e[r]];return t}function a(t){return"function"==typeof t}function u(t){return"string"==typeof t}function l(t){var n="";for(var e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function c(t,n){return e(t.nodeName,r(i(t.attributes),n),arguments.length>2?[].slice.call(arguments,2):t.children)}function s(t,n,e){var r=n.split(".");return function(n){for(var i=n&&n.target||this,a={},l=a,c=u(e)?o(n,e):i.nodeName?i.type.match(/^che|rad/)?i.checked:i.value:n,s=0;s<r.length-1;s++)l=l[r[s]]||(l[r[s]]=!s&&t.state[r[s]]||{});l[r[s]]=c,t.setState(a)}}function f(t){!t._dirty&&(t._dirty=!0)&&1==X.push(t)&&(G.debounceRendering||I)(h)}function h(){var t,n=X;for(X=[];t=n.pop();)t._dirty&&N(t)}function p(t){var n=t&&t.nodeName;return n&&a(n)&&!(n.prototype&&n.prototype.render)}function d(t,n){return t.nodeName(y(t),n||W)}function g(t,n){return u(n)?t instanceof Text:u(n.nodeName)?v(t,n.nodeName):a(n.nodeName)?t._componentConstructor===n.nodeName||p(n):void 0}function v(t,n){return t.normalizedNodeName===n||B(t.nodeName)===B(n)}function y(t){var n=i(t.attributes);n.children=t.children;var e=t.nodeName.defaultProps;if(e)for(var r in e)void 0===n[r]&&(n[r]=e[r]);return n}function b(t){var n=t.parentNode;n&&n.removeChild(t)}function m(t,n,e,r,i){if("className"===n&&(n="class"),"class"===n&&r&&"object"==typeof r&&(r=l(r)),"key"===n);else if("class"!==n||i)if("style"===n){if((!r||u(r)||u(e))&&(t.style.cssText=r||""),r&&"object"==typeof r){if(!u(e))for(var o in e)o in r||(t.style[o]="");for(var o in r)t.style[o]="number"!=typeof r[o]||Y[o]?r[o]:r[o]+"px"}}else if("dangerouslySetInnerHTML"===n)r&&(t.innerHTML=r.__html);else if("o"==n[0]&&"n"==n[1]){var c=t._listeners||(t._listeners={});n=B(n.substring(2)),r?c[n]||t.addEventListener(n,w,!!K[n]):c[n]&&t.removeEventListener(n,w,!!K[n]),c[n]=r}else if("list"!==n&&"type"!==n&&!i&&n in t)x(t,n,null==r?"":r),null!=r&&r!==!1||t.removeAttribute(n);else{var s=i&&n.match(/^xlink\:?(.+)/);null==r||r===!1?s?t.removeAttributeNS("http://www.w3.org/1999/xlink",B(s[1])):t.removeAttribute(n):"object"==typeof r||a(r)||(s?t.setAttributeNS("http://www.w3.org/1999/xlink",B(s[1]),r):t.setAttribute(n,r))}else t.className=r||""}function x(t,n,e){try{t[n]=e}catch(t){}}function w(t){return this._listeners[t.type](G.event&&G.event(t)||t)}function M(t){if(b(t),t instanceof Element){t._component=t._componentConstructor=null;var n=t.normalizedNodeName||B(t.nodeName);(Z[n]||(Z[n]=[])).push(t)}}function C(t,n){var e=B(t),r=Z[e]&&Z[e].pop()||(n?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t));return r.normalizedNodeName=e,r}function S(){for(var t;t=J.pop();)G.afterMount&&G.afterMount(t),t.componentDidMount&&t.componentDidMount()}function T(t,n,e,r,i,o){$++||(Q=i instanceof SVGElement);var a=z(t,n,e,r);return i&&a.parentNode!==i&&i.appendChild(a),--$||o||S(),a}function z(t,n,e,r){for(var i=n&&n.attributes;p(n);)n=d(n,e);if(null==n&&(n=""),u(n)){if(t){if(t instanceof Text&&t.parentNode)return t.nodeValue!=n&&(t.nodeValue=n),t;L(t)}return document.createTextNode(n)}if(a(n.nodeName))return j(t,n,e,r);var o=t,l=n.nodeName,c=Q,s=n.children;if(u(l)||(l=String(l)),Q="svg"===l||"foreignObject"!==l&&Q,t){if(!v(t,l)){for(o=C(l,Q);t.firstChild;)o.appendChild(t.firstChild);L(t)}}else o=C(l,Q);s&&1===s.length&&"string"==typeof s[0]&&1===o.childNodes.length&&o.firstChild instanceof Text?o.firstChild.nodeValue!=s[0]&&(o.firstChild.nodeValue=s[0]):(s&&s.length||o.firstChild)&&_(o,s,e,r);var f=o[V];if(!f){o[V]=f={};for(var h=o.attributes,g=h.length;g--;)f[h[g].name]=h[g].value}return E(o,n.attributes,f),i&&"function"==typeof i.ref&&(f.ref=i.ref)(o),Q=c,o}function _(t,n,e,r){var i,o,u,l,c=t.childNodes,s=[],f={},h=0,p=0,d=c.length,v=0,y=n&&n.length;if(d)for(var b=0;b<d;b++){var m=c[b],x=y?(o=m._component)?o.__key:(o=m[V])?o.key:null:null;x||0===x?(h++,f[x]=m):s[v++]=m}if(y)for(var b=0;b<y;b++){u=n[b],l=null;var x=u.key;if(null!=x)h&&x in f&&(l=f[x],f[x]=void 0,h--);else if(!l&&p<v){for(i=p;i<v;i++)if(o=s[i],o&&g(o,u)){l=o,s[i]=void 0,i===v-1&&v--,i===p&&p++;break}!l&&p<v&&a(u.nodeName)&&r&&(l=s[p],s[p++]=void 0)}l=z(l,u,e,r),l&&l!==t&&l!==c[b]&&t.insertBefore(l,c[b]||null)}if(h)for(var b in f)f[b]&&L(f[b]);p<v&&k(s)}function k(t,n){for(var e=t.length;e--;)t[e]&&L(t[e],n)}function L(t,n){var e=t._component;e?F(e,!n):(t[V]&&t[V].ref&&t[V].ref(null),n||M(t),t.childNodes&&t.childNodes.length&&k(t.childNodes,n))}function E(t,n,e){for(var r in e)n&&r in n||null==e[r]||m(t,r,e[r],e[r]=void 0,Q);if(n)for(var i in n)"children"===i||"innerHTML"===i||i in e&&n[i]===("value"===i||"checked"===i?t[i]:e[i])||m(t,i,e[i],e[i]=n[i],Q)}function D(t){var n=t.constructor.name,e=tt[n];e?e.push(t):tt[n]=[t]}function P(t,n,e){var r=new t(n,e),i=tt[t.name];if(O.call(r,n,e),i)for(var o=i.length;o--;)if(i[o].constructor===t){r.nextBase=i[o].nextBase,i.splice(o,1);break}return r}function A(t,n,e,r,i){t._disable||(t._disable=!0,(t.__ref=n.ref)&&delete n.ref,(t.__key=n.key)&&delete n.key,!t.base||i?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=n,t._disable=!1,0!==e&&(1!==e&&G.syncComponentUpdates===!1&&t.base?f(t):N(t,1,i)),t.__ref&&t.__ref(t))}function N(t,n,e,o){if(!t._disable){var u,l,c,s,f=t.props,h=t.state,g=t.context,v=t.prevProps||f,b=t.prevState||h,m=t.prevContext||g,x=t.base,w=t.nextBase,M=x||w,C=t._component;if(x&&(t.props=v,t.state=b,t.context=m,2!==n&&t.shouldComponentUpdate&&t.shouldComponentUpdate(f,h,g)===!1?u=!0:t.componentWillUpdate&&t.componentWillUpdate(f,h,g),t.props=f,t.state=h,t.context=g),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!u){for(t.render&&(l=t.render(f,h,g)),t.getChildContext&&(g=r(i(g),t.getChildContext()));p(l);)l=d(l,g);var z,_,k=l&&l.nodeName;if(a(k)){c=C;var E=y(l);c&&c.constructor===k?A(c,E,1,g):(z=c,c=P(k,E,g),c.nextBase=c.nextBase||w,c._parentComponent=t,t._component=c,A(c,E,0,g),N(c,1,e,!0)),_=c.base}else s=M,z=C,z&&(s=t._component=null),(M||1===n)&&(s&&(s._component=null),_=T(s,l,g,e||!x,M&&M.parentNode,!0));if(M&&_!==M&&c!==C){var D=M.parentNode;D&&_!==D&&(D.replaceChild(_,M),z||(M._component=null,L(M)))}if(z&&F(z,_!==M),t.base=_,_&&!o){for(var j=t,O=t;O=O._parentComponent;)(j=O).base=_;_._component=j,_._componentConstructor=j.constructor}}!x||e?J.unshift(t):u||(t.componentDidUpdate&&t.componentDidUpdate(v,b,m),G.afterUpdate&&G.afterUpdate(t));var R,q=t._renderCallbacks;if(q)for(;R=q.pop();)R.call(t);$||o||S()}}function j(t,n,e,r){for(var i=t&&t._component,o=t,a=i&&t._componentConstructor===n.nodeName,u=a,l=y(n);i&&!u&&(i=i._parentComponent);)u=i.constructor===n.nodeName;return i&&u&&(!r||i._component)?(A(i,l,3,e,r),t=i.base):(i&&!a&&(F(i,!0),t=o=null),i=P(n.nodeName,l,e),t&&!i.nextBase&&(i.nextBase=t,o=null),A(i,l,1,e,r),t=i.base,o&&t!==o&&(o._component=null,L(o))),t}function F(t,n){G.beforeUnmount&&G.beforeUnmount(t);var e=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var r=t._component;r?F(r,n):e&&(e[V]&&e[V].ref&&e[V].ref(null),t.nextBase=e,n&&(b(e),D(t)),k(e.childNodes,!n)),t.__ref&&t.__ref(null),t.componentDidUnmount&&t.componentDidUnmount()}function O(t,n){this._dirty=!0,this.context=n,this.props=t,this.state||(this.state={})}function R(t,n,e){return T(e,t,{},!1,n)}var G={},q=[],H={},B=function(t){return H[t]||(H[t]=t.toLowerCase())},U="undefined"!=typeof Promise&&Promise.resolve(),I=U?function(t){U.then(t)}:setTimeout,W={},V="undefined"!=typeof Symbol?Symbol.for("preactattr"):"__preactattr_",Y={boxFlex:1,boxFlexGroup:1,columnCount:1,fillOpacity:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,strokeOpacity:1,widows:1,zIndex:1,zoom:1},K={blur:1,error:1,focus:1,load:1,resize:1,scroll:1},X=[],Z={},J=[],$=0,Q=!1,tt={};r(O.prototype,{linkState:function(t,n){var e=this._linkedStates||(this._linkedStates={});return e[t+n]||(e[t+n]=s(this,t,n))},setState:function(t,n){var e=this.state;this.prevState||(this.prevState=i(e)),r(e,a(t)?t(e,this.props):t),n&&(this._renderCallbacks=this._renderCallbacks||[]).push(n),f(this)},forceUpdate:function(){N(this,2)},render:function(){}}),t.h=e,t.cloneElement=c,t.Component=O,t.render=R,t.rerender=h,t.options=G})},function(t,n){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],n=0;n<this.length;n++){var e=this[n];e[2]?t.push("@media "+e[2]+"{"+e[1]+"}"):t.push(e[1])}return t.join("")},t.i=function(n,e){"string"==typeof n&&(n=[[null,n,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<n.length;i++){var a=n[i];"number"==typeof a[0]&&r[a[0]]||(e&&!a[2]?a[2]=e:e&&(a[2]="("+a[2]+") and ("+e+")"),t.push(a))}},t}},function(t,n){function e(t,n){for(var e=0;e<t.length;e++){var r=t[e],i=h[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(l(r.parts[o],n))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(l(r.parts[o],n));h[r.id]={id:r.id,refs:1,parts:a}}}}function r(t){for(var n=[],e={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],u=i[2],l=i[3],c={css:a,media:u,sourceMap:l};e[o]?e[o].parts.push(c):n.push(e[o]={id:o,parts:[c]})}return n}function i(t,n){var e=g(),r=b[b.length-1];if("top"===t.insertAt)r?r.nextSibling?e.insertBefore(n,r.nextSibling):e.appendChild(n):e.insertBefore(n,e.firstChild),b.push(n);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");e.appendChild(n)}}function o(t){t.parentNode.removeChild(t);var n=b.indexOf(t);n>=0&&b.splice(n,1)}function a(t){var n=document.createElement("style");return n.type="text/css",i(t,n),n}function u(t){var n=document.createElement("link");return n.rel="stylesheet",i(t,n),n}function l(t,n){var e,r,i;if(n.singleton){var l=y++;e=v||(v=a(n)),r=c.bind(null,e,l,!1),i=c.bind(null,e,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(e=u(n),r=f.bind(null,e),i=function(){o(e),e.href&&URL.revokeObjectURL(e.href)}):(e=a(n),r=s.bind(null,e),i=function(){o(e)});return r(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;r(t=n)}else i()}}function c(t,n,e,r){var i=e?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(n,i);else{var o=document.createTextNode(i),a=t.childNodes;a[n]&&t.removeChild(a[n]),a.length?t.insertBefore(o,a[n]):t.appendChild(o)}}function s(t,n){var e=n.css,r=n.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}function f(t,n){var e=n.css,r=n.sourceMap;r&&(e+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([e],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var h={},p=function(t){var n;return function(){return"undefined"==typeof n&&(n=t.apply(this,arguments)),n}},d=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=p(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,y=0,b=[];t.exports=function(t,n){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");n=n||{},"undefined"==typeof n.singleton&&(n.singleton=d()),"undefined"==typeof n.insertAt&&(n.insertAt="bottom");var i=r(t);return e(i,n),function(t){for(var o=[],a=0;a<i.length;a++){var u=i[a],l=h[u.id];l.refs--,o.push(l)}if(t){var c=r(t);e(c,n)}for(var a=0;a<o.length;a++){var l=o[a];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete h[l.id]}}}};var m=function(){var t=[];return function(n,e){return t[n]=e,t.filter(Boolean).join("\n")}}()},function(t,n,e){var r,i;(function(){"use strict";function e(){for(var t=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r))t.push(e.apply(null,r));else if("object"===i)for(var a in r)o.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}var o={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=e:(r=[],i=function(){return e}.apply(n,r),!(void 0!==i&&(t.exports=i)))})()},function(t,n,e){"use strict";(function(n){(function(n){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=[],a=0,u=void 0,l=void 0,c=void 0,s=void 0,f=void 0,h=void 0,p=void 0,d=void 0,g=void 0,v=void 0,y=void 0,b=void 0,m=void 0,x=void 0;if(isNaN(t))throw new Error("Invalid arguments");return c=n.bits===!0,y=n.unix===!0,l=n.base||2,v=void 0!==n.round?n.round:y?1:2,b=void 0!==n.spacer?n.spacer:y?"":" ",x=n.symbols||n.suffixes||{},m=2===l?n.standard||"jedec":"jedec",g=n.output||"string",f=n.fullform===!0,h=n.fullforms instanceof Array?n.fullforms:[],u=void 0!==n.exponent?n.exponent:-1,d=Number(t),p=d<0,s=l>2?1e3:1024,p&&(d=-d),(u===-1||isNaN(u))&&(u=Math.floor(Math.log(d)/Math.log(s)),u<0&&(u=0)),u>8&&(u=8),0===d?(e[0]=0,e[1]=y?"":i[m][c?"bits":"bytes"][u]):(a=d/(2===l?Math.pow(2,10*u):Math.pow(1e3,u)),c&&(a*=8,a>=s&&u<8&&(a/=s,u++)),e[0]=Number(a.toFixed(u>0?v:0)),e[1]=10===l&&1===u?c?"kb":"kB":i[m][c?"bits":"bytes"][u],y&&(e[1]="jedec"===m?e[1].charAt(0):u>0?e[1].replace(/B$/,""):e[1],r.test(e[1])&&(e[0]=Math.floor(e[0]),e[1]=""))),p&&(e[0]=-e[0]),e[1]=x[e[1]]||e[1],"array"===g?e:"exponent"===g?u:"object"===g?{value:e[0],suffix:e[1],symbol:e[1]}:(f&&(e[1]=h[u]?h[u]:o[m][u]+(c?"bit":"byte")+(1===e[0]?"":"s")),e.join(b))}var r=/^(b|B)$/,i={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},o={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};e.partial=function(t){return function(n){return e(n,t)}},t.exports=e})("undefined"!=typeof window?window:n)}).call(n,e(26))},function(t,n,e){var r=e(17);"string"==typeof r&&(r=[[t.i,r,""]]);e(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}n.__esModule=!0;var u=e(0),l=e(4),c=r(l),s=e(13),f=r(s),h=e(12),p=r(h),d=e(10),g=r(d),v=e(9),y=r(v),b=e(22),m=r(b),x=[{label:"Stat",prop:"statSize"},{label:"Parsed",prop:"parsedSize"},{label:"Gzipped",prop:"gzipSize"}],w=function(t){function n(e){i(this,n);var r=o(this,t.call(this,e));return r.handleSizeSwitch=function(t){r.setState({activeSizeItem:t})},r.handleMouseLeaveTreemap=function(){r.setState({showTooltip:!1})},r.handleTreemapGroupHover=function(t){var n=t.group;n?r.setState({showTooltip:!0,tooltipContent:r.getTooltipContent(n)}):r.setState({showTooltip:!1})},r.treemap=null,r.hasParsedSizes="number"==typeof r.props.data[0].parsedSize,r.sizeSwitchItems=r.hasParsedSizes?x:x.slice(0,1),r.state={showTooltip:!1,tooltipContent:null,activeSizeItem:x.find(function(t){return t.label===(r.hasParsedSizes?"Parsed":"Stat")})},r}return a(n,t),n.prototype.render=function(){var t=this.props.data,n=this.state,e=n.showTooltip,r=n.tooltipContent,i=n.activeSizeItem;return(0,u.h)("div",{className:m.default.container},(0,u.h)(y.default,null,(0,u.h)(g.default,{label:"Treemap sizes",items:this.sizeSwitchItems,activeItem:i,onSwitch:this.handleSizeSwitch})),(0,u.h)(f.default,{className:m.default.map,data:t,weightProp:i.prop,onMouseLeave:this.handleMouseLeaveTreemap,onGroupHover:this.handleTreemapGroupHover}),(0,u.h)(p.default,{visible:e},r))},n.prototype.getTooltipContent=function(t){return t?(0,u.h)("div",null,(0,u.h)("div",null,(0,u.h)("b",null,t.label)),(0,u.h)("br",null),(0,u.h)("div",null,"Stat size: ",(0,u.h)("b",null,(0,c.default)(t.statSize))),"number"==typeof t.parsedSize&&(0,u.h)("div",null,"Parsed size: ",(0,u.h)("b",null,(0,c.default)(t.parsedSize))),"number"==typeof t.gzipSize&&(0,u.h)("div",null,"Gzip size: ",(0,u.h)("b",null,(0,c.default)(t.gzipSize))),t.path&&(0,u.h)("div",null,"Path: ",(0,u.h)("b",null,t.path))):null},n}(u.Component);n.default=w},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function a(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}n.__esModule=!0;var l=e(0),c=e(20),s=i(c),f=e(4),h=r(f),p=e(24),d=r(p),g=function(t){function n(e){o(this,n);var r=a(this,t.call(this,e));return r.saveNode=function(t){return r.node=t},r}return u(n,t),n.prototype.componentDidMount=function(){this.createSunburst()},n.prototype.shouldComponentUpdate=function(){return!1},n.prototype.render=function(){return(0,l.h)("div",{class:d.default.container,ref:this.saveNode})},n.prototype.onClick=function(t){this.path.transition().duration(750).attrTween("d",this.arcTween(t))},n.prototype.onMouseOver=function(t){return this.tooltip.html(function(){return'\n <div class="'+d.default.infoInner+'">\n <div class="'+d.default.filename+'">'+t.label+'</div>\n <div class="'+d.default.contents+'">\n <div class="'+d.default.size+'">'+(0,h.default)(t.statSize)+'</div>\n <div class="'+d.default.type+'">stat</div>\n <div class="'+d.default.size+'">'+(0,h.default)(t.parsedSize)+'</div>\n <div class="'+d.default.type+'">parsed</div>\n <div class="'+d.default.size+'">'+(0,h.default)(t.gzipSize)+'</div>\n <div class="'+d.default.type+'">gzip</div>\n </div>\n </div>\n '}),this.tooltip},n.prototype.onMouseMove=function(t){return this.tooltip},n.prototype.arcTween=function(t){var n=this,e=s.interpolate(this.x.domain(),[t.x,t.x+t.dx]),r=s.interpolate(this.y.domain(),[t.y,1]),i=s.interpolate(this.y.range(),[t.y?20:0,this.radius]);return function(t,o){return o?function(e){return n.arc(t)}:function(o){return n.x.domain(e(o)),n.y.domain(r(o)).range(i(o)),n.arc(t)}}},n.prototype.createSunburst=function(){var t=this,n=document.createElement("div");n.classList.add(d.default.sunburst),this.node.appendChild(n);var e=s.scale.category20c(),r=Math.min(n.offsetWidth,n.offsetHeight),i=r+50;this.radius=Math.min(r,i)/2,this.x=s.scale.linear().range([0,2*Math.PI]),this.y=s.scale.sqrt().range([0,this.radius]);var o=s.select(n).append("svg").attr("width",r).attr("height",i).append("g").attr("transform","translate("+r/2+", "+(i/2+10)+")"),a=s.layout.partition().value(function(t){return t.statSize}).children(function(t){return t.groups});this.arc=s.svg.arc().startAngle(function(n){return Math.max(0,Math.min(2*Math.PI,t.x(n.x)))}).endAngle(function(n){return Math.max(0,Math.min(2*Math.PI,t.x(n.x+n.dx)))}).innerRadius(function(n){return Math.max(0,t.y(n.y))}).outerRadius(function(n){return Math.max(0,t.y(n.y+n.dy))}),this.tooltip=s.select(this.node).insert("div",":first-child").attr("class",d.default.info),this.path=o.selectAll("path").data(a.nodes(this.props.data[0])).enter().append("path").attr("d",this.arc).style("fill",function(t){return e((t.children?t:t.parent).label)}).on("click",this.onClick.bind(this)).on("mouseover",this.onMouseOver.bind(this)).on("mousemove",this.onMouseMove.bind(this)),this.onMouseOver(this.props.data[0])},n}(l.Component);n.default=g},function(t,n,e){var r=e(19);"string"==typeof r&&(r=[[t.i,r,""]]);e(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}n.__esModule=!0;var u=e(0),l=e(3),c=r(l),s=e(23),f=r(s),h=function(t){function n(){var e,r,a;i(this,n);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return e=r=o(this,t.call.apply(t,[this].concat(l))),r.state={visible:!0},r.handleMouseEnter=function(){clearTimeout(r.hideTimeoutId),r.toggleVisibility(!0)},r.handleMouseLeave=function(){return r.toggleVisibility(!1)},a=e,o(r,a)}return a(n,t),n.prototype.componentDidMount=function(){var t=this;this.hideTimeoutId=setTimeout(function(){return t.toggleVisibility(!1)},1500)},n.prototype.componentWillUnmount=function(){clearInterval(this.hideTimeoutId)},n.prototype.render=function(){var t,n=this.props,e=n.position,r=n.children,i=this.state.visible,o=(0,c.default)((t={},t[f.default.container]=!0,t[f.default.left]="left"===e,t[f.default.hidden]=!i,t));return(0,u.h)("div",{className:o,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r)},n.prototype.toggleVisibility=function(t){this.setState({visible:t})},n}(u.Component);h.defaultProps={position:"left"},n.default=h},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}n.__esModule=!0;var u=e(0),l=e(11),c=r(l),s=e(5),f=r(s),h=function(t){function n(){return i(this,n),o(this,t.apply(this,arguments))}return a(n,t),n.prototype.render=function(){var t=this.props,n=t.label,e=t.items,r=t.activeItem,i=t.onSwitch;return(0,u.h)("div",{className:f.default.container},(0,u.h)("div",{className:f.default.label},n,":"),(0,u.h)("div",null,e.map(function(t){return(0,u.h)(c.default,{key:t.label,item:t,active:t===r,onClick:i})})))},n}(u.Component);n.default=h},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}n.__esModule=!0;var u=e(0),l=e(3),c=r(l),s=e(5),f=r(s),h=function(t){function n(){var e,r,a;i(this,n);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return e=r=o(this,t.call.apply(t,[this].concat(l))),r.handleClick=function(){r.props.onClick&&r.props.onClick(r.props.item)},a=e,o(r,a)}return a(n,t),n.prototype.render=function(){var t,n=this.props,e=n.item,r=n.active,i=(0,c.default)((t={},t[f.default.item]=!0,t[f.default.active]=r,t));return(0,u.h)("span",{className:i,onClick:this.handleClick},e.label)},n}(u.Component);n.default=h},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}n.__esModule=!0;var u=e(0),l=e(3),c=r(l),s=e(25),f=r(s),h=function(t){function n(e){i(this,n);var r=o(this,t.call(this,e));return r.saveNode=function(t){return r.node=t},r.onMouseMove=function(t){Object.assign(r.mouseCoords,{x:t.pageX,y:t.pageY}),r.props.visible&&r.updatePosition()},r.mouseCoords={x:0,y:0},r.state={left:0,top:0},r}return a(n,t),n.prototype.componentDidMount=function(){document.addEventListener("mousemove",this.onMouseMove,!1)},n.prototype.shouldComponentUpdate=function(t){return this.props.visible||t.visible},n.prototype.componentDidUpdate=function(){if(this.props.visible&&this.node){var t=this.node.getBoundingClientRect(),e={};t.right>window.innerWidth&&(e.left=window.innerWidth-t.width),t.bottom>window.innerHeight&&(e.top=this.mouseCoords.y-n.marginY-t.height),Object.keys(e).length&&this.updatePosition(e)}},n.prototype.componentWillUnmount=function(){document.removeEventListener("mousemove",this.onMouseMove)},n.prototype.render=function(){var t,n=this.props,e=n.children,r=n.visible,i=(0,c.default)((t={},t[f.default.container]=!0,t[f.default.hidden]=!r,t));return(0,u.h)("div",{ref:this.saveNode,className:i,style:this.getStyle()},e)},n.prototype.getStyle=function(){return{left:this.state.left,top:this.state.top}},n.prototype.updatePosition=function(t){t||(t={left:this.mouseCoords.x+n.marginX,top:this.mouseCoords.y+n.marginY}),this.setState(t)},n}(u.Component);h.marginX=10,h.marginY=30,n.default=h},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}function u(t){t.preventDefault()}n.__esModule=!0;var l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},c=e(0),s=e(21),f=r(s),h=function(t){function n(e){i(this,n);var r=o(this,t.call(this,e));return r.saveNode=function(t){return r.node=t},r.treemap=null,r.zoomOutDisabled=!1,r}return a(n,t),n.prototype.componentDidMount=function(){this.setWeightProp(this.props.weightProp),this.treemap=this.createTreemap(),window.addEventListener("resize",this.treemap.resize,!1)},n.prototype.componentWillReceiveProps=function(t){t.weightProp!==this.props.weightProp&&this.setWeightProp(t.weightProp)},n.prototype.shouldComponentUpdate=function(){return!1},n.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.treemap.resize),this.treemap.dispose()},n.prototype.render=function(){return(0,c.h)("div",l({},this.props,{ref:this.saveNode}))},n.prototype.createTreemap=function(){var t=this,n=this.props,e=!1;return new f.default({element:this.node,layout:"squarified",stacking:"flattened",maxGroupLevelsDrawn:Number.MAX_VALUE,maxGroupLabelLevelsDrawn:Number.MAX_VALUE,groupLabelVerticalPadding:.2,rolloutDuration:0,pullbackDuration:0,fadeDuration:0,zoomMouseWheelDuration:300,openCloseDuration:200,dataObject:{groups:this.props.data},titleBarDecorator:function(t,n,e){e.titleBarShown=!1},onGroupClick:function(t){u(t),e=!1,this.zoom(t.group)},onGroupDoubleClick:u,onGroupHover:function(e){return e.group&&e.group.attribution?void e.preventDefault():void(n.onGroupHover&&n.onGroupHover.call(t,e))},onGroupMouseWheel:function(t){var n=t.delta<0;if(n){if(e)return u(t);this.get("viewport").scale<1&&(e=!0,u(t))}else e=!1}})},n.prototype.setWeightProp=function(t){function n(e){e.weight=e[t],e.groups&&e.groups.forEach(n)}this.props.data.forEach(n),this.treemap&&this.treemap.update()},n}(c.Component);n.default=h},function(t,n,e){n=t.exports=e(1)(),n.push([t.i,".ModulesTreemap__container,.ModulesTreemap__map{position:relative;width:100%;height:100%}.ModulesTreemap__sizesSwitcher{padding:3px 10px 2px}",""]),n.locals={container:"ModulesTreemap__container",map:"ModulesTreemap__map",sizesSwitcher:"ModulesTreemap__sizesSwitcher"}},function(t,n,e){n=t.exports=e(1)(),n.push([t.i,".Sidebar__container{position:absolute;top:0;bottom:0;background:#fff;opacity:.9;border:none;border-right:1px solid #aaa;padding:20px;z-index:1;transition:transform .2s ease}.Sidebar__container.Sidebar__left{left:0}.Sidebar__container.Sidebar__left.Sidebar__hidden{transform:translateX(calc(-100% + 7px))}",""]),n.locals={container:"Sidebar__container",left:"Sidebar__left",hidden:"Sidebar__hidden"}},function(t,n,e){n=t.exports=e(1)(),n.push([t.i,"@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,600);",""]),n.push([t.i,"*{box-sizing:border-box}.Sunburst__container{background-color:#12151d;color:#fff;font-family:Open Sans,sans-serif;position:relative;overflow:hidden;font-size:0;padding:100px;width:100%;height:100%}path{stroke:#fff;fill-rule:evenodd}.Sunburst__sunburst{width:60%;height:100%;position:relative;display:inline-block;vertical-align:top}.Sunburst__sunburst svg{position:absolute;top:50%;left:0;transform:translateY(-50%)}.Sunburst__info{width:40%;height:100%;position:relative;display:inline-block;vertical-align:top}.Sunburst__infoInner{line-height:1;font-weight:lighter;position:absolute;top:50%;right:0;transform:translateY(-50%);padding:100px;white-space:nowrap}.Sunburst__filename{font-size:30px;display:inline-block;vertical-align:top;padding-right:40px}.Sunburst__contents{display:inline-block;vertical-align:top;border-left:1px solid #898989;padding-left:40px}.Sunburst__size{font-size:30px}.Sunburst__type{font-size:15px;color:#898989;margin-bottom:20px}.Sunburst__type:last-child{margin-bottom:0}",""]), n.locals={container:"Sunburst__container",sunburst:"Sunburst__sunburst",info:"Sunburst__info",infoInner:"Sunburst__infoInner",filename:"Sunburst__filename",contents:"Sunburst__contents",size:"Sunburst__size",type:"Sunburst__type"}},function(t,n,e){n=t.exports=e(1)(),n.push([t.i,".Switcher__container{font:normal 10px Verdana;white-space:nowrap}.Switcher__label{font-weight:700;font-size:11px;margin-bottom:7px}.Switcher__item{display:inline-block;border:1px solid #aaa;border-radius:4px;padding:5px 7px;cursor:pointer;transition:background .3s ease}.Switcher__item:hover{background:rgba(255,165,0,.15)}.Switcher__item.Switcher__active{cursor:default;background:orange}.Switcher__item+.Switcher__item{margin-left:5px}",""]),n.locals={container:"Switcher__container",label:"Switcher__label",item:"Switcher__item",active:"Switcher__active"}},function(t,n,e){n=t.exports=e(1)(),n.push([t.i,".Tooltip__container{font:normal 10px Verdana;position:absolute;padding:5px 10px;border-radius:4px;background:#fff;border:1px solid #aaa;opacity:.7;white-space:nowrap;visibility:visible;transition:opacity .2s ease,visibility .2s ease}.Tooltip__hidden{opacity:0;visibility:hidden}",""]),n.locals={container:"Tooltip__container",hidden:"Tooltip__hidden"}},function(t,n,e){n=t.exports=e(1)(),n.push([t.i,"#app,body,html{width:100%;height:100%;margin:0;overflow:hidden}body,html{padding:0}",""])},function(t,n,e){var r,i;!function(){function o(t){return t&&(t.ownerDocument||t.document||t).documentElement}function a(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function u(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function l(t){return null===t?NaN:+t}function c(t){return!isNaN(t)}function s(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);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){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}function f(t){return t.length}function h(t){for(var n=1;t*n%1;)n*=10;return n}function p(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function d(){this._=Object.create(null)}function g(t){return(t+="")===Sa||t[0]===Ta?Ta+t:t}function v(t){return(t+="")[0]===Ta?t.slice(1):t}function y(t){return g(t)in this._}function b(t){return(t=g(t))in this._&&delete this._[t]}function m(){var t=[];for(var n in this._)t.push(v(n));return t}function x(){var t=0;for(var n in this._)++t;return t}function w(){for(var t in this._)return!1;return!0}function M(){this._=Object.create(null)}function C(t){return t}function S(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function T(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=za.length;e<r;++e){var i=za[e]+n;if(i in t)return i}}function z(){}function _(){}function k(t){function n(){for(var n,r=e,i=-1,o=r.length;++i<o;)(n=r[i].on)&&n.apply(this,arguments);return t}var e=[],r=new d;return n.on=function(n,i){var o,a=r.get(n);return arguments.length<2?a&&a.on:(a&&(a.on=null,e=e.slice(0,o=e.indexOf(a)).concat(e.slice(o+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function L(){pa.event.preventDefault()}function E(){for(var t,n=pa.event;t=n.sourceEvent;)n=t;return n}function D(t){for(var n=new _,e=0,r=arguments.length;++e<r;)n[arguments[e]]=k(n);return n.of=function(e,r){return function(i){try{var o=i.sourceEvent=pa.event;i.target=t,pa.event=i,n[i.type].apply(e,r)}finally{pa.event=o}}},n}function P(t){return ka(t,Pa),t}function A(t){return"function"==typeof t?t:function(){return La(t,this)}}function N(t){return"function"==typeof t?t:function(){return Ea(t,this)}}function j(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function o(){this.setAttributeNS(t.space,t.local,n)}function a(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}function u(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=pa.ns.qualify(t),null==n?t.local?r:e:"function"==typeof n?t.local?u:a:t.local?o:i}function F(t){return t.trim().replace(/\s+/g," ")}function O(t){return new RegExp("(?:^|\\s+)"+pa.requote(t)+"(?:\\s+|$)","g")}function R(t){return(t+"").trim().split(/^|\s+/)}function G(t,n){function e(){for(var e=-1;++e<i;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<i;)t[e](this,r)}t=R(t).map(q);var i=t.length;return"function"==typeof n?r:e}function q(t){var n=O(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute("class")||"";r?(n.lastIndex=0,n.test(i)||e.setAttribute("class",F(i+" "+t))):e.setAttribute("class",F(i.replace(n," ")))}}function H(t,n,e){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,e)}function o(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}return null==n?r:"function"==typeof n?o:i}function B(t,n){function e(){delete this[t]}function r(){this[t]=n}function i(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:"function"==typeof n?i:r}function U(t){function n(){var n=this.ownerDocument,e=this.namespaceURI;return e===Aa&&n.documentElement.namespaceURI===Aa?n.createElement(t):n.createElementNS(e,t)}function e(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=pa.ns.qualify(t)).local?e:n}function I(){var t=this.parentNode;t&&t.removeChild(this)}function W(t){return{__data__:t}}function V(t){return function(){return Da(this,t)}}function Y(t){return arguments.length||(t=u),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function K(t,n){for(var e=0,r=t.length;e<r;e++)for(var i,o=t[e],a=0,u=o.length;a<u;a++)(i=o[a])&&n(i,a,e);return t}function X(t){return ka(t,ja),t}function Z(t){var n,e;return function(r,i,o){var a,u=t[o].update,l=u.length;for(o!=e&&(e=o,n=0),i>=n&&(n=i+1);!(a=u[n])&&++n<l;);return a}}function J(t,n,e){function r(){var n=this[a];n&&(this.removeEventListener(t,n,n.$),delete this[a])}function i(){var i=l(n,ga(arguments));r.call(this),this.addEventListener(t,this[a]=i,i.$=e),i._=n}function o(){var n,e=new RegExp("^__on([^.]+)"+pa.requote(t)+"$");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}var a="__on"+t,u=t.indexOf("."),l=$;u>0&&(t=t.slice(0,u));var c=Fa.get(t);return c&&(t=c,l=Q),u?n?i:r:n?z:o}function $(t,n){return function(e){var r=pa.event;pa.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{pa.event=r}}}function Q(t,n){var e=$(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function tt(t){var n=".dragsuppress-"+ ++Ra,e="click"+n,r=pa.select(a(t)).on("touchmove"+n,L).on("dragstart"+n,L).on("selectstart"+n,L);if(null==Oa&&(Oa=!("onselectstart"in t)&&T(t.style,"userSelect")),Oa){var i=o(t).style,u=i[Oa];i[Oa]="none"}return function(t){if(r.on(n,null),Oa&&(i[Oa]=u),t){var o=function(){r.on(e,null)};r.on(e,function(){L(),o()},!0),setTimeout(o,0)}}}function nt(t,n){n.changedTouches&&(n=n.changedTouches[0]);var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(Ga<0){var i=a(t);if(i.scrollX||i.scrollY){e=pa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=e[0][0].getScreenCTM();Ga=!(o.f||o.e),e.remove()}}return Ga?(r.x=n.pageX,r.y=n.pageY):(r.x=n.clientX,r.y=n.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var u=t.getBoundingClientRect();return[n.clientX-u.left-t.clientLeft,n.clientY-u.top-t.clientTop]}function et(){return pa.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function it(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function ot(t){return t>1?0:t<-1?Ba:Math.acos(t)}function at(t){return t>1?Wa:t<-1?-Wa:Math.asin(t)}function ut(t){return((t=Math.exp(t))-1/t)/2}function lt(t){return((t=Math.exp(t))+1/t)/2}function ct(t){return((t=Math.exp(2*t))-1)/(t+1)}function st(t){return(t=Math.sin(t/2))*t}function ft(){}function ht(t,n,e){return this instanceof ht?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof ht?new ht(t.h,t.s,t.l):zt(""+t,_t,ht):new ht(t,n,e)}function pt(t,n,e){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?o+(a-o)*t/60:t<180?a:t<240?o+(a-o)*(240-t)/60:o}function i(t){return Math.round(255*r(t))}var o,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:n<0?0:n>1?1:n,e=e<0?0:e>1?1:e,a=e<=.5?e*(1+n):e+n-e*n,o=2*e-a,new Mt(i(t+120),i(t),i(t-120))}function dt(t,n,e){return this instanceof dt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof dt?new dt(t.h,t.c,t.l):t instanceof vt?bt(t.l,t.a,t.b):bt((t=kt((t=pa.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new dt(t,n,e)}function gt(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new vt(e,Math.cos(t*=Va)*n,Math.sin(t)*n)}function vt(t,n,e){return this instanceof vt?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof vt?new vt(t.l,t.a,t.b):t instanceof dt?gt(t.h,t.c,t.l):kt((t=Mt(t)).r,t.g,t.b):new vt(t,n,e)}function yt(t,n,e){var r=(t+16)/116,i=r+n/500,o=r-e/200;return i=mt(i)*ru,r=mt(r)*iu,o=mt(o)*ou,new Mt(wt(3.2404542*i-1.5371385*r-.4985314*o),wt(-.969266*i+1.8760108*r+.041556*o),wt(.0556434*i-.2040259*r+1.0572252*o))}function bt(t,n,e){return t>0?new dt(Math.atan2(e,n)*Ya,Math.sqrt(n*n+e*e),t):new dt(NaN,NaN,t)}function mt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function xt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function wt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Mt(t,n,e){return this instanceof Mt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof Mt?new Mt(t.r,t.g,t.b):zt(""+t,Mt,pt):new Mt(t,n,e)}function Ct(t){return new Mt(t>>16,t>>8&255,255&t)}function St(t){return Ct(t)+""}function Tt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function zt(t,n,e){var r,i,o,a=0,u=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(Et(i[0]),Et(i[1]),Et(i[2]))}return(o=lu.get(t))?n(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a|=a>>4,u=240&o,u|=u>>4,l=15&o,l|=l<<4):7===t.length&&(a=(16711680&o)>>16,u=(65280&o)>>8,l=255&o)),n(a,u,l))}function _t(t,n,e){var r,i,o=Math.min(t/=255,n/=255,e/=255),a=Math.max(t,n,e),u=a-o,l=(a+o)/2;return u?(i=l<.5?u/(a+o):u/(2-a-o),r=t==a?(n-e)/u+(n<e?6:0):n==a?(e-t)/u+2:(t-n)/u+4,r*=60):(r=NaN,i=l>0&&l<1?0:r),new ht(r,i,l)}function kt(t,n,e){t=Lt(t),n=Lt(n),e=Lt(e);var r=xt((.4124564*t+.3575761*n+.1804375*e)/ru),i=xt((.2126729*t+.7151522*n+.072175*e)/iu),o=xt((.0193339*t+.119192*n+.9503041*e)/ou);return vt(116*i-16,500*(r-i),200*(i-o))}function Lt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Et(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function Dt(t){return"function"==typeof t?t:function(){return t}}function Pt(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),At(n,e,t,r)}}function At(t,n,e,r){function i(){var t,n=l.status;if(!n&&jt(l)||n>=200&&n<300||304===n){try{t=e.call(o,l)}catch(t){return void a.error.call(o,t)}a.load.call(o,t)}else a.error.call(o,l)}var o={},a=pa.dispatch("beforesend","progress","load","error"),u={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(t){var n=pa.event;pa.event=t;try{a.progress.call(o,l)}finally{pa.event=n}},o.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==n?delete u[t]:u[t]=n+"",o)},o.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",o):n},o.responseType=function(t){return arguments.length?(c=t,o):c},o.response=function(t){return e=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(ga(arguments)))}}),o.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(e,t,!0),null==n||"accept"in u||(u.accept=n+",*/*"),l.setRequestHeader)for(var s in u)l.setRequestHeader(s,u[s]);return null!=n&&l.overrideMimeType&&l.overrideMimeType(n),null!=c&&(l.responseType=c),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),a.beforesend.call(o,l),l.send(null==r?null:r),o},o.abort=function(){return l.abort(),o},pa.rebind(o,a,"on"),null==r?o:o.get(Nt(r))}function Nt(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function jt(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Ft(t,n,e){var r=arguments.length;r<2&&(n=0),r<3&&(e=Date.now());var i=e+n,o={c:t,t:i,n:null};return su?su.n=o:cu=o,su=o,fu||(hu=clearTimeout(hu),fu=1,pu(Ot)),o}function Ot(){var t=Rt(),n=Gt()-t;n>24?(isFinite(n)&&(clearTimeout(hu),hu=setTimeout(Ot,n)),fu=0):(fu=1,pu(Ot))}function Rt(){for(var t=Date.now(),n=cu;n;)t>=n.t&&n.c(t-n.t)&&(n.c=null),n=n.n;return t}function Gt(){for(var t,n=cu,e=1/0;n;)n.c?(n.t<e&&(e=n.t),n=(t=n).n):n=t?t.n=n.n:cu=n.n;return su=t,e}function qt(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Ht(t,n){var e=Math.pow(10,3*Ca(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function Bt(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,o=r&&e?function(t,n){for(var i=t.length,o=[],a=0,u=r[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),o.push(t.substring(i-=u,i+u)),!((l+=u+1)>n));)u=r[a=(a+1)%r.length];return o.reverse().join(e)}:C;return function(t){var e=gu.exec(t),r=e[1]||" ",a=e[2]||">",u=e[3]||"-",l=e[4]||"",c=e[5],s=+e[6],f=e[7],h=e[8],p=e[9],d=1,g="",v="",y=!1,b=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),p){case"n":f=!0,p="g";break;case"%":d=100,v="%",p="f";break;case"p":d=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(g="0"+p.toLowerCase());case"c":b=!1;case"d":y=!0,h=0;break;case"s":d=-1,p="r"}"$"===l&&(g=i[0],v=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=vu.get(p)||Ut;var m=c&&f;return function(t){var e=v;if(y&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(d<0){var l=pa.formatPrefix(t,h);t=l.scale(t),e=l.symbol+v}else t*=d;t=p(t,h);var x,w,M=t.lastIndexOf(".");if(M<0){var C=b?t.lastIndexOf("e"):-1;C<0?(x=t,w=""):(x=t.substring(0,C),w=t.substring(C))}else x=t.substring(0,M),w=n+t.substring(M+1);!c&&f&&(x=o(x,1/0));var S=g.length+x.length+w.length+(m?0:i.length),T=S<s?new Array(S=s-S+1).join(r):"";return m&&(x=o(T+x,T.length?s-w.length:1/0)),i+=g,t=x+w,("<"===a?i+t+T:">"===a?T+i+t:"^"===a?T.substring(0,S>>=1)+i+t+T.substring(S):i+(m?t:T+t))+e}}}function Ut(t){return t+""}function It(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Wt(t,n,e){function r(n){var e=t(n),r=o(e,1);return n-e<r-n?e:r}function i(e){return n(e=t(new bu(e-1)),1),e}function o(t,e){return n(t=new bu(+t),e),t}function a(t,r,o){var a=i(t),u=[];if(o>1)for(;a<r;)e(a)%o||u.push(new Date(+a)),n(a,1);else for(;a<r;)u.push(new Date(+a)),n(a,1);return u}function u(t,n,e){try{bu=It;var r=new It;return r._=t,a(r,n,e)}finally{bu=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var l=t.utc=Vt(t);return l.floor=l,l.round=Vt(r),l.ceil=Vt(i),l.offset=Vt(o),l.range=u,t}function Vt(t){return function(n,e){try{bu=It;var r=new It;return r._=n,t(r,e)._}finally{bu=Date}}}function Yt(t){function n(t){function n(n){for(var e,i,o,a=[],u=-1,l=0;++u<r;)37===t.charCodeAt(u)&&(a.push(t.slice(l,u)),null!=(i=xu[e=t.charAt(++u)])&&(e=t.charAt(++u)),(o=k[e])&&(e=o(n,null==i?"e"===e?" ":"0":i)),a.push(e),l=u+1);return a.push(t.slice(l,u)),a.join("")}var r=t.length;return n.parse=function(n){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=e(r,t,n,0);if(i!=n.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&bu!==It,a=new(o?It:bu);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),o?a._:a},n.toString=function(){return t},n}function e(t,n,e,r){for(var i,o,a,u=0,l=n.length,c=e.length;u<l;){if(r>=c)return-1;if(i=n.charCodeAt(u++),37===i){if(a=n.charAt(u++),o=L[a in xu?n.charAt(u++):a],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(t,n,e){M.lastIndex=0;var r=M.exec(n.slice(e));return r?(t.w=C.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){x.lastIndex=0;var r=x.exec(n.slice(e));return r?(t.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,e){z.lastIndex=0;var r=z.exec(n.slice(e));return r?(t.m=_.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,e){S.lastIndex=0;var r=S.exec(n.slice(e));return r?(t.m=T.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,r){return e(t,k.c.toString(),n,r)}function l(t,n,r){return e(t,k.x.toString(),n,r)}function c(t,n,r){return e(t,k.X.toString(),n,r)}function s(t,n,e){var