From 0011d51ef6b0081df4f8ded082947c99e8c5aceb Mon Sep 17 00:00:00 2001 From: corpglory-dev <47055832+corpglory-dev@users.noreply.github.com> Date: Tue, 19 May 2020 20:25:52 +0300 Subject: [PATCH] Emtpy options fixes (#8) --- dist/index.js | 4 +- package-lock.json | 1506 +++++++++++++++------------------------------ src/index.ts | 30 +- 3 files changed, 510 insertions(+), 1030 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1440520..54757eb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6,7 +6,7 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var u="Expected a function",o="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",c="[object Array]",s="[object Boolean]",l="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",_="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",m="[object String]",x="[object Symbol]",w="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",N="[object Uint8Array]",j="[object Uint16Array]",z="[object Uint32Array]",O=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,P=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,D=RegExp(L.source),U=RegExp(I.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,V=RegExp(H.source),G=/^\s+|\s+$/g,X=/^\s+/,Z=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",vt="["+dt+"]",_t="["+ht+"]",gt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+dt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xt="\\ud83c[\\udffb-\\udfff]",wt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",St="(?:"+bt+"|"+mt+")",Tt="(?:"+kt+"|"+mt+")",Et="(?:"+_t+"|"+xt+")"+"?",Ct="[\\ufe0e\\ufe0f]?"+Et+("(?:\\u200d(?:"+[wt,Mt,At].join("|")+")[\\ufe0e\\ufe0f]?"+Et+")*"),Nt="(?:"+[yt,Mt,At].join("|")+")"+Ct,jt="(?:"+[wt+_t+"?",_t,Mt,At,pt].join("|")+")",zt=RegExp("['’]","g"),Ot=RegExp(_t,"g"),Rt=RegExp(xt+"(?="+xt+")|"+jt+Ct,"g"),Pt=RegExp([kt+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,kt,"$"].join("|")+")",Tt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,kt+St,"$"].join("|")+")",kt+"?"+St+"+(?:['’](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Nt].join("|"),"g"),Lt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ut=-1,Bt={};Bt[k]=Bt[S]=Bt[T]=Bt[E]=Bt[C]=Bt[N]=Bt["[object Uint8ClampedArray]"]=Bt[j]=Bt[z]=!0,Bt[f]=Bt[c]=Bt[M]=Bt[s]=Bt[A]=Bt[l]=Bt[h]=Bt[d]=Bt[v]=Bt[_]=Bt[g]=Bt[y]=Bt[b]=Bt[m]=Bt[w]=!1;var Ft={};Ft[f]=Ft[c]=Ft[M]=Ft[A]=Ft[s]=Ft[l]=Ft[k]=Ft[S]=Ft[T]=Ft[E]=Ft[C]=Ft[v]=Ft[_]=Ft[g]=Ft[y]=Ft[b]=Ft[m]=Ft[x]=Ft[N]=Ft["[object Uint8ClampedArray]"]=Ft[j]=Ft[z]=!0,Ft[h]=Ft[d]=Ft[w]=!1;var qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Yt=parseInt,$t="object"==typeof t&&t&&t.Object===Object&&t,Ht="object"==typeof self&&self&&self.Object===Object&&self,Vt=$t||Ht||Function("return this")(),Gt=n&&!n.nodeType&&n,Xt=Gt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Xt&&Xt.exports===Gt,Kt=Zt&&$t.process,Jt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,tn=Jt&&Jt.isDate,nn=Jt&&Jt.isMap,en=Jt&&Jt.isRegExp,rn=Jt&&Jt.isSet,un=Jt&&Jt.isTypedArray;function on(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function an(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i-1}function dn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function Pn(t,n){for(var e=t.length;e--&&wn(n,t[e],0)>-1;);return e}function Ln(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var In=Tn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Dn=Tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Un(t){return"\\"+qt[t]}function Bn(t){return Lt.test(t)}function Fn(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function qn(t,n){return function(e){return t(n(e))}}function Wn(t,n){for(var e=-1,r=t.length,i=0,u=[];++e",""":'"',"'":"'"});var Xn=function t(n){var e,r=(n=null==n?Vt:Xn.defaults(Vt.Object(),n,Xn.pick(Vt,Dt))).Array,i=n.Date,ht=n.Error,dt=n.Function,pt=n.Math,vt=n.Object,_t=n.RegExp,gt=n.String,yt=n.TypeError,bt=r.prototype,mt=dt.prototype,xt=vt.prototype,wt=n["__core-js_shared__"],Mt=mt.toString,At=xt.hasOwnProperty,kt=0,St=(e=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Tt=xt.toString,Et=Mt.call(vt),Ct=Vt._,Nt=_t("^"+Mt.call(At).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=Zt?n.Buffer:void 0,Rt=n.Symbol,Lt=n.Uint8Array,qt=jt?jt.allocUnsafe:void 0,$t=qn(vt.getPrototypeOf,vt),Ht=vt.create,Gt=xt.propertyIsEnumerable,Xt=bt.splice,Kt=Rt?Rt.isConcatSpreadable:void 0,Jt=Rt?Rt.iterator:void 0,bn=Rt?Rt.toStringTag:void 0,Tn=function(){try{var t=Qi(vt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Zn=n.clearTimeout!==Vt.clearTimeout&&n.clearTimeout,Kn=i&&i.now!==Vt.Date.now&&i.now,Jn=n.setTimeout!==Vt.setTimeout&&n.setTimeout,Qn=pt.ceil,te=pt.floor,ne=vt.getOwnPropertySymbols,ee=jt?jt.isBuffer:void 0,re=n.isFinite,ie=bt.join,ue=qn(vt.keys,vt),oe=pt.max,ae=pt.min,fe=i.now,ce=n.parseInt,se=pt.random,le=bt.reverse,he=Qi(n,"DataView"),de=Qi(n,"Map"),pe=Qi(n,"Promise"),ve=Qi(n,"Set"),_e=Qi(n,"WeakMap"),ge=Qi(vt,"create"),ye=_e&&new _e,be={},me=Su(he),xe=Su(de),we=Su(pe),Me=Su(ve),Ae=Su(_e),ke=Rt?Rt.prototype:void 0,Se=ke?ke.valueOf:void 0,Te=ke?ke.toString:void 0;function Ee(t){if(Yo(t)&&!Oo(t)&&!(t instanceof ze)){if(t instanceof je)return t;if(At.call(t,"__wrapped__"))return Tu(t)}return new je(t)}var Ce=function(){function t(){}return function(n){if(!Wo(n))return{};if(Ht)return Ht(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function Ne(){}function je(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function ze(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Oe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Ze(t,n,e,r,i,u){var o,a=1&n,c=2&n,h=4&n;if(e&&(o=i?e(t,r,i,u):e(t)),void 0!==o)return o;if(!Wo(t))return t;var w=Oo(t);if(w){if(o=function(t){var n=t.length,e=new t.constructor(n);n&&"string"==typeof t[0]&&At.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!a)return gi(t,o)}else{var O=eu(t),R=O==d||O==p;if(Io(t))return li(t,a);if(O==g||O==f||R&&!i){if(o=c||R?{}:iu(t),!a)return c?function(t,n){return yi(t,nu(t),n)}(t,function(t,n){return t&&yi(n,xa(n),t)}(o,t)):function(t,n){return yi(t,tu(t),n)}(t,He(o,t))}else{if(!Ft[O])return i?t:{};o=function(t,n,e){var r=t.constructor;switch(n){case M:return hi(t);case s:case l:return new r(+t);case A:return function(t,n){var e=n?hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case k:case S:case T:case E:case C:case N:case"[object Uint8ClampedArray]":case j:case z:return di(t,e);case v:return new r;case _:case m:return new r(t);case y:return function(t){var n=new t.constructor(t.source,rt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case b:return new r;case x:return i=t,Se?vt(Se.call(i)):{}}var i}(t,O,a)}}u||(u=new Ie);var P=u.get(t);if(P)return P;u.set(t,o),Xo(t)?t.forEach((function(r){o.add(Ze(r,n,e,r,t,u))})):$o(t)&&t.forEach((function(r,i){o.set(i,Ze(r,n,e,i,t,u))}));var L=w?void 0:(h?c?Hi:$i:c?xa:ma)(t);return fn(L||t,(function(r,i){L&&(r=t[i=r]),We(o,i,Ze(r,n,e,i,t,u))})),o}function Ke(t,n,e){var r=e.length;if(null==t)return!r;for(t=vt(t);r--;){var i=e[r],u=n[i],o=t[i];if(void 0===o&&!(i in t)||!u(o))return!1}return!0}function Je(t,n,e){if("function"!=typeof t)throw new yt(u);return bu((function(){t.apply(void 0,e)}),n)}function Qe(t,n,e,r){var i=-1,u=hn,o=!0,a=t.length,f=[],c=n.length;if(!a)return f;e&&(n=pn(n,jn(e))),r?(u=dn,o=!1):n.length>=200&&(u=On,o=!1,n=new Le(n));t:for(;++i-1},Re.prototype.set=function(t,n){var e=this.__data__,r=Ye(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Pe.prototype.clear=function(){this.size=0,this.__data__={hash:new Oe,map:new(de||Re),string:new Oe}},Pe.prototype.delete=function(t){var n=Ki(this,t).delete(t);return this.size-=n?1:0,n},Pe.prototype.get=function(t){return Ki(this,t).get(t)},Pe.prototype.has=function(t){return Ki(this,t).has(t)},Pe.prototype.set=function(t,n){var e=Ki(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Le.prototype.add=Le.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Le.prototype.has=function(t){return this.__data__.has(t)},Ie.prototype.clear=function(){this.__data__=new Re,this.size=0},Ie.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ie.prototype.get=function(t){return this.__data__.get(t)},Ie.prototype.has=function(t){return this.__data__.has(t)},Ie.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Re){var r=e.__data__;if(!de||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Pe(r)}return e.set(t,n),this.size=e.size,this};var tr=xi(fr),nr=xi(cr,!0);function er(t,n){var e=!0;return tr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function rr(t,n,e){for(var r=-1,i=t.length;++r0&&e(a)?n>1?ur(a,n-1,e,r,i):vn(i,a):r||(i[i.length]=a)}return i}var or=wi(),ar=wi(!0);function fr(t,n){return t&&or(t,n,ma)}function cr(t,n){return t&&ar(t,n,ma)}function sr(t,n){return ln(n,(function(n){return Bo(t[n])}))}function lr(t,n){for(var e=0,r=(n=ai(n,t)).length;null!=t&&en}function vr(t,n){return null!=t&&At.call(t,n)}function _r(t,n){return null!=t&&n in vt(t)}function gr(t,n,e){for(var i=e?dn:hn,u=t[0].length,o=t.length,a=o,f=r(o),c=1/0,s=[];a--;){var l=t[a];a&&n&&(l=pn(l,jn(n))),c=ae(l.length,c),f[a]=!e&&(n||u>=120&&l.length>=120)?new Le(a&&l):void 0}l=t[0];var h=-1,d=f[0];t:for(;++h=a)return f;var c=e[r];return f*("desc"==c?-1:1)}}return t.index-n.index}(t,n,e)}))}function Or(t,n,e){for(var r=-1,i=n.length,u={};++r-1;)a!==t&&Xt.call(a,f,1),Xt.call(t,f,1);return t}function Pr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;ou(i)?Xt.call(t,i,1):Qr(t,i)}}return t}function Lr(t,n){return t+te(se()*(n-t+1))}function Ir(t,n){var e="";if(!t||n<1||n>9007199254740991)return e;do{n%2&&(e+=t),(n=te(n/2))&&(t+=t)}while(n);return e}function Dr(t,n){return mu(pu(t,n,Ha),t+"")}function Ur(t){return Ue(Ca(t))}function Br(t,n){var e=Ca(t);return Mu(e,Xe(n,0,e.length))}function Fr(t,n,e,r){if(!Wo(t))return t;for(var i=-1,u=(n=ai(n,t)).length,o=u-1,a=t;null!=a&&++iu?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var o=r(u);++i>>1,o=t[u];null!==o&&!Ko(o)&&(e?o<=n:o=200){var c=n?null:Ii(t);if(c)return Yn(c);o=!1,i=On,f=new Le}else f=n?[]:a;t:for(;++r=r?t:$r(t,n,e)}var si=Zn||function(t){return Vt.clearTimeout(t)};function li(t,n){if(n)return t.slice();var e=t.length,r=qt?qt(e):new t.constructor(e);return t.copy(r),r}function hi(t){var n=new t.constructor(t.byteLength);return new Lt(n).set(new Lt(t)),n}function di(t,n){var e=n?hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function pi(t,n){if(t!==n){var e=void 0!==t,r=null===t,i=t==t,u=Ko(t),o=void 0!==n,a=null===n,f=n==n,c=Ko(n);if(!a&&!c&&!u&&t>n||u&&o&&f&&!a&&!c||r&&o&&f||!e&&f||!i)return 1;if(!r&&!u&&!c&&t1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,o&&au(e[0],e[1],o)&&(u=i<3?void 0:u,i=1),n=vt(n);++r-1?i[u?n[o]:o]:void 0}}function Ti(t){return Yi((function(n){var e=n.length,r=e,i=je.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new yt(u);if(i&&!a&&"wrapper"==Gi(o))var a=new je([],!0)}for(r=a?r:e;++r1&&b.reverse(),l&&ca))return!1;var c=u.get(t);if(c&&u.get(n))return c==n;var s=-1,l=!0,h=2&e?new Le:void 0;for(u.set(t,n),u.set(n,t);++s-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(K,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return fn(a,(function(e){var r="_."+e[0];n&e[1]&&!hn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(J);return n?n[1].split(Q):[]}(r),e)))}function wu(t){var n=0,e=0;return function(){var r=fe(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function Mu(t,n){var e=-1,r=t.length,i=r-1;for(n=void 0===n?r:n;++e1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,Vu(t,e)}));function to(t){var n=Ee(t);return n.__chain__=!0,n}function no(t,n){return n(t)}var eo=Yi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Ge(n,t)};return!(n>1||this.__actions__.length)&&r instanceof ze&&ou(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:no,args:[i],thisArg:void 0}),new je(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var ro=bi((function(t,n,e){At.call(t,e)?++t[e]:Ve(t,e,1)}));var io=Si(ju),uo=Si(zu);function oo(t,n){return(Oo(t)?fn:tr)(t,Zi(n,3))}function ao(t,n){return(Oo(t)?cn:nr)(t,Zi(n,3))}var fo=bi((function(t,n,e){At.call(t,e)?t[e].push(n):Ve(t,e,[n])}));var co=Dr((function(t,n,e){var i=-1,u="function"==typeof n,o=Po(t)?r(t.length):[];return tr(t,(function(t){o[++i]=u?on(n,t,e):yr(t,n,e)})),o})),so=bi((function(t,n,e){Ve(t,e,n)}));function lo(t,n){return(Oo(t)?pn:Tr)(t,Zi(n,3))}var ho=bi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]}));var po=Dr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&au(t,n[0],n[1])?n=[]:e>2&&au(n[0],n[1],n[2])&&(n=[n[0]]),zr(t,ur(n,1),[])})),vo=Kn||function(){return Vt.Date.now()};function _o(t,n,e){return n=e?void 0:n,Ui(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function go(t,n){var e;if("function"!=typeof n)throw new yt(u);return t=ra(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var yo=Dr((function(t,n,e){var r=1;if(e.length){var i=Wn(e,Xi(yo));r|=32}return Ui(t,r,n,e,i)})),bo=Dr((function(t,n,e){var r=3;if(e.length){var i=Wn(e,Xi(bo));r|=32}return Ui(n,r,t,e,i)}));function mo(t,n,e){var r,i,o,a,f,c,s=0,l=!1,h=!1,d=!0;if("function"!=typeof t)throw new yt(u);function p(n){var e=r,u=i;return r=i=void 0,s=n,a=t.apply(u,e)}function v(t){return s=t,f=bu(g,n),l?p(t):a}function _(t){var e=t-c;return void 0===c||e>=n||e<0||h&&t-s>=o}function g(){var t=vo();if(_(t))return y(t);f=bu(g,function(t){var e=n-(t-c);return h?ae(e,o-(t-s)):e}(t))}function y(t){return f=void 0,d&&r?p(t):(r=i=void 0,a)}function b(){var t=vo(),e=_(t);if(r=arguments,i=this,c=t,e){if(void 0===f)return v(c);if(h)return si(f),f=bu(g,n),p(c)}return void 0===f&&(f=bu(g,n)),a}return n=ua(n)||0,Wo(e)&&(l=!!e.leading,o=(h="maxWait"in e)?oe(ua(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),b.cancel=function(){void 0!==f&&si(f),s=0,r=c=i=f=void 0},b.flush=function(){return void 0===f?a:y(vo())},b}var xo=Dr((function(t,n){return Je(t,1,n)})),wo=Dr((function(t,n,e){return Je(t,ua(n)||0,e)}));function Mo(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new yt(u);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=t.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(Mo.Cache||Pe),e}function Ao(t){if("function"!=typeof t)throw new yt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Mo.Cache=Pe;var ko=fi((function(t,n){var e=(n=1==n.length&&Oo(n[0])?pn(n[0],jn(Zi())):pn(ur(n,1),jn(Zi()))).length;return Dr((function(r){for(var i=-1,u=ae(r.length,e);++i=n})),zo=br(function(){return arguments}())?br:function(t){return Yo(t)&&At.call(t,"callee")&&!Gt.call(t,"callee")},Oo=r.isArray,Ro=Qt?jn(Qt):function(t){return Yo(t)&&dr(t)==M};function Po(t){return null!=t&&qo(t.length)&&!Bo(t)}function Lo(t){return Yo(t)&&Po(t)}var Io=ee||of,Do=tn?jn(tn):function(t){return Yo(t)&&dr(t)==l};function Uo(t){if(!Yo(t))return!1;var n=dr(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Vo(t)}function Bo(t){if(!Wo(t))return!1;var n=dr(t);return n==d||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Fo(t){return"number"==typeof t&&t==ra(t)}function qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wo(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Yo(t){return null!=t&&"object"==typeof t}var $o=nn?jn(nn):function(t){return Yo(t)&&eu(t)==v};function Ho(t){return"number"==typeof t||Yo(t)&&dr(t)==_}function Vo(t){if(!Yo(t)||dr(t)!=g)return!1;var n=$t(t);if(null===n)return!0;var e=At.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Mt.call(e)==Et}var Go=en?jn(en):function(t){return Yo(t)&&dr(t)==y};var Xo=rn?jn(rn):function(t){return Yo(t)&&eu(t)==b};function Zo(t){return"string"==typeof t||!Oo(t)&&Yo(t)&&dr(t)==m}function Ko(t){return"symbol"==typeof t||Yo(t)&&dr(t)==x}var Jo=un?jn(un):function(t){return Yo(t)&&qo(t.length)&&!!Bt[dr(t)]};var Qo=Ri(Sr),ta=Ri((function(t,n){return t<=n}));function na(t){if(!t)return[];if(Po(t))return Zo(t)?Vn(t):gi(t);if(Jt&&t[Jt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Jt]());var n=eu(t);return(n==v?Fn:n==b?Yn:Ca)(t)}function ea(t){return t?(t=ua(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ra(t){var n=ea(t),e=n%1;return n==n?e?n-e:n:0}function ia(t){return t?Xe(ra(t),0,4294967295):0}function ua(t){if("number"==typeof t)return t;if(Ko(t))return NaN;if(Wo(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Wo(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(G,"");var e=ut.test(t);return e||at.test(t)?Yt(t.slice(2),e?2:8):it.test(t)?NaN:+t}function oa(t){return yi(t,xa(t))}function aa(t){return null==t?"":Kr(t)}var fa=mi((function(t,n){if(lu(n)||Po(n))yi(n,ma(n),t);else for(var e in n)At.call(n,e)&&We(t,e,n[e])})),ca=mi((function(t,n){yi(n,xa(n),t)})),sa=mi((function(t,n,e,r){yi(n,xa(n),t,r)})),la=mi((function(t,n,e,r){yi(n,ma(n),t,r)})),ha=Yi(Ge);var da=Dr((function(t,n){t=vt(t);var e=-1,r=n.length,i=r>2?n[2]:void 0;for(i&&au(n[0],n[1],i)&&(r=1);++e1),n})),yi(t,Hi(t),e),r&&(e=Ze(e,7,qi));for(var i=n.length;i--;)Qr(e,n[i]);return e}));var ka=Yi((function(t,n){return null==t?{}:function(t,n){return Or(t,n,(function(n,e){return _a(t,e)}))}(t,n)}));function Sa(t,n){if(null==t)return{};var e=pn(Hi(t),(function(t){return[t]}));return n=Zi(n),Or(t,e,(function(t,e){return n(t,e[0])}))}var Ta=Di(ma),Ea=Di(xa);function Ca(t){return null==t?[]:zn(t,ma(t))}var Na=Ai((function(t,n,e){return n=n.toLowerCase(),t+(e?ja(n):n)}));function ja(t){return Ua(aa(t).toLowerCase())}function za(t){return(t=aa(t))&&t.replace(ct,In).replace(Ot,"")}var Oa=Ai((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ra=Ai((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Pa=Mi("toLowerCase");var La=Ai((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}));var Ia=Ai((function(t,n,e){return t+(e?" ":"")+Ua(n)}));var Da=Ai((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ua=Mi("toUpperCase");function Ba(t,n,e){return t=aa(t),void 0===(n=e?void 0:n)?function(t){return It.test(t)}(t)?function(t){return t.match(Pt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(n)||[]}var Fa=Dr((function(t,n){try{return on(t,void 0,n)}catch(t){return Uo(t)?t:new ht(t)}})),qa=Yi((function(t,n){return fn(n,(function(n){n=ku(n),Ve(t,n,yo(t[n],t))})),t}));function Wa(t){return function(){return t}}var Ya=Ti(),$a=Ti(!0);function Ha(t){return t}function Va(t){return Mr("function"==typeof t?t:Ze(t,1))}var Ga=Dr((function(t,n){return function(e){return yr(e,t,n)}})),Xa=Dr((function(t,n){return function(e){return yr(t,e,n)}}));function Za(t,n,e){var r=ma(n),i=sr(n,r);null!=e||Wo(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=sr(n,ma(n)));var u=!(Wo(e)&&"chain"in e&&!e.chain),o=Bo(t);return fn(i,(function(e){var r=n[e];t[e]=r,o&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),i=e.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,vn([this.value()],arguments))})})),t}function Ka(){}var Ja=ji(pn),Qa=ji(sn),tf=ji(yn);function nf(t){return fu(t)?Sn(ku(t)):function(t){return function(n){return lr(n,t)}}(t)}var ef=Oi(),rf=Oi(!0);function uf(){return[]}function of(){return!1}var af=Ni((function(t,n){return t+n}),0),ff=Li("ceil"),cf=Ni((function(t,n){return t/n}),1),sf=Li("floor");var lf,hf=Ni((function(t,n){return t*n}),1),df=Li("round"),pf=Ni((function(t,n){return t-n}),0);return Ee.after=function(t,n){if("function"!=typeof n)throw new yt(u);return t=ra(t),function(){if(--t<1)return n.apply(this,arguments)}},Ee.ary=_o,Ee.assign=fa,Ee.assignIn=ca,Ee.assignInWith=sa,Ee.assignWith=la,Ee.at=ha,Ee.before=go,Ee.bind=yo,Ee.bindAll=qa,Ee.bindKey=bo,Ee.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Oo(t)?t:[t]},Ee.chain=to,Ee.chunk=function(t,n,e){n=(e?au(t,n,e):void 0===n)?1:oe(ra(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var u=0,o=0,a=r(Qn(i/n));ui?0:i+e),(r=void 0===r||r>i?i:ra(r))<0&&(r+=i),r=e>r?0:ia(r);e>>0)?(t=aa(t))&&("string"==typeof n||null!=n&&!Go(n))&&!(n=Kr(n))&&Bn(t)?ci(Vn(t),0,e):t.split(n,e):[]},Ee.spread=function(t,n){if("function"!=typeof t)throw new yt(u);return n=null==n?0:oe(ra(n),0),Dr((function(e){var r=e[n],i=ci(e,0,n);return r&&vn(i,r),on(t,this,i)}))},Ee.tail=function(t){var n=null==t?0:t.length;return n?$r(t,1,n):[]},Ee.take=function(t,n,e){return t&&t.length?$r(t,0,(n=e||void 0===n?1:ra(n))<0?0:n):[]},Ee.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?$r(t,(n=r-(n=e||void 0===n?1:ra(n)))<0?0:n,r):[]},Ee.takeRightWhile=function(t,n){return t&&t.length?ni(t,Zi(n,3),!1,!0):[]},Ee.takeWhile=function(t,n){return t&&t.length?ni(t,Zi(n,3)):[]},Ee.tap=function(t,n){return n(t),t},Ee.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new yt(u);return Wo(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),mo(t,n,{leading:r,maxWait:n,trailing:i})},Ee.thru=no,Ee.toArray=na,Ee.toPairs=Ta,Ee.toPairsIn=Ea,Ee.toPath=function(t){return Oo(t)?pn(t,ku):Ko(t)?[t]:gi(Au(aa(t)))},Ee.toPlainObject=oa,Ee.transform=function(t,n,e){var r=Oo(t),i=r||Io(t)||Jo(t);if(n=Zi(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:Wo(t)&&Bo(u)?Ce($t(t)):{}}return(i?fn:fr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Ee.unary=function(t){return _o(t,1)},Ee.union=Wu,Ee.unionBy=Yu,Ee.unionWith=$u,Ee.uniq=function(t){return t&&t.length?Jr(t):[]},Ee.uniqBy=function(t,n){return t&&t.length?Jr(t,Zi(n,2)):[]},Ee.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Jr(t,void 0,n):[]},Ee.unset=function(t,n){return null==t||Qr(t,n)},Ee.unzip=Hu,Ee.unzipWith=Vu,Ee.update=function(t,n,e){return null==t?t:ti(t,n,oi(e))},Ee.updateWith=function(t,n,e,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,n,oi(e),r)},Ee.values=Ca,Ee.valuesIn=function(t){return null==t?[]:zn(t,xa(t))},Ee.without=Gu,Ee.words=Ba,Ee.wrap=function(t,n){return So(oi(n),t)},Ee.xor=Xu,Ee.xorBy=Zu,Ee.xorWith=Ku,Ee.zip=Ju,Ee.zipObject=function(t,n){return ii(t||[],n||[],We)},Ee.zipObjectDeep=function(t,n){return ii(t||[],n||[],Fr)},Ee.zipWith=Qu,Ee.entries=Ta,Ee.entriesIn=Ea,Ee.extend=ca,Ee.extendWith=sa,Za(Ee,Ee),Ee.add=af,Ee.attempt=Fa,Ee.camelCase=Na,Ee.capitalize=ja,Ee.ceil=ff,Ee.clamp=function(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=ua(e))==e?e:0),void 0!==n&&(n=(n=ua(n))==n?n:0),Xe(ua(t),n,e)},Ee.clone=function(t){return Ze(t,4)},Ee.cloneDeep=function(t){return Ze(t,5)},Ee.cloneDeepWith=function(t,n){return Ze(t,5,n="function"==typeof n?n:void 0)},Ee.cloneWith=function(t,n){return Ze(t,4,n="function"==typeof n?n:void 0)},Ee.conformsTo=function(t,n){return null==n||Ke(t,n,ma(n))},Ee.deburr=za,Ee.defaultTo=function(t,n){return null==t||t!=t?n:t},Ee.divide=cf,Ee.endsWith=function(t,n,e){t=aa(t),n=Kr(n);var r=t.length,i=e=void 0===e?r:Xe(ra(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},Ee.eq=Co,Ee.escape=function(t){return(t=aa(t))&&U.test(t)?t.replace(I,Dn):t},Ee.escapeRegExp=function(t){return(t=aa(t))&&V.test(t)?t.replace(H,"\\$&"):t},Ee.every=function(t,n,e){var r=Oo(t)?sn:er;return e&&au(t,n,e)&&(n=void 0),r(t,Zi(n,3))},Ee.find=io,Ee.findIndex=ju,Ee.findKey=function(t,n){return mn(t,Zi(n,3),fr)},Ee.findLast=uo,Ee.findLastIndex=zu,Ee.findLastKey=function(t,n){return mn(t,Zi(n,3),cr)},Ee.floor=sf,Ee.forEach=oo,Ee.forEachRight=ao,Ee.forIn=function(t,n){return null==t?t:or(t,Zi(n,3),xa)},Ee.forInRight=function(t,n){return null==t?t:ar(t,Zi(n,3),xa)},Ee.forOwn=function(t,n){return t&&fr(t,Zi(n,3))},Ee.forOwnRight=function(t,n){return t&&cr(t,Zi(n,3))},Ee.get=va,Ee.gt=No,Ee.gte=jo,Ee.has=function(t,n){return null!=t&&ru(t,n,vr)},Ee.hasIn=_a,Ee.head=Ru,Ee.identity=Ha,Ee.includes=function(t,n,e,r){t=Po(t)?t:Ca(t),e=e&&!r?ra(e):0;var i=t.length;return e<0&&(e=oe(i+e,0)),Zo(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&wn(t,n,e)>-1},Ee.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ra(e);return i<0&&(i=oe(r+i,0)),wn(t,n,i)},Ee.inRange=function(t,n,e){return n=ea(n),void 0===e?(e=n,n=0):e=ea(e),function(t,n,e){return t>=ae(n,e)&&t=-9007199254740991&&t<=9007199254740991},Ee.isSet=Xo,Ee.isString=Zo,Ee.isSymbol=Ko,Ee.isTypedArray=Jo,Ee.isUndefined=function(t){return void 0===t},Ee.isWeakMap=function(t){return Yo(t)&&eu(t)==w},Ee.isWeakSet=function(t){return Yo(t)&&"[object WeakSet]"==dr(t)},Ee.join=function(t,n){return null==t?"":ie.call(t,n)},Ee.kebabCase=Oa,Ee.last=Du,Ee.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==e&&(i=(i=ra(e))<0?oe(r+i,0):ae(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):xn(t,An,i,!0)},Ee.lowerCase=Ra,Ee.lowerFirst=Pa,Ee.lt=Qo,Ee.lte=ta,Ee.max=function(t){return t&&t.length?rr(t,Ha,pr):void 0},Ee.maxBy=function(t,n){return t&&t.length?rr(t,Zi(n,2),pr):void 0},Ee.mean=function(t){return kn(t,Ha)},Ee.meanBy=function(t,n){return kn(t,Zi(n,2))},Ee.min=function(t){return t&&t.length?rr(t,Ha,Sr):void 0},Ee.minBy=function(t,n){return t&&t.length?rr(t,Zi(n,2),Sr):void 0},Ee.stubArray=uf,Ee.stubFalse=of,Ee.stubObject=function(){return{}},Ee.stubString=function(){return""},Ee.stubTrue=function(){return!0},Ee.multiply=hf,Ee.nth=function(t,n){return t&&t.length?jr(t,ra(n)):void 0},Ee.noConflict=function(){return Vt._===this&&(Vt._=Ct),this},Ee.noop=Ka,Ee.now=vo,Ee.pad=function(t,n,e){t=aa(t);var r=(n=ra(n))?Hn(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return zi(te(i),e)+t+zi(Qn(i),e)},Ee.padEnd=function(t,n,e){t=aa(t);var r=(n=ra(n))?Hn(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=se();return ae(t+i*(n-t+Wt("1e-"+((i+"").length-1))),n)}return Lr(t,n)},Ee.reduce=function(t,n,e){var r=Oo(t)?_n:En,i=arguments.length<3;return r(t,Zi(n,4),e,i,tr)},Ee.reduceRight=function(t,n,e){var r=Oo(t)?gn:En,i=arguments.length<3;return r(t,Zi(n,4),e,i,nr)},Ee.repeat=function(t,n,e){return n=(e?au(t,n,e):void 0===n)?1:ra(n),Ir(aa(t),n)},Ee.replace=function(){var t=arguments,n=aa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Ee.result=function(t,n,e){var r=-1,i=(n=ai(n,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var e=4294967295,r=ae(t,4294967295);t-=4294967295;for(var i=Nn(r,n=Zi(n));++e=u)return t;var a=e-Hn(r);if(a<1)return r;var f=o?ci(o,0,a).join(""):t.slice(0,a);if(void 0===i)return f+r;if(o&&(a+=f.length-a),Go(i)){if(t.slice(a).search(i)){var c,s=f;for(i.global||(i=_t(i.source,aa(rt.exec(i))+"g")),i.lastIndex=0;c=i.exec(s);)var l=c.index;f=f.slice(0,void 0===l?a:l)}}else if(t.indexOf(Kr(i),a)!=a){var h=f.lastIndexOf(i);h>-1&&(f=f.slice(0,h))}return f+r},Ee.unescape=function(t){return(t=aa(t))&&D.test(t)?t.replace(L,Gn):t},Ee.uniqueId=function(t){var n=++kt;return aa(t)+n},Ee.upperCase=Da,Ee.upperFirst=Ua,Ee.each=oo,Ee.eachRight=ao,Ee.first=Ru,Za(Ee,(lf={},fr(Ee,(function(t,n){At.call(Ee.prototype,n)||(lf[n]=t)})),lf),{chain:!1}),Ee.VERSION="4.17.15",fn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ee[t].placeholder=Ee})),fn(["drop","take"],(function(t,n){ze.prototype[t]=function(e){e=void 0===e?1:oe(ra(e),0);var r=this.__filtered__&&!n?new ze(this):this.clone();return r.__filtered__?r.__takeCount__=ae(e,r.__takeCount__):r.__views__.push({size:ae(e,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},ze.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),fn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;ze.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Zi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),fn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");ze.prototype[t]=function(){return this[e](1).value()[0]}})),fn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");ze.prototype[t]=function(){return this.__filtered__?new ze(this):this[e](1)}})),ze.prototype.compact=function(){return this.filter(Ha)},ze.prototype.find=function(t){return this.filter(t).head()},ze.prototype.findLast=function(t){return this.reverse().find(t)},ze.prototype.invokeMap=Dr((function(t,n){return"function"==typeof t?new ze(this):this.map((function(e){return yr(e,t,n)}))})),ze.prototype.reject=function(t){return this.filter(Ao(Zi(t)))},ze.prototype.slice=function(t,n){t=ra(t);var e=this;return e.__filtered__&&(t>0||n<0)?new ze(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=ra(n))<0?e.dropRight(-n):e.take(n-t)),e)},ze.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ze.prototype.toArray=function(){return this.take(4294967295)},fr(ze.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=Ee[r?"take"+("last"==n?"Right":""):n],u=r||/^find/.test(n);i&&(Ee.prototype[n]=function(){var n=this.__wrapped__,o=r?[1]:arguments,a=n instanceof ze,f=o[0],c=a||Oo(n),s=function(t){var n=i.apply(Ee,vn([t],o));return r&&l?n[0]:n};c&&e&&"function"==typeof f&&1!=f.length&&(a=c=!1);var l=this.__chain__,h=!!this.__actions__.length,d=u&&!l,p=a&&!h;if(!u&&c){n=p?n:new ze(this);var v=t.apply(n,o);return v.__actions__.push({func:no,args:[s],thisArg:void 0}),new je(v,l)}return d&&p?t.apply(this,o):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),fn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=bt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ee.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Oo(i)?i:[],t)}return this[e]((function(e){return n.apply(Oo(e)?e:[],t)}))}})),fr(ze.prototype,(function(t,n){var e=Ee[n];if(e){var r=e.name+"";At.call(be,r)||(be[r]=[]),be[r].push({name:n,func:e})}})),be[Ei(void 0,2).name]=[{name:"wrapper",func:void 0}],ze.prototype.clone=function(){var t=new ze(this.__wrapped__);return t.__actions__=gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gi(this.__views__),t},ze.prototype.reverse=function(){if(this.__filtered__){var t=new ze(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ze.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Oo(t),r=n<0,i=e?t.length:0,u=function(t,n,e){var r=-1,i=e.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Ee.prototype.plant=function(t){for(var n,e=this;e instanceof Ne;){var r=Tu(e);r.__index__=0,r.__values__=void 0,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},Ee.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof ze){var n=t;return this.__actions__.length&&(n=new ze(this)),(n=n.reverse()).__actions__.push({func:no,args:[qu],thisArg:void 0}),new je(n,this.__chain__)}return this.thru(qu)},Ee.prototype.toJSON=Ee.prototype.valueOf=Ee.prototype.value=function(){return ei(this.__wrapped__,this.__actions__)},Ee.prototype.first=Ee.prototype.head,Jt&&(Ee.prototype[Jt]=function(){return this}),Ee}();Vt._=Xn,void 0===(i=function(){return Xn}.call(n,e,n,r))||(r.exports=i)}).call(this)}).call(this,e(2),e(3)(t))},function(t,n,e){window,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=7)}([function(t,n,e){(function(t,r){var i; + */(function(){var u="Expected a function",o="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",c="[object Array]",s="[object Boolean]",l="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",_="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",m="[object String]",x="[object Symbol]",w="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",N="[object Uint8Array]",j="[object Uint16Array]",z="[object Uint32Array]",O=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,P=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,D=RegExp(L.source),U=RegExp(I.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,V=RegExp(H.source),G=/^\s+|\s+$/g,X=/^\s+/,Z=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",vt="["+dt+"]",_t="["+ht+"]",gt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+dt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xt="\\ud83c[\\udffb-\\udfff]",wt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",St="(?:"+bt+"|"+mt+")",Tt="(?:"+kt+"|"+mt+")",Et="(?:"+_t+"|"+xt+")"+"?",Ct="[\\ufe0e\\ufe0f]?"+Et+("(?:\\u200d(?:"+[wt,Mt,At].join("|")+")[\\ufe0e\\ufe0f]?"+Et+")*"),Nt="(?:"+[yt,Mt,At].join("|")+")"+Ct,jt="(?:"+[wt+_t+"?",_t,Mt,At,pt].join("|")+")",zt=RegExp("['’]","g"),Ot=RegExp(_t,"g"),Rt=RegExp(xt+"(?="+xt+")|"+jt+Ct,"g"),Pt=RegExp([kt+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,kt,"$"].join("|")+")",Tt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,kt+St,"$"].join("|")+")",kt+"?"+St+"+(?:['’](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Nt].join("|"),"g"),Lt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ut=-1,Bt={};Bt[k]=Bt[S]=Bt[T]=Bt[E]=Bt[C]=Bt[N]=Bt["[object Uint8ClampedArray]"]=Bt[j]=Bt[z]=!0,Bt[f]=Bt[c]=Bt[M]=Bt[s]=Bt[A]=Bt[l]=Bt[h]=Bt[d]=Bt[v]=Bt[_]=Bt[g]=Bt[y]=Bt[b]=Bt[m]=Bt[w]=!1;var Ft={};Ft[f]=Ft[c]=Ft[M]=Ft[A]=Ft[s]=Ft[l]=Ft[k]=Ft[S]=Ft[T]=Ft[E]=Ft[C]=Ft[v]=Ft[_]=Ft[g]=Ft[y]=Ft[b]=Ft[m]=Ft[x]=Ft[N]=Ft["[object Uint8ClampedArray]"]=Ft[j]=Ft[z]=!0,Ft[h]=Ft[d]=Ft[w]=!1;var qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Yt=parseInt,$t="object"==typeof t&&t&&t.Object===Object&&t,Ht="object"==typeof self&&self&&self.Object===Object&&self,Vt=$t||Ht||Function("return this")(),Gt=n&&!n.nodeType&&n,Xt=Gt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Xt&&Xt.exports===Gt,Kt=Zt&&$t.process,Jt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,tn=Jt&&Jt.isDate,nn=Jt&&Jt.isMap,en=Jt&&Jt.isRegExp,rn=Jt&&Jt.isSet,un=Jt&&Jt.isTypedArray;function on(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function an(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i-1}function dn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function Pn(t,n){for(var e=t.length;e--&&wn(n,t[e],0)>-1;);return e}function Ln(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var In=Tn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Dn=Tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Un(t){return"\\"+qt[t]}function Bn(t){return Lt.test(t)}function Fn(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function qn(t,n){return function(e){return t(n(e))}}function Wn(t,n){for(var e=-1,r=t.length,i=0,u=[];++e",""":'"',"'":"'"});var Xn=function t(n){var e,r=(n=null==n?Vt:Xn.defaults(Vt.Object(),n,Xn.pick(Vt,Dt))).Array,i=n.Date,ht=n.Error,dt=n.Function,pt=n.Math,vt=n.Object,_t=n.RegExp,gt=n.String,yt=n.TypeError,bt=r.prototype,mt=dt.prototype,xt=vt.prototype,wt=n["__core-js_shared__"],Mt=mt.toString,At=xt.hasOwnProperty,kt=0,St=(e=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Tt=xt.toString,Et=Mt.call(vt),Ct=Vt._,Nt=_t("^"+Mt.call(At).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=Zt?n.Buffer:void 0,Rt=n.Symbol,Lt=n.Uint8Array,qt=jt?jt.allocUnsafe:void 0,$t=qn(vt.getPrototypeOf,vt),Ht=vt.create,Gt=xt.propertyIsEnumerable,Xt=bt.splice,Kt=Rt?Rt.isConcatSpreadable:void 0,Jt=Rt?Rt.iterator:void 0,bn=Rt?Rt.toStringTag:void 0,Tn=function(){try{var t=Qi(vt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Zn=n.clearTimeout!==Vt.clearTimeout&&n.clearTimeout,Kn=i&&i.now!==Vt.Date.now&&i.now,Jn=n.setTimeout!==Vt.setTimeout&&n.setTimeout,Qn=pt.ceil,te=pt.floor,ne=vt.getOwnPropertySymbols,ee=jt?jt.isBuffer:void 0,re=n.isFinite,ie=bt.join,ue=qn(vt.keys,vt),oe=pt.max,ae=pt.min,fe=i.now,ce=n.parseInt,se=pt.random,le=bt.reverse,he=Qi(n,"DataView"),de=Qi(n,"Map"),pe=Qi(n,"Promise"),ve=Qi(n,"Set"),_e=Qi(n,"WeakMap"),ge=Qi(vt,"create"),ye=_e&&new _e,be={},me=Su(he),xe=Su(de),we=Su(pe),Me=Su(ve),Ae=Su(_e),ke=Rt?Rt.prototype:void 0,Se=ke?ke.valueOf:void 0,Te=ke?ke.toString:void 0;function Ee(t){if(Yo(t)&&!Oo(t)&&!(t instanceof ze)){if(t instanceof je)return t;if(At.call(t,"__wrapped__"))return Tu(t)}return new je(t)}var Ce=function(){function t(){}return function(n){if(!Wo(n))return{};if(Ht)return Ht(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function Ne(){}function je(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function ze(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Oe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Ze(t,n,e,r,i,u){var o,a=1&n,c=2&n,h=4&n;if(e&&(o=i?e(t,r,i,u):e(t)),void 0!==o)return o;if(!Wo(t))return t;var w=Oo(t);if(w){if(o=function(t){var n=t.length,e=new t.constructor(n);n&&"string"==typeof t[0]&&At.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!a)return gi(t,o)}else{var O=eu(t),R=O==d||O==p;if(Io(t))return li(t,a);if(O==g||O==f||R&&!i){if(o=c||R?{}:iu(t),!a)return c?function(t,n){return yi(t,nu(t),n)}(t,function(t,n){return t&&yi(n,xa(n),t)}(o,t)):function(t,n){return yi(t,tu(t),n)}(t,He(o,t))}else{if(!Ft[O])return i?t:{};o=function(t,n,e){var r=t.constructor;switch(n){case M:return hi(t);case s:case l:return new r(+t);case A:return function(t,n){var e=n?hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case k:case S:case T:case E:case C:case N:case"[object Uint8ClampedArray]":case j:case z:return di(t,e);case v:return new r;case _:case m:return new r(t);case y:return function(t){var n=new t.constructor(t.source,rt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case b:return new r;case x:return i=t,Se?vt(Se.call(i)):{}}var i}(t,O,a)}}u||(u=new Ie);var P=u.get(t);if(P)return P;u.set(t,o),Xo(t)?t.forEach((function(r){o.add(Ze(r,n,e,r,t,u))})):$o(t)&&t.forEach((function(r,i){o.set(i,Ze(r,n,e,i,t,u))}));var L=w?void 0:(h?c?Hi:$i:c?xa:ma)(t);return fn(L||t,(function(r,i){L&&(r=t[i=r]),We(o,i,Ze(r,n,e,i,t,u))})),o}function Ke(t,n,e){var r=e.length;if(null==t)return!r;for(t=vt(t);r--;){var i=e[r],u=n[i],o=t[i];if(void 0===o&&!(i in t)||!u(o))return!1}return!0}function Je(t,n,e){if("function"!=typeof t)throw new yt(u);return bu((function(){t.apply(void 0,e)}),n)}function Qe(t,n,e,r){var i=-1,u=hn,o=!0,a=t.length,f=[],c=n.length;if(!a)return f;e&&(n=pn(n,jn(e))),r?(u=dn,o=!1):n.length>=200&&(u=On,o=!1,n=new Le(n));t:for(;++i-1},Re.prototype.set=function(t,n){var e=this.__data__,r=Ye(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Pe.prototype.clear=function(){this.size=0,this.__data__={hash:new Oe,map:new(de||Re),string:new Oe}},Pe.prototype.delete=function(t){var n=Ki(this,t).delete(t);return this.size-=n?1:0,n},Pe.prototype.get=function(t){return Ki(this,t).get(t)},Pe.prototype.has=function(t){return Ki(this,t).has(t)},Pe.prototype.set=function(t,n){var e=Ki(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Le.prototype.add=Le.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Le.prototype.has=function(t){return this.__data__.has(t)},Ie.prototype.clear=function(){this.__data__=new Re,this.size=0},Ie.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ie.prototype.get=function(t){return this.__data__.get(t)},Ie.prototype.has=function(t){return this.__data__.has(t)},Ie.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Re){var r=e.__data__;if(!de||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Pe(r)}return e.set(t,n),this.size=e.size,this};var tr=xi(fr),nr=xi(cr,!0);function er(t,n){var e=!0;return tr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function rr(t,n,e){for(var r=-1,i=t.length;++r0&&e(a)?n>1?ur(a,n-1,e,r,i):vn(i,a):r||(i[i.length]=a)}return i}var or=wi(),ar=wi(!0);function fr(t,n){return t&&or(t,n,ma)}function cr(t,n){return t&&ar(t,n,ma)}function sr(t,n){return ln(n,(function(n){return Bo(t[n])}))}function lr(t,n){for(var e=0,r=(n=ai(n,t)).length;null!=t&&en}function vr(t,n){return null!=t&&At.call(t,n)}function _r(t,n){return null!=t&&n in vt(t)}function gr(t,n,e){for(var i=e?dn:hn,u=t[0].length,o=t.length,a=o,f=r(o),c=1/0,s=[];a--;){var l=t[a];a&&n&&(l=pn(l,jn(n))),c=ae(l.length,c),f[a]=!e&&(n||u>=120&&l.length>=120)?new Le(a&&l):void 0}l=t[0];var h=-1,d=f[0];t:for(;++h=a)return f;var c=e[r];return f*("desc"==c?-1:1)}}return t.index-n.index}(t,n,e)}))}function Or(t,n,e){for(var r=-1,i=n.length,u={};++r-1;)a!==t&&Xt.call(a,f,1),Xt.call(t,f,1);return t}function Pr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;ou(i)?Xt.call(t,i,1):Qr(t,i)}}return t}function Lr(t,n){return t+te(se()*(n-t+1))}function Ir(t,n){var e="";if(!t||n<1||n>9007199254740991)return e;do{n%2&&(e+=t),(n=te(n/2))&&(t+=t)}while(n);return e}function Dr(t,n){return mu(pu(t,n,Ha),t+"")}function Ur(t){return Ue(Ca(t))}function Br(t,n){var e=Ca(t);return Mu(e,Xe(n,0,e.length))}function Fr(t,n,e,r){if(!Wo(t))return t;for(var i=-1,u=(n=ai(n,t)).length,o=u-1,a=t;null!=a&&++iu?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var o=r(u);++i>>1,o=t[u];null!==o&&!Ko(o)&&(e?o<=n:o=200){var c=n?null:Ii(t);if(c)return Yn(c);o=!1,i=On,f=new Le}else f=n?[]:a;t:for(;++r=r?t:$r(t,n,e)}var si=Zn||function(t){return Vt.clearTimeout(t)};function li(t,n){if(n)return t.slice();var e=t.length,r=qt?qt(e):new t.constructor(e);return t.copy(r),r}function hi(t){var n=new t.constructor(t.byteLength);return new Lt(n).set(new Lt(t)),n}function di(t,n){var e=n?hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function pi(t,n){if(t!==n){var e=void 0!==t,r=null===t,i=t==t,u=Ko(t),o=void 0!==n,a=null===n,f=n==n,c=Ko(n);if(!a&&!c&&!u&&t>n||u&&o&&f&&!a&&!c||r&&o&&f||!e&&f||!i)return 1;if(!r&&!u&&!c&&t1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,o&&au(e[0],e[1],o)&&(u=i<3?void 0:u,i=1),n=vt(n);++r-1?i[u?n[o]:o]:void 0}}function Ti(t){return Yi((function(n){var e=n.length,r=e,i=je.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new yt(u);if(i&&!a&&"wrapper"==Gi(o))var a=new je([],!0)}for(r=a?r:e;++r1&&b.reverse(),l&&ca))return!1;var c=u.get(t);if(c&&u.get(n))return c==n;var s=-1,l=!0,h=2&e?new Le:void 0;for(u.set(t,n),u.set(n,t);++s-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(K,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return fn(a,(function(e){var r="_."+e[0];n&e[1]&&!hn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(J);return n?n[1].split(Q):[]}(r),e)))}function wu(t){var n=0,e=0;return function(){var r=fe(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function Mu(t,n){var e=-1,r=t.length,i=r-1;for(n=void 0===n?r:n;++e1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,Vu(t,e)}));function to(t){var n=Ee(t);return n.__chain__=!0,n}function no(t,n){return n(t)}var eo=Yi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Ge(n,t)};return!(n>1||this.__actions__.length)&&r instanceof ze&&ou(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:no,args:[i],thisArg:void 0}),new je(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var ro=bi((function(t,n,e){At.call(t,e)?++t[e]:Ve(t,e,1)}));var io=Si(ju),uo=Si(zu);function oo(t,n){return(Oo(t)?fn:tr)(t,Zi(n,3))}function ao(t,n){return(Oo(t)?cn:nr)(t,Zi(n,3))}var fo=bi((function(t,n,e){At.call(t,e)?t[e].push(n):Ve(t,e,[n])}));var co=Dr((function(t,n,e){var i=-1,u="function"==typeof n,o=Po(t)?r(t.length):[];return tr(t,(function(t){o[++i]=u?on(n,t,e):yr(t,n,e)})),o})),so=bi((function(t,n,e){Ve(t,e,n)}));function lo(t,n){return(Oo(t)?pn:Tr)(t,Zi(n,3))}var ho=bi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]}));var po=Dr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&au(t,n[0],n[1])?n=[]:e>2&&au(n[0],n[1],n[2])&&(n=[n[0]]),zr(t,ur(n,1),[])})),vo=Kn||function(){return Vt.Date.now()};function _o(t,n,e){return n=e?void 0:n,Ui(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function go(t,n){var e;if("function"!=typeof n)throw new yt(u);return t=ra(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var yo=Dr((function(t,n,e){var r=1;if(e.length){var i=Wn(e,Xi(yo));r|=32}return Ui(t,r,n,e,i)})),bo=Dr((function(t,n,e){var r=3;if(e.length){var i=Wn(e,Xi(bo));r|=32}return Ui(n,r,t,e,i)}));function mo(t,n,e){var r,i,o,a,f,c,s=0,l=!1,h=!1,d=!0;if("function"!=typeof t)throw new yt(u);function p(n){var e=r,u=i;return r=i=void 0,s=n,a=t.apply(u,e)}function v(t){return s=t,f=bu(g,n),l?p(t):a}function _(t){var e=t-c;return void 0===c||e>=n||e<0||h&&t-s>=o}function g(){var t=vo();if(_(t))return y(t);f=bu(g,function(t){var e=n-(t-c);return h?ae(e,o-(t-s)):e}(t))}function y(t){return f=void 0,d&&r?p(t):(r=i=void 0,a)}function b(){var t=vo(),e=_(t);if(r=arguments,i=this,c=t,e){if(void 0===f)return v(c);if(h)return si(f),f=bu(g,n),p(c)}return void 0===f&&(f=bu(g,n)),a}return n=ua(n)||0,Wo(e)&&(l=!!e.leading,o=(h="maxWait"in e)?oe(ua(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),b.cancel=function(){void 0!==f&&si(f),s=0,r=c=i=f=void 0},b.flush=function(){return void 0===f?a:y(vo())},b}var xo=Dr((function(t,n){return Je(t,1,n)})),wo=Dr((function(t,n,e){return Je(t,ua(n)||0,e)}));function Mo(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new yt(u);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=t.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(Mo.Cache||Pe),e}function Ao(t){if("function"!=typeof t)throw new yt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Mo.Cache=Pe;var ko=fi((function(t,n){var e=(n=1==n.length&&Oo(n[0])?pn(n[0],jn(Zi())):pn(ur(n,1),jn(Zi()))).length;return Dr((function(r){for(var i=-1,u=ae(r.length,e);++i=n})),zo=br(function(){return arguments}())?br:function(t){return Yo(t)&&At.call(t,"callee")&&!Gt.call(t,"callee")},Oo=r.isArray,Ro=Qt?jn(Qt):function(t){return Yo(t)&&dr(t)==M};function Po(t){return null!=t&&qo(t.length)&&!Bo(t)}function Lo(t){return Yo(t)&&Po(t)}var Io=ee||of,Do=tn?jn(tn):function(t){return Yo(t)&&dr(t)==l};function Uo(t){if(!Yo(t))return!1;var n=dr(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Vo(t)}function Bo(t){if(!Wo(t))return!1;var n=dr(t);return n==d||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Fo(t){return"number"==typeof t&&t==ra(t)}function qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wo(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Yo(t){return null!=t&&"object"==typeof t}var $o=nn?jn(nn):function(t){return Yo(t)&&eu(t)==v};function Ho(t){return"number"==typeof t||Yo(t)&&dr(t)==_}function Vo(t){if(!Yo(t)||dr(t)!=g)return!1;var n=$t(t);if(null===n)return!0;var e=At.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Mt.call(e)==Et}var Go=en?jn(en):function(t){return Yo(t)&&dr(t)==y};var Xo=rn?jn(rn):function(t){return Yo(t)&&eu(t)==b};function Zo(t){return"string"==typeof t||!Oo(t)&&Yo(t)&&dr(t)==m}function Ko(t){return"symbol"==typeof t||Yo(t)&&dr(t)==x}var Jo=un?jn(un):function(t){return Yo(t)&&qo(t.length)&&!!Bt[dr(t)]};var Qo=Ri(Sr),ta=Ri((function(t,n){return t<=n}));function na(t){if(!t)return[];if(Po(t))return Zo(t)?Vn(t):gi(t);if(Jt&&t[Jt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Jt]());var n=eu(t);return(n==v?Fn:n==b?Yn:Ca)(t)}function ea(t){return t?(t=ua(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ra(t){var n=ea(t),e=n%1;return n==n?e?n-e:n:0}function ia(t){return t?Xe(ra(t),0,4294967295):0}function ua(t){if("number"==typeof t)return t;if(Ko(t))return NaN;if(Wo(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Wo(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(G,"");var e=ut.test(t);return e||at.test(t)?Yt(t.slice(2),e?2:8):it.test(t)?NaN:+t}function oa(t){return yi(t,xa(t))}function aa(t){return null==t?"":Kr(t)}var fa=mi((function(t,n){if(lu(n)||Po(n))yi(n,ma(n),t);else for(var e in n)At.call(n,e)&&We(t,e,n[e])})),ca=mi((function(t,n){yi(n,xa(n),t)})),sa=mi((function(t,n,e,r){yi(n,xa(n),t,r)})),la=mi((function(t,n,e,r){yi(n,ma(n),t,r)})),ha=Yi(Ge);var da=Dr((function(t,n){t=vt(t);var e=-1,r=n.length,i=r>2?n[2]:void 0;for(i&&au(n[0],n[1],i)&&(r=1);++e1),n})),yi(t,Hi(t),e),r&&(e=Ze(e,7,qi));for(var i=n.length;i--;)Qr(e,n[i]);return e}));var ka=Yi((function(t,n){return null==t?{}:function(t,n){return Or(t,n,(function(n,e){return _a(t,e)}))}(t,n)}));function Sa(t,n){if(null==t)return{};var e=pn(Hi(t),(function(t){return[t]}));return n=Zi(n),Or(t,e,(function(t,e){return n(t,e[0])}))}var Ta=Di(ma),Ea=Di(xa);function Ca(t){return null==t?[]:zn(t,ma(t))}var Na=Ai((function(t,n,e){return n=n.toLowerCase(),t+(e?ja(n):n)}));function ja(t){return Ua(aa(t).toLowerCase())}function za(t){return(t=aa(t))&&t.replace(ct,In).replace(Ot,"")}var Oa=Ai((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ra=Ai((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Pa=Mi("toLowerCase");var La=Ai((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}));var Ia=Ai((function(t,n,e){return t+(e?" ":"")+Ua(n)}));var Da=Ai((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ua=Mi("toUpperCase");function Ba(t,n,e){return t=aa(t),void 0===(n=e?void 0:n)?function(t){return It.test(t)}(t)?function(t){return t.match(Pt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(n)||[]}var Fa=Dr((function(t,n){try{return on(t,void 0,n)}catch(t){return Uo(t)?t:new ht(t)}})),qa=Yi((function(t,n){return fn(n,(function(n){n=ku(n),Ve(t,n,yo(t[n],t))})),t}));function Wa(t){return function(){return t}}var Ya=Ti(),$a=Ti(!0);function Ha(t){return t}function Va(t){return Mr("function"==typeof t?t:Ze(t,1))}var Ga=Dr((function(t,n){return function(e){return yr(e,t,n)}})),Xa=Dr((function(t,n){return function(e){return yr(t,e,n)}}));function Za(t,n,e){var r=ma(n),i=sr(n,r);null!=e||Wo(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=sr(n,ma(n)));var u=!(Wo(e)&&"chain"in e&&!e.chain),o=Bo(t);return fn(i,(function(e){var r=n[e];t[e]=r,o&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),i=e.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,vn([this.value()],arguments))})})),t}function Ka(){}var Ja=ji(pn),Qa=ji(sn),tf=ji(yn);function nf(t){return fu(t)?Sn(ku(t)):function(t){return function(n){return lr(n,t)}}(t)}var ef=Oi(),rf=Oi(!0);function uf(){return[]}function of(){return!1}var af=Ni((function(t,n){return t+n}),0),ff=Li("ceil"),cf=Ni((function(t,n){return t/n}),1),sf=Li("floor");var lf,hf=Ni((function(t,n){return t*n}),1),df=Li("round"),pf=Ni((function(t,n){return t-n}),0);return Ee.after=function(t,n){if("function"!=typeof n)throw new yt(u);return t=ra(t),function(){if(--t<1)return n.apply(this,arguments)}},Ee.ary=_o,Ee.assign=fa,Ee.assignIn=ca,Ee.assignInWith=sa,Ee.assignWith=la,Ee.at=ha,Ee.before=go,Ee.bind=yo,Ee.bindAll=qa,Ee.bindKey=bo,Ee.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Oo(t)?t:[t]},Ee.chain=to,Ee.chunk=function(t,n,e){n=(e?au(t,n,e):void 0===n)?1:oe(ra(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var u=0,o=0,a=r(Qn(i/n));ui?0:i+e),(r=void 0===r||r>i?i:ra(r))<0&&(r+=i),r=e>r?0:ia(r);e>>0)?(t=aa(t))&&("string"==typeof n||null!=n&&!Go(n))&&!(n=Kr(n))&&Bn(t)?ci(Vn(t),0,e):t.split(n,e):[]},Ee.spread=function(t,n){if("function"!=typeof t)throw new yt(u);return n=null==n?0:oe(ra(n),0),Dr((function(e){var r=e[n],i=ci(e,0,n);return r&&vn(i,r),on(t,this,i)}))},Ee.tail=function(t){var n=null==t?0:t.length;return n?$r(t,1,n):[]},Ee.take=function(t,n,e){return t&&t.length?$r(t,0,(n=e||void 0===n?1:ra(n))<0?0:n):[]},Ee.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?$r(t,(n=r-(n=e||void 0===n?1:ra(n)))<0?0:n,r):[]},Ee.takeRightWhile=function(t,n){return t&&t.length?ni(t,Zi(n,3),!1,!0):[]},Ee.takeWhile=function(t,n){return t&&t.length?ni(t,Zi(n,3)):[]},Ee.tap=function(t,n){return n(t),t},Ee.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new yt(u);return Wo(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),mo(t,n,{leading:r,maxWait:n,trailing:i})},Ee.thru=no,Ee.toArray=na,Ee.toPairs=Ta,Ee.toPairsIn=Ea,Ee.toPath=function(t){return Oo(t)?pn(t,ku):Ko(t)?[t]:gi(Au(aa(t)))},Ee.toPlainObject=oa,Ee.transform=function(t,n,e){var r=Oo(t),i=r||Io(t)||Jo(t);if(n=Zi(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:Wo(t)&&Bo(u)?Ce($t(t)):{}}return(i?fn:fr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Ee.unary=function(t){return _o(t,1)},Ee.union=Wu,Ee.unionBy=Yu,Ee.unionWith=$u,Ee.uniq=function(t){return t&&t.length?Jr(t):[]},Ee.uniqBy=function(t,n){return t&&t.length?Jr(t,Zi(n,2)):[]},Ee.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Jr(t,void 0,n):[]},Ee.unset=function(t,n){return null==t||Qr(t,n)},Ee.unzip=Hu,Ee.unzipWith=Vu,Ee.update=function(t,n,e){return null==t?t:ti(t,n,oi(e))},Ee.updateWith=function(t,n,e,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,n,oi(e),r)},Ee.values=Ca,Ee.valuesIn=function(t){return null==t?[]:zn(t,xa(t))},Ee.without=Gu,Ee.words=Ba,Ee.wrap=function(t,n){return So(oi(n),t)},Ee.xor=Xu,Ee.xorBy=Zu,Ee.xorWith=Ku,Ee.zip=Ju,Ee.zipObject=function(t,n){return ii(t||[],n||[],We)},Ee.zipObjectDeep=function(t,n){return ii(t||[],n||[],Fr)},Ee.zipWith=Qu,Ee.entries=Ta,Ee.entriesIn=Ea,Ee.extend=ca,Ee.extendWith=sa,Za(Ee,Ee),Ee.add=af,Ee.attempt=Fa,Ee.camelCase=Na,Ee.capitalize=ja,Ee.ceil=ff,Ee.clamp=function(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=ua(e))==e?e:0),void 0!==n&&(n=(n=ua(n))==n?n:0),Xe(ua(t),n,e)},Ee.clone=function(t){return Ze(t,4)},Ee.cloneDeep=function(t){return Ze(t,5)},Ee.cloneDeepWith=function(t,n){return Ze(t,5,n="function"==typeof n?n:void 0)},Ee.cloneWith=function(t,n){return Ze(t,4,n="function"==typeof n?n:void 0)},Ee.conformsTo=function(t,n){return null==n||Ke(t,n,ma(n))},Ee.deburr=za,Ee.defaultTo=function(t,n){return null==t||t!=t?n:t},Ee.divide=cf,Ee.endsWith=function(t,n,e){t=aa(t),n=Kr(n);var r=t.length,i=e=void 0===e?r:Xe(ra(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},Ee.eq=Co,Ee.escape=function(t){return(t=aa(t))&&U.test(t)?t.replace(I,Dn):t},Ee.escapeRegExp=function(t){return(t=aa(t))&&V.test(t)?t.replace(H,"\\$&"):t},Ee.every=function(t,n,e){var r=Oo(t)?sn:er;return e&&au(t,n,e)&&(n=void 0),r(t,Zi(n,3))},Ee.find=io,Ee.findIndex=ju,Ee.findKey=function(t,n){return mn(t,Zi(n,3),fr)},Ee.findLast=uo,Ee.findLastIndex=zu,Ee.findLastKey=function(t,n){return mn(t,Zi(n,3),cr)},Ee.floor=sf,Ee.forEach=oo,Ee.forEachRight=ao,Ee.forIn=function(t,n){return null==t?t:or(t,Zi(n,3),xa)},Ee.forInRight=function(t,n){return null==t?t:ar(t,Zi(n,3),xa)},Ee.forOwn=function(t,n){return t&&fr(t,Zi(n,3))},Ee.forOwnRight=function(t,n){return t&&cr(t,Zi(n,3))},Ee.get=va,Ee.gt=No,Ee.gte=jo,Ee.has=function(t,n){return null!=t&&ru(t,n,vr)},Ee.hasIn=_a,Ee.head=Ru,Ee.identity=Ha,Ee.includes=function(t,n,e,r){t=Po(t)?t:Ca(t),e=e&&!r?ra(e):0;var i=t.length;return e<0&&(e=oe(i+e,0)),Zo(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&wn(t,n,e)>-1},Ee.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ra(e);return i<0&&(i=oe(r+i,0)),wn(t,n,i)},Ee.inRange=function(t,n,e){return n=ea(n),void 0===e?(e=n,n=0):e=ea(e),function(t,n,e){return t>=ae(n,e)&&t=-9007199254740991&&t<=9007199254740991},Ee.isSet=Xo,Ee.isString=Zo,Ee.isSymbol=Ko,Ee.isTypedArray=Jo,Ee.isUndefined=function(t){return void 0===t},Ee.isWeakMap=function(t){return Yo(t)&&eu(t)==w},Ee.isWeakSet=function(t){return Yo(t)&&"[object WeakSet]"==dr(t)},Ee.join=function(t,n){return null==t?"":ie.call(t,n)},Ee.kebabCase=Oa,Ee.last=Du,Ee.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==e&&(i=(i=ra(e))<0?oe(r+i,0):ae(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):xn(t,An,i,!0)},Ee.lowerCase=Ra,Ee.lowerFirst=Pa,Ee.lt=Qo,Ee.lte=ta,Ee.max=function(t){return t&&t.length?rr(t,Ha,pr):void 0},Ee.maxBy=function(t,n){return t&&t.length?rr(t,Zi(n,2),pr):void 0},Ee.mean=function(t){return kn(t,Ha)},Ee.meanBy=function(t,n){return kn(t,Zi(n,2))},Ee.min=function(t){return t&&t.length?rr(t,Ha,Sr):void 0},Ee.minBy=function(t,n){return t&&t.length?rr(t,Zi(n,2),Sr):void 0},Ee.stubArray=uf,Ee.stubFalse=of,Ee.stubObject=function(){return{}},Ee.stubString=function(){return""},Ee.stubTrue=function(){return!0},Ee.multiply=hf,Ee.nth=function(t,n){return t&&t.length?jr(t,ra(n)):void 0},Ee.noConflict=function(){return Vt._===this&&(Vt._=Ct),this},Ee.noop=Ka,Ee.now=vo,Ee.pad=function(t,n,e){t=aa(t);var r=(n=ra(n))?Hn(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return zi(te(i),e)+t+zi(Qn(i),e)},Ee.padEnd=function(t,n,e){t=aa(t);var r=(n=ra(n))?Hn(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=se();return ae(t+i*(n-t+Wt("1e-"+((i+"").length-1))),n)}return Lr(t,n)},Ee.reduce=function(t,n,e){var r=Oo(t)?_n:En,i=arguments.length<3;return r(t,Zi(n,4),e,i,tr)},Ee.reduceRight=function(t,n,e){var r=Oo(t)?gn:En,i=arguments.length<3;return r(t,Zi(n,4),e,i,nr)},Ee.repeat=function(t,n,e){return n=(e?au(t,n,e):void 0===n)?1:ra(n),Ir(aa(t),n)},Ee.replace=function(){var t=arguments,n=aa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Ee.result=function(t,n,e){var r=-1,i=(n=ai(n,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var e=4294967295,r=ae(t,4294967295);t-=4294967295;for(var i=Nn(r,n=Zi(n));++e=u)return t;var a=e-Hn(r);if(a<1)return r;var f=o?ci(o,0,a).join(""):t.slice(0,a);if(void 0===i)return f+r;if(o&&(a+=f.length-a),Go(i)){if(t.slice(a).search(i)){var c,s=f;for(i.global||(i=_t(i.source,aa(rt.exec(i))+"g")),i.lastIndex=0;c=i.exec(s);)var l=c.index;f=f.slice(0,void 0===l?a:l)}}else if(t.indexOf(Kr(i),a)!=a){var h=f.lastIndexOf(i);h>-1&&(f=f.slice(0,h))}return f+r},Ee.unescape=function(t){return(t=aa(t))&&D.test(t)?t.replace(L,Gn):t},Ee.uniqueId=function(t){var n=++kt;return aa(t)+n},Ee.upperCase=Da,Ee.upperFirst=Ua,Ee.each=oo,Ee.eachRight=ao,Ee.first=Ru,Za(Ee,(lf={},fr(Ee,(function(t,n){At.call(Ee.prototype,n)||(lf[n]=t)})),lf),{chain:!1}),Ee.VERSION="4.17.15",fn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ee[t].placeholder=Ee})),fn(["drop","take"],(function(t,n){ze.prototype[t]=function(e){e=void 0===e?1:oe(ra(e),0);var r=this.__filtered__&&!n?new ze(this):this.clone();return r.__filtered__?r.__takeCount__=ae(e,r.__takeCount__):r.__views__.push({size:ae(e,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},ze.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),fn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;ze.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Zi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),fn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");ze.prototype[t]=function(){return this[e](1).value()[0]}})),fn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");ze.prototype[t]=function(){return this.__filtered__?new ze(this):this[e](1)}})),ze.prototype.compact=function(){return this.filter(Ha)},ze.prototype.find=function(t){return this.filter(t).head()},ze.prototype.findLast=function(t){return this.reverse().find(t)},ze.prototype.invokeMap=Dr((function(t,n){return"function"==typeof t?new ze(this):this.map((function(e){return yr(e,t,n)}))})),ze.prototype.reject=function(t){return this.filter(Ao(Zi(t)))},ze.prototype.slice=function(t,n){t=ra(t);var e=this;return e.__filtered__&&(t>0||n<0)?new ze(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=ra(n))<0?e.dropRight(-n):e.take(n-t)),e)},ze.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ze.prototype.toArray=function(){return this.take(4294967295)},fr(ze.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=Ee[r?"take"+("last"==n?"Right":""):n],u=r||/^find/.test(n);i&&(Ee.prototype[n]=function(){var n=this.__wrapped__,o=r?[1]:arguments,a=n instanceof ze,f=o[0],c=a||Oo(n),s=function(t){var n=i.apply(Ee,vn([t],o));return r&&l?n[0]:n};c&&e&&"function"==typeof f&&1!=f.length&&(a=c=!1);var l=this.__chain__,h=!!this.__actions__.length,d=u&&!l,p=a&&!h;if(!u&&c){n=p?n:new ze(this);var v=t.apply(n,o);return v.__actions__.push({func:no,args:[s],thisArg:void 0}),new je(v,l)}return d&&p?t.apply(this,o):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),fn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=bt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ee.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Oo(i)?i:[],t)}return this[e]((function(e){return n.apply(Oo(e)?e:[],t)}))}})),fr(ze.prototype,(function(t,n){var e=Ee[n];if(e){var r=e.name+"";At.call(be,r)||(be[r]=[]),be[r].push({name:n,func:e})}})),be[Ei(void 0,2).name]=[{name:"wrapper",func:void 0}],ze.prototype.clone=function(){var t=new ze(this.__wrapped__);return t.__actions__=gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gi(this.__views__),t},ze.prototype.reverse=function(){if(this.__filtered__){var t=new ze(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ze.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Oo(t),r=n<0,i=e?t.length:0,u=function(t,n,e){var r=-1,i=e.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Ee.prototype.plant=function(t){for(var n,e=this;e instanceof Ne;){var r=Tu(e);r.__index__=0,r.__values__=void 0,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},Ee.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof ze){var n=t;return this.__actions__.length&&(n=new ze(this)),(n=n.reverse()).__actions__.push({func:no,args:[qu],thisArg:void 0}),new je(n,this.__chain__)}return this.thru(qu)},Ee.prototype.toJSON=Ee.prototype.valueOf=Ee.prototype.value=function(){return ei(this.__wrapped__,this.__actions__)},Ee.prototype.first=Ee.prototype.head,Jt&&(Ee.prototype[Jt]=function(){return this}),Ee}();Vt._=Xn,void 0===(i=function(){return Xn}.call(n,e,n,r))||(r.exports=i)}).call(this)}).call(this,e(2),e(3)(t))},function(t,n,e){window,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=7)}([function(t,n,e){(function(t,r){var i; /** * @license * Lodash @@ -14,4 +14,4 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var u="Expected a function",o="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",c="[object Array]",s="[object Boolean]",l="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",_="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",m="[object String]",x="[object Symbol]",w="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",N="[object Uint8Array]",j="[object Uint16Array]",z="[object Uint32Array]",O=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,P=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,D=RegExp(L.source),U=RegExp(I.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,V=RegExp(H.source),G=/^\s+|\s+$/g,X=/^\s+/,Z=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="["+dt+"]",vt="["+ht+"]",_t="\\d+",gt="[a-z\\xdf-\\xf6\\xf8-\\xff]",yt="[^\\ud800-\\udfff"+dt+_t+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bt="\\ud83c[\\udffb-\\udfff]",mt="[^\\ud800-\\udfff]",xt="(?:\\ud83c[\\udde6-\\uddff]){2}",wt="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",At="(?:"+gt+"|"+yt+")",kt="(?:"+Mt+"|"+yt+")",St="(?:"+vt+"|"+bt+")?",Tt="[\\ufe0e\\ufe0f]?"+St+"(?:\\u200d(?:"+[mt,xt,wt].join("|")+")[\\ufe0e\\ufe0f]?"+St+")*",Et="(?:"+["[\\u2700-\\u27bf]",xt,wt].join("|")+")"+Tt,Ct="(?:"+[mt+vt+"?",vt,xt,wt,"[\\ud800-\\udfff]"].join("|")+")",Nt=RegExp("['’]","g"),jt=RegExp(vt,"g"),zt=RegExp(bt+"(?="+bt+")|"+Ct+Tt,"g"),Ot=RegExp([Mt+"?"+gt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[pt,Mt,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[pt,Mt+At,"$"].join("|")+")",Mt+"?"+At+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Mt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,Et].join("|"),"g"),Rt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Pt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],It=-1,Dt={};Dt[k]=Dt[S]=Dt[T]=Dt[E]=Dt[C]=Dt[N]=Dt["[object Uint8ClampedArray]"]=Dt[j]=Dt[z]=!0,Dt[f]=Dt[c]=Dt[M]=Dt[s]=Dt[A]=Dt[l]=Dt[h]=Dt[d]=Dt[v]=Dt[_]=Dt[g]=Dt[y]=Dt[b]=Dt[m]=Dt[w]=!1;var Ut={};Ut[f]=Ut[c]=Ut[M]=Ut[A]=Ut[s]=Ut[l]=Ut[k]=Ut[S]=Ut[T]=Ut[E]=Ut[C]=Ut[v]=Ut[_]=Ut[g]=Ut[y]=Ut[b]=Ut[m]=Ut[x]=Ut[N]=Ut["[object Uint8ClampedArray]"]=Ut[j]=Ut[z]=!0,Ut[h]=Ut[d]=Ut[w]=!1;var Bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ft=parseFloat,qt=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Yt="object"==typeof self&&self&&self.Object===Object&&self,$t=Wt||Yt||Function("return this")(),Ht=n&&!n.nodeType&&n,Vt=Ht&&"object"==typeof r&&r&&!r.nodeType&&r,Gt=Vt&&Vt.exports===Ht,Xt=Gt&&Wt.process,Zt=function(){try{return Vt&&Vt.require&&Vt.require("util").types||Xt&&Xt.binding&&Xt.binding("util")}catch(t){}}(),Kt=Zt&&Zt.isArrayBuffer,Jt=Zt&&Zt.isDate,Qt=Zt&&Zt.isMap,tn=Zt&&Zt.isRegExp,nn=Zt&&Zt.isSet,en=Zt&&Zt.isTypedArray;function rn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function un(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i-1}function ln(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function On(t,n){for(var e=t.length;e--&&mn(n,t[e],0)>-1;);return e}function Rn(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var Pn=kn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ln=kn({"&":"&","<":"<",">":">",'"':""","'":"'"});function In(t){return"\\"+Bt[t]}function Dn(t){return Rt.test(t)}function Un(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function Bn(t,n){return function(e){return t(n(e))}}function Fn(t,n){for(var e=-1,r=t.length,i=0,u=[];++e",""":'"',"'":"'"}),Hn=function t(n){var e,r=(n=null==n?$t:Hn.defaults($t.Object(),n,Hn.pick($t,Lt))).Array,i=n.Date,ht=n.Error,dt=n.Function,pt=n.Math,vt=n.Object,_t=n.RegExp,gt=n.String,yt=n.TypeError,bt=r.prototype,mt=dt.prototype,xt=vt.prototype,wt=n["__core-js_shared__"],Mt=mt.toString,At=xt.hasOwnProperty,kt=0,St=(e=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Tt=xt.toString,Et=Mt.call(vt),Ct=$t._,zt=_t("^"+Mt.call(At).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Gt?n.Buffer:void 0,Bt=n.Symbol,Wt=n.Uint8Array,Yt=Rt?Rt.allocUnsafe:void 0,Ht=Bn(vt.getPrototypeOf,vt),Vt=vt.create,Xt=xt.propertyIsEnumerable,Zt=bt.splice,gn=Bt?Bt.isConcatSpreadable:void 0,kn=Bt?Bt.iterator:void 0,Vn=Bt?Bt.toStringTag:void 0,Gn=function(){try{var t=Ki(vt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Xn=n.clearTimeout!==$t.clearTimeout&&n.clearTimeout,Zn=i&&i.now!==$t.Date.now&&i.now,Kn=n.setTimeout!==$t.setTimeout&&n.setTimeout,Jn=pt.ceil,Qn=pt.floor,te=vt.getOwnPropertySymbols,ne=Rt?Rt.isBuffer:void 0,ee=n.isFinite,re=bt.join,ie=Bn(vt.keys,vt),ue=pt.max,oe=pt.min,ae=i.now,fe=n.parseInt,ce=pt.random,se=bt.reverse,le=Ki(n,"DataView"),he=Ki(n,"Map"),de=Ki(n,"Promise"),pe=Ki(n,"Set"),ve=Ki(n,"WeakMap"),_e=Ki(vt,"create"),ge=ve&&new ve,ye={},be=Au(le),me=Au(he),xe=Au(de),we=Au(pe),Me=Au(ve),Ae=Bt?Bt.prototype:void 0,ke=Ae?Ae.valueOf:void 0,Se=Ae?Ae.toString:void 0;function Te(t){if(qo(t)&&!jo(t)&&!(t instanceof je)){if(t instanceof Ne)return t;if(At.call(t,"__wrapped__"))return ku(t)}return new Ne(t)}var Ee=function(){function t(){}return function(n){if(!Fo(n))return{};if(Vt)return Vt(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function Ce(){}function Ne(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function je(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ze(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Xe(t,n,e,r,i,u){var o,a=1&n,c=2&n,h=4&n;if(e&&(o=i?e(t,r,i,u):e(t)),void 0!==o)return o;if(!Fo(t))return t;var w=jo(t);if(w){if(o=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&At.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!a)return vi(t,o)}else{var O=tu(t),R=O==d||O==p;if(Po(t))return ci(t,a);if(O==g||O==f||R&&!i){if(o=c||R?{}:eu(t),!a)return c?function(t,n){return _i(t,Qi(t),n)}(t,function(t,n){return t&&_i(n,ba(n),t)}(o,t)):function(t,n){return _i(t,Ji(t),n)}(t,$e(o,t))}else{if(!Ut[O])return i?t:{};o=function(t,n,e){var r,i=t.constructor;switch(n){case M:return si(t);case s:case l:return new i(+t);case A:return function(t,n){var e=n?si(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case k:case S:case T:case E:case C:case N:case"[object Uint8ClampedArray]":case j:case z:return li(t,e);case v:return new i;case _:case m:return new i(t);case y:return function(t){var n=new t.constructor(t.source,rt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case b:return new i;case x:return r=t,ke?vt(ke.call(r)):{}}}(t,O,a)}}u||(u=new Le);var P=u.get(t);if(P)return P;u.set(t,o),Vo(t)?t.forEach((function(r){o.add(Xe(r,n,e,r,t,u))})):Wo(t)&&t.forEach((function(r,i){o.set(i,Xe(r,n,e,i,t,u))}));var L=w?void 0:(h?c?Yi:Wi:c?ba:ya)(t);return on(L||t,(function(r,i){L&&(r=t[i=r]),qe(o,i,Xe(r,n,e,i,t,u))})),o}function Ze(t,n,e){var r=e.length;if(null==t)return!r;for(t=vt(t);r--;){var i=e[r],u=n[i],o=t[i];if(void 0===o&&!(i in t)||!u(o))return!1}return!0}function Ke(t,n,e){if("function"!=typeof t)throw new yt(u);return gu((function(){t.apply(void 0,e)}),n)}function Je(t,n,e,r){var i=-1,u=sn,o=!0,a=t.length,f=[],c=n.length;if(!a)return f;e&&(n=hn(n,Cn(e))),r?(u=ln,o=!1):n.length>=200&&(u=jn,o=!1,n=new Pe(n));t:for(;++i-1},Oe.prototype.set=function(t,n){var e=this.__data__,r=We(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Re.prototype.clear=function(){this.size=0,this.__data__={hash:new ze,map:new(he||Oe),string:new ze}},Re.prototype.delete=function(t){var n=Xi(this,t).delete(t);return this.size-=n?1:0,n},Re.prototype.get=function(t){return Xi(this,t).get(t)},Re.prototype.has=function(t){return Xi(this,t).has(t)},Re.prototype.set=function(t,n){var e=Xi(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Pe.prototype.add=Pe.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Pe.prototype.has=function(t){return this.__data__.has(t)},Le.prototype.clear=function(){this.__data__=new Oe,this.size=0},Le.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Le.prototype.get=function(t){return this.__data__.get(t)},Le.prototype.has=function(t){return this.__data__.has(t)},Le.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Oe){var r=e.__data__;if(!he||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Re(r)}return e.set(t,n),this.size=e.size,this};var Qe=bi(ar),tr=bi(fr,!0);function nr(t,n){var e=!0;return Qe(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function er(t,n,e){for(var r=-1,i=t.length;++r0&&e(a)?n>1?ir(a,n-1,e,r,i):dn(i,a):r||(i[i.length]=a)}return i}var ur=mi(),or=mi(!0);function ar(t,n){return t&&ur(t,n,ya)}function fr(t,n){return t&&or(t,n,ya)}function cr(t,n){return cn(n,(function(n){return Do(t[n])}))}function sr(t,n){for(var e=0,r=(n=ui(n,t)).length;null!=t&&en}function pr(t,n){return null!=t&&At.call(t,n)}function vr(t,n){return null!=t&&n in vt(t)}function _r(t,n,e){for(var i=e?ln:sn,u=t[0].length,o=t.length,a=o,f=r(o),c=1/0,s=[];a--;){var l=t[a];a&&n&&(l=hn(l,Cn(n))),c=oe(l.length,c),f[a]=!e&&(n||u>=120&&l.length>=120)?new Pe(a&&l):void 0}l=t[0];var h=-1,d=f[0];t:for(;++h=a?f:f*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function jr(t,n,e){for(var r=-1,i=n.length,u={};++r-1;)a!==t&&Zt.call(a,f,1),Zt.call(t,f,1);return t}function Or(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;iu(i)?Zt.call(t,i,1):Kr(t,i)}}return t}function Rr(t,n){return t+Qn(ce()*(n-t+1))}function Pr(t,n){var e="";if(!t||n<1||n>9007199254740991)return e;do{n%2&&(e+=t),(n=Qn(n/2))&&(t+=t)}while(n);return e}function Lr(t,n){return yu(hu(t,n,Ya),t+"")}function Ir(t){return De(Ta(t))}function Dr(t,n){var e=Ta(t);return xu(e,Ge(n,0,e.length))}function Ur(t,n,e,r){if(!Fo(t))return t;for(var i=-1,u=(n=ui(n,t)).length,o=u-1,a=t;null!=a&&++iu?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var o=r(u);++i>>1,o=t[u];null!==o&&!Xo(o)&&(e?o<=n:o=200){var c=n?null:Pi(t);if(c)return qn(c);o=!1,i=jn,f=new Pe}else f=n?[]:a;t:for(;++r=r?t:Wr(t,n,e)}var fi=Xn||function(t){return $t.clearTimeout(t)};function ci(t,n){if(n)return t.slice();var e=t.length,r=Yt?Yt(e):new t.constructor(e);return t.copy(r),r}function si(t){var n=new t.constructor(t.byteLength);return new Wt(n).set(new Wt(t)),n}function li(t,n){var e=n?si(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function hi(t,n){if(t!==n){var e=void 0!==t,r=null===t,i=t==t,u=Xo(t),o=void 0!==n,a=null===n,f=n==n,c=Xo(n);if(!a&&!c&&!u&&t>n||u&&o&&f&&!a&&!c||r&&o&&f||!e&&f||!i)return 1;if(!r&&!u&&!c&&t1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,o&&uu(e[0],e[1],o)&&(u=i<3?void 0:u,i=1),n=vt(n);++r-1?i[u?n[o]:o]:void 0}}function ki(t){return qi((function(n){var e=n.length,r=e,i=Ne.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new yt(u);if(i&&!a&&"wrapper"==Hi(o))var a=new Ne([],!0)}for(r=a?r:e;++r1&&b.reverse(),l&&ca))return!1;var c=u.get(t);if(c&&u.get(n))return c==n;var s=-1,l=!0,h=2&e?new Pe:void 0;for(u.set(t,n),u.set(n,t);++s-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(K,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return on(a,(function(e){var r="_."+e[0];n&e[1]&&!sn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(J);return n?n[1].split(Q):[]}(r),e)))}function mu(t){var n=0,e=0;return function(){var r=ae(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function xu(t,n){var e=-1,r=t.length,i=r-1;for(n=void 0===n?r:n;++e1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,$u(t,e)}));function Ju(t){var n=Te(t);return n.__chain__=!0,n}function Qu(t,n){return n(t)}var to=qi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Ve(n,t)};return!(n>1||this.__actions__.length)&&r instanceof je&&iu(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:Qu,args:[i],thisArg:void 0}),new Ne(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)})),no=gi((function(t,n,e){At.call(t,e)?++t[e]:He(t,e,1)})),eo=Ai(Cu),ro=Ai(Nu);function io(t,n){return(jo(t)?on:Qe)(t,Gi(n,3))}function uo(t,n){return(jo(t)?an:tr)(t,Gi(n,3))}var oo=gi((function(t,n,e){At.call(t,e)?t[e].push(n):He(t,e,[n])})),ao=Lr((function(t,n,e){var i=-1,u="function"==typeof n,o=Oo(t)?r(t.length):[];return Qe(t,(function(t){o[++i]=u?rn(n,t,e):gr(t,n,e)})),o})),fo=gi((function(t,n,e){He(t,e,n)}));function co(t,n){return(jo(t)?hn:kr)(t,Gi(n,3))}var so=gi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),lo=Lr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&uu(t,n[0],n[1])?n=[]:e>2&&uu(n[0],n[1],n[2])&&(n=[n[0]]),Nr(t,ir(n,1),[])})),ho=Zn||function(){return $t.Date.now()};function po(t,n,e){return n=e?void 0:n,Ii(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function vo(t,n){var e;if("function"!=typeof n)throw new yt(u);return t=na(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var _o=Lr((function(t,n,e){var r=1;if(e.length){var i=Fn(e,Vi(_o));r|=32}return Ii(t,r,n,e,i)})),go=Lr((function(t,n,e){var r=3;if(e.length){var i=Fn(e,Vi(go));r|=32}return Ii(n,r,t,e,i)}));function yo(t,n,e){var r,i,o,a,f,c,s=0,l=!1,h=!1,d=!0;if("function"!=typeof t)throw new yt(u);function p(n){var e=r,u=i;return r=i=void 0,s=n,a=t.apply(u,e)}function v(t){return s=t,f=gu(g,n),l?p(t):a}function _(t){var e=t-c;return void 0===c||e>=n||e<0||h&&t-s>=o}function g(){var t=ho();if(_(t))return y(t);f=gu(g,function(t){var e=n-(t-c);return h?oe(e,o-(t-s)):e}(t))}function y(t){return f=void 0,d&&r?p(t):(r=i=void 0,a)}function b(){var t=ho(),e=_(t);if(r=arguments,i=this,c=t,e){if(void 0===f)return v(c);if(h)return fi(f),f=gu(g,n),p(c)}return void 0===f&&(f=gu(g,n)),a}return n=ra(n)||0,Fo(e)&&(l=!!e.leading,o=(h="maxWait"in e)?ue(ra(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),b.cancel=function(){void 0!==f&&fi(f),s=0,r=c=i=f=void 0},b.flush=function(){return void 0===f?a:y(ho())},b}var bo=Lr((function(t,n){return Ke(t,1,n)})),mo=Lr((function(t,n,e){return Ke(t,ra(n)||0,e)}));function xo(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new yt(u);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=t.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(xo.Cache||Re),e}function wo(t){if("function"!=typeof t)throw new yt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}xo.Cache=Re;var Mo=oi((function(t,n){var e=(n=1==n.length&&jo(n[0])?hn(n[0],Cn(Gi())):hn(ir(n,1),Cn(Gi()))).length;return Lr((function(r){for(var i=-1,u=oe(r.length,e);++i=n})),No=yr(function(){return arguments}())?yr:function(t){return qo(t)&&At.call(t,"callee")&&!Xt.call(t,"callee")},jo=r.isArray,zo=Kt?Cn(Kt):function(t){return qo(t)&&hr(t)==M};function Oo(t){return null!=t&&Bo(t.length)&&!Do(t)}function Ro(t){return qo(t)&&Oo(t)}var Po=ne||rf,Lo=Jt?Cn(Jt):function(t){return qo(t)&&hr(t)==l};function Io(t){if(!qo(t))return!1;var n=hr(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!$o(t)}function Do(t){if(!Fo(t))return!1;var n=hr(t);return n==d||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Uo(t){return"number"==typeof t&&t==na(t)}function Bo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Fo(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function qo(t){return null!=t&&"object"==typeof t}var Wo=Qt?Cn(Qt):function(t){return qo(t)&&tu(t)==v};function Yo(t){return"number"==typeof t||qo(t)&&hr(t)==_}function $o(t){if(!qo(t)||hr(t)!=g)return!1;var n=Ht(t);if(null===n)return!0;var e=At.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Mt.call(e)==Et}var Ho=tn?Cn(tn):function(t){return qo(t)&&hr(t)==y},Vo=nn?Cn(nn):function(t){return qo(t)&&tu(t)==b};function Go(t){return"string"==typeof t||!jo(t)&&qo(t)&&hr(t)==m}function Xo(t){return"symbol"==typeof t||qo(t)&&hr(t)==x}var Zo=en?Cn(en):function(t){return qo(t)&&Bo(t.length)&&!!Dt[hr(t)]},Ko=zi(Ar),Jo=zi((function(t,n){return t<=n}));function Qo(t){if(!t)return[];if(Oo(t))return Go(t)?Yn(t):vi(t);if(kn&&t[kn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[kn]());var n=tu(t);return(n==v?Un:n==b?qn:Ta)(t)}function ta(t){return t?(t=ra(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function na(t){var n=ta(t),e=n%1;return n==n?e?n-e:n:0}function ea(t){return t?Ge(na(t),0,4294967295):0}function ra(t){if("number"==typeof t)return t;if(Xo(t))return NaN;if(Fo(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Fo(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(G,"");var e=ut.test(t);return e||at.test(t)?qt(t.slice(2),e?2:8):it.test(t)?NaN:+t}function ia(t){return _i(t,ba(t))}function ua(t){return null==t?"":Xr(t)}var oa=yi((function(t,n){if(cu(n)||Oo(n))_i(n,ya(n),t);else for(var e in n)At.call(n,e)&&qe(t,e,n[e])})),aa=yi((function(t,n){_i(n,ba(n),t)})),fa=yi((function(t,n,e,r){_i(n,ba(n),t,r)})),ca=yi((function(t,n,e,r){_i(n,ya(n),t,r)})),sa=qi(Ve),la=Lr((function(t,n){t=vt(t);var e=-1,r=n.length,i=r>2?n[2]:void 0;for(i&&uu(n[0],n[1],i)&&(r=1);++e1),n})),_i(t,Yi(t),e),r&&(e=Xe(e,7,Bi));for(var i=n.length;i--;)Kr(e,n[i]);return e})),Ma=qi((function(t,n){return null==t?{}:function(t,n){return jr(t,n,(function(n,e){return pa(t,e)}))}(t,n)}));function Aa(t,n){if(null==t)return{};var e=hn(Yi(t),(function(t){return[t]}));return n=Gi(n),jr(t,e,(function(t,e){return n(t,e[0])}))}var ka=Li(ya),Sa=Li(ba);function Ta(t){return null==t?[]:Nn(t,ya(t))}var Ea=wi((function(t,n,e){return n=n.toLowerCase(),t+(e?Ca(n):n)}));function Ca(t){return Ia(ua(t).toLowerCase())}function Na(t){return(t=ua(t))&&t.replace(ct,Pn).replace(jt,"")}var ja=wi((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),za=wi((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Oa=xi("toLowerCase"),Ra=wi((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Pa=wi((function(t,n,e){return t+(e?" ":"")+Ia(n)})),La=wi((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ia=xi("toUpperCase");function Da(t,n,e){return t=ua(t),void 0===(n=e?void 0:n)?function(t){return Pt.test(t)}(t)?function(t){return t.match(Ot)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(n)||[]}var Ua=Lr((function(t,n){try{return rn(t,void 0,n)}catch(t){return Io(t)?t:new ht(t)}})),Ba=qi((function(t,n){return on(n,(function(n){n=Mu(n),He(t,n,_o(t[n],t))})),t}));function Fa(t){return function(){return t}}var qa=ki(),Wa=ki(!0);function Ya(t){return t}function $a(t){return wr("function"==typeof t?t:Xe(t,1))}var Ha=Lr((function(t,n){return function(e){return gr(e,t,n)}})),Va=Lr((function(t,n){return function(e){return gr(t,e,n)}}));function Ga(t,n,e){var r=ya(n),i=cr(n,r);null!=e||Fo(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=cr(n,ya(n)));var u=!(Fo(e)&&"chain"in e&&!e.chain),o=Do(t);return on(i,(function(e){var r=n[e];t[e]=r,o&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),i=e.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,dn([this.value()],arguments))})})),t}function Xa(){}var Za=Ci(hn),Ka=Ci(fn),Ja=Ci(_n);function Qa(t){return ou(t)?An(Mu(t)):function(t){return function(n){return sr(n,t)}}(t)}var tf=ji(),nf=ji(!0);function ef(){return[]}function rf(){return!1}var uf,of=Ei((function(t,n){return t+n}),0),af=Ri("ceil"),ff=Ei((function(t,n){return t/n}),1),cf=Ri("floor"),sf=Ei((function(t,n){return t*n}),1),lf=Ri("round"),hf=Ei((function(t,n){return t-n}),0);return Te.after=function(t,n){if("function"!=typeof n)throw new yt(u);return t=na(t),function(){if(--t<1)return n.apply(this,arguments)}},Te.ary=po,Te.assign=oa,Te.assignIn=aa,Te.assignInWith=fa,Te.assignWith=ca,Te.at=sa,Te.before=vo,Te.bind=_o,Te.bindAll=Ba,Te.bindKey=go,Te.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return jo(t)?t:[t]},Te.chain=Ju,Te.chunk=function(t,n,e){n=(e?uu(t,n,e):void 0===n)?1:ue(na(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var u=0,o=0,a=r(Jn(i/n));ui?0:i+e),(r=void 0===r||r>i?i:na(r))<0&&(r+=i),r=e>r?0:ea(r);e>>0)?(t=ua(t))&&("string"==typeof n||null!=n&&!Ho(n))&&!(n=Xr(n))&&Dn(t)?ai(Yn(t),0,e):t.split(n,e):[]},Te.spread=function(t,n){if("function"!=typeof t)throw new yt(u);return n=null==n?0:ue(na(n),0),Lr((function(e){var r=e[n],i=ai(e,0,n);return r&&dn(i,r),rn(t,this,i)}))},Te.tail=function(t){var n=null==t?0:t.length;return n?Wr(t,1,n):[]},Te.take=function(t,n,e){return t&&t.length?Wr(t,0,(n=e||void 0===n?1:na(n))<0?0:n):[]},Te.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?Wr(t,(n=r-(n=e||void 0===n?1:na(n)))<0?0:n,r):[]},Te.takeRightWhile=function(t,n){return t&&t.length?Qr(t,Gi(n,3),!1,!0):[]},Te.takeWhile=function(t,n){return t&&t.length?Qr(t,Gi(n,3)):[]},Te.tap=function(t,n){return n(t),t},Te.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new yt(u);return Fo(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),yo(t,n,{leading:r,maxWait:n,trailing:i})},Te.thru=Qu,Te.toArray=Qo,Te.toPairs=ka,Te.toPairsIn=Sa,Te.toPath=function(t){return jo(t)?hn(t,Mu):Xo(t)?[t]:vi(wu(ua(t)))},Te.toPlainObject=ia,Te.transform=function(t,n,e){var r=jo(t),i=r||Po(t)||Zo(t);if(n=Gi(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:Fo(t)&&Do(u)?Ee(Ht(t)):{}}return(i?on:ar)(t,(function(t,r,i){return n(e,t,r,i)})),e},Te.unary=function(t){return po(t,1)},Te.union=Fu,Te.unionBy=qu,Te.unionWith=Wu,Te.uniq=function(t){return t&&t.length?Zr(t):[]},Te.uniqBy=function(t,n){return t&&t.length?Zr(t,Gi(n,2)):[]},Te.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Zr(t,void 0,n):[]},Te.unset=function(t,n){return null==t||Kr(t,n)},Te.unzip=Yu,Te.unzipWith=$u,Te.update=function(t,n,e){return null==t?t:Jr(t,n,ii(e))},Te.updateWith=function(t,n,e,r){return r="function"==typeof r?r:void 0,null==t?t:Jr(t,n,ii(e),r)},Te.values=Ta,Te.valuesIn=function(t){return null==t?[]:Nn(t,ba(t))},Te.without=Hu,Te.words=Da,Te.wrap=function(t,n){return Ao(ii(n),t)},Te.xor=Vu,Te.xorBy=Gu,Te.xorWith=Xu,Te.zip=Zu,Te.zipObject=function(t,n){return ei(t||[],n||[],qe)},Te.zipObjectDeep=function(t,n){return ei(t||[],n||[],Ur)},Te.zipWith=Ku,Te.entries=ka,Te.entriesIn=Sa,Te.extend=aa,Te.extendWith=fa,Ga(Te,Te),Te.add=of,Te.attempt=Ua,Te.camelCase=Ea,Te.capitalize=Ca,Te.ceil=af,Te.clamp=function(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=ra(e))==e?e:0),void 0!==n&&(n=(n=ra(n))==n?n:0),Ge(ra(t),n,e)},Te.clone=function(t){return Xe(t,4)},Te.cloneDeep=function(t){return Xe(t,5)},Te.cloneDeepWith=function(t,n){return Xe(t,5,n="function"==typeof n?n:void 0)},Te.cloneWith=function(t,n){return Xe(t,4,n="function"==typeof n?n:void 0)},Te.conformsTo=function(t,n){return null==n||Ze(t,n,ya(n))},Te.deburr=Na,Te.defaultTo=function(t,n){return null==t||t!=t?n:t},Te.divide=ff,Te.endsWith=function(t,n,e){t=ua(t),n=Xr(n);var r=t.length,i=e=void 0===e?r:Ge(na(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},Te.eq=To,Te.escape=function(t){return(t=ua(t))&&U.test(t)?t.replace(I,Ln):t},Te.escapeRegExp=function(t){return(t=ua(t))&&V.test(t)?t.replace(H,"\\$&"):t},Te.every=function(t,n,e){var r=jo(t)?fn:nr;return e&&uu(t,n,e)&&(n=void 0),r(t,Gi(n,3))},Te.find=eo,Te.findIndex=Cu,Te.findKey=function(t,n){return yn(t,Gi(n,3),ar)},Te.findLast=ro,Te.findLastIndex=Nu,Te.findLastKey=function(t,n){return yn(t,Gi(n,3),fr)},Te.floor=cf,Te.forEach=io,Te.forEachRight=uo,Te.forIn=function(t,n){return null==t?t:ur(t,Gi(n,3),ba)},Te.forInRight=function(t,n){return null==t?t:or(t,Gi(n,3),ba)},Te.forOwn=function(t,n){return t&&ar(t,Gi(n,3))},Te.forOwnRight=function(t,n){return t&&fr(t,Gi(n,3))},Te.get=da,Te.gt=Eo,Te.gte=Co,Te.has=function(t,n){return null!=t&&nu(t,n,pr)},Te.hasIn=pa,Te.head=zu,Te.identity=Ya,Te.includes=function(t,n,e,r){t=Oo(t)?t:Ta(t),e=e&&!r?na(e):0;var i=t.length;return e<0&&(e=ue(i+e,0)),Go(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&mn(t,n,e)>-1},Te.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:na(e);return i<0&&(i=ue(r+i,0)),mn(t,n,i)},Te.inRange=function(t,n,e){return n=ta(n),void 0===e?(e=n,n=0):e=ta(e),function(t,n,e){return t>=oe(n,e)&&t=-9007199254740991&&t<=9007199254740991},Te.isSet=Vo,Te.isString=Go,Te.isSymbol=Xo,Te.isTypedArray=Zo,Te.isUndefined=function(t){return void 0===t},Te.isWeakMap=function(t){return qo(t)&&tu(t)==w},Te.isWeakSet=function(t){return qo(t)&&"[object WeakSet]"==hr(t)},Te.join=function(t,n){return null==t?"":re.call(t,n)},Te.kebabCase=ja,Te.last=Lu,Te.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==e&&(i=(i=na(e))<0?ue(r+i,0):oe(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):bn(t,wn,i,!0)},Te.lowerCase=za,Te.lowerFirst=Oa,Te.lt=Ko,Te.lte=Jo,Te.max=function(t){return t&&t.length?er(t,Ya,dr):void 0},Te.maxBy=function(t,n){return t&&t.length?er(t,Gi(n,2),dr):void 0},Te.mean=function(t){return Mn(t,Ya)},Te.meanBy=function(t,n){return Mn(t,Gi(n,2))},Te.min=function(t){return t&&t.length?er(t,Ya,Ar):void 0},Te.minBy=function(t,n){return t&&t.length?er(t,Gi(n,2),Ar):void 0},Te.stubArray=ef,Te.stubFalse=rf,Te.stubObject=function(){return{}},Te.stubString=function(){return""},Te.stubTrue=function(){return!0},Te.multiply=sf,Te.nth=function(t,n){return t&&t.length?Cr(t,na(n)):void 0},Te.noConflict=function(){return $t._===this&&($t._=Ct),this},Te.noop=Xa,Te.now=ho,Te.pad=function(t,n,e){t=ua(t);var r=(n=na(n))?Wn(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Ni(Qn(i),e)+t+Ni(Jn(i),e)},Te.padEnd=function(t,n,e){t=ua(t);var r=(n=na(n))?Wn(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=ce();return oe(t+i*(n-t+Ft("1e-"+((i+"").length-1))),n)}return Rr(t,n)},Te.reduce=function(t,n,e){var r=jo(t)?pn:Sn,i=arguments.length<3;return r(t,Gi(n,4),e,i,Qe)},Te.reduceRight=function(t,n,e){var r=jo(t)?vn:Sn,i=arguments.length<3;return r(t,Gi(n,4),e,i,tr)},Te.repeat=function(t,n,e){return n=(e?uu(t,n,e):void 0===n)?1:na(n),Pr(ua(t),n)},Te.replace=function(){var t=arguments,n=ua(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Te.result=function(t,n,e){var r=-1,i=(n=ui(n,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var e=4294967295,r=oe(t,4294967295);t-=4294967295;for(var i=En(r,n=Gi(n));++e=u)return t;var a=e-Wn(r);if(a<1)return r;var f=o?ai(o,0,a).join(""):t.slice(0,a);if(void 0===i)return f+r;if(o&&(a+=f.length-a),Ho(i)){if(t.slice(a).search(i)){var c,s=f;for(i.global||(i=_t(i.source,ua(rt.exec(i))+"g")),i.lastIndex=0;c=i.exec(s);)var l=c.index;f=f.slice(0,void 0===l?a:l)}}else if(t.indexOf(Xr(i),a)!=a){var h=f.lastIndexOf(i);h>-1&&(f=f.slice(0,h))}return f+r},Te.unescape=function(t){return(t=ua(t))&&D.test(t)?t.replace(L,$n):t},Te.uniqueId=function(t){var n=++kt;return ua(t)+n},Te.upperCase=La,Te.upperFirst=Ia,Te.each=io,Te.eachRight=uo,Te.first=zu,Ga(Te,(uf={},ar(Te,(function(t,n){At.call(Te.prototype,n)||(uf[n]=t)})),uf),{chain:!1}),Te.VERSION="4.17.15",on(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Te[t].placeholder=Te})),on(["drop","take"],(function(t,n){je.prototype[t]=function(e){e=void 0===e?1:ue(na(e),0);var r=this.__filtered__&&!n?new je(this):this.clone();return r.__filtered__?r.__takeCount__=oe(e,r.__takeCount__):r.__views__.push({size:oe(e,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},je.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),on(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;je.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Gi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),on(["head","last"],(function(t,n){var e="take"+(n?"Right":"");je.prototype[t]=function(){return this[e](1).value()[0]}})),on(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");je.prototype[t]=function(){return this.__filtered__?new je(this):this[e](1)}})),je.prototype.compact=function(){return this.filter(Ya)},je.prototype.find=function(t){return this.filter(t).head()},je.prototype.findLast=function(t){return this.reverse().find(t)},je.prototype.invokeMap=Lr((function(t,n){return"function"==typeof t?new je(this):this.map((function(e){return gr(e,t,n)}))})),je.prototype.reject=function(t){return this.filter(wo(Gi(t)))},je.prototype.slice=function(t,n){t=na(t);var e=this;return e.__filtered__&&(t>0||n<0)?new je(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=na(n))<0?e.dropRight(-n):e.take(n-t)),e)},je.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},je.prototype.toArray=function(){return this.take(4294967295)},ar(je.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=Te[r?"take"+("last"==n?"Right":""):n],u=r||/^find/.test(n);i&&(Te.prototype[n]=function(){var n=this.__wrapped__,o=r?[1]:arguments,a=n instanceof je,f=o[0],c=a||jo(n),s=function(t){var n=i.apply(Te,dn([t],o));return r&&l?n[0]:n};c&&e&&"function"==typeof f&&1!=f.length&&(a=c=!1);var l=this.__chain__,h=!!this.__actions__.length,d=u&&!l,p=a&&!h;if(!u&&c){n=p?n:new je(this);var v=t.apply(n,o);return v.__actions__.push({func:Qu,args:[s],thisArg:void 0}),new Ne(v,l)}return d&&p?t.apply(this,o):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),on(["pop","push","shift","sort","splice","unshift"],(function(t){var n=bt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Te.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(jo(i)?i:[],t)}return this[e]((function(e){return n.apply(jo(e)?e:[],t)}))}})),ar(je.prototype,(function(t,n){var e=Te[n];if(e){var r=e.name+"";At.call(ye,r)||(ye[r]=[]),ye[r].push({name:n,func:e})}})),ye[Si(void 0,2).name]=[{name:"wrapper",func:void 0}],je.prototype.clone=function(){var t=new je(this.__wrapped__);return t.__actions__=vi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=vi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=vi(this.__views__),t},je.prototype.reverse=function(){if(this.__filtered__){var t=new je(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},je.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=jo(t),r=n<0,i=e?t.length:0,u=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Te.prototype.plant=function(t){for(var n,e=this;e instanceof Ce;){var r=ku(e);r.__index__=0,r.__values__=void 0,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},Te.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof je){var n=t;return this.__actions__.length&&(n=new je(this)),(n=n.reverse()).__actions__.push({func:Qu,args:[Bu],thisArg:void 0}),new Ne(n,this.__chain__)}return this.thru(Bu)},Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=function(){return ti(this.__wrapped__,this.__actions__)},Te.prototype.first=Te.prototype.head,kn&&(Te.prototype[kn]=function(){return this}),Te}();$t._=Hn,void 0===(i=function(){return Hn}.call(n,e,n,r))||(r.exports=i)}).call(this)}).call(this,e(5),e(6)(t))},function(t,n,e){var r=e(2),i=e(3);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var u,o=0,a={injectType:"lazyStyleTag",insert:"head",singleton:!1},f={};i.locals&&(f.locals=i.locals),f.use=function(){return o++||(u=r(i,a)),f},f.unuse=function(){o>0&&!--o&&(u(),u=null)},t.exports=f},function(t,n,e){"use strict";var r,i=function(){var t={};return function(n){if(void 0===t[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[n]=e}return t[n]}}(),u=[];function o(t){for(var n=-1,e=0;e0)for(var n=this._chartContainer.append("g").attr("class","legend-row"),e=function(e){if(a.includes(r.seriesTargetsWithBounds,r._series[e].target))return"continue";var i=0;null!==n.selectAll("text").node()&&(i=n.node().getBBox().width+25);var u=!1!==r._series[e].visible;n.append("foreignObject").attr("x",i).attr("y",r.height+r.margin.top+r.margin.bottom-37).attr("width",13).attr("height",13).html("
").on("click",(function(){t._options.eventsCallbacks.onLegendClick(e)})),n.append("text").attr("x",i+20).attr("y",r.height+r.margin.top+r.margin.bottom-25).attr("class","metric-legend-"+e).style("font-size","12px").style("fill",r._options.colors[e]).text(r._series[e].target)},r=this,i=0;i1*t?24*t:this._d3.timeMinute.every(this._options.timeInterval):5},Object.defineProperty(t.prototype,"daysCount",{get:function(){var t=this.serieTimestampRange;return void 0===t?0:t/86400},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serieTimestampRange",{get:function(){if(0!==this._series.length){var t=a.first(this._series[0].datapoints)[1];return(a.last(this._series[0].datapoints)[1]-t)/1e3}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeFormat",{get:function(){return void 0!==this._options.tickFormat&&void 0!==this._options.tickFormat.xAxis?this._d3.timeFormat(this._options.tickFormat.xAxis):function(){return""}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xTickTransform",{get:function(){if(void 0===this._options.tickFormat&&void 0===this._options.tickFormat.xTickOrientation)return"";switch(this._options.tickFormat.xTickOrientation){case r.VERTICAL:return"translate(-10px, 50px) rotate(-90deg)";case r.HORIZONTAL:return"";case r.DIAGONAL:return"translate(-30px, 30px) rotate(-45deg)";default:return""}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraMargin",{get:function(){var t={top:0,right:0,bottom:0,left:0};if(void 0!==this._options.tickFormat.xTickOrientation)switch(this._options.tickFormat.xTickOrientation){case r.VERTICAL:t.bottom+=80;break;case r.HORIZONTAL:break;case r.DIAGONAL:t.left+=15,t.bottom+=50,t.right+=10}return void 0!==this._options.labelFormat&&(void 0!==this._options.labelFormat.xAxis&&this._options.labelFormat.xAxis.length>0&&(t.bottom+=20),void 0!==this._options.labelFormat.yAxis&&this._options.labelFormat.yAxis.length>0&&(t.left+=20)),this._series.length>0&&(t.bottom+=25),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._d3Node.node().clientWidth-this.margin.left-this.margin.right},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._d3Node.node().clientHeight-this.margin.top-this.margin.bottom},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margin",{get:function(){return void 0!==this._options.margin?this._options.margin:a.mergeWith({},f,this.extraMargin,a.add)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minValue",{get:function(){var t=a.min(this._series.filter((function(t){return!1!==t.visible})).map((function(t){return a.minBy(t.datapoints,(function(t){return t[0]}))[0]})));if(void 0!==t)return t-this._options.confidence},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){var t=a.max(this._series.filter((function(t){return!1!==t.visible})).map((function(t){return a.maxBy(t.datapoints,(function(t){return t[0]}))[0]})));if(void 0!==t)return t+this._options.confidence},enumerable:!0,configurable:!0}),t.prototype.formatedBound=function(t,n){return a.replace(t,"$__metric_name",n)},Object.defineProperty(t.prototype,"seriesTargetsWithBounds",{get:function(){var t=this,n=[];return this._series.forEach((function(e){n.push(t.formatedBound(t._options.bounds.upper,e.target)),n.push(t.formatedBound(t._options.bounds.lower,e.target))})),n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleSeries",{get:function(){return this._series.filter((function(t){return!1!==t.visible}))},enumerable:!0,configurable:!0}),t.prototype.isOutOfChart=function(){var t=this._d3.mouse(this._chartContainer.node()),n=t[0],e=t[1];return e>this.height+1||e<-1||n>this.width||n<0},t}()}])},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){"use strict";e.r(n),e.d(n,"ChartwerkLineChart",(function(){return OM}));var r={};e.r(r),e.d(r,"version",(function(){return u})),e.d(r,"bisect",(function(){return l})),e.d(r,"bisectRight",(function(){return c})),e.d(r,"bisectLeft",(function(){return s})),e.d(r,"ascending",(function(){return o})),e.d(r,"bisector",(function(){return a})),e.d(r,"cross",(function(){return p})),e.d(r,"descending",(function(){return v})),e.d(r,"deviation",(function(){return y})),e.d(r,"extent",(function(){return b})),e.d(r,"histogram",(function(){return O})),e.d(r,"thresholdFreedmanDiaconis",(function(){return P})),e.d(r,"thresholdScott",(function(){return L})),e.d(r,"thresholdSturges",(function(){return z})),e.d(r,"max",(function(){return I})),e.d(r,"mean",(function(){return D})),e.d(r,"median",(function(){return U})),e.d(r,"merge",(function(){return B})),e.d(r,"min",(function(){return F})),e.d(r,"pairs",(function(){return h})),e.d(r,"permute",(function(){return q})),e.d(r,"quantile",(function(){return R})),e.d(r,"range",(function(){return k})),e.d(r,"scan",(function(){return W})),e.d(r,"shuffle",(function(){return Y})),e.d(r,"sum",(function(){return $})),e.d(r,"ticks",(function(){return C})),e.d(r,"tickIncrement",(function(){return N})),e.d(r,"tickStep",(function(){return j})),e.d(r,"transpose",(function(){return H})),e.d(r,"variance",(function(){return g})),e.d(r,"zip",(function(){return G})),e.d(r,"axisTop",(function(){return rt})),e.d(r,"axisRight",(function(){return it})),e.d(r,"axisBottom",(function(){return ut})),e.d(r,"axisLeft",(function(){return ot})),e.d(r,"brush",(function(){return Ei})),e.d(r,"brushX",(function(){return Si})),e.d(r,"brushY",(function(){return Ti})),e.d(r,"brushSelection",(function(){return ki})),e.d(r,"chord",(function(){return Ii})),e.d(r,"ribbon",(function(){return Ki})),e.d(r,"nest",(function(){return nu})),e.d(r,"set",(function(){return cu})),e.d(r,"map",(function(){return tu})),e.d(r,"keys",(function(){return su})),e.d(r,"values",(function(){return lu})),e.d(r,"entries",(function(){return hu})),e.d(r,"color",(function(){return Vn})),e.d(r,"rgb",(function(){return Kn})),e.d(r,"hsl",(function(){return ie})),e.d(r,"lab",(function(){return gu})),e.d(r,"hcl",(function(){return ku})),e.d(r,"lch",(function(){return Au})),e.d(r,"gray",(function(){return _u})),e.d(r,"cubehelix",(function(){return Ou})),e.d(r,"contours",(function(){return Wu})),e.d(r,"contourDensity",(function(){return Xu})),e.d(r,"dispatch",(function(){return dt})),e.d(r,"drag",(function(){return eo})),e.d(r,"dragDisable",(function(){return Cn})),e.d(r,"dragEnable",(function(){return Nn})),e.d(r,"dsvFormat",(function(){return co})),e.d(r,"csvParse",(function(){return lo})),e.d(r,"csvParseRows",(function(){return ho})),e.d(r,"csvFormat",(function(){return po})),e.d(r,"csvFormatBody",(function(){return vo})),e.d(r,"csvFormatRows",(function(){return _o})),e.d(r,"csvFormatRow",(function(){return go})),e.d(r,"csvFormatValue",(function(){return yo})),e.d(r,"tsvParse",(function(){return mo})),e.d(r,"tsvParseRows",(function(){return xo})),e.d(r,"tsvFormat",(function(){return wo})),e.d(r,"tsvFormatBody",(function(){return Mo})),e.d(r,"tsvFormatRows",(function(){return Ao})),e.d(r,"tsvFormatRow",(function(){return ko})),e.d(r,"tsvFormatValue",(function(){return So})),e.d(r,"autoType",(function(){return To})),e.d(r,"easeLinear",(function(){return Co})),e.d(r,"easeQuad",(function(){return zo})),e.d(r,"easeQuadIn",(function(){return No})),e.d(r,"easeQuadOut",(function(){return jo})),e.d(r,"easeQuadInOut",(function(){return zo})),e.d(r,"easeCubic",(function(){return Xr})),e.d(r,"easeCubicIn",(function(){return Vr})),e.d(r,"easeCubicOut",(function(){return Gr})),e.d(r,"easeCubicInOut",(function(){return Xr})),e.d(r,"easePoly",(function(){return Po})),e.d(r,"easePolyIn",(function(){return Oo})),e.d(r,"easePolyOut",(function(){return Ro})),e.d(r,"easePolyInOut",(function(){return Po})),e.d(r,"easeSin",(function(){return Bo})),e.d(r,"easeSinIn",(function(){return Do})),e.d(r,"easeSinOut",(function(){return Uo})),e.d(r,"easeSinInOut",(function(){return Bo})),e.d(r,"easeExp",(function(){return Wo})),e.d(r,"easeExpIn",(function(){return Fo})),e.d(r,"easeExpOut",(function(){return qo})),e.d(r,"easeExpInOut",(function(){return Wo})),e.d(r,"easeCircle",(function(){return Ho})),e.d(r,"easeCircleIn",(function(){return Yo})),e.d(r,"easeCircleOut",(function(){return $o})),e.d(r,"easeCircleInOut",(function(){return Ho})),e.d(r,"easeBounce",(function(){return Go})),e.d(r,"easeBounceIn",(function(){return Vo})),e.d(r,"easeBounceOut",(function(){return Go})),e.d(r,"easeBounceInOut",(function(){return Xo})),e.d(r,"easeBack",(function(){return Jo})),e.d(r,"easeBackIn",(function(){return Zo})),e.d(r,"easeBackOut",(function(){return Ko})),e.d(r,"easeBackInOut",(function(){return Jo})),e.d(r,"easeElastic",(function(){return na})),e.d(r,"easeElasticIn",(function(){return ta})),e.d(r,"easeElasticOut",(function(){return na})),e.d(r,"easeElasticInOut",(function(){return ea})),e.d(r,"blob",(function(){return ia})),e.d(r,"buffer",(function(){return oa})),e.d(r,"dsv",(function(){return sa})),e.d(r,"csv",(function(){return la})),e.d(r,"tsv",(function(){return ha})),e.d(r,"image",(function(){return da})),e.d(r,"json",(function(){return va})),e.d(r,"text",(function(){return fa})),e.d(r,"xml",(function(){return ga})),e.d(r,"html",(function(){return ya})),e.d(r,"svg",(function(){return ba})),e.d(r,"forceCenter",(function(){return ma})),e.d(r,"forceCollide",(function(){return Oa})),e.d(r,"forceLink",(function(){return La})),e.d(r,"forceManyBody",(function(){return Fa})),e.d(r,"forceRadial",(function(){return qa})),e.d(r,"forceSimulation",(function(){return Ba})),e.d(r,"forceX",(function(){return Wa})),e.d(r,"forceY",(function(){return Ya})),e.d(r,"formatDefaultLocale",(function(){return af})),e.d(r,"format",(function(){return Ja})),e.d(r,"formatPrefix",(function(){return Qa})),e.d(r,"formatLocale",(function(){return of})),e.d(r,"formatSpecifier",(function(){return Ga})),e.d(r,"FormatSpecifier",(function(){return Xa})),e.d(r,"precisionFixed",(function(){return ff})),e.d(r,"precisionPrefix",(function(){return cf})),e.d(r,"precisionRound",(function(){return sf})),e.d(r,"geoArea",(function(){return nc})),e.d(r,"geoBounds",(function(){return Vc})),e.d(r,"geoCentroid",(function(){return us})),e.d(r,"geoCircle",(function(){return _s})),e.d(r,"geoClipAntimeridian",(function(){return Es})),e.d(r,"geoClipCircle",(function(){return Cs})),e.d(r,"geoClipExtent",(function(){return Rs})),e.d(r,"geoClipRectangle",(function(){return Ns})),e.d(r,"geoContains",(function(){return Js})),e.d(r,"geoDistance",(function(){return Ws})),e.d(r,"geoGraticule",(function(){return nl})),e.d(r,"geoGraticule10",(function(){return el})),e.d(r,"geoInterpolate",(function(){return al})),e.d(r,"geoLength",(function(){return Bs})),e.d(r,"geoPath",(function(){return uh})),e.d(r,"geoAlbers",(function(){return Ah})),e.d(r,"geoAlbersUsa",(function(){return kh})),e.d(r,"geoAzimuthalEqualArea",(function(){return Ch})),e.d(r,"geoAzimuthalEqualAreaRaw",(function(){return Eh})),e.d(r,"geoAzimuthalEquidistant",(function(){return jh})),e.d(r,"geoAzimuthalEquidistantRaw",(function(){return Nh})),e.d(r,"geoConicConformal",(function(){return Ih})),e.d(r,"geoConicConformalRaw",(function(){return Lh})),e.d(r,"geoConicEqualArea",(function(){return Mh})),e.d(r,"geoConicEqualAreaRaw",(function(){return wh})),e.d(r,"geoConicEquidistant",(function(){return Fh})),e.d(r,"geoConicEquidistantRaw",(function(){return Bh})),e.d(r,"geoEqualEarth",(function(){return Gh})),e.d(r,"geoEqualEarthRaw",(function(){return Vh})),e.d(r,"geoEquirectangular",(function(){return Uh})),e.d(r,"geoEquirectangularRaw",(function(){return Dh})),e.d(r,"geoGnomonic",(function(){return Zh})),e.d(r,"geoGnomonicRaw",(function(){return Xh})),e.d(r,"geoIdentity",(function(){return Kh})),e.d(r,"geoProjection",(function(){return bh})),e.d(r,"geoProjectionMutator",(function(){return mh})),e.d(r,"geoMercator",(function(){return Oh})),e.d(r,"geoMercatorRaw",(function(){return zh})),e.d(r,"geoNaturalEarth1",(function(){return Qh})),e.d(r,"geoNaturalEarth1Raw",(function(){return Jh})),e.d(r,"geoOrthographic",(function(){return nd})),e.d(r,"geoOrthographicRaw",(function(){return td})),e.d(r,"geoStereographic",(function(){return rd})),e.d(r,"geoStereographicRaw",(function(){return ed})),e.d(r,"geoTransverseMercator",(function(){return ud})),e.d(r,"geoTransverseMercatorRaw",(function(){return id})),e.d(r,"geoRotation",(function(){return ds})),e.d(r,"geoStream",(function(){return Vf})),e.d(r,"geoTransform",(function(){return oh})),e.d(r,"cluster",(function(){return cd})),e.d(r,"hierarchy",(function(){return ld})),e.d(r,"pack",(function(){return Ld})),e.d(r,"packSiblings",(function(){return Nd})),e.d(r,"packEnclose",(function(){return gd})),e.d(r,"partition",(function(){return qd})),e.d(r,"stratify",(function(){return Vd})),e.d(r,"tree",(function(){return tp})),e.d(r,"treemap",(function(){return up})),e.d(r,"treemapBinary",(function(){return op})),e.d(r,"treemapDice",(function(){return Fd})),e.d(r,"treemapSlice",(function(){return np})),e.d(r,"treemapSliceDice",(function(){return ap})),e.d(r,"treemapSquarify",(function(){return ip})),e.d(r,"treemapResquarify",(function(){return fp})),e.d(r,"interpolate",(function(){return je})),e.d(r,"interpolateArray",(function(){return xe})),e.d(r,"interpolateBasis",(function(){return fe})),e.d(r,"interpolateBasisClosed",(function(){return ce})),e.d(r,"interpolateDate",(function(){return Me})),e.d(r,"interpolateDiscrete",(function(){return cp})),e.d(r,"interpolateHue",(function(){return sp})),e.d(r,"interpolateNumber",(function(){return Ae})),e.d(r,"interpolateNumberArray",(function(){return be})),e.d(r,"interpolateObject",(function(){return ke})),e.d(r,"interpolateRound",(function(){return lp})),e.d(r,"interpolateString",(function(){return Ne})),e.d(r,"interpolateTransformCss",(function(){return pr})),e.d(r,"interpolateTransformSvg",(function(){return vr})),e.d(r,"interpolateZoom",(function(){return pp})),e.d(r,"interpolateRgb",(function(){return ve})),e.d(r,"interpolateRgbBasis",(function(){return ge})),e.d(r,"interpolateRgbBasisClosed",(function(){return ye})),e.d(r,"interpolateHsl",(function(){return _p})),e.d(r,"interpolateHslLong",(function(){return gp})),e.d(r,"interpolateLab",(function(){return yp})),e.d(r,"interpolateHcl",(function(){return mp})),e.d(r,"interpolateHclLong",(function(){return xp})),e.d(r,"interpolateCubehelix",(function(){return Mp})),e.d(r,"interpolateCubehelixLong",(function(){return Ap})),e.d(r,"piecewise",(function(){return kp})),e.d(r,"quantize",(function(){return Sp})),e.d(r,"path",(function(){return $i})),e.d(r,"polygonArea",(function(){return Tp})),e.d(r,"polygonCentroid",(function(){return Ep})),e.d(r,"polygonHull",(function(){return jp})),e.d(r,"polygonContains",(function(){return zp})),e.d(r,"polygonLength",(function(){return Op})),e.d(r,"quadtree",(function(){return Ta})),e.d(r,"randomUniform",(function(){return Pp})),e.d(r,"randomNormal",(function(){return Lp})),e.d(r,"randomLogNormal",(function(){return Ip})),e.d(r,"randomBates",(function(){return Up})),e.d(r,"randomIrwinHall",(function(){return Dp})),e.d(r,"randomExponential",(function(){return Bp})),e.d(r,"scaleBand",(function(){return Gp})),e.d(r,"scalePoint",(function(){return Zp})),e.d(r,"scaleIdentity",(function(){return sv})),e.d(r,"scaleLinear",(function(){return cv})),e.d(r,"scaleLog",(function(){return bv})),e.d(r,"scaleSymlog",(function(){return Mv})),e.d(r,"scaleOrdinal",(function(){return Vp})),e.d(r,"scaleImplicit",(function(){return Hp})),e.d(r,"scalePow",(function(){return Ev})),e.d(r,"scaleSqrt",(function(){return Cv})),e.d(r,"scaleQuantile",(function(){return Nv})),e.d(r,"scaleQuantize",(function(){return jv})),e.d(r,"scaleThreshold",(function(){return zv})),e.d(r,"scaleTime",(function(){return cy})),e.d(r,"scaleUtc",(function(){return by})),e.d(r,"scaleSequential",(function(){return wy})),e.d(r,"scaleSequentialLog",(function(){return My})),e.d(r,"scaleSequentialPow",(function(){return ky})),e.d(r,"scaleSequentialSqrt",(function(){return Sy})),e.d(r,"scaleSequentialSymlog",(function(){return Ay})),e.d(r,"scaleSequentialQuantile",(function(){return Ty})),e.d(r,"scaleDiverging",(function(){return Cy})),e.d(r,"scaleDivergingLog",(function(){return Ny})),e.d(r,"scaleDivergingPow",(function(){return zy})),e.d(r,"scaleDivergingSqrt",(function(){return Oy})),e.d(r,"scaleDivergingSymlog",(function(){return jy})),e.d(r,"tickFormat",(function(){return av})),e.d(r,"schemeCategory10",(function(){return Py})),e.d(r,"schemeAccent",(function(){return Ly})),e.d(r,"schemeDark2",(function(){return Iy})),e.d(r,"schemePaired",(function(){return Dy})),e.d(r,"schemePastel1",(function(){return Uy})),e.d(r,"schemePastel2",(function(){return By})),e.d(r,"schemeSet1",(function(){return Fy})),e.d(r,"schemeSet2",(function(){return qy})),e.d(r,"schemeSet3",(function(){return Wy})),e.d(r,"schemeTableau10",(function(){return Yy})),e.d(r,"interpolateBrBG",(function(){return Vy})),e.d(r,"schemeBrBG",(function(){return Hy})),e.d(r,"interpolatePRGn",(function(){return Xy})),e.d(r,"schemePRGn",(function(){return Gy})),e.d(r,"interpolatePiYG",(function(){return Ky})),e.d(r,"schemePiYG",(function(){return Zy})),e.d(r,"interpolatePuOr",(function(){return Qy})),e.d(r,"schemePuOr",(function(){return Jy})),e.d(r,"interpolateRdBu",(function(){return nb})),e.d(r,"schemeRdBu",(function(){return tb})),e.d(r,"interpolateRdGy",(function(){return rb})),e.d(r,"schemeRdGy",(function(){return eb})),e.d(r,"interpolateRdYlBu",(function(){return ub})),e.d(r,"schemeRdYlBu",(function(){return ib})),e.d(r,"interpolateRdYlGn",(function(){return ab})),e.d(r,"schemeRdYlGn",(function(){return ob})),e.d(r,"interpolateSpectral",(function(){return cb})),e.d(r,"schemeSpectral",(function(){return fb})),e.d(r,"interpolateBuGn",(function(){return lb})),e.d(r,"schemeBuGn",(function(){return sb})),e.d(r,"interpolateBuPu",(function(){return db})),e.d(r,"schemeBuPu",(function(){return hb})),e.d(r,"interpolateGnBu",(function(){return vb})),e.d(r,"schemeGnBu",(function(){return pb})),e.d(r,"interpolateOrRd",(function(){return gb})),e.d(r,"schemeOrRd",(function(){return _b})),e.d(r,"interpolatePuBuGn",(function(){return bb})),e.d(r,"schemePuBuGn",(function(){return yb})),e.d(r,"interpolatePuBu",(function(){return xb})),e.d(r,"schemePuBu",(function(){return mb})),e.d(r,"interpolatePuRd",(function(){return Mb})),e.d(r,"schemePuRd",(function(){return wb})),e.d(r,"interpolateRdPu",(function(){return kb})),e.d(r,"schemeRdPu",(function(){return Ab})),e.d(r,"interpolateYlGnBu",(function(){return Tb})),e.d(r,"schemeYlGnBu",(function(){return Sb})),e.d(r,"interpolateYlGn",(function(){return Cb})),e.d(r,"schemeYlGn",(function(){return Eb})),e.d(r,"interpolateYlOrBr",(function(){return jb})),e.d(r,"schemeYlOrBr",(function(){return Nb})),e.d(r,"interpolateYlOrRd",(function(){return Ob})),e.d(r,"schemeYlOrRd",(function(){return zb})),e.d(r,"interpolateBlues",(function(){return Pb})),e.d(r,"schemeBlues",(function(){return Rb})),e.d(r,"interpolateGreens",(function(){return Ib})),e.d(r,"schemeGreens",(function(){return Lb})),e.d(r,"interpolateGreys",(function(){return Ub})),e.d(r,"schemeGreys",(function(){return Db})),e.d(r,"interpolatePurples",(function(){return Fb})),e.d(r,"schemePurples",(function(){return Bb})),e.d(r,"interpolateReds",(function(){return Wb})),e.d(r,"schemeReds",(function(){return qb})),e.d(r,"interpolateOranges",(function(){return $b})),e.d(r,"schemeOranges",(function(){return Yb})),e.d(r,"interpolateCividis",(function(){return Hb})),e.d(r,"interpolateCubehelixDefault",(function(){return Vb})),e.d(r,"interpolateRainbow",(function(){return Kb})),e.d(r,"interpolateWarm",(function(){return Gb})),e.d(r,"interpolateCool",(function(){return Xb})),e.d(r,"interpolateSinebow",(function(){return nm})),e.d(r,"interpolateTurbo",(function(){return em})),e.d(r,"interpolateViridis",(function(){return im})),e.d(r,"interpolateMagma",(function(){return um})),e.d(r,"interpolateInferno",(function(){return om})),e.d(r,"interpolatePlasma",(function(){return am})),e.d(r,"create",(function(){return fm})),e.d(r,"creator",(function(){return on})),e.d(r,"local",(function(){return sm})),e.d(r,"matcher",(function(){return yt})),e.d(r,"mouse",(function(){return Pe})),e.d(r,"namespace",(function(){return St})),e.d(r,"namespaces",(function(){return kt})),e.d(r,"clientPoint",(function(){return Oe})),e.d(r,"select",(function(){return Sn})),e.d(r,"selectAll",(function(){return hm})),e.d(r,"selection",(function(){return kn})),e.d(r,"selector",(function(){return vt})),e.d(r,"selectorAll",(function(){return gt})),e.d(r,"style",(function(){return It})),e.d(r,"touch",(function(){return Re})),e.d(r,"touches",(function(){return dm})),e.d(r,"window",(function(){return Ot})),e.d(r,"event",(function(){return hn})),e.d(r,"customEvent",(function(){return yn})),e.d(r,"arc",(function(){return Rm})),e.d(r,"area",(function(){return Bm})),e.d(r,"line",(function(){return Um})),e.d(r,"pie",(function(){return Wm})),e.d(r,"areaRadial",(function(){return Xm})),e.d(r,"radialArea",(function(){return Xm})),e.d(r,"lineRadial",(function(){return Gm})),e.d(r,"radialLine",(function(){return Gm})),e.d(r,"pointRadial",(function(){return Zm})),e.d(r,"linkHorizontal",(function(){return ix})),e.d(r,"linkVertical",(function(){return ux})),e.d(r,"linkRadial",(function(){return ox})),e.d(r,"symbol",(function(){return Ax})),e.d(r,"symbols",(function(){return Mx})),e.d(r,"symbolCircle",(function(){return ax})),e.d(r,"symbolCross",(function(){return fx})),e.d(r,"symbolDiamond",(function(){return lx})),e.d(r,"symbolSquare",(function(){return _x})),e.d(r,"symbolStar",(function(){return vx})),e.d(r,"symbolTriangle",(function(){return yx})),e.d(r,"symbolWye",(function(){return wx})),e.d(r,"curveBasisClosed",(function(){return Nx})),e.d(r,"curveBasisOpen",(function(){return zx})),e.d(r,"curveBasis",(function(){return Ex})),e.d(r,"curveBundle",(function(){return Rx})),e.d(r,"curveCardinalClosed",(function(){return Ux})),e.d(r,"curveCardinalOpen",(function(){return Fx})),e.d(r,"curveCardinal",(function(){return Ix})),e.d(r,"curveCatmullRomClosed",(function(){return Hx})),e.d(r,"curveCatmullRomOpen",(function(){return Gx})),e.d(r,"curveCatmullRom",(function(){return Yx})),e.d(r,"curveLinearClosed",(function(){return Zx})),e.d(r,"curveLinear",(function(){return Lm})),e.d(r,"curveMonotoneX",(function(){return iw})),e.d(r,"curveMonotoneY",(function(){return uw})),e.d(r,"curveNatural",(function(){return fw})),e.d(r,"curveStep",(function(){return sw})),e.d(r,"curveStepAfter",(function(){return hw})),e.d(r,"curveStepBefore",(function(){return lw})),e.d(r,"stack",(function(){return _w})),e.d(r,"stackOffsetExpand",(function(){return gw})),e.d(r,"stackOffsetDiverging",(function(){return yw})),e.d(r,"stackOffsetNone",(function(){return dw})),e.d(r,"stackOffsetSilhouette",(function(){return bw})),e.d(r,"stackOffsetWiggle",(function(){return mw})),e.d(r,"stackOrderAppearance",(function(){return xw})),e.d(r,"stackOrderAscending",(function(){return Mw})),e.d(r,"stackOrderDescending",(function(){return kw})),e.d(r,"stackOrderInsideOut",(function(){return Sw})),e.d(r,"stackOrderNone",(function(){return pw})),e.d(r,"stackOrderReverse",(function(){return Tw})),e.d(r,"timeInterval",(function(){return Pv})),e.d(r,"timeMillisecond",(function(){return __})),e.d(r,"timeMilliseconds",(function(){return g_})),e.d(r,"utcMillisecond",(function(){return __})),e.d(r,"utcMilliseconds",(function(){return g_})),e.d(r,"timeSecond",(function(){return d_})),e.d(r,"timeSeconds",(function(){return p_})),e.d(r,"utcSecond",(function(){return d_})),e.d(r,"utcSeconds",(function(){return p_})),e.d(r,"timeMinute",(function(){return s_})),e.d(r,"timeMinutes",(function(){return l_})),e.d(r,"timeHour",(function(){return a_})),e.d(r,"timeHours",(function(){return f_})),e.d(r,"timeDay",(function(){return i_})),e.d(r,"timeDays",(function(){return u_})),e.d(r,"timeWeek",(function(){return Wv})),e.d(r,"timeWeeks",(function(){return Zv})),e.d(r,"timeSunday",(function(){return Wv})),e.d(r,"timeSundays",(function(){return Zv})),e.d(r,"timeMonday",(function(){return Yv})),e.d(r,"timeMondays",(function(){return Kv})),e.d(r,"timeTuesday",(function(){return $v})),e.d(r,"timeTuesdays",(function(){return Jv})),e.d(r,"timeWednesday",(function(){return Hv})),e.d(r,"timeWednesdays",(function(){return Qv})),e.d(r,"timeThursday",(function(){return Vv})),e.d(r,"timeThursdays",(function(){return t_})),e.d(r,"timeFriday",(function(){return Gv})),e.d(r,"timeFridays",(function(){return n_})),e.d(r,"timeSaturday",(function(){return Xv})),e.d(r,"timeSaturdays",(function(){return e_})),e.d(r,"timeMonth",(function(){return Bv})),e.d(r,"timeMonths",(function(){return Fv})),e.d(r,"timeYear",(function(){return Iv})),e.d(r,"timeYears",(function(){return Dv})),e.d(r,"utcMinute",(function(){return gy})),e.d(r,"utcMinutes",(function(){return yy})),e.d(r,"utcHour",(function(){return py})),e.d(r,"utcHours",(function(){return vy})),e.d(r,"utcDay",(function(){return R_})),e.d(r,"utcDays",(function(){return P_})),e.d(r,"utcWeek",(function(){return b_})),e.d(r,"utcWeeks",(function(){return S_})),e.d(r,"utcSunday",(function(){return b_})),e.d(r,"utcSundays",(function(){return S_})),e.d(r,"utcMonday",(function(){return m_})),e.d(r,"utcMondays",(function(){return T_})),e.d(r,"utcTuesday",(function(){return x_})),e.d(r,"utcTuesdays",(function(){return E_})),e.d(r,"utcWednesday",(function(){return w_})),e.d(r,"utcWednesdays",(function(){return C_})),e.d(r,"utcThursday",(function(){return M_})),e.d(r,"utcThursdays",(function(){return N_})),e.d(r,"utcFriday",(function(){return A_})),e.d(r,"utcFridays",(function(){return j_})),e.d(r,"utcSaturday",(function(){return k_})),e.d(r,"utcSaturdays",(function(){return z_})),e.d(r,"utcMonth",(function(){return ly})),e.d(r,"utcMonths",(function(){return hy})),e.d(r,"utcYear",(function(){return I_})),e.d(r,"utcYears",(function(){return D_})),e.d(r,"timeFormatDefaultLocale",(function(){return uy})),e.d(r,"timeFormat",(function(){return Y_})),e.d(r,"timeParse",(function(){return $_})),e.d(r,"utcFormat",(function(){return H_})),e.d(r,"utcParse",(function(){return V_})),e.d(r,"timeFormatLocale",(function(){return q_})),e.d(r,"isoFormat",(function(){return Ew})),e.d(r,"isoParse",(function(){return Cw})),e.d(r,"now",(function(){return Ye})),e.d(r,"timer",(function(){return Ve})),e.d(r,"timerFlush",(function(){return Ge})),e.d(r,"timeout",(function(){return Je})),e.d(r,"interval",(function(){return Nw})),e.d(r,"transition",(function(){return Yr})),e.d(r,"active",(function(){return Qr})),e.d(r,"interrupt",(function(){return cr})),e.d(r,"voronoi",(function(){return vM})),e.d(r,"zoom",(function(){return NM})),e.d(r,"zoomTransform",(function(){return mM})),e.d(r,"zoomIdentity",(function(){return bM}));var i=e(1),u="5.16.0",o=function(t,n){return tn?1:t>=n?0:NaN},a=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return o(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[u],e)>0?i=u:r=u+1}return r}}};var f=a(o),c=f.right,s=f.left,l=c,h=function(t,n){null==n&&(n=d);for(var e=0,r=t.length-1,i=t[0],u=new Array(r<0?0:r);et?1:n>=t?0:NaN},_=function(t){return null===t?NaN:+t},g=function(t,n){var e,r,i=t.length,u=0,o=-1,a=0,f=0;if(null==n)for(;++o1)return f/(u-1)},y=function(t,n){var e=g(t,n);return e?Math.sqrt(e):e},b=function(t,n){var e,r,i,u=t.length,o=-1;if(null==n){for(;++o=e)for(r=i=e;++oe&&(r=e),i=e)for(r=i=e;++oe&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/o),n=Math.floor(n/o),u=new Array(i=Math.ceil(n-t+1));++a=0?(u>=S?10:u>=T?5:u>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=S?10:u>=T?5:u>=E?2:1)}function j(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=S?i*=10:u>=T?i*=5:u>=E&&(i*=2),ns;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:c,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,u=Math.floor(i),o=+e(t[u],u,t);return o+(+e(t[u+1],u+1,t)-o)*(i-u)}},P=function(t,n,e){return t=w.call(t,_).sort(o),Math.ceil((e-n)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))},L=function(t,n,e){return Math.ceil((e-n)/(3.5*y(t)*Math.pow(t.length,-1/3)))},I=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u=e)for(r=e;++ur&&(r=e)}else for(;++u=e)for(r=e;++ur&&(r=e);return r},D=function(t,n){var e,r=t.length,i=r,u=-1,o=0;if(null==n)for(;++u=0;)for(n=(r=t[i]).length;--n>=0;)e[--o]=r[n];return e},F=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u=e)for(r=e;++ue&&(r=e)}else for(;++u=e)for(r=e;++ue&&(r=e);return r},q=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},W=function(t,n){if(e=t.length){var e,r,i=0,u=0,a=t[u];for(null==n&&(n=o);++i=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function lt(t,n){for(var e,r=0,i=t.length;r0)for(var e,r,i=new Array(e),u=0;un?1:t>=n?0:NaN}var At="http://www.w3.org/1999/xhtml",kt={svg:"http://www.w3.org/2000/svg",xhtml:At,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},St=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),kt.hasOwnProperty(n)?{space:kt[n],local:t}:t};function Tt(t){return function(){this.removeAttribute(t)}}function Et(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ct(t,n){return function(){this.setAttribute(t,n)}}function Nt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function jt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function zt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var Ot=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Rt(t){return function(){this.style.removeProperty(t)}}function Pt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Lt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function It(t,n){return t.style.getPropertyValue(n)||Ot(t).getComputedStyle(t,null).getPropertyValue(n)}function Dt(t){return function(){delete this[t]}}function Ut(t,n){return function(){this[t]=n}}function Bt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Ft(t){return t.trim().split(/^|\s+/)}function qt(t){return t.classList||new Wt(t)}function Wt(t){this._node=t,this._names=Ft(t.getAttribute("class")||"")}function Yt(t,n){for(var e=qt(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Xt(){this.textContent=""}function Zt(t){return function(){this.textContent=t}}function Kt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Jt(){this.innerHTML=""}function Qt(t){return function(){this.innerHTML=t}}function tn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function nn(){this.nextSibling&&this.parentNode.appendChild(this)}function en(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rn(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===At&&n.documentElement.namespaceURI===At?n.createElement(t):n.createElementNS(e,t)}}function un(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var on=function(t){var n=St(t);return(n.local?un:rn)(n)};function an(){return null}function fn(){var t=this.parentNode;t&&t.removeChild(this)}function cn(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function sn(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var ln={},hn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ln={mouseenter:"mouseover",mouseleave:"mouseout"}));function dn(t,n,e){return t=pn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function pn(t,n,e){return function(r){var i=hn;hn=r;try{t.call(this,this.__data__,n,e)}finally{hn=i}}}function vn(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function _n(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r=x&&(x=m+1);!(b=g[x])&&++x=0;)(r=i[u])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Mt);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u1?this.each((null==n?Rt:"function"==typeof n?Lt:Pt)(t,n,null==e?"":e)):It(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Dt:"function"==typeof n?Bt:Ut)(t,n)):this.node()[t]},classed:function(t,n){var e=Ft(t+"");if(arguments.length<2){for(var r=qt(this.node()),i=-1,u=e.length;++i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Xn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Xn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Dn.exec(t))?new Jn(n[1],n[2],n[3],1):(n=Un.exec(t))?new Jn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Bn.exec(t))?Xn(n[1],n[2],n[3],n[4]):(n=Fn.exec(t))?Xn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=qn.exec(t))?ee(n[1],n[2]/100,n[3]/100,1):(n=Wn.exec(t))?ee(n[1],n[2]/100,n[3]/100,n[4]):Yn.hasOwnProperty(t)?Gn(Yn[t]):"transparent"===t?new Jn(NaN,NaN,NaN,0):null}function Gn(t){return new Jn(t>>16&255,t>>8&255,255&t,1)}function Xn(t,n,e,r){return r<=0&&(t=n=e=NaN),new Jn(t,n,e,r)}function Zn(t){return t instanceof On||(t=Vn(t)),t?new Jn((t=t.rgb()).r,t.g,t.b,t.opacity):new Jn}function Kn(t,n,e,r){return 1===arguments.length?Zn(t):new Jn(t,n,e,null==r?1:r)}function Jn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Qn(){return"#"+ne(this.r)+ne(this.g)+ne(this.b)}function te(){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+")")}function ne(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ee(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ue(t,n,e,r)}function re(t){if(t instanceof ue)return new ue(t.h,t.s,t.l,t.opacity);if(t instanceof On||(t=Vn(t)),!t)return new ue;if(t instanceof ue)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),u=Math.max(n,e,r),o=NaN,a=u-i,f=(u+i)/2;return a?(o=n===u?(e-r)/a+6*(e0&&f<1?0:o,new ue(o,a,f,t.opacity)}function ie(t,n,e,r){return 1===arguments.length?re(t):new ue(t,n,e,null==r?1:r)}function ue(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function oe(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function ae(t,n,e,r,i){var u=t*t,o=u*t;return((1-3*t+3*u-o)*n+(4-6*u+3*o)*e+(1+3*t+3*u-3*o)*r+o*i)/6}jn(On,Vn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$n,formatHex:$n,formatHsl:function(){return re(this).formatHsl()},formatRgb:Hn,toString:Hn}),jn(Jn,Kn,zn(On,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Jn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Jn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qn,formatHex:Qn,formatRgb:te,toString:te})),jn(ue,ie,zn(On,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Jn(oe(t>=240?t-240:t+120,i,r),oe(t,i,r),oe(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var fe=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],u=t[r+1],o=r>0?t[r-1]:2*i-u,a=r180||e<-180?e-360*Math.round(e/360):e):se(isNaN(t)?n:t)}function de(t){return 1==(t=+t)?pe:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):se(isNaN(n)?e:n)}}function pe(t,n){var e=n-t;return e?le(t,e):se(isNaN(t)?n:t)}var ve=function t(n){var e=de(n);function r(t,n){var r=e((t=Kn(t)).r,(n=Kn(n)).r),i=e(t.g,n.g),u=e(t.b,n.b),o=pe(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=u(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function _e(t){return function(n){var e,r,i=n.length,u=new Array(i),o=new Array(i),a=new Array(i);for(e=0;eu&&(i=n.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,f.push({i:o,x:Ae(e,r)})),u=Te.lastIndex;return u=0&&n._call.call(null,t),n=n._next;--Le}function Xe(){Be=(Ue=qe.now())+Fe,Le=Ie=0;try{Ge()}finally{Le=0,function(){var t,n,e=Ee,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ee=n);Ce=t,Ke(r)}(),Be=0}}function Ze(){var t=qe.now(),n=t-Ue;n>1e3&&(Fe-=n,Ue=t)}function Ke(t){Le||(Ie&&(Ie=clearTimeout(Ie)),t-Be>24?(t<1/0&&(Ie=setTimeout(Xe,t-qe.now()-Fe)),De&&(De=clearInterval(De))):(De||(Ue=qe.now(),De=setInterval(Ze,1e3)),Le=1,We(Xe)))}He.prototype=Ve.prototype={constructor:He,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ye():+e)+(null==n?0:+n),this._next||Ce===this||(Ce?Ce._next=this:Ee=this,Ce=this),this._call=t,this._time=e,Ke()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ke())}};var Je=function(t,n,e){var r=new He;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},Qe=dt("start","end","cancel","interrupt"),tr=[],nr=function(t,n,e,r,i,u){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(f){var c,s,l,h;if(1!==e.state)return a();for(c in i)if((h=i[c]).name===e.name){if(3===h.state)return Je(u);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return e}function rr(t,n){var e=ir(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ir(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var ur,or,ar,fr,cr=function(t,n){var e,r,i,u=t.__transition,o=!0;if(u){for(i in n=null==n?null:n+"",u)(e=u[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete u[i]):o=!1;o&&delete t.__transition}},sr=180/Math.PI,lr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},hr=function(t,n,e,r,i,u){var o,a,f;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(f=t*e+n*r)&&(e-=t*f,r-=n*f),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,f/=a),t*r180?n+=360:n-t>180&&(t+=360),u.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Ae(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(u.rotate,o.rotate,a,f),function(t,n,e,u){t!==n?u.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Ae(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(u.skewX,o.skewX,a,f),function(t,n,e,r,u,o){if(t!==e||n!==r){var a=u.push(i(u)+"scale(",null,",",null,")");o.push({i:a-4,x:Ae(t,e)},{i:a-2,x:Ae(n,r)})}else 1===e&&1===r||u.push(i(u)+"scale("+e+","+r+")")}(u.scaleX,u.scaleY,o.scaleX,o.scaleY,a,f),u=o=null,function(t){for(var n,e=-1,r=f.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?er:rr;return function(){var o=u(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(n,e),o.on=i}}var Lr=kn.prototype.constructor;function Ir(t){return function(){this.style.removeProperty(t)}}function Dr(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ur(t,n,e){var r,i;function u(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&Dr(t,u,e)),r}return u._value=n,u}function Br(t){return function(n){this.textContent=t.call(this,n)}}function Fr(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Br(r)),n}return r._value=t,r}var qr=0;function Wr(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Yr(t){return kn().transition(t)}function $r(){return++qr}var Hr=kn.prototype;function Vr(t){return t*t*t}function Gr(t){return--t*t*t+1}function Xr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Wr.prototype=Yr.prototype={constructor:Wr,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=vt(t));for(var r=this._groups,i=r.length,u=new Array(i),o=0;o1&&e.name===n)return new Wr([[t]],Jr,n,+r);return null},ti=function(t){return function(){return t}},ni=function(t,n,e){this.target=t,this.type=n,this.selection=e};function ei(){hn.stopImmediatePropagation()}var ri=function(){hn.preventDefault(),hn.stopImmediatePropagation()},ii={name:"drag"},ui={name:"space"},oi={name:"handle"},ai={name:"center"};function fi(t){return[+t[0],+t[1]]}function ci(t){return[fi(t[0]),fi(t[1])]}function si(t){return function(n){return Re(n,hn.touches,t)}}var li={name:"x",handles:["w","e"].map(bi),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},hi={name:"y",handles:["n","s"].map(bi),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},di={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(bi),input:function(t){return null==t?null:ci(t)},output:function(t){return t}},pi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},vi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},_i={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},gi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},yi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function bi(t){return{type:t}}function mi(){return!hn.ctrlKey&&!hn.button}function xi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mi(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ai(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function ki(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Si(){return Ci(li)}function Ti(){return Ci(hi)}var Ei=function(){return Ci(di)};function Ci(t){var n,e=xi,r=mi,i=wi,u=!0,o=dt("start","brush","end"),a=6;function f(n){var e=n.property("__brush",v).selectAll(".overlay").data([bi("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pi.overlay).merge(e).each((function(){var t=Mi(this).extent;Sn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([bi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return pi[t.type]})),n.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=Sn(this),n=Mi(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-a/2:n[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-a/2:n[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,n,e){return!e&&t.__brush.emitter||new l(t,n)}function l(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function h(){if((!n||hn.touches)&&r.apply(this,arguments)){var e,i,o,a,f,l,h,d,p,v,_,g=this,y=hn.target.__data__.type,b="selection"===(u&&hn.metaKey?y="overlay":y)?ii:u&&hn.altKey?ai:oi,m=t===hi?null:gi[y],x=t===li?null:yi[y],w=Mi(g),M=w.extent,A=w.selection,k=M[0][0],S=M[0][1],T=M[1][0],E=M[1][1],C=0,N=0,j=m&&x&&u&&hn.shiftKey,z=hn.touches?si(hn.changedTouches[0].identifier):Pe,O=z(g),R=O,P=s(g,arguments,!0).beforestart();"overlay"===y?(A&&(p=!0),w.selection=A=[[e=t===hi?k:O[0],o=t===li?S:O[1]],[f=t===hi?T:e,h=t===li?E:o]]):(e=A[0][0],o=A[0][1],f=A[1][0],h=A[1][1]),i=e,a=o,l=f,d=h;var L=Sn(g).attr("pointer-events","none"),I=L.selectAll(".overlay").attr("cursor",pi[y]);if(hn.touches)P.moved=U,P.ended=F;else{var D=Sn(hn.view).on("mousemove.brush",U,!0).on("mouseup.brush",F,!0);u&&D.on("keydown.brush",q,!0).on("keyup.brush",W,!0),Cn(hn.view)}ei(),cr(g),c.call(g),P.start()}function U(){var t=z(g);!j||v||_||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?_=!0:v=!0),R=t,p=!0,ri(),B()}function B(){var t;switch(C=R[0]-O[0],N=R[1]-O[1],b){case ui:case ii:m&&(C=Math.max(k-e,Math.min(T-f,C)),i=e+C,l=f+C),x&&(N=Math.max(S-o,Math.min(E-h,N)),a=o+N,d=h+N);break;case oi:m<0?(C=Math.max(k-e,Math.min(T-e,C)),i=e+C,l=f):m>0&&(C=Math.max(k-f,Math.min(T-f,C)),i=e,l=f+C),x<0?(N=Math.max(S-o,Math.min(E-o,N)),a=o+N,d=h):x>0&&(N=Math.max(S-h,Math.min(E-h,N)),a=o,d=h+N);break;case ai:m&&(i=Math.max(k,Math.min(T,e-C*m)),l=Math.max(k,Math.min(T,f+C*m))),x&&(a=Math.max(S,Math.min(E,o-N*x)),d=Math.max(S,Math.min(E,h+N*x)))}l0&&(e=i-C),x<0?h=d-N:x>0&&(o=a-N),b=ui,I.attr("cursor",pi.selection),B());break;default:return}ri()}function W(){switch(hn.keyCode){case 16:j&&(v=_=j=!1,B());break;case 18:b===ai&&(m<0?f=l:m>0&&(e=i),x<0?h=d:x>0&&(o=a),b=oi,B());break;case 32:b===ui&&(hn.altKey?(m&&(f=l-C*m,e=i+C*m),x&&(h=d-N*x,o=a+N*x),b=ai):(m<0?f=l:m>0&&(e=i),x<0?h=d:x>0&&(o=a),b=oi),I.attr("cursor",pi[y]),B());break;default:return}ri()}}function d(){s(this,arguments).moved()}function p(){s(this,arguments).ended()}function v(){var n=this.__brush||{selection:null};return n.extent=ci(e.apply(this,arguments)),n.dim=t,n}return f.move=function(n,e){n.selection?n.on("start.brush",(function(){s(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){s(this,arguments).end()})).tween("brush",(function(){var n=this,r=n.__brush,i=s(n,arguments),u=r.selection,o=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),a=je(u,o);function f(t){r.selection=1===t&&null===o?null:a(t),c.call(n),i.brush()}return null!==u&&null!==o?f:f(1)})):n.each((function(){var n=this,r=arguments,i=n.__brush,u=t.input("function"==typeof e?e.apply(n,r):e,i.extent),o=s(n,r).beforestart();cr(n),i.selection=null===u?null:u,c.call(n),o.start().brush().end()}))},f.clear=function(t){f.move(t,null)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){yn(new ni(f,n,t.output(this.state.selection)),o.apply,o,[n,this.that,this.args])}},f.extent=function(t){return arguments.length?(e="function"==typeof t?t:ti(ci(t)),f):e},f.filter=function(t){return arguments.length?(r="function"==typeof t?t:ti(!!t),f):r},f.touchable=function(t){return arguments.length?(i="function"==typeof t?t:ti(!!t),f):i},f.handleSize=function(t){return arguments.length?(a=+t,f):a},f.keyModifiers=function(t){return arguments.length?(u=!!t,f):u},f.on=function(){var t=o.on.apply(o,arguments);return t===o?f:t},f}var Ni=Math.cos,ji=Math.sin,zi=Math.PI,Oi=zi/2,Ri=2*zi,Pi=Math.max;function Li(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}var Ii=function(){var t=0,n=null,e=null,r=null;function i(i){var u,o,a,f,c,s,l=i.length,h=[],d=k(l),p=[],v=[],_=v.groups=new Array(l),g=new Array(l*l);for(u=0,c=-1;++c1e-6)if(Math.abs(s*a-f*c)>1e-6&&i){var h=e-u,d=r-o,p=a*a+f*f,v=h*h+d*d,_=Math.sqrt(p),g=Math.sqrt(l),y=i*Math.tan((Bi-Math.acos((p+l-v)/(2*_*g)))/2),b=y/g,m=y/_;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(n+b*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>c*d)+","+(this._x1=t+m*a)+","+(this._y1=n+m*f)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,u){t=+t,n=+n,u=!!u;var o=(e=+e)*Math.cos(r),a=e*Math.sin(r),f=t+o,c=n+a,s=1^u,l=u?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+f+","+c:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+f+","+c),e&&(l<0&&(l=l%Fi+Fi),l>qi?this._+="A"+e+","+e+",0,1,"+s+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+s+","+(this._x1=f)+","+(this._y1=c):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=Bi)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var $i=Yi;function Hi(t){return t.source}function Vi(t){return t.target}function Gi(t){return t.radius}function Xi(t){return t.startAngle}function Zi(t){return t.endAngle}var Ki=function(){var t=Hi,n=Vi,e=Gi,r=Xi,i=Zi,u=null;function o(){var o,a=Di.call(arguments),f=t.apply(this,a),c=n.apply(this,a),s=+e.apply(this,(a[0]=f,a)),l=r.apply(this,a)-Oi,h=i.apply(this,a)-Oi,d=s*Ni(l),p=s*ji(l),v=+e.apply(this,(a[0]=c,a)),_=r.apply(this,a)-Oi,g=i.apply(this,a)-Oi;if(u||(u=o=$i()),u.moveTo(d,p),u.arc(0,0,s,l,h),l===_&&h===g||(u.quadraticCurveTo(0,0,v*Ni(_),v*ji(_)),u.arc(0,0,v,_,g)),u.quadraticCurveTo(0,0,d,p),u.closePath(),o)return u=null,o+""||null}return o.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ui(+t),o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ui(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ui(+t),o):i},o.source=function(n){return arguments.length?(t=n,o):t},o.target=function(t){return arguments.length?(n=t,o):n},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o};function Ji(){}function Qi(t,n){var e=new Ji;if(t instanceof Ji)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,u=t.length;if(null==n)for(;++i=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var f,c,s,l=-1,h=e.length,d=r[i++],p=tu(),v=o();++lr.length)return e;var o,a=i[u-1];return null!=n&&u>=r.length?o=e.entries():(o=[],e.each((function(n,e){o.push({key:e,values:t(n,u)})}))),null!=a?o.sort((function(t,n){return a(t.key,n.key)})):o}(u(t,0,iu,uu),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function eu(){return{}}function ru(t,n,e){t[n]=e}function iu(){return tu()}function uu(t,n,e){t.set(n,e)}function ou(){}var au=tu.prototype;function fu(t,n){var e=new ou;if(t instanceof ou)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function mu(t){return t>6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}function xu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function wu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Mu(t){if(t instanceof Su)return new Su(t.h,t.c,t.l,t.opacity);if(t instanceof yu||(t=vu(t)),0===t.a&&0===t.b)return new Su(NaN,0r!=d>r&&e<(h-c)*(r-s)/(d-s)+c&&(i=-i)}return i}function Bu(t,n,e){var r,i,u,o;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],u=e[r],o=n[r],i<=u&&u<=o||o<=u&&u<=i)}var Fu=function(){},qu=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],Wu=function(){var t=1,n=1,e=z,r=a;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Lu);else{var r=b(t),i=r[0],o=r[1];n=j(i,o,n),n=k(Math.floor(i/n)*n,Math.floor(o/n)*n,n)}return n.map((function(n){return u(t,n)}))}function u(e,i){var u=[],a=[];return function(e,r,i){var u,a,f,c,s,l,h=new Array,d=new Array;u=a=-1,c=e[0]>=r,qu[c<<1].forEach(p);for(;++u=r,qu[f|c<<1].forEach(p);qu[c<<0].forEach(p);for(;++a=r,s=e[a*t]>=r,qu[c<<1|s<<2].forEach(p);++u=r,l=s,s=e[a*t+u+1]>=r,qu[f|c<<1|s<<2|l<<3].forEach(p);qu[c|s<<3].forEach(p)}u=-1,s=e[a*t]>=r,qu[s<<2].forEach(p);for(;++u=r,qu[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+u,t[0][1]+a],f=[t[1][0]+u,t[1][1]+a],c=o(r),s=o(f);(n=d[c])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(f),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(f),d[n.end=s]=n):(n=h[s])?(e=d[c])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(f),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=c]=n):h[c]=d[s]={start:c,end:s,ring:[r,f]}}qu[s<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?u.push([t]):a.push(t)})),a.forEach((function(t){for(var n,e=0,r=u.length;e0&&o0&&a0&&u>0))throw new Error("invalid size");return t=r,n=u,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Iu(Pu.call(t)):Iu(t),i):e},i.smooth=function(t){return arguments.length?(r=t?a:Fu,i):r===a},i};function Yu(t,n,e){for(var r=t.width,i=t.height,u=1+(e<<1),o=0;o=e&&(a>=u&&(f-=t.data[a-u+o*r]),n.data[a-e+o*r]=f/Math.min(a+1,r-1+u-a,u))}function $u(t,n,e){for(var r=t.width,i=t.height,u=1+(e<<1),o=0;o=e&&(a>=u&&(f-=t.data[o+(a-u)*r]),n.data[o+(a-e)*r]=f/Math.min(a+1,i-1+u-a,u))}function Hu(t){return t[0]}function Vu(t){return t[1]}function Gu(){return 1}var Xu=function(){var t=Hu,n=Vu,e=Gu,r=960,i=500,u=20,o=2,a=3*u,f=r+2*a>>o,c=i+2*a>>o,s=Iu(20);function l(r){var i=new Float32Array(f*c),l=new Float32Array(f*c);r.forEach((function(r,u,s){var l=+t(r,u,s)+a>>o,h=+n(r,u,s)+a>>o,d=+e(r,u,s);l>=0&&l=0&&h>o),$u({width:f,height:c,data:l},{width:f,height:c,data:i},u>>o),Yu({width:f,height:c,data:i},{width:f,height:c,data:l},u>>o),$u({width:f,height:c,data:l},{width:f,height:c,data:i},u>>o),Yu({width:f,height:c,data:i},{width:f,height:c,data:l},u>>o),$u({width:f,height:c,data:l},{width:f,height:c,data:i},u>>o);var d=s(i);if(!Array.isArray(d)){var p=I(i);d=j(0,p,d),(d=k(0,Math.floor(p/d)*d,d)).shift()}return Wu().thresholds(d).size([f,c])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,o)-a,t[1]=t[1]*Math.pow(2,o)-a}function _(){return f=r+2*(a=3*u)>>o,c=i+2*a>>o,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:Iu(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Iu(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:Iu(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return r=n,i=e,_()},l.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),_()},l.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?Iu(Pu.call(t)):Iu(t),l):s},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(u*(u+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return u=Math.round((Math.sqrt(4*t*t+1)-1)/2),_()},l},Zu=function(t){return function(){return t}};function Ku(t,n,e,r,i,u,o,a,f,c){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=u,this.y=o,this.dx=a,this.dy=f,this._=c}function Ju(){return!hn.ctrlKey&&!hn.button}function Qu(){return this.parentNode}function to(t){return null==t?{x:hn.x,y:hn.y}:t}function no(){return navigator.maxTouchPoints||"ontouchstart"in this}Ku.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var eo=function(){var t,n,e,r,i=Ju,u=Qu,o=to,a=no,f={},c=dt("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",_).on("touchmove.drag",g).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=b("mouse",u.apply(this,arguments),Pe,this,arguments);o&&(Sn(hn.view).on("mousemove.drag",p,!0).on("mouseup.drag",v,!0),Cn(hn.view),Tn(),e=!1,t=hn.clientX,n=hn.clientY,o("start"))}}function p(){if(En(),!e){var r=hn.clientX-t,i=hn.clientY-n;e=r*r+i*i>l}f.mouse("drag")}function v(){Sn(hn.view).on("mousemove.drag mouseup.drag",null),Nn(hn.view,e),En(),f.mouse("end")}function _(){if(i.apply(this,arguments)){var t,n,e=hn.changedTouches,r=u.apply(this,arguments),o=e.length;for(t=0;t9999?"+"+ao(n,6):ao(n,4))+"-"+ao(t.getUTCMonth()+1,2)+"-"+ao(t.getUTCDate(),2)+(u?"T"+ao(e,2)+":"+ao(r,2)+":"+ao(i,2)+"."+ao(u,3)+"Z":i?"T"+ao(e,2)+":"+ao(r,2)+":"+ao(i,2)+"Z":r||e?"T"+ao(e,2)+":"+ao(r,2)+"Z":"")}var co=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],u=t.length,o=0,a=0,f=u<=0,c=!1;function s(){if(f)return io;if(c)return c=!1,ro;var n,r,i=o;if(34===t.charCodeAt(i)){for(;o++=u?f=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,n-1).replace(/""/g,'"')}for(;o=(u=(v+g)/2))?v=u:g=u,(s=e>=(o=(_+y)/2))?_=o:y=o,i=d,!(d=d[l=s<<1|c]))return i[l]=p,t;if(a=+t._x.call(null,d.data),f=+t._y.call(null,d.data),n===a&&e===f)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=n>=(u=(v+g)/2))?v=u:g=u,(s=e>=(o=(_+y)/2))?_=o:y=o}while((l=s<<1|c)==(h=(f>=o)<<1|a>=u));return i[h]=d,i[l]=p,t}var Aa=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function ka(t){return t[0]}function Sa(t){return t[1]}function Ta(t,n,e){var r=new Ea(null==n?ka:n,null==e?Sa:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ea(t,n,e,r,i,u){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=u,this._root=void 0}function Ca(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Na=Ta.prototype=Ea.prototype;function ja(t){return t.x+t.vx}function za(t){return t.y+t.vy}Na.copy=function(){var t,n,e=new Ea(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Ca(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Ca(n));return e},Na.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Ma(this.cover(n,e),n,e,t)},Na.addAll=function(t){var n,e,r,i,u=t.length,o=new Array(u),a=new Array(u),f=1/0,c=1/0,s=-1/0,l=-1/0;for(e=0;es&&(s=r),il&&(l=i));if(f>s||c>l)return this;for(this.cover(f,c).cover(s,l),e=0;et||t>=i||r>n||n>=u;)switch(a=(nh||(u=f.y0)>d||(o=f.x1)=g)<<1|t>=_)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=f)}else{var y=t-+this._x.call(null,v.data),b=n-+this._y.call(null,v.data),m=y*y+b*b;if(m=(a=(p+_)/2))?p=a:_=a,(s=o>=(f=(v+g)/2))?v=f:g=f,n=d,!(d=d[l=s<<1|c]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Na.removeAll=function(t){for(var n=0,e=t.length;nf+d||ic+d||ua.index){var p=f-o.x-o.vx,v=c-o.y-o.vy,_=p*p+v*v;_t.r&&(t.r=t[n].r)}function a(){if(n){var r,i,u=n.length;for(e=new Array(u),r=0;r1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,u,o,a,f,c=0,s=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,e),n):c.on(t)}}},Fa=function(){var t,n,e,r,i=xa(-30),u=1,o=1/0,a=.81;function f(r){var i,u=t.length,o=Ta(t,Ia,Da).visitAfter(s);for(e=r,i=0;i=o)){(t.data!==n||t.next)&&(0===s&&(d+=(s=wa())*s),0===l&&(d+=(l=wa())*l),d1?r[0]+r.slice(2):r,+t.slice(e+1)]},Ha=function(t){return(t=$a(Math.abs(t)))?t[1]:NaN},Va=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ga(t){if(!(n=Va.exec(t)))throw new Error("invalid format: "+t);var n;return new Xa({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Xa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Ga.prototype=Xa.prototype,Xa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Za,Ka,Ja,Qa,tf=function(t,n){var e=$a(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},nf={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return tf(100*t,n)},r:tf,s:function(t,n){var e=$a(t,n);if(!e)return t+"";var r=e[0],i=e[1],u=i-(Za=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return u===o?r:u>o?r+new Array(u-o+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+$a(t,Math.max(0,n+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ef=function(t){return t},rf=Array.prototype.map,uf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],of=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?ef:(n=rf.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,u=[],o=0,a=n[0],f=0;i>0&&a>0&&(f+a+1>r&&(a=Math.max(1,r-f)),u.push(t.substring(i-=a,i+a)),!((f+=a+1)>r));)a=n[o=(o+1)%n.length];return u.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?ef:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(rf.call(t.numerals,String)),f=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=Ga(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,_=t.precision,g=t.trim,y=t.type;"n"===y?(v=!0,y="g"):nf[y]||(void 0===_&&(_=12),g=!0,y="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===h?u:/[%p]/.test(y)?f:"",x=nf[y],w=/[defgprs%]/.test(y);function M(t){var i,u,f,h=b,M=m;if("c"===y)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),_),g&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==l&&(A=!1),h=(A?"("===l?l:c:"-"===l||"("===l?"":l)+h,M=("s"===y?uf[8+Za/3]:"")+M+(A&&"("===l?")":""),w)for(i=-1,u=t.length;++i(f=t.charCodeAt(i))||f>57){M=(46===f?o+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var k=h.length+t.length+M.length,S=k>1)+h+t+M+S.slice(k);break;default:t=S+h+t+M}return a(t)}return _=void 0===_?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=Ga(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ha(n)/3))),i=Math.pow(10,-r),u=uf[8+r/3];return function(t){return e(i*t)+u}}}};function af(t){return Ka=of(t),Ja=Ka.format,Qa=Ka.formatPrefix,Ka}af({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var ff=function(t){return Math.max(0,-Ha(Math.abs(t)))},cf=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ha(n)/3)))-Ha(Math.abs(t)))},sf=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ha(n)-Ha(t))+1},lf=function(){return new hf};function hf(){this.reset()}hf.prototype={constructor:hf,reset:function(){this.s=this.t=0},add:function(t){pf(df,t,this.t),pf(this,df.s,this.s),this.s?this.t+=df.t:this.s=df.t},valueOf:function(){return this.s}};var df=new hf;function pf(t,n,e){var r=t.s=n+e,i=r-n,u=r-i;t.t=n-u+(e-i)}var vf=Math.PI,_f=vf/2,gf=vf/4,yf=2*vf,bf=180/vf,mf=vf/180,xf=Math.abs,wf=Math.atan,Mf=Math.atan2,Af=Math.cos,kf=Math.ceil,Sf=Math.exp,Tf=(Math.floor,Math.log),Ef=Math.pow,Cf=Math.sin,Nf=Math.sign||function(t){return t>0?1:t<0?-1:0},jf=Math.sqrt,zf=Math.tan;function Of(t){return t>1?0:t<-1?vf:Math.acos(t)}function Rf(t){return t>1?_f:t<-1?-_f:Math.asin(t)}function Pf(t){return(t=Cf(t/2))*t}function Lf(){}function If(t,n){t&&Uf.hasOwnProperty(t.type)&&Uf[t.type](t,n)}var Df={Feature:function(t,n){If(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,u=Af(n=(n*=mf)/2+gf),o=Cf(n),a=Hf*o,f=$f*u+a*Af(i),c=a*r*Cf(i);Gf.add(Mf(c,f)),Yf=t,$f=u,Hf=o}var nc=function(t){return Xf.reset(),Vf(t,Zf),2*Xf};function ec(t){return[Mf(t[1],t[0]),Rf(t[2])]}function rc(t){var n=t[0],e=t[1],r=Af(e);return[r*Af(n),r*Cf(n),Cf(e)]}function ic(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function uc(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function oc(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function ac(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function fc(t){var n=jf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var cc,sc,lc,hc,dc,pc,vc,_c,gc,yc,bc=lf(),mc={point:xc,lineStart:Mc,lineEnd:Ac,polygonStart:function(){mc.point=kc,mc.lineStart=Sc,mc.lineEnd=Tc,bc.reset(),Zf.polygonStart()},polygonEnd:function(){Zf.polygonEnd(),mc.point=xc,mc.lineStart=Mc,mc.lineEnd=Ac,Gf<0?(cc=-(lc=180),sc=-(hc=90)):bc>1e-6?hc=90:bc<-1e-6&&(sc=-90),yc[0]=cc,yc[1]=lc},sphere:function(){cc=-(lc=180),sc=-(hc=90)}};function xc(t,n){gc.push(yc=[cc=t,lc=t]),nhc&&(hc=n)}function wc(t,n){var e=rc([t*mf,n*mf]);if(_c){var r=uc(_c,e),i=uc([r[1],-r[0],0],r);fc(i),i=ec(i);var u,o=t-dc,a=o>0?1:-1,f=i[0]*bf*a,c=xf(o)>180;c^(a*dchc&&(hc=u):c^(a*dc<(f=(f+360)%360-180)&&fhc&&(hc=n)),c?tEc(cc,lc)&&(lc=t):Ec(t,lc)>Ec(cc,lc)&&(cc=t):lc>=cc?(tlc&&(lc=t)):t>dc?Ec(cc,t)>Ec(cc,lc)&&(lc=t):Ec(t,lc)>Ec(cc,lc)&&(cc=t)}else gc.push(yc=[cc=t,lc=t]);nhc&&(hc=n),_c=e,dc=t}function Mc(){mc.point=wc}function Ac(){yc[0]=cc,yc[1]=lc,mc.point=xc,_c=null}function kc(t,n){if(_c){var e=t-dc;bc.add(xf(e)>180?e+(e>0?360:-360):e)}else pc=t,vc=n;Zf.point(t,n),wc(t,n)}function Sc(){Zf.lineStart()}function Tc(){kc(pc,vc),Zf.lineEnd(),xf(bc)>1e-6&&(cc=-(lc=180)),yc[0]=cc,yc[1]=lc,_c=null}function Ec(t,n){return(n-=t)<0?n+360:n}function Cc(t,n){return t[0]-n[0]}function Nc(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nEc(r[0],r[1])&&(r[1]=i[1]),Ec(i[0],r[1])>Ec(r[0],r[1])&&(r[0]=i[0])):u.push(r=i);for(o=-1/0,n=0,r=u[e=u.length-1];n<=e;r=i,++n)i=u[n],(a=Ec(r[1],i[0]))>o&&(o=a,cc=i[0],lc=r[1])}return gc=yc=null,cc===1/0||sc===1/0?[[NaN,NaN],[NaN,NaN]]:[[cc,sc],[lc,hc]]},Gc={sphere:Lf,point:Xc,lineStart:Kc,lineEnd:ts,polygonStart:function(){Gc.lineStart=ns,Gc.lineEnd=es},polygonEnd:function(){Gc.lineStart=Kc,Gc.lineEnd=ts}};function Xc(t,n){t*=mf;var e=Af(n*=mf);Zc(e*Af(t),e*Cf(t),Cf(n))}function Zc(t,n,e){++jc,Oc+=(t-Oc)/jc,Rc+=(n-Rc)/jc,Pc+=(e-Pc)/jc}function Kc(){Gc.point=Jc}function Jc(t,n){t*=mf;var e=Af(n*=mf);Yc=e*Af(t),$c=e*Cf(t),Hc=Cf(n),Gc.point=Qc,Zc(Yc,$c,Hc)}function Qc(t,n){t*=mf;var e=Af(n*=mf),r=e*Af(t),i=e*Cf(t),u=Cf(n),o=Mf(jf((o=$c*u-Hc*i)*o+(o=Hc*r-Yc*u)*o+(o=Yc*i-$c*r)*o),Yc*r+$c*i+Hc*u);zc+=o,Lc+=o*(Yc+(Yc=r)),Ic+=o*($c+($c=i)),Dc+=o*(Hc+(Hc=u)),Zc(Yc,$c,Hc)}function ts(){Gc.point=Xc}function ns(){Gc.point=rs}function es(){is(qc,Wc),Gc.point=Xc}function rs(t,n){qc=t,Wc=n,t*=mf,n*=mf,Gc.point=is;var e=Af(n);Yc=e*Af(t),$c=e*Cf(t),Hc=Cf(n),Zc(Yc,$c,Hc)}function is(t,n){t*=mf;var e=Af(n*=mf),r=e*Af(t),i=e*Cf(t),u=Cf(n),o=$c*u-Hc*i,a=Hc*r-Yc*u,f=Yc*i-$c*r,c=jf(o*o+a*a+f*f),s=Rf(c),l=c&&-s/c;Uc+=l*o,Bc+=l*a,Fc+=l*f,zc+=s,Lc+=s*(Yc+(Yc=r)),Ic+=s*($c+($c=i)),Dc+=s*(Hc+(Hc=u)),Zc(Yc,$c,Hc)}var us=function(t){jc=zc=Oc=Rc=Pc=Lc=Ic=Dc=Uc=Bc=Fc=0,Vf(t,Gc);var n=Uc,e=Bc,r=Fc,i=n*n+e*e+r*r;return i<1e-12&&(n=Lc,e=Ic,r=Dc,zc<1e-6&&(n=Oc,e=Rc,r=Pc),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[Mf(e,n)*bf,Rf(r/jf(i))*bf]},os=function(t){return function(){return t}},as=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};function fs(t,n){return[xf(t)>vf?t+Math.round(-t/yf)*yf:t,n]}function cs(t,n,e){return(t%=yf)?n||e?as(ls(t),hs(n,e)):ls(t):n||e?hs(n,e):fs}function ss(t){return function(n,e){return[(n+=t)>vf?n-yf:n<-vf?n+yf:n,e]}}function ls(t){var n=ss(t);return n.invert=ss(-t),n}function hs(t,n){var e=Af(t),r=Cf(t),i=Af(n),u=Cf(n);function o(t,n){var o=Af(n),a=Af(t)*o,f=Cf(t)*o,c=Cf(n),s=c*e+a*r;return[Mf(f*i-s*u,a*e-c*r),Rf(s*i+f*u)]}return o.invert=function(t,n){var o=Af(n),a=Af(t)*o,f=Cf(t)*o,c=Cf(n),s=c*i-f*u;return[Mf(f*i+c*u,a*e+s*r),Rf(s*e-a*r)]},o}fs.invert=fs;var ds=function(t){function n(n){return(n=t(n[0]*mf,n[1]*mf))[0]*=bf,n[1]*=bf,n}return t=cs(t[0]*mf,t[1]*mf,t.length>2?t[2]*mf:0),n.invert=function(n){return(n=t.invert(n[0]*mf,n[1]*mf))[0]*=bf,n[1]*=bf,n},n};function ps(t,n,e,r,i,u){if(e){var o=Af(n),a=Cf(n),f=r*e;null==i?(i=n+r*yf,u=n-f/2):(i=vs(o,i),u=vs(o,u),(r>0?iu)&&(i+=r*yf));for(var c,s=i;r>0?s>u:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},ys=function(t,n){return xf(t[0]-n[0])<1e-6&&xf(t[1]-n[1])<1e-6};function bs(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var ms=function(t,n,e,r,i){var u,o,a=[],f=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],o=t[n];if(ys(r,o)){for(i.lineStart(),u=0;u=0;--u)i.point((s=c[u])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function xs(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,k=A*M,S=k>vf,T=v*x;if(ws.add(Mf(T*A*Cf(k),_*w+T*Af(k))),o+=S?M+A*yf:M,S^d>=e^b>=e){var E=uc(rc(h),rc(y));fc(E);var C=uc(u,E);fc(C);var N=(S^M>=0?-1:1)*Rf(C[2]);(r>N||r===N&&(E[0]||E[1]))&&(a+=S^M>=0?1:-1)}}return(o<-1e-6||o<1e-6&&ws<-1e-6)^1&a},ks=function(t,n,e,r){return function(i){var u,o,a,f=n(i),c=gs(),s=n(c),l=!1,h={point:d,lineStart:v,lineEnd:_,polygonStart:function(){h.point=g,h.lineStart=y,h.lineEnd=b,o=[],u=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=_,o=B(o);var t=As(u,r);o.length?(l||(i.polygonStart(),l=!0),ms(o,Ts,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),o=u=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){f.point(t,n)}function v(){h.point=p,f.lineStart()}function _(){h.point=d,f.lineEnd()}function g(t,n){a.push([t,n]),s.point(t,n)}function y(){s.lineStart(),a=[]}function b(){g(a[0][0],a[0][1]),s.lineEnd();var t,n,e,r,f=s.clean(),h=c.result(),d=h.length;if(a.pop(),u.push(a),a=null,d)if(1&f){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&f&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Ss))}return h}};function Ss(t){return t.length>1}function Ts(t,n){return((t=t.x)[0]<0?t[1]-_f-1e-6:_f-t[1])-((n=n.x)[0]<0?n[1]-_f-1e-6:_f-n[1])}var Es=ks((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(u,o){var a=u>0?vf:-vf,f=xf(u-e);xf(f-vf)<1e-6?(t.point(e,r=(r+o)/2>0?_f:-_f),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(u,r),n=0):i!==a&&f>=vf&&(xf(e-i)<1e-6&&(e-=1e-6*i),xf(u-a)<1e-6&&(u-=1e-6*a),r=function(t,n,e,r){var i,u,o=Cf(t-e);return xf(o)>1e-6?wf((Cf(n)*(u=Af(r))*Cf(e)-Cf(r)*(i=Af(n))*Cf(t))/(i*u*o)):(n+r)/2}(e,r,u,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=u,r=o),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*_f,r.point(-vf,i),r.point(0,i),r.point(vf,i),r.point(vf,0),r.point(vf,-i),r.point(0,-i),r.point(-vf,-i),r.point(-vf,0),r.point(-vf,i);else if(xf(t[0]-n[0])>1e-6){var u=t[0]0,i=xf(n)>1e-6;function u(t,e){return Af(t)*Af(e)>n}function o(t,e,r){var i=[1,0,0],u=uc(rc(t),rc(e)),o=ic(u,u),a=u[0],f=o-a*a;if(!f)return!r&&t;var c=n*o/f,s=-n*a/f,l=uc(i,u),h=ac(i,c);oc(h,ac(u,s));var d=l,p=ic(h,d),v=ic(d,d),_=p*p-v*(ic(h,h)-1);if(!(_<0)){var g=jf(_),y=ac(d,(-p-g)/v);if(oc(y,h),y=ec(y),!r)return y;var b,m=t[0],x=e[0],w=t[1],M=e[1];x0^y[1]<(xf(y[0]-m)<1e-6?w:M):w<=y[1]&&y[1]<=M:A>vf^(m<=y[0]&&y[0]<=x)){var S=ac(d,(-p+g)/v);return oc(S,h),[y,ec(S)]}}}function a(n,e){var i=r?t:vf-t,u=0;return n<-i?u|=1:n>i&&(u|=2),e<-i?u|=4:e>i&&(u|=8),u}return ks(u,(function(t){var n,e,f,c,s;return{lineStart:function(){c=f=!1,s=1},point:function(l,h){var d,p=[l,h],v=u(l,h),_=r?v?0:a(l,h):v?a(l+(l<0?vf:-vf),h):0;if(!n&&(c=f=v)&&t.lineStart(),v!==f&&(!(d=o(n,p))||ys(n,d)||ys(p,d))&&(p[0]+=1e-6,p[1]+=1e-6,v=u(p[0],p[1])),v!==f)s=0,v?(t.lineStart(),d=o(p,n),t.point(d[0],d[1])):(d=o(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^v){var g;_&e||!(g=o(p,n,!0))||(s=0,r?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1])))}!v||n&&ys(n,p)||t.point(p[0],p[1]),n=p,f=v,e=_},lineEnd:function(){f&&t.lineEnd(),n=null},clean:function(){return s|(c&&f)<<1}}}),(function(n,r,i,u){ps(u,t,e,i,n,r)}),r?[0,-t]:[-vf,t-vf])};function Ns(t,n,e,r){function i(i,u){return t<=i&&i<=e&&n<=u&&u<=r}function u(i,u,a,c){var s=0,l=0;if(null==i||(s=o(i,a))!==(l=o(u,a))||f(i,u)<0^a>0)do{c.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+a+4)%4)!==l);else c.point(u[0],u[1])}function o(r,i){return xf(r[0]-t)<1e-6?i>0?0:3:xf(r[0]-e)<1e-6?i>0?2:1:xf(r[1]-n)<1e-6?i>0?1:0:i>0?3:2}function a(t,n){return f(t.x,n.x)}function f(t,n){var e=o(t,1),r=o(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(o){var f,c,s,l,h,d,p,v,_,g,y,b=o,m=gs(),x={point:w,lineStart:function(){x.point=M,c&&c.push(s=[]);g=!0,_=!1,p=v=NaN},lineEnd:function(){f&&(M(l,h),d&&_&&m.rejoin(),f.push(m.result()));x.point=w,_&&b.lineEnd()},polygonStart:function(){b=m,f=[],c=[],y=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=c.length;er&&(h-u)*(r-o)>(d-o)*(t-u)&&++n:d<=r&&(h-u)*(r-o)<(d-o)*(t-u)&&--n;return n}(),e=y&&n,i=(f=B(f)).length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),u(null,null,1,o),o.lineEnd()),i&&ms(f,a,n,u,o),o.polygonEnd());b=o,f=c=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(u,o){var a=i(u,o);if(c&&s.push([u,o]),g)l=u,h=o,d=a,g=!1,a&&(b.lineStart(),b.point(u,o));else if(a&&_)b.point(u,o);else{var f=[p=Math.max(-1e9,Math.min(1e9,p)),v=Math.max(-1e9,Math.min(1e9,v))],m=[u=Math.max(-1e9,Math.min(1e9,u)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,n,e,r,i,u){var o,a=t[0],f=t[1],c=0,s=1,l=n[0]-a,h=n[1]-f;if(o=e-a,l||!(o>0)){if(o/=l,l<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=i-a,l||!(o<0)){if(o/=l,l<0){if(o>s)return;o>c&&(c=o)}else if(l>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=u-f,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>c&&(c=o)}else if(h>0){if(o0&&(t[0]=a+c*l,t[1]=f+c*h),s<1&&(n[0]=a+s*l,n[1]=f+s*h),!0}}}}}(f,m,t,n,e,r)?a&&(b.lineStart(),b.point(u,o),y=!1):(_||(b.lineStart(),b.point(f[0],f[1])),b.point(m[0],m[1]),a||b.lineEnd(),y=!1)}p=u,v=o,_=a}return x}}var js,zs,Os,Rs=function(){var t,n,e,r=0,i=0,u=960,o=500;return e={stream:function(e){return t&&n===e?t:t=Ns(r,i,u,o)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],u=+a[1][0],o=+a[1][1],t=n=null,e):[[r,i],[u,o]]}}},Ps=lf(),Ls={sphere:Lf,point:Lf,lineStart:function(){Ls.point=Ds,Ls.lineEnd=Is},lineEnd:Lf,polygonStart:Lf,polygonEnd:Lf};function Is(){Ls.point=Ls.lineEnd=Lf}function Ds(t,n){js=t*=mf,zs=Cf(n*=mf),Os=Af(n),Ls.point=Us}function Us(t,n){t*=mf;var e=Cf(n*=mf),r=Af(n),i=xf(t-js),u=Af(i),o=r*Cf(i),a=Os*e-zs*r*u,f=zs*e+Os*r*u;Ps.add(Mf(jf(o*o+a*a),f)),js=t,zs=e,Os=r}var Bs=function(t){return Ps.reset(),Vf(t,Ls),+Ps},Fs=[null,null],qs={type:"LineString",coordinates:Fs},Ws=function(t,n){return Fs[0]=t,Fs[1]=n,Bs(qs)},Ys={Feature:function(t,n){return Hs(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=Ws(t[u],t[u-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<1e-12*i)return!0;e=r}return!1}function Xs(t,n){return!!As(t.map(Zs),Ks(n))}function Zs(t){return(t=t.map(Ks)).pop(),t}function Ks(t){return[t[0]*mf,t[1]*mf]}var Js=function(t,n){return(t&&Ys.hasOwnProperty(t.type)?Ys[t.type]:Hs)(t,n)};function Qs(t,n,e){var r=k(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function tl(t,n,e){var r=k(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function nl(){var t,n,e,r,i,u,o,a,f,c,s,l,h=10,d=h,p=90,v=360,_=2.5;function g(){return{type:"MultiLineString",coordinates:y()}}function y(){return k(kf(r/p)*p,e,p).map(s).concat(k(kf(a/v)*v,o,v).map(l)).concat(k(kf(n/h)*h,t,h).filter((function(t){return xf(t%p)>1e-6})).map(f)).concat(k(kf(u/d)*d,i,d).filter((function(t){return xf(t%v)>1e-6})).map(c))}return g.lines=function(){return y().map((function(t){return{type:"LineString",coordinates:t}}))},g.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(o).slice(1),s(e).reverse().slice(1),l(a).reverse().slice(1))]}},g.extent=function(t){return arguments.length?g.extentMajor(t).extentMinor(t):g.extentMinor()},g.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),g.precision(_)):[[r,a],[e,o]]},g.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],u=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),u>i&&(e=u,u=i,i=e),g.precision(_)):[[n,u],[t,i]]},g.step=function(t){return arguments.length?g.stepMajor(t).stepMinor(t):g.stepMinor()},g.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],g):[p,v]},g.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],g):[h,d]},g.precision=function(h){return arguments.length?(_=+h,f=Qs(u,i,90),c=tl(n,t,_),s=Qs(a,o,90),l=tl(r,e,_),g):_},g.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function el(){return nl()()}var rl,il,ul,ol,al=function(t,n){var e=t[0]*mf,r=t[1]*mf,i=n[0]*mf,u=n[1]*mf,o=Af(r),a=Cf(r),f=Af(u),c=Cf(u),s=o*Af(e),l=o*Cf(e),h=f*Af(i),d=f*Cf(i),p=2*Rf(jf(Pf(u-r)+o*f*Pf(i-e))),v=Cf(p),_=p?function(t){var n=Cf(t*=p)/v,e=Cf(p-t)/v,r=e*s+n*h,i=e*l+n*d,u=e*a+n*c;return[Mf(i,r)*bf,Mf(u,jf(r*r+i*i))*bf]}:function(){return[e*bf,r*bf]};return _.distance=p,_},fl=function(t){return t},cl=lf(),sl=lf(),ll={point:Lf,lineStart:Lf,lineEnd:Lf,polygonStart:function(){ll.lineStart=hl,ll.lineEnd=vl},polygonEnd:function(){ll.lineStart=ll.lineEnd=ll.point=Lf,cl.add(xf(sl)),sl.reset()},result:function(){var t=cl/2;return cl.reset(),t}};function hl(){ll.point=dl}function dl(t,n){ll.point=pl,rl=ul=t,il=ol=n}function pl(t,n){sl.add(ol*t-ul*n),ul=t,ol=n}function vl(){pl(rl,il)}var _l=ll,gl=1/0,yl=gl,bl=-gl,ml=bl;var xl,wl,Ml,Al,kl={point:function(t,n){tbl&&(bl=t);nml&&(ml=n)},lineStart:Lf,lineEnd:Lf,polygonStart:Lf,polygonEnd:Lf,result:function(){var t=[[gl,yl],[bl,ml]];return bl=ml=-(yl=gl=1/0),t}},Sl=0,Tl=0,El=0,Cl=0,Nl=0,jl=0,zl=0,Ol=0,Rl=0,Pl={point:Ll,lineStart:Il,lineEnd:Bl,polygonStart:function(){Pl.lineStart=Fl,Pl.lineEnd=ql},polygonEnd:function(){Pl.point=Ll,Pl.lineStart=Il,Pl.lineEnd=Bl},result:function(){var t=Rl?[zl/Rl,Ol/Rl]:jl?[Cl/jl,Nl/jl]:El?[Sl/El,Tl/El]:[NaN,NaN];return Sl=Tl=El=Cl=Nl=jl=zl=Ol=Rl=0,t}};function Ll(t,n){Sl+=t,Tl+=n,++El}function Il(){Pl.point=Dl}function Dl(t,n){Pl.point=Ul,Ll(Ml=t,Al=n)}function Ul(t,n){var e=t-Ml,r=n-Al,i=jf(e*e+r*r);Cl+=i*(Ml+t)/2,Nl+=i*(Al+n)/2,jl+=i,Ll(Ml=t,Al=n)}function Bl(){Pl.point=Ll}function Fl(){Pl.point=Wl}function ql(){Yl(xl,wl)}function Wl(t,n){Pl.point=Yl,Ll(xl=Ml=t,wl=Al=n)}function Yl(t,n){var e=t-Ml,r=n-Al,i=jf(e*e+r*r);Cl+=i*(Ml+t)/2,Nl+=i*(Al+n)/2,jl+=i,zl+=(i=Al*t-Ml*n)*(Ml+t),Ol+=i*(Al+n),Rl+=3*i,Ll(Ml=t,Al=n)}var $l=Pl;function Hl(t){this._context=t}Hl.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,yf)}},result:Lf};var Vl,Gl,Xl,Zl,Kl,Jl=lf(),Ql={point:Lf,lineStart:function(){Ql.point=th},lineEnd:function(){Vl&&nh(Gl,Xl),Ql.point=Lf},polygonStart:function(){Vl=!0},polygonEnd:function(){Vl=null},result:function(){var t=+Jl;return Jl.reset(),t}};function th(t,n){Ql.point=nh,Gl=Zl=t,Xl=Kl=n}function nh(t,n){Zl-=t,Kl-=n,Jl.add(jf(Zl*Zl+Kl*Kl)),Zl=t,Kl=n}var eh=Ql;function rh(){this._string=[]}function ih(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}rh.prototype={_radius:4.5,_circle:ih(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=ih(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var uh=function(t,n){var e,r,i=4.5;function u(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Vf(t,e(r))),r.result()}return u.area=function(t){return Vf(t,e(_l)),_l.result()},u.measure=function(t){return Vf(t,e(eh)),eh.result()},u.bounds=function(t){return Vf(t,e(kl)),kl.result()},u.centroid=function(t){return Vf(t,e($l)),$l.result()},u.projection=function(n){return arguments.length?(e=null==n?(t=null,fl):(t=n).stream,u):t},u.context=function(t){return arguments.length?(r=null==t?(n=null,new rh):new Hl(n=t),"function"!=typeof i&&r.pointRadius(i),u):n},u.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),u):i},u.projection(t).context(n)},oh=function(t){return{stream:ah(t)}};function ah(t){return function(n){var e=new fh;for(var r in t)e[r]=t[r];return e.stream=n,e}}function fh(){}function ch(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Vf(e,t.stream(kl)),n(kl.result()),null!=r&&t.clipExtent(r),t}function sh(t,n,e){return ch(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],u=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),o=+n[0][0]+(r-u*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-u*(e[1][1]+e[0][1]))/2;t.scale(150*u).translate([o,a])}),e)}function lh(t,n,e){return sh(t,[[0,0],n],e)}function hh(t,n,e){return ch(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),u=(r-i*(e[1][0]+e[0][0]))/2,o=-i*e[0][1];t.scale(150*i).translate([u,o])}),e)}function dh(t,n,e){return ch(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),u=-i*e[0][0],o=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([u,o])}),e)}fh.prototype={constructor:fh,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ph=Af(30*mf),vh=function(t,n){return+n?function(t,n){function e(r,i,u,o,a,f,c,s,l,h,d,p,v,_){var g=c-r,y=s-i,b=g*g+y*y;if(b>4*n&&v--){var m=o+h,x=a+d,w=f+p,M=jf(m*m+x*x+w*w),A=Rf(w/=M),k=xf(xf(w)-1)<1e-6||xf(u-l)<1e-6?(u+l)/2:Mf(x,m),S=t(k,A),T=S[0],E=S[1],C=T-r,N=E-i,j=y*C-g*N;(j*j/b>n||xf((g*C+y*N)/b-.5)>.3||o*h+a*d+f*p2?t[2]%360*mf:0,C()):[_*bf,g*bf,y*bf]},T.angle=function(t){return arguments.length?(b=t%360*mf,C()):b*bf},T.reflectX=function(t){return arguments.length?(m=t?-1:1,C()):m<0},T.reflectY=function(t){return arguments.length?(x=t?-1:1,C()):x<0},T.precision=function(t){return arguments.length?(o=vh(a,S=t*t),N()):jf(S)},T.fitExtent=function(t,n){return sh(T,t,n)},T.fitSize=function(t,n){return lh(T,t,n)},T.fitWidth=function(t,n){return hh(T,t,n)},T.fitHeight=function(t,n){return dh(T,t,n)},function(){return n=t.apply(this,arguments),T.invert=n.invert&&E,C()}}function xh(t){var n=0,e=vf/3,r=mh(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*mf,e=t[1]*mf):[n*bf,e*bf]},i}function wh(t,n){var e=Cf(t),r=(e+Cf(n))/2;if(xf(r)<1e-6)return function(t){var n=Af(t);function e(t,e){return[t*n,Cf(e)/n]}return e.invert=function(t,e){return[t/n,Rf(e*n)]},e}(t);var i=1+e*(2*r-e),u=jf(i)/r;function o(t,n){var e=jf(i-2*r*Cf(n))/r;return[e*Cf(t*=r),u-e*Af(t)]}return o.invert=function(t,n){var e=u-n,o=Mf(t,xf(e))*Nf(e);return e*r<0&&(o-=vf*Nf(t)*Nf(e)),[o/r,Rf((i-(t*t+e*e)*r*r)/(2*r))]},o}var Mh=function(){return xh(wh).scale(155.424).center([0,33.6442])},Ah=function(){return Mh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var kh=function(){var t,n,e,r,i,u,o=Ah(),a=Mh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=Mh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,n){u=[t,n]}};function s(t){var n=t[0],o=t[1];return u=null,e.point(n,o),u||(r.point(n,o),u)||(i.point(n,o),u)}function l(){return t=n=null,s}return s.invert=function(t){var n=o.scale(),e=o.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:o).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[o.stream(n=e),a.stream(e),f.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<1e-6-_f&&(n=1e-6-_f):n>_f-1e-6&&(n=_f-1e-6);var e=i/Ef(Ph(n),r);return[e*Cf(r*t),i-e*Af(r*t)]}return u.invert=function(t,n){var e=i-n,u=Nf(r)*jf(t*t+e*e),o=Mf(t,xf(e))*Nf(e);return e*r<0&&(o-=vf*Nf(t)*Nf(e)),[o/r,2*wf(Ef(i/u,1/r))-_f]},u}var Ih=function(){return xh(Lh).scale(109.5).parallels([30,30])};function Dh(t,n){return[t,n]}Dh.invert=Dh;var Uh=function(){return bh(Dh).scale(152.63)};function Bh(t,n){var e=Af(t),r=t===n?Cf(t):(e-Af(n))/(n-t),i=e/r+t;if(xf(r)<1e-6)return Dh;function u(t,n){var e=i-n,u=r*t;return[e*Cf(u),i-e*Af(u)]}return u.invert=function(t,n){var e=i-n,u=Mf(t,xf(e))*Nf(e);return e*r<0&&(u-=vf*Nf(t)*Nf(e)),[u/r,i-Nf(r)*jf(t*t+e*e)]},u}var Fh=function(){return xh(Bh).scale(131.154).center([0,13.9389])},qh=1.340264,Wh=-.081106,Yh=893e-6,$h=.003796,Hh=jf(3)/2;function Vh(t,n){var e=Rf(Hh*Cf(n)),r=e*e,i=r*r*r;return[t*Af(e)/(Hh*(qh+3*Wh*r+i*(7*Yh+9*$h*r))),e*(qh+Wh*r+i*(Yh+$h*r))]}Vh.invert=function(t,n){for(var e,r=n,i=r*r,u=i*i*i,o=0;o<12&&(u=(i=(r-=e=(r*(qh+Wh*i+u*(Yh+$h*i))-n)/(qh+3*Wh*i+u*(7*Yh+9*$h*i)))*r)*i*i,!(xf(e)<1e-12));++o);return[Hh*t*(qh+3*Wh*i+u*(7*Yh+9*$h*i))/Af(r),Rf(Cf(r)/Hh)]};var Gh=function(){return bh(Vh).scale(177.158)};function Xh(t,n){var e=Af(n),r=Af(t)*e;return[e*Cf(t)/r,Cf(n)/r]}Xh.invert=Th(wf);var Zh=function(){return bh(Xh).scale(144.049).clipAngle(60)},Kh=function(){var t,n,e,r,i,u,o,a=1,f=0,c=0,s=1,l=1,h=0,d=null,p=1,v=1,_=ah({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),g=fl;function y(){return p=a*s,v=a*l,u=o=null,b}function b(e){var r=e[0]*p,i=e[1]*v;if(h){var u=i*t-r*n;r=r*t+i*n,i=u}return[r+f,i+c]}return b.invert=function(e){var r=e[0]-f,i=e[1]-c;if(h){var u=i*t+r*n;r=r*t-i*n,i=u}return[r/p,i/v]},b.stream=function(t){return u&&o===t?u:u=_(g(o=t))},b.postclip=function(t){return arguments.length?(g=t,d=e=r=i=null,y()):g},b.clipExtent=function(t){return arguments.length?(g=null==t?(d=e=r=i=null,fl):Ns(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),y()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(a=+t,y()):a},b.translate=function(t){return arguments.length?(f=+t[0],c=+t[1],y()):[f,c]},b.angle=function(e){return arguments.length?(n=Cf(h=e%360*mf),t=Af(h),y()):h*bf},b.reflectX=function(t){return arguments.length?(s=t?-1:1,y()):s<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,y()):l<0},b.fitExtent=function(t,n){return sh(b,t,n)},b.fitSize=function(t,n){return lh(b,t,n)},b.fitWidth=function(t,n){return hh(b,t,n)},b.fitHeight=function(t,n){return dh(b,t,n)},b};function Jh(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}Jh.invert=function(t,n){var e,r=n,i=25;do{var u=r*r,o=u*u;r-=e=(r*(1.007226+u*(.015085+o*(.028874*u-.044475-.005916*o)))-n)/(1.007226+u*(.045255+o*(.259866*u-.311325-.005916*11*o)))}while(xf(e)>1e-6&&--i>0);return[t/(.8707+(u=r*r)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),r]};var Qh=function(){return bh(Jh).scale(175.295)};function td(t,n){return[Af(n)*Cf(t),Cf(n)]}td.invert=Th(Rf);var nd=function(){return bh(td).scale(249.5).clipAngle(90.000001)};function ed(t,n){var e=Af(n),r=1+Af(t)*e;return[e*Cf(t)/r,Cf(n)/r]}ed.invert=Th((function(t){return 2*wf(t)}));var rd=function(){return bh(ed).scale(250).clipAngle(142)};function id(t,n){return[Tf(zf((_f+n)/2)),-t]}id.invert=function(t,n){return[-n,2*wf(Sf(t))-_f]};var ud=function(){var t=Rh(id),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function od(t,n){return t.parent===n.parent?1:2}function ad(t,n){return t+n.x}function fd(t,n){return Math.max(t,n.y)}var cd=function(){var t=od,n=1,e=1,r=!1;function i(i){var u,o=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(ad,0)/t.length}(e),n.y=function(t){return 1+t.reduce(fd,0)}(e)):(n.x=u?o+=t(n,u):0,n.y=0,u=n)}));var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),f=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),c=a.x-t(a,f)/2,s=f.x+t(f,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-c)/(s-c)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i};function sd(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function ld(t,n){var e,r,i,u,o,a=new vd(t),f=+t.value&&(a.value=t.value),c=[a];for(null==n&&(n=hd);e=c.pop();)if(f&&(e.value=+e.data.value),(i=n(e.data))&&(o=i.length))for(e.children=new Array(o),u=o-1;u>=0;--u)c.push(r=e.children[u]=new vd(i[u])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(pd)}function hd(t){return t.children}function dd(t){t.data=t.data.data}function pd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function vd(t){this.data=t,this.depth=this.height=0,this.parent=null}vd.prototype=ld.prototype={constructor:vd,count:function(){return this.eachAfter(sd)},each:function(t){var n,e,r,i,u=this,o=[u];do{for(n=o.reverse(),o=[];u=n.pop();)if(t(u),e=u.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return ld(this).eachBefore(dd)}};var _d=Array.prototype.slice;var gd=function(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(_d.call(t))).length,u=[];r0&&e*e>r*r+i*i}function xd(t,n){for(var e=0;e(o*=o)?(r=(c+o-i)/(2*c),u=Math.sqrt(Math.max(0,o/c-r*r)),e.x=t.x-r*a-u*f,e.y=t.y-r*f+u*a):(r=(c+i-o)/(2*c),u=Math.sqrt(Math.max(0,i/c-r*r)),e.x=n.x+r*a-u*f,e.y=n.y+r*f+u*a)):(e.x=n.x+e.r,e.y=n.y)}function Sd(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Td(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,u=(n.y*e.r+e.y*n.r)/r;return i*i+u*u}function Ed(t){this._=t,this.next=null,this.previous=null}function Cd(t){if(!(i=t.length))return 0;var n,e,r,i,u,o,a,f,c,s,l;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;kd(e,n,r=t[2]),n=new Ed(n),e=new Ed(e),r=new Ed(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a0)throw new Error("cycle");return u}return e.id=function(n){return arguments.length?(t=zd(n),e):t},e.parentId=function(t){return arguments.length?(n=zd(t),e):n},e};function Gd(t,n){return t.parent===n.parent?1:2}function Xd(t){var n=t.children;return n?n[0]:t.t}function Zd(t){var n=t.children;return n?n[n.length-1]:t.t}function Kd(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Jd(t,n,e){return t.a.parent===n.parent?t.a:e}function Qd(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}Qd.prototype=Object.create(vd.prototype);var tp=function(){var t=Gd,n=1,e=1,r=null;function i(i){var f=function(t){for(var n,e,r,i,u,o=new Qd(t,0),a=[o];n=a.pop();)if(r=n._.children)for(n.children=new Array(u=r.length),i=u-1;i>=0;--i)a.push(e=n.children[i]=new Qd(r[i],i)),e.parent=n;return(o.parent=new Qd(null,0)).children=[o],o}(i);if(f.eachAfter(u),f.parent.m=-f.z,f.eachBefore(o),r)i.eachBefore(a);else{var c=i,s=i,l=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=c===s?1:t(c,s)/2,d=h-c.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function u(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,u=i.length;--u>=0;)(n=i[u]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var u=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-u):n.z=u}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,u=n,o=n,a=e,f=u.parent.children[0],c=u.m,s=o.m,l=a.m,h=f.m;a=Zd(a),u=Xd(u),a&&u;)f=Xd(f),(o=Zd(o)).a=n,(i=a.z+l-u.z-c+t(a._,u._))>0&&(Kd(Jd(a,n,r),n,i),c+=i,s+=i),l+=a.m,c+=u.m,h+=f.m,s+=o.m;a&&!Zd(o)&&(o.t=a,o.m+=l-s),u&&!Xd(f)&&(f.t=u,f.m+=c-h,r=n)}return r}(n,i,n.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},np=function(t,n,e,r,i){for(var u,o=t.children,a=-1,f=o.length,c=t.value&&(i-e)/t.value;++ah&&(h=a),_=s*s*v,(d=Math.max(h/_,_/l))>p){s-=a;break}p=d}g.push(o={value:s,dice:f1?n:1)},e}(ep),up=function(){var t=ip,n=!1,e=1,r=1,i=[0],u=Od,o=Od,a=Od,f=Od,c=Od;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Bd),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var s=a[n];return s.x0=i,s.y0=u,s.x1=o,void(s.y1=f)}var l=c[n],h=r/2+l,d=n+1,p=e-1;for(;d>>1;c[v]f-u){var y=(i*g+o*_)/r;t(n,d,_,i,u,y,f),t(d,e,g,y,u,o,f)}else{var b=(u*g+f*_)/r;t(n,d,_,i,u,o,b),t(d,e,g,i,b,o,f)}}(0,f,t.value,n,e,r,i)},ap=function(t,n,e,r,i){(1&t.depth?np:Fd)(t,n,e,r,i)},fp=function t(n){function e(t,e,r,i,u){if((o=t._squarify)&&o.ratio===n)for(var o,a,f,c,s,l=-1,h=o.length,d=t.value;++l1?n:1)},e}(ep),cp=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},sp=function(t,n){var e=he(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},lp=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},hp=Math.SQRT2;function dp(t){return((t=Math.exp(t))+1/t)/2}var pp=function(t,n){var e,r,i=t[0],u=t[1],o=t[2],a=n[0],f=n[1],c=n[2],s=a-i,l=f-u,h=s*s+l*l;if(h<1e-12)r=Math.log(c/o)/hp,e=function(t){return[i+t*s,u+t*l,o*Math.exp(hp*t*r)]};else{var d=Math.sqrt(h),p=(c*c-o*o+4*h)/(2*o*2*d),v=(c*c-o*o-4*h)/(2*c*2*d),_=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(v*v+1)-v);r=(g-_)/hp,e=function(t){var n,e=t*r,a=dp(_),f=o/(2*d)*(a*(n=hp*e+_,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[i+f*s,u+f*l,o*a/dp(hp*e+_)]}}return e.duration=1e3*r,e};function vp(t){return function(n,e){var r=t((n=ie(n)).h,(e=ie(e)).h),i=pe(n.s,e.s),u=pe(n.l,e.l),o=pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var _p=vp(he),gp=vp(pe);function yp(t,n){var e=pe((t=gu(t)).l,(n=gu(n)).l),r=pe(t.a,n.a),i=pe(t.b,n.b),u=pe(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=u(n),t+""}}function bp(t){return function(n,e){var r=t((n=ku(n)).h,(e=ku(e)).h),i=pe(n.c,e.c),u=pe(n.l,e.l),o=pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var mp=bp(he),xp=bp(pe);function wp(t){return function n(e){function r(n,r){var i=t((n=Ou(n)).h,(r=Ou(r)).h),u=pe(n.s,r.s),o=pe(n.l,r.l),a=pe(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=u(t),n.l=o(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var Mp=wp(he),Ap=wp(pe);function kp(t,n){for(var e=0,r=n.length-1,i=n[0],u=new Array(r<0?0:r);e1&&(n=t[u[o-2]],e=t[u[o-1]],r=t[a],(e[0]-n[0])*(r[1]-n[1])-(e[1]-n[1])*(r[0]-n[0])<=0);)--o;u[o++]=a}return u.slice(0,o)}var jp=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)c.push(t[r[u[n]][2]]);for(n=+a;na!=c>a&&o<(f-e)*(a-r)/(c-r)+e&&(s=!s),f=e,c=r;return s},Op=function(t){for(var n,e,r=-1,i=t.length,u=t[i-1],o=u[0],a=u[1],f=0;++r1);return t+e*u*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(Rp),Ip=function t(n){function e(){var t=Lp.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(Rp),Dp=function t(n){function e(t){return function(){for(var e=0,r=0;rr&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function ev(t,n,e){var r=t[0],i=t[1],u=n[0],o=n[1];return i2?rv:ev,i=u=null,l}function l(n){return isNaN(n=+n)?e:(i||(i=r(o.map(t),a,f)))(t(c(n)))}return l.invert=function(e){return c(n((u||(u=r(a,o.map(t),Ae)))(e)))},l.domain=function(t){return arguments.length?(o=Yp.call(t,Kp),c===Qp||(c=nv(o)),s()):o.slice()},l.range=function(t){return arguments.length?(a=$p.call(t),s()):a.slice()},l.rangeRound=function(t){return a=$p.call(t),f=lp,s()},l.clamp=function(t){return arguments.length?(c=t?nv(o):Qp,l):c!==Qp},l.interpolate=function(t){return arguments.length?(f=t,s()):f},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function ov(t,n){return uv()(t,n)}var av=function(t,n,e,r){var i,u=j(t,n,e);switch((r=Ga(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=cf(u,o))||(r.precision=i),Qa(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=sf(u,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=ff(u))||(r.precision=i-2*("%"===r.type))}return Ja(r)};function fv(t){var n=t.domain;return t.ticks=function(t){var e=n();return C(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return av(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),u=0,o=i.length-1,a=i[u],f=i[o];return f0?r=N(a=Math.floor(a/r)*r,f=Math.ceil(f/r)*r,e):r<0&&(r=N(a=Math.ceil(a*r)/r,f=Math.floor(f*r)/r,e)),r>0?(i[u]=Math.floor(a/r)*r,i[o]=Math.ceil(f/r)*r,n(i)):r<0&&(i[u]=Math.ceil(a*r)/r,i[o]=Math.floor(f*r)/r,n(i)),t},t}function cv(){var t=ov(Qp,Qp);return t.copy=function(){return iv(t,cv())},Fp.apply(t,arguments),fv(t)}function sv(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Yp.call(n,Kp),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return sv(t).unknown(n)},t=arguments.length?Yp.call(t,Kp):[0,1],fv(e)}var lv=function(t,n){var e,r=0,i=(t=t.slice()).length-1,u=t[r],o=t[i];return o0){for(;hf)break;v.push(l)}}else for(;h=1;--s)if(!((l=c*s)f)break;v.push(l)}}else v=C(h,d,Math.min(d-h,p)).map(e);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===u?".0e":","),"function"!=typeof i&&(i=Ja(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,u*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*u0?r[i-1]:n[0],i=r?[i[r-1],e]:[i[o-1],i[o]]},o.unknown=function(n){return arguments.length?(t=n,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return jv().domain([n,e]).range(u).unknown(t)},Fp.apply(fv(o),arguments)}function zv(){var t,n=[.5],e=[0,1],r=1;function i(i){return i<=i?e[l(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=$p.call(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=$p.call(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return zv().domain(n).range(e).unknown(t)},Fp.apply(i,arguments)}var Ov=new Date,Rv=new Date;function Pv(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return a;do{a.push(o=new Date(+e)),n(e,u),t(e)}while(o=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return Ov.setTime(+n),Rv.setTime(+r),t(Ov),t(Rv),Math.floor(e(Ov,Rv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Lv=Pv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Lv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pv((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var Iv=Lv,Dv=Lv.range,Uv=Pv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Bv=Uv,Fv=Uv.range;function qv(t){return Pv((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var Wv=qv(0),Yv=qv(1),$v=qv(2),Hv=qv(3),Vv=qv(4),Gv=qv(5),Xv=qv(6),Zv=Wv.range,Kv=Yv.range,Jv=$v.range,Qv=Hv.range,t_=Vv.range,n_=Gv.range,e_=Xv.range,r_=Pv((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),i_=r_,u_=r_.range,o_=Pv((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),a_=o_,f_=o_.range,c_=Pv((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getMinutes()})),s_=c_,l_=c_.range,h_=Pv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),d_=h_,p_=h_.range,v_=Pv((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));v_.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Pv((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):v_:null};var __=v_,g_=v_.range;function y_(t){return Pv((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/6048e5}))}var b_=y_(0),m_=y_(1),x_=y_(2),w_=y_(3),M_=y_(4),A_=y_(5),k_=y_(6),S_=b_.range,T_=m_.range,E_=x_.range,C_=w_.range,N_=M_.range,j_=A_.range,z_=k_.range,O_=Pv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1})),R_=O_,P_=O_.range,L_=Pv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));L_.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pv((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var I_=L_,D_=L_.range;function U_(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function B_(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function F_(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function q_(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,u=t.days,o=t.shortDays,a=t.months,f=t.shortMonths,c=tg(i),s=ng(i),l=tg(u),h=ng(u),d=tg(o),p=ng(o),v=tg(a),_=ng(a),g=tg(f),y=ng(f),b={a:function(t){return o[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return f[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:wg,e:wg,f:Tg,H:Mg,I:Ag,j:kg,L:Sg,m:Eg,M:Cg,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ry,s:iy,S:Ng,u:jg,U:zg,V:Og,w:Rg,W:Pg,x:null,X:null,y:Lg,Y:Ig,Z:Dg,"%":ey},m={a:function(t){return o[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Ug,e:Ug,f:Yg,H:Bg,I:Fg,j:qg,L:Wg,m:$g,M:Hg,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ry,s:iy,S:Vg,u:Gg,U:Xg,V:Zg,w:Kg,W:Jg,x:null,X:null,y:Qg,Y:ty,Z:ny,"%":ey},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=_[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:hg,e:hg,f:yg,H:pg,I:pg,j:dg,L:gg,m:lg,M:vg,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},q:sg,Q:mg,s:xg,S:_g,u:rg,U:ig,V:ug,w:eg,W:og,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:fg,Y:ag,Z:cg,"%":bg};function w(t,n){return function(e){var r,i,u,o=[],a=-1,f=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++a53)return null;"w"in u||(u.w=1),"Z"in u?(i=(r=B_(F_(u.y,0,1))).getUTCDay(),r=i>4||0===i?m_.ceil(r):m_(r),r=R_.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(i=(r=U_(F_(u.y,0,1))).getDay(),r=i>4||0===i?Yv.ceil(r):Yv(r),r=i_.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),i="Z"in u?B_(F_(u.y,0,1)).getUTCDay():U_(F_(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(i+5)%7:u.w+7*u.U-(i+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,B_(u)):U_(u)}}function A(t,n,e,r){for(var i,u,o=0,a=n.length,f=e.length;o=f)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(u=x[i in G_?n.charAt(o++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var W_,Y_,$_,H_,V_,G_={"-":"",_:" ",0:"0"},X_=/^\s*\d+/,Z_=/^%/,K_=/[\\^$*+?|[\]().{}]/g;function J_(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",u=i.length;return r+(u68?1900:2e3),e+r[0].length):-1}function cg(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function sg(t,n,e){var r=X_.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function lg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function hg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function dg(t,n,e){var r=X_.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function pg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function vg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function _g(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function gg(t,n,e){var r=X_.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function yg(t,n,e){var r=X_.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function bg(t,n,e){var r=Z_.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function mg(t,n,e){var r=X_.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function xg(t,n,e){var r=X_.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function wg(t,n){return J_(t.getDate(),n,2)}function Mg(t,n){return J_(t.getHours(),n,2)}function Ag(t,n){return J_(t.getHours()%12||12,n,2)}function kg(t,n){return J_(1+i_.count(Iv(t),t),n,3)}function Sg(t,n){return J_(t.getMilliseconds(),n,3)}function Tg(t,n){return Sg(t,n)+"000"}function Eg(t,n){return J_(t.getMonth()+1,n,2)}function Cg(t,n){return J_(t.getMinutes(),n,2)}function Ng(t,n){return J_(t.getSeconds(),n,2)}function jg(t){var n=t.getDay();return 0===n?7:n}function zg(t,n){return J_(Wv.count(Iv(t)-1,t),n,2)}function Og(t,n){var e=t.getDay();return t=e>=4||0===e?Vv(t):Vv.ceil(t),J_(Vv.count(Iv(t),t)+(4===Iv(t).getDay()),n,2)}function Rg(t){return t.getDay()}function Pg(t,n){return J_(Yv.count(Iv(t)-1,t),n,2)}function Lg(t,n){return J_(t.getFullYear()%100,n,2)}function Ig(t,n){return J_(t.getFullYear()%1e4,n,4)}function Dg(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+J_(n/60|0,"0",2)+J_(n%60,"0",2)}function Ug(t,n){return J_(t.getUTCDate(),n,2)}function Bg(t,n){return J_(t.getUTCHours(),n,2)}function Fg(t,n){return J_(t.getUTCHours()%12||12,n,2)}function qg(t,n){return J_(1+R_.count(I_(t),t),n,3)}function Wg(t,n){return J_(t.getUTCMilliseconds(),n,3)}function Yg(t,n){return Wg(t,n)+"000"}function $g(t,n){return J_(t.getUTCMonth()+1,n,2)}function Hg(t,n){return J_(t.getUTCMinutes(),n,2)}function Vg(t,n){return J_(t.getUTCSeconds(),n,2)}function Gg(t){var n=t.getUTCDay();return 0===n?7:n}function Xg(t,n){return J_(b_.count(I_(t)-1,t),n,2)}function Zg(t,n){var e=t.getUTCDay();return t=e>=4||0===e?M_(t):M_.ceil(t),J_(M_.count(I_(t),t)+(4===I_(t).getUTCDay()),n,2)}function Kg(t){return t.getUTCDay()}function Jg(t,n){return J_(m_.count(I_(t)-1,t),n,2)}function Qg(t,n){return J_(t.getUTCFullYear()%100,n,2)}function ty(t,n){return J_(t.getUTCFullYear()%1e4,n,4)}function ny(){return"+0000"}function ey(){return"%"}function ry(t){return+t}function iy(t){return Math.floor(+t/1e3)}function uy(t){return W_=q_(t),Y_=W_.format,$_=W_.parse,H_=W_.utcFormat,V_=W_.utcParse,W_}uy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function oy(t){return new Date(t)}function ay(t){return t instanceof Date?+t:+new Date(+t)}function fy(t,n,e,r,i,u,o,f,c){var s=ov(Qp,Qp),l=s.invert,h=s.domain,d=c(".%L"),p=c(":%S"),v=c("%I:%M"),_=c("%I %p"),g=c("%a %d"),y=c("%b %d"),b=c("%B"),m=c("%Y"),x=[[o,1,1e3],[o,5,5e3],[o,15,15e3],[o,30,3e4],[u,1,6e4],[u,5,3e5],[u,15,9e5],[u,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[e,1,6048e5],[n,1,2592e6],[n,3,7776e6],[t,1,31536e6]];function w(a){return(o(a)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Zb.h=360*t-100,Zb.s=1.5-1.5*n,Zb.l=.8-.9*n,Zb+""},Jb=Kn(),Qb=Math.PI/3,tm=2*Math.PI/3,nm=function(t){var n;return t=(.5-t)*Math.PI,Jb.r=255*(n=Math.sin(t))*n,Jb.g=255*(n=Math.sin(t+Qb))*n,Jb.b=255*(n=Math.sin(t+tm))*n,Jb+""},em=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function rm(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var im=rm(Ry("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),um=rm(Ry("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),om=rm(Ry("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),am=rm(Ry("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),fm=function(t){return Sn(on(t).call(document.documentElement))},cm=0;function sm(){return new lm}function lm(){this._="@"+(++cm).toString(36)}lm.prototype=sm.prototype={constructor:lm,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var hm=function(t){return"string"==typeof t?new Mn([document.querySelectorAll(t)],[document.documentElement]):new Mn([null==t?[]:t],wn)},dm=function(t,n){null==n&&(n=ze().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e1?0:t<-1?wm:Math.acos(t)}function Sm(t){return t>=1?Mm:t<=-1?-Mm:Math.asin(t)}function Tm(t){return t.innerRadius}function Em(t){return t.outerRadius}function Cm(t){return t.startAngle}function Nm(t){return t.endAngle}function jm(t){return t&&t.padAngle}function zm(t,n,e,r,i,u,o,a){var f=e-t,c=r-n,s=o-i,l=a-u,h=l*f-s*c;if(!(h*h<1e-12))return[t+(h=(s*(n-u)-l*(t-i))/h)*f,n+h*c]}function Om(t,n,e,r,i,u,o){var a=t-e,f=n-r,c=(o?u:-u)/xm(a*a+f*f),s=c*f,l=-c*a,h=t+s,d=n+l,p=e+s,v=r+l,_=(h+p)/2,g=(d+v)/2,y=p-h,b=v-d,m=y*y+b*b,x=i-u,w=h*v-p*d,M=(b<0?-1:1)*xm(ym(0,x*x*m-w*w)),A=(w*b-y*M)/m,k=(-w*y-b*M)/m,S=(w*b+y*M)/m,T=(-w*y+b*M)/m,E=A-_,C=k-g,N=S-_,j=T-g;return E*E+C*C>N*N+j*j&&(A=S,k=T),{cx:A,cy:k,x01:-s,y01:-l,x11:A*(i/x-1),y11:k*(i/x-1)}}var Rm=function(){var t=Tm,n=Em,e=pm(0),r=null,i=Cm,u=Nm,o=jm,a=null;function f(){var f,c,s=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-Mm,d=u.apply(this,arguments)-Mm,p=vm(d-h),v=d>h;if(a||(a=f=$i()),l1e-12)if(p>Am-1e-12)a.moveTo(l*gm(h),l*mm(h)),a.arc(0,0,l,h,d,!v),s>1e-12&&(a.moveTo(s*gm(d),s*mm(d)),a.arc(0,0,s,d,h,v));else{var _,g,y=h,b=d,m=h,x=d,w=p,M=p,A=o.apply(this,arguments)/2,k=A>1e-12&&(r?+r.apply(this,arguments):xm(s*s+l*l)),S=bm(vm(l-s)/2,+e.apply(this,arguments)),T=S,E=S;if(k>1e-12){var C=Sm(k/s*mm(A)),N=Sm(k/l*mm(A));(w-=2*C)>1e-12?(m+=C*=v?1:-1,x-=C):(w=0,m=x=(h+d)/2),(M-=2*N)>1e-12?(y+=N*=v?1:-1,b-=N):(M=0,y=b=(h+d)/2)}var j=l*gm(y),z=l*mm(y),O=s*gm(x),R=s*mm(x);if(S>1e-12){var P,L=l*gm(b),I=l*mm(b),D=s*gm(m),U=s*mm(m);if(p1e-12?E>1e-12?(_=Om(D,U,j,z,l,E,v),g=Om(L,I,O,R,l,E,v),a.moveTo(_.cx+_.x01,_.cy+_.y01),E1e-12&&w>1e-12?T>1e-12?(_=Om(O,R,L,I,s,-T,v),g=Om(j,z,D,U,s,-T,v),a.lineTo(_.cx+_.x01,_.cy+_.y01),T=s;--l)a.point(_[l],g[l]);a.lineEnd(),a.areaEnd()}v&&(_[c]=+t(h,c,f),g[c]=+e(h,c,f),a.point(n?+n(h,c,f):_[c],r?+r(h,c,f):g[c]))}if(d)return a=null,d+""||null}function c(){return Um().defined(i).curve(o).context(u)}return f.x=function(e){return arguments.length?(t="function"==typeof e?e:pm(+e),n=null,f):t},f.x0=function(n){return arguments.length?(t="function"==typeof n?n:pm(+n),f):t},f.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:pm(+t),f):n},f.y=function(t){return arguments.length?(e="function"==typeof t?t:pm(+t),r=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:pm(+t),f):e},f.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:pm(+t),f):r},f.lineX0=f.lineY0=function(){return c().x(t).y(e)},f.lineY1=function(){return c().x(t).y(r)},f.lineX1=function(){return c().x(n).y(e)},f.defined=function(t){return arguments.length?(i="function"==typeof t?t:pm(!!t),f):i},f.curve=function(t){return arguments.length?(o=t,null!=u&&(a=o(u)),f):o},f.context=function(t){return arguments.length?(null==t?u=a=null:a=o(u=t),f):u},f},Fm=function(t,n){return nt?1:n>=t?0:NaN},qm=function(t){return t},Wm=function(){var t=qm,n=Fm,e=null,r=pm(0),i=pm(Am),u=pm(0);function o(o){var a,f,c,s,l,h=o.length,d=0,p=new Array(h),v=new Array(h),_=+r.apply(this,arguments),g=Math.min(Am,Math.max(-Am,i.apply(this,arguments)-_)),y=Math.min(Math.abs(g)/h,u.apply(this,arguments)),b=y*(g<0?-1:1);for(a=0;a0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(v[t],v[e])})):null!=e&&p.sort((function(t,n){return e(o[t],o[n])})),a=0,c=d?(g-h*b)/d:0;a0?l*c:0)+b,v[f]={data:o[f],index:a,value:l,startAngle:_,endAngle:s,padAngle:y};return v}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:pm(+n),o):t},o.sortValues=function(t){return arguments.length?(n=t,e=null,o):n},o.sort=function(t){return arguments.length?(e=t,n=null,o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:pm(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:pm(+t),o):i},o.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:pm(+t),o):u},o},Ym=Hm(Lm);function $m(t){this._curve=t}function Hm(t){function n(n){return new $m(t(n))}return n._curve=t,n}function Vm(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Hm(t)):n()._curve},t}$m.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Gm=function(){return Vm(Um().curve(Ym))},Xm=function(){var t=Bm().curve(Ym),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,u=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Vm(e())},delete t.lineX0,t.lineEndAngle=function(){return Vm(r())},delete t.lineX1,t.lineInnerRadius=function(){return Vm(i())},delete t.lineY0,t.lineOuterRadius=function(){return Vm(u())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Hm(t)):n()._curve},t},Zm=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},Km=Array.prototype.slice;function Jm(t){return t.source}function Qm(t){return t.target}function tx(t){var n=Jm,e=Qm,r=Im,i=Dm,u=null;function o(){var o,a=Km.call(arguments),f=n.apply(this,a),c=e.apply(this,a);if(u||(u=o=$i()),t(u,+r.apply(this,(a[0]=f,a)),+i.apply(this,a),+r.apply(this,(a[0]=c,a)),+i.apply(this,a)),o)return u=null,o+""||null}return o.source=function(t){return arguments.length?(n=t,o):n},o.target=function(t){return arguments.length?(e=t,o):e},o.x=function(t){return arguments.length?(r="function"==typeof t?t:pm(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:pm(+t),o):i},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o}function nx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function ex(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function rx(t,n,e,r,i){var u=Zm(n,e),o=Zm(n,e=(e+i)/2),a=Zm(r,e),f=Zm(r,i);t.moveTo(u[0],u[1]),t.bezierCurveTo(o[0],o[1],a[0],a[1],f[0],f[1])}function ix(){return tx(nx)}function ux(){return tx(ex)}function ox(){var t=tx(rx);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var ax={draw:function(t,n){var e=Math.sqrt(n/wm);t.moveTo(e,0),t.arc(0,0,e,0,Am)}},fx={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},cx=Math.sqrt(1/3),sx=2*cx,lx={draw:function(t,n){var e=Math.sqrt(n/sx),r=e*cx;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},hx=Math.sin(wm/10)/Math.sin(7*wm/10),dx=Math.sin(Am/10)*hx,px=-Math.cos(Am/10)*hx,vx={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=dx*e,i=px*e;t.moveTo(0,-e),t.lineTo(r,i);for(var u=1;u<5;++u){var o=Am*u/5,a=Math.cos(o),f=Math.sin(o);t.lineTo(f*e,-a*e),t.lineTo(a*r-f*i,f*r+a*i)}t.closePath()}},_x={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},gx=Math.sqrt(3),yx={draw:function(t,n){var e=-Math.sqrt(n/(3*gx));t.moveTo(0,2*e),t.lineTo(-gx*e,-e),t.lineTo(gx*e,-e),t.closePath()}},bx=Math.sqrt(3)/2,mx=1/Math.sqrt(12),xx=3*(mx/2+1),wx={draw:function(t,n){var e=Math.sqrt(n/xx),r=e/2,i=e*mx,u=r,o=e*mx+e,a=-u,f=o;t.moveTo(r,i),t.lineTo(u,o),t.lineTo(a,f),t.lineTo(-.5*r-bx*i,bx*r+-.5*i),t.lineTo(-.5*u-bx*o,bx*u+-.5*o),t.lineTo(-.5*a-bx*f,bx*a+-.5*f),t.lineTo(-.5*r+bx*i,-.5*i-bx*r),t.lineTo(-.5*u+bx*o,-.5*o-bx*u),t.lineTo(-.5*a+bx*f,-.5*f-bx*a),t.closePath()}},Mx=[ax,fx,lx,_x,vx,yx,wx],Ax=function(){var t=pm(ax),n=pm(64),e=null;function r(){var r;if(e||(e=r=$i()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:pm(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:pm(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},kx=function(){};function Sx(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Tx(t){this._context=t}Tx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Sx(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Sx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Ex=function(t){return new Tx(t)};function Cx(t){this._context=t}Cx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Sx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Nx=function(t){return new Cx(t)};function jx(t){this._context=t}jx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Sx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var zx=function(t){return new jx(t)};function Ox(t,n){this._basis=new Tx(t),this._beta=n}Ox.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],u=n[0],o=t[e]-i,a=n[e]-u,f=-1;++f<=e;)r=f/e,this._basis.point(this._beta*t[f]+(1-this._beta)*(i+r*o),this._beta*n[f]+(1-this._beta)*(u+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Rx=function t(n){function e(t){return 1===n?new Tx(t):new Ox(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Px(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Lx(t,n){this._context=t,this._k=(1-n)/6}Lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Px(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ix=function t(n){function e(t){return new Lx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Dx(t,n){this._context=t,this._k=(1-n)/6}Dx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ux=function t(n){function e(t){return new Dx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Bx(t,n){this._context=t,this._k=(1-n)/6}Bx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Fx=function t(n){function e(t){return new Bx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function qx(t,n,e){var r=t._x1,i=t._y1,u=t._x2,o=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);u=(u*c+t._x1*t._l23_2a-n*t._l12_2a)/s,o=(o*c+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,u,o,t._x2,t._y2)}function Wx(t,n){this._context=t,this._alpha=n}Wx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:qx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yx=function t(n){function e(t){return n?new Wx(t,n):new Lx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function $x(t,n){this._context=t,this._alpha=n}$x.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:qx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Hx=function t(n){function e(t){return n?new $x(t,n):new Dx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Vx(t,n){this._context=t,this._alpha=n}Vx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Gx=function t(n){function e(t){return n?new Vx(t,n):new Bx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Xx(t){this._context=t}Xx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var Zx=function(t){return new Xx(t)};function Kx(t){return t<0?-1:1}function Jx(t,n,e){var r=t._x1-t._x0,i=n-t._x1,u=(t._y1-t._y0)/(r||i<0&&-0),o=(e-t._y1)/(i||r<0&&-0),a=(u*i+o*r)/(r+i);return(Kx(u)+Kx(o))*Math.min(Math.abs(u),Math.abs(o),.5*Math.abs(a))||0}function Qx(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function tw(t,n,e){var r=t._x0,i=t._y0,u=t._x1,o=t._y1,a=(u-r)/3;t._context.bezierCurveTo(r+a,i+a*n,u-a,o-a*e,u,o)}function nw(t){this._context=t}function ew(t){this._context=new rw(t)}function rw(t){this._context=t}function iw(t){return new nw(t)}function uw(t){return new ew(t)}function ow(t){this._context=t}function aw(t){var n,e,r=t.length-1,i=new Array(r),u=new Array(r),o=new Array(r);for(i[0]=0,u[0]=2,o[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(o[n]-i[n+1])/u[n];for(u[r-1]=(t[r]+i[r-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var sw=function(t){return new cw(t,.5)};function lw(t){return new cw(t,0)}function hw(t){return new cw(t,1)}var dw=function(t,n){if((i=t.length)>1)for(var e,r,i,u=1,o=t[n[0]],a=o.length;u=0;)e[n]=n;return e};function vw(t,n){return t[n]}var _w=function(){var t=pm([]),n=pw,e=dw,r=vw;function i(i){var u,o,a=t.apply(this,arguments),f=i.length,c=a.length,s=new Array(c);for(u=0;u0){for(var e,r,i,u=0,o=t[0].length;u0)for(var e,r,i,u,o,a,f=0,c=t[n[0]].length;f0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},bw=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],u=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,u=0,o=1;ou&&(u=n,r=e);return r}var Mw=function(t){var n=t.map(Aw);return pw(t).sort((function(t,e){return n[t]-n[e]}))};function Aw(t){for(var n,e=0,r=-1,i=t.length;++r0)){if(u/=h,h<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=r-f,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>s&&(s=u)}else if(h>0){if(u0)){if(u/=d,d<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=i-c,d||!(u<0)){if(u/=d,d<0){if(u>l)return;u>s&&(s=u)}else if(d>0){if(u0||l<1)||(s>0&&(t[0]=[f+s*h,c+s*d]),l<1&&(t[1]=[f+l*h,c+l*d]),!0)}}}}}function Yw(t,n,e,r,i){var u=t[1];if(u)return!0;var o,a,f=t[0],c=t.left,s=t.right,l=c[0],h=c[1],d=s[0],p=s[1],v=(l+d)/2,_=(h+p)/2;if(p===h){if(v=r)return;if(l>d){if(f){if(f[1]>=i)return}else f=[v,e];u=[v,i]}else{if(f){if(f[1]1)if(l>d){if(f){if(f[1]>=i)return}else f=[(e-a)/o,e];u=[(i-a)/o,i]}else{if(f){if(f[1]=r)return}else f=[n,o*n+a];u=[r,o*r+a]}else{if(f){if(f[0]=-hM)){var d=f*f+c*c,p=s*s+l*l,v=(l*d-c*p)/h,_=(f*p-s*d)/h,g=Xw.pop()||new Zw;g.arc=t,g.site=i,g.x=v+o,g.y=(g.cy=_+a)+Math.sqrt(v*v+_*_),t.circle=g;for(var y=null,b=cM._;b;)if(g.ylM)a=a.L;else{if(!((i=u-oM(a,o))>lM)){r>-lM?(n=a.P,e=a):i>-lM?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){fM[t.index]={site:t,halfedges:[]}}(t);var f=nM(t);if(aM.insert(n,f),n||e){if(n===e)return Jw(n),e=nM(n.site),aM.insert(f,e),f.edge=e.edge=Bw(n.site,f.site),Kw(n),void Kw(e);if(e){Jw(n),Jw(e);var c=n.site,s=c[0],l=c[1],h=t[0]-s,d=t[1]-l,p=e.site,v=p[0]-s,_=p[1]-l,g=2*(h*_-d*v),y=h*h+d*d,b=v*v+_*_,m=[(_*y-d*b)/g+s,(h*b-v*y)/g+l];qw(e.edge,c,p,m),f.edge=Bw(c,t,null,m),e.edge=Bw(t,p,null,m),Kw(n),Kw(e)}else f.edge=Bw(n.site,f.site)}}function uM(t,n){var e=t.site,r=e[0],i=e[1],u=i-n;if(!u)return r;var o=t.P;if(!o)return-1/0;var a=(e=o.site)[0],f=e[1],c=f-n;if(!c)return a;var s=a-r,l=1/u-1/c,h=s/c;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*c)-f+c/2+i-u/2)))/l+r:(r+a)/2}function oM(t,n){var e=t.N;if(e)return uM(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var aM,fM,cM,sM,lM=1e-6,hM=1e-12;function dM(t,n){return n[1]-t[1]||n[0]-t[0]}function pM(t,n){var e,r,i,u=t.sort(dM).pop();for(sM=[],fM=new Array(t.length),aM=new Uw,cM=new Uw;;)if(i=Gw,u&&(!i||u[1]lM||Math.abs(i[0][1]-i[1][1])>lM)||delete sM[u]}(o,a,f,c),function(t,n,e,r){var i,u,o,a,f,c,s,l,h,d,p,v,_=fM.length,g=!0;for(i=0;i<_;++i)if(u=fM[i]){for(o=u.site,a=(f=u.halfedges).length;a--;)sM[f[a]]||f.splice(a,1);for(a=0,c=f.length;alM||Math.abs(v-h)>lM)&&(f.splice(a,0,sM.push(Fw(o,d,Math.abs(p-t)lM?[t,Math.abs(l-t)lM?[Math.abs(h-r)lM?[e,Math.abs(l-e)lM?[Math.abs(h-n)=a)return null;var f=t-i.site[0],c=n-i.site[1],s=f*f+c*c;do{i=u.cells[r=o],o=null,i.halfedges.forEach((function(e){var r=u.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var f=t-a[0],c=n-a[1],l=f*f+c*c;lr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>u?(u+o)/2:Math.min(0,u)||Math.max(0,o))}var CM,NM=function(){var t,n,e=MM,r=AM,i=EM,u=SM,o=TM,a=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],c=250,s=pp,l=dt("start","zoom","end"),h=0;function d(t){t.property("__zoom",kM).on("wheel.zoom",m).on("mousedown.zoom",x).on("dblclick.zoom",w).filter(o).on("touchstart.zoom",M).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new yM(n,t.x,t.y)}function v(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new yM(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function g(t,n,e){t.on("start.zoom",(function(){y(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,u=y(t,i),o=r.apply(t,i),a=null==e?_(o):"function"==typeof e?e.apply(t,i):e,f=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=t.__zoom,l="function"==typeof n?n.apply(t,i):n,h=s(c.invert(a).concat(f/c.k),l.invert(a).concat(f/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=f/n[2];t=new yM(e,a[0]-n[0]*e,a[1]-n[1]*e)}u.zoom(null,t)}}))}function y(t,n,e){return!e&&t.__zooming||new b(t,n)}function b(t,n){this.that=t,this.args=n,this.active=0,this.extent=r.apply(t,n),this.taps=0}function m(){if(e.apply(this,arguments)){var t=y(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,u.apply(this,arguments)))),o=Pe(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=n.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[o,n.invert(o)],cr(this),t.start()}wM(),t.wheel=setTimeout(c,150),t.zoom("mouse",i(v(p(n,r),t.mouse[0],t.mouse[1]),t.extent,f))}function c(){t.wheel=null,t.end()}}function x(){if(!n&&e.apply(this,arguments)){var t=y(this,arguments,!0),r=Sn(hn.view).on("mousemove.zoom",c,!0).on("mouseup.zoom",s,!0),u=Pe(this),o=hn.clientX,a=hn.clientY;Cn(hn.view),xM(),t.mouse=[u,this.__zoom.invert(u)],cr(this),t.start()}function c(){if(wM(),!t.moved){var n=hn.clientX-o,e=hn.clientY-a;t.moved=n*n+e*e>h}t.zoom("mouse",i(v(t.that.__zoom,t.mouse[0]=Pe(t.that),t.mouse[1]),t.extent,f))}function s(){r.on("mousemove.zoom mouseup.zoom",null),Nn(hn.view,t.moved),wM(),t.end()}}function w(){if(e.apply(this,arguments)){var t=this.__zoom,n=Pe(this),u=t.invert(n),o=t.k*(hn.shiftKey?.5:2),a=i(v(p(t,o),n,u),r.apply(this,arguments),f);wM(),c>0?Sn(this).transition().duration(c).call(g,a,n):Sn(this).call(d.transform,a)}}function M(){if(e.apply(this,arguments)){var n,r,i,u,o=hn.touches,a=o.length,f=y(this,arguments,hn.changedTouches.length===a);for(xM(),r=0;r0)for(var n in this.visibleSeries){var e=this.visibleSeries[n].confidence||0,r=this.visibleSeries[n].mode||"Standart",i=this.visibleSeries[n].target;this._renderMetric(this.visibleSeries[n].datapoints,{color:this.visibleSeries[n].color,confidence:e,target:i,mode:r})}else this._renderNoDataPointsMessage()},n.prototype._renderMetric=function(t,n){var e=this;if(!jM.includes(this.seriesTargetsWithBounds,n.target))if("Charge"!==n.mode){var r=this._d3.line().x((function(t){return e.xScale(new Date(t[1]))})).y((function(t){return e.yScale(t[0])}));this._chartContainer.append("path").datum(t).attr("class","metric-path").attr("fill","none").attr("stroke",n.color).attr("stroke-width",1).attr("stroke-opacity",.7).attr("d",r);var i,u=[],o=[];if(this._series.forEach((function(t){t.target===e.formatedBound(e._options.bounds.upper,n.target)&&(u=t.datapoints),t.target===e.formatedBound(e._options.bounds.lower,n.target)&&(o=t.datapoints)})),u.length>0&&o.length>0){var a=(i=o,u.map((function(t,n){return[t[0],t[1],i[n][0]]})));this._chartContainer.append("path").datum(a).attr("fill",n.color).attr("stroke","none").attr("opacity","0.3").attr("d",this._d3.area().x((function(t){return e.xScale(new Date(t[1]))})).y0((function(t){return e.yScale(t[0])})).y1((function(t){return e.yScale(t[2])})))}n.confidence>0&&this._chartContainer.append("path").datum(t).attr("fill",n.color).attr("stroke","none").attr("opacity","0.3").attr("d",this._d3.area().x((function(t){return e.xScale(new Date(t[1]))})).y0((function(t){return e.yScale(t[0]+n.confidence)})).y1((function(t){return e.yScale(t[0]-n.confidence)})))}else{var f=this._d3.pairs(t);this._chartContainer.selectAll(null).data(f).enter().append("line").attr("x1",(function(t){return e.xScale(t[0][1])})).attr("x2",(function(t){return e.xScale(t[1][1])})).attr("y1",(function(t){return e.yScale(t[0][0])})).attr("y2",(function(t){return e.yScale(t[1][0])})).attr("stroke-opacity",.7).style("stroke-width",1).style("stroke",(function(t){return t[1][0]>t[0][0]?"green":t[1][0]"']/g,D=RegExp(L.source),U=RegExp(I.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H=/[\\^$.*+?()[\]{}|]/g,V=RegExp(H.source),G=/^\s+|\s+$/g,X=/^\s+/,Z=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="["+dt+"]",vt="["+ht+"]",_t="\\d+",gt="[a-z\\xdf-\\xf6\\xf8-\\xff]",yt="[^\\ud800-\\udfff"+dt+_t+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bt="\\ud83c[\\udffb-\\udfff]",mt="[^\\ud800-\\udfff]",xt="(?:\\ud83c[\\udde6-\\uddff]){2}",wt="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",At="(?:"+gt+"|"+yt+")",kt="(?:"+Mt+"|"+yt+")",St="(?:"+vt+"|"+bt+")?",Tt="[\\ufe0e\\ufe0f]?"+St+"(?:\\u200d(?:"+[mt,xt,wt].join("|")+")[\\ufe0e\\ufe0f]?"+St+")*",Et="(?:"+["[\\u2700-\\u27bf]",xt,wt].join("|")+")"+Tt,Ct="(?:"+[mt+vt+"?",vt,xt,wt,"[\\ud800-\\udfff]"].join("|")+")",Nt=RegExp("['’]","g"),jt=RegExp(vt,"g"),zt=RegExp(bt+"(?="+bt+")|"+Ct+Tt,"g"),Ot=RegExp([Mt+"?"+gt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[pt,Mt,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[pt,Mt+At,"$"].join("|")+")",Mt+"?"+At+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Mt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,Et].join("|"),"g"),Rt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Pt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],It=-1,Dt={};Dt[k]=Dt[S]=Dt[T]=Dt[E]=Dt[C]=Dt[N]=Dt["[object Uint8ClampedArray]"]=Dt[j]=Dt[z]=!0,Dt[f]=Dt[c]=Dt[M]=Dt[s]=Dt[A]=Dt[l]=Dt[h]=Dt[d]=Dt[v]=Dt[_]=Dt[g]=Dt[y]=Dt[b]=Dt[m]=Dt[w]=!1;var Ut={};Ut[f]=Ut[c]=Ut[M]=Ut[A]=Ut[s]=Ut[l]=Ut[k]=Ut[S]=Ut[T]=Ut[E]=Ut[C]=Ut[v]=Ut[_]=Ut[g]=Ut[y]=Ut[b]=Ut[m]=Ut[x]=Ut[N]=Ut["[object Uint8ClampedArray]"]=Ut[j]=Ut[z]=!0,Ut[h]=Ut[d]=Ut[w]=!1;var Bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ft=parseFloat,qt=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Yt="object"==typeof self&&self&&self.Object===Object&&self,$t=Wt||Yt||Function("return this")(),Ht=n&&!n.nodeType&&n,Vt=Ht&&"object"==typeof r&&r&&!r.nodeType&&r,Gt=Vt&&Vt.exports===Ht,Xt=Gt&&Wt.process,Zt=function(){try{return Vt&&Vt.require&&Vt.require("util").types||Xt&&Xt.binding&&Xt.binding("util")}catch(t){}}(),Kt=Zt&&Zt.isArrayBuffer,Jt=Zt&&Zt.isDate,Qt=Zt&&Zt.isMap,tn=Zt&&Zt.isRegExp,nn=Zt&&Zt.isSet,en=Zt&&Zt.isTypedArray;function rn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function un(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i-1}function ln(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function On(t,n){for(var e=t.length;e--&&mn(n,t[e],0)>-1;);return e}function Rn(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var Pn=kn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ln=kn({"&":"&","<":"<",">":">",'"':""","'":"'"});function In(t){return"\\"+Bt[t]}function Dn(t){return Rt.test(t)}function Un(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function Bn(t,n){return function(e){return t(n(e))}}function Fn(t,n){for(var e=-1,r=t.length,i=0,u=[];++e",""":'"',"'":"'"}),Hn=function t(n){var e,r=(n=null==n?$t:Hn.defaults($t.Object(),n,Hn.pick($t,Lt))).Array,i=n.Date,ht=n.Error,dt=n.Function,pt=n.Math,vt=n.Object,_t=n.RegExp,gt=n.String,yt=n.TypeError,bt=r.prototype,mt=dt.prototype,xt=vt.prototype,wt=n["__core-js_shared__"],Mt=mt.toString,At=xt.hasOwnProperty,kt=0,St=(e=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Tt=xt.toString,Et=Mt.call(vt),Ct=$t._,zt=_t("^"+Mt.call(At).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Gt?n.Buffer:void 0,Bt=n.Symbol,Wt=n.Uint8Array,Yt=Rt?Rt.allocUnsafe:void 0,Ht=Bn(vt.getPrototypeOf,vt),Vt=vt.create,Xt=xt.propertyIsEnumerable,Zt=bt.splice,gn=Bt?Bt.isConcatSpreadable:void 0,kn=Bt?Bt.iterator:void 0,Vn=Bt?Bt.toStringTag:void 0,Gn=function(){try{var t=Ki(vt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Xn=n.clearTimeout!==$t.clearTimeout&&n.clearTimeout,Zn=i&&i.now!==$t.Date.now&&i.now,Kn=n.setTimeout!==$t.setTimeout&&n.setTimeout,Jn=pt.ceil,Qn=pt.floor,te=vt.getOwnPropertySymbols,ne=Rt?Rt.isBuffer:void 0,ee=n.isFinite,re=bt.join,ie=Bn(vt.keys,vt),ue=pt.max,oe=pt.min,ae=i.now,fe=n.parseInt,ce=pt.random,se=bt.reverse,le=Ki(n,"DataView"),he=Ki(n,"Map"),de=Ki(n,"Promise"),pe=Ki(n,"Set"),ve=Ki(n,"WeakMap"),_e=Ki(vt,"create"),ge=ve&&new ve,ye={},be=Au(le),me=Au(he),xe=Au(de),we=Au(pe),Me=Au(ve),Ae=Bt?Bt.prototype:void 0,ke=Ae?Ae.valueOf:void 0,Se=Ae?Ae.toString:void 0;function Te(t){if(qo(t)&&!jo(t)&&!(t instanceof je)){if(t instanceof Ne)return t;if(At.call(t,"__wrapped__"))return ku(t)}return new Ne(t)}var Ee=function(){function t(){}return function(n){if(!Fo(n))return{};if(Vt)return Vt(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function Ce(){}function Ne(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function je(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ze(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Xe(t,n,e,r,i,u){var o,a=1&n,c=2&n,h=4&n;if(e&&(o=i?e(t,r,i,u):e(t)),void 0!==o)return o;if(!Fo(t))return t;var w=jo(t);if(w){if(o=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&At.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!a)return vi(t,o)}else{var O=tu(t),R=O==d||O==p;if(Po(t))return ci(t,a);if(O==g||O==f||R&&!i){if(o=c||R?{}:eu(t),!a)return c?function(t,n){return _i(t,Qi(t),n)}(t,function(t,n){return t&&_i(n,ba(n),t)}(o,t)):function(t,n){return _i(t,Ji(t),n)}(t,$e(o,t))}else{if(!Ut[O])return i?t:{};o=function(t,n,e){var r,i=t.constructor;switch(n){case M:return si(t);case s:case l:return new i(+t);case A:return function(t,n){var e=n?si(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case k:case S:case T:case E:case C:case N:case"[object Uint8ClampedArray]":case j:case z:return li(t,e);case v:return new i;case _:case m:return new i(t);case y:return function(t){var n=new t.constructor(t.source,rt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case b:return new i;case x:return r=t,ke?vt(ke.call(r)):{}}}(t,O,a)}}u||(u=new Le);var P=u.get(t);if(P)return P;u.set(t,o),Vo(t)?t.forEach((function(r){o.add(Xe(r,n,e,r,t,u))})):Wo(t)&&t.forEach((function(r,i){o.set(i,Xe(r,n,e,i,t,u))}));var L=w?void 0:(h?c?Yi:Wi:c?ba:ya)(t);return on(L||t,(function(r,i){L&&(r=t[i=r]),qe(o,i,Xe(r,n,e,i,t,u))})),o}function Ze(t,n,e){var r=e.length;if(null==t)return!r;for(t=vt(t);r--;){var i=e[r],u=n[i],o=t[i];if(void 0===o&&!(i in t)||!u(o))return!1}return!0}function Ke(t,n,e){if("function"!=typeof t)throw new yt(u);return gu((function(){t.apply(void 0,e)}),n)}function Je(t,n,e,r){var i=-1,u=sn,o=!0,a=t.length,f=[],c=n.length;if(!a)return f;e&&(n=hn(n,Cn(e))),r?(u=ln,o=!1):n.length>=200&&(u=jn,o=!1,n=new Pe(n));t:for(;++i-1},Oe.prototype.set=function(t,n){var e=this.__data__,r=We(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Re.prototype.clear=function(){this.size=0,this.__data__={hash:new ze,map:new(he||Oe),string:new ze}},Re.prototype.delete=function(t){var n=Xi(this,t).delete(t);return this.size-=n?1:0,n},Re.prototype.get=function(t){return Xi(this,t).get(t)},Re.prototype.has=function(t){return Xi(this,t).has(t)},Re.prototype.set=function(t,n){var e=Xi(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Pe.prototype.add=Pe.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Pe.prototype.has=function(t){return this.__data__.has(t)},Le.prototype.clear=function(){this.__data__=new Oe,this.size=0},Le.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Le.prototype.get=function(t){return this.__data__.get(t)},Le.prototype.has=function(t){return this.__data__.has(t)},Le.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Oe){var r=e.__data__;if(!he||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Re(r)}return e.set(t,n),this.size=e.size,this};var Qe=bi(ar),tr=bi(fr,!0);function nr(t,n){var e=!0;return Qe(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function er(t,n,e){for(var r=-1,i=t.length;++r0&&e(a)?n>1?ir(a,n-1,e,r,i):dn(i,a):r||(i[i.length]=a)}return i}var ur=mi(),or=mi(!0);function ar(t,n){return t&&ur(t,n,ya)}function fr(t,n){return t&&or(t,n,ya)}function cr(t,n){return cn(n,(function(n){return Do(t[n])}))}function sr(t,n){for(var e=0,r=(n=ui(n,t)).length;null!=t&&en}function pr(t,n){return null!=t&&At.call(t,n)}function vr(t,n){return null!=t&&n in vt(t)}function _r(t,n,e){for(var i=e?ln:sn,u=t[0].length,o=t.length,a=o,f=r(o),c=1/0,s=[];a--;){var l=t[a];a&&n&&(l=hn(l,Cn(n))),c=oe(l.length,c),f[a]=!e&&(n||u>=120&&l.length>=120)?new Pe(a&&l):void 0}l=t[0];var h=-1,d=f[0];t:for(;++h=a?f:f*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function jr(t,n,e){for(var r=-1,i=n.length,u={};++r-1;)a!==t&&Zt.call(a,f,1),Zt.call(t,f,1);return t}function Or(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;iu(i)?Zt.call(t,i,1):Kr(t,i)}}return t}function Rr(t,n){return t+Qn(ce()*(n-t+1))}function Pr(t,n){var e="";if(!t||n<1||n>9007199254740991)return e;do{n%2&&(e+=t),(n=Qn(n/2))&&(t+=t)}while(n);return e}function Lr(t,n){return yu(hu(t,n,Ya),t+"")}function Ir(t){return De(Ta(t))}function Dr(t,n){var e=Ta(t);return xu(e,Ge(n,0,e.length))}function Ur(t,n,e,r){if(!Fo(t))return t;for(var i=-1,u=(n=ui(n,t)).length,o=u-1,a=t;null!=a&&++iu?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var o=r(u);++i>>1,o=t[u];null!==o&&!Xo(o)&&(e?o<=n:o=200){var c=n?null:Pi(t);if(c)return qn(c);o=!1,i=jn,f=new Pe}else f=n?[]:a;t:for(;++r=r?t:Wr(t,n,e)}var fi=Xn||function(t){return $t.clearTimeout(t)};function ci(t,n){if(n)return t.slice();var e=t.length,r=Yt?Yt(e):new t.constructor(e);return t.copy(r),r}function si(t){var n=new t.constructor(t.byteLength);return new Wt(n).set(new Wt(t)),n}function li(t,n){var e=n?si(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function hi(t,n){if(t!==n){var e=void 0!==t,r=null===t,i=t==t,u=Xo(t),o=void 0!==n,a=null===n,f=n==n,c=Xo(n);if(!a&&!c&&!u&&t>n||u&&o&&f&&!a&&!c||r&&o&&f||!e&&f||!i)return 1;if(!r&&!u&&!c&&t1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(i--,u):void 0,o&&uu(e[0],e[1],o)&&(u=i<3?void 0:u,i=1),n=vt(n);++r-1?i[u?n[o]:o]:void 0}}function ki(t){return qi((function(n){var e=n.length,r=e,i=Ne.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new yt(u);if(i&&!a&&"wrapper"==Hi(o))var a=new Ne([],!0)}for(r=a?r:e;++r1&&b.reverse(),l&&ca))return!1;var c=u.get(t);if(c&&u.get(n))return c==n;var s=-1,l=!0,h=2&e?new Pe:void 0;for(u.set(t,n),u.set(n,t);++s-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(K,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return on(a,(function(e){var r="_."+e[0];n&e[1]&&!sn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(J);return n?n[1].split(Q):[]}(r),e)))}function mu(t){var n=0,e=0;return function(){var r=ae(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function xu(t,n){var e=-1,r=t.length,i=r-1;for(n=void 0===n?r:n;++e1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,$u(t,e)}));function Ju(t){var n=Te(t);return n.__chain__=!0,n}function Qu(t,n){return n(t)}var to=qi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Ve(n,t)};return!(n>1||this.__actions__.length)&&r instanceof je&&iu(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:Qu,args:[i],thisArg:void 0}),new Ne(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)})),no=gi((function(t,n,e){At.call(t,e)?++t[e]:He(t,e,1)})),eo=Ai(Cu),ro=Ai(Nu);function io(t,n){return(jo(t)?on:Qe)(t,Gi(n,3))}function uo(t,n){return(jo(t)?an:tr)(t,Gi(n,3))}var oo=gi((function(t,n,e){At.call(t,e)?t[e].push(n):He(t,e,[n])})),ao=Lr((function(t,n,e){var i=-1,u="function"==typeof n,o=Oo(t)?r(t.length):[];return Qe(t,(function(t){o[++i]=u?rn(n,t,e):gr(t,n,e)})),o})),fo=gi((function(t,n,e){He(t,e,n)}));function co(t,n){return(jo(t)?hn:kr)(t,Gi(n,3))}var so=gi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),lo=Lr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&uu(t,n[0],n[1])?n=[]:e>2&&uu(n[0],n[1],n[2])&&(n=[n[0]]),Nr(t,ir(n,1),[])})),ho=Zn||function(){return $t.Date.now()};function po(t,n,e){return n=e?void 0:n,Ii(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function vo(t,n){var e;if("function"!=typeof n)throw new yt(u);return t=na(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var _o=Lr((function(t,n,e){var r=1;if(e.length){var i=Fn(e,Vi(_o));r|=32}return Ii(t,r,n,e,i)})),go=Lr((function(t,n,e){var r=3;if(e.length){var i=Fn(e,Vi(go));r|=32}return Ii(n,r,t,e,i)}));function yo(t,n,e){var r,i,o,a,f,c,s=0,l=!1,h=!1,d=!0;if("function"!=typeof t)throw new yt(u);function p(n){var e=r,u=i;return r=i=void 0,s=n,a=t.apply(u,e)}function v(t){return s=t,f=gu(g,n),l?p(t):a}function _(t){var e=t-c;return void 0===c||e>=n||e<0||h&&t-s>=o}function g(){var t=ho();if(_(t))return y(t);f=gu(g,function(t){var e=n-(t-c);return h?oe(e,o-(t-s)):e}(t))}function y(t){return f=void 0,d&&r?p(t):(r=i=void 0,a)}function b(){var t=ho(),e=_(t);if(r=arguments,i=this,c=t,e){if(void 0===f)return v(c);if(h)return fi(f),f=gu(g,n),p(c)}return void 0===f&&(f=gu(g,n)),a}return n=ra(n)||0,Fo(e)&&(l=!!e.leading,o=(h="maxWait"in e)?ue(ra(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),b.cancel=function(){void 0!==f&&fi(f),s=0,r=c=i=f=void 0},b.flush=function(){return void 0===f?a:y(ho())},b}var bo=Lr((function(t,n){return Ke(t,1,n)})),mo=Lr((function(t,n,e){return Ke(t,ra(n)||0,e)}));function xo(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new yt(u);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=t.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(xo.Cache||Re),e}function wo(t){if("function"!=typeof t)throw new yt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}xo.Cache=Re;var Mo=oi((function(t,n){var e=(n=1==n.length&&jo(n[0])?hn(n[0],Cn(Gi())):hn(ir(n,1),Cn(Gi()))).length;return Lr((function(r){for(var i=-1,u=oe(r.length,e);++i=n})),No=yr(function(){return arguments}())?yr:function(t){return qo(t)&&At.call(t,"callee")&&!Xt.call(t,"callee")},jo=r.isArray,zo=Kt?Cn(Kt):function(t){return qo(t)&&hr(t)==M};function Oo(t){return null!=t&&Bo(t.length)&&!Do(t)}function Ro(t){return qo(t)&&Oo(t)}var Po=ne||rf,Lo=Jt?Cn(Jt):function(t){return qo(t)&&hr(t)==l};function Io(t){if(!qo(t))return!1;var n=hr(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!$o(t)}function Do(t){if(!Fo(t))return!1;var n=hr(t);return n==d||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Uo(t){return"number"==typeof t&&t==na(t)}function Bo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Fo(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function qo(t){return null!=t&&"object"==typeof t}var Wo=Qt?Cn(Qt):function(t){return qo(t)&&tu(t)==v};function Yo(t){return"number"==typeof t||qo(t)&&hr(t)==_}function $o(t){if(!qo(t)||hr(t)!=g)return!1;var n=Ht(t);if(null===n)return!0;var e=At.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Mt.call(e)==Et}var Ho=tn?Cn(tn):function(t){return qo(t)&&hr(t)==y},Vo=nn?Cn(nn):function(t){return qo(t)&&tu(t)==b};function Go(t){return"string"==typeof t||!jo(t)&&qo(t)&&hr(t)==m}function Xo(t){return"symbol"==typeof t||qo(t)&&hr(t)==x}var Zo=en?Cn(en):function(t){return qo(t)&&Bo(t.length)&&!!Dt[hr(t)]},Ko=zi(Ar),Jo=zi((function(t,n){return t<=n}));function Qo(t){if(!t)return[];if(Oo(t))return Go(t)?Yn(t):vi(t);if(kn&&t[kn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[kn]());var n=tu(t);return(n==v?Un:n==b?qn:Ta)(t)}function ta(t){return t?(t=ra(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function na(t){var n=ta(t),e=n%1;return n==n?e?n-e:n:0}function ea(t){return t?Ge(na(t),0,4294967295):0}function ra(t){if("number"==typeof t)return t;if(Xo(t))return NaN;if(Fo(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Fo(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(G,"");var e=ut.test(t);return e||at.test(t)?qt(t.slice(2),e?2:8):it.test(t)?NaN:+t}function ia(t){return _i(t,ba(t))}function ua(t){return null==t?"":Xr(t)}var oa=yi((function(t,n){if(cu(n)||Oo(n))_i(n,ya(n),t);else for(var e in n)At.call(n,e)&&qe(t,e,n[e])})),aa=yi((function(t,n){_i(n,ba(n),t)})),fa=yi((function(t,n,e,r){_i(n,ba(n),t,r)})),ca=yi((function(t,n,e,r){_i(n,ya(n),t,r)})),sa=qi(Ve),la=Lr((function(t,n){t=vt(t);var e=-1,r=n.length,i=r>2?n[2]:void 0;for(i&&uu(n[0],n[1],i)&&(r=1);++e1),n})),_i(t,Yi(t),e),r&&(e=Xe(e,7,Bi));for(var i=n.length;i--;)Kr(e,n[i]);return e})),Ma=qi((function(t,n){return null==t?{}:function(t,n){return jr(t,n,(function(n,e){return pa(t,e)}))}(t,n)}));function Aa(t,n){if(null==t)return{};var e=hn(Yi(t),(function(t){return[t]}));return n=Gi(n),jr(t,e,(function(t,e){return n(t,e[0])}))}var ka=Li(ya),Sa=Li(ba);function Ta(t){return null==t?[]:Nn(t,ya(t))}var Ea=wi((function(t,n,e){return n=n.toLowerCase(),t+(e?Ca(n):n)}));function Ca(t){return Ia(ua(t).toLowerCase())}function Na(t){return(t=ua(t))&&t.replace(ct,Pn).replace(jt,"")}var ja=wi((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),za=wi((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Oa=xi("toLowerCase"),Ra=wi((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Pa=wi((function(t,n,e){return t+(e?" ":"")+Ia(n)})),La=wi((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ia=xi("toUpperCase");function Da(t,n,e){return t=ua(t),void 0===(n=e?void 0:n)?function(t){return Pt.test(t)}(t)?function(t){return t.match(Ot)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(n)||[]}var Ua=Lr((function(t,n){try{return rn(t,void 0,n)}catch(t){return Io(t)?t:new ht(t)}})),Ba=qi((function(t,n){return on(n,(function(n){n=Mu(n),He(t,n,_o(t[n],t))})),t}));function Fa(t){return function(){return t}}var qa=ki(),Wa=ki(!0);function Ya(t){return t}function $a(t){return wr("function"==typeof t?t:Xe(t,1))}var Ha=Lr((function(t,n){return function(e){return gr(e,t,n)}})),Va=Lr((function(t,n){return function(e){return gr(t,e,n)}}));function Ga(t,n,e){var r=ya(n),i=cr(n,r);null!=e||Fo(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=cr(n,ya(n)));var u=!(Fo(e)&&"chain"in e&&!e.chain),o=Do(t);return on(i,(function(e){var r=n[e];t[e]=r,o&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),i=e.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,dn([this.value()],arguments))})})),t}function Xa(){}var Za=Ci(hn),Ka=Ci(fn),Ja=Ci(_n);function Qa(t){return ou(t)?An(Mu(t)):function(t){return function(n){return sr(n,t)}}(t)}var tf=ji(),nf=ji(!0);function ef(){return[]}function rf(){return!1}var uf,of=Ei((function(t,n){return t+n}),0),af=Ri("ceil"),ff=Ei((function(t,n){return t/n}),1),cf=Ri("floor"),sf=Ei((function(t,n){return t*n}),1),lf=Ri("round"),hf=Ei((function(t,n){return t-n}),0);return Te.after=function(t,n){if("function"!=typeof n)throw new yt(u);return t=na(t),function(){if(--t<1)return n.apply(this,arguments)}},Te.ary=po,Te.assign=oa,Te.assignIn=aa,Te.assignInWith=fa,Te.assignWith=ca,Te.at=sa,Te.before=vo,Te.bind=_o,Te.bindAll=Ba,Te.bindKey=go,Te.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return jo(t)?t:[t]},Te.chain=Ju,Te.chunk=function(t,n,e){n=(e?uu(t,n,e):void 0===n)?1:ue(na(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var u=0,o=0,a=r(Jn(i/n));ui?0:i+e),(r=void 0===r||r>i?i:na(r))<0&&(r+=i),r=e>r?0:ea(r);e>>0)?(t=ua(t))&&("string"==typeof n||null!=n&&!Ho(n))&&!(n=Xr(n))&&Dn(t)?ai(Yn(t),0,e):t.split(n,e):[]},Te.spread=function(t,n){if("function"!=typeof t)throw new yt(u);return n=null==n?0:ue(na(n),0),Lr((function(e){var r=e[n],i=ai(e,0,n);return r&&dn(i,r),rn(t,this,i)}))},Te.tail=function(t){var n=null==t?0:t.length;return n?Wr(t,1,n):[]},Te.take=function(t,n,e){return t&&t.length?Wr(t,0,(n=e||void 0===n?1:na(n))<0?0:n):[]},Te.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?Wr(t,(n=r-(n=e||void 0===n?1:na(n)))<0?0:n,r):[]},Te.takeRightWhile=function(t,n){return t&&t.length?Qr(t,Gi(n,3),!1,!0):[]},Te.takeWhile=function(t,n){return t&&t.length?Qr(t,Gi(n,3)):[]},Te.tap=function(t,n){return n(t),t},Te.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new yt(u);return Fo(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),yo(t,n,{leading:r,maxWait:n,trailing:i})},Te.thru=Qu,Te.toArray=Qo,Te.toPairs=ka,Te.toPairsIn=Sa,Te.toPath=function(t){return jo(t)?hn(t,Mu):Xo(t)?[t]:vi(wu(ua(t)))},Te.toPlainObject=ia,Te.transform=function(t,n,e){var r=jo(t),i=r||Po(t)||Zo(t);if(n=Gi(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:Fo(t)&&Do(u)?Ee(Ht(t)):{}}return(i?on:ar)(t,(function(t,r,i){return n(e,t,r,i)})),e},Te.unary=function(t){return po(t,1)},Te.union=Fu,Te.unionBy=qu,Te.unionWith=Wu,Te.uniq=function(t){return t&&t.length?Zr(t):[]},Te.uniqBy=function(t,n){return t&&t.length?Zr(t,Gi(n,2)):[]},Te.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Zr(t,void 0,n):[]},Te.unset=function(t,n){return null==t||Kr(t,n)},Te.unzip=Yu,Te.unzipWith=$u,Te.update=function(t,n,e){return null==t?t:Jr(t,n,ii(e))},Te.updateWith=function(t,n,e,r){return r="function"==typeof r?r:void 0,null==t?t:Jr(t,n,ii(e),r)},Te.values=Ta,Te.valuesIn=function(t){return null==t?[]:Nn(t,ba(t))},Te.without=Hu,Te.words=Da,Te.wrap=function(t,n){return Ao(ii(n),t)},Te.xor=Vu,Te.xorBy=Gu,Te.xorWith=Xu,Te.zip=Zu,Te.zipObject=function(t,n){return ei(t||[],n||[],qe)},Te.zipObjectDeep=function(t,n){return ei(t||[],n||[],Ur)},Te.zipWith=Ku,Te.entries=ka,Te.entriesIn=Sa,Te.extend=aa,Te.extendWith=fa,Ga(Te,Te),Te.add=of,Te.attempt=Ua,Te.camelCase=Ea,Te.capitalize=Ca,Te.ceil=af,Te.clamp=function(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=ra(e))==e?e:0),void 0!==n&&(n=(n=ra(n))==n?n:0),Ge(ra(t),n,e)},Te.clone=function(t){return Xe(t,4)},Te.cloneDeep=function(t){return Xe(t,5)},Te.cloneDeepWith=function(t,n){return Xe(t,5,n="function"==typeof n?n:void 0)},Te.cloneWith=function(t,n){return Xe(t,4,n="function"==typeof n?n:void 0)},Te.conformsTo=function(t,n){return null==n||Ze(t,n,ya(n))},Te.deburr=Na,Te.defaultTo=function(t,n){return null==t||t!=t?n:t},Te.divide=ff,Te.endsWith=function(t,n,e){t=ua(t),n=Xr(n);var r=t.length,i=e=void 0===e?r:Ge(na(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},Te.eq=To,Te.escape=function(t){return(t=ua(t))&&U.test(t)?t.replace(I,Ln):t},Te.escapeRegExp=function(t){return(t=ua(t))&&V.test(t)?t.replace(H,"\\$&"):t},Te.every=function(t,n,e){var r=jo(t)?fn:nr;return e&&uu(t,n,e)&&(n=void 0),r(t,Gi(n,3))},Te.find=eo,Te.findIndex=Cu,Te.findKey=function(t,n){return yn(t,Gi(n,3),ar)},Te.findLast=ro,Te.findLastIndex=Nu,Te.findLastKey=function(t,n){return yn(t,Gi(n,3),fr)},Te.floor=cf,Te.forEach=io,Te.forEachRight=uo,Te.forIn=function(t,n){return null==t?t:ur(t,Gi(n,3),ba)},Te.forInRight=function(t,n){return null==t?t:or(t,Gi(n,3),ba)},Te.forOwn=function(t,n){return t&&ar(t,Gi(n,3))},Te.forOwnRight=function(t,n){return t&&fr(t,Gi(n,3))},Te.get=da,Te.gt=Eo,Te.gte=Co,Te.has=function(t,n){return null!=t&&nu(t,n,pr)},Te.hasIn=pa,Te.head=zu,Te.identity=Ya,Te.includes=function(t,n,e,r){t=Oo(t)?t:Ta(t),e=e&&!r?na(e):0;var i=t.length;return e<0&&(e=ue(i+e,0)),Go(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&mn(t,n,e)>-1},Te.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:na(e);return i<0&&(i=ue(r+i,0)),mn(t,n,i)},Te.inRange=function(t,n,e){return n=ta(n),void 0===e?(e=n,n=0):e=ta(e),function(t,n,e){return t>=oe(n,e)&&t=-9007199254740991&&t<=9007199254740991},Te.isSet=Vo,Te.isString=Go,Te.isSymbol=Xo,Te.isTypedArray=Zo,Te.isUndefined=function(t){return void 0===t},Te.isWeakMap=function(t){return qo(t)&&tu(t)==w},Te.isWeakSet=function(t){return qo(t)&&"[object WeakSet]"==hr(t)},Te.join=function(t,n){return null==t?"":re.call(t,n)},Te.kebabCase=ja,Te.last=Lu,Te.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==e&&(i=(i=na(e))<0?ue(r+i,0):oe(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):bn(t,wn,i,!0)},Te.lowerCase=za,Te.lowerFirst=Oa,Te.lt=Ko,Te.lte=Jo,Te.max=function(t){return t&&t.length?er(t,Ya,dr):void 0},Te.maxBy=function(t,n){return t&&t.length?er(t,Gi(n,2),dr):void 0},Te.mean=function(t){return Mn(t,Ya)},Te.meanBy=function(t,n){return Mn(t,Gi(n,2))},Te.min=function(t){return t&&t.length?er(t,Ya,Ar):void 0},Te.minBy=function(t,n){return t&&t.length?er(t,Gi(n,2),Ar):void 0},Te.stubArray=ef,Te.stubFalse=rf,Te.stubObject=function(){return{}},Te.stubString=function(){return""},Te.stubTrue=function(){return!0},Te.multiply=sf,Te.nth=function(t,n){return t&&t.length?Cr(t,na(n)):void 0},Te.noConflict=function(){return $t._===this&&($t._=Ct),this},Te.noop=Xa,Te.now=ho,Te.pad=function(t,n,e){t=ua(t);var r=(n=na(n))?Wn(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Ni(Qn(i),e)+t+Ni(Jn(i),e)},Te.padEnd=function(t,n,e){t=ua(t);var r=(n=na(n))?Wn(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=ce();return oe(t+i*(n-t+Ft("1e-"+((i+"").length-1))),n)}return Rr(t,n)},Te.reduce=function(t,n,e){var r=jo(t)?pn:Sn,i=arguments.length<3;return r(t,Gi(n,4),e,i,Qe)},Te.reduceRight=function(t,n,e){var r=jo(t)?vn:Sn,i=arguments.length<3;return r(t,Gi(n,4),e,i,tr)},Te.repeat=function(t,n,e){return n=(e?uu(t,n,e):void 0===n)?1:na(n),Pr(ua(t),n)},Te.replace=function(){var t=arguments,n=ua(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Te.result=function(t,n,e){var r=-1,i=(n=ui(n,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var e=4294967295,r=oe(t,4294967295);t-=4294967295;for(var i=En(r,n=Gi(n));++e=u)return t;var a=e-Wn(r);if(a<1)return r;var f=o?ai(o,0,a).join(""):t.slice(0,a);if(void 0===i)return f+r;if(o&&(a+=f.length-a),Ho(i)){if(t.slice(a).search(i)){var c,s=f;for(i.global||(i=_t(i.source,ua(rt.exec(i))+"g")),i.lastIndex=0;c=i.exec(s);)var l=c.index;f=f.slice(0,void 0===l?a:l)}}else if(t.indexOf(Xr(i),a)!=a){var h=f.lastIndexOf(i);h>-1&&(f=f.slice(0,h))}return f+r},Te.unescape=function(t){return(t=ua(t))&&D.test(t)?t.replace(L,$n):t},Te.uniqueId=function(t){var n=++kt;return ua(t)+n},Te.upperCase=La,Te.upperFirst=Ia,Te.each=io,Te.eachRight=uo,Te.first=zu,Ga(Te,(uf={},ar(Te,(function(t,n){At.call(Te.prototype,n)||(uf[n]=t)})),uf),{chain:!1}),Te.VERSION="4.17.15",on(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Te[t].placeholder=Te})),on(["drop","take"],(function(t,n){je.prototype[t]=function(e){e=void 0===e?1:ue(na(e),0);var r=this.__filtered__&&!n?new je(this):this.clone();return r.__filtered__?r.__takeCount__=oe(e,r.__takeCount__):r.__views__.push({size:oe(e,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},je.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),on(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;je.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Gi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),on(["head","last"],(function(t,n){var e="take"+(n?"Right":"");je.prototype[t]=function(){return this[e](1).value()[0]}})),on(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");je.prototype[t]=function(){return this.__filtered__?new je(this):this[e](1)}})),je.prototype.compact=function(){return this.filter(Ya)},je.prototype.find=function(t){return this.filter(t).head()},je.prototype.findLast=function(t){return this.reverse().find(t)},je.prototype.invokeMap=Lr((function(t,n){return"function"==typeof t?new je(this):this.map((function(e){return gr(e,t,n)}))})),je.prototype.reject=function(t){return this.filter(wo(Gi(t)))},je.prototype.slice=function(t,n){t=na(t);var e=this;return e.__filtered__&&(t>0||n<0)?new je(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=na(n))<0?e.dropRight(-n):e.take(n-t)),e)},je.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},je.prototype.toArray=function(){return this.take(4294967295)},ar(je.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=Te[r?"take"+("last"==n?"Right":""):n],u=r||/^find/.test(n);i&&(Te.prototype[n]=function(){var n=this.__wrapped__,o=r?[1]:arguments,a=n instanceof je,f=o[0],c=a||jo(n),s=function(t){var n=i.apply(Te,dn([t],o));return r&&l?n[0]:n};c&&e&&"function"==typeof f&&1!=f.length&&(a=c=!1);var l=this.__chain__,h=!!this.__actions__.length,d=u&&!l,p=a&&!h;if(!u&&c){n=p?n:new je(this);var v=t.apply(n,o);return v.__actions__.push({func:Qu,args:[s],thisArg:void 0}),new Ne(v,l)}return d&&p?t.apply(this,o):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),on(["pop","push","shift","sort","splice","unshift"],(function(t){var n=bt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Te.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(jo(i)?i:[],t)}return this[e]((function(e){return n.apply(jo(e)?e:[],t)}))}})),ar(je.prototype,(function(t,n){var e=Te[n];if(e){var r=e.name+"";At.call(ye,r)||(ye[r]=[]),ye[r].push({name:n,func:e})}})),ye[Si(void 0,2).name]=[{name:"wrapper",func:void 0}],je.prototype.clone=function(){var t=new je(this.__wrapped__);return t.__actions__=vi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=vi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=vi(this.__views__),t},je.prototype.reverse=function(){if(this.__filtered__){var t=new je(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},je.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=jo(t),r=n<0,i=e?t.length:0,u=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Te.prototype.plant=function(t){for(var n,e=this;e instanceof Ce;){var r=ku(e);r.__index__=0,r.__values__=void 0,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},Te.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof je){var n=t;return this.__actions__.length&&(n=new je(this)),(n=n.reverse()).__actions__.push({func:Qu,args:[Bu],thisArg:void 0}),new Ne(n,this.__chain__)}return this.thru(Bu)},Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=function(){return ti(this.__wrapped__,this.__actions__)},Te.prototype.first=Te.prototype.head,kn&&(Te.prototype[kn]=function(){return this}),Te}();$t._=Hn,void 0===(i=function(){return Hn}.call(n,e,n,r))||(r.exports=i)}).call(this)}).call(this,e(5),e(6)(t))},function(t,n,e){var r=e(2),i=e(3);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var u,o=0,a={injectType:"lazyStyleTag",insert:"head",singleton:!1},f={};i.locals&&(f.locals=i.locals),f.use=function(){return o++||(u=r(i,a)),f},f.unuse=function(){o>0&&!--o&&(u(),u=null)},t.exports=f},function(t,n,e){"use strict";var r,i=function(){var t={};return function(n){if(void 0===t[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[n]=e}return t[n]}}(),u=[];function o(t){for(var n=-1,e=0;e0)for(var n=this._chartContainer.append("g").attr("class","legend-row"),e=function(e){if(a.includes(r.seriesTargetsWithBounds,r._series[e].target))return"continue";var i=0;null!==n.selectAll("text").node()&&(i=n.node().getBBox().width+25);var u=!1!==r._series[e].visible;n.append("foreignObject").attr("x",i).attr("y",r.height+r.margin.top+r.margin.bottom-37).attr("width",13).attr("height",13).html("
").on("click",(function(){t._options.eventsCallbacks.onLegendClick(e)})),n.append("text").attr("x",i+20).attr("y",r.height+r.margin.top+r.margin.bottom-25).attr("class","metric-legend-"+e).style("font-size","12px").style("fill",r._options.colors[e]).text(r._series[e].target)},r=this,i=0;i1*t?24*t:this._d3.timeMinute.every(this._options.timeInterval):5},Object.defineProperty(t.prototype,"daysCount",{get:function(){var t=this.serieTimestampRange;return void 0===t?0:t/86400},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serieTimestampRange",{get:function(){if(0!==this._series.length){var t=a.first(this._series[0].datapoints)[1];return(a.last(this._series[0].datapoints)[1]-t)/1e3}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeFormat",{get:function(){return void 0!==this._options.tickFormat&&void 0!==this._options.tickFormat.xAxis?this._d3.timeFormat(this._options.tickFormat.xAxis):function(){return""}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xTickTransform",{get:function(){if(void 0===this._options.tickFormat||void 0===this._options.tickFormat.xTickOrientation)return"";switch(this._options.tickFormat.xTickOrientation){case r.VERTICAL:return"translate(-10px, 50px) rotate(-90deg)";case r.HORIZONTAL:return"";case r.DIAGONAL:return"translate(-30px, 30px) rotate(-45deg)";default:return""}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraMargin",{get:function(){var t={top:0,right:0,bottom:0,left:0};if(void 0!==this._options.tickFormat&&void 0!==this._options.tickFormat.xTickOrientation)switch(this._options.tickFormat.xTickOrientation){case r.VERTICAL:t.bottom+=80;break;case r.HORIZONTAL:break;case r.DIAGONAL:t.left+=15,t.bottom+=50,t.right+=10}return void 0!==this._options.labelFormat&&(void 0!==this._options.labelFormat.xAxis&&this._options.labelFormat.xAxis.length>0&&(t.bottom+=20),void 0!==this._options.labelFormat.yAxis&&this._options.labelFormat.yAxis.length>0&&(t.left+=20)),this._series.length>0&&(t.bottom+=25),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._d3Node.node().clientWidth-this.margin.left-this.margin.right},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._d3Node.node().clientHeight-this.margin.top-this.margin.bottom},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margin",{get:function(){return void 0!==this._options.margin?this._options.margin:a.mergeWith({},f,this.extraMargin,a.add)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minValue",{get:function(){var t=a.min(this._series.filter((function(t){return!1!==t.visible})).map((function(t){return a.minBy(t.datapoints,(function(t){return t[0]}))[0]})));if(void 0!==t)return t-this._options.confidence},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){var t=a.max(this._series.filter((function(t){return!1!==t.visible})).map((function(t){return a.maxBy(t.datapoints,(function(t){return t[0]}))[0]})));if(void 0!==t)return t+this._options.confidence},enumerable:!0,configurable:!0}),t.prototype.formatedBound=function(t,n){return a.replace(t,"$__metric_name",n)},Object.defineProperty(t.prototype,"seriesTargetsWithBounds",{get:function(){var t=this;if(void 0===this._options.bounds||void 0===this._options.bounds.upper||void 0===this._options.bounds.lower)return[];var n=[];return this._series.forEach((function(e){n.push(t.formatedBound(t._options.bounds.upper,e.target)),n.push(t.formatedBound(t._options.bounds.lower,e.target))})),n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleSeries",{get:function(){return this._series.filter((function(t){return!1!==t.visible}))},enumerable:!0,configurable:!0}),t.prototype.isOutOfChart=function(){var t=this._d3.mouse(this._chartContainer.node()),n=t[0],e=t[1];return e>this.height+1||e<-1||n>this.width||n<0},t}()}])},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){"use strict";e.r(n),e.d(n,"ChartwerkLineChart",(function(){return OM}));var r={};e.r(r),e.d(r,"version",(function(){return u})),e.d(r,"bisect",(function(){return l})),e.d(r,"bisectRight",(function(){return c})),e.d(r,"bisectLeft",(function(){return s})),e.d(r,"ascending",(function(){return o})),e.d(r,"bisector",(function(){return a})),e.d(r,"cross",(function(){return p})),e.d(r,"descending",(function(){return v})),e.d(r,"deviation",(function(){return y})),e.d(r,"extent",(function(){return b})),e.d(r,"histogram",(function(){return O})),e.d(r,"thresholdFreedmanDiaconis",(function(){return P})),e.d(r,"thresholdScott",(function(){return L})),e.d(r,"thresholdSturges",(function(){return z})),e.d(r,"max",(function(){return I})),e.d(r,"mean",(function(){return D})),e.d(r,"median",(function(){return U})),e.d(r,"merge",(function(){return B})),e.d(r,"min",(function(){return F})),e.d(r,"pairs",(function(){return h})),e.d(r,"permute",(function(){return q})),e.d(r,"quantile",(function(){return R})),e.d(r,"range",(function(){return k})),e.d(r,"scan",(function(){return W})),e.d(r,"shuffle",(function(){return Y})),e.d(r,"sum",(function(){return $})),e.d(r,"ticks",(function(){return C})),e.d(r,"tickIncrement",(function(){return N})),e.d(r,"tickStep",(function(){return j})),e.d(r,"transpose",(function(){return H})),e.d(r,"variance",(function(){return g})),e.d(r,"zip",(function(){return G})),e.d(r,"axisTop",(function(){return rt})),e.d(r,"axisRight",(function(){return it})),e.d(r,"axisBottom",(function(){return ut})),e.d(r,"axisLeft",(function(){return ot})),e.d(r,"brush",(function(){return Ei})),e.d(r,"brushX",(function(){return Si})),e.d(r,"brushY",(function(){return Ti})),e.d(r,"brushSelection",(function(){return ki})),e.d(r,"chord",(function(){return Ii})),e.d(r,"ribbon",(function(){return Ki})),e.d(r,"nest",(function(){return nu})),e.d(r,"set",(function(){return cu})),e.d(r,"map",(function(){return tu})),e.d(r,"keys",(function(){return su})),e.d(r,"values",(function(){return lu})),e.d(r,"entries",(function(){return hu})),e.d(r,"color",(function(){return Vn})),e.d(r,"rgb",(function(){return Kn})),e.d(r,"hsl",(function(){return ie})),e.d(r,"lab",(function(){return gu})),e.d(r,"hcl",(function(){return ku})),e.d(r,"lch",(function(){return Au})),e.d(r,"gray",(function(){return _u})),e.d(r,"cubehelix",(function(){return Ou})),e.d(r,"contours",(function(){return Wu})),e.d(r,"contourDensity",(function(){return Xu})),e.d(r,"dispatch",(function(){return dt})),e.d(r,"drag",(function(){return eo})),e.d(r,"dragDisable",(function(){return Cn})),e.d(r,"dragEnable",(function(){return Nn})),e.d(r,"dsvFormat",(function(){return co})),e.d(r,"csvParse",(function(){return lo})),e.d(r,"csvParseRows",(function(){return ho})),e.d(r,"csvFormat",(function(){return po})),e.d(r,"csvFormatBody",(function(){return vo})),e.d(r,"csvFormatRows",(function(){return _o})),e.d(r,"csvFormatRow",(function(){return go})),e.d(r,"csvFormatValue",(function(){return yo})),e.d(r,"tsvParse",(function(){return mo})),e.d(r,"tsvParseRows",(function(){return xo})),e.d(r,"tsvFormat",(function(){return wo})),e.d(r,"tsvFormatBody",(function(){return Mo})),e.d(r,"tsvFormatRows",(function(){return Ao})),e.d(r,"tsvFormatRow",(function(){return ko})),e.d(r,"tsvFormatValue",(function(){return So})),e.d(r,"autoType",(function(){return To})),e.d(r,"easeLinear",(function(){return Co})),e.d(r,"easeQuad",(function(){return zo})),e.d(r,"easeQuadIn",(function(){return No})),e.d(r,"easeQuadOut",(function(){return jo})),e.d(r,"easeQuadInOut",(function(){return zo})),e.d(r,"easeCubic",(function(){return Xr})),e.d(r,"easeCubicIn",(function(){return Vr})),e.d(r,"easeCubicOut",(function(){return Gr})),e.d(r,"easeCubicInOut",(function(){return Xr})),e.d(r,"easePoly",(function(){return Po})),e.d(r,"easePolyIn",(function(){return Oo})),e.d(r,"easePolyOut",(function(){return Ro})),e.d(r,"easePolyInOut",(function(){return Po})),e.d(r,"easeSin",(function(){return Bo})),e.d(r,"easeSinIn",(function(){return Do})),e.d(r,"easeSinOut",(function(){return Uo})),e.d(r,"easeSinInOut",(function(){return Bo})),e.d(r,"easeExp",(function(){return Wo})),e.d(r,"easeExpIn",(function(){return Fo})),e.d(r,"easeExpOut",(function(){return qo})),e.d(r,"easeExpInOut",(function(){return Wo})),e.d(r,"easeCircle",(function(){return Ho})),e.d(r,"easeCircleIn",(function(){return Yo})),e.d(r,"easeCircleOut",(function(){return $o})),e.d(r,"easeCircleInOut",(function(){return Ho})),e.d(r,"easeBounce",(function(){return Go})),e.d(r,"easeBounceIn",(function(){return Vo})),e.d(r,"easeBounceOut",(function(){return Go})),e.d(r,"easeBounceInOut",(function(){return Xo})),e.d(r,"easeBack",(function(){return Jo})),e.d(r,"easeBackIn",(function(){return Zo})),e.d(r,"easeBackOut",(function(){return Ko})),e.d(r,"easeBackInOut",(function(){return Jo})),e.d(r,"easeElastic",(function(){return na})),e.d(r,"easeElasticIn",(function(){return ta})),e.d(r,"easeElasticOut",(function(){return na})),e.d(r,"easeElasticInOut",(function(){return ea})),e.d(r,"blob",(function(){return ia})),e.d(r,"buffer",(function(){return oa})),e.d(r,"dsv",(function(){return sa})),e.d(r,"csv",(function(){return la})),e.d(r,"tsv",(function(){return ha})),e.d(r,"image",(function(){return da})),e.d(r,"json",(function(){return va})),e.d(r,"text",(function(){return fa})),e.d(r,"xml",(function(){return ga})),e.d(r,"html",(function(){return ya})),e.d(r,"svg",(function(){return ba})),e.d(r,"forceCenter",(function(){return ma})),e.d(r,"forceCollide",(function(){return Oa})),e.d(r,"forceLink",(function(){return La})),e.d(r,"forceManyBody",(function(){return Fa})),e.d(r,"forceRadial",(function(){return qa})),e.d(r,"forceSimulation",(function(){return Ba})),e.d(r,"forceX",(function(){return Wa})),e.d(r,"forceY",(function(){return Ya})),e.d(r,"formatDefaultLocale",(function(){return af})),e.d(r,"format",(function(){return Ja})),e.d(r,"formatPrefix",(function(){return Qa})),e.d(r,"formatLocale",(function(){return of})),e.d(r,"formatSpecifier",(function(){return Ga})),e.d(r,"FormatSpecifier",(function(){return Xa})),e.d(r,"precisionFixed",(function(){return ff})),e.d(r,"precisionPrefix",(function(){return cf})),e.d(r,"precisionRound",(function(){return sf})),e.d(r,"geoArea",(function(){return nc})),e.d(r,"geoBounds",(function(){return Vc})),e.d(r,"geoCentroid",(function(){return us})),e.d(r,"geoCircle",(function(){return _s})),e.d(r,"geoClipAntimeridian",(function(){return Es})),e.d(r,"geoClipCircle",(function(){return Cs})),e.d(r,"geoClipExtent",(function(){return Rs})),e.d(r,"geoClipRectangle",(function(){return Ns})),e.d(r,"geoContains",(function(){return Js})),e.d(r,"geoDistance",(function(){return Ws})),e.d(r,"geoGraticule",(function(){return nl})),e.d(r,"geoGraticule10",(function(){return el})),e.d(r,"geoInterpolate",(function(){return al})),e.d(r,"geoLength",(function(){return Bs})),e.d(r,"geoPath",(function(){return uh})),e.d(r,"geoAlbers",(function(){return Ah})),e.d(r,"geoAlbersUsa",(function(){return kh})),e.d(r,"geoAzimuthalEqualArea",(function(){return Ch})),e.d(r,"geoAzimuthalEqualAreaRaw",(function(){return Eh})),e.d(r,"geoAzimuthalEquidistant",(function(){return jh})),e.d(r,"geoAzimuthalEquidistantRaw",(function(){return Nh})),e.d(r,"geoConicConformal",(function(){return Ih})),e.d(r,"geoConicConformalRaw",(function(){return Lh})),e.d(r,"geoConicEqualArea",(function(){return Mh})),e.d(r,"geoConicEqualAreaRaw",(function(){return wh})),e.d(r,"geoConicEquidistant",(function(){return Fh})),e.d(r,"geoConicEquidistantRaw",(function(){return Bh})),e.d(r,"geoEqualEarth",(function(){return Gh})),e.d(r,"geoEqualEarthRaw",(function(){return Vh})),e.d(r,"geoEquirectangular",(function(){return Uh})),e.d(r,"geoEquirectangularRaw",(function(){return Dh})),e.d(r,"geoGnomonic",(function(){return Zh})),e.d(r,"geoGnomonicRaw",(function(){return Xh})),e.d(r,"geoIdentity",(function(){return Kh})),e.d(r,"geoProjection",(function(){return bh})),e.d(r,"geoProjectionMutator",(function(){return mh})),e.d(r,"geoMercator",(function(){return Oh})),e.d(r,"geoMercatorRaw",(function(){return zh})),e.d(r,"geoNaturalEarth1",(function(){return Qh})),e.d(r,"geoNaturalEarth1Raw",(function(){return Jh})),e.d(r,"geoOrthographic",(function(){return nd})),e.d(r,"geoOrthographicRaw",(function(){return td})),e.d(r,"geoStereographic",(function(){return rd})),e.d(r,"geoStereographicRaw",(function(){return ed})),e.d(r,"geoTransverseMercator",(function(){return ud})),e.d(r,"geoTransverseMercatorRaw",(function(){return id})),e.d(r,"geoRotation",(function(){return ds})),e.d(r,"geoStream",(function(){return Vf})),e.d(r,"geoTransform",(function(){return oh})),e.d(r,"cluster",(function(){return cd})),e.d(r,"hierarchy",(function(){return ld})),e.d(r,"pack",(function(){return Ld})),e.d(r,"packSiblings",(function(){return Nd})),e.d(r,"packEnclose",(function(){return gd})),e.d(r,"partition",(function(){return qd})),e.d(r,"stratify",(function(){return Vd})),e.d(r,"tree",(function(){return tp})),e.d(r,"treemap",(function(){return up})),e.d(r,"treemapBinary",(function(){return op})),e.d(r,"treemapDice",(function(){return Fd})),e.d(r,"treemapSlice",(function(){return np})),e.d(r,"treemapSliceDice",(function(){return ap})),e.d(r,"treemapSquarify",(function(){return ip})),e.d(r,"treemapResquarify",(function(){return fp})),e.d(r,"interpolate",(function(){return je})),e.d(r,"interpolateArray",(function(){return xe})),e.d(r,"interpolateBasis",(function(){return fe})),e.d(r,"interpolateBasisClosed",(function(){return ce})),e.d(r,"interpolateDate",(function(){return Me})),e.d(r,"interpolateDiscrete",(function(){return cp})),e.d(r,"interpolateHue",(function(){return sp})),e.d(r,"interpolateNumber",(function(){return Ae})),e.d(r,"interpolateNumberArray",(function(){return be})),e.d(r,"interpolateObject",(function(){return ke})),e.d(r,"interpolateRound",(function(){return lp})),e.d(r,"interpolateString",(function(){return Ne})),e.d(r,"interpolateTransformCss",(function(){return pr})),e.d(r,"interpolateTransformSvg",(function(){return vr})),e.d(r,"interpolateZoom",(function(){return pp})),e.d(r,"interpolateRgb",(function(){return ve})),e.d(r,"interpolateRgbBasis",(function(){return ge})),e.d(r,"interpolateRgbBasisClosed",(function(){return ye})),e.d(r,"interpolateHsl",(function(){return _p})),e.d(r,"interpolateHslLong",(function(){return gp})),e.d(r,"interpolateLab",(function(){return yp})),e.d(r,"interpolateHcl",(function(){return mp})),e.d(r,"interpolateHclLong",(function(){return xp})),e.d(r,"interpolateCubehelix",(function(){return Mp})),e.d(r,"interpolateCubehelixLong",(function(){return Ap})),e.d(r,"piecewise",(function(){return kp})),e.d(r,"quantize",(function(){return Sp})),e.d(r,"path",(function(){return $i})),e.d(r,"polygonArea",(function(){return Tp})),e.d(r,"polygonCentroid",(function(){return Ep})),e.d(r,"polygonHull",(function(){return jp})),e.d(r,"polygonContains",(function(){return zp})),e.d(r,"polygonLength",(function(){return Op})),e.d(r,"quadtree",(function(){return Ta})),e.d(r,"randomUniform",(function(){return Pp})),e.d(r,"randomNormal",(function(){return Lp})),e.d(r,"randomLogNormal",(function(){return Ip})),e.d(r,"randomBates",(function(){return Up})),e.d(r,"randomIrwinHall",(function(){return Dp})),e.d(r,"randomExponential",(function(){return Bp})),e.d(r,"scaleBand",(function(){return Gp})),e.d(r,"scalePoint",(function(){return Zp})),e.d(r,"scaleIdentity",(function(){return sv})),e.d(r,"scaleLinear",(function(){return cv})),e.d(r,"scaleLog",(function(){return bv})),e.d(r,"scaleSymlog",(function(){return Mv})),e.d(r,"scaleOrdinal",(function(){return Vp})),e.d(r,"scaleImplicit",(function(){return Hp})),e.d(r,"scalePow",(function(){return Ev})),e.d(r,"scaleSqrt",(function(){return Cv})),e.d(r,"scaleQuantile",(function(){return Nv})),e.d(r,"scaleQuantize",(function(){return jv})),e.d(r,"scaleThreshold",(function(){return zv})),e.d(r,"scaleTime",(function(){return cy})),e.d(r,"scaleUtc",(function(){return by})),e.d(r,"scaleSequential",(function(){return wy})),e.d(r,"scaleSequentialLog",(function(){return My})),e.d(r,"scaleSequentialPow",(function(){return ky})),e.d(r,"scaleSequentialSqrt",(function(){return Sy})),e.d(r,"scaleSequentialSymlog",(function(){return Ay})),e.d(r,"scaleSequentialQuantile",(function(){return Ty})),e.d(r,"scaleDiverging",(function(){return Cy})),e.d(r,"scaleDivergingLog",(function(){return Ny})),e.d(r,"scaleDivergingPow",(function(){return zy})),e.d(r,"scaleDivergingSqrt",(function(){return Oy})),e.d(r,"scaleDivergingSymlog",(function(){return jy})),e.d(r,"tickFormat",(function(){return av})),e.d(r,"schemeCategory10",(function(){return Py})),e.d(r,"schemeAccent",(function(){return Ly})),e.d(r,"schemeDark2",(function(){return Iy})),e.d(r,"schemePaired",(function(){return Dy})),e.d(r,"schemePastel1",(function(){return Uy})),e.d(r,"schemePastel2",(function(){return By})),e.d(r,"schemeSet1",(function(){return Fy})),e.d(r,"schemeSet2",(function(){return qy})),e.d(r,"schemeSet3",(function(){return Wy})),e.d(r,"schemeTableau10",(function(){return Yy})),e.d(r,"interpolateBrBG",(function(){return Vy})),e.d(r,"schemeBrBG",(function(){return Hy})),e.d(r,"interpolatePRGn",(function(){return Xy})),e.d(r,"schemePRGn",(function(){return Gy})),e.d(r,"interpolatePiYG",(function(){return Ky})),e.d(r,"schemePiYG",(function(){return Zy})),e.d(r,"interpolatePuOr",(function(){return Qy})),e.d(r,"schemePuOr",(function(){return Jy})),e.d(r,"interpolateRdBu",(function(){return nb})),e.d(r,"schemeRdBu",(function(){return tb})),e.d(r,"interpolateRdGy",(function(){return rb})),e.d(r,"schemeRdGy",(function(){return eb})),e.d(r,"interpolateRdYlBu",(function(){return ub})),e.d(r,"schemeRdYlBu",(function(){return ib})),e.d(r,"interpolateRdYlGn",(function(){return ab})),e.d(r,"schemeRdYlGn",(function(){return ob})),e.d(r,"interpolateSpectral",(function(){return cb})),e.d(r,"schemeSpectral",(function(){return fb})),e.d(r,"interpolateBuGn",(function(){return lb})),e.d(r,"schemeBuGn",(function(){return sb})),e.d(r,"interpolateBuPu",(function(){return db})),e.d(r,"schemeBuPu",(function(){return hb})),e.d(r,"interpolateGnBu",(function(){return vb})),e.d(r,"schemeGnBu",(function(){return pb})),e.d(r,"interpolateOrRd",(function(){return gb})),e.d(r,"schemeOrRd",(function(){return _b})),e.d(r,"interpolatePuBuGn",(function(){return bb})),e.d(r,"schemePuBuGn",(function(){return yb})),e.d(r,"interpolatePuBu",(function(){return xb})),e.d(r,"schemePuBu",(function(){return mb})),e.d(r,"interpolatePuRd",(function(){return Mb})),e.d(r,"schemePuRd",(function(){return wb})),e.d(r,"interpolateRdPu",(function(){return kb})),e.d(r,"schemeRdPu",(function(){return Ab})),e.d(r,"interpolateYlGnBu",(function(){return Tb})),e.d(r,"schemeYlGnBu",(function(){return Sb})),e.d(r,"interpolateYlGn",(function(){return Cb})),e.d(r,"schemeYlGn",(function(){return Eb})),e.d(r,"interpolateYlOrBr",(function(){return jb})),e.d(r,"schemeYlOrBr",(function(){return Nb})),e.d(r,"interpolateYlOrRd",(function(){return Ob})),e.d(r,"schemeYlOrRd",(function(){return zb})),e.d(r,"interpolateBlues",(function(){return Pb})),e.d(r,"schemeBlues",(function(){return Rb})),e.d(r,"interpolateGreens",(function(){return Ib})),e.d(r,"schemeGreens",(function(){return Lb})),e.d(r,"interpolateGreys",(function(){return Ub})),e.d(r,"schemeGreys",(function(){return Db})),e.d(r,"interpolatePurples",(function(){return Fb})),e.d(r,"schemePurples",(function(){return Bb})),e.d(r,"interpolateReds",(function(){return Wb})),e.d(r,"schemeReds",(function(){return qb})),e.d(r,"interpolateOranges",(function(){return $b})),e.d(r,"schemeOranges",(function(){return Yb})),e.d(r,"interpolateCividis",(function(){return Hb})),e.d(r,"interpolateCubehelixDefault",(function(){return Vb})),e.d(r,"interpolateRainbow",(function(){return Kb})),e.d(r,"interpolateWarm",(function(){return Gb})),e.d(r,"interpolateCool",(function(){return Xb})),e.d(r,"interpolateSinebow",(function(){return nm})),e.d(r,"interpolateTurbo",(function(){return em})),e.d(r,"interpolateViridis",(function(){return im})),e.d(r,"interpolateMagma",(function(){return um})),e.d(r,"interpolateInferno",(function(){return om})),e.d(r,"interpolatePlasma",(function(){return am})),e.d(r,"create",(function(){return fm})),e.d(r,"creator",(function(){return on})),e.d(r,"local",(function(){return sm})),e.d(r,"matcher",(function(){return yt})),e.d(r,"mouse",(function(){return Pe})),e.d(r,"namespace",(function(){return St})),e.d(r,"namespaces",(function(){return kt})),e.d(r,"clientPoint",(function(){return Oe})),e.d(r,"select",(function(){return Sn})),e.d(r,"selectAll",(function(){return hm})),e.d(r,"selection",(function(){return kn})),e.d(r,"selector",(function(){return vt})),e.d(r,"selectorAll",(function(){return gt})),e.d(r,"style",(function(){return It})),e.d(r,"touch",(function(){return Re})),e.d(r,"touches",(function(){return dm})),e.d(r,"window",(function(){return Ot})),e.d(r,"event",(function(){return hn})),e.d(r,"customEvent",(function(){return yn})),e.d(r,"arc",(function(){return Rm})),e.d(r,"area",(function(){return Bm})),e.d(r,"line",(function(){return Um})),e.d(r,"pie",(function(){return Wm})),e.d(r,"areaRadial",(function(){return Xm})),e.d(r,"radialArea",(function(){return Xm})),e.d(r,"lineRadial",(function(){return Gm})),e.d(r,"radialLine",(function(){return Gm})),e.d(r,"pointRadial",(function(){return Zm})),e.d(r,"linkHorizontal",(function(){return ix})),e.d(r,"linkVertical",(function(){return ux})),e.d(r,"linkRadial",(function(){return ox})),e.d(r,"symbol",(function(){return Ax})),e.d(r,"symbols",(function(){return Mx})),e.d(r,"symbolCircle",(function(){return ax})),e.d(r,"symbolCross",(function(){return fx})),e.d(r,"symbolDiamond",(function(){return lx})),e.d(r,"symbolSquare",(function(){return _x})),e.d(r,"symbolStar",(function(){return vx})),e.d(r,"symbolTriangle",(function(){return yx})),e.d(r,"symbolWye",(function(){return wx})),e.d(r,"curveBasisClosed",(function(){return Nx})),e.d(r,"curveBasisOpen",(function(){return zx})),e.d(r,"curveBasis",(function(){return Ex})),e.d(r,"curveBundle",(function(){return Rx})),e.d(r,"curveCardinalClosed",(function(){return Ux})),e.d(r,"curveCardinalOpen",(function(){return Fx})),e.d(r,"curveCardinal",(function(){return Ix})),e.d(r,"curveCatmullRomClosed",(function(){return Hx})),e.d(r,"curveCatmullRomOpen",(function(){return Gx})),e.d(r,"curveCatmullRom",(function(){return Yx})),e.d(r,"curveLinearClosed",(function(){return Zx})),e.d(r,"curveLinear",(function(){return Lm})),e.d(r,"curveMonotoneX",(function(){return iw})),e.d(r,"curveMonotoneY",(function(){return uw})),e.d(r,"curveNatural",(function(){return fw})),e.d(r,"curveStep",(function(){return sw})),e.d(r,"curveStepAfter",(function(){return hw})),e.d(r,"curveStepBefore",(function(){return lw})),e.d(r,"stack",(function(){return _w})),e.d(r,"stackOffsetExpand",(function(){return gw})),e.d(r,"stackOffsetDiverging",(function(){return yw})),e.d(r,"stackOffsetNone",(function(){return dw})),e.d(r,"stackOffsetSilhouette",(function(){return bw})),e.d(r,"stackOffsetWiggle",(function(){return mw})),e.d(r,"stackOrderAppearance",(function(){return xw})),e.d(r,"stackOrderAscending",(function(){return Mw})),e.d(r,"stackOrderDescending",(function(){return kw})),e.d(r,"stackOrderInsideOut",(function(){return Sw})),e.d(r,"stackOrderNone",(function(){return pw})),e.d(r,"stackOrderReverse",(function(){return Tw})),e.d(r,"timeInterval",(function(){return Pv})),e.d(r,"timeMillisecond",(function(){return __})),e.d(r,"timeMilliseconds",(function(){return g_})),e.d(r,"utcMillisecond",(function(){return __})),e.d(r,"utcMilliseconds",(function(){return g_})),e.d(r,"timeSecond",(function(){return d_})),e.d(r,"timeSeconds",(function(){return p_})),e.d(r,"utcSecond",(function(){return d_})),e.d(r,"utcSeconds",(function(){return p_})),e.d(r,"timeMinute",(function(){return s_})),e.d(r,"timeMinutes",(function(){return l_})),e.d(r,"timeHour",(function(){return a_})),e.d(r,"timeHours",(function(){return f_})),e.d(r,"timeDay",(function(){return i_})),e.d(r,"timeDays",(function(){return u_})),e.d(r,"timeWeek",(function(){return Wv})),e.d(r,"timeWeeks",(function(){return Zv})),e.d(r,"timeSunday",(function(){return Wv})),e.d(r,"timeSundays",(function(){return Zv})),e.d(r,"timeMonday",(function(){return Yv})),e.d(r,"timeMondays",(function(){return Kv})),e.d(r,"timeTuesday",(function(){return $v})),e.d(r,"timeTuesdays",(function(){return Jv})),e.d(r,"timeWednesday",(function(){return Hv})),e.d(r,"timeWednesdays",(function(){return Qv})),e.d(r,"timeThursday",(function(){return Vv})),e.d(r,"timeThursdays",(function(){return t_})),e.d(r,"timeFriday",(function(){return Gv})),e.d(r,"timeFridays",(function(){return n_})),e.d(r,"timeSaturday",(function(){return Xv})),e.d(r,"timeSaturdays",(function(){return e_})),e.d(r,"timeMonth",(function(){return Bv})),e.d(r,"timeMonths",(function(){return Fv})),e.d(r,"timeYear",(function(){return Iv})),e.d(r,"timeYears",(function(){return Dv})),e.d(r,"utcMinute",(function(){return gy})),e.d(r,"utcMinutes",(function(){return yy})),e.d(r,"utcHour",(function(){return py})),e.d(r,"utcHours",(function(){return vy})),e.d(r,"utcDay",(function(){return R_})),e.d(r,"utcDays",(function(){return P_})),e.d(r,"utcWeek",(function(){return b_})),e.d(r,"utcWeeks",(function(){return S_})),e.d(r,"utcSunday",(function(){return b_})),e.d(r,"utcSundays",(function(){return S_})),e.d(r,"utcMonday",(function(){return m_})),e.d(r,"utcMondays",(function(){return T_})),e.d(r,"utcTuesday",(function(){return x_})),e.d(r,"utcTuesdays",(function(){return E_})),e.d(r,"utcWednesday",(function(){return w_})),e.d(r,"utcWednesdays",(function(){return C_})),e.d(r,"utcThursday",(function(){return M_})),e.d(r,"utcThursdays",(function(){return N_})),e.d(r,"utcFriday",(function(){return A_})),e.d(r,"utcFridays",(function(){return j_})),e.d(r,"utcSaturday",(function(){return k_})),e.d(r,"utcSaturdays",(function(){return z_})),e.d(r,"utcMonth",(function(){return ly})),e.d(r,"utcMonths",(function(){return hy})),e.d(r,"utcYear",(function(){return I_})),e.d(r,"utcYears",(function(){return D_})),e.d(r,"timeFormatDefaultLocale",(function(){return uy})),e.d(r,"timeFormat",(function(){return Y_})),e.d(r,"timeParse",(function(){return $_})),e.d(r,"utcFormat",(function(){return H_})),e.d(r,"utcParse",(function(){return V_})),e.d(r,"timeFormatLocale",(function(){return q_})),e.d(r,"isoFormat",(function(){return Ew})),e.d(r,"isoParse",(function(){return Cw})),e.d(r,"now",(function(){return Ye})),e.d(r,"timer",(function(){return Ve})),e.d(r,"timerFlush",(function(){return Ge})),e.d(r,"timeout",(function(){return Je})),e.d(r,"interval",(function(){return Nw})),e.d(r,"transition",(function(){return Yr})),e.d(r,"active",(function(){return Qr})),e.d(r,"interrupt",(function(){return cr})),e.d(r,"voronoi",(function(){return vM})),e.d(r,"zoom",(function(){return NM})),e.d(r,"zoomTransform",(function(){return mM})),e.d(r,"zoomIdentity",(function(){return bM}));var i=e(1),u="5.16.0",o=function(t,n){return tn?1:t>=n?0:NaN},a=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return o(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[u],e)>0?i=u:r=u+1}return r}}};var f=a(o),c=f.right,s=f.left,l=c,h=function(t,n){null==n&&(n=d);for(var e=0,r=t.length-1,i=t[0],u=new Array(r<0?0:r);et?1:n>=t?0:NaN},_=function(t){return null===t?NaN:+t},g=function(t,n){var e,r,i=t.length,u=0,o=-1,a=0,f=0;if(null==n)for(;++o1)return f/(u-1)},y=function(t,n){var e=g(t,n);return e?Math.sqrt(e):e},b=function(t,n){var e,r,i,u=t.length,o=-1;if(null==n){for(;++o=e)for(r=i=e;++oe&&(r=e),i=e)for(r=i=e;++oe&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/o),n=Math.floor(n/o),u=new Array(i=Math.ceil(n-t+1));++a=0?(u>=S?10:u>=T?5:u>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=S?10:u>=T?5:u>=E?2:1)}function j(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=S?i*=10:u>=T?i*=5:u>=E&&(i*=2),ns;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:c,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,u=Math.floor(i),o=+e(t[u],u,t);return o+(+e(t[u+1],u+1,t)-o)*(i-u)}},P=function(t,n,e){return t=w.call(t,_).sort(o),Math.ceil((e-n)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))},L=function(t,n,e){return Math.ceil((e-n)/(3.5*y(t)*Math.pow(t.length,-1/3)))},I=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u=e)for(r=e;++ur&&(r=e)}else for(;++u=e)for(r=e;++ur&&(r=e);return r},D=function(t,n){var e,r=t.length,i=r,u=-1,o=0;if(null==n)for(;++u=0;)for(n=(r=t[i]).length;--n>=0;)e[--o]=r[n];return e},F=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u=e)for(r=e;++ue&&(r=e)}else for(;++u=e)for(r=e;++ue&&(r=e);return r},q=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},W=function(t,n){if(e=t.length){var e,r,i=0,u=0,a=t[u];for(null==n&&(n=o);++i=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function lt(t,n){for(var e,r=0,i=t.length;r0)for(var e,r,i=new Array(e),u=0;un?1:t>=n?0:NaN}var At="http://www.w3.org/1999/xhtml",kt={svg:"http://www.w3.org/2000/svg",xhtml:At,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},St=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),kt.hasOwnProperty(n)?{space:kt[n],local:t}:t};function Tt(t){return function(){this.removeAttribute(t)}}function Et(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ct(t,n){return function(){this.setAttribute(t,n)}}function Nt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function jt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function zt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var Ot=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Rt(t){return function(){this.style.removeProperty(t)}}function Pt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Lt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function It(t,n){return t.style.getPropertyValue(n)||Ot(t).getComputedStyle(t,null).getPropertyValue(n)}function Dt(t){return function(){delete this[t]}}function Ut(t,n){return function(){this[t]=n}}function Bt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Ft(t){return t.trim().split(/^|\s+/)}function qt(t){return t.classList||new Wt(t)}function Wt(t){this._node=t,this._names=Ft(t.getAttribute("class")||"")}function Yt(t,n){for(var e=qt(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Xt(){this.textContent=""}function Zt(t){return function(){this.textContent=t}}function Kt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Jt(){this.innerHTML=""}function Qt(t){return function(){this.innerHTML=t}}function tn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function nn(){this.nextSibling&&this.parentNode.appendChild(this)}function en(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rn(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===At&&n.documentElement.namespaceURI===At?n.createElement(t):n.createElementNS(e,t)}}function un(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var on=function(t){var n=St(t);return(n.local?un:rn)(n)};function an(){return null}function fn(){var t=this.parentNode;t&&t.removeChild(this)}function cn(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function sn(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var ln={},hn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ln={mouseenter:"mouseover",mouseleave:"mouseout"}));function dn(t,n,e){return t=pn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function pn(t,n,e){return function(r){var i=hn;hn=r;try{t.call(this,this.__data__,n,e)}finally{hn=i}}}function vn(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function _n(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r=x&&(x=m+1);!(b=g[x])&&++x=0;)(r=i[u])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Mt);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u1?this.each((null==n?Rt:"function"==typeof n?Lt:Pt)(t,n,null==e?"":e)):It(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Dt:"function"==typeof n?Bt:Ut)(t,n)):this.node()[t]},classed:function(t,n){var e=Ft(t+"");if(arguments.length<2){for(var r=qt(this.node()),i=-1,u=e.length;++i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Xn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Xn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Dn.exec(t))?new Jn(n[1],n[2],n[3],1):(n=Un.exec(t))?new Jn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Bn.exec(t))?Xn(n[1],n[2],n[3],n[4]):(n=Fn.exec(t))?Xn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=qn.exec(t))?ee(n[1],n[2]/100,n[3]/100,1):(n=Wn.exec(t))?ee(n[1],n[2]/100,n[3]/100,n[4]):Yn.hasOwnProperty(t)?Gn(Yn[t]):"transparent"===t?new Jn(NaN,NaN,NaN,0):null}function Gn(t){return new Jn(t>>16&255,t>>8&255,255&t,1)}function Xn(t,n,e,r){return r<=0&&(t=n=e=NaN),new Jn(t,n,e,r)}function Zn(t){return t instanceof On||(t=Vn(t)),t?new Jn((t=t.rgb()).r,t.g,t.b,t.opacity):new Jn}function Kn(t,n,e,r){return 1===arguments.length?Zn(t):new Jn(t,n,e,null==r?1:r)}function Jn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Qn(){return"#"+ne(this.r)+ne(this.g)+ne(this.b)}function te(){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+")")}function ne(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ee(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ue(t,n,e,r)}function re(t){if(t instanceof ue)return new ue(t.h,t.s,t.l,t.opacity);if(t instanceof On||(t=Vn(t)),!t)return new ue;if(t instanceof ue)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),u=Math.max(n,e,r),o=NaN,a=u-i,f=(u+i)/2;return a?(o=n===u?(e-r)/a+6*(e0&&f<1?0:o,new ue(o,a,f,t.opacity)}function ie(t,n,e,r){return 1===arguments.length?re(t):new ue(t,n,e,null==r?1:r)}function ue(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function oe(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function ae(t,n,e,r,i){var u=t*t,o=u*t;return((1-3*t+3*u-o)*n+(4-6*u+3*o)*e+(1+3*t+3*u-3*o)*r+o*i)/6}jn(On,Vn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$n,formatHex:$n,formatHsl:function(){return re(this).formatHsl()},formatRgb:Hn,toString:Hn}),jn(Jn,Kn,zn(On,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Jn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Jn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qn,formatHex:Qn,formatRgb:te,toString:te})),jn(ue,ie,zn(On,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Jn(oe(t>=240?t-240:t+120,i,r),oe(t,i,r),oe(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var fe=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],u=t[r+1],o=r>0?t[r-1]:2*i-u,a=r180||e<-180?e-360*Math.round(e/360):e):se(isNaN(t)?n:t)}function de(t){return 1==(t=+t)?pe:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):se(isNaN(n)?e:n)}}function pe(t,n){var e=n-t;return e?le(t,e):se(isNaN(t)?n:t)}var ve=function t(n){var e=de(n);function r(t,n){var r=e((t=Kn(t)).r,(n=Kn(n)).r),i=e(t.g,n.g),u=e(t.b,n.b),o=pe(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=u(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function _e(t){return function(n){var e,r,i=n.length,u=new Array(i),o=new Array(i),a=new Array(i);for(e=0;eu&&(i=n.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,f.push({i:o,x:Ae(e,r)})),u=Te.lastIndex;return u=0&&n._call.call(null,t),n=n._next;--Le}function Xe(){Be=(Ue=qe.now())+Fe,Le=Ie=0;try{Ge()}finally{Le=0,function(){var t,n,e=Ee,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ee=n);Ce=t,Ke(r)}(),Be=0}}function Ze(){var t=qe.now(),n=t-Ue;n>1e3&&(Fe-=n,Ue=t)}function Ke(t){Le||(Ie&&(Ie=clearTimeout(Ie)),t-Be>24?(t<1/0&&(Ie=setTimeout(Xe,t-qe.now()-Fe)),De&&(De=clearInterval(De))):(De||(Ue=qe.now(),De=setInterval(Ze,1e3)),Le=1,We(Xe)))}He.prototype=Ve.prototype={constructor:He,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ye():+e)+(null==n?0:+n),this._next||Ce===this||(Ce?Ce._next=this:Ee=this,Ce=this),this._call=t,this._time=e,Ke()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ke())}};var Je=function(t,n,e){var r=new He;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},Qe=dt("start","end","cancel","interrupt"),tr=[],nr=function(t,n,e,r,i,u){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(f){var c,s,l,h;if(1!==e.state)return a();for(c in i)if((h=i[c]).name===e.name){if(3===h.state)return Je(u);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return e}function rr(t,n){var e=ir(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ir(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var ur,or,ar,fr,cr=function(t,n){var e,r,i,u=t.__transition,o=!0;if(u){for(i in n=null==n?null:n+"",u)(e=u[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete u[i]):o=!1;o&&delete t.__transition}},sr=180/Math.PI,lr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},hr=function(t,n,e,r,i,u){var o,a,f;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(f=t*e+n*r)&&(e-=t*f,r-=n*f),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,f/=a),t*r180?n+=360:n-t>180&&(t+=360),u.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Ae(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(u.rotate,o.rotate,a,f),function(t,n,e,u){t!==n?u.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Ae(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(u.skewX,o.skewX,a,f),function(t,n,e,r,u,o){if(t!==e||n!==r){var a=u.push(i(u)+"scale(",null,",",null,")");o.push({i:a-4,x:Ae(t,e)},{i:a-2,x:Ae(n,r)})}else 1===e&&1===r||u.push(i(u)+"scale("+e+","+r+")")}(u.scaleX,u.scaleY,o.scaleX,o.scaleY,a,f),u=o=null,function(t){for(var n,e=-1,r=f.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?er:rr;return function(){var o=u(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(n,e),o.on=i}}var Lr=kn.prototype.constructor;function Ir(t){return function(){this.style.removeProperty(t)}}function Dr(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ur(t,n,e){var r,i;function u(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&Dr(t,u,e)),r}return u._value=n,u}function Br(t){return function(n){this.textContent=t.call(this,n)}}function Fr(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Br(r)),n}return r._value=t,r}var qr=0;function Wr(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Yr(t){return kn().transition(t)}function $r(){return++qr}var Hr=kn.prototype;function Vr(t){return t*t*t}function Gr(t){return--t*t*t+1}function Xr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Wr.prototype=Yr.prototype={constructor:Wr,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=vt(t));for(var r=this._groups,i=r.length,u=new Array(i),o=0;o1&&e.name===n)return new Wr([[t]],Jr,n,+r);return null},ti=function(t){return function(){return t}},ni=function(t,n,e){this.target=t,this.type=n,this.selection=e};function ei(){hn.stopImmediatePropagation()}var ri=function(){hn.preventDefault(),hn.stopImmediatePropagation()},ii={name:"drag"},ui={name:"space"},oi={name:"handle"},ai={name:"center"};function fi(t){return[+t[0],+t[1]]}function ci(t){return[fi(t[0]),fi(t[1])]}function si(t){return function(n){return Re(n,hn.touches,t)}}var li={name:"x",handles:["w","e"].map(bi),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},hi={name:"y",handles:["n","s"].map(bi),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},di={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(bi),input:function(t){return null==t?null:ci(t)},output:function(t){return t}},pi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},vi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},_i={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},gi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},yi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function bi(t){return{type:t}}function mi(){return!hn.ctrlKey&&!hn.button}function xi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mi(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ai(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function ki(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Si(){return Ci(li)}function Ti(){return Ci(hi)}var Ei=function(){return Ci(di)};function Ci(t){var n,e=xi,r=mi,i=wi,u=!0,o=dt("start","brush","end"),a=6;function f(n){var e=n.property("__brush",v).selectAll(".overlay").data([bi("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pi.overlay).merge(e).each((function(){var t=Mi(this).extent;Sn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([bi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return pi[t.type]})),n.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=Sn(this),n=Mi(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-a/2:n[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-a/2:n[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,n,e){return!e&&t.__brush.emitter||new l(t,n)}function l(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function h(){if((!n||hn.touches)&&r.apply(this,arguments)){var e,i,o,a,f,l,h,d,p,v,_,g=this,y=hn.target.__data__.type,b="selection"===(u&&hn.metaKey?y="overlay":y)?ii:u&&hn.altKey?ai:oi,m=t===hi?null:gi[y],x=t===li?null:yi[y],w=Mi(g),M=w.extent,A=w.selection,k=M[0][0],S=M[0][1],T=M[1][0],E=M[1][1],C=0,N=0,j=m&&x&&u&&hn.shiftKey,z=hn.touches?si(hn.changedTouches[0].identifier):Pe,O=z(g),R=O,P=s(g,arguments,!0).beforestart();"overlay"===y?(A&&(p=!0),w.selection=A=[[e=t===hi?k:O[0],o=t===li?S:O[1]],[f=t===hi?T:e,h=t===li?E:o]]):(e=A[0][0],o=A[0][1],f=A[1][0],h=A[1][1]),i=e,a=o,l=f,d=h;var L=Sn(g).attr("pointer-events","none"),I=L.selectAll(".overlay").attr("cursor",pi[y]);if(hn.touches)P.moved=U,P.ended=F;else{var D=Sn(hn.view).on("mousemove.brush",U,!0).on("mouseup.brush",F,!0);u&&D.on("keydown.brush",q,!0).on("keyup.brush",W,!0),Cn(hn.view)}ei(),cr(g),c.call(g),P.start()}function U(){var t=z(g);!j||v||_||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?_=!0:v=!0),R=t,p=!0,ri(),B()}function B(){var t;switch(C=R[0]-O[0],N=R[1]-O[1],b){case ui:case ii:m&&(C=Math.max(k-e,Math.min(T-f,C)),i=e+C,l=f+C),x&&(N=Math.max(S-o,Math.min(E-h,N)),a=o+N,d=h+N);break;case oi:m<0?(C=Math.max(k-e,Math.min(T-e,C)),i=e+C,l=f):m>0&&(C=Math.max(k-f,Math.min(T-f,C)),i=e,l=f+C),x<0?(N=Math.max(S-o,Math.min(E-o,N)),a=o+N,d=h):x>0&&(N=Math.max(S-h,Math.min(E-h,N)),a=o,d=h+N);break;case ai:m&&(i=Math.max(k,Math.min(T,e-C*m)),l=Math.max(k,Math.min(T,f+C*m))),x&&(a=Math.max(S,Math.min(E,o-N*x)),d=Math.max(S,Math.min(E,h+N*x)))}l0&&(e=i-C),x<0?h=d-N:x>0&&(o=a-N),b=ui,I.attr("cursor",pi.selection),B());break;default:return}ri()}function W(){switch(hn.keyCode){case 16:j&&(v=_=j=!1,B());break;case 18:b===ai&&(m<0?f=l:m>0&&(e=i),x<0?h=d:x>0&&(o=a),b=oi,B());break;case 32:b===ui&&(hn.altKey?(m&&(f=l-C*m,e=i+C*m),x&&(h=d-N*x,o=a+N*x),b=ai):(m<0?f=l:m>0&&(e=i),x<0?h=d:x>0&&(o=a),b=oi),I.attr("cursor",pi[y]),B());break;default:return}ri()}}function d(){s(this,arguments).moved()}function p(){s(this,arguments).ended()}function v(){var n=this.__brush||{selection:null};return n.extent=ci(e.apply(this,arguments)),n.dim=t,n}return f.move=function(n,e){n.selection?n.on("start.brush",(function(){s(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){s(this,arguments).end()})).tween("brush",(function(){var n=this,r=n.__brush,i=s(n,arguments),u=r.selection,o=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),a=je(u,o);function f(t){r.selection=1===t&&null===o?null:a(t),c.call(n),i.brush()}return null!==u&&null!==o?f:f(1)})):n.each((function(){var n=this,r=arguments,i=n.__brush,u=t.input("function"==typeof e?e.apply(n,r):e,i.extent),o=s(n,r).beforestart();cr(n),i.selection=null===u?null:u,c.call(n),o.start().brush().end()}))},f.clear=function(t){f.move(t,null)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){yn(new ni(f,n,t.output(this.state.selection)),o.apply,o,[n,this.that,this.args])}},f.extent=function(t){return arguments.length?(e="function"==typeof t?t:ti(ci(t)),f):e},f.filter=function(t){return arguments.length?(r="function"==typeof t?t:ti(!!t),f):r},f.touchable=function(t){return arguments.length?(i="function"==typeof t?t:ti(!!t),f):i},f.handleSize=function(t){return arguments.length?(a=+t,f):a},f.keyModifiers=function(t){return arguments.length?(u=!!t,f):u},f.on=function(){var t=o.on.apply(o,arguments);return t===o?f:t},f}var Ni=Math.cos,ji=Math.sin,zi=Math.PI,Oi=zi/2,Ri=2*zi,Pi=Math.max;function Li(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}var Ii=function(){var t=0,n=null,e=null,r=null;function i(i){var u,o,a,f,c,s,l=i.length,h=[],d=k(l),p=[],v=[],_=v.groups=new Array(l),g=new Array(l*l);for(u=0,c=-1;++c1e-6)if(Math.abs(s*a-f*c)>1e-6&&i){var h=e-u,d=r-o,p=a*a+f*f,v=h*h+d*d,_=Math.sqrt(p),g=Math.sqrt(l),y=i*Math.tan((Bi-Math.acos((p+l-v)/(2*_*g)))/2),b=y/g,m=y/_;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(n+b*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>c*d)+","+(this._x1=t+m*a)+","+(this._y1=n+m*f)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,u){t=+t,n=+n,u=!!u;var o=(e=+e)*Math.cos(r),a=e*Math.sin(r),f=t+o,c=n+a,s=1^u,l=u?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+f+","+c:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+f+","+c),e&&(l<0&&(l=l%Fi+Fi),l>qi?this._+="A"+e+","+e+",0,1,"+s+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+s+","+(this._x1=f)+","+(this._y1=c):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=Bi)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var $i=Yi;function Hi(t){return t.source}function Vi(t){return t.target}function Gi(t){return t.radius}function Xi(t){return t.startAngle}function Zi(t){return t.endAngle}var Ki=function(){var t=Hi,n=Vi,e=Gi,r=Xi,i=Zi,u=null;function o(){var o,a=Di.call(arguments),f=t.apply(this,a),c=n.apply(this,a),s=+e.apply(this,(a[0]=f,a)),l=r.apply(this,a)-Oi,h=i.apply(this,a)-Oi,d=s*Ni(l),p=s*ji(l),v=+e.apply(this,(a[0]=c,a)),_=r.apply(this,a)-Oi,g=i.apply(this,a)-Oi;if(u||(u=o=$i()),u.moveTo(d,p),u.arc(0,0,s,l,h),l===_&&h===g||(u.quadraticCurveTo(0,0,v*Ni(_),v*ji(_)),u.arc(0,0,v,_,g)),u.quadraticCurveTo(0,0,d,p),u.closePath(),o)return u=null,o+""||null}return o.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ui(+t),o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ui(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ui(+t),o):i},o.source=function(n){return arguments.length?(t=n,o):t},o.target=function(t){return arguments.length?(n=t,o):n},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o};function Ji(){}function Qi(t,n){var e=new Ji;if(t instanceof Ji)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,u=t.length;if(null==n)for(;++i=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var f,c,s,l=-1,h=e.length,d=r[i++],p=tu(),v=o();++lr.length)return e;var o,a=i[u-1];return null!=n&&u>=r.length?o=e.entries():(o=[],e.each((function(n,e){o.push({key:e,values:t(n,u)})}))),null!=a?o.sort((function(t,n){return a(t.key,n.key)})):o}(u(t,0,iu,uu),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function eu(){return{}}function ru(t,n,e){t[n]=e}function iu(){return tu()}function uu(t,n,e){t.set(n,e)}function ou(){}var au=tu.prototype;function fu(t,n){var e=new ou;if(t instanceof ou)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function mu(t){return t>6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}function xu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function wu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Mu(t){if(t instanceof Su)return new Su(t.h,t.c,t.l,t.opacity);if(t instanceof yu||(t=vu(t)),0===t.a&&0===t.b)return new Su(NaN,0r!=d>r&&e<(h-c)*(r-s)/(d-s)+c&&(i=-i)}return i}function Bu(t,n,e){var r,i,u,o;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],u=e[r],o=n[r],i<=u&&u<=o||o<=u&&u<=i)}var Fu=function(){},qu=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],Wu=function(){var t=1,n=1,e=z,r=a;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Lu);else{var r=b(t),i=r[0],o=r[1];n=j(i,o,n),n=k(Math.floor(i/n)*n,Math.floor(o/n)*n,n)}return n.map((function(n){return u(t,n)}))}function u(e,i){var u=[],a=[];return function(e,r,i){var u,a,f,c,s,l,h=new Array,d=new Array;u=a=-1,c=e[0]>=r,qu[c<<1].forEach(p);for(;++u=r,qu[f|c<<1].forEach(p);qu[c<<0].forEach(p);for(;++a=r,s=e[a*t]>=r,qu[c<<1|s<<2].forEach(p);++u=r,l=s,s=e[a*t+u+1]>=r,qu[f|c<<1|s<<2|l<<3].forEach(p);qu[c|s<<3].forEach(p)}u=-1,s=e[a*t]>=r,qu[s<<2].forEach(p);for(;++u=r,qu[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+u,t[0][1]+a],f=[t[1][0]+u,t[1][1]+a],c=o(r),s=o(f);(n=d[c])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(f),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(f),d[n.end=s]=n):(n=h[s])?(e=d[c])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(f),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=c]=n):h[c]=d[s]={start:c,end:s,ring:[r,f]}}qu[s<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?u.push([t]):a.push(t)})),a.forEach((function(t){for(var n,e=0,r=u.length;e0&&o0&&a0&&u>0))throw new Error("invalid size");return t=r,n=u,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Iu(Pu.call(t)):Iu(t),i):e},i.smooth=function(t){return arguments.length?(r=t?a:Fu,i):r===a},i};function Yu(t,n,e){for(var r=t.width,i=t.height,u=1+(e<<1),o=0;o=e&&(a>=u&&(f-=t.data[a-u+o*r]),n.data[a-e+o*r]=f/Math.min(a+1,r-1+u-a,u))}function $u(t,n,e){for(var r=t.width,i=t.height,u=1+(e<<1),o=0;o=e&&(a>=u&&(f-=t.data[o+(a-u)*r]),n.data[o+(a-e)*r]=f/Math.min(a+1,i-1+u-a,u))}function Hu(t){return t[0]}function Vu(t){return t[1]}function Gu(){return 1}var Xu=function(){var t=Hu,n=Vu,e=Gu,r=960,i=500,u=20,o=2,a=3*u,f=r+2*a>>o,c=i+2*a>>o,s=Iu(20);function l(r){var i=new Float32Array(f*c),l=new Float32Array(f*c);r.forEach((function(r,u,s){var l=+t(r,u,s)+a>>o,h=+n(r,u,s)+a>>o,d=+e(r,u,s);l>=0&&l=0&&h>o),$u({width:f,height:c,data:l},{width:f,height:c,data:i},u>>o),Yu({width:f,height:c,data:i},{width:f,height:c,data:l},u>>o),$u({width:f,height:c,data:l},{width:f,height:c,data:i},u>>o),Yu({width:f,height:c,data:i},{width:f,height:c,data:l},u>>o),$u({width:f,height:c,data:l},{width:f,height:c,data:i},u>>o);var d=s(i);if(!Array.isArray(d)){var p=I(i);d=j(0,p,d),(d=k(0,Math.floor(p/d)*d,d)).shift()}return Wu().thresholds(d).size([f,c])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,o)-a,t[1]=t[1]*Math.pow(2,o)-a}function _(){return f=r+2*(a=3*u)>>o,c=i+2*a>>o,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:Iu(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Iu(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:Iu(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return r=n,i=e,_()},l.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),_()},l.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?Iu(Pu.call(t)):Iu(t),l):s},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(u*(u+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return u=Math.round((Math.sqrt(4*t*t+1)-1)/2),_()},l},Zu=function(t){return function(){return t}};function Ku(t,n,e,r,i,u,o,a,f,c){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=u,this.y=o,this.dx=a,this.dy=f,this._=c}function Ju(){return!hn.ctrlKey&&!hn.button}function Qu(){return this.parentNode}function to(t){return null==t?{x:hn.x,y:hn.y}:t}function no(){return navigator.maxTouchPoints||"ontouchstart"in this}Ku.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var eo=function(){var t,n,e,r,i=Ju,u=Qu,o=to,a=no,f={},c=dt("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",_).on("touchmove.drag",g).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=b("mouse",u.apply(this,arguments),Pe,this,arguments);o&&(Sn(hn.view).on("mousemove.drag",p,!0).on("mouseup.drag",v,!0),Cn(hn.view),Tn(),e=!1,t=hn.clientX,n=hn.clientY,o("start"))}}function p(){if(En(),!e){var r=hn.clientX-t,i=hn.clientY-n;e=r*r+i*i>l}f.mouse("drag")}function v(){Sn(hn.view).on("mousemove.drag mouseup.drag",null),Nn(hn.view,e),En(),f.mouse("end")}function _(){if(i.apply(this,arguments)){var t,n,e=hn.changedTouches,r=u.apply(this,arguments),o=e.length;for(t=0;t9999?"+"+ao(n,6):ao(n,4))+"-"+ao(t.getUTCMonth()+1,2)+"-"+ao(t.getUTCDate(),2)+(u?"T"+ao(e,2)+":"+ao(r,2)+":"+ao(i,2)+"."+ao(u,3)+"Z":i?"T"+ao(e,2)+":"+ao(r,2)+":"+ao(i,2)+"Z":r||e?"T"+ao(e,2)+":"+ao(r,2)+"Z":"")}var co=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],u=t.length,o=0,a=0,f=u<=0,c=!1;function s(){if(f)return io;if(c)return c=!1,ro;var n,r,i=o;if(34===t.charCodeAt(i)){for(;o++=u?f=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,n-1).replace(/""/g,'"')}for(;o=(u=(v+g)/2))?v=u:g=u,(s=e>=(o=(_+y)/2))?_=o:y=o,i=d,!(d=d[l=s<<1|c]))return i[l]=p,t;if(a=+t._x.call(null,d.data),f=+t._y.call(null,d.data),n===a&&e===f)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=n>=(u=(v+g)/2))?v=u:g=u,(s=e>=(o=(_+y)/2))?_=o:y=o}while((l=s<<1|c)==(h=(f>=o)<<1|a>=u));return i[h]=d,i[l]=p,t}var Aa=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function ka(t){return t[0]}function Sa(t){return t[1]}function Ta(t,n,e){var r=new Ea(null==n?ka:n,null==e?Sa:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ea(t,n,e,r,i,u){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=u,this._root=void 0}function Ca(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Na=Ta.prototype=Ea.prototype;function ja(t){return t.x+t.vx}function za(t){return t.y+t.vy}Na.copy=function(){var t,n,e=new Ea(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Ca(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Ca(n));return e},Na.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Ma(this.cover(n,e),n,e,t)},Na.addAll=function(t){var n,e,r,i,u=t.length,o=new Array(u),a=new Array(u),f=1/0,c=1/0,s=-1/0,l=-1/0;for(e=0;es&&(s=r),il&&(l=i));if(f>s||c>l)return this;for(this.cover(f,c).cover(s,l),e=0;et||t>=i||r>n||n>=u;)switch(a=(nh||(u=f.y0)>d||(o=f.x1)=g)<<1|t>=_)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=f)}else{var y=t-+this._x.call(null,v.data),b=n-+this._y.call(null,v.data),m=y*y+b*b;if(m=(a=(p+_)/2))?p=a:_=a,(s=o>=(f=(v+g)/2))?v=f:g=f,n=d,!(d=d[l=s<<1|c]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Na.removeAll=function(t){for(var n=0,e=t.length;nf+d||ic+d||ua.index){var p=f-o.x-o.vx,v=c-o.y-o.vy,_=p*p+v*v;_t.r&&(t.r=t[n].r)}function a(){if(n){var r,i,u=n.length;for(e=new Array(u),r=0;r1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,u,o,a,f,c=0,s=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,e),n):c.on(t)}}},Fa=function(){var t,n,e,r,i=xa(-30),u=1,o=1/0,a=.81;function f(r){var i,u=t.length,o=Ta(t,Ia,Da).visitAfter(s);for(e=r,i=0;i=o)){(t.data!==n||t.next)&&(0===s&&(d+=(s=wa())*s),0===l&&(d+=(l=wa())*l),d1?r[0]+r.slice(2):r,+t.slice(e+1)]},Ha=function(t){return(t=$a(Math.abs(t)))?t[1]:NaN},Va=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ga(t){if(!(n=Va.exec(t)))throw new Error("invalid format: "+t);var n;return new Xa({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Xa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Ga.prototype=Xa.prototype,Xa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Za,Ka,Ja,Qa,tf=function(t,n){var e=$a(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},nf={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return tf(100*t,n)},r:tf,s:function(t,n){var e=$a(t,n);if(!e)return t+"";var r=e[0],i=e[1],u=i-(Za=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return u===o?r:u>o?r+new Array(u-o+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+$a(t,Math.max(0,n+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ef=function(t){return t},rf=Array.prototype.map,uf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],of=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?ef:(n=rf.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,u=[],o=0,a=n[0],f=0;i>0&&a>0&&(f+a+1>r&&(a=Math.max(1,r-f)),u.push(t.substring(i-=a,i+a)),!((f+=a+1)>r));)a=n[o=(o+1)%n.length];return u.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?ef:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(rf.call(t.numerals,String)),f=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=Ga(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,_=t.precision,g=t.trim,y=t.type;"n"===y?(v=!0,y="g"):nf[y]||(void 0===_&&(_=12),g=!0,y="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===h?u:/[%p]/.test(y)?f:"",x=nf[y],w=/[defgprs%]/.test(y);function M(t){var i,u,f,h=b,M=m;if("c"===y)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),_),g&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==l&&(A=!1),h=(A?"("===l?l:c:"-"===l||"("===l?"":l)+h,M=("s"===y?uf[8+Za/3]:"")+M+(A&&"("===l?")":""),w)for(i=-1,u=t.length;++i(f=t.charCodeAt(i))||f>57){M=(46===f?o+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var k=h.length+t.length+M.length,S=k>1)+h+t+M+S.slice(k);break;default:t=S+h+t+M}return a(t)}return _=void 0===_?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=Ga(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ha(n)/3))),i=Math.pow(10,-r),u=uf[8+r/3];return function(t){return e(i*t)+u}}}};function af(t){return Ka=of(t),Ja=Ka.format,Qa=Ka.formatPrefix,Ka}af({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var ff=function(t){return Math.max(0,-Ha(Math.abs(t)))},cf=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ha(n)/3)))-Ha(Math.abs(t)))},sf=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ha(n)-Ha(t))+1},lf=function(){return new hf};function hf(){this.reset()}hf.prototype={constructor:hf,reset:function(){this.s=this.t=0},add:function(t){pf(df,t,this.t),pf(this,df.s,this.s),this.s?this.t+=df.t:this.s=df.t},valueOf:function(){return this.s}};var df=new hf;function pf(t,n,e){var r=t.s=n+e,i=r-n,u=r-i;t.t=n-u+(e-i)}var vf=Math.PI,_f=vf/2,gf=vf/4,yf=2*vf,bf=180/vf,mf=vf/180,xf=Math.abs,wf=Math.atan,Mf=Math.atan2,Af=Math.cos,kf=Math.ceil,Sf=Math.exp,Tf=(Math.floor,Math.log),Ef=Math.pow,Cf=Math.sin,Nf=Math.sign||function(t){return t>0?1:t<0?-1:0},jf=Math.sqrt,zf=Math.tan;function Of(t){return t>1?0:t<-1?vf:Math.acos(t)}function Rf(t){return t>1?_f:t<-1?-_f:Math.asin(t)}function Pf(t){return(t=Cf(t/2))*t}function Lf(){}function If(t,n){t&&Uf.hasOwnProperty(t.type)&&Uf[t.type](t,n)}var Df={Feature:function(t,n){If(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,u=Af(n=(n*=mf)/2+gf),o=Cf(n),a=Hf*o,f=$f*u+a*Af(i),c=a*r*Cf(i);Gf.add(Mf(c,f)),Yf=t,$f=u,Hf=o}var nc=function(t){return Xf.reset(),Vf(t,Zf),2*Xf};function ec(t){return[Mf(t[1],t[0]),Rf(t[2])]}function rc(t){var n=t[0],e=t[1],r=Af(e);return[r*Af(n),r*Cf(n),Cf(e)]}function ic(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function uc(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function oc(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function ac(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function fc(t){var n=jf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var cc,sc,lc,hc,dc,pc,vc,_c,gc,yc,bc=lf(),mc={point:xc,lineStart:Mc,lineEnd:Ac,polygonStart:function(){mc.point=kc,mc.lineStart=Sc,mc.lineEnd=Tc,bc.reset(),Zf.polygonStart()},polygonEnd:function(){Zf.polygonEnd(),mc.point=xc,mc.lineStart=Mc,mc.lineEnd=Ac,Gf<0?(cc=-(lc=180),sc=-(hc=90)):bc>1e-6?hc=90:bc<-1e-6&&(sc=-90),yc[0]=cc,yc[1]=lc},sphere:function(){cc=-(lc=180),sc=-(hc=90)}};function xc(t,n){gc.push(yc=[cc=t,lc=t]),nhc&&(hc=n)}function wc(t,n){var e=rc([t*mf,n*mf]);if(_c){var r=uc(_c,e),i=uc([r[1],-r[0],0],r);fc(i),i=ec(i);var u,o=t-dc,a=o>0?1:-1,f=i[0]*bf*a,c=xf(o)>180;c^(a*dchc&&(hc=u):c^(a*dc<(f=(f+360)%360-180)&&fhc&&(hc=n)),c?tEc(cc,lc)&&(lc=t):Ec(t,lc)>Ec(cc,lc)&&(cc=t):lc>=cc?(tlc&&(lc=t)):t>dc?Ec(cc,t)>Ec(cc,lc)&&(lc=t):Ec(t,lc)>Ec(cc,lc)&&(cc=t)}else gc.push(yc=[cc=t,lc=t]);nhc&&(hc=n),_c=e,dc=t}function Mc(){mc.point=wc}function Ac(){yc[0]=cc,yc[1]=lc,mc.point=xc,_c=null}function kc(t,n){if(_c){var e=t-dc;bc.add(xf(e)>180?e+(e>0?360:-360):e)}else pc=t,vc=n;Zf.point(t,n),wc(t,n)}function Sc(){Zf.lineStart()}function Tc(){kc(pc,vc),Zf.lineEnd(),xf(bc)>1e-6&&(cc=-(lc=180)),yc[0]=cc,yc[1]=lc,_c=null}function Ec(t,n){return(n-=t)<0?n+360:n}function Cc(t,n){return t[0]-n[0]}function Nc(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nEc(r[0],r[1])&&(r[1]=i[1]),Ec(i[0],r[1])>Ec(r[0],r[1])&&(r[0]=i[0])):u.push(r=i);for(o=-1/0,n=0,r=u[e=u.length-1];n<=e;r=i,++n)i=u[n],(a=Ec(r[1],i[0]))>o&&(o=a,cc=i[0],lc=r[1])}return gc=yc=null,cc===1/0||sc===1/0?[[NaN,NaN],[NaN,NaN]]:[[cc,sc],[lc,hc]]},Gc={sphere:Lf,point:Xc,lineStart:Kc,lineEnd:ts,polygonStart:function(){Gc.lineStart=ns,Gc.lineEnd=es},polygonEnd:function(){Gc.lineStart=Kc,Gc.lineEnd=ts}};function Xc(t,n){t*=mf;var e=Af(n*=mf);Zc(e*Af(t),e*Cf(t),Cf(n))}function Zc(t,n,e){++jc,Oc+=(t-Oc)/jc,Rc+=(n-Rc)/jc,Pc+=(e-Pc)/jc}function Kc(){Gc.point=Jc}function Jc(t,n){t*=mf;var e=Af(n*=mf);Yc=e*Af(t),$c=e*Cf(t),Hc=Cf(n),Gc.point=Qc,Zc(Yc,$c,Hc)}function Qc(t,n){t*=mf;var e=Af(n*=mf),r=e*Af(t),i=e*Cf(t),u=Cf(n),o=Mf(jf((o=$c*u-Hc*i)*o+(o=Hc*r-Yc*u)*o+(o=Yc*i-$c*r)*o),Yc*r+$c*i+Hc*u);zc+=o,Lc+=o*(Yc+(Yc=r)),Ic+=o*($c+($c=i)),Dc+=o*(Hc+(Hc=u)),Zc(Yc,$c,Hc)}function ts(){Gc.point=Xc}function ns(){Gc.point=rs}function es(){is(qc,Wc),Gc.point=Xc}function rs(t,n){qc=t,Wc=n,t*=mf,n*=mf,Gc.point=is;var e=Af(n);Yc=e*Af(t),$c=e*Cf(t),Hc=Cf(n),Zc(Yc,$c,Hc)}function is(t,n){t*=mf;var e=Af(n*=mf),r=e*Af(t),i=e*Cf(t),u=Cf(n),o=$c*u-Hc*i,a=Hc*r-Yc*u,f=Yc*i-$c*r,c=jf(o*o+a*a+f*f),s=Rf(c),l=c&&-s/c;Uc+=l*o,Bc+=l*a,Fc+=l*f,zc+=s,Lc+=s*(Yc+(Yc=r)),Ic+=s*($c+($c=i)),Dc+=s*(Hc+(Hc=u)),Zc(Yc,$c,Hc)}var us=function(t){jc=zc=Oc=Rc=Pc=Lc=Ic=Dc=Uc=Bc=Fc=0,Vf(t,Gc);var n=Uc,e=Bc,r=Fc,i=n*n+e*e+r*r;return i<1e-12&&(n=Lc,e=Ic,r=Dc,zc<1e-6&&(n=Oc,e=Rc,r=Pc),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[Mf(e,n)*bf,Rf(r/jf(i))*bf]},os=function(t){return function(){return t}},as=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};function fs(t,n){return[xf(t)>vf?t+Math.round(-t/yf)*yf:t,n]}function cs(t,n,e){return(t%=yf)?n||e?as(ls(t),hs(n,e)):ls(t):n||e?hs(n,e):fs}function ss(t){return function(n,e){return[(n+=t)>vf?n-yf:n<-vf?n+yf:n,e]}}function ls(t){var n=ss(t);return n.invert=ss(-t),n}function hs(t,n){var e=Af(t),r=Cf(t),i=Af(n),u=Cf(n);function o(t,n){var o=Af(n),a=Af(t)*o,f=Cf(t)*o,c=Cf(n),s=c*e+a*r;return[Mf(f*i-s*u,a*e-c*r),Rf(s*i+f*u)]}return o.invert=function(t,n){var o=Af(n),a=Af(t)*o,f=Cf(t)*o,c=Cf(n),s=c*i-f*u;return[Mf(f*i+c*u,a*e+s*r),Rf(s*e-a*r)]},o}fs.invert=fs;var ds=function(t){function n(n){return(n=t(n[0]*mf,n[1]*mf))[0]*=bf,n[1]*=bf,n}return t=cs(t[0]*mf,t[1]*mf,t.length>2?t[2]*mf:0),n.invert=function(n){return(n=t.invert(n[0]*mf,n[1]*mf))[0]*=bf,n[1]*=bf,n},n};function ps(t,n,e,r,i,u){if(e){var o=Af(n),a=Cf(n),f=r*e;null==i?(i=n+r*yf,u=n-f/2):(i=vs(o,i),u=vs(o,u),(r>0?iu)&&(i+=r*yf));for(var c,s=i;r>0?s>u:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},ys=function(t,n){return xf(t[0]-n[0])<1e-6&&xf(t[1]-n[1])<1e-6};function bs(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var ms=function(t,n,e,r,i){var u,o,a=[],f=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],o=t[n];if(ys(r,o)){for(i.lineStart(),u=0;u=0;--u)i.point((s=c[u])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function xs(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,k=A*M,S=k>vf,T=v*x;if(ws.add(Mf(T*A*Cf(k),_*w+T*Af(k))),o+=S?M+A*yf:M,S^d>=e^b>=e){var E=uc(rc(h),rc(y));fc(E);var C=uc(u,E);fc(C);var N=(S^M>=0?-1:1)*Rf(C[2]);(r>N||r===N&&(E[0]||E[1]))&&(a+=S^M>=0?1:-1)}}return(o<-1e-6||o<1e-6&&ws<-1e-6)^1&a},ks=function(t,n,e,r){return function(i){var u,o,a,f=n(i),c=gs(),s=n(c),l=!1,h={point:d,lineStart:v,lineEnd:_,polygonStart:function(){h.point=g,h.lineStart=y,h.lineEnd=b,o=[],u=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=_,o=B(o);var t=As(u,r);o.length?(l||(i.polygonStart(),l=!0),ms(o,Ts,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),o=u=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){f.point(t,n)}function v(){h.point=p,f.lineStart()}function _(){h.point=d,f.lineEnd()}function g(t,n){a.push([t,n]),s.point(t,n)}function y(){s.lineStart(),a=[]}function b(){g(a[0][0],a[0][1]),s.lineEnd();var t,n,e,r,f=s.clean(),h=c.result(),d=h.length;if(a.pop(),u.push(a),a=null,d)if(1&f){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&f&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Ss))}return h}};function Ss(t){return t.length>1}function Ts(t,n){return((t=t.x)[0]<0?t[1]-_f-1e-6:_f-t[1])-((n=n.x)[0]<0?n[1]-_f-1e-6:_f-n[1])}var Es=ks((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(u,o){var a=u>0?vf:-vf,f=xf(u-e);xf(f-vf)<1e-6?(t.point(e,r=(r+o)/2>0?_f:-_f),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(u,r),n=0):i!==a&&f>=vf&&(xf(e-i)<1e-6&&(e-=1e-6*i),xf(u-a)<1e-6&&(u-=1e-6*a),r=function(t,n,e,r){var i,u,o=Cf(t-e);return xf(o)>1e-6?wf((Cf(n)*(u=Af(r))*Cf(e)-Cf(r)*(i=Af(n))*Cf(t))/(i*u*o)):(n+r)/2}(e,r,u,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=u,r=o),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*_f,r.point(-vf,i),r.point(0,i),r.point(vf,i),r.point(vf,0),r.point(vf,-i),r.point(0,-i),r.point(-vf,-i),r.point(-vf,0),r.point(-vf,i);else if(xf(t[0]-n[0])>1e-6){var u=t[0]0,i=xf(n)>1e-6;function u(t,e){return Af(t)*Af(e)>n}function o(t,e,r){var i=[1,0,0],u=uc(rc(t),rc(e)),o=ic(u,u),a=u[0],f=o-a*a;if(!f)return!r&&t;var c=n*o/f,s=-n*a/f,l=uc(i,u),h=ac(i,c);oc(h,ac(u,s));var d=l,p=ic(h,d),v=ic(d,d),_=p*p-v*(ic(h,h)-1);if(!(_<0)){var g=jf(_),y=ac(d,(-p-g)/v);if(oc(y,h),y=ec(y),!r)return y;var b,m=t[0],x=e[0],w=t[1],M=e[1];x0^y[1]<(xf(y[0]-m)<1e-6?w:M):w<=y[1]&&y[1]<=M:A>vf^(m<=y[0]&&y[0]<=x)){var S=ac(d,(-p+g)/v);return oc(S,h),[y,ec(S)]}}}function a(n,e){var i=r?t:vf-t,u=0;return n<-i?u|=1:n>i&&(u|=2),e<-i?u|=4:e>i&&(u|=8),u}return ks(u,(function(t){var n,e,f,c,s;return{lineStart:function(){c=f=!1,s=1},point:function(l,h){var d,p=[l,h],v=u(l,h),_=r?v?0:a(l,h):v?a(l+(l<0?vf:-vf),h):0;if(!n&&(c=f=v)&&t.lineStart(),v!==f&&(!(d=o(n,p))||ys(n,d)||ys(p,d))&&(p[0]+=1e-6,p[1]+=1e-6,v=u(p[0],p[1])),v!==f)s=0,v?(t.lineStart(),d=o(p,n),t.point(d[0],d[1])):(d=o(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^v){var g;_&e||!(g=o(p,n,!0))||(s=0,r?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1])))}!v||n&&ys(n,p)||t.point(p[0],p[1]),n=p,f=v,e=_},lineEnd:function(){f&&t.lineEnd(),n=null},clean:function(){return s|(c&&f)<<1}}}),(function(n,r,i,u){ps(u,t,e,i,n,r)}),r?[0,-t]:[-vf,t-vf])};function Ns(t,n,e,r){function i(i,u){return t<=i&&i<=e&&n<=u&&u<=r}function u(i,u,a,c){var s=0,l=0;if(null==i||(s=o(i,a))!==(l=o(u,a))||f(i,u)<0^a>0)do{c.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+a+4)%4)!==l);else c.point(u[0],u[1])}function o(r,i){return xf(r[0]-t)<1e-6?i>0?0:3:xf(r[0]-e)<1e-6?i>0?2:1:xf(r[1]-n)<1e-6?i>0?1:0:i>0?3:2}function a(t,n){return f(t.x,n.x)}function f(t,n){var e=o(t,1),r=o(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(o){var f,c,s,l,h,d,p,v,_,g,y,b=o,m=gs(),x={point:w,lineStart:function(){x.point=M,c&&c.push(s=[]);g=!0,_=!1,p=v=NaN},lineEnd:function(){f&&(M(l,h),d&&_&&m.rejoin(),f.push(m.result()));x.point=w,_&&b.lineEnd()},polygonStart:function(){b=m,f=[],c=[],y=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=c.length;er&&(h-u)*(r-o)>(d-o)*(t-u)&&++n:d<=r&&(h-u)*(r-o)<(d-o)*(t-u)&&--n;return n}(),e=y&&n,i=(f=B(f)).length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),u(null,null,1,o),o.lineEnd()),i&&ms(f,a,n,u,o),o.polygonEnd());b=o,f=c=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(u,o){var a=i(u,o);if(c&&s.push([u,o]),g)l=u,h=o,d=a,g=!1,a&&(b.lineStart(),b.point(u,o));else if(a&&_)b.point(u,o);else{var f=[p=Math.max(-1e9,Math.min(1e9,p)),v=Math.max(-1e9,Math.min(1e9,v))],m=[u=Math.max(-1e9,Math.min(1e9,u)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,n,e,r,i,u){var o,a=t[0],f=t[1],c=0,s=1,l=n[0]-a,h=n[1]-f;if(o=e-a,l||!(o>0)){if(o/=l,l<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=i-a,l||!(o<0)){if(o/=l,l<0){if(o>s)return;o>c&&(c=o)}else if(l>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>c&&(c=o)}if(o=u-f,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>c&&(c=o)}else if(h>0){if(o0&&(t[0]=a+c*l,t[1]=f+c*h),s<1&&(n[0]=a+s*l,n[1]=f+s*h),!0}}}}}(f,m,t,n,e,r)?a&&(b.lineStart(),b.point(u,o),y=!1):(_||(b.lineStart(),b.point(f[0],f[1])),b.point(m[0],m[1]),a||b.lineEnd(),y=!1)}p=u,v=o,_=a}return x}}var js,zs,Os,Rs=function(){var t,n,e,r=0,i=0,u=960,o=500;return e={stream:function(e){return t&&n===e?t:t=Ns(r,i,u,o)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],u=+a[1][0],o=+a[1][1],t=n=null,e):[[r,i],[u,o]]}}},Ps=lf(),Ls={sphere:Lf,point:Lf,lineStart:function(){Ls.point=Ds,Ls.lineEnd=Is},lineEnd:Lf,polygonStart:Lf,polygonEnd:Lf};function Is(){Ls.point=Ls.lineEnd=Lf}function Ds(t,n){js=t*=mf,zs=Cf(n*=mf),Os=Af(n),Ls.point=Us}function Us(t,n){t*=mf;var e=Cf(n*=mf),r=Af(n),i=xf(t-js),u=Af(i),o=r*Cf(i),a=Os*e-zs*r*u,f=zs*e+Os*r*u;Ps.add(Mf(jf(o*o+a*a),f)),js=t,zs=e,Os=r}var Bs=function(t){return Ps.reset(),Vf(t,Ls),+Ps},Fs=[null,null],qs={type:"LineString",coordinates:Fs},Ws=function(t,n){return Fs[0]=t,Fs[1]=n,Bs(qs)},Ys={Feature:function(t,n){return Hs(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=Ws(t[u],t[u-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<1e-12*i)return!0;e=r}return!1}function Xs(t,n){return!!As(t.map(Zs),Ks(n))}function Zs(t){return(t=t.map(Ks)).pop(),t}function Ks(t){return[t[0]*mf,t[1]*mf]}var Js=function(t,n){return(t&&Ys.hasOwnProperty(t.type)?Ys[t.type]:Hs)(t,n)};function Qs(t,n,e){var r=k(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function tl(t,n,e){var r=k(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function nl(){var t,n,e,r,i,u,o,a,f,c,s,l,h=10,d=h,p=90,v=360,_=2.5;function g(){return{type:"MultiLineString",coordinates:y()}}function y(){return k(kf(r/p)*p,e,p).map(s).concat(k(kf(a/v)*v,o,v).map(l)).concat(k(kf(n/h)*h,t,h).filter((function(t){return xf(t%p)>1e-6})).map(f)).concat(k(kf(u/d)*d,i,d).filter((function(t){return xf(t%v)>1e-6})).map(c))}return g.lines=function(){return y().map((function(t){return{type:"LineString",coordinates:t}}))},g.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(o).slice(1),s(e).reverse().slice(1),l(a).reverse().slice(1))]}},g.extent=function(t){return arguments.length?g.extentMajor(t).extentMinor(t):g.extentMinor()},g.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),g.precision(_)):[[r,a],[e,o]]},g.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],u=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),u>i&&(e=u,u=i,i=e),g.precision(_)):[[n,u],[t,i]]},g.step=function(t){return arguments.length?g.stepMajor(t).stepMinor(t):g.stepMinor()},g.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],g):[p,v]},g.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],g):[h,d]},g.precision=function(h){return arguments.length?(_=+h,f=Qs(u,i,90),c=tl(n,t,_),s=Qs(a,o,90),l=tl(r,e,_),g):_},g.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function el(){return nl()()}var rl,il,ul,ol,al=function(t,n){var e=t[0]*mf,r=t[1]*mf,i=n[0]*mf,u=n[1]*mf,o=Af(r),a=Cf(r),f=Af(u),c=Cf(u),s=o*Af(e),l=o*Cf(e),h=f*Af(i),d=f*Cf(i),p=2*Rf(jf(Pf(u-r)+o*f*Pf(i-e))),v=Cf(p),_=p?function(t){var n=Cf(t*=p)/v,e=Cf(p-t)/v,r=e*s+n*h,i=e*l+n*d,u=e*a+n*c;return[Mf(i,r)*bf,Mf(u,jf(r*r+i*i))*bf]}:function(){return[e*bf,r*bf]};return _.distance=p,_},fl=function(t){return t},cl=lf(),sl=lf(),ll={point:Lf,lineStart:Lf,lineEnd:Lf,polygonStart:function(){ll.lineStart=hl,ll.lineEnd=vl},polygonEnd:function(){ll.lineStart=ll.lineEnd=ll.point=Lf,cl.add(xf(sl)),sl.reset()},result:function(){var t=cl/2;return cl.reset(),t}};function hl(){ll.point=dl}function dl(t,n){ll.point=pl,rl=ul=t,il=ol=n}function pl(t,n){sl.add(ol*t-ul*n),ul=t,ol=n}function vl(){pl(rl,il)}var _l=ll,gl=1/0,yl=gl,bl=-gl,ml=bl;var xl,wl,Ml,Al,kl={point:function(t,n){tbl&&(bl=t);nml&&(ml=n)},lineStart:Lf,lineEnd:Lf,polygonStart:Lf,polygonEnd:Lf,result:function(){var t=[[gl,yl],[bl,ml]];return bl=ml=-(yl=gl=1/0),t}},Sl=0,Tl=0,El=0,Cl=0,Nl=0,jl=0,zl=0,Ol=0,Rl=0,Pl={point:Ll,lineStart:Il,lineEnd:Bl,polygonStart:function(){Pl.lineStart=Fl,Pl.lineEnd=ql},polygonEnd:function(){Pl.point=Ll,Pl.lineStart=Il,Pl.lineEnd=Bl},result:function(){var t=Rl?[zl/Rl,Ol/Rl]:jl?[Cl/jl,Nl/jl]:El?[Sl/El,Tl/El]:[NaN,NaN];return Sl=Tl=El=Cl=Nl=jl=zl=Ol=Rl=0,t}};function Ll(t,n){Sl+=t,Tl+=n,++El}function Il(){Pl.point=Dl}function Dl(t,n){Pl.point=Ul,Ll(Ml=t,Al=n)}function Ul(t,n){var e=t-Ml,r=n-Al,i=jf(e*e+r*r);Cl+=i*(Ml+t)/2,Nl+=i*(Al+n)/2,jl+=i,Ll(Ml=t,Al=n)}function Bl(){Pl.point=Ll}function Fl(){Pl.point=Wl}function ql(){Yl(xl,wl)}function Wl(t,n){Pl.point=Yl,Ll(xl=Ml=t,wl=Al=n)}function Yl(t,n){var e=t-Ml,r=n-Al,i=jf(e*e+r*r);Cl+=i*(Ml+t)/2,Nl+=i*(Al+n)/2,jl+=i,zl+=(i=Al*t-Ml*n)*(Ml+t),Ol+=i*(Al+n),Rl+=3*i,Ll(Ml=t,Al=n)}var $l=Pl;function Hl(t){this._context=t}Hl.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,yf)}},result:Lf};var Vl,Gl,Xl,Zl,Kl,Jl=lf(),Ql={point:Lf,lineStart:function(){Ql.point=th},lineEnd:function(){Vl&&nh(Gl,Xl),Ql.point=Lf},polygonStart:function(){Vl=!0},polygonEnd:function(){Vl=null},result:function(){var t=+Jl;return Jl.reset(),t}};function th(t,n){Ql.point=nh,Gl=Zl=t,Xl=Kl=n}function nh(t,n){Zl-=t,Kl-=n,Jl.add(jf(Zl*Zl+Kl*Kl)),Zl=t,Kl=n}var eh=Ql;function rh(){this._string=[]}function ih(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}rh.prototype={_radius:4.5,_circle:ih(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=ih(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var uh=function(t,n){var e,r,i=4.5;function u(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Vf(t,e(r))),r.result()}return u.area=function(t){return Vf(t,e(_l)),_l.result()},u.measure=function(t){return Vf(t,e(eh)),eh.result()},u.bounds=function(t){return Vf(t,e(kl)),kl.result()},u.centroid=function(t){return Vf(t,e($l)),$l.result()},u.projection=function(n){return arguments.length?(e=null==n?(t=null,fl):(t=n).stream,u):t},u.context=function(t){return arguments.length?(r=null==t?(n=null,new rh):new Hl(n=t),"function"!=typeof i&&r.pointRadius(i),u):n},u.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),u):i},u.projection(t).context(n)},oh=function(t){return{stream:ah(t)}};function ah(t){return function(n){var e=new fh;for(var r in t)e[r]=t[r];return e.stream=n,e}}function fh(){}function ch(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Vf(e,t.stream(kl)),n(kl.result()),null!=r&&t.clipExtent(r),t}function sh(t,n,e){return ch(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],u=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),o=+n[0][0]+(r-u*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-u*(e[1][1]+e[0][1]))/2;t.scale(150*u).translate([o,a])}),e)}function lh(t,n,e){return sh(t,[[0,0],n],e)}function hh(t,n,e){return ch(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),u=(r-i*(e[1][0]+e[0][0]))/2,o=-i*e[0][1];t.scale(150*i).translate([u,o])}),e)}function dh(t,n,e){return ch(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),u=-i*e[0][0],o=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([u,o])}),e)}fh.prototype={constructor:fh,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ph=Af(30*mf),vh=function(t,n){return+n?function(t,n){function e(r,i,u,o,a,f,c,s,l,h,d,p,v,_){var g=c-r,y=s-i,b=g*g+y*y;if(b>4*n&&v--){var m=o+h,x=a+d,w=f+p,M=jf(m*m+x*x+w*w),A=Rf(w/=M),k=xf(xf(w)-1)<1e-6||xf(u-l)<1e-6?(u+l)/2:Mf(x,m),S=t(k,A),T=S[0],E=S[1],C=T-r,N=E-i,j=y*C-g*N;(j*j/b>n||xf((g*C+y*N)/b-.5)>.3||o*h+a*d+f*p2?t[2]%360*mf:0,C()):[_*bf,g*bf,y*bf]},T.angle=function(t){return arguments.length?(b=t%360*mf,C()):b*bf},T.reflectX=function(t){return arguments.length?(m=t?-1:1,C()):m<0},T.reflectY=function(t){return arguments.length?(x=t?-1:1,C()):x<0},T.precision=function(t){return arguments.length?(o=vh(a,S=t*t),N()):jf(S)},T.fitExtent=function(t,n){return sh(T,t,n)},T.fitSize=function(t,n){return lh(T,t,n)},T.fitWidth=function(t,n){return hh(T,t,n)},T.fitHeight=function(t,n){return dh(T,t,n)},function(){return n=t.apply(this,arguments),T.invert=n.invert&&E,C()}}function xh(t){var n=0,e=vf/3,r=mh(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*mf,e=t[1]*mf):[n*bf,e*bf]},i}function wh(t,n){var e=Cf(t),r=(e+Cf(n))/2;if(xf(r)<1e-6)return function(t){var n=Af(t);function e(t,e){return[t*n,Cf(e)/n]}return e.invert=function(t,e){return[t/n,Rf(e*n)]},e}(t);var i=1+e*(2*r-e),u=jf(i)/r;function o(t,n){var e=jf(i-2*r*Cf(n))/r;return[e*Cf(t*=r),u-e*Af(t)]}return o.invert=function(t,n){var e=u-n,o=Mf(t,xf(e))*Nf(e);return e*r<0&&(o-=vf*Nf(t)*Nf(e)),[o/r,Rf((i-(t*t+e*e)*r*r)/(2*r))]},o}var Mh=function(){return xh(wh).scale(155.424).center([0,33.6442])},Ah=function(){return Mh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var kh=function(){var t,n,e,r,i,u,o=Ah(),a=Mh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=Mh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,n){u=[t,n]}};function s(t){var n=t[0],o=t[1];return u=null,e.point(n,o),u||(r.point(n,o),u)||(i.point(n,o),u)}function l(){return t=n=null,s}return s.invert=function(t){var n=o.scale(),e=o.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:o).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[o.stream(n=e),a.stream(e),f.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<1e-6-_f&&(n=1e-6-_f):n>_f-1e-6&&(n=_f-1e-6);var e=i/Ef(Ph(n),r);return[e*Cf(r*t),i-e*Af(r*t)]}return u.invert=function(t,n){var e=i-n,u=Nf(r)*jf(t*t+e*e),o=Mf(t,xf(e))*Nf(e);return e*r<0&&(o-=vf*Nf(t)*Nf(e)),[o/r,2*wf(Ef(i/u,1/r))-_f]},u}var Ih=function(){return xh(Lh).scale(109.5).parallels([30,30])};function Dh(t,n){return[t,n]}Dh.invert=Dh;var Uh=function(){return bh(Dh).scale(152.63)};function Bh(t,n){var e=Af(t),r=t===n?Cf(t):(e-Af(n))/(n-t),i=e/r+t;if(xf(r)<1e-6)return Dh;function u(t,n){var e=i-n,u=r*t;return[e*Cf(u),i-e*Af(u)]}return u.invert=function(t,n){var e=i-n,u=Mf(t,xf(e))*Nf(e);return e*r<0&&(u-=vf*Nf(t)*Nf(e)),[u/r,i-Nf(r)*jf(t*t+e*e)]},u}var Fh=function(){return xh(Bh).scale(131.154).center([0,13.9389])},qh=1.340264,Wh=-.081106,Yh=893e-6,$h=.003796,Hh=jf(3)/2;function Vh(t,n){var e=Rf(Hh*Cf(n)),r=e*e,i=r*r*r;return[t*Af(e)/(Hh*(qh+3*Wh*r+i*(7*Yh+9*$h*r))),e*(qh+Wh*r+i*(Yh+$h*r))]}Vh.invert=function(t,n){for(var e,r=n,i=r*r,u=i*i*i,o=0;o<12&&(u=(i=(r-=e=(r*(qh+Wh*i+u*(Yh+$h*i))-n)/(qh+3*Wh*i+u*(7*Yh+9*$h*i)))*r)*i*i,!(xf(e)<1e-12));++o);return[Hh*t*(qh+3*Wh*i+u*(7*Yh+9*$h*i))/Af(r),Rf(Cf(r)/Hh)]};var Gh=function(){return bh(Vh).scale(177.158)};function Xh(t,n){var e=Af(n),r=Af(t)*e;return[e*Cf(t)/r,Cf(n)/r]}Xh.invert=Th(wf);var Zh=function(){return bh(Xh).scale(144.049).clipAngle(60)},Kh=function(){var t,n,e,r,i,u,o,a=1,f=0,c=0,s=1,l=1,h=0,d=null,p=1,v=1,_=ah({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),g=fl;function y(){return p=a*s,v=a*l,u=o=null,b}function b(e){var r=e[0]*p,i=e[1]*v;if(h){var u=i*t-r*n;r=r*t+i*n,i=u}return[r+f,i+c]}return b.invert=function(e){var r=e[0]-f,i=e[1]-c;if(h){var u=i*t+r*n;r=r*t-i*n,i=u}return[r/p,i/v]},b.stream=function(t){return u&&o===t?u:u=_(g(o=t))},b.postclip=function(t){return arguments.length?(g=t,d=e=r=i=null,y()):g},b.clipExtent=function(t){return arguments.length?(g=null==t?(d=e=r=i=null,fl):Ns(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),y()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(a=+t,y()):a},b.translate=function(t){return arguments.length?(f=+t[0],c=+t[1],y()):[f,c]},b.angle=function(e){return arguments.length?(n=Cf(h=e%360*mf),t=Af(h),y()):h*bf},b.reflectX=function(t){return arguments.length?(s=t?-1:1,y()):s<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,y()):l<0},b.fitExtent=function(t,n){return sh(b,t,n)},b.fitSize=function(t,n){return lh(b,t,n)},b.fitWidth=function(t,n){return hh(b,t,n)},b.fitHeight=function(t,n){return dh(b,t,n)},b};function Jh(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}Jh.invert=function(t,n){var e,r=n,i=25;do{var u=r*r,o=u*u;r-=e=(r*(1.007226+u*(.015085+o*(.028874*u-.044475-.005916*o)))-n)/(1.007226+u*(.045255+o*(.259866*u-.311325-.005916*11*o)))}while(xf(e)>1e-6&&--i>0);return[t/(.8707+(u=r*r)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),r]};var Qh=function(){return bh(Jh).scale(175.295)};function td(t,n){return[Af(n)*Cf(t),Cf(n)]}td.invert=Th(Rf);var nd=function(){return bh(td).scale(249.5).clipAngle(90.000001)};function ed(t,n){var e=Af(n),r=1+Af(t)*e;return[e*Cf(t)/r,Cf(n)/r]}ed.invert=Th((function(t){return 2*wf(t)}));var rd=function(){return bh(ed).scale(250).clipAngle(142)};function id(t,n){return[Tf(zf((_f+n)/2)),-t]}id.invert=function(t,n){return[-n,2*wf(Sf(t))-_f]};var ud=function(){var t=Rh(id),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function od(t,n){return t.parent===n.parent?1:2}function ad(t,n){return t+n.x}function fd(t,n){return Math.max(t,n.y)}var cd=function(){var t=od,n=1,e=1,r=!1;function i(i){var u,o=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(ad,0)/t.length}(e),n.y=function(t){return 1+t.reduce(fd,0)}(e)):(n.x=u?o+=t(n,u):0,n.y=0,u=n)}));var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),f=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),c=a.x-t(a,f)/2,s=f.x+t(f,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-c)/(s-c)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i};function sd(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function ld(t,n){var e,r,i,u,o,a=new vd(t),f=+t.value&&(a.value=t.value),c=[a];for(null==n&&(n=hd);e=c.pop();)if(f&&(e.value=+e.data.value),(i=n(e.data))&&(o=i.length))for(e.children=new Array(o),u=o-1;u>=0;--u)c.push(r=e.children[u]=new vd(i[u])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(pd)}function hd(t){return t.children}function dd(t){t.data=t.data.data}function pd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function vd(t){this.data=t,this.depth=this.height=0,this.parent=null}vd.prototype=ld.prototype={constructor:vd,count:function(){return this.eachAfter(sd)},each:function(t){var n,e,r,i,u=this,o=[u];do{for(n=o.reverse(),o=[];u=n.pop();)if(t(u),e=u.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return ld(this).eachBefore(dd)}};var _d=Array.prototype.slice;var gd=function(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(_d.call(t))).length,u=[];r0&&e*e>r*r+i*i}function xd(t,n){for(var e=0;e(o*=o)?(r=(c+o-i)/(2*c),u=Math.sqrt(Math.max(0,o/c-r*r)),e.x=t.x-r*a-u*f,e.y=t.y-r*f+u*a):(r=(c+i-o)/(2*c),u=Math.sqrt(Math.max(0,i/c-r*r)),e.x=n.x+r*a-u*f,e.y=n.y+r*f+u*a)):(e.x=n.x+e.r,e.y=n.y)}function Sd(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Td(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,u=(n.y*e.r+e.y*n.r)/r;return i*i+u*u}function Ed(t){this._=t,this.next=null,this.previous=null}function Cd(t){if(!(i=t.length))return 0;var n,e,r,i,u,o,a,f,c,s,l;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;kd(e,n,r=t[2]),n=new Ed(n),e=new Ed(e),r=new Ed(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a0)throw new Error("cycle");return u}return e.id=function(n){return arguments.length?(t=zd(n),e):t},e.parentId=function(t){return arguments.length?(n=zd(t),e):n},e};function Gd(t,n){return t.parent===n.parent?1:2}function Xd(t){var n=t.children;return n?n[0]:t.t}function Zd(t){var n=t.children;return n?n[n.length-1]:t.t}function Kd(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Jd(t,n,e){return t.a.parent===n.parent?t.a:e}function Qd(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}Qd.prototype=Object.create(vd.prototype);var tp=function(){var t=Gd,n=1,e=1,r=null;function i(i){var f=function(t){for(var n,e,r,i,u,o=new Qd(t,0),a=[o];n=a.pop();)if(r=n._.children)for(n.children=new Array(u=r.length),i=u-1;i>=0;--i)a.push(e=n.children[i]=new Qd(r[i],i)),e.parent=n;return(o.parent=new Qd(null,0)).children=[o],o}(i);if(f.eachAfter(u),f.parent.m=-f.z,f.eachBefore(o),r)i.eachBefore(a);else{var c=i,s=i,l=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=c===s?1:t(c,s)/2,d=h-c.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function u(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,u=i.length;--u>=0;)(n=i[u]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var u=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-u):n.z=u}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,u=n,o=n,a=e,f=u.parent.children[0],c=u.m,s=o.m,l=a.m,h=f.m;a=Zd(a),u=Xd(u),a&&u;)f=Xd(f),(o=Zd(o)).a=n,(i=a.z+l-u.z-c+t(a._,u._))>0&&(Kd(Jd(a,n,r),n,i),c+=i,s+=i),l+=a.m,c+=u.m,h+=f.m,s+=o.m;a&&!Zd(o)&&(o.t=a,o.m+=l-s),u&&!Xd(f)&&(f.t=u,f.m+=c-h,r=n)}return r}(n,i,n.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},np=function(t,n,e,r,i){for(var u,o=t.children,a=-1,f=o.length,c=t.value&&(i-e)/t.value;++ah&&(h=a),_=s*s*v,(d=Math.max(h/_,_/l))>p){s-=a;break}p=d}g.push(o={value:s,dice:f1?n:1)},e}(ep),up=function(){var t=ip,n=!1,e=1,r=1,i=[0],u=Od,o=Od,a=Od,f=Od,c=Od;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Bd),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var s=a[n];return s.x0=i,s.y0=u,s.x1=o,void(s.y1=f)}var l=c[n],h=r/2+l,d=n+1,p=e-1;for(;d>>1;c[v]f-u){var y=(i*g+o*_)/r;t(n,d,_,i,u,y,f),t(d,e,g,y,u,o,f)}else{var b=(u*g+f*_)/r;t(n,d,_,i,u,o,b),t(d,e,g,i,b,o,f)}}(0,f,t.value,n,e,r,i)},ap=function(t,n,e,r,i){(1&t.depth?np:Fd)(t,n,e,r,i)},fp=function t(n){function e(t,e,r,i,u){if((o=t._squarify)&&o.ratio===n)for(var o,a,f,c,s,l=-1,h=o.length,d=t.value;++l1?n:1)},e}(ep),cp=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},sp=function(t,n){var e=he(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},lp=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},hp=Math.SQRT2;function dp(t){return((t=Math.exp(t))+1/t)/2}var pp=function(t,n){var e,r,i=t[0],u=t[1],o=t[2],a=n[0],f=n[1],c=n[2],s=a-i,l=f-u,h=s*s+l*l;if(h<1e-12)r=Math.log(c/o)/hp,e=function(t){return[i+t*s,u+t*l,o*Math.exp(hp*t*r)]};else{var d=Math.sqrt(h),p=(c*c-o*o+4*h)/(2*o*2*d),v=(c*c-o*o-4*h)/(2*c*2*d),_=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(v*v+1)-v);r=(g-_)/hp,e=function(t){var n,e=t*r,a=dp(_),f=o/(2*d)*(a*(n=hp*e+_,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[i+f*s,u+f*l,o*a/dp(hp*e+_)]}}return e.duration=1e3*r,e};function vp(t){return function(n,e){var r=t((n=ie(n)).h,(e=ie(e)).h),i=pe(n.s,e.s),u=pe(n.l,e.l),o=pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var _p=vp(he),gp=vp(pe);function yp(t,n){var e=pe((t=gu(t)).l,(n=gu(n)).l),r=pe(t.a,n.a),i=pe(t.b,n.b),u=pe(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=u(n),t+""}}function bp(t){return function(n,e){var r=t((n=ku(n)).h,(e=ku(e)).h),i=pe(n.c,e.c),u=pe(n.l,e.l),o=pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var mp=bp(he),xp=bp(pe);function wp(t){return function n(e){function r(n,r){var i=t((n=Ou(n)).h,(r=Ou(r)).h),u=pe(n.s,r.s),o=pe(n.l,r.l),a=pe(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=u(t),n.l=o(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var Mp=wp(he),Ap=wp(pe);function kp(t,n){for(var e=0,r=n.length-1,i=n[0],u=new Array(r<0?0:r);e1&&(n=t[u[o-2]],e=t[u[o-1]],r=t[a],(e[0]-n[0])*(r[1]-n[1])-(e[1]-n[1])*(r[0]-n[0])<=0);)--o;u[o++]=a}return u.slice(0,o)}var jp=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)c.push(t[r[u[n]][2]]);for(n=+a;na!=c>a&&o<(f-e)*(a-r)/(c-r)+e&&(s=!s),f=e,c=r;return s},Op=function(t){for(var n,e,r=-1,i=t.length,u=t[i-1],o=u[0],a=u[1],f=0;++r1);return t+e*u*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(Rp),Ip=function t(n){function e(){var t=Lp.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(Rp),Dp=function t(n){function e(t){return function(){for(var e=0,r=0;rr&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function ev(t,n,e){var r=t[0],i=t[1],u=n[0],o=n[1];return i2?rv:ev,i=u=null,l}function l(n){return isNaN(n=+n)?e:(i||(i=r(o.map(t),a,f)))(t(c(n)))}return l.invert=function(e){return c(n((u||(u=r(a,o.map(t),Ae)))(e)))},l.domain=function(t){return arguments.length?(o=Yp.call(t,Kp),c===Qp||(c=nv(o)),s()):o.slice()},l.range=function(t){return arguments.length?(a=$p.call(t),s()):a.slice()},l.rangeRound=function(t){return a=$p.call(t),f=lp,s()},l.clamp=function(t){return arguments.length?(c=t?nv(o):Qp,l):c!==Qp},l.interpolate=function(t){return arguments.length?(f=t,s()):f},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function ov(t,n){return uv()(t,n)}var av=function(t,n,e,r){var i,u=j(t,n,e);switch((r=Ga(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=cf(u,o))||(r.precision=i),Qa(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=sf(u,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=ff(u))||(r.precision=i-2*("%"===r.type))}return Ja(r)};function fv(t){var n=t.domain;return t.ticks=function(t){var e=n();return C(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return av(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),u=0,o=i.length-1,a=i[u],f=i[o];return f0?r=N(a=Math.floor(a/r)*r,f=Math.ceil(f/r)*r,e):r<0&&(r=N(a=Math.ceil(a*r)/r,f=Math.floor(f*r)/r,e)),r>0?(i[u]=Math.floor(a/r)*r,i[o]=Math.ceil(f/r)*r,n(i)):r<0&&(i[u]=Math.ceil(a*r)/r,i[o]=Math.floor(f*r)/r,n(i)),t},t}function cv(){var t=ov(Qp,Qp);return t.copy=function(){return iv(t,cv())},Fp.apply(t,arguments),fv(t)}function sv(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Yp.call(n,Kp),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return sv(t).unknown(n)},t=arguments.length?Yp.call(t,Kp):[0,1],fv(e)}var lv=function(t,n){var e,r=0,i=(t=t.slice()).length-1,u=t[r],o=t[i];return o0){for(;hf)break;v.push(l)}}else for(;h=1;--s)if(!((l=c*s)f)break;v.push(l)}}else v=C(h,d,Math.min(d-h,p)).map(e);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===u?".0e":","),"function"!=typeof i&&(i=Ja(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,u*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*u0?r[i-1]:n[0],i=r?[i[r-1],e]:[i[o-1],i[o]]},o.unknown=function(n){return arguments.length?(t=n,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return jv().domain([n,e]).range(u).unknown(t)},Fp.apply(fv(o),arguments)}function zv(){var t,n=[.5],e=[0,1],r=1;function i(i){return i<=i?e[l(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=$p.call(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=$p.call(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return zv().domain(n).range(e).unknown(t)},Fp.apply(i,arguments)}var Ov=new Date,Rv=new Date;function Pv(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return a;do{a.push(o=new Date(+e)),n(e,u),t(e)}while(o=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return Ov.setTime(+n),Rv.setTime(+r),t(Ov),t(Rv),Math.floor(e(Ov,Rv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Lv=Pv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Lv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pv((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var Iv=Lv,Dv=Lv.range,Uv=Pv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Bv=Uv,Fv=Uv.range;function qv(t){return Pv((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var Wv=qv(0),Yv=qv(1),$v=qv(2),Hv=qv(3),Vv=qv(4),Gv=qv(5),Xv=qv(6),Zv=Wv.range,Kv=Yv.range,Jv=$v.range,Qv=Hv.range,t_=Vv.range,n_=Gv.range,e_=Xv.range,r_=Pv((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),i_=r_,u_=r_.range,o_=Pv((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),a_=o_,f_=o_.range,c_=Pv((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getMinutes()})),s_=c_,l_=c_.range,h_=Pv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),d_=h_,p_=h_.range,v_=Pv((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));v_.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Pv((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):v_:null};var __=v_,g_=v_.range;function y_(t){return Pv((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/6048e5}))}var b_=y_(0),m_=y_(1),x_=y_(2),w_=y_(3),M_=y_(4),A_=y_(5),k_=y_(6),S_=b_.range,T_=m_.range,E_=x_.range,C_=w_.range,N_=M_.range,j_=A_.range,z_=k_.range,O_=Pv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1})),R_=O_,P_=O_.range,L_=Pv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));L_.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pv((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var I_=L_,D_=L_.range;function U_(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function B_(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function F_(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function q_(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,u=t.days,o=t.shortDays,a=t.months,f=t.shortMonths,c=tg(i),s=ng(i),l=tg(u),h=ng(u),d=tg(o),p=ng(o),v=tg(a),_=ng(a),g=tg(f),y=ng(f),b={a:function(t){return o[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return f[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:wg,e:wg,f:Tg,H:Mg,I:Ag,j:kg,L:Sg,m:Eg,M:Cg,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ry,s:iy,S:Ng,u:jg,U:zg,V:Og,w:Rg,W:Pg,x:null,X:null,y:Lg,Y:Ig,Z:Dg,"%":ey},m={a:function(t){return o[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Ug,e:Ug,f:Yg,H:Bg,I:Fg,j:qg,L:Wg,m:$g,M:Hg,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ry,s:iy,S:Vg,u:Gg,U:Xg,V:Zg,w:Kg,W:Jg,x:null,X:null,y:Qg,Y:ty,Z:ny,"%":ey},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=_[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:hg,e:hg,f:yg,H:pg,I:pg,j:dg,L:gg,m:lg,M:vg,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},q:sg,Q:mg,s:xg,S:_g,u:rg,U:ig,V:ug,w:eg,W:og,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:fg,Y:ag,Z:cg,"%":bg};function w(t,n){return function(e){var r,i,u,o=[],a=-1,f=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++a53)return null;"w"in u||(u.w=1),"Z"in u?(i=(r=B_(F_(u.y,0,1))).getUTCDay(),r=i>4||0===i?m_.ceil(r):m_(r),r=R_.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(i=(r=U_(F_(u.y,0,1))).getDay(),r=i>4||0===i?Yv.ceil(r):Yv(r),r=i_.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),i="Z"in u?B_(F_(u.y,0,1)).getUTCDay():U_(F_(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(i+5)%7:u.w+7*u.U-(i+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,B_(u)):U_(u)}}function A(t,n,e,r){for(var i,u,o=0,a=n.length,f=e.length;o=f)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(u=x[i in G_?n.charAt(o++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var W_,Y_,$_,H_,V_,G_={"-":"",_:" ",0:"0"},X_=/^\s*\d+/,Z_=/^%/,K_=/[\\^$*+?|[\]().{}]/g;function J_(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",u=i.length;return r+(u68?1900:2e3),e+r[0].length):-1}function cg(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function sg(t,n,e){var r=X_.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function lg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function hg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function dg(t,n,e){var r=X_.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function pg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function vg(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function _g(t,n,e){var r=X_.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function gg(t,n,e){var r=X_.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function yg(t,n,e){var r=X_.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function bg(t,n,e){var r=Z_.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function mg(t,n,e){var r=X_.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function xg(t,n,e){var r=X_.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function wg(t,n){return J_(t.getDate(),n,2)}function Mg(t,n){return J_(t.getHours(),n,2)}function Ag(t,n){return J_(t.getHours()%12||12,n,2)}function kg(t,n){return J_(1+i_.count(Iv(t),t),n,3)}function Sg(t,n){return J_(t.getMilliseconds(),n,3)}function Tg(t,n){return Sg(t,n)+"000"}function Eg(t,n){return J_(t.getMonth()+1,n,2)}function Cg(t,n){return J_(t.getMinutes(),n,2)}function Ng(t,n){return J_(t.getSeconds(),n,2)}function jg(t){var n=t.getDay();return 0===n?7:n}function zg(t,n){return J_(Wv.count(Iv(t)-1,t),n,2)}function Og(t,n){var e=t.getDay();return t=e>=4||0===e?Vv(t):Vv.ceil(t),J_(Vv.count(Iv(t),t)+(4===Iv(t).getDay()),n,2)}function Rg(t){return t.getDay()}function Pg(t,n){return J_(Yv.count(Iv(t)-1,t),n,2)}function Lg(t,n){return J_(t.getFullYear()%100,n,2)}function Ig(t,n){return J_(t.getFullYear()%1e4,n,4)}function Dg(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+J_(n/60|0,"0",2)+J_(n%60,"0",2)}function Ug(t,n){return J_(t.getUTCDate(),n,2)}function Bg(t,n){return J_(t.getUTCHours(),n,2)}function Fg(t,n){return J_(t.getUTCHours()%12||12,n,2)}function qg(t,n){return J_(1+R_.count(I_(t),t),n,3)}function Wg(t,n){return J_(t.getUTCMilliseconds(),n,3)}function Yg(t,n){return Wg(t,n)+"000"}function $g(t,n){return J_(t.getUTCMonth()+1,n,2)}function Hg(t,n){return J_(t.getUTCMinutes(),n,2)}function Vg(t,n){return J_(t.getUTCSeconds(),n,2)}function Gg(t){var n=t.getUTCDay();return 0===n?7:n}function Xg(t,n){return J_(b_.count(I_(t)-1,t),n,2)}function Zg(t,n){var e=t.getUTCDay();return t=e>=4||0===e?M_(t):M_.ceil(t),J_(M_.count(I_(t),t)+(4===I_(t).getUTCDay()),n,2)}function Kg(t){return t.getUTCDay()}function Jg(t,n){return J_(m_.count(I_(t)-1,t),n,2)}function Qg(t,n){return J_(t.getUTCFullYear()%100,n,2)}function ty(t,n){return J_(t.getUTCFullYear()%1e4,n,4)}function ny(){return"+0000"}function ey(){return"%"}function ry(t){return+t}function iy(t){return Math.floor(+t/1e3)}function uy(t){return W_=q_(t),Y_=W_.format,$_=W_.parse,H_=W_.utcFormat,V_=W_.utcParse,W_}uy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function oy(t){return new Date(t)}function ay(t){return t instanceof Date?+t:+new Date(+t)}function fy(t,n,e,r,i,u,o,f,c){var s=ov(Qp,Qp),l=s.invert,h=s.domain,d=c(".%L"),p=c(":%S"),v=c("%I:%M"),_=c("%I %p"),g=c("%a %d"),y=c("%b %d"),b=c("%B"),m=c("%Y"),x=[[o,1,1e3],[o,5,5e3],[o,15,15e3],[o,30,3e4],[u,1,6e4],[u,5,3e5],[u,15,9e5],[u,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[e,1,6048e5],[n,1,2592e6],[n,3,7776e6],[t,1,31536e6]];function w(a){return(o(a)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Zb.h=360*t-100,Zb.s=1.5-1.5*n,Zb.l=.8-.9*n,Zb+""},Jb=Kn(),Qb=Math.PI/3,tm=2*Math.PI/3,nm=function(t){var n;return t=(.5-t)*Math.PI,Jb.r=255*(n=Math.sin(t))*n,Jb.g=255*(n=Math.sin(t+Qb))*n,Jb.b=255*(n=Math.sin(t+tm))*n,Jb+""},em=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function rm(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var im=rm(Ry("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),um=rm(Ry("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),om=rm(Ry("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),am=rm(Ry("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),fm=function(t){return Sn(on(t).call(document.documentElement))},cm=0;function sm(){return new lm}function lm(){this._="@"+(++cm).toString(36)}lm.prototype=sm.prototype={constructor:lm,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var hm=function(t){return"string"==typeof t?new Mn([document.querySelectorAll(t)],[document.documentElement]):new Mn([null==t?[]:t],wn)},dm=function(t,n){null==n&&(n=ze().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e1?0:t<-1?wm:Math.acos(t)}function Sm(t){return t>=1?Mm:t<=-1?-Mm:Math.asin(t)}function Tm(t){return t.innerRadius}function Em(t){return t.outerRadius}function Cm(t){return t.startAngle}function Nm(t){return t.endAngle}function jm(t){return t&&t.padAngle}function zm(t,n,e,r,i,u,o,a){var f=e-t,c=r-n,s=o-i,l=a-u,h=l*f-s*c;if(!(h*h<1e-12))return[t+(h=(s*(n-u)-l*(t-i))/h)*f,n+h*c]}function Om(t,n,e,r,i,u,o){var a=t-e,f=n-r,c=(o?u:-u)/xm(a*a+f*f),s=c*f,l=-c*a,h=t+s,d=n+l,p=e+s,v=r+l,_=(h+p)/2,g=(d+v)/2,y=p-h,b=v-d,m=y*y+b*b,x=i-u,w=h*v-p*d,M=(b<0?-1:1)*xm(ym(0,x*x*m-w*w)),A=(w*b-y*M)/m,k=(-w*y-b*M)/m,S=(w*b+y*M)/m,T=(-w*y+b*M)/m,E=A-_,C=k-g,N=S-_,j=T-g;return E*E+C*C>N*N+j*j&&(A=S,k=T),{cx:A,cy:k,x01:-s,y01:-l,x11:A*(i/x-1),y11:k*(i/x-1)}}var Rm=function(){var t=Tm,n=Em,e=pm(0),r=null,i=Cm,u=Nm,o=jm,a=null;function f(){var f,c,s=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-Mm,d=u.apply(this,arguments)-Mm,p=vm(d-h),v=d>h;if(a||(a=f=$i()),l1e-12)if(p>Am-1e-12)a.moveTo(l*gm(h),l*mm(h)),a.arc(0,0,l,h,d,!v),s>1e-12&&(a.moveTo(s*gm(d),s*mm(d)),a.arc(0,0,s,d,h,v));else{var _,g,y=h,b=d,m=h,x=d,w=p,M=p,A=o.apply(this,arguments)/2,k=A>1e-12&&(r?+r.apply(this,arguments):xm(s*s+l*l)),S=bm(vm(l-s)/2,+e.apply(this,arguments)),T=S,E=S;if(k>1e-12){var C=Sm(k/s*mm(A)),N=Sm(k/l*mm(A));(w-=2*C)>1e-12?(m+=C*=v?1:-1,x-=C):(w=0,m=x=(h+d)/2),(M-=2*N)>1e-12?(y+=N*=v?1:-1,b-=N):(M=0,y=b=(h+d)/2)}var j=l*gm(y),z=l*mm(y),O=s*gm(x),R=s*mm(x);if(S>1e-12){var P,L=l*gm(b),I=l*mm(b),D=s*gm(m),U=s*mm(m);if(p1e-12?E>1e-12?(_=Om(D,U,j,z,l,E,v),g=Om(L,I,O,R,l,E,v),a.moveTo(_.cx+_.x01,_.cy+_.y01),E1e-12&&w>1e-12?T>1e-12?(_=Om(O,R,L,I,s,-T,v),g=Om(j,z,D,U,s,-T,v),a.lineTo(_.cx+_.x01,_.cy+_.y01),T=s;--l)a.point(_[l],g[l]);a.lineEnd(),a.areaEnd()}v&&(_[c]=+t(h,c,f),g[c]=+e(h,c,f),a.point(n?+n(h,c,f):_[c],r?+r(h,c,f):g[c]))}if(d)return a=null,d+""||null}function c(){return Um().defined(i).curve(o).context(u)}return f.x=function(e){return arguments.length?(t="function"==typeof e?e:pm(+e),n=null,f):t},f.x0=function(n){return arguments.length?(t="function"==typeof n?n:pm(+n),f):t},f.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:pm(+t),f):n},f.y=function(t){return arguments.length?(e="function"==typeof t?t:pm(+t),r=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:pm(+t),f):e},f.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:pm(+t),f):r},f.lineX0=f.lineY0=function(){return c().x(t).y(e)},f.lineY1=function(){return c().x(t).y(r)},f.lineX1=function(){return c().x(n).y(e)},f.defined=function(t){return arguments.length?(i="function"==typeof t?t:pm(!!t),f):i},f.curve=function(t){return arguments.length?(o=t,null!=u&&(a=o(u)),f):o},f.context=function(t){return arguments.length?(null==t?u=a=null:a=o(u=t),f):u},f},Fm=function(t,n){return nt?1:n>=t?0:NaN},qm=function(t){return t},Wm=function(){var t=qm,n=Fm,e=null,r=pm(0),i=pm(Am),u=pm(0);function o(o){var a,f,c,s,l,h=o.length,d=0,p=new Array(h),v=new Array(h),_=+r.apply(this,arguments),g=Math.min(Am,Math.max(-Am,i.apply(this,arguments)-_)),y=Math.min(Math.abs(g)/h,u.apply(this,arguments)),b=y*(g<0?-1:1);for(a=0;a0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(v[t],v[e])})):null!=e&&p.sort((function(t,n){return e(o[t],o[n])})),a=0,c=d?(g-h*b)/d:0;a0?l*c:0)+b,v[f]={data:o[f],index:a,value:l,startAngle:_,endAngle:s,padAngle:y};return v}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:pm(+n),o):t},o.sortValues=function(t){return arguments.length?(n=t,e=null,o):n},o.sort=function(t){return arguments.length?(e=t,n=null,o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:pm(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:pm(+t),o):i},o.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:pm(+t),o):u},o},Ym=Hm(Lm);function $m(t){this._curve=t}function Hm(t){function n(n){return new $m(t(n))}return n._curve=t,n}function Vm(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Hm(t)):n()._curve},t}$m.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Gm=function(){return Vm(Um().curve(Ym))},Xm=function(){var t=Bm().curve(Ym),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,u=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Vm(e())},delete t.lineX0,t.lineEndAngle=function(){return Vm(r())},delete t.lineX1,t.lineInnerRadius=function(){return Vm(i())},delete t.lineY0,t.lineOuterRadius=function(){return Vm(u())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Hm(t)):n()._curve},t},Zm=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},Km=Array.prototype.slice;function Jm(t){return t.source}function Qm(t){return t.target}function tx(t){var n=Jm,e=Qm,r=Im,i=Dm,u=null;function o(){var o,a=Km.call(arguments),f=n.apply(this,a),c=e.apply(this,a);if(u||(u=o=$i()),t(u,+r.apply(this,(a[0]=f,a)),+i.apply(this,a),+r.apply(this,(a[0]=c,a)),+i.apply(this,a)),o)return u=null,o+""||null}return o.source=function(t){return arguments.length?(n=t,o):n},o.target=function(t){return arguments.length?(e=t,o):e},o.x=function(t){return arguments.length?(r="function"==typeof t?t:pm(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:pm(+t),o):i},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o}function nx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function ex(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function rx(t,n,e,r,i){var u=Zm(n,e),o=Zm(n,e=(e+i)/2),a=Zm(r,e),f=Zm(r,i);t.moveTo(u[0],u[1]),t.bezierCurveTo(o[0],o[1],a[0],a[1],f[0],f[1])}function ix(){return tx(nx)}function ux(){return tx(ex)}function ox(){var t=tx(rx);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var ax={draw:function(t,n){var e=Math.sqrt(n/wm);t.moveTo(e,0),t.arc(0,0,e,0,Am)}},fx={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},cx=Math.sqrt(1/3),sx=2*cx,lx={draw:function(t,n){var e=Math.sqrt(n/sx),r=e*cx;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},hx=Math.sin(wm/10)/Math.sin(7*wm/10),dx=Math.sin(Am/10)*hx,px=-Math.cos(Am/10)*hx,vx={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=dx*e,i=px*e;t.moveTo(0,-e),t.lineTo(r,i);for(var u=1;u<5;++u){var o=Am*u/5,a=Math.cos(o),f=Math.sin(o);t.lineTo(f*e,-a*e),t.lineTo(a*r-f*i,f*r+a*i)}t.closePath()}},_x={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},gx=Math.sqrt(3),yx={draw:function(t,n){var e=-Math.sqrt(n/(3*gx));t.moveTo(0,2*e),t.lineTo(-gx*e,-e),t.lineTo(gx*e,-e),t.closePath()}},bx=Math.sqrt(3)/2,mx=1/Math.sqrt(12),xx=3*(mx/2+1),wx={draw:function(t,n){var e=Math.sqrt(n/xx),r=e/2,i=e*mx,u=r,o=e*mx+e,a=-u,f=o;t.moveTo(r,i),t.lineTo(u,o),t.lineTo(a,f),t.lineTo(-.5*r-bx*i,bx*r+-.5*i),t.lineTo(-.5*u-bx*o,bx*u+-.5*o),t.lineTo(-.5*a-bx*f,bx*a+-.5*f),t.lineTo(-.5*r+bx*i,-.5*i-bx*r),t.lineTo(-.5*u+bx*o,-.5*o-bx*u),t.lineTo(-.5*a+bx*f,-.5*f-bx*a),t.closePath()}},Mx=[ax,fx,lx,_x,vx,yx,wx],Ax=function(){var t=pm(ax),n=pm(64),e=null;function r(){var r;if(e||(e=r=$i()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:pm(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:pm(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},kx=function(){};function Sx(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Tx(t){this._context=t}Tx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Sx(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Sx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Ex=function(t){return new Tx(t)};function Cx(t){this._context=t}Cx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Sx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Nx=function(t){return new Cx(t)};function jx(t){this._context=t}jx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Sx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var zx=function(t){return new jx(t)};function Ox(t,n){this._basis=new Tx(t),this._beta=n}Ox.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],u=n[0],o=t[e]-i,a=n[e]-u,f=-1;++f<=e;)r=f/e,this._basis.point(this._beta*t[f]+(1-this._beta)*(i+r*o),this._beta*n[f]+(1-this._beta)*(u+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Rx=function t(n){function e(t){return 1===n?new Tx(t):new Ox(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Px(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Lx(t,n){this._context=t,this._k=(1-n)/6}Lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Px(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ix=function t(n){function e(t){return new Lx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Dx(t,n){this._context=t,this._k=(1-n)/6}Dx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ux=function t(n){function e(t){return new Dx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Bx(t,n){this._context=t,this._k=(1-n)/6}Bx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Fx=function t(n){function e(t){return new Bx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function qx(t,n,e){var r=t._x1,i=t._y1,u=t._x2,o=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);u=(u*c+t._x1*t._l23_2a-n*t._l12_2a)/s,o=(o*c+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,u,o,t._x2,t._y2)}function Wx(t,n){this._context=t,this._alpha=n}Wx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:qx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yx=function t(n){function e(t){return n?new Wx(t,n):new Lx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function $x(t,n){this._context=t,this._alpha=n}$x.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:qx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Hx=function t(n){function e(t){return n?new $x(t,n):new Dx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Vx(t,n){this._context=t,this._alpha=n}Vx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Gx=function t(n){function e(t){return n?new Vx(t,n):new Bx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Xx(t){this._context=t}Xx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var Zx=function(t){return new Xx(t)};function Kx(t){return t<0?-1:1}function Jx(t,n,e){var r=t._x1-t._x0,i=n-t._x1,u=(t._y1-t._y0)/(r||i<0&&-0),o=(e-t._y1)/(i||r<0&&-0),a=(u*i+o*r)/(r+i);return(Kx(u)+Kx(o))*Math.min(Math.abs(u),Math.abs(o),.5*Math.abs(a))||0}function Qx(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function tw(t,n,e){var r=t._x0,i=t._y0,u=t._x1,o=t._y1,a=(u-r)/3;t._context.bezierCurveTo(r+a,i+a*n,u-a,o-a*e,u,o)}function nw(t){this._context=t}function ew(t){this._context=new rw(t)}function rw(t){this._context=t}function iw(t){return new nw(t)}function uw(t){return new ew(t)}function ow(t){this._context=t}function aw(t){var n,e,r=t.length-1,i=new Array(r),u=new Array(r),o=new Array(r);for(i[0]=0,u[0]=2,o[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(o[n]-i[n+1])/u[n];for(u[r-1]=(t[r]+i[r-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var sw=function(t){return new cw(t,.5)};function lw(t){return new cw(t,0)}function hw(t){return new cw(t,1)}var dw=function(t,n){if((i=t.length)>1)for(var e,r,i,u=1,o=t[n[0]],a=o.length;u=0;)e[n]=n;return e};function vw(t,n){return t[n]}var _w=function(){var t=pm([]),n=pw,e=dw,r=vw;function i(i){var u,o,a=t.apply(this,arguments),f=i.length,c=a.length,s=new Array(c);for(u=0;u0){for(var e,r,i,u=0,o=t[0].length;u0)for(var e,r,i,u,o,a,f=0,c=t[n[0]].length;f0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},bw=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],u=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,u=0,o=1;ou&&(u=n,r=e);return r}var Mw=function(t){var n=t.map(Aw);return pw(t).sort((function(t,e){return n[t]-n[e]}))};function Aw(t){for(var n,e=0,r=-1,i=t.length;++r0)){if(u/=h,h<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=r-f,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>s&&(s=u)}else if(h>0){if(u0)){if(u/=d,d<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=i-c,d||!(u<0)){if(u/=d,d<0){if(u>l)return;u>s&&(s=u)}else if(d>0){if(u0||l<1)||(s>0&&(t[0]=[f+s*h,c+s*d]),l<1&&(t[1]=[f+l*h,c+l*d]),!0)}}}}}function Yw(t,n,e,r,i){var u=t[1];if(u)return!0;var o,a,f=t[0],c=t.left,s=t.right,l=c[0],h=c[1],d=s[0],p=s[1],v=(l+d)/2,_=(h+p)/2;if(p===h){if(v=r)return;if(l>d){if(f){if(f[1]>=i)return}else f=[v,e];u=[v,i]}else{if(f){if(f[1]1)if(l>d){if(f){if(f[1]>=i)return}else f=[(e-a)/o,e];u=[(i-a)/o,i]}else{if(f){if(f[1]=r)return}else f=[n,o*n+a];u=[r,o*r+a]}else{if(f){if(f[0]=-hM)){var d=f*f+c*c,p=s*s+l*l,v=(l*d-c*p)/h,_=(f*p-s*d)/h,g=Xw.pop()||new Zw;g.arc=t,g.site=i,g.x=v+o,g.y=(g.cy=_+a)+Math.sqrt(v*v+_*_),t.circle=g;for(var y=null,b=cM._;b;)if(g.ylM)a=a.L;else{if(!((i=u-oM(a,o))>lM)){r>-lM?(n=a.P,e=a):i>-lM?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){fM[t.index]={site:t,halfedges:[]}}(t);var f=nM(t);if(aM.insert(n,f),n||e){if(n===e)return Jw(n),e=nM(n.site),aM.insert(f,e),f.edge=e.edge=Bw(n.site,f.site),Kw(n),void Kw(e);if(e){Jw(n),Jw(e);var c=n.site,s=c[0],l=c[1],h=t[0]-s,d=t[1]-l,p=e.site,v=p[0]-s,_=p[1]-l,g=2*(h*_-d*v),y=h*h+d*d,b=v*v+_*_,m=[(_*y-d*b)/g+s,(h*b-v*y)/g+l];qw(e.edge,c,p,m),f.edge=Bw(c,t,null,m),e.edge=Bw(t,p,null,m),Kw(n),Kw(e)}else f.edge=Bw(n.site,f.site)}}function uM(t,n){var e=t.site,r=e[0],i=e[1],u=i-n;if(!u)return r;var o=t.P;if(!o)return-1/0;var a=(e=o.site)[0],f=e[1],c=f-n;if(!c)return a;var s=a-r,l=1/u-1/c,h=s/c;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*c)-f+c/2+i-u/2)))/l+r:(r+a)/2}function oM(t,n){var e=t.N;if(e)return uM(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var aM,fM,cM,sM,lM=1e-6,hM=1e-12;function dM(t,n){return n[1]-t[1]||n[0]-t[0]}function pM(t,n){var e,r,i,u=t.sort(dM).pop();for(sM=[],fM=new Array(t.length),aM=new Uw,cM=new Uw;;)if(i=Gw,u&&(!i||u[1]lM||Math.abs(i[0][1]-i[1][1])>lM)||delete sM[u]}(o,a,f,c),function(t,n,e,r){var i,u,o,a,f,c,s,l,h,d,p,v,_=fM.length,g=!0;for(i=0;i<_;++i)if(u=fM[i]){for(o=u.site,a=(f=u.halfedges).length;a--;)sM[f[a]]||f.splice(a,1);for(a=0,c=f.length;alM||Math.abs(v-h)>lM)&&(f.splice(a,0,sM.push(Fw(o,d,Math.abs(p-t)lM?[t,Math.abs(l-t)lM?[Math.abs(h-r)lM?[e,Math.abs(l-e)lM?[Math.abs(h-n)=a)return null;var f=t-i.site[0],c=n-i.site[1],s=f*f+c*c;do{i=u.cells[r=o],o=null,i.halfedges.forEach((function(e){var r=u.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var f=t-a[0],c=n-a[1],l=f*f+c*c;lr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>u?(u+o)/2:Math.min(0,u)||Math.max(0,o))}var CM,NM=function(){var t,n,e=MM,r=AM,i=EM,u=SM,o=TM,a=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],c=250,s=pp,l=dt("start","zoom","end"),h=0;function d(t){t.property("__zoom",kM).on("wheel.zoom",m).on("mousedown.zoom",x).on("dblclick.zoom",w).filter(o).on("touchstart.zoom",M).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new yM(n,t.x,t.y)}function v(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new yM(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function g(t,n,e){t.on("start.zoom",(function(){y(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,u=y(t,i),o=r.apply(t,i),a=null==e?_(o):"function"==typeof e?e.apply(t,i):e,f=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=t.__zoom,l="function"==typeof n?n.apply(t,i):n,h=s(c.invert(a).concat(f/c.k),l.invert(a).concat(f/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=f/n[2];t=new yM(e,a[0]-n[0]*e,a[1]-n[1]*e)}u.zoom(null,t)}}))}function y(t,n,e){return!e&&t.__zooming||new b(t,n)}function b(t,n){this.that=t,this.args=n,this.active=0,this.extent=r.apply(t,n),this.taps=0}function m(){if(e.apply(this,arguments)){var t=y(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,u.apply(this,arguments)))),o=Pe(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=n.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[o,n.invert(o)],cr(this),t.start()}wM(),t.wheel=setTimeout(c,150),t.zoom("mouse",i(v(p(n,r),t.mouse[0],t.mouse[1]),t.extent,f))}function c(){t.wheel=null,t.end()}}function x(){if(!n&&e.apply(this,arguments)){var t=y(this,arguments,!0),r=Sn(hn.view).on("mousemove.zoom",c,!0).on("mouseup.zoom",s,!0),u=Pe(this),o=hn.clientX,a=hn.clientY;Cn(hn.view),xM(),t.mouse=[u,this.__zoom.invert(u)],cr(this),t.start()}function c(){if(wM(),!t.moved){var n=hn.clientX-o,e=hn.clientY-a;t.moved=n*n+e*e>h}t.zoom("mouse",i(v(t.that.__zoom,t.mouse[0]=Pe(t.that),t.mouse[1]),t.extent,f))}function s(){r.on("mousemove.zoom mouseup.zoom",null),Nn(hn.view,t.moved),wM(),t.end()}}function w(){if(e.apply(this,arguments)){var t=this.__zoom,n=Pe(this),u=t.invert(n),o=t.k*(hn.shiftKey?.5:2),a=i(v(p(t,o),n,u),r.apply(this,arguments),f);wM(),c>0?Sn(this).transition().duration(c).call(g,a,n):Sn(this).call(d.transform,a)}}function M(){if(e.apply(this,arguments)){var n,r,i,u,o=hn.touches,a=o.length,f=y(this,arguments,hn.changedTouches.length===a);for(xM(),r=0;r0)for(var n in this.visibleSeries){var e=this.visibleSeries[n].confidence||0,r=this.visibleSeries[n].mode||"Standart",i=this.visibleSeries[n].target;this._renderMetric(this.visibleSeries[n].datapoints,{color:this.visibleSeries[n].color,confidence:e,target:i,mode:r})}else this._renderNoDataPointsMessage()},n.prototype._renderMetric=function(t,n){var e=this;if(!jM.includes(this.seriesTargetsWithBounds,n.target))if("Charge"!==n.mode){var r=this._d3.line().x((function(t){return e.xScale(new Date(t[1]))})).y((function(t){return e.yScale(t[0])}));this._chartContainer.append("path").datum(t).attr("class","metric-path").attr("fill","none").attr("stroke",n.color).attr("stroke-width",1).attr("stroke-opacity",.7).attr("d",r);var i,u=[],o=[];if(void 0!==this._options.bounds&&void 0!==this._options.bounds.upper&&void 0!==this._options.bounds.lower&&this._series.forEach((function(t){t.target===e.formatedBound(e._options.bounds.upper,n.target)&&(u=t.datapoints),t.target===e.formatedBound(e._options.bounds.lower,n.target)&&(o=t.datapoints)})),u.length>0&&o.length>0){var a=(i=o,u.map((function(t,n){return[t[0],t[1],i[n][0]]})));this._chartContainer.append("path").datum(a).attr("fill",n.color).attr("stroke","none").attr("opacity","0.3").attr("d",this._d3.area().x((function(t){return e.xScale(new Date(t[1]))})).y0((function(t){return e.yScale(t[0])})).y1((function(t){return e.yScale(t[2])})))}n.confidence>0&&this._chartContainer.append("path").datum(t).attr("fill",n.color).attr("stroke","none").attr("opacity","0.3").attr("d",this._d3.area().x((function(t){return e.xScale(new Date(t[1]))})).y0((function(t){return e.yScale(t[0]+n.confidence)})).y1((function(t){return e.yScale(t[0]-n.confidence)})))}else{var f=this._d3.pairs(t);this._chartContainer.selectAll(null).data(f).enter().append("line").attr("x1",(function(t){return e.xScale(t[0][1])})).attr("x2",(function(t){return e.xScale(t[1][1])})).attr("y1",(function(t){return e.yScale(t[0][0])})).attr("y2",(function(t){return e.yScale(t[1][0])})).attr("stroke-opacity",.7).style("stroke-width",1).style("stroke",(function(t){return t[1][0]>t[0][0]?"green":t[1][0] { - if(serie.target === this.formatedBound(this._options.bounds.upper, options.target)) { - upperBoundDatapoints = serie.datapoints; - } - if(serie.target === this.formatedBound(this._options.bounds.lower, options.target)) { - lowerBoundDatapoints = serie.datapoints; - } - }); + if( + this._options.bounds !== undefined && + this._options.bounds.upper !== undefined && + this._options.bounds.lower !== undefined + ) { + this._series.forEach(serie => { + if(serie.target === this.formatedBound(this._options.bounds.upper, options.target)) { + upperBoundDatapoints = serie.datapoints; + } + if(serie.target === this.formatedBound(this._options.bounds.lower, options.target)) { + lowerBoundDatapoints = serie.datapoints; + } + }); + } if(upperBoundDatapoints.length > 0 && lowerBoundDatapoints.length > 0) { const zip = (arr1, arr2) => arr1.map((k, i) => [k[0],k[1], arr2[i][0]]); @@ -138,8 +144,8 @@ export class ChartwerkLineChart extends ChartwerkBase { return; } this._crosshair.select('#crosshair-line-x') - .attr('y1', 0).attr('x1', eventX) - .attr('y2', this.yScale(this.minValue)).attr('x2', eventX); + .attr('x1', eventX) + .attr('x2', eventX); if(this._series === undefined || this._series.length === 0) { return; @@ -197,7 +203,9 @@ export class ChartwerkLineChart extends ChartwerkBase { } onMouseOut(): void { - this._options.eventsCallbacks.mouseOut(); + if(this._options.eventsCallbacks !== undefined && this._options.eventsCallbacks.mouseOut !== undefined) { + this._options.eventsCallbacks.mouseOut(); + } this._crosshair.style('display', 'none'); } }