text: !function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n||t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";var r=t("route-state"),o=t("handle-error-web"),i=t("./flows/skeleton-flow"),a=t("./dom/render-controls"),u=r({followRoute:function(t){i({skeleton:t.skeleton,useExtraParts:t.useExtraParts}),a({onRoll:c,hideControls:t.hideControls})},windowObject:window});function c(){u.overwriteRouteEntirely({})}function s(t,e,n,r,i){o(i)}window.onerror=s,u.routeFromHash()},{"./dom/render-controls":2,"./flows/skeleton-flow":4,"handle-error-web":14,"route-state":19}],2:[function(t,e,n){"use strict";var r=t("d3-selection").select("#roll-dem-bones-button");e.exports=function(t){var e=t.onRoll,n=t.hideControls;r.classed("hidden","yes"===n),r.on("click.roll",null),r.on("click.roll",e)}},{"d3-selection":11}],3:[function(t,e,n){"use strict";var r=t("d3-selection");t("d3-transition");var o=r.select(".dem-bones"),i=r.select(".board"),a=t("accessor")();e.exports=function(t){var e=t.specs,n=t.bodyColor;document.body.style.backgroundColor=n;var r=+window.innerWidth,u=+window.innerHeight;u<r&&(u=r),i.attr("width",r),i.attr("height",u),o.selectAll("*").remove(),o.selectAll(".bone").data(e,a("imageURL")).enter().append("g").classed("bone",!0).attr("transform",function(t){var e=t.rotationAngle,n=t.rotationCenterX,r=t.rotationCenterY,o=t.translateX,i=t.translateY;return"rotate("+e+", "+n+", "+r+")\n      translate("+o+", "+i+")"}).append("image").attr("xlink:href",a("imageURL")).attr("width",a("width")).attr("height",a("height"))}},{accessor:5,"d3-selection":11,"d3-transition":13}],4:[function(t,e,n){"use strict";var r=t("basic-browser-request"),o=t("standard-bail")(),i=t("handle-error-web"),a=t("../dom/render-skeleton"),u=t("probable"),c=t("lodash.clonedeep"),s=t("lodash.curry"),l=100,f=100,h=["#66b04b","#267129","#7cb420","rgb(255, 0, 154)","rgb(255, 0, 111)","rgb(255, 7, 69)","rgb(255, 69, 16)","rgb(255, 101, 0)","rgb(226, 124, 0)","rgb(191, 143, 0)","rgb(152, 157, 0)","rgb(106, 167, 0)","rgb(24, 174, 0)","rgb(0, 179, 10)","rgb(0, 183, 77)","rgb(0, 185, 124)","rgb(0, 187, 170)","rgb(143, 121, 255)","rgb(213, 92, 255)","rgb(255, 52, 240)","rgb(255, 0, 198"];function p(t,e,n,r){var o=t*Math.PI/180,i=r[0]-n[0],a=r[1]-n[1],u=Math.sqrt(i*i+a*a),c=(0!==i?Math.atan2(a,i):a>0?Math.PI/2:1.5*Math.PI)+o,s=[e[0]+Math.cos(c)*u,e[1]+Math.sin(c)*u];return console.log("newConnectorEnd",s),s}e.exports=function(t){var e=t.skeleton,n=void 0===e?"skeleton":e,d=t.useExtraParts;r({url:"data/"+n+".json",method:"GET",json:!0},o(function(t,e){var n=l/e.canvasWidth,r=f/e.canvasHeight,o=n;r<o&&(o=r);var i=[[l/2,f/2]],v=[],y=u.shuffle(e.bones).map(function(t){return{id:t.id,connectors:t.connectors.map(k),imageWidth:t.imageWidth*o,imageHeight:t.imageHeight*o}});for(d&&(y=y.concat(u.sample(y,u.roll(y.length))));y.length>0&&i.length>0;){var g=y.pop(),m=c(g.connectors),b=u.roll(m.length),w=m[b];console.log("connectors",c(m)),console.log("Selected connector",w);var _=u.roll(i.length),x=i[_],j=u.roll(360),A={imageURL:"static/"+g.id+".png",rotationAngle:j,rotationCenterX:x[0],rotationCenterY:x[1],translateX:x[0]-w[0],translateY:x[1]-w[1],width:g.imageWidth,height:g.imageHeight};v.push(A),v.length>1&&m.splice(b,1),i.splice(_,1);var O=m.map(s(p)(j,x,w));console.log("newOpenConnectors from",g.id,":",O),i=i.concat(O),console.log("openConnectors",i)}var M="white";function k(t){return[t[0]*o,t[1]*o]}0===u.roll(2)&&(M=0===u.roll(2)?u.pickFromArray(h):"#222"),a({specs:v,bodyColor:M})},i))}},{"../dom/render-skeleton":3,"basic-browser-request":6,"handle-error-web":14,"lodash.clonedeep":15,"lodash.curry":16,probable:18,"standard-bail":25}],5:[function(t,e,n){function r(t){return t}"object"==typeof e&&"object"==typeof e.exports&&(e.exports=function(){var t={identity:r};return function(e,n){var r,o="id";if(void 0===n&&(r=t[e]),r)return r;e&&(o="string"==typeof e?e:""+e);var i,a,u=(i=o,a=n,function(t){if("object"==typeof t){var e=t[i];return void 0===e?a:t[i]}return a});return void 0!==n&&(t[o]=n),u}})},{}],6:[function(t,e,n){if("object"==typeof e&&"object"==typeof e.exports){var r={makeRequest:function(t,e){var n=t.json||"application/json"===t.mimeType,r=new XMLHttpRequest;if(r.open(t.method,t.url),t.mimeType&&r.setRequestHeader("content-type",t.mimeType),n&&r.setRequestHeader("accept","application/json"),"object"==typeof t.headers)for(var o in t.headers)r.setRequestHeader(o,t.headers[o]);t.binary&&(r.responseType="arraybuffer"),n&&"object"==typeof t.body&&(t.body=JSON.stringify(t.body));var i=null;r.onload=function(){clearTimeout(i);var o={statusCode:this.status,statusMessage:r.statusText,responseURL:r.responseURL,rawResponse:r.response,xhr:r};if(t.binary)e(null,o,r.response);else{var a=this.responseText;if(n)try{a=JSON.parse(a)}catch(t){o.jsonParseError=t}e(null,o,a)}};var a=0;function u(){r.abort(),clearTimeout(i),e()}return t.onData&&(r.onreadystatechange=function(){3===r.readyState&&(t.onData(this.responseText.substr(a)),a=this.responseText.length)}),r.onerror=function(){var t=new Error("There is a problem with the network.");t.name="XHR network error",e(t)},r.send(t.formData||t.body),t.timeLimit>0&&(i=setTimeout(u,t.timeLimit)),{url:t.url,cancelRequest:u}}};e.exports=r.makeRequest}},{}],7:[function(t,e,n){var r,o;r=this,o=function(t){"use strict";var e=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function n(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function r(){}var o="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3})$/,c=/^#([0-9a-f]{6})$/,s=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),l=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),f=new RegExp("^rgba\\("+[o,o,o,i]+"\\)$"),h=new RegExp("^rgba\\("+[a,a,a,i]+"\\)$"),p=new RegExp("^hsl\\("+[i,a,a]+"\\)$"),d=new RegExp("^hsla\\("+[i,a,a,i]+"\\)$"),v={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 y(t){var e;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?new _((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=c.exec(t))?g(parseInt(e[1],16)):(e=s.exec(t))?new _(e[1],e[2],e[3],1):(e=l.exec(t))?new _(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?m(e[1],e[2],e[3],e[4]):(e=h.exec(t))?m(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?x(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?x(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?g(v[t]):"transparent"===t?new _(NaN,NaN,NaN,0):null}function g(t){return new _(t>>16&255,t>>8&255,255&t,1)}function m(t,e,n,r){return r<=0&&(t=e=n=NaN),new _(t,e,n,r)}function b(t){return t instanceof r||(t=y(t)),t?new _((t=t.rgb()).r,t.g,t.b,t.opacity):new _}function w(t,e,n,r){return 1===arguments.length?b(t):new _(t,e,n,null==r?1:r)}function _(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function x(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new A(t,e,n,r)}function j(t,e,n,o){return 1===arguments.length?function(t){if(t instanceof A)return new A(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=y(t)),!t)return new A;if(t instanceof A)return t;var e=(t=t.rgb()).r/255,n=t.g/255,o=t.b/255,i=Math.min(e,n,o),a=Math.max(e,n,o),u=NaN,c=a-i,s=(a+i)/2;return c?(u=e===a?(n-o)/c+6*(n<o):n===a?(o-e)/c+2:(e-n)/c+4,c/=s<.5?a+i:2-a-i,u*=60):c=s>0&&s<1?0:u,new A(u,c,s,t.opacity)}(t):new A(t,e,n,null==o?1:o)}function A(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function O(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e(r,y,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),e(_,w,n(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(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+")")}})),e(A,j,n(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new A(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new A(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new _(O(t>=240?t-240:t+120,o,r),O(t,o,r),O(t<120?t+240:t-120,o,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}}));var M=Math.PI/180,k=180/Math.PI,E=.95047,N=1,S=1.08883,P=4/29,C=6/29,R=3*C*C,T=C*C*C;function I(t){if(t instanceof L)return new L(t.l,t.a,t.b,t.opacity);if(t instanceof X){var e=t.h*M;return new L(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof _||(t=b(t));var n=$(t.r),r=$(t.g),o=$(t.b),i=D((.4124564*n+.3575761*r+.1804375*o)/E),a=D((.2126729*n+.7151522*r+.072175*o)/N);return new L(116*a-16,500*(i-a),200*(a-D((.0193339*n+.119192*r+.9503041*o)/S)),t.opacity)}function q(t,e,n,r){return 1===arguments.length?I(t):new L(t,e,n,null==r?1:r)}function L(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function D(t){return t>T?Math.pow(t,1/3):t/R+P}function F(t){return t>C?t*t*t:R*(t-P)}function H(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function B(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof X)return new X(t.h,t.c,t.l,t.opacity);t instanceof L||(t=I(t));var e=Math.atan2(t.b,t.a)*k;return new X(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new X(t,e,n,null==r?1:r)}function X(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e(L,q,n(r,{brighter:function(t){return new L(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new L(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=N*F(t),new _(H(3.2404542*(e=E*F(e))-1.5371385*t-.4985314*(n=S*F(n))),H(-.969266*e+1.8760108*t+.041556*n),H(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),e(X,B,n(r,{brighter:function(t){return new X(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new X(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return I(this).rgb()}}));var U=-.29227,V=-.90649,z=1.97294,Y=z*V,Q=1.78277*z,G=1.78277*U- -.14861*V;function W(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof J)return new J(t.h,t.s,t.l,t.opacity);t instanceof _||(t=b(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(G*r+Y*e-Q*n)/(G+Y-Q),i=r-o,a=(z*(n-o)-U*i)/V,u=Math.sqrt(a*a+i*i)/(z*o*(1-o)),c=u?Math.atan2(a,i)*k-120:NaN;return new J(c<0?c+360:c,u,o,t.opacity)}(t):new J(t,e,n,null==r?1:r)}function J(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e(J,W,n(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new J(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new J(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*M,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new _(255*(e+n*(-.14861*r+1.78277*o)),255*(e+n*(U*r+V*o)),255*(e+n*(z*r)),this.opacity)}})),t.color=y,t.rgb=w,t.hsl=j,t.lab=q,t.hcl=B,t.cubehelix=W,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n):"function"==typeof define&&define.amd?define(["exports"],o):o(r.d3=r.d3||{})},{}],8:[function(t,e,n){var r,o;r=this,o=function(t){"use strict";var e={value:function(){}};function n(){for(var t,e=0,n=arguments.length,o={};e<n;++e){if(!(t=arguments[e]+"")||t in o)throw new Error("illegal type: "+t);o[t]=[]}return new r(o)}function r(t){this._=t}function o(t,e){for(var n,r=0,o=t.length;r<o;++r)if((n=t[r]).name===e)return n.value}function i(t,n,r){for(var o=0,i=t.length;o<i;++o)if(t[o].name===n){t[o]=e,t=t.slice(0,o).concat(t.slice(o+1));break}return null!=r&&t.push({name:n,value:r}),t}r.prototype=n.prototype={constructor:r,on:function(t,e){var n,r,a=this._,u=(r=a,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),c=-1,s=u.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<s;)if(n=(t=u[c]).type)a[n]=i(a[n],t.name,e);else if(null==e)for(n in a)a[n]=i(a[n],t.name,null);return this}for(;++c<s;)if((n=(t=u[c]).type)&&(n=o(a[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new r(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,n=(r=this._[t]).length;i<n;++i)r[i].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}},t.dispatch=n,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n):"function"==typeof define&&define.amd?define(["exports"],o):o(r.d3=r.d3||{})},{}],9:[function(t,e,n){var r,o;r=this,o=function(t){"use strict";function e(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function n(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),o=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),a=Math.PI,u=a/2;function c(t){return(1-Math.cos(a*t))/2}function s(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function l(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var f=4/11,h=6/11,p=8/11,d=.75,v=9/11,y=10/11,g=.9375,m=21/22,b=63/64,w=1/f/f;function _(t){return(t=+t)<f?w*t*t:t<p?w*(t-=h)*t+d:t<y?w*(t-=v)*t+g:w*(t-=m)*t+b}var x=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),j=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),A=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),O=2*Math.PI,M=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=O);function o(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return o.amplitude=function(e){return t(e,n*O)},o.period=function(n){return t(e,n)},o}(1,.3),k=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=O);function o(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return o.amplitude=function(e){return t(e,n*O)},o.period=function(n){return t(e,n)},o}(1,.3),E=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=O);function o(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return o.amplitude=function(e){return t(e,n*O)},o.period=function(n){return t(e,n)},o}(1,.3);t.easeLinear=function(t){return+t},t.easeQuad=e,t.easeQuadIn=function(t){return t*t},t.easeQuadOut=function(t){return t*(2-t)},t.easeQuadInOut=e,t.easeCubic=n,t.easeCubicIn=function(t){return t*t*t},t.easeCubicOut=function(t){return--t*t*t+1},t.easeCubicInOut=n,t.easePoly=i,t.easePolyIn=r,t.easePolyOut=o,t.easePolyInOut=i,t.easeSin=c,t.easeSinIn=function(t){return 1-Math.cos(t*u)},t.easeSinOut=function(t){return Math.sin(t*u)},t.easeSinInOut=c,t.easeExp=s,t.easeExpIn=function(t){return Math.pow(2,10*t-10)},t.easeExpOut=function(t){return 1-Math.pow(2,-10*t)},t.easeExpInOut=s,t.easeCircle=l,t.easeCircleIn=function(t){return 1-Math.sqrt(1-t*t)},t.easeCircleOut=function(t){return Math.sqrt(1- --t*t)},t.easeCircleInOut=l,t.easeBounce=_,t.easeBounceIn=function(t){return 1-_(1-t)},t.easeBounceOut=_,t.easeBounceInOut=function(t){return((t*=2)<=1?1-_(1-t):_(t-1)+1)/2},t.easeBack=A,t.easeBackIn=x,t.easeBackOut=j,t.easeBackInOut=A,t.easeElastic=k,t.easeElasticIn=M,t.easeElasticOut=k,t.easeElasticInOut=E,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n):"function"==typeof define&&define.amd?define(["exports"],o):o(r.d3=r.d3||{})},{}],10:[function(t,e,n){var r,o;r=this,o=function(t,e){"use strict";function n(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}var r=function(t){var e=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[o],a=t[o+1],u=o>0?t[o-1]:2*i-a,c=o<e-1?t[o+2]:2*a-i;return n((r-o/e)*e,u,i,a,c)}},o=function(t){var e=t.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*e),i=t[(o+e-1)%e],a=t[o%e],u=t[(o+1)%e],c=t[(o+2)%e];return n((r-o/e)*e,i,a,u,c)}},i=function(t){return function(){return t}};function a(t,e){return function(n){return t+n*e}}function u(t,e){var n=e-t;return n?a(t,n>180||n<-180?n-360*Math.round(n/360):n):i(isNaN(t)?e:t)}function c(t){return 1==(t=+t)?s:function(e,n){return n-e?(r=e,o=n,a=t,r=Math.pow(r,a),o=Math.pow(o,a)-r,a=1/a,function(t){return Math.pow(r+t*o,a)}):i(isNaN(e)?n:e);var r,o,a}}function s(t,e){var n=e-t;return n?a(t,n):i(isNaN(t)?e:t)}var l=function t(n){var r=c(n);function o(t,n){var o=r((t=e.rgb(t)).r,(n=e.rgb(n)).r),i=r(t.g,n.g),a=r(t.b,n.b),u=s(t.opacity,n.opacity);return function(e){return t.r=o(e),t.g=i(e),t.b=a(e),t.opacity=u(e),t+""}}return o.gamma=t,o}(1);function f(t){return function(n){var r,o,i=n.length,a=new Array(i),u=new Array(i),c=new Array(i);for(r=0;r<i;++r)o=e.rgb(n[r]),a[r]=o.r||0,u[r]=o.g||0,c[r]=o.b||0;return a=t(a),u=t(u),c=t(c),o.opacity=1,function(t){return o.r=a(t),o.g=u(t),o.b=c(t),o+""}}}var h=f(r),p=f(o),d=function(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=O(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}},v=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}},y=function(t,e){return e-=t=+t,function(n){return t+e*n}},g=function(t,e){var n,r={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=O(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}},m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,b=new RegExp(m.source,"g");var w,_,x,j,A=function(t,e){var n,r,o,i,a,u=m.lastIndex=b.lastIndex=0,c=-1,s=[],l=[];for(t+="",e+="";(n=m.exec(t))&&(r=b.exec(e));)(o=r.index)>u&&(o=e.slice(u,o),s[c]?s[c]+=o:s[++c]=o),(n=n[0])===(r=r[0])?s[c]?s[c]+=r:s[++c]=r:(s[++c]=null,l.push({i:c,x:y(n,r)})),u=b.lastIndex;return u<e.length&&(o=e.slice(u),s[c]?s[c]+=o:s[++c]=o),s.length<2?l[0]?(a=l[0].x,function(t){return a(t)+""}):(i=e,function(){return i}):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})},O=function(t,n){var r,o=typeof n;return null==n||"boolean"===o?i(n):("number"===o?y:"string"===o?(r=e.color(n))?(n=r,l):A:n instanceof e.color?l:n instanceof Date?v:Array.isArray(n)?d:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?g:y)(t,n)},M=180/Math.PI,k={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},E=function(t,e,n,r,o,i){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*M,skewX:Math.atan(c)*M,scaleX:a,scaleY:u}};function N(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}return function(i,a){var u,c,s,l,f,h,p=[],d=[];return i=t(i),a=t(a),function(t,r,o,i,a,u){if(t!==o||r!==i){var c=a.push("translate(",null,e,null,n);u.push({i:c-4,x:y(t,o)},{i:c-2,x:y(r,i)})}else(o||i)&&a.push("translate("+o+e+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,p,d),u=i.rotate,c=a.rotate,s=p,u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),d.push({i:s.push(o(s)+"rotate(",null,r)-2,x:y(u,c)})):c&&s.push(o(s)+"rotate("+c+r),l=i.skewX,f=a.skewX,h=p,l!==f?d.push({i:h.push(o(h)+"skewX(",null,r)-2,x:y(l,f)}):f&&h.push(o(h)+"skewX("+f+r),function(t,e,n,r,i,a){if(t!==n||e!==r){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:y(t,n)},{i:u-2,x:y(e,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,p,d),i=a=null,function(t){for(var e,n=-1,r=d.length;++n<r;)p[(e=d[n]).i]=e.x(t);return p.join("")}}}var S=N(function(t){return"none"===t?k:(w||(w=document.createElement("DIV"),_=document.documentElement,x=document.defaultView),w.style.transform=t,t=x.getComputedStyle(_.appendChild(w),null).getPropertyValue("transform"),_.removeChild(w),t=t.slice(7,-1).split(","),E(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),P=N(function(t){return null==t?k:(j||(j=document.createElementNS("http://www.w3.org/2000/svg","g")),j.setAttribute("transform",t),(t=j.transform.baseVal.consolidate())?(t=t.matrix,E(t.a,t.b,t.c,t.d,t.e,t.f)):k)},", ",")",")"),C=Math.SQRT2;function R(t){return((t=Math.exp(t))+1/t)/2}function T(t){return function(n,r){var o=t((n=e.hsl(n)).h,(r=e.hsl(r)).h),i=s(n.s,r.s),a=s(n.l,r.l),u=s(n.opacity,r.opacity);return function(t){return n.h=o(t),n.s=i(t),n.l=a(t),n.opacity=u(t),n+""}}}var I=T(u),q=T(s);function L(t){return function(n,r){var o=t((n=e.hcl(n)).h,(r=e.hcl(r)).h),i=s(n.c,r.c),a=s(n.l,r.l),u=s(n.opacity,r.opacity);return function(t){return n.h=o(t),n.c=i(t),n.l=a(t),n.opacity=u(t),n+""}}}var D=L(u),F=L(s);function H(t){return function n(r){function o(n,o){var i=t((n=e.cubehelix(n)).h,(o=e.cubehelix(o)).h),a=s(n.s,o.s),u=s(n.l,o.l),c=s(n.opacity,o.opacity);return function(t){return n.h=i(t),n.s=a(t),n.l=u(Math.pow(t,r)),n.opacity=c(t),n+""}}return r=+r,o.gamma=n,o}(1)}var $=H(u),B=H(s);t.interpolate=O,t.interpolateArray=d,t.interpolateBasis=r,t.interpolateBasisClosed=o,t.interpolateDate=v,t.interpolateNumber=y,t.interpolateObject=g,t.interpolateRound=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},t.interpolateString=A,t.interpolateTransformCss=S,t.interpolateTransformSvg=P,t.interpolateZoom=function(t,e){var n,r,o=t[0],i=t[1],a=t[2],u=e[0],c=e[1],s=e[2],l=u-o,f=c-i,h=l*l+f*f;if(h<1e-12)r=Math.log(s/a)/C,n=function(t){return[o+t*l,i+t*f,a*Math.exp(C*t*r)]};else{var p=Math.sqrt(h),d=(s*s-a*a+4*h)/(2*a*2*p),v=(s*s-a*a-4*h)/(2*s*2*p),y=Math.log(Math.sqrt(d*d+1)-d),g=Math.log(Math.sqrt(v*v+1)-v);r=(g-y)/C,n=function(t){var e,n,u=t*r,c=R(y),s=a/(2*p)*(c*(n=C*u+y,((n=Math.exp(2*n))-1)/(n+1))-(e=y,((e=Math.exp(e))-1/e)/2));return[o+s*l,i+s*f,a*c/R(C*u+y)]}}return n.duration=1e3*r,n},t.interpolateRgb=l,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateHsl=I,t.interpolateHslLong=q,t.interpolateLab=function(t,n){var r=s((t=e.lab(t)).l,(n=e.lab(n)).l),o=s(t.a,n.a),i=s(t.b,n.b),a=s(t.opacity,n.opacity);return function(e){return t.l=r(e),t.a=o(e),t.b=i(e),t.opacity=a(e),t+""}},t.interpolateHcl=D,t.interpolateHclLong=F,t.interpolateCubehelix=$,t.interpolateCubehelixLong=B,t.quantize=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n,t("d3-color")):"function"==typeof define&&define.amd?define(["exports","d3-color"],o):o(r.d3=r.d3||{},r.d3)},{"d3-color":7}],11:[function(t,e,n){var r,o;r=this,o=function(t){"use strict";var e="http://www.w3.org/1999/xhtml",n={svg:"http://www.w3.org/2000/svg",xhtml:e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},r=function(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),n.hasOwnProperty(e)?{space:n[e],local:t}:t};var o=function(t){var n=r(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===e&&n.documentElement.namespaceURI===e?n.createElement(t):n.createElementNS(r,t)}})(n)},i=0;function a(){return new u}function u(){this._="@"+(++i).toString(36)}u.prototype=a.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var s=document.documentElement;if(!s.matches){var l=s.webkitMatchesSelector||s.msMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector;c=function(t){return function(){return l.call(this,t)}}}}var f=c,h={};(t.event=null,"undefined"!=typeof document)&&("onmouseenter"in document.documentElement||(h={mouseenter:"mouseover",mouseleave:"mouseout"}));function p(t,e,n){return t=d(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function d(e,n,r){return function(o){var i=t.event;t.event=o;try{e.call(this,this.__data__,n,r)}finally{t.event=i}}}function v(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r<i;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?e.length=o:delete this.__on}}}function y(t,e,n){var r=h.hasOwnProperty(t.type)?p:d;return function(o,i,a){var u,c=this.__on,s=r(e,i,a);if(c)for(var l=0,f=c.length;l<f;++l)if((u=c[l]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=s,u.capture=n),void(u.value=e);this.addEventListener(t.type,s,n),u={type:t.type,name:t.name,value:e,listener:s,capture:n},c?c.push(u):this.__on=[u]}}var g=function(){for(var e,n=t.event;e=n.sourceEvent;)n=e;return n},m=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]};function b(){}var w=function(t){return null==t?b:function(){return this.querySelector(t)}};function _(){return[]}var x=function(t){return null==t?_:function(){return this.querySelectorAll(t)}},j=function(t){return new Array(t.length)};function A(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}A.prototype={constructor:A,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var O="$";function M(t,e,n,r,o,i){for(var a,u=0,c=e.length,s=i.length;u<s;++u)(a=e[u])?(a.__data__=i[u],r[u]=a):n[u]=new A(t,i[u]);for(;u<c;++u)(a=e[u])&&(o[u]=a)}function k(t,e,n,r,o,i,a){var u,c,s,l={},f=e.length,h=i.length,p=new Array(f);for(u=0;u<f;++u)(c=e[u])&&(p[u]=s=O+a.call(c,c.__data__,u,e),s in l?o[u]=c:l[s]=c);for(u=0;u<h;++u)(c=l[s=O+a.call(t,i[u],u,i)])?(r[u]=c,c.__data__=i[u],l[s]=null):n[u]=new A(t,i[u]);for(u=0;u<f;++u)(c=e[u])&&l[p[u]]===c&&(o[u]=c)}function E(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var N=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function S(t,e){return t.style.getPropertyValue(e)||N(t).getComputedStyle(t,null).getPropertyValue(e)}function P(t){return t.trim().split(/^|\s+/)}function C(t){return t.classList||new R(t)}function R(t){this._node=t,this._names=P(t.getAttribute("class")||"")}function T(t,e){for(var n=C(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function I(t,e){for(var n=C(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}R.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function q(){this.textContent=""}function L(){this.innerHTML=""}function D(){this.nextSibling&&this.parentNode.appendChild(this)}function F(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function H(){return null}function $(){var t=this.parentNode;t&&t.removeChild(this)}function B(t,e,n){var r=N(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}var X=[null];function U(t,e){this._groups=t,this._parents=e}function V(){return new U([[document.documentElement]],X)}U.prototype=V.prototype={constructor:U,select:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i,a,u=e[o],c=u.length,s=r[o]=new Array(c),l=0;l<c;++l)(i=u[l])&&(a=t.call(i,i.__data__,l,u))&&("__data__"in i&&(a.__data__=i.__data__),s[l]=a);return new U(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=x(t));for(var e=this._groups,n=e.length,r=[],o=[],i=0;i<n;++i)for(var a,u=e[i],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),o.push(a));return new U(r,o)},filter:function(t){"function"!=typeof t&&(t=f(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i,a=e[o],u=a.length,c=r[o]=[],s=0;s<u;++s)(i=a[s])&&t.call(i,i.__data__,s,a)&&c.push(i);return new U(r,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),l=-1,this.each(function(t){d[++l]=t}),d;var n,r=e?k:M,o=this._parents,i=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=i.length,u=new Array(a),c=new Array(a),s=new Array(a),l=0;l<a;++l){var f=o[l],h=i[l],p=h.length,d=t.call(f,f&&f.__data__,l,o),v=d.length,y=c[l]=new Array(v),g=u[l]=new Array(v);r(f,h,y,g,s[l]=new Array(p),d,e);for(var m,b,w=0,_=0;w<v;++w)if(m=y[w]){for(w>=_&&(_=w+1);!(b=g[_])&&++_<v;);m._next=b||null}}return(u=new U(u,o))._enter=c,u._exit=s,u},enter:function(){return new U(this._enter||this._groups.map(j),this._parents)},exit:function(){return new U(this._exit||this._groups.map(j),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=new Array(r),u=0;u<i;++u)for(var c,s=e[u],l=n[u],f=s.length,h=a[u]=new Array(f),p=0;p<f;++p)(c=s[p]||l[p])&&(h[p]=c);for(;u<r;++u)a[u]=e[u];return new U(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=E);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,u=n[i],c=u.length,s=o[i]=new Array(c),l=0;l<c;++l)(a=u[l])&&(s[l]=a);s.sort(e)}return new U(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o,i=e[n],a=0,u=i.length;a<u;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this},attr:function(t,e){var n=r(t);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):S(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=P(t+"");if(arguments.length<2){for(var r=C(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?T:I)(this,t)}}:e?function(t){return function(){T(this,t)}}:function(t){return function(){I(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?q:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?L:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(D)},lower:function(){return this.each(F)},append:function(t){var e="function"==typeof t?t:o(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:o(t),r=null==e?H:"function"==typeof e?e:w(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each($)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=i.length;if(!(arguments.length<2)){for(u=e?y:v,null==n&&(n=!1),r=0;r<a;++r)this.each(u(i[r],e,n));return this}var u=this.node().__on;if(u)for(var c,s=0,l=u.length;s<l;++s)for(r=0,c=u[s];r<a;++r)if((o=i[r]).type===c.type&&o.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return B(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return B(this,t,e)}})(t,e))}};t.creator=o,t.local=a,t.matcher=f,t.mouse=function(t){var e=g();return e.changedTouches&&(e=e.changedTouches[0]),m(t,e)},t.namespace=r,t.namespaces=n,t.clientPoint=m,t.select=function(t){return"string"==typeof t?new U([[document.querySelector(t)]],[document.documentElement]):new U([[t]],X)},t.selectAll=function(t){return"string"==typeof t?new U([document.querySelectorAll(t)],[document.documentElement]):new U([null==t?[]:t],X)},t.selection=V,t.selector=w,t.selectorAll=x,t.style=S,t.touch=function(t,e,n){arguments.length<3&&(n=e,e=g().changedTouches);for(var r,o=0,i=e?e.length:0;o<i;++o)if((r=e[o]).identifier===n)return m(t,r);return null},t.touches=function(t,e){null==e&&(e=g().touches);for(var n=0,r=e?e.length:0,o=new Array(r);n<r;++n)o[n]=m(t,e[n]);return o},t.window=N,t.customEvent=function(e,n,r,o){var i=t.event;e.sourceEvent=t.event,t.event=e;try{return n.apply(r,o)}finally{t.event=i}},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n):"function"==typeof define&&define.amd?define(["exports"],o):o(r.d3=r.d3||{})},{}],12:[function(t,e,n){var r,o;r=this,o=function(t){"use strict";var e,n,r=0,o=0,i=0,a=1e3,u=0,c=0,s=0,l="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function h(){return c||(f(p),c=l.now()+s)}function p(){c=0}function d(){this._call=this._time=this._next=null}function v(t,e,n){var r=new d;return r.restart(t,e,n),r}function y(){h(),++r;for(var t,n=e;n;)(t=c-n._time)>=0&&n._call.call(null,t),n=n._next;--r}function g(){c=(u=l.now())+s,r=o=0;try{y()}finally{r=0,function(){var t,r,o=e,i=1/0;for(;o;)o._call?(i>o._time&&(i=o._time),t=o,o=o._next):(r=o._next,o._next=null,o=t?t._next=r:e=r);n=t,b(i)}(),c=0}}function m(){var t=l.now(),e=t-u;e>a&&(s-=e,u=t)}function b(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(g,t-l.now()-s)),i&&(i=clearInterval(i))):(i||(u=l.now(),i=setInterval(m,a)),r=1,f(g)))}d.prototype=v.prototype={constructor:d,restart:function(t,r,o){if("function"!=typeof t)throw new TypeError("callback is not a function");o=(null==o?h():+o)+(null==r?0:+r),this._next||n===this||(n?n._next=this:e=this,n=this),this._call=t,this._time=o,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};t.now=h,t.timer=v,t.timerFlush=y,t.timeout=function(t,e,n){var r=new d;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r},t.interval=function(t,e,n){var r=new d,o=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?h():+n,r.restart(function i(a){a+=o,r.restart(i,o+=e,n),t(a)},e,n),r)},Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n):"function"==typeof define&&define.amd?define(["exports"],o):o(r.d3=r.d3||{})},{}],13:[function(t,e,n){var r,o;r=this,o=function(t,e,n,r,o,i,a){"use strict";var u=n.dispatch("start","end","interrupt"),c=[],s=0,l=1,f=2,h=3,p=4,d=5,v=6,y=function(t,e,n,o,i,a){var y=t.__transition;if(y){if(n in y)return}else t.__transition={};!function(t,e,n){var o,i=t.__transition;function a(s){var d,y,g,m;if(n.state!==l)return c();for(d in i)if((m=i[d]).name===n.name){if(m.state===h)return r.timeout(a);m.state===p?(m.state=v,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete i[d]):+d<e&&(m.state=v,m.timer.stop(),delete i[d])}if(r.timeout(function(){n.state===h&&(n.state=p,n.timer.restart(u,n.delay,n.time),u(s))}),n.state=f,n.on.call("start",t,t.__data__,n.index,n.group),n.state===f){for(n.state=h,o=new Array(g=n.tween.length),d=0,y=-1;d<g;++d)(m=n.tween[d].value.call(t,t.__data__,n.index,n.group))&&(o[++y]=m);o.length=y+1}}function u(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=d,1),i=-1,a=o.length;++i<a;)o[i].call(null,r);n.state===d&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=v,n.timer.stop(),delete i[e];for(var r in i)return;delete t.__transition}i[e]=n,n.timer=r.timer(function(t){n.state=l,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)},0,n.time)}(t,n,{name:e,index:o,group:i,on:u,tween:c,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:s})};function g(t,e){var n=b(t,e);if(n.state>s)throw new Error("too late; already scheduled");return n}function m(t,e){var n=b(t,e);if(n.state>f)throw new Error("too late; already started");return n}function b(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var w=function(t,e){var n,r,o,i=t.__transition,a=!0;if(i){e=null==e?null:e+"";for(o in i)(n=i[o]).name===e?(r=n.state>f&&n.state<d,n.state=v,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete t.__transition}};function _(t,e,n){var r=t._id;return t.each(function(){var t=m(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return b(t,r).value[e]}}var x=function(t,e){var n;return("number"==typeof e?o.interpolateNumber:e instanceof i.color?o.interpolateRgb:(n=i.color(e))?(e=n,o.interpolateRgb):o.interpolateString)(t,e)};var j=e.selection.prototype.constructor;var A=0;function O(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function M(t){return e.selection().transition(t)}function k(){return++A}var E=e.selection.prototype;O.prototype=M.prototype={constructor:O,select:function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=e.selector(t));for(var o=this._groups,i=o.length,a=new Array(i),u=0;u<i;++u)for(var c,s,l=o[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(c=l[p])&&(s=t.call(c,c.__data__,p,l))&&("__data__"in c&&(s.__data__=c.__data__),h[p]=s,y(h[p],n,r,p,h,b(c,r)));return new O(a,this._parents,n,r)},selectAll:function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=e.selectorAll(t));for(var o=this._groups,i=o.length,a=[],u=[],c=0;c<i;++c)for(var s,l=o[c],f=l.length,h=0;h<f;++h)if(s=l[h]){for(var p,d=t.call(s,s.__data__,h,l),v=b(s,r),g=0,m=d.length;g<m;++g)(p=d[g])&&y(p,n,r,g,d,v);a.push(d),u.push(s)}return new O(a,u,n,r)},filter:function(t){"function"!=typeof t&&(t=e.matcher(t));for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i)for(var a,u=n[i],c=u.length,s=o[i]=[],l=0;l<c;++l)(a=u[l])&&t.call(a,a.__data__,l,u)&&s.push(a);return new O(o,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=new Array(r),u=0;u<i;++u)for(var c,s=e[u],l=n[u],f=s.length,h=a[u]=new Array(f),p=0;p<f;++p)(c=s[p]||l[p])&&(h[p]=c);for(;u<r;++u)a[u]=e[u];return new O(a,this._parents,this._name,this._id)},selection:function(){return new j(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=k(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,u=r[i],c=u.length,s=0;s<c;++s)if(a=u[s]){var l=b(a,e);y(a,t,n,s,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new O(r,this._parents,t,n)},call:E.call,nodes:E.nodes,node:E.node,size:E.size,empty:E.empty,each:E.each,on:function(t,e){var n,r,o,i,a,u,c=this._id;return arguments.length<2?b(this.node(),c).on.on(t):this.each((n=c,o=e,u=((r=t)+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?g:m,function(){var t=u(this,n),e=t.on;e!==i&&(a=(i=e).copy()).on(r,o),t.on=a}))},attr:function(t,n){var r=e.namespace(t),i="transform"===r?o.interpolateTransformSvg:x;return this.attrTween(t,"function"==typeof n?(r.local?function(t,e,n){var r,o,i;return function(){var a,u=n(this);if(null!=u)return(a=this.getAttributeNS(t.space,t.local))===u?null:a===r&&u===o?i:i=e(r=a,o=u);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,o,i;return function(){var a,u=n(this);if(null!=u)return(a=this.getAttribute(t))===u?null:a===r&&u===o?i:i=e(r=a,o=u);this.removeAttribute(t)}})(r,i,_(this,"attr."+t,n)):null==n?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,n){var r,o;return function(){var i=this.getAttributeNS(t.space,t.local);return i===n?null:i===r?o:o=e(r=i,n)}}:function(t,e,n){var r,o;return function(){var i=this.getAttribute(t);return i===n?null:i===r?o:o=e(r=i,n)}})(r,i,n+""))},attrTween:function(t,n){var r="attr."+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;var o=e.namespace(t);return this.tween(r,(o.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(o,n))},style:function(t,n,r){var i,a,u,c,s,l,f,h,p,d,v,y,g,m,b,w,j,A="transform"==(t+="")?o.interpolateTransformCss:x;return null==n?this.styleTween(t,(g=t,m=A,function(){var t=e.style(this,g),n=(this.style.removeProperty(g),e.style(this,g));return t===n?null:t===b&&n===w?j:j=m(b=t,w=n)})).on("end.style."+t,(y=t,function(){this.style.removeProperty(y)})):this.styleTween(t,"function"==typeof n?(l=t,f=A,h=_(this,"style."+t,n),function(){var t=e.style(this,l),n=h(this);return null==n&&(this.style.removeProperty(l),n=e.style(this,l)),t===n?null:t===p&&n===d?v:v=f(p=t,d=n)}):(i=t,a=A,u=n+"",function(){var t=e.style(this,i);return t===u?null:t===c?s:s=a(c=t,u)}),r)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,o=e.apply(r,arguments);return o&&function(e){r.style.setProperty(t,o(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?(n=_(this,"text",t),function(){var t=n(this);this.textContent=null==t?"":t}):(e=null==t?"":t+"",function(){this.textContent=e}));var e,n},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,o=b(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var o=m(this,t),i=o.tween;if(i!==n)for(var a=0,u=(r=n=i).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}o.tween=r}}:function(t,e,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var i=m(this,t),a=i.tween;if(a!==r){o=(r=a).slice();for(var u={name:e,value:n},c=0,s=o.length;c<s;++c)if(o[c].name===e){o[c]=u;break}c===s&&o.push(u)}i.tween=o}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){g(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){g(this,t).delay=e}})(e,t)):b(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){m(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){m(this,t).duration=e}})(e,t)):b(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){m(this,t).ease=e}}(e,t)):b(this.node(),e).ease}};var N={time:null,delay:0,duration:250,ease:a.easeCubicInOut};function S(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return N.time=r.now(),N;return n}e.selection.prototype.interrupt=function(t){return this.each(function(){w(this,t)})},e.selection.prototype.transition=function(t){var e,n;t instanceof O?(e=t._id,t=t._name):(e=k(),(n=N).time=r.now(),t=null==t?null:t+"");for(var o=this._groups,i=o.length,a=0;a<i;++a)for(var u,c=o[a],s=c.length,l=0;l<s;++l)(u=c[l])&&y(u,t,e,l,c,n||S(u,e));return new O(o,this._parents,t,e)};var P=[null];t.transition=M,t.active=function(t,e){var n,r,o=t.__transition;if(o){e=null==e?null:e+"";for(r in o)if((n=o[r]).state>l&&n.name===e)return new O([[t]],P,e,+r)}return null},t.interrupt=w,Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof n&&void 0!==e?o(n,t("d3-selection"),t("d3-dispatch"),t("d3-timer"),t("d3-interpolate"),t("d3-color"),t("d3-ease")):"function"==typeof define&&define.amd?define(["exports","d3-selection","d3-dispatch","d3-timer","d3-interpolate","d3-color","d3-ease"],o):o(r.d3=r.d3||{},r.d3,r.d3,r.d3,r.d3,r.d3,r.d3)},{"d3-color":7,"d3-dispatch":8,"d3-ease":9,"d3-interpolate":10,"d3-selection":11,"d3-timer":12}],14:[function(t,e,n){e.exports=function(t){if(t){console.error(t,t.stack);var e="";t.name&&(e+=t.name+": "),e+=t.message,t.stack&&(e+=" | "+t.stack.toString()),n=e,(r=document.getElementById("status-message")).textContent=n,r.classList.remove("hidden")}var n,r}},{}],15:[function(t,e,n){(function(t){var r=200,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",u="[object Boolean]",c="[object Date]",s="[object Function]",l="[object GeneratorFunction]",f="[object Map]",h="[object Number]",p="[object Object]",d="[object Promise]",v="[object RegExp]",y="[object Set]",g="[object String]",m="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",x="[object Float32Array]",j="[object Float64Array]",A="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",N="[object Uint16Array]",S="[object Uint32Array]",P=/\w*$/,C=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,T={};T[a]=T["[object Array]"]=T[w]=T[_]=T[u]=T[c]=T[x]=T[j]=T[A]=T[O]=T[M]=T[f]=T[h]=T[p]=T[v]=T[y]=T[g]=T[m]=T[k]=T[E]=T[N]=T[S]=!0,T["[object Error]"]=T[s]=T[b]=!1;var I="object"==typeof t&&t&&t.Object===Object&&t,q="object"==typeof self&&self&&self.Object===Object&&self,L=I||q||Function("return this")(),D="object"==typeof n&&n&&!n.nodeType&&n,F=D&&"object"==typeof e&&e&&!e.nodeType&&e,H=F&&F.exports===D;function $(t,e){return t.set(e[0],e[1]),t}function B(t,e){return t.add(e),t}function X(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function U(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function z(t,e){return function(n){return t(e(n))}}function Y(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var Q,G=Array.prototype,W=Function.prototype,J=Object.prototype,K=L["__core-js_shared__"],Z=(Q=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",tt=W.toString,et=J.hasOwnProperty,nt=J.toString,rt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=H?L.Buffer:void 0,it=L.Symbol,at=L.Uint8Array,ut=z(Object.getPrototypeOf,Object),ct=Object.create,st=J.propertyIsEnumerable,lt=G.splice,ft=Object.getOwnPropertySymbols,ht=ot?ot.isBuffer:void 0,pt=z(Object.keys,Object),dt=Ft(L,"DataView"),vt=Ft(L,"Map"),yt=Ft(L,"Promise"),gt=Ft(L,"Set"),mt=Ft(L,"WeakMap"),bt=Ft(Object,"create"),wt=Ut(dt),_t=Ut(vt),xt=Ut(yt),jt=Ut(gt),At=Ut(mt),Ot=it?it.prototype:void 0,Mt=Ot?Ot.valueOf:void 0;function kt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Et(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t){this.__data__=new Et(t)}function Pt(t,e){var n,r,o,i=zt(t)||(o=r=n=t)&&"object"==typeof o&&Yt(r)&&et.call(n,"callee")&&(!st.call(n,"callee")||nt.call(n)==a)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=i.length,c=!!u;for(var s in t)!e&&!et.call(t,s)||c&&("length"==s||Bt(s,u))||i.push(s);return i}function Ct(t,e,n){var r=t[e];et.call(t,e)&&Vt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Rt(t,e){for(var n=t.length;n--;)if(Vt(t[n][0],e))return n;return-1}function Tt(t,e,n,r,o,i,d){var b;if(r&&(b=i?r(t,o,i,d):r(t)),void 0!==b)return b;if(!Wt(t))return t;var C,R,I,q,L,D,F=zt(t);if(F){if(b=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&et.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,b)}else{var H=$t(t),z=H==s||H==l;if(Qt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(H==p||H==a||z&&!i){if(U(t))return i?t:{};if(b="function"!=typeof(L=z?{}:t).constructor||Xt(L)?{}:Wt(D=ut(L))?ct(D):{},!e)return C=t,q=t,R=(I=b)&&Lt(q,Jt(q),I),Lt(C,Ht(C),R)}else{if(!T[H])return i?t:{};b=function(t,e,n,r){var o=t.constructor;switch(e){case w:return qt(t);case u:case c:return new o(+t);case _:return C=t,R=r?qt(C.buffer):C.buffer,new C.constructor(R,C.byteOffset,C.byteLength);case x:case j:case A:case O:case M:case k:case E:case N:case S:return d=t,b=r?qt(d.buffer):d.buffer,new d.constructor(b,d.byteOffset,d.length);case f:return p=t,X(r?n(V(p),!0):V(p),$,new p.constructor);case h:case g:return new o(t);case v:return(l=new(s=t).constructor(s.source,P.exec(s))).lastIndex=s.lastIndex,l;case y:return a=t,X(r?n(Y(a),!0):Y(a),B,new a.constructor);case m:return i=t,Mt?Object(Mt.call(i)):{}}var i;var a;var s,l;var p;var d,b;var C,R}(t,H,Tt,e)}}d||(d=new St);var Q,G,W,J=d.get(t);if(J)return J;if(d.set(t,b),!F)var K=n?(G=Ht,W=Jt(Q=t),zt(Q)?W:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(W,G(Q))):Jt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(K||t,function(o,i){K&&(o=t[i=o]),Ct(b,i,Tt(o,e,n,r,i,t,d))}),b}function It(t){return!(!Wt(t)||Z&&Z in t)&&(Gt(t)||U(t)?rt:C).test(Ut(t))}function qt(t){var e=new t.constructor(t.byteLength);return new at(e).set(new at(t)),e}function Lt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],u=r?r(n[a],t[a],a,n,t):void 0;Ct(n,a,void 0===u?t[a]:u)}return n}function Dt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ft(t,e){var n,r=null==(n=t)?void 0:n[e];return It(r)?r:void 0}kt.prototype.clear=function(){this.__data__=bt?bt(null):{}},kt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},kt.prototype.get=function(t){var e=this.__data__;if(bt){var n=e[t];return n===o?void 0:n}return et.call(e,t)?e[t]:void 0},kt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:et.call(e,t)},kt.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?o:e,this},Et.prototype.clear=function(){this.__data__=[]},Et.prototype.delete=function(t){var e=this.__data__,n=Rt(e,t);return!(n<0||(n==e.length-1?e.pop():lt.call(e,n,1),0))},Et.prototype.get=function(t){var e=this.__data__,n=Rt(e,t);return n<0?void 0:e[n][1]},Et.prototype.has=function(t){return Rt(this.__data__,t)>-1},Et.prototype.set=function(t,e){var n=this.__data__,r=Rt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Nt.prototype.clear=function(){this.__data__={hash:new kt,map:new(vt||Et),string:new kt}},Nt.prototype.delete=function(t){return Dt(this,t).delete(t)},Nt.prototype.get=function(t){return Dt(this,t).get(t)},Nt.prototype.has=function(t){return Dt(this,t).has(t)},Nt.prototype.set=function(t,e){return Dt(this,t).set(t,e),this},St.prototype.clear=function(){this.__data__=new Et},St.prototype.delete=function(t){return this.__data__.delete(t)},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Et){var o=n.__data__;if(!vt||o.length<r-1)return o.push([t,e]),this;n=this.__data__=new Nt(o)}return n.set(t,e),this};var Ht=ft?z(ft,Object):function(){return[]},$t=function(t){return nt.call(t)};function Bt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||R.test(t))&&t>-1&&t%1==0&&t<e}function Xt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function Ut(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Vt(t,e){return t===e||t!=t&&e!=e}(dt&&$t(new dt(new ArrayBuffer(1)))!=_||vt&&$t(new vt)!=f||yt&&$t(yt.resolve())!=d||gt&&$t(new gt)!=y||mt&&$t(new mt)!=b)&&($t=function(t){var e=nt.call(t),n=e==p?t.constructor:void 0,r=n?Ut(n):void 0;if(r)switch(r){case wt:return _;case _t:return f;case xt:return d;case jt:return y;case At:return b}return e});var zt=Array.isArray;function Yt(t){return null!=t&&("number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=i)&&!Gt(t);var e}var Qt=ht||function(){return!1};function Gt(t){var e=Wt(t)?nt.call(t):"";return e==s||e==l}function Wt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Jt(t){return Yt(t)?Pt(t):function(t){if(!Xt(t))return pt(t);var e=[];for(var n in Object(t))et.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}e.exports=function(t){return Tt(t,!0,!0)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(t,e,n){(function(t){var n="Expected a function",r="__lodash_placeholder__",o=1,i=2,a=4,u=8,c=16,s=32,l=64,f=128,h=512,p=1/0,d=9007199254740991,v=1.7976931348623157e308,y=NaN,g=[["ary",f],["bind",o],["bindKey",i],["curry",u],["curryRight",c],["flip",h],["partial",s],["partialRight",l],["rearg",256]],m="[object Function]",b="[object GeneratorFunction]",w="[object Symbol]",_=/^\s+|\s+$/g,x=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,j=/\{\n\/\* \[wrapped with (.+)\] \*/,A=/,? & /,O=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,k=/^\[object .+?Constructor\]$/,E=/^0o[0-7]+$/i,N=/^(?:0|[1-9]\d*)$/,S=parseInt,P="object"==typeof t&&t&&t.Object===Object&&t,C="object"==typeof self&&self&&self.Object===Object&&self,R=P||C||Function("return this")();function T(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function I(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var o=t.length,i=n+(r?1:-1);for(;r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,q,n);var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,0)>-1}function q(t){return t!=t}function L(t,e){for(var n=-1,o=t.length,i=0,a=[];++n<o;){var u=t[n];u!==e&&u!==r||(t[n]=r,a[i++]=n)}return a}var D,F,H,$=Function.prototype,B=Object.prototype,X=R["__core-js_shared__"],U=(D=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",V=$.toString,z=B.hasOwnProperty,Y=B.toString,Q=RegExp("^"+V.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=Object.create,W=Math.max,J=Math.min,K=(F=it(Object,"defineProperty"),(H=it.name)&&H.length>2?F:void 0);function Z(t){return!(!st(t)||U&&U in t)&&((n=st(e=t)?Y.call(e):"")==m||n==b||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?Q:k).test(function(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e,n}function tt(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n,r=st(n=t.prototype)?G(n):{},o=t.apply(r,e);return st(o)?o:r}}function et(t,e,n,r,a,s,l,p,d,v){var y=e&f,g=e&o,m=e&i,b=e&(u|c),w=e&h,_=m?void 0:tt(t);return function o(){for(var i=arguments.length,u=Array(i),c=i;c--;)u[c]=arguments[c];if(b)var f=ot(o),h=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}(u,f);if(r&&(u=function(t,e,n,r){for(var o=-1,i=t.length,a=n.length,u=-1,c=e.length,s=W(i-a,0),l=Array(c+s),f=!r;++u<c;)l[u]=e[u];for(;++o<a;)(f||o<i)&&(l[n[o]]=t[o]);for(;s--;)l[u++]=t[o++];return l}(u,r,a,b)),s&&(u=function(t,e,n,r){for(var o=-1,i=t.length,a=-1,u=n.length,c=-1,s=e.length,l=W(i-u,0),f=Array(l+s),h=!r;++o<l;)f[o]=t[o];for(var p=o;++c<s;)f[p+c]=e[c];for(;++a<u;)(h||o<i)&&(f[p+n[a]]=t[o++]);return f}(u,s,l,b)),i-=h,b&&i<v){var x=L(u,f);return nt(t,e,et,o.placeholder,n,u,x,p,d,v-i)}var j=g?n:this,A=m?j[t]:t;return i=u.length,p?u=function(t,e){for(var n=t.length,r=J(e.length,n),o=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(t);r--;){var i=e[r];t[r]=at(i,n)?o[i]:void 0}return t}(u,p):w&&i>1&&u.reverse(),y&&d<i&&(u.length=d),this&&this!==R&&this instanceof o&&(A=_||tt(A)),A.apply(j,u)}}function nt(t,e,n,r,c,f,h,p,d,v){var y=e&u;e|=y?s:l,(e&=~(y?l:s))&a||(e&=~(o|i));var g=n(t,e,c,y?f:void 0,y?h:void 0,y?void 0:f,y?void 0:h,p,d,v);return g.placeholder=r,ut(g,t,e)}function rt(t,e,r,a,f,h,p,d){var v=e&i;if(!v&&"function"!=typeof t)throw new TypeError(n);var y=a?a.length:0;if(y||(e&=~(s|l),a=f=void 0),p=void 0===p?p:W(ft(p),0),d=void 0===d?d:ft(d),y-=f?f.length:0,e&l){var g=a,m=f;a=f=void 0}var b,w,_,x,j,A,O,M,k,E,N,S,P,C=[t,e,r,a,f,g,m,h,p,d];if(t=C[0],e=C[1],r=C[2],a=C[3],f=C[4],!(d=C[9]=null==C[9]?v?0:t.length:W(C[9]-y,0))&&e&(u|c)&&(e&=~(u|c)),e&&e!=o)e==u||e==c?(O=e,M=d,k=tt(A=t),I=function t(){for(var e=arguments.length,n=Array(e),r=e,o=ot(t);r--;)n[r]=arguments[r];var i=e<3&&n[0]!==o&&n[e-1]!==o?[]:L(n,o);return(e-=i.length)<M?nt(A,O,et,t.placeholder,void 0,n,i,void 0,void 0,M-e):T(this&&this!==R&&this instanceof t?k:A,this,n)}):e!=s&&e!=(o|s)||f.length?I=et.apply(void 0,C):(w=r,_=a,x=e&o,j=tt(b=t),I=function t(){for(var e=-1,n=arguments.length,r=-1,o=_.length,i=Array(o+n),a=this&&this!==R&&this instanceof t?j:b;++r<o;)i[r]=_[r];for(;n--;)i[r++]=arguments[++e];return T(a,x?w:this,i)});else var I=(N=r,S=e&o,P=tt(E=t),function t(){return(this&&this!==R&&this instanceof t?P:E).apply(S?N:this,arguments)});return ut(I,t,e)}function ot(t){return t.placeholder}function it(t,e){var n,r=null==(n=t)?void 0:n[e];return Z(r)?r:void 0}function at(t,e){return!!(e=null==e?d:e)&&("number"==typeof t||N.test(t))&&t>-1&&t%1==0&&t<e}var ut=K?function(t,e,n){var r,o,i,a,u,c,s,l,f,h=e+"";return K(t,"toString",{configurable:!0,enumerable:!1,value:(o=h,l=h,f=l.match(j),c=f?f[1].split(A):[],s=n,function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(g,function(t){var e="_."+t[0];s&t[1]&&!I(c,e)&&c.push(e)}),i=c.sort(),a=i.length,u=a-1,i[u]=(a>1?"& ":"")+i[u],i=i.join(a>2?", ":" "),r=o.replace(x,"{\n/* [wrapped with "+i+"] */\n"),function(){return r})})}:function(t){return t};function ct(t,e,n){var r=rt(t,u,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=ct.placeholder,r}function st(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function lt(t){return t?(t=function(t){if("number"==typeof t)return t;if(e=t,"symbol"==typeof e||(n=e)&&"object"==typeof n&&Y.call(e)==w)return y;var e,n;if(st(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=st(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(_,"");var o=M.test(t);return o||E.test(t)?S(t.slice(2),o?2:8):O.test(t)?y:+t}(t))===p||t===-p?(t<0?-1:1)*v:t==t?t:0:0===t?t:0}function ft(t){var e=lt(t),n=e%1;return e==e?n?e-n:e:0}ct.placeholder={},e.exports=ct}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(t,e,n){var r=9007199254740991,o="[object Arguments]",i="[object Function]",a="[object GeneratorFunction]",u=/^(?:0|[1-9]\d*)$/;function c(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var s=Object.prototype,l=s.hasOwnProperty,f=s.toString,h=s.propertyIsEnumerable,p=Math.max;function d(t,e){var n,r,i,a=w(t)||(i=r=n=t)&&"object"==typeof i&&_(r)&&l.call(n,"callee")&&(!h.call(n,"callee")||f.call(n)==o)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=a.length,c=!!u;for(var s in t)!e&&!l.call(t,s)||c&&("length"==s||m(s,u))||a.push(s);return a}function v(t,e,n,r){return void 0===t||b(t,s[n])&&!l.call(r,n)?e:t}function y(t){if(!x(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e,n,r,o=(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||s,e===r),i=[];for(var a in t)("constructor"!=a||!o&&l.call(t,a))&&i.push(a);return i}function g(t,e){return e=p(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=p(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,c(t,this,a)}}function m(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function b(t,e){return t===e||t!=t&&e!=e}var w=Array.isArray;function _(t){return null!=t&&("number"==typeof(o=t.length)&&o>-1&&o%1==0&&o<=r)&&!((n=x(e=t)?f.call(e):"")==i||n==a);var e,n,o}function x(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var j,A=(j=function(t,e,n,r){var o;!function(t,e,n,r){n||(n={});for(var o,i,a,u,c=-1,s=e.length;++c<s;){var f=e[c],h=r?r(n[f],t[f],f,n,t):void 0;o=n,i=f,a=void 0===h?t[f]:h,u=o[i],l.call(o,i)&&b(u,a)&&(void 0!==a||i in o)||(o[i]=a)}}(e,(o=e,_(o)?d(o,!0):y(o)),t,r)},g(function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=j.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!x(n))return!1;var r=typeof e;return!!("number"==r?_(n)&&m(e,n.length):"string"==r&&e in n)&&b(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&j(t,a,n,o)}return t})),O=g(function(t){return t.push(void 0,v),c(A,void 0,t)});e.exports=O},{}],18:[function(t,e,n){function r(t){var e=Math.random;function n(t){return Math.floor(e()*t)}function r(t){var e=t,r=e[e.length-1][0][1]-e[0][0][0]+1;function o(t){return function(t,e){e=+e;for(var n=0;n<t.length;++n){var r=t[n],o=r[0];if(e>=o[0]&&e<=o[1])return r[1]}}(e,t)}return{outcomeAtIndex:o,roll:function(){var t=o(n(r));return"function"!=typeof t||"probable_rollOnTable"!==t.name&&"probable_pick"!==t.name?t:t()},length:r,getRangesAndOutcomesArray:function(){return e}}}function o(t){var e=[],n=-1,r=function(t){var e=[];for(var n in t){var r=t[n];e.push([r,n])}return e}(t);return(r=r.sort(i)).forEach(function(t){var r=t[0],o=t[1],i=n+1,a=i+r-1;e.push([[i,a],o]),n=a}),e}function i(t,e){return t[0]>e[0]?-1:1}function a(t){return r(function(t){var e=[];for(var n in t){var r=c(n),o=t[n];if("object"==typeof o)if(Array.isArray(o))o=f(o);else{var i=a(o);"function"==typeof i.roll&&(o=i.roll)}e.push([r,o])}return e.sort(u)}(t))}function u(t,e){return t[0][0]<e[0][0]?-1:1}function c(t){var e=t.split("-");if(!(e.length>2))return 1===e.length?[+t,+t]:[+e[0],+e[1]]}function s(t){return r(function(t){var e=0;return t.map(function(t){var n=t[0],r=t[1],o=e+n-1,i=[e,o];if(e=o+1,Array.isArray(r))if(u=r,Array.isArray(u)&&u.length>0&&Array.isArray(u[0])&&2===u[0].length&&"number"==typeof u[0][0]){var a=s(r);"function"==typeof a.roll&&(r=a.roll)}else r=f(r);var u;return[i,r]})}(t))}function l(t,e){return!t||"number"!=typeof t.length||t.length<1?e:t[n(t.length)]}function f(t,e){return function(){return l(t,e)}}function h(t,e){var n=[];return t.forEach(function(t){e.forEach(function(e){Array.isArray(t)||Array.isArray(e)?n.push(t.concat(e)):n.push([t,e])})}),n}function p(t){for(var e,r=t.length,o=Array(r),i=0;i<r;i++)(e=n(i+1))!==i&&(o[i]=o[e]),o[e]=t[i];return o}return t&&t.random&&(e=t.random),{roll:n,rollDie:function(t){return 0===t?0:n(t)+1},createRangeTable:r,createRangeTableFromDict:function(t){return r(o(t))},createTableFromDef:a,createTableFromSizes:s,convertDictToRangesAndOutcomePairs:o,pickFromArray:l,crossArrays:h,getCartesianProduct:function(t){return t.slice(1).reduce(h,t[0])},shuffle:p,sample:function(t,e){return p(t).slice(0,e)},randomFn:e}}var o=r();"object"==typeof e&&(e.exports=o,e.exports.createProbable=r)},{}],19:[function(t,e,n){var r=t("qs"),o=t("lodash.clonedeep"),i=t("lodash.defaults");e.exports=function(t){var e,n;return t&&(e=t.followRoute,n=t.windowObject),n.onhashchange=a,{addToRoute:function(t){var n=i(o(t),u());c(n),e(n)},overwriteRouteEntirely:function(t){c(t),e(t)},routeFromHash:a,unpackEncodedRoute:function(t){var n=r.parse(decodeURIComponent(t));c(n),e(n)}};function a(){e(u())}function u(){return r.parse(n.location.hash.slice(1))}function c(t){var e=n.location.protocol+"//"+n.location.host+n.location.pathname+"#"+r.stringify(t);n.history.pushState(null,null,e)}}},{"lodash.clonedeep":15,"lodash.defaults":17,qs:21}],20:[function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},{}],21:[function(t,e,n){"use strict";var r=t("./stringify"),o=t("./parse"),i=t("./formats");e.exports={formats:i,parse:o,stringify:r}},{"./formats":20,"./parse":22,"./stringify":23}],22:[function(t,e,n){"use strict";var r=t("./utils"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),u=a?r.slice(0,a.index):r,c=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var s=0;null!==(a=i.exec(r))&&s<n.depth;){if(s+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var i,a=t[o];if("[]"===a)i=(i=[]).concat(r);else{i=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=r:i[u]=r}r=i}return r}(c,e,n)}};e.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:i.delimiter,n.depth="number"==typeof n.depth?n.depth:i.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:i.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:i.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:i.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:i.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:i.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:i.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling,""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){for(var n={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,u=r.split(e.delimiter,a),c=0;c<u.length;++c){var s,l,f=u[c],h=f.indexOf("]="),p=-1===h?f.indexOf("="):h+1;-1===p?(s=e.decoder(f,i.decoder),l=e.strictNullHandling?null:""):(s=e.decoder(f.slice(0,p),i.decoder),l=e.decoder(f.slice(p+1),i.decoder)),o.call(n,s)?n[s]=[].concat(n[s]).concat(l):n[s]=l}return n}(t,n):t,c=n.plainObjects?Object.create(null):{},s=Object.keys(u),l=0;l<s.length;++l){var f=s[l],h=a(f,u[f],n);c=r.merge(c,h,n)}return r.compact(c)}},{"./utils":24}],23:[function(t,e,n){"use strict";var r=t("./utils"),o=t("./formats"),i={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},c=function t(e,n,o,i,a,c,s,l,f,h,p,d){var v=e;if("function"==typeof s)v=s(n,v);else if(v instanceof Date)v=h(v);else if(null===v){if(i)return c&&!d?c(n,u.encoder):n;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||r.isBuffer(v))return c?[p(d?n:c(n,u.encoder))+"="+p(c(v,u.encoder))]:[p(n)+"="+p(String(v))];var y,g=[];if(void 0===v)return g;if(Array.isArray(s))y=s;else{var m=Object.keys(v);y=l?m.sort(l):m}for(var b=0;b<y.length;++b){var w=y[b];a&&null===v[w]||(g=Array.isArray(v)?g.concat(t(v[w],o(n,w),o,i,a,c,s,l,f,h,p,d)):g.concat(t(v[w],n+(f?"."+w:"["+w+"]"),o,i,a,c,s,l,f,h,p,d)))}return g};e.exports=function(t,e){var n=t,a=e?r.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var s=void 0===a.delimiter?u.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:u.strictNullHandling,f="boolean"==typeof a.skipNulls?a.skipNulls:u.skipNulls,h="boolean"==typeof a.encode?a.encode:u.encode,p="function"==typeof a.encoder?a.encoder:u.encoder,d="function"==typeof a.sort?a.sort:null,v=void 0!==a.allowDots&&a.allowDots,y="function"==typeof a.serializeDate?a.serializeDate:u.serializeDate,g="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:u.encodeValuesOnly;if(void 0===a.format)a.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,a.format))throw new TypeError("Unknown format option provided.");var m,b,w=o.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(m=b=a.filter);var _,x=[];if("object"!=typeof n||null===n)return"";_=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var j=i[_];m||(m=Object.keys(n)),d&&m.sort(d);for(var A=0;A<m.length;++A){var O=m[A];f&&null===n[O]||(x=x.concat(c(n[O],O,j,l,f,h?p:null,b,d,v,y,w,g)))}var M=x.join(s),k=!0===a.addQueryPrefix?"?":"";return M.length>0?k+M:""}},{"./formats":20,"./utils":24}],24:[function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();n.arrayToObject=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n},n.merge=function(t,e,o){if(!e)return t;if("object"!=typeof e){if(Array.isArray(t))t.push(e);else{if("object"!=typeof t)return[t,e];(o.plainObjects||o.allowPrototypes||!r.call(Object.prototype,e))&&(t[e]=!0)}return t}if("object"!=typeof t)return[t].concat(e);var i=t;return Array.isArray(t)&&!Array.isArray(e)&&(i=n.arrayToObject(t,o)),Array.isArray(t)&&Array.isArray(e)?(e.forEach(function(e,i){r.call(t,i)?t[i]&&"object"==typeof t[i]?t[i]=n.merge(t[i],e,o):t.push(e):t[i]=e}),t):Object.keys(e).reduce(function(t,i){var a=e[i];return r.call(t,i)?t[i]=n.merge(t[i],a,o):t[i]=a,t},i)},n.assign=function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},n.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},n.encode=function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),n="",r=0;r<e.length;++r){var i=e.charCodeAt(r);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=e.charAt(r):i<128?n+=o[i]:i<2048?n+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?n+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(r+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(r)),n+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return n},n.compact=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],s=i[c];"object"==typeof s&&null!==s&&-1===n.indexOf(s)&&(e.push({obj:i,prop:c}),n.push(s))}return function(t){for(var e;t.length;){var n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var r=[],o=0;o<e.length;++o)void 0!==e[o]&&r.push(e[o]);n.obj[n.prop]=r}}return e}(e)},n.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},n.isBuffer=function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},{}],25:[function(t,e,n){e.exports=function(t){var e;return t&&(e=t.log),function(t,n){return function(r){if(r)e&&(r.stack?e(r,r.stack):e(r)),n&&n(r);else if(t){var o=Array.prototype.slice.call(arguments,1);n&&o.push(n),t.apply(t,o)}}}}},{}]},{},[1]);